@smthrs/gateway 0.34.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 -29182
- 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 -61
- 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 -183
- package/src/rpc/index.d.ts +0 -221
- package/src/rpc/index.js +0 -2431
|
@@ -0,0 +1,3274 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire schemas shared by the gateway read path, subscriptions, and singleton
|
|
3
|
+
* lifecycle.
|
|
4
|
+
*
|
|
5
|
+
* @since 0.1.0
|
|
6
|
+
*/
|
|
7
|
+
import { Schema } from "effect";
|
|
8
|
+
/**
|
|
9
|
+
* Health response used to prove a singleton belongs to this workspace.
|
|
10
|
+
*
|
|
11
|
+
* @since 0.1.0
|
|
12
|
+
* @category models
|
|
13
|
+
*/
|
|
14
|
+
export declare const GatewayHealth: Schema.Struct<{
|
|
15
|
+
readonly workspaceHash: Schema.String;
|
|
16
|
+
readonly gatewayId: Schema.String;
|
|
17
|
+
readonly protocolVersion: Schema.String;
|
|
18
|
+
readonly capabilities: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Health response used for singleton identity probes.
|
|
22
|
+
*
|
|
23
|
+
* @since 0.1.0
|
|
24
|
+
* @category models
|
|
25
|
+
*/
|
|
26
|
+
export type GatewayHealth = typeof GatewayHealth.Type;
|
|
27
|
+
/**
|
|
28
|
+
* A selector for a workspace-wide run list.
|
|
29
|
+
*
|
|
30
|
+
* @since 0.1.0
|
|
31
|
+
* @category models
|
|
32
|
+
*/
|
|
33
|
+
export declare const WorkspaceRunsSelector: Schema.TaggedStruct<"workspace-runs", {
|
|
34
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
35
|
+
}>;
|
|
36
|
+
/**
|
|
37
|
+
* A selector for a workspace-wide run list.
|
|
38
|
+
*
|
|
39
|
+
* @since 0.1.0
|
|
40
|
+
* @category models
|
|
41
|
+
*/
|
|
42
|
+
export type WorkspaceRunsSelector = typeof WorkspaceRunsSelector.Type;
|
|
43
|
+
/**
|
|
44
|
+
* A selector for one run's summary.
|
|
45
|
+
*
|
|
46
|
+
* @since 0.1.0
|
|
47
|
+
* @category models
|
|
48
|
+
*/
|
|
49
|
+
export declare const RunSummarySelector: Schema.TaggedStruct<"run-summary", {
|
|
50
|
+
readonly runId: Schema.String;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* A selector for one run's summary.
|
|
54
|
+
*
|
|
55
|
+
* @since 0.1.0
|
|
56
|
+
* @category models
|
|
57
|
+
*/
|
|
58
|
+
export type RunSummarySelector = typeof RunSummarySelector.Type;
|
|
59
|
+
/**
|
|
60
|
+
* A selector for one run's ordered lifecycle events.
|
|
61
|
+
*
|
|
62
|
+
* @since 0.1.0
|
|
63
|
+
* @category models
|
|
64
|
+
*/
|
|
65
|
+
export declare const RunEventsSelector: Schema.TaggedStruct<"run-events", {
|
|
66
|
+
readonly runId: Schema.String;
|
|
67
|
+
}>;
|
|
68
|
+
/**
|
|
69
|
+
* A selector for one run's ordered lifecycle events.
|
|
70
|
+
*
|
|
71
|
+
* @since 0.1.0
|
|
72
|
+
* @category models
|
|
73
|
+
*/
|
|
74
|
+
export type RunEventsSelector = typeof RunEventsSelector.Type;
|
|
75
|
+
/**
|
|
76
|
+
* A selector for one run's transcript projection.
|
|
77
|
+
*
|
|
78
|
+
* @since 0.1.0
|
|
79
|
+
* @category models
|
|
80
|
+
*/
|
|
81
|
+
export declare const TranscriptSelector: Schema.TaggedStruct<"transcript", {
|
|
82
|
+
readonly runId: Schema.String;
|
|
83
|
+
}>;
|
|
84
|
+
/**
|
|
85
|
+
* A selector for one run's transcript projection.
|
|
86
|
+
*
|
|
87
|
+
* @since 0.1.0
|
|
88
|
+
* @category models
|
|
89
|
+
*/
|
|
90
|
+
export type TranscriptSelector = typeof TranscriptSelector.Type;
|
|
91
|
+
/**
|
|
92
|
+
* A selector for one run's flattened tree nodes.
|
|
93
|
+
*
|
|
94
|
+
* @since 0.1.0
|
|
95
|
+
* @category models
|
|
96
|
+
*/
|
|
97
|
+
export declare const RunTreeSelector: Schema.TaggedStruct<"run-tree", {
|
|
98
|
+
readonly runId: Schema.String;
|
|
99
|
+
}>;
|
|
100
|
+
/**
|
|
101
|
+
* A selector for one run's flattened tree nodes.
|
|
102
|
+
*
|
|
103
|
+
* @since 0.1.0
|
|
104
|
+
* @category models
|
|
105
|
+
*/
|
|
106
|
+
export type RunTreeSelector = typeof RunTreeSelector.Type;
|
|
107
|
+
/**
|
|
108
|
+
* A selector for approvals.
|
|
109
|
+
*
|
|
110
|
+
* Without `runId` it lists the workspace's pending gates, which is the
|
|
111
|
+
* approvals inbox. With one it lists that run's gates including the decided
|
|
112
|
+
* ones, which is what a run card renders: a gate a human already answered
|
|
113
|
+
* still belongs on the card that asked.
|
|
114
|
+
*
|
|
115
|
+
* @since 0.1.0
|
|
116
|
+
* @category models
|
|
117
|
+
*/
|
|
118
|
+
export declare const ApprovalsSelector: Schema.TaggedStruct<"approvals", {
|
|
119
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
120
|
+
}>;
|
|
121
|
+
/**
|
|
122
|
+
* A selector for approvals.
|
|
123
|
+
*
|
|
124
|
+
* @since 0.1.0
|
|
125
|
+
* @category models
|
|
126
|
+
*/
|
|
127
|
+
export type ApprovalsSelector = typeof ApprovalsSelector.Type;
|
|
128
|
+
/**
|
|
129
|
+
* A selector for one node's output projection.
|
|
130
|
+
*
|
|
131
|
+
* @since 0.1.0
|
|
132
|
+
* @category models
|
|
133
|
+
*/
|
|
134
|
+
export declare const NodeOutputSelector: Schema.TaggedStruct<"node-output", {
|
|
135
|
+
readonly runId: Schema.String;
|
|
136
|
+
readonly nodeId: Schema.String;
|
|
137
|
+
}>;
|
|
138
|
+
/**
|
|
139
|
+
* A selector for one node's output projection.
|
|
140
|
+
*
|
|
141
|
+
* @since 0.1.0
|
|
142
|
+
* @category models
|
|
143
|
+
*/
|
|
144
|
+
export type NodeOutputSelector = typeof NodeOutputSelector.Type;
|
|
145
|
+
/**
|
|
146
|
+
* A selector for one flow's measured node durations.
|
|
147
|
+
*
|
|
148
|
+
* This is the one projection that is neither a workspace listing nor scoped
|
|
149
|
+
* to a run: it folds the history of one flow across the runs that executed
|
|
150
|
+
* it, which is what makes it a prediction rather than a report.
|
|
151
|
+
*
|
|
152
|
+
* @since 0.1.0
|
|
153
|
+
* @category models
|
|
154
|
+
*/
|
|
155
|
+
export declare const FlowDurationsSelector: Schema.TaggedStruct<"flow-durations", {
|
|
156
|
+
readonly flowId: Schema.String;
|
|
157
|
+
}>;
|
|
158
|
+
/**
|
|
159
|
+
* A selector for one flow's measured node durations.
|
|
160
|
+
*
|
|
161
|
+
* @since 0.1.0
|
|
162
|
+
* @category models
|
|
163
|
+
*/
|
|
164
|
+
export type FlowDurationsSelector = typeof FlowDurationsSelector.Type;
|
|
165
|
+
/**
|
|
166
|
+
* The row schema each served selector answers with.
|
|
167
|
+
*
|
|
168
|
+
* This table is the selector-to-row pairing, and it exists once. The selector
|
|
169
|
+
* union, the projection names, `rowSchemaFor`, `ProjectionSnapshot`,
|
|
170
|
+
* `RowFrame`, and `DeltaFrame` all derive from it, so serving one more
|
|
171
|
+
* projection is one more entry here rather than five mirrored lists that can
|
|
172
|
+
* disagree with each other.
|
|
173
|
+
*/
|
|
174
|
+
declare const served: readonly [readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
175
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
176
|
+
}>, Schema.Struct<{
|
|
177
|
+
readonly runId: Schema.String;
|
|
178
|
+
readonly flowId: Schema.String;
|
|
179
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
180
|
+
readonly subjectId: Schema.String;
|
|
181
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
182
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
183
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
184
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
185
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
186
|
+
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"]>>;
|
|
187
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
188
|
+
readonly checkerId: Schema.String;
|
|
189
|
+
readonly monitorId: Schema.String;
|
|
190
|
+
readonly observedAt: Schema.Int;
|
|
191
|
+
readonly expiresAt: Schema.Int;
|
|
192
|
+
readonly evidenceSeq: Schema.Int;
|
|
193
|
+
readonly incarnation: Schema.String;
|
|
194
|
+
readonly version: Schema.Int;
|
|
195
|
+
}>>;
|
|
196
|
+
readonly updatedAt: Schema.Int;
|
|
197
|
+
}>>;
|
|
198
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
199
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
200
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
201
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
202
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
203
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
204
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
205
|
+
}>>;
|
|
206
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
207
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
208
|
+
readonly rootExecutionId: Schema.String;
|
|
209
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
210
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
211
|
+
readonly executionId: Schema.String;
|
|
212
|
+
readonly generation: Schema.Number;
|
|
213
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
214
|
+
readonly fromSequence: Schema.Number;
|
|
215
|
+
readonly throughSequence: Schema.Number;
|
|
216
|
+
}>>>;
|
|
217
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
218
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
219
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
220
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
221
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
222
|
+
}>>;
|
|
223
|
+
readonly createdAt: Schema.Number;
|
|
224
|
+
readonly updatedAt: Schema.Number;
|
|
225
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
226
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
227
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
228
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
229
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
230
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
231
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
232
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
233
|
+
readonly requestedAt: Schema.Number;
|
|
234
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
235
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
236
|
+
readonly id: Schema.String;
|
|
237
|
+
readonly kind: Schema.String;
|
|
238
|
+
readonly stampedAt: Schema.Number;
|
|
239
|
+
}>>;
|
|
240
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
241
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
242
|
+
}>>;
|
|
243
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
244
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
245
|
+
readonly turns: Schema.Number;
|
|
246
|
+
readonly calls: Schema.Number;
|
|
247
|
+
readonly callsFailed: Schema.Number;
|
|
248
|
+
readonly editsAttempted: Schema.Number;
|
|
249
|
+
readonly editsSucceeded: Schema.Number;
|
|
250
|
+
readonly inputTokens: Schema.Number;
|
|
251
|
+
readonly outputTokens: Schema.Number;
|
|
252
|
+
readonly verdict: Schema.String;
|
|
253
|
+
readonly diagnosis: Schema.String;
|
|
254
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
255
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
256
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
257
|
+
}>], readonly [Schema.TaggedStruct<"run-summary", {
|
|
258
|
+
readonly runId: Schema.String;
|
|
259
|
+
}>, Schema.Struct<{
|
|
260
|
+
readonly runId: Schema.String;
|
|
261
|
+
readonly flowId: Schema.String;
|
|
262
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
263
|
+
readonly subjectId: Schema.String;
|
|
264
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
265
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
266
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
267
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
268
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
269
|
+
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"]>>;
|
|
270
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
271
|
+
readonly checkerId: Schema.String;
|
|
272
|
+
readonly monitorId: Schema.String;
|
|
273
|
+
readonly observedAt: Schema.Int;
|
|
274
|
+
readonly expiresAt: Schema.Int;
|
|
275
|
+
readonly evidenceSeq: Schema.Int;
|
|
276
|
+
readonly incarnation: Schema.String;
|
|
277
|
+
readonly version: Schema.Int;
|
|
278
|
+
}>>;
|
|
279
|
+
readonly updatedAt: Schema.Int;
|
|
280
|
+
}>>;
|
|
281
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
282
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
283
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
284
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
285
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
286
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
287
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
288
|
+
}>>;
|
|
289
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
290
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
291
|
+
readonly rootExecutionId: Schema.String;
|
|
292
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
293
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
294
|
+
readonly executionId: Schema.String;
|
|
295
|
+
readonly generation: Schema.Number;
|
|
296
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
297
|
+
readonly fromSequence: Schema.Number;
|
|
298
|
+
readonly throughSequence: Schema.Number;
|
|
299
|
+
}>>>;
|
|
300
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
301
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
302
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
303
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
304
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
305
|
+
}>>;
|
|
306
|
+
readonly createdAt: Schema.Number;
|
|
307
|
+
readonly updatedAt: Schema.Number;
|
|
308
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
309
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
310
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
311
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
312
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
313
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
314
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
315
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
316
|
+
readonly requestedAt: Schema.Number;
|
|
317
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
318
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
319
|
+
readonly id: Schema.String;
|
|
320
|
+
readonly kind: Schema.String;
|
|
321
|
+
readonly stampedAt: Schema.Number;
|
|
322
|
+
}>>;
|
|
323
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
324
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
325
|
+
}>>;
|
|
326
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
327
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
328
|
+
readonly turns: Schema.Number;
|
|
329
|
+
readonly calls: Schema.Number;
|
|
330
|
+
readonly callsFailed: Schema.Number;
|
|
331
|
+
readonly editsAttempted: Schema.Number;
|
|
332
|
+
readonly editsSucceeded: Schema.Number;
|
|
333
|
+
readonly inputTokens: Schema.Number;
|
|
334
|
+
readonly outputTokens: Schema.Number;
|
|
335
|
+
readonly verdict: Schema.String;
|
|
336
|
+
readonly diagnosis: Schema.String;
|
|
337
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
338
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
339
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
340
|
+
}>], readonly [Schema.TaggedStruct<"run-events", {
|
|
341
|
+
readonly runId: Schema.String;
|
|
342
|
+
}>, Schema.Struct<{
|
|
343
|
+
readonly cursor: Schema.optional<Schema.Struct<{
|
|
344
|
+
readonly sequence: Schema.Int;
|
|
345
|
+
readonly offset: Schema.optional<Schema.Int>;
|
|
346
|
+
}>>;
|
|
347
|
+
readonly sequence: Schema.Number;
|
|
348
|
+
readonly kind: Schema.String;
|
|
349
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
350
|
+
readonly occurredAt: Schema.Number;
|
|
351
|
+
readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
352
|
+
}>], readonly [Schema.TaggedStruct<"transcript", {
|
|
353
|
+
readonly runId: Schema.String;
|
|
354
|
+
}>, Schema.Struct<{
|
|
355
|
+
readonly runId: Schema.String;
|
|
356
|
+
readonly sequence: Schema.Number;
|
|
357
|
+
readonly turn: Schema.Number;
|
|
358
|
+
readonly at: Schema.Number;
|
|
359
|
+
readonly kind: Schema.String;
|
|
360
|
+
readonly callId: Schema.optional<Schema.String>;
|
|
361
|
+
readonly text: Schema.String;
|
|
362
|
+
}>], readonly [Schema.TaggedStruct<"run-tree", {
|
|
363
|
+
readonly runId: Schema.String;
|
|
364
|
+
}>, Schema.Struct<{
|
|
365
|
+
readonly runId: Schema.String;
|
|
366
|
+
readonly nodeId: Schema.String;
|
|
367
|
+
readonly label: Schema.String;
|
|
368
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "failed"]>;
|
|
369
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
370
|
+
readonly startedAt: Schema.Number;
|
|
371
|
+
readonly endedAt: Schema.optional<Schema.Number>;
|
|
372
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
373
|
+
}>], readonly [Schema.TaggedStruct<"approvals", {
|
|
374
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
375
|
+
}>, Schema.Struct<{
|
|
376
|
+
readonly runId: Schema.String;
|
|
377
|
+
readonly waitRunId: Schema.optional<Schema.String>;
|
|
378
|
+
readonly questionProvenance: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
379
|
+
readonly requestId: Schema.String;
|
|
380
|
+
readonly title: Schema.String;
|
|
381
|
+
readonly request: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
382
|
+
readonly payload: Schema.Struct<{
|
|
383
|
+
readonly target: Schema.Union<readonly [Schema.TaggedStruct<"Plan", {
|
|
384
|
+
readonly planId: Schema.String;
|
|
385
|
+
readonly digest: Schema.String;
|
|
386
|
+
readonly envelope: Schema.Struct<{
|
|
387
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
388
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
389
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
390
|
+
readonly budget: Schema.Struct<{
|
|
391
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
392
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
393
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
394
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
395
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
396
|
+
}>;
|
|
397
|
+
readonly host: Schema.optional<Schema.String>;
|
|
398
|
+
}>;
|
|
399
|
+
}>, Schema.TaggedStruct<"Node", {
|
|
400
|
+
readonly runId: Schema.String;
|
|
401
|
+
readonly requestId: Schema.String;
|
|
402
|
+
readonly digest: Schema.String;
|
|
403
|
+
readonly envelope: Schema.Struct<{
|
|
404
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
405
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
406
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
407
|
+
readonly budget: Schema.Struct<{
|
|
408
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
409
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
410
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
411
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
412
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
413
|
+
}>;
|
|
414
|
+
readonly host: Schema.optional<Schema.String>;
|
|
415
|
+
}>;
|
|
416
|
+
}>]>;
|
|
417
|
+
readonly scope: Schema.Literals<readonly ["once", "run", "remembered"]>;
|
|
418
|
+
readonly idempotencyKey: Schema.String;
|
|
419
|
+
}>;
|
|
420
|
+
readonly requestedAt: Schema.Number;
|
|
421
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
422
|
+
}>], readonly [Schema.TaggedStruct<"node-output", {
|
|
423
|
+
readonly runId: Schema.String;
|
|
424
|
+
readonly nodeId: Schema.String;
|
|
425
|
+
}>, Schema.Struct<{
|
|
426
|
+
readonly runId: Schema.String;
|
|
427
|
+
readonly nodeId: Schema.String;
|
|
428
|
+
readonly outcome: Schema.Literals<readonly ["success", "failure"]>;
|
|
429
|
+
readonly output: Schema.String;
|
|
430
|
+
readonly settledAt: Schema.Number;
|
|
431
|
+
}>], readonly [Schema.TaggedStruct<"flow-durations", {
|
|
432
|
+
readonly flowId: Schema.String;
|
|
433
|
+
}>, Schema.Struct<{
|
|
434
|
+
readonly flowId: Schema.String;
|
|
435
|
+
readonly actionTag: Schema.String;
|
|
436
|
+
readonly samples: Schema.Number;
|
|
437
|
+
readonly p50Ms: Schema.Number;
|
|
438
|
+
readonly p90Ms: Schema.Number;
|
|
439
|
+
}>]];
|
|
440
|
+
/** The served table as the type every derivation below maps over. */
|
|
441
|
+
type Served = typeof served;
|
|
442
|
+
/**
|
|
443
|
+
* A projection selected for a snapshot or watch subscription.
|
|
444
|
+
*
|
|
445
|
+
* @since 0.1.0
|
|
446
|
+
* @category models
|
|
447
|
+
*/
|
|
448
|
+
export declare const ProjectionSelector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
449
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
450
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
451
|
+
readonly runId: Schema.String;
|
|
452
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
453
|
+
readonly runId: Schema.String;
|
|
454
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
455
|
+
readonly runId: Schema.String;
|
|
456
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
457
|
+
readonly runId: Schema.String;
|
|
458
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
459
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
460
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
461
|
+
readonly runId: Schema.String;
|
|
462
|
+
readonly nodeId: Schema.String;
|
|
463
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
464
|
+
readonly flowId: Schema.String;
|
|
465
|
+
}>]>;
|
|
466
|
+
/**
|
|
467
|
+
* A projection selected for a snapshot or watch subscription.
|
|
468
|
+
*
|
|
469
|
+
* @since 0.1.0
|
|
470
|
+
* @category models
|
|
471
|
+
*/
|
|
472
|
+
export type ProjectionSelector = typeof ProjectionSelector.Type;
|
|
473
|
+
/**
|
|
474
|
+
* Projection names served by the gateway read path.
|
|
475
|
+
*
|
|
476
|
+
* @since 0.1.0
|
|
477
|
+
* @category models
|
|
478
|
+
*/
|
|
479
|
+
export declare const ProjectionName: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
480
|
+
/**
|
|
481
|
+
* A gateway projection name.
|
|
482
|
+
*
|
|
483
|
+
* @since 0.1.0
|
|
484
|
+
* @category models
|
|
485
|
+
*/
|
|
486
|
+
export type ProjectionName = typeof ProjectionName.Type;
|
|
487
|
+
/** Each served row schema, keyed by the name of the selector it answers. */
|
|
488
|
+
type RowSchemas = {
|
|
489
|
+
readonly [P in Served[number] as P[0]["Type"]["_tag"]]: P[1];
|
|
490
|
+
};
|
|
491
|
+
/**
|
|
492
|
+
* The row schema one selector answers with, so a client decodes a snapshot
|
|
493
|
+
* instead of casting it.
|
|
494
|
+
*
|
|
495
|
+
* A literal selector keeps its own row schema: `rowSchemaFor({ _tag:
|
|
496
|
+
* "approvals" })` decodes to `ApprovalRow`, not to the union of every row.
|
|
497
|
+
*
|
|
498
|
+
* @param selector the selector whose row schema the client needs
|
|
499
|
+
* @since 1.0.0
|
|
500
|
+
* @category schemas
|
|
501
|
+
*/
|
|
502
|
+
export declare const rowSchemaFor: <S extends ProjectionSelector>(selector: S) => RowSchemas[S["_tag"]];
|
|
503
|
+
/**
|
|
504
|
+
* The row type one selector's projection is made of.
|
|
505
|
+
*
|
|
506
|
+
* @since 1.0.0
|
|
507
|
+
* @category models
|
|
508
|
+
*/
|
|
509
|
+
export type RowOf<S extends ProjectionSelector> = RowSchemas[S["_tag"]]["Type"];
|
|
510
|
+
/**
|
|
511
|
+
* A monotonic cursor for one projection and optional run scope.
|
|
512
|
+
*
|
|
513
|
+
* `runId` is null for workspace projections and records the source run for
|
|
514
|
+
* per-run projections, even when a selector later gains more fields. Control
|
|
515
|
+
* journal sequences belong to per-run partitions, so no workspace-wide
|
|
516
|
+
* sequence exists. A workspace cursor therefore has value `0` and a null run,
|
|
517
|
+
* and a workspace projection cannot resume from a cursor.
|
|
518
|
+
*
|
|
519
|
+
* @since 0.1.0
|
|
520
|
+
* @category models
|
|
521
|
+
*/
|
|
522
|
+
export declare const ProjectionCursor: Schema.Struct<{
|
|
523
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
524
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
525
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
526
|
+
readonly runId: Schema.String;
|
|
527
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
528
|
+
readonly runId: Schema.String;
|
|
529
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
530
|
+
readonly runId: Schema.String;
|
|
531
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
532
|
+
readonly runId: Schema.String;
|
|
533
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
534
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
535
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
536
|
+
readonly runId: Schema.String;
|
|
537
|
+
readonly nodeId: Schema.String;
|
|
538
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
539
|
+
readonly flowId: Schema.String;
|
|
540
|
+
}>]>;
|
|
541
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
542
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
543
|
+
readonly value: Schema.Int;
|
|
544
|
+
readonly offset: Schema.Int;
|
|
545
|
+
}>;
|
|
546
|
+
/**
|
|
547
|
+
* A monotonic projection cursor.
|
|
548
|
+
*
|
|
549
|
+
* @since 0.1.0
|
|
550
|
+
* @category models
|
|
551
|
+
*/
|
|
552
|
+
export type ProjectionCursor = typeof ProjectionCursor.Type;
|
|
553
|
+
/**
|
|
554
|
+
* Every row one selector currently projects, and the cursor they were read
|
|
555
|
+
* at. A client that follows the same selector from this cursor sees each
|
|
556
|
+
* later change exactly once.
|
|
557
|
+
*
|
|
558
|
+
* @since 1.0.0
|
|
559
|
+
* @category models
|
|
560
|
+
*/
|
|
561
|
+
export declare const ProjectionSnapshot: Schema.Union<readonly [Schema.Struct<{
|
|
562
|
+
readonly selector: Schema.TaggedStruct<"workspace-runs", {
|
|
563
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
564
|
+
}>;
|
|
565
|
+
readonly cursor: Schema.Struct<{
|
|
566
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
567
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
568
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
569
|
+
readonly runId: Schema.String;
|
|
570
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
571
|
+
readonly runId: Schema.String;
|
|
572
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
573
|
+
readonly runId: Schema.String;
|
|
574
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
575
|
+
readonly runId: Schema.String;
|
|
576
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
577
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
578
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
579
|
+
readonly runId: Schema.String;
|
|
580
|
+
readonly nodeId: Schema.String;
|
|
581
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
582
|
+
readonly flowId: Schema.String;
|
|
583
|
+
}>]>;
|
|
584
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
585
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
586
|
+
readonly value: Schema.Int;
|
|
587
|
+
readonly offset: Schema.Int;
|
|
588
|
+
}>;
|
|
589
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
590
|
+
readonly runId: Schema.String;
|
|
591
|
+
readonly flowId: Schema.String;
|
|
592
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
593
|
+
readonly subjectId: Schema.String;
|
|
594
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
595
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
596
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
597
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
598
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
599
|
+
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"]>>;
|
|
600
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
601
|
+
readonly checkerId: Schema.String;
|
|
602
|
+
readonly monitorId: Schema.String;
|
|
603
|
+
readonly observedAt: Schema.Int;
|
|
604
|
+
readonly expiresAt: Schema.Int;
|
|
605
|
+
readonly evidenceSeq: Schema.Int;
|
|
606
|
+
readonly incarnation: Schema.String;
|
|
607
|
+
readonly version: Schema.Int;
|
|
608
|
+
}>>;
|
|
609
|
+
readonly updatedAt: Schema.Int;
|
|
610
|
+
}>>;
|
|
611
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
612
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
613
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
614
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
615
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
616
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
617
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
618
|
+
}>>;
|
|
619
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
620
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
621
|
+
readonly rootExecutionId: Schema.String;
|
|
622
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
623
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
624
|
+
readonly executionId: Schema.String;
|
|
625
|
+
readonly generation: Schema.Number;
|
|
626
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
627
|
+
readonly fromSequence: Schema.Number;
|
|
628
|
+
readonly throughSequence: Schema.Number;
|
|
629
|
+
}>>>;
|
|
630
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
631
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
632
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
633
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
634
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
635
|
+
}>>;
|
|
636
|
+
readonly createdAt: Schema.Number;
|
|
637
|
+
readonly updatedAt: Schema.Number;
|
|
638
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
639
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
640
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
641
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
642
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
643
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
644
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
645
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
646
|
+
readonly requestedAt: Schema.Number;
|
|
647
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
648
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
649
|
+
readonly id: Schema.String;
|
|
650
|
+
readonly kind: Schema.String;
|
|
651
|
+
readonly stampedAt: Schema.Number;
|
|
652
|
+
}>>;
|
|
653
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
654
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
655
|
+
}>>;
|
|
656
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
657
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
658
|
+
readonly turns: Schema.Number;
|
|
659
|
+
readonly calls: Schema.Number;
|
|
660
|
+
readonly callsFailed: Schema.Number;
|
|
661
|
+
readonly editsAttempted: Schema.Number;
|
|
662
|
+
readonly editsSucceeded: Schema.Number;
|
|
663
|
+
readonly inputTokens: Schema.Number;
|
|
664
|
+
readonly outputTokens: Schema.Number;
|
|
665
|
+
readonly verdict: Schema.String;
|
|
666
|
+
readonly diagnosis: Schema.String;
|
|
667
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
668
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
669
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
670
|
+
}>>;
|
|
671
|
+
}>, Schema.Struct<{
|
|
672
|
+
readonly selector: Schema.TaggedStruct<"run-summary", {
|
|
673
|
+
readonly runId: Schema.String;
|
|
674
|
+
}>;
|
|
675
|
+
readonly cursor: Schema.Struct<{
|
|
676
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
677
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
678
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
679
|
+
readonly runId: Schema.String;
|
|
680
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
681
|
+
readonly runId: Schema.String;
|
|
682
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
683
|
+
readonly runId: Schema.String;
|
|
684
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
685
|
+
readonly runId: Schema.String;
|
|
686
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
687
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
688
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
689
|
+
readonly runId: Schema.String;
|
|
690
|
+
readonly nodeId: Schema.String;
|
|
691
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
692
|
+
readonly flowId: Schema.String;
|
|
693
|
+
}>]>;
|
|
694
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
695
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
696
|
+
readonly value: Schema.Int;
|
|
697
|
+
readonly offset: Schema.Int;
|
|
698
|
+
}>;
|
|
699
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
700
|
+
readonly runId: Schema.String;
|
|
701
|
+
readonly flowId: Schema.String;
|
|
702
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
703
|
+
readonly subjectId: Schema.String;
|
|
704
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
705
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
706
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
707
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
708
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
709
|
+
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"]>>;
|
|
710
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
711
|
+
readonly checkerId: Schema.String;
|
|
712
|
+
readonly monitorId: Schema.String;
|
|
713
|
+
readonly observedAt: Schema.Int;
|
|
714
|
+
readonly expiresAt: Schema.Int;
|
|
715
|
+
readonly evidenceSeq: Schema.Int;
|
|
716
|
+
readonly incarnation: Schema.String;
|
|
717
|
+
readonly version: Schema.Int;
|
|
718
|
+
}>>;
|
|
719
|
+
readonly updatedAt: Schema.Int;
|
|
720
|
+
}>>;
|
|
721
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
722
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
723
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
724
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
725
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
726
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
727
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
728
|
+
}>>;
|
|
729
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
730
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
731
|
+
readonly rootExecutionId: Schema.String;
|
|
732
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
733
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
734
|
+
readonly executionId: Schema.String;
|
|
735
|
+
readonly generation: Schema.Number;
|
|
736
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
737
|
+
readonly fromSequence: Schema.Number;
|
|
738
|
+
readonly throughSequence: Schema.Number;
|
|
739
|
+
}>>>;
|
|
740
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
741
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
742
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
743
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
744
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
745
|
+
}>>;
|
|
746
|
+
readonly createdAt: Schema.Number;
|
|
747
|
+
readonly updatedAt: Schema.Number;
|
|
748
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
749
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
750
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
751
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
752
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
753
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
754
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
755
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
756
|
+
readonly requestedAt: Schema.Number;
|
|
757
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
758
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
759
|
+
readonly id: Schema.String;
|
|
760
|
+
readonly kind: Schema.String;
|
|
761
|
+
readonly stampedAt: Schema.Number;
|
|
762
|
+
}>>;
|
|
763
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
764
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
765
|
+
}>>;
|
|
766
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
767
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
768
|
+
readonly turns: Schema.Number;
|
|
769
|
+
readonly calls: Schema.Number;
|
|
770
|
+
readonly callsFailed: Schema.Number;
|
|
771
|
+
readonly editsAttempted: Schema.Number;
|
|
772
|
+
readonly editsSucceeded: Schema.Number;
|
|
773
|
+
readonly inputTokens: Schema.Number;
|
|
774
|
+
readonly outputTokens: Schema.Number;
|
|
775
|
+
readonly verdict: Schema.String;
|
|
776
|
+
readonly diagnosis: Schema.String;
|
|
777
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
778
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
779
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
780
|
+
}>>;
|
|
781
|
+
}>, Schema.Struct<{
|
|
782
|
+
readonly selector: Schema.TaggedStruct<"run-events", {
|
|
783
|
+
readonly runId: Schema.String;
|
|
784
|
+
}>;
|
|
785
|
+
readonly cursor: Schema.Struct<{
|
|
786
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
787
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
788
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
789
|
+
readonly runId: Schema.String;
|
|
790
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
791
|
+
readonly runId: Schema.String;
|
|
792
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
793
|
+
readonly runId: Schema.String;
|
|
794
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
795
|
+
readonly runId: Schema.String;
|
|
796
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
797
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
798
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
799
|
+
readonly runId: Schema.String;
|
|
800
|
+
readonly nodeId: Schema.String;
|
|
801
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
802
|
+
readonly flowId: Schema.String;
|
|
803
|
+
}>]>;
|
|
804
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
805
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
806
|
+
readonly value: Schema.Int;
|
|
807
|
+
readonly offset: Schema.Int;
|
|
808
|
+
}>;
|
|
809
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
810
|
+
readonly cursor: Schema.optional<Schema.Struct<{
|
|
811
|
+
readonly sequence: Schema.Int;
|
|
812
|
+
readonly offset: Schema.optional<Schema.Int>;
|
|
813
|
+
}>>;
|
|
814
|
+
readonly sequence: Schema.Number;
|
|
815
|
+
readonly kind: Schema.String;
|
|
816
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
817
|
+
readonly occurredAt: Schema.Number;
|
|
818
|
+
readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
819
|
+
}>>;
|
|
820
|
+
}>, Schema.Struct<{
|
|
821
|
+
readonly selector: Schema.TaggedStruct<"transcript", {
|
|
822
|
+
readonly runId: Schema.String;
|
|
823
|
+
}>;
|
|
824
|
+
readonly cursor: Schema.Struct<{
|
|
825
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
826
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
827
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
828
|
+
readonly runId: Schema.String;
|
|
829
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
830
|
+
readonly runId: Schema.String;
|
|
831
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
832
|
+
readonly runId: Schema.String;
|
|
833
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
834
|
+
readonly runId: Schema.String;
|
|
835
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
836
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
837
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
838
|
+
readonly runId: Schema.String;
|
|
839
|
+
readonly nodeId: Schema.String;
|
|
840
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
841
|
+
readonly flowId: Schema.String;
|
|
842
|
+
}>]>;
|
|
843
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
844
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
845
|
+
readonly value: Schema.Int;
|
|
846
|
+
readonly offset: Schema.Int;
|
|
847
|
+
}>;
|
|
848
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
849
|
+
readonly runId: Schema.String;
|
|
850
|
+
readonly sequence: Schema.Number;
|
|
851
|
+
readonly turn: Schema.Number;
|
|
852
|
+
readonly at: Schema.Number;
|
|
853
|
+
readonly kind: Schema.String;
|
|
854
|
+
readonly callId: Schema.optional<Schema.String>;
|
|
855
|
+
readonly text: Schema.String;
|
|
856
|
+
}>>;
|
|
857
|
+
}>, Schema.Struct<{
|
|
858
|
+
readonly selector: Schema.TaggedStruct<"run-tree", {
|
|
859
|
+
readonly runId: Schema.String;
|
|
860
|
+
}>;
|
|
861
|
+
readonly cursor: Schema.Struct<{
|
|
862
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
863
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
864
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
865
|
+
readonly runId: Schema.String;
|
|
866
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
867
|
+
readonly runId: Schema.String;
|
|
868
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
869
|
+
readonly runId: Schema.String;
|
|
870
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
871
|
+
readonly runId: Schema.String;
|
|
872
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
873
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
874
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
875
|
+
readonly runId: Schema.String;
|
|
876
|
+
readonly nodeId: Schema.String;
|
|
877
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
878
|
+
readonly flowId: Schema.String;
|
|
879
|
+
}>]>;
|
|
880
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
881
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
882
|
+
readonly value: Schema.Int;
|
|
883
|
+
readonly offset: Schema.Int;
|
|
884
|
+
}>;
|
|
885
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
886
|
+
readonly runId: Schema.String;
|
|
887
|
+
readonly nodeId: Schema.String;
|
|
888
|
+
readonly label: Schema.String;
|
|
889
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "failed"]>;
|
|
890
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
891
|
+
readonly startedAt: Schema.Number;
|
|
892
|
+
readonly endedAt: Schema.optional<Schema.Number>;
|
|
893
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
894
|
+
}>>;
|
|
895
|
+
}>, Schema.Struct<{
|
|
896
|
+
readonly selector: Schema.TaggedStruct<"approvals", {
|
|
897
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
898
|
+
}>;
|
|
899
|
+
readonly cursor: Schema.Struct<{
|
|
900
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
901
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
902
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
903
|
+
readonly runId: Schema.String;
|
|
904
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
905
|
+
readonly runId: Schema.String;
|
|
906
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
907
|
+
readonly runId: Schema.String;
|
|
908
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
909
|
+
readonly runId: Schema.String;
|
|
910
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
911
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
912
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
913
|
+
readonly runId: Schema.String;
|
|
914
|
+
readonly nodeId: Schema.String;
|
|
915
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
916
|
+
readonly flowId: Schema.String;
|
|
917
|
+
}>]>;
|
|
918
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
919
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
920
|
+
readonly value: Schema.Int;
|
|
921
|
+
readonly offset: Schema.Int;
|
|
922
|
+
}>;
|
|
923
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
924
|
+
readonly runId: Schema.String;
|
|
925
|
+
readonly waitRunId: Schema.optional<Schema.String>;
|
|
926
|
+
readonly questionProvenance: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
927
|
+
readonly requestId: Schema.String;
|
|
928
|
+
readonly title: Schema.String;
|
|
929
|
+
readonly request: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
930
|
+
readonly payload: Schema.Struct<{
|
|
931
|
+
readonly target: Schema.Union<readonly [Schema.TaggedStruct<"Plan", {
|
|
932
|
+
readonly planId: Schema.String;
|
|
933
|
+
readonly digest: Schema.String;
|
|
934
|
+
readonly envelope: Schema.Struct<{
|
|
935
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
936
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
937
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
938
|
+
readonly budget: Schema.Struct<{
|
|
939
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
940
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
941
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
942
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
943
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
944
|
+
}>;
|
|
945
|
+
readonly host: Schema.optional<Schema.String>;
|
|
946
|
+
}>;
|
|
947
|
+
}>, Schema.TaggedStruct<"Node", {
|
|
948
|
+
readonly runId: Schema.String;
|
|
949
|
+
readonly requestId: Schema.String;
|
|
950
|
+
readonly digest: Schema.String;
|
|
951
|
+
readonly envelope: Schema.Struct<{
|
|
952
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
953
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
954
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
955
|
+
readonly budget: Schema.Struct<{
|
|
956
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
957
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
958
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
959
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
960
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
961
|
+
}>;
|
|
962
|
+
readonly host: Schema.optional<Schema.String>;
|
|
963
|
+
}>;
|
|
964
|
+
}>]>;
|
|
965
|
+
readonly scope: Schema.Literals<readonly ["once", "run", "remembered"]>;
|
|
966
|
+
readonly idempotencyKey: Schema.String;
|
|
967
|
+
}>;
|
|
968
|
+
readonly requestedAt: Schema.Number;
|
|
969
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
970
|
+
}>>;
|
|
971
|
+
}>, Schema.Struct<{
|
|
972
|
+
readonly selector: Schema.TaggedStruct<"node-output", {
|
|
973
|
+
readonly runId: Schema.String;
|
|
974
|
+
readonly nodeId: Schema.String;
|
|
975
|
+
}>;
|
|
976
|
+
readonly cursor: Schema.Struct<{
|
|
977
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
978
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
979
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
980
|
+
readonly runId: Schema.String;
|
|
981
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
982
|
+
readonly runId: Schema.String;
|
|
983
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
984
|
+
readonly runId: Schema.String;
|
|
985
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
986
|
+
readonly runId: Schema.String;
|
|
987
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
988
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
989
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
990
|
+
readonly runId: Schema.String;
|
|
991
|
+
readonly nodeId: Schema.String;
|
|
992
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
993
|
+
readonly flowId: Schema.String;
|
|
994
|
+
}>]>;
|
|
995
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
996
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
997
|
+
readonly value: Schema.Int;
|
|
998
|
+
readonly offset: Schema.Int;
|
|
999
|
+
}>;
|
|
1000
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
1001
|
+
readonly runId: Schema.String;
|
|
1002
|
+
readonly nodeId: Schema.String;
|
|
1003
|
+
readonly outcome: Schema.Literals<readonly ["success", "failure"]>;
|
|
1004
|
+
readonly output: Schema.String;
|
|
1005
|
+
readonly settledAt: Schema.Number;
|
|
1006
|
+
}>>;
|
|
1007
|
+
}>, Schema.Struct<{
|
|
1008
|
+
readonly selector: Schema.TaggedStruct<"flow-durations", {
|
|
1009
|
+
readonly flowId: Schema.String;
|
|
1010
|
+
}>;
|
|
1011
|
+
readonly cursor: Schema.Struct<{
|
|
1012
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1013
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1014
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1015
|
+
readonly runId: Schema.String;
|
|
1016
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1017
|
+
readonly runId: Schema.String;
|
|
1018
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1019
|
+
readonly runId: Schema.String;
|
|
1020
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1021
|
+
readonly runId: Schema.String;
|
|
1022
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1023
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1024
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1025
|
+
readonly runId: Schema.String;
|
|
1026
|
+
readonly nodeId: Schema.String;
|
|
1027
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1028
|
+
readonly flowId: Schema.String;
|
|
1029
|
+
}>]>;
|
|
1030
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1031
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1032
|
+
readonly value: Schema.Int;
|
|
1033
|
+
readonly offset: Schema.Int;
|
|
1034
|
+
}>;
|
|
1035
|
+
readonly rows: Schema.$Array<Schema.Struct<{
|
|
1036
|
+
readonly flowId: Schema.String;
|
|
1037
|
+
readonly actionTag: Schema.String;
|
|
1038
|
+
readonly samples: Schema.Number;
|
|
1039
|
+
readonly p50Ms: Schema.Number;
|
|
1040
|
+
readonly p90Ms: Schema.Number;
|
|
1041
|
+
}>>;
|
|
1042
|
+
}>]>;
|
|
1043
|
+
/**
|
|
1044
|
+
* A projection snapshot and the cursor it was read at.
|
|
1045
|
+
*
|
|
1046
|
+
* @since 1.0.0
|
|
1047
|
+
* @category models
|
|
1048
|
+
*/
|
|
1049
|
+
export type ProjectionSnapshot = typeof ProjectionSnapshot.Type;
|
|
1050
|
+
/**
|
|
1051
|
+
* The start of a selector snapshot.
|
|
1052
|
+
*
|
|
1053
|
+
* @since 0.1.0
|
|
1054
|
+
* @category models
|
|
1055
|
+
*/
|
|
1056
|
+
export declare const SnapshotStartFrame: Schema.TaggedStruct<"snapshot-start", {
|
|
1057
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1058
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1059
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1060
|
+
readonly runId: Schema.String;
|
|
1061
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1062
|
+
readonly runId: Schema.String;
|
|
1063
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1064
|
+
readonly runId: Schema.String;
|
|
1065
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1066
|
+
readonly runId: Schema.String;
|
|
1067
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1068
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1069
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1070
|
+
readonly runId: Schema.String;
|
|
1071
|
+
readonly nodeId: Schema.String;
|
|
1072
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1073
|
+
readonly flowId: Schema.String;
|
|
1074
|
+
}>]>;
|
|
1075
|
+
readonly cursor: Schema.Struct<{
|
|
1076
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1077
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1078
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1079
|
+
readonly runId: Schema.String;
|
|
1080
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1081
|
+
readonly runId: Schema.String;
|
|
1082
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1083
|
+
readonly runId: Schema.String;
|
|
1084
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1085
|
+
readonly runId: Schema.String;
|
|
1086
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1087
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1088
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1089
|
+
readonly runId: Schema.String;
|
|
1090
|
+
readonly nodeId: Schema.String;
|
|
1091
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1092
|
+
readonly flowId: Schema.String;
|
|
1093
|
+
}>]>;
|
|
1094
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1095
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1096
|
+
readonly value: Schema.Int;
|
|
1097
|
+
readonly offset: Schema.Int;
|
|
1098
|
+
}>;
|
|
1099
|
+
}>;
|
|
1100
|
+
/**
|
|
1101
|
+
* The start of a selector snapshot.
|
|
1102
|
+
*
|
|
1103
|
+
* @since 0.1.0
|
|
1104
|
+
* @category models
|
|
1105
|
+
*/
|
|
1106
|
+
export type SnapshotStartFrame = typeof SnapshotStartFrame.Type;
|
|
1107
|
+
/**
|
|
1108
|
+
* A row emitted during a selector snapshot.
|
|
1109
|
+
*
|
|
1110
|
+
* @since 0.1.0
|
|
1111
|
+
* @category models
|
|
1112
|
+
*/
|
|
1113
|
+
export declare const RowFrame: Schema.Union<readonly [Schema.TaggedStruct<"row", {
|
|
1114
|
+
readonly selector: Schema.TaggedStruct<"workspace-runs", {
|
|
1115
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1116
|
+
}>;
|
|
1117
|
+
readonly cursor: Schema.Struct<{
|
|
1118
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1119
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1120
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1121
|
+
readonly runId: Schema.String;
|
|
1122
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1123
|
+
readonly runId: Schema.String;
|
|
1124
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1125
|
+
readonly runId: Schema.String;
|
|
1126
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1127
|
+
readonly runId: Schema.String;
|
|
1128
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1129
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1130
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1131
|
+
readonly runId: Schema.String;
|
|
1132
|
+
readonly nodeId: Schema.String;
|
|
1133
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1134
|
+
readonly flowId: Schema.String;
|
|
1135
|
+
}>]>;
|
|
1136
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1137
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1138
|
+
readonly value: Schema.Int;
|
|
1139
|
+
readonly offset: Schema.Int;
|
|
1140
|
+
}>;
|
|
1141
|
+
readonly row: Schema.Struct<{
|
|
1142
|
+
readonly runId: Schema.String;
|
|
1143
|
+
readonly flowId: Schema.String;
|
|
1144
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
1145
|
+
readonly subjectId: Schema.String;
|
|
1146
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
1147
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
1148
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
1149
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
1150
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
1151
|
+
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"]>>;
|
|
1152
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
1153
|
+
readonly checkerId: Schema.String;
|
|
1154
|
+
readonly monitorId: Schema.String;
|
|
1155
|
+
readonly observedAt: Schema.Int;
|
|
1156
|
+
readonly expiresAt: Schema.Int;
|
|
1157
|
+
readonly evidenceSeq: Schema.Int;
|
|
1158
|
+
readonly incarnation: Schema.String;
|
|
1159
|
+
readonly version: Schema.Int;
|
|
1160
|
+
}>>;
|
|
1161
|
+
readonly updatedAt: Schema.Int;
|
|
1162
|
+
}>>;
|
|
1163
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
1164
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
1165
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
1166
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
1167
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
1168
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
1169
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
1170
|
+
}>>;
|
|
1171
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
1172
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
1173
|
+
readonly rootExecutionId: Schema.String;
|
|
1174
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
1175
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1176
|
+
readonly executionId: Schema.String;
|
|
1177
|
+
readonly generation: Schema.Number;
|
|
1178
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
1179
|
+
readonly fromSequence: Schema.Number;
|
|
1180
|
+
readonly throughSequence: Schema.Number;
|
|
1181
|
+
}>>>;
|
|
1182
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
1183
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
1184
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
1185
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
1186
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
1187
|
+
}>>;
|
|
1188
|
+
readonly createdAt: Schema.Number;
|
|
1189
|
+
readonly updatedAt: Schema.Number;
|
|
1190
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
1191
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
1192
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
1193
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
1194
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
1195
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
1196
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
1197
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
1198
|
+
readonly requestedAt: Schema.Number;
|
|
1199
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
1200
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
1201
|
+
readonly id: Schema.String;
|
|
1202
|
+
readonly kind: Schema.String;
|
|
1203
|
+
readonly stampedAt: Schema.Number;
|
|
1204
|
+
}>>;
|
|
1205
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1206
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
1207
|
+
}>>;
|
|
1208
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
1209
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
1210
|
+
readonly turns: Schema.Number;
|
|
1211
|
+
readonly calls: Schema.Number;
|
|
1212
|
+
readonly callsFailed: Schema.Number;
|
|
1213
|
+
readonly editsAttempted: Schema.Number;
|
|
1214
|
+
readonly editsSucceeded: Schema.Number;
|
|
1215
|
+
readonly inputTokens: Schema.Number;
|
|
1216
|
+
readonly outputTokens: Schema.Number;
|
|
1217
|
+
readonly verdict: Schema.String;
|
|
1218
|
+
readonly diagnosis: Schema.String;
|
|
1219
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
1220
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
1221
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
1222
|
+
}>;
|
|
1223
|
+
}>, Schema.TaggedStruct<"row", {
|
|
1224
|
+
readonly selector: Schema.TaggedStruct<"run-summary", {
|
|
1225
|
+
readonly runId: Schema.String;
|
|
1226
|
+
}>;
|
|
1227
|
+
readonly cursor: Schema.Struct<{
|
|
1228
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1229
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1230
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1231
|
+
readonly runId: Schema.String;
|
|
1232
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1233
|
+
readonly runId: Schema.String;
|
|
1234
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1235
|
+
readonly runId: Schema.String;
|
|
1236
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1237
|
+
readonly runId: Schema.String;
|
|
1238
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1239
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1240
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1241
|
+
readonly runId: Schema.String;
|
|
1242
|
+
readonly nodeId: Schema.String;
|
|
1243
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1244
|
+
readonly flowId: Schema.String;
|
|
1245
|
+
}>]>;
|
|
1246
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1247
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1248
|
+
readonly value: Schema.Int;
|
|
1249
|
+
readonly offset: Schema.Int;
|
|
1250
|
+
}>;
|
|
1251
|
+
readonly row: Schema.Struct<{
|
|
1252
|
+
readonly runId: Schema.String;
|
|
1253
|
+
readonly flowId: Schema.String;
|
|
1254
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
1255
|
+
readonly subjectId: Schema.String;
|
|
1256
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
1257
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
1258
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
1259
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
1260
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
1261
|
+
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"]>>;
|
|
1262
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
1263
|
+
readonly checkerId: Schema.String;
|
|
1264
|
+
readonly monitorId: Schema.String;
|
|
1265
|
+
readonly observedAt: Schema.Int;
|
|
1266
|
+
readonly expiresAt: Schema.Int;
|
|
1267
|
+
readonly evidenceSeq: Schema.Int;
|
|
1268
|
+
readonly incarnation: Schema.String;
|
|
1269
|
+
readonly version: Schema.Int;
|
|
1270
|
+
}>>;
|
|
1271
|
+
readonly updatedAt: Schema.Int;
|
|
1272
|
+
}>>;
|
|
1273
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
1274
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
1275
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
1276
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
1277
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
1278
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
1279
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
1280
|
+
}>>;
|
|
1281
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
1282
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
1283
|
+
readonly rootExecutionId: Schema.String;
|
|
1284
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
1285
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1286
|
+
readonly executionId: Schema.String;
|
|
1287
|
+
readonly generation: Schema.Number;
|
|
1288
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
1289
|
+
readonly fromSequence: Schema.Number;
|
|
1290
|
+
readonly throughSequence: Schema.Number;
|
|
1291
|
+
}>>>;
|
|
1292
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
1293
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
1294
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
1295
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
1296
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
1297
|
+
}>>;
|
|
1298
|
+
readonly createdAt: Schema.Number;
|
|
1299
|
+
readonly updatedAt: Schema.Number;
|
|
1300
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
1301
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
1302
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
1303
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
1304
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
1305
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
1306
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
1307
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
1308
|
+
readonly requestedAt: Schema.Number;
|
|
1309
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
1310
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
1311
|
+
readonly id: Schema.String;
|
|
1312
|
+
readonly kind: Schema.String;
|
|
1313
|
+
readonly stampedAt: Schema.Number;
|
|
1314
|
+
}>>;
|
|
1315
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1316
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
1317
|
+
}>>;
|
|
1318
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
1319
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
1320
|
+
readonly turns: Schema.Number;
|
|
1321
|
+
readonly calls: Schema.Number;
|
|
1322
|
+
readonly callsFailed: Schema.Number;
|
|
1323
|
+
readonly editsAttempted: Schema.Number;
|
|
1324
|
+
readonly editsSucceeded: Schema.Number;
|
|
1325
|
+
readonly inputTokens: Schema.Number;
|
|
1326
|
+
readonly outputTokens: Schema.Number;
|
|
1327
|
+
readonly verdict: Schema.String;
|
|
1328
|
+
readonly diagnosis: Schema.String;
|
|
1329
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
1330
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
1331
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
1332
|
+
}>;
|
|
1333
|
+
}>, Schema.TaggedStruct<"row", {
|
|
1334
|
+
readonly selector: Schema.TaggedStruct<"run-events", {
|
|
1335
|
+
readonly runId: Schema.String;
|
|
1336
|
+
}>;
|
|
1337
|
+
readonly cursor: Schema.Struct<{
|
|
1338
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1339
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1340
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1341
|
+
readonly runId: Schema.String;
|
|
1342
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1343
|
+
readonly runId: Schema.String;
|
|
1344
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1345
|
+
readonly runId: Schema.String;
|
|
1346
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1347
|
+
readonly runId: Schema.String;
|
|
1348
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1349
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1350
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1351
|
+
readonly runId: Schema.String;
|
|
1352
|
+
readonly nodeId: Schema.String;
|
|
1353
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1354
|
+
readonly flowId: Schema.String;
|
|
1355
|
+
}>]>;
|
|
1356
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1357
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1358
|
+
readonly value: Schema.Int;
|
|
1359
|
+
readonly offset: Schema.Int;
|
|
1360
|
+
}>;
|
|
1361
|
+
readonly row: Schema.Struct<{
|
|
1362
|
+
readonly cursor: Schema.optional<Schema.Struct<{
|
|
1363
|
+
readonly sequence: Schema.Int;
|
|
1364
|
+
readonly offset: Schema.optional<Schema.Int>;
|
|
1365
|
+
}>>;
|
|
1366
|
+
readonly sequence: Schema.Number;
|
|
1367
|
+
readonly kind: Schema.String;
|
|
1368
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1369
|
+
readonly occurredAt: Schema.Number;
|
|
1370
|
+
readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1371
|
+
}>;
|
|
1372
|
+
}>, Schema.TaggedStruct<"row", {
|
|
1373
|
+
readonly selector: Schema.TaggedStruct<"transcript", {
|
|
1374
|
+
readonly runId: Schema.String;
|
|
1375
|
+
}>;
|
|
1376
|
+
readonly cursor: Schema.Struct<{
|
|
1377
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1378
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1379
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1380
|
+
readonly runId: Schema.String;
|
|
1381
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1382
|
+
readonly runId: Schema.String;
|
|
1383
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1384
|
+
readonly runId: Schema.String;
|
|
1385
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1386
|
+
readonly runId: Schema.String;
|
|
1387
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1388
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1389
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1390
|
+
readonly runId: Schema.String;
|
|
1391
|
+
readonly nodeId: Schema.String;
|
|
1392
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1393
|
+
readonly flowId: Schema.String;
|
|
1394
|
+
}>]>;
|
|
1395
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1396
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1397
|
+
readonly value: Schema.Int;
|
|
1398
|
+
readonly offset: Schema.Int;
|
|
1399
|
+
}>;
|
|
1400
|
+
readonly row: Schema.Struct<{
|
|
1401
|
+
readonly runId: Schema.String;
|
|
1402
|
+
readonly sequence: Schema.Number;
|
|
1403
|
+
readonly turn: Schema.Number;
|
|
1404
|
+
readonly at: Schema.Number;
|
|
1405
|
+
readonly kind: Schema.String;
|
|
1406
|
+
readonly callId: Schema.optional<Schema.String>;
|
|
1407
|
+
readonly text: Schema.String;
|
|
1408
|
+
}>;
|
|
1409
|
+
}>, Schema.TaggedStruct<"row", {
|
|
1410
|
+
readonly selector: Schema.TaggedStruct<"run-tree", {
|
|
1411
|
+
readonly runId: Schema.String;
|
|
1412
|
+
}>;
|
|
1413
|
+
readonly cursor: Schema.Struct<{
|
|
1414
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1415
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1416
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1417
|
+
readonly runId: Schema.String;
|
|
1418
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1419
|
+
readonly runId: Schema.String;
|
|
1420
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1421
|
+
readonly runId: Schema.String;
|
|
1422
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1423
|
+
readonly runId: Schema.String;
|
|
1424
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1425
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1426
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1427
|
+
readonly runId: Schema.String;
|
|
1428
|
+
readonly nodeId: Schema.String;
|
|
1429
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1430
|
+
readonly flowId: Schema.String;
|
|
1431
|
+
}>]>;
|
|
1432
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1433
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1434
|
+
readonly value: Schema.Int;
|
|
1435
|
+
readonly offset: Schema.Int;
|
|
1436
|
+
}>;
|
|
1437
|
+
readonly row: Schema.Struct<{
|
|
1438
|
+
readonly runId: Schema.String;
|
|
1439
|
+
readonly nodeId: Schema.String;
|
|
1440
|
+
readonly label: Schema.String;
|
|
1441
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "failed"]>;
|
|
1442
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
1443
|
+
readonly startedAt: Schema.Number;
|
|
1444
|
+
readonly endedAt: Schema.optional<Schema.Number>;
|
|
1445
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
1446
|
+
}>;
|
|
1447
|
+
}>, Schema.TaggedStruct<"row", {
|
|
1448
|
+
readonly selector: Schema.TaggedStruct<"approvals", {
|
|
1449
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1450
|
+
}>;
|
|
1451
|
+
readonly cursor: Schema.Struct<{
|
|
1452
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1453
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1454
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1455
|
+
readonly runId: Schema.String;
|
|
1456
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1457
|
+
readonly runId: Schema.String;
|
|
1458
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1459
|
+
readonly runId: Schema.String;
|
|
1460
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1461
|
+
readonly runId: Schema.String;
|
|
1462
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1463
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1464
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1465
|
+
readonly runId: Schema.String;
|
|
1466
|
+
readonly nodeId: Schema.String;
|
|
1467
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1468
|
+
readonly flowId: Schema.String;
|
|
1469
|
+
}>]>;
|
|
1470
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1471
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1472
|
+
readonly value: Schema.Int;
|
|
1473
|
+
readonly offset: Schema.Int;
|
|
1474
|
+
}>;
|
|
1475
|
+
readonly row: Schema.Struct<{
|
|
1476
|
+
readonly runId: Schema.String;
|
|
1477
|
+
readonly waitRunId: Schema.optional<Schema.String>;
|
|
1478
|
+
readonly questionProvenance: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
1479
|
+
readonly requestId: Schema.String;
|
|
1480
|
+
readonly title: Schema.String;
|
|
1481
|
+
readonly request: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1482
|
+
readonly payload: Schema.Struct<{
|
|
1483
|
+
readonly target: Schema.Union<readonly [Schema.TaggedStruct<"Plan", {
|
|
1484
|
+
readonly planId: Schema.String;
|
|
1485
|
+
readonly digest: Schema.String;
|
|
1486
|
+
readonly envelope: Schema.Struct<{
|
|
1487
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
1488
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1489
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
1490
|
+
readonly budget: Schema.Struct<{
|
|
1491
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
1492
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
1493
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
1494
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
1495
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
1496
|
+
}>;
|
|
1497
|
+
readonly host: Schema.optional<Schema.String>;
|
|
1498
|
+
}>;
|
|
1499
|
+
}>, Schema.TaggedStruct<"Node", {
|
|
1500
|
+
readonly runId: Schema.String;
|
|
1501
|
+
readonly requestId: Schema.String;
|
|
1502
|
+
readonly digest: Schema.String;
|
|
1503
|
+
readonly envelope: Schema.Struct<{
|
|
1504
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
1505
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1506
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
1507
|
+
readonly budget: Schema.Struct<{
|
|
1508
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
1509
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
1510
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
1511
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
1512
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
1513
|
+
}>;
|
|
1514
|
+
readonly host: Schema.optional<Schema.String>;
|
|
1515
|
+
}>;
|
|
1516
|
+
}>]>;
|
|
1517
|
+
readonly scope: Schema.Literals<readonly ["once", "run", "remembered"]>;
|
|
1518
|
+
readonly idempotencyKey: Schema.String;
|
|
1519
|
+
}>;
|
|
1520
|
+
readonly requestedAt: Schema.Number;
|
|
1521
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
1522
|
+
}>;
|
|
1523
|
+
}>, Schema.TaggedStruct<"row", {
|
|
1524
|
+
readonly selector: Schema.TaggedStruct<"node-output", {
|
|
1525
|
+
readonly runId: Schema.String;
|
|
1526
|
+
readonly nodeId: Schema.String;
|
|
1527
|
+
}>;
|
|
1528
|
+
readonly cursor: Schema.Struct<{
|
|
1529
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1530
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1531
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1532
|
+
readonly runId: Schema.String;
|
|
1533
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1534
|
+
readonly runId: Schema.String;
|
|
1535
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1536
|
+
readonly runId: Schema.String;
|
|
1537
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1538
|
+
readonly runId: Schema.String;
|
|
1539
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1540
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1541
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1542
|
+
readonly runId: Schema.String;
|
|
1543
|
+
readonly nodeId: Schema.String;
|
|
1544
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1545
|
+
readonly flowId: Schema.String;
|
|
1546
|
+
}>]>;
|
|
1547
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1548
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1549
|
+
readonly value: Schema.Int;
|
|
1550
|
+
readonly offset: Schema.Int;
|
|
1551
|
+
}>;
|
|
1552
|
+
readonly row: Schema.Struct<{
|
|
1553
|
+
readonly runId: Schema.String;
|
|
1554
|
+
readonly nodeId: Schema.String;
|
|
1555
|
+
readonly outcome: Schema.Literals<readonly ["success", "failure"]>;
|
|
1556
|
+
readonly output: Schema.String;
|
|
1557
|
+
readonly settledAt: Schema.Number;
|
|
1558
|
+
}>;
|
|
1559
|
+
}>, Schema.TaggedStruct<"row", {
|
|
1560
|
+
readonly selector: Schema.TaggedStruct<"flow-durations", {
|
|
1561
|
+
readonly flowId: Schema.String;
|
|
1562
|
+
}>;
|
|
1563
|
+
readonly cursor: Schema.Struct<{
|
|
1564
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1565
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1566
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1567
|
+
readonly runId: Schema.String;
|
|
1568
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1569
|
+
readonly runId: Schema.String;
|
|
1570
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1571
|
+
readonly runId: Schema.String;
|
|
1572
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1573
|
+
readonly runId: Schema.String;
|
|
1574
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1575
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1576
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1577
|
+
readonly runId: Schema.String;
|
|
1578
|
+
readonly nodeId: Schema.String;
|
|
1579
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1580
|
+
readonly flowId: Schema.String;
|
|
1581
|
+
}>]>;
|
|
1582
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1583
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1584
|
+
readonly value: Schema.Int;
|
|
1585
|
+
readonly offset: Schema.Int;
|
|
1586
|
+
}>;
|
|
1587
|
+
readonly row: Schema.Struct<{
|
|
1588
|
+
readonly flowId: Schema.String;
|
|
1589
|
+
readonly actionTag: Schema.String;
|
|
1590
|
+
readonly samples: Schema.Number;
|
|
1591
|
+
readonly p50Ms: Schema.Number;
|
|
1592
|
+
readonly p90Ms: Schema.Number;
|
|
1593
|
+
}>;
|
|
1594
|
+
}>]>;
|
|
1595
|
+
/**
|
|
1596
|
+
* A row emitted during a selector snapshot.
|
|
1597
|
+
*
|
|
1598
|
+
* @since 0.1.0
|
|
1599
|
+
* @category models
|
|
1600
|
+
*/
|
|
1601
|
+
export type RowFrame = typeof RowFrame.Type;
|
|
1602
|
+
/**
|
|
1603
|
+
* The end of a selector snapshot.
|
|
1604
|
+
*
|
|
1605
|
+
* @since 0.1.0
|
|
1606
|
+
* @category models
|
|
1607
|
+
*/
|
|
1608
|
+
export declare const SnapshotEndFrame: Schema.TaggedStruct<"snapshot-end", {
|
|
1609
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1610
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1611
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1612
|
+
readonly runId: Schema.String;
|
|
1613
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1614
|
+
readonly runId: Schema.String;
|
|
1615
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1616
|
+
readonly runId: Schema.String;
|
|
1617
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1618
|
+
readonly runId: Schema.String;
|
|
1619
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1620
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1621
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1622
|
+
readonly runId: Schema.String;
|
|
1623
|
+
readonly nodeId: Schema.String;
|
|
1624
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1625
|
+
readonly flowId: Schema.String;
|
|
1626
|
+
}>]>;
|
|
1627
|
+
readonly cursor: Schema.Struct<{
|
|
1628
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1629
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1630
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1631
|
+
readonly runId: Schema.String;
|
|
1632
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1633
|
+
readonly runId: Schema.String;
|
|
1634
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1635
|
+
readonly runId: Schema.String;
|
|
1636
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1637
|
+
readonly runId: Schema.String;
|
|
1638
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1639
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1640
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1641
|
+
readonly runId: Schema.String;
|
|
1642
|
+
readonly nodeId: Schema.String;
|
|
1643
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1644
|
+
readonly flowId: Schema.String;
|
|
1645
|
+
}>]>;
|
|
1646
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1647
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1648
|
+
readonly value: Schema.Int;
|
|
1649
|
+
readonly offset: Schema.Int;
|
|
1650
|
+
}>;
|
|
1651
|
+
}>;
|
|
1652
|
+
/**
|
|
1653
|
+
* The end of a selector snapshot.
|
|
1654
|
+
*
|
|
1655
|
+
* @since 0.1.0
|
|
1656
|
+
* @category models
|
|
1657
|
+
*/
|
|
1658
|
+
export type SnapshotEndFrame = typeof SnapshotEndFrame.Type;
|
|
1659
|
+
/**
|
|
1660
|
+
* A projection mutation after snapshot completion.
|
|
1661
|
+
*
|
|
1662
|
+
* `delta` replaces the selector's rows, except for the two append-only
|
|
1663
|
+
* projections: a `run-events` delta carries the one event that arrived and a
|
|
1664
|
+
* `transcript` delta carries the rows that event contributed, and a client
|
|
1665
|
+
* appends those to the rows it already holds.
|
|
1666
|
+
*
|
|
1667
|
+
* @since 0.1.0
|
|
1668
|
+
* @category models
|
|
1669
|
+
*/
|
|
1670
|
+
export declare const DeltaFrame: Schema.Union<readonly [Schema.TaggedStruct<"delta", {
|
|
1671
|
+
readonly selector: Schema.TaggedStruct<"workspace-runs", {
|
|
1672
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1673
|
+
}>;
|
|
1674
|
+
readonly cursor: Schema.Struct<{
|
|
1675
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1676
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1677
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1678
|
+
readonly runId: Schema.String;
|
|
1679
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1680
|
+
readonly runId: Schema.String;
|
|
1681
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1682
|
+
readonly runId: Schema.String;
|
|
1683
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1684
|
+
readonly runId: Schema.String;
|
|
1685
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1686
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1687
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1688
|
+
readonly runId: Schema.String;
|
|
1689
|
+
readonly nodeId: Schema.String;
|
|
1690
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1691
|
+
readonly flowId: Schema.String;
|
|
1692
|
+
}>]>;
|
|
1693
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1694
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1695
|
+
readonly value: Schema.Int;
|
|
1696
|
+
readonly offset: Schema.Int;
|
|
1697
|
+
}>;
|
|
1698
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
1699
|
+
readonly runId: Schema.String;
|
|
1700
|
+
readonly flowId: Schema.String;
|
|
1701
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
1702
|
+
readonly subjectId: Schema.String;
|
|
1703
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
1704
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
1705
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
1706
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
1707
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
1708
|
+
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"]>>;
|
|
1709
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
1710
|
+
readonly checkerId: Schema.String;
|
|
1711
|
+
readonly monitorId: Schema.String;
|
|
1712
|
+
readonly observedAt: Schema.Int;
|
|
1713
|
+
readonly expiresAt: Schema.Int;
|
|
1714
|
+
readonly evidenceSeq: Schema.Int;
|
|
1715
|
+
readonly incarnation: Schema.String;
|
|
1716
|
+
readonly version: Schema.Int;
|
|
1717
|
+
}>>;
|
|
1718
|
+
readonly updatedAt: Schema.Int;
|
|
1719
|
+
}>>;
|
|
1720
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
1721
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
1722
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
1723
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
1724
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
1725
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
1726
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
1727
|
+
}>>;
|
|
1728
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
1729
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
1730
|
+
readonly rootExecutionId: Schema.String;
|
|
1731
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
1732
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1733
|
+
readonly executionId: Schema.String;
|
|
1734
|
+
readonly generation: Schema.Number;
|
|
1735
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
1736
|
+
readonly fromSequence: Schema.Number;
|
|
1737
|
+
readonly throughSequence: Schema.Number;
|
|
1738
|
+
}>>>;
|
|
1739
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
1740
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
1741
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
1742
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
1743
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
1744
|
+
}>>;
|
|
1745
|
+
readonly createdAt: Schema.Number;
|
|
1746
|
+
readonly updatedAt: Schema.Number;
|
|
1747
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
1748
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
1749
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
1750
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
1751
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
1752
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
1753
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
1754
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
1755
|
+
readonly requestedAt: Schema.Number;
|
|
1756
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
1757
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
1758
|
+
readonly id: Schema.String;
|
|
1759
|
+
readonly kind: Schema.String;
|
|
1760
|
+
readonly stampedAt: Schema.Number;
|
|
1761
|
+
}>>;
|
|
1762
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1763
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
1764
|
+
}>>;
|
|
1765
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
1766
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
1767
|
+
readonly turns: Schema.Number;
|
|
1768
|
+
readonly calls: Schema.Number;
|
|
1769
|
+
readonly callsFailed: Schema.Number;
|
|
1770
|
+
readonly editsAttempted: Schema.Number;
|
|
1771
|
+
readonly editsSucceeded: Schema.Number;
|
|
1772
|
+
readonly inputTokens: Schema.Number;
|
|
1773
|
+
readonly outputTokens: Schema.Number;
|
|
1774
|
+
readonly verdict: Schema.String;
|
|
1775
|
+
readonly diagnosis: Schema.String;
|
|
1776
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
1777
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
1778
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
1779
|
+
}>>;
|
|
1780
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
1781
|
+
readonly selector: Schema.TaggedStruct<"run-summary", {
|
|
1782
|
+
readonly runId: Schema.String;
|
|
1783
|
+
}>;
|
|
1784
|
+
readonly cursor: Schema.Struct<{
|
|
1785
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1786
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1787
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1788
|
+
readonly runId: Schema.String;
|
|
1789
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1790
|
+
readonly runId: Schema.String;
|
|
1791
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1792
|
+
readonly runId: Schema.String;
|
|
1793
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1794
|
+
readonly runId: Schema.String;
|
|
1795
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1796
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1797
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1798
|
+
readonly runId: Schema.String;
|
|
1799
|
+
readonly nodeId: Schema.String;
|
|
1800
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1801
|
+
readonly flowId: Schema.String;
|
|
1802
|
+
}>]>;
|
|
1803
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1804
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1805
|
+
readonly value: Schema.Int;
|
|
1806
|
+
readonly offset: Schema.Int;
|
|
1807
|
+
}>;
|
|
1808
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
1809
|
+
readonly runId: Schema.String;
|
|
1810
|
+
readonly flowId: Schema.String;
|
|
1811
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
1812
|
+
readonly subjectId: Schema.String;
|
|
1813
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
1814
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
1815
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
1816
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
1817
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
1818
|
+
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"]>>;
|
|
1819
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
1820
|
+
readonly checkerId: Schema.String;
|
|
1821
|
+
readonly monitorId: Schema.String;
|
|
1822
|
+
readonly observedAt: Schema.Int;
|
|
1823
|
+
readonly expiresAt: Schema.Int;
|
|
1824
|
+
readonly evidenceSeq: Schema.Int;
|
|
1825
|
+
readonly incarnation: Schema.String;
|
|
1826
|
+
readonly version: Schema.Int;
|
|
1827
|
+
}>>;
|
|
1828
|
+
readonly updatedAt: Schema.Int;
|
|
1829
|
+
}>>;
|
|
1830
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
1831
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
1832
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
1833
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
1834
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
1835
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
1836
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
1837
|
+
}>>;
|
|
1838
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
1839
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
1840
|
+
readonly rootExecutionId: Schema.String;
|
|
1841
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
1842
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1843
|
+
readonly executionId: Schema.String;
|
|
1844
|
+
readonly generation: Schema.Number;
|
|
1845
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
1846
|
+
readonly fromSequence: Schema.Number;
|
|
1847
|
+
readonly throughSequence: Schema.Number;
|
|
1848
|
+
}>>>;
|
|
1849
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
1850
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
1851
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
1852
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
1853
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
1854
|
+
}>>;
|
|
1855
|
+
readonly createdAt: Schema.Number;
|
|
1856
|
+
readonly updatedAt: Schema.Number;
|
|
1857
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
1858
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
1859
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
1860
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
1861
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
1862
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
1863
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
1864
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
1865
|
+
readonly requestedAt: Schema.Number;
|
|
1866
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
1867
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
1868
|
+
readonly id: Schema.String;
|
|
1869
|
+
readonly kind: Schema.String;
|
|
1870
|
+
readonly stampedAt: Schema.Number;
|
|
1871
|
+
}>>;
|
|
1872
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
1873
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
1874
|
+
}>>;
|
|
1875
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
1876
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
1877
|
+
readonly turns: Schema.Number;
|
|
1878
|
+
readonly calls: Schema.Number;
|
|
1879
|
+
readonly callsFailed: Schema.Number;
|
|
1880
|
+
readonly editsAttempted: Schema.Number;
|
|
1881
|
+
readonly editsSucceeded: Schema.Number;
|
|
1882
|
+
readonly inputTokens: Schema.Number;
|
|
1883
|
+
readonly outputTokens: Schema.Number;
|
|
1884
|
+
readonly verdict: Schema.String;
|
|
1885
|
+
readonly diagnosis: Schema.String;
|
|
1886
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
1887
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
1888
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
1889
|
+
}>>;
|
|
1890
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
1891
|
+
readonly selector: Schema.TaggedStruct<"run-events", {
|
|
1892
|
+
readonly runId: Schema.String;
|
|
1893
|
+
}>;
|
|
1894
|
+
readonly cursor: Schema.Struct<{
|
|
1895
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1896
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1897
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1898
|
+
readonly runId: Schema.String;
|
|
1899
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1900
|
+
readonly runId: Schema.String;
|
|
1901
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1902
|
+
readonly runId: Schema.String;
|
|
1903
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1904
|
+
readonly runId: Schema.String;
|
|
1905
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1906
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1907
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1908
|
+
readonly runId: Schema.String;
|
|
1909
|
+
readonly nodeId: Schema.String;
|
|
1910
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1911
|
+
readonly flowId: Schema.String;
|
|
1912
|
+
}>]>;
|
|
1913
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1914
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1915
|
+
readonly value: Schema.Int;
|
|
1916
|
+
readonly offset: Schema.Int;
|
|
1917
|
+
}>;
|
|
1918
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
1919
|
+
readonly cursor: Schema.optional<Schema.Struct<{
|
|
1920
|
+
readonly sequence: Schema.Int;
|
|
1921
|
+
readonly offset: Schema.optional<Schema.Int>;
|
|
1922
|
+
}>>;
|
|
1923
|
+
readonly sequence: Schema.Number;
|
|
1924
|
+
readonly kind: Schema.String;
|
|
1925
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1926
|
+
readonly occurredAt: Schema.Number;
|
|
1927
|
+
readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1928
|
+
}>>;
|
|
1929
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
1930
|
+
readonly selector: Schema.TaggedStruct<"transcript", {
|
|
1931
|
+
readonly runId: Schema.String;
|
|
1932
|
+
}>;
|
|
1933
|
+
readonly cursor: Schema.Struct<{
|
|
1934
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1935
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1936
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1937
|
+
readonly runId: Schema.String;
|
|
1938
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1939
|
+
readonly runId: Schema.String;
|
|
1940
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1941
|
+
readonly runId: Schema.String;
|
|
1942
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1943
|
+
readonly runId: Schema.String;
|
|
1944
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1945
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1946
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1947
|
+
readonly runId: Schema.String;
|
|
1948
|
+
readonly nodeId: Schema.String;
|
|
1949
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1950
|
+
readonly flowId: Schema.String;
|
|
1951
|
+
}>]>;
|
|
1952
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1953
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1954
|
+
readonly value: Schema.Int;
|
|
1955
|
+
readonly offset: Schema.Int;
|
|
1956
|
+
}>;
|
|
1957
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
1958
|
+
readonly runId: Schema.String;
|
|
1959
|
+
readonly sequence: Schema.Number;
|
|
1960
|
+
readonly turn: Schema.Number;
|
|
1961
|
+
readonly at: Schema.Number;
|
|
1962
|
+
readonly kind: Schema.String;
|
|
1963
|
+
readonly callId: Schema.optional<Schema.String>;
|
|
1964
|
+
readonly text: Schema.String;
|
|
1965
|
+
}>>;
|
|
1966
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
1967
|
+
readonly selector: Schema.TaggedStruct<"run-tree", {
|
|
1968
|
+
readonly runId: Schema.String;
|
|
1969
|
+
}>;
|
|
1970
|
+
readonly cursor: Schema.Struct<{
|
|
1971
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
1972
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
1973
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
1974
|
+
readonly runId: Schema.String;
|
|
1975
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
1976
|
+
readonly runId: Schema.String;
|
|
1977
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
1978
|
+
readonly runId: Schema.String;
|
|
1979
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
1980
|
+
readonly runId: Schema.String;
|
|
1981
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
1982
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
1983
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
1984
|
+
readonly runId: Schema.String;
|
|
1985
|
+
readonly nodeId: Schema.String;
|
|
1986
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
1987
|
+
readonly flowId: Schema.String;
|
|
1988
|
+
}>]>;
|
|
1989
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
1990
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
1991
|
+
readonly value: Schema.Int;
|
|
1992
|
+
readonly offset: Schema.Int;
|
|
1993
|
+
}>;
|
|
1994
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
1995
|
+
readonly runId: Schema.String;
|
|
1996
|
+
readonly nodeId: Schema.String;
|
|
1997
|
+
readonly label: Schema.String;
|
|
1998
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "failed"]>;
|
|
1999
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
2000
|
+
readonly startedAt: Schema.Number;
|
|
2001
|
+
readonly endedAt: Schema.optional<Schema.Number>;
|
|
2002
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
2003
|
+
}>>;
|
|
2004
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
2005
|
+
readonly selector: Schema.TaggedStruct<"approvals", {
|
|
2006
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2007
|
+
}>;
|
|
2008
|
+
readonly cursor: Schema.Struct<{
|
|
2009
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2010
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2011
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2012
|
+
readonly runId: Schema.String;
|
|
2013
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2014
|
+
readonly runId: Schema.String;
|
|
2015
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2016
|
+
readonly runId: Schema.String;
|
|
2017
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2018
|
+
readonly runId: Schema.String;
|
|
2019
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2020
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2021
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2022
|
+
readonly runId: Schema.String;
|
|
2023
|
+
readonly nodeId: Schema.String;
|
|
2024
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2025
|
+
readonly flowId: Schema.String;
|
|
2026
|
+
}>]>;
|
|
2027
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2028
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2029
|
+
readonly value: Schema.Int;
|
|
2030
|
+
readonly offset: Schema.Int;
|
|
2031
|
+
}>;
|
|
2032
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
2033
|
+
readonly runId: Schema.String;
|
|
2034
|
+
readonly waitRunId: Schema.optional<Schema.String>;
|
|
2035
|
+
readonly questionProvenance: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
2036
|
+
readonly requestId: Schema.String;
|
|
2037
|
+
readonly title: Schema.String;
|
|
2038
|
+
readonly request: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2039
|
+
readonly payload: Schema.Struct<{
|
|
2040
|
+
readonly target: Schema.Union<readonly [Schema.TaggedStruct<"Plan", {
|
|
2041
|
+
readonly planId: Schema.String;
|
|
2042
|
+
readonly digest: Schema.String;
|
|
2043
|
+
readonly envelope: Schema.Struct<{
|
|
2044
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
2045
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2046
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
2047
|
+
readonly budget: Schema.Struct<{
|
|
2048
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
2049
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
2050
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
2051
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
2052
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
2053
|
+
}>;
|
|
2054
|
+
readonly host: Schema.optional<Schema.String>;
|
|
2055
|
+
}>;
|
|
2056
|
+
}>, Schema.TaggedStruct<"Node", {
|
|
2057
|
+
readonly runId: Schema.String;
|
|
2058
|
+
readonly requestId: Schema.String;
|
|
2059
|
+
readonly digest: Schema.String;
|
|
2060
|
+
readonly envelope: Schema.Struct<{
|
|
2061
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
2062
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2063
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
2064
|
+
readonly budget: Schema.Struct<{
|
|
2065
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
2066
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
2067
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
2068
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
2069
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
2070
|
+
}>;
|
|
2071
|
+
readonly host: Schema.optional<Schema.String>;
|
|
2072
|
+
}>;
|
|
2073
|
+
}>]>;
|
|
2074
|
+
readonly scope: Schema.Literals<readonly ["once", "run", "remembered"]>;
|
|
2075
|
+
readonly idempotencyKey: Schema.String;
|
|
2076
|
+
}>;
|
|
2077
|
+
readonly requestedAt: Schema.Number;
|
|
2078
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
2079
|
+
}>>;
|
|
2080
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
2081
|
+
readonly selector: Schema.TaggedStruct<"node-output", {
|
|
2082
|
+
readonly runId: Schema.String;
|
|
2083
|
+
readonly nodeId: Schema.String;
|
|
2084
|
+
}>;
|
|
2085
|
+
readonly cursor: Schema.Struct<{
|
|
2086
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2087
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2088
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2089
|
+
readonly runId: Schema.String;
|
|
2090
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2091
|
+
readonly runId: Schema.String;
|
|
2092
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2093
|
+
readonly runId: Schema.String;
|
|
2094
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2095
|
+
readonly runId: Schema.String;
|
|
2096
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2097
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2098
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2099
|
+
readonly runId: Schema.String;
|
|
2100
|
+
readonly nodeId: Schema.String;
|
|
2101
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2102
|
+
readonly flowId: Schema.String;
|
|
2103
|
+
}>]>;
|
|
2104
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2105
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2106
|
+
readonly value: Schema.Int;
|
|
2107
|
+
readonly offset: Schema.Int;
|
|
2108
|
+
}>;
|
|
2109
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
2110
|
+
readonly runId: Schema.String;
|
|
2111
|
+
readonly nodeId: Schema.String;
|
|
2112
|
+
readonly outcome: Schema.Literals<readonly ["success", "failure"]>;
|
|
2113
|
+
readonly output: Schema.String;
|
|
2114
|
+
readonly settledAt: Schema.Number;
|
|
2115
|
+
}>>;
|
|
2116
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
2117
|
+
readonly selector: Schema.TaggedStruct<"flow-durations", {
|
|
2118
|
+
readonly flowId: Schema.String;
|
|
2119
|
+
}>;
|
|
2120
|
+
readonly cursor: Schema.Struct<{
|
|
2121
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2122
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2123
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2124
|
+
readonly runId: Schema.String;
|
|
2125
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2126
|
+
readonly runId: Schema.String;
|
|
2127
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2128
|
+
readonly runId: Schema.String;
|
|
2129
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2130
|
+
readonly runId: Schema.String;
|
|
2131
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2132
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2133
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2134
|
+
readonly runId: Schema.String;
|
|
2135
|
+
readonly nodeId: Schema.String;
|
|
2136
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2137
|
+
readonly flowId: Schema.String;
|
|
2138
|
+
}>]>;
|
|
2139
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2140
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2141
|
+
readonly value: Schema.Int;
|
|
2142
|
+
readonly offset: Schema.Int;
|
|
2143
|
+
}>;
|
|
2144
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
2145
|
+
readonly flowId: Schema.String;
|
|
2146
|
+
readonly actionTag: Schema.String;
|
|
2147
|
+
readonly samples: Schema.Number;
|
|
2148
|
+
readonly p50Ms: Schema.Number;
|
|
2149
|
+
readonly p90Ms: Schema.Number;
|
|
2150
|
+
}>>;
|
|
2151
|
+
}>]>;
|
|
2152
|
+
/**
|
|
2153
|
+
* A projection mutation after snapshot completion.
|
|
2154
|
+
*
|
|
2155
|
+
* @since 0.1.0
|
|
2156
|
+
* @category models
|
|
2157
|
+
*/
|
|
2158
|
+
export type DeltaFrame = typeof DeltaFrame.Type;
|
|
2159
|
+
/**
|
|
2160
|
+
* A keepalive frame for an active subscription.
|
|
2161
|
+
*
|
|
2162
|
+
* @since 0.1.0
|
|
2163
|
+
* @category models
|
|
2164
|
+
*/
|
|
2165
|
+
export declare const HeartbeatFrame: Schema.TaggedStruct<"heartbeat", {
|
|
2166
|
+
readonly atMs: Schema.Number;
|
|
2167
|
+
}>;
|
|
2168
|
+
/**
|
|
2169
|
+
* A keepalive frame for an active subscription.
|
|
2170
|
+
*
|
|
2171
|
+
* @since 0.1.0
|
|
2172
|
+
* @category models
|
|
2173
|
+
*/
|
|
2174
|
+
export type HeartbeatFrame = typeof HeartbeatFrame.Type;
|
|
2175
|
+
/**
|
|
2176
|
+
* A frame sent by the gateway subscription protocol.
|
|
2177
|
+
*
|
|
2178
|
+
* @since 0.1.0
|
|
2179
|
+
* @category models
|
|
2180
|
+
*/
|
|
2181
|
+
export declare const GatewayFrame: Schema.Union<readonly [Schema.TaggedStruct<"snapshot-start", {
|
|
2182
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2183
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2184
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2185
|
+
readonly runId: Schema.String;
|
|
2186
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2187
|
+
readonly runId: Schema.String;
|
|
2188
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2189
|
+
readonly runId: Schema.String;
|
|
2190
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2191
|
+
readonly runId: Schema.String;
|
|
2192
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2193
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2194
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2195
|
+
readonly runId: Schema.String;
|
|
2196
|
+
readonly nodeId: Schema.String;
|
|
2197
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2198
|
+
readonly flowId: Schema.String;
|
|
2199
|
+
}>]>;
|
|
2200
|
+
readonly cursor: Schema.Struct<{
|
|
2201
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2202
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2203
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2204
|
+
readonly runId: Schema.String;
|
|
2205
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2206
|
+
readonly runId: Schema.String;
|
|
2207
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2208
|
+
readonly runId: Schema.String;
|
|
2209
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2210
|
+
readonly runId: Schema.String;
|
|
2211
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2212
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2213
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2214
|
+
readonly runId: Schema.String;
|
|
2215
|
+
readonly nodeId: Schema.String;
|
|
2216
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2217
|
+
readonly flowId: Schema.String;
|
|
2218
|
+
}>]>;
|
|
2219
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2220
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2221
|
+
readonly value: Schema.Int;
|
|
2222
|
+
readonly offset: Schema.Int;
|
|
2223
|
+
}>;
|
|
2224
|
+
}>, Schema.TaggedStruct<"row", {
|
|
2225
|
+
readonly selector: Schema.TaggedStruct<"workspace-runs", {
|
|
2226
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2227
|
+
}>;
|
|
2228
|
+
readonly cursor: Schema.Struct<{
|
|
2229
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2230
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2231
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2232
|
+
readonly runId: Schema.String;
|
|
2233
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2234
|
+
readonly runId: Schema.String;
|
|
2235
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2236
|
+
readonly runId: Schema.String;
|
|
2237
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2238
|
+
readonly runId: Schema.String;
|
|
2239
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2240
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2241
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2242
|
+
readonly runId: Schema.String;
|
|
2243
|
+
readonly nodeId: Schema.String;
|
|
2244
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2245
|
+
readonly flowId: Schema.String;
|
|
2246
|
+
}>]>;
|
|
2247
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2248
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2249
|
+
readonly value: Schema.Int;
|
|
2250
|
+
readonly offset: Schema.Int;
|
|
2251
|
+
}>;
|
|
2252
|
+
readonly row: Schema.Struct<{
|
|
2253
|
+
readonly runId: Schema.String;
|
|
2254
|
+
readonly flowId: Schema.String;
|
|
2255
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
2256
|
+
readonly subjectId: Schema.String;
|
|
2257
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
2258
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
2259
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
2260
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
2261
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
2262
|
+
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"]>>;
|
|
2263
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
2264
|
+
readonly checkerId: Schema.String;
|
|
2265
|
+
readonly monitorId: Schema.String;
|
|
2266
|
+
readonly observedAt: Schema.Int;
|
|
2267
|
+
readonly expiresAt: Schema.Int;
|
|
2268
|
+
readonly evidenceSeq: Schema.Int;
|
|
2269
|
+
readonly incarnation: Schema.String;
|
|
2270
|
+
readonly version: Schema.Int;
|
|
2271
|
+
}>>;
|
|
2272
|
+
readonly updatedAt: Schema.Int;
|
|
2273
|
+
}>>;
|
|
2274
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
2275
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
2276
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
2277
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
2278
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
2279
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
2280
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
2281
|
+
}>>;
|
|
2282
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
2283
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
2284
|
+
readonly rootExecutionId: Schema.String;
|
|
2285
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
2286
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2287
|
+
readonly executionId: Schema.String;
|
|
2288
|
+
readonly generation: Schema.Number;
|
|
2289
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
2290
|
+
readonly fromSequence: Schema.Number;
|
|
2291
|
+
readonly throughSequence: Schema.Number;
|
|
2292
|
+
}>>>;
|
|
2293
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
2294
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
2295
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
2296
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
2297
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
2298
|
+
}>>;
|
|
2299
|
+
readonly createdAt: Schema.Number;
|
|
2300
|
+
readonly updatedAt: Schema.Number;
|
|
2301
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
2302
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
2303
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
2304
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
2305
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
2306
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
2307
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
2308
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
2309
|
+
readonly requestedAt: Schema.Number;
|
|
2310
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
2311
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
2312
|
+
readonly id: Schema.String;
|
|
2313
|
+
readonly kind: Schema.String;
|
|
2314
|
+
readonly stampedAt: Schema.Number;
|
|
2315
|
+
}>>;
|
|
2316
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
2317
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
2318
|
+
}>>;
|
|
2319
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
2320
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
2321
|
+
readonly turns: Schema.Number;
|
|
2322
|
+
readonly calls: Schema.Number;
|
|
2323
|
+
readonly callsFailed: Schema.Number;
|
|
2324
|
+
readonly editsAttempted: Schema.Number;
|
|
2325
|
+
readonly editsSucceeded: Schema.Number;
|
|
2326
|
+
readonly inputTokens: Schema.Number;
|
|
2327
|
+
readonly outputTokens: Schema.Number;
|
|
2328
|
+
readonly verdict: Schema.String;
|
|
2329
|
+
readonly diagnosis: Schema.String;
|
|
2330
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
2331
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
2332
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
2333
|
+
}>;
|
|
2334
|
+
}>, Schema.TaggedStruct<"row", {
|
|
2335
|
+
readonly selector: Schema.TaggedStruct<"run-summary", {
|
|
2336
|
+
readonly runId: Schema.String;
|
|
2337
|
+
}>;
|
|
2338
|
+
readonly cursor: Schema.Struct<{
|
|
2339
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2340
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2341
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2342
|
+
readonly runId: Schema.String;
|
|
2343
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2344
|
+
readonly runId: Schema.String;
|
|
2345
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2346
|
+
readonly runId: Schema.String;
|
|
2347
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2348
|
+
readonly runId: Schema.String;
|
|
2349
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2350
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2351
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2352
|
+
readonly runId: Schema.String;
|
|
2353
|
+
readonly nodeId: Schema.String;
|
|
2354
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2355
|
+
readonly flowId: Schema.String;
|
|
2356
|
+
}>]>;
|
|
2357
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2358
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2359
|
+
readonly value: Schema.Int;
|
|
2360
|
+
readonly offset: Schema.Int;
|
|
2361
|
+
}>;
|
|
2362
|
+
readonly row: Schema.Struct<{
|
|
2363
|
+
readonly runId: Schema.String;
|
|
2364
|
+
readonly flowId: Schema.String;
|
|
2365
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
2366
|
+
readonly subjectId: Schema.String;
|
|
2367
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
2368
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
2369
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
2370
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
2371
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
2372
|
+
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"]>>;
|
|
2373
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
2374
|
+
readonly checkerId: Schema.String;
|
|
2375
|
+
readonly monitorId: Schema.String;
|
|
2376
|
+
readonly observedAt: Schema.Int;
|
|
2377
|
+
readonly expiresAt: Schema.Int;
|
|
2378
|
+
readonly evidenceSeq: Schema.Int;
|
|
2379
|
+
readonly incarnation: Schema.String;
|
|
2380
|
+
readonly version: Schema.Int;
|
|
2381
|
+
}>>;
|
|
2382
|
+
readonly updatedAt: Schema.Int;
|
|
2383
|
+
}>>;
|
|
2384
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
2385
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
2386
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
2387
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
2388
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
2389
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
2390
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
2391
|
+
}>>;
|
|
2392
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
2393
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
2394
|
+
readonly rootExecutionId: Schema.String;
|
|
2395
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
2396
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2397
|
+
readonly executionId: Schema.String;
|
|
2398
|
+
readonly generation: Schema.Number;
|
|
2399
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
2400
|
+
readonly fromSequence: Schema.Number;
|
|
2401
|
+
readonly throughSequence: Schema.Number;
|
|
2402
|
+
}>>>;
|
|
2403
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
2404
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
2405
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
2406
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
2407
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
2408
|
+
}>>;
|
|
2409
|
+
readonly createdAt: Schema.Number;
|
|
2410
|
+
readonly updatedAt: Schema.Number;
|
|
2411
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
2412
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
2413
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
2414
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
2415
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
2416
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
2417
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
2418
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
2419
|
+
readonly requestedAt: Schema.Number;
|
|
2420
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
2421
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
2422
|
+
readonly id: Schema.String;
|
|
2423
|
+
readonly kind: Schema.String;
|
|
2424
|
+
readonly stampedAt: Schema.Number;
|
|
2425
|
+
}>>;
|
|
2426
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
2427
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
2428
|
+
}>>;
|
|
2429
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
2430
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
2431
|
+
readonly turns: Schema.Number;
|
|
2432
|
+
readonly calls: Schema.Number;
|
|
2433
|
+
readonly callsFailed: Schema.Number;
|
|
2434
|
+
readonly editsAttempted: Schema.Number;
|
|
2435
|
+
readonly editsSucceeded: Schema.Number;
|
|
2436
|
+
readonly inputTokens: Schema.Number;
|
|
2437
|
+
readonly outputTokens: Schema.Number;
|
|
2438
|
+
readonly verdict: Schema.String;
|
|
2439
|
+
readonly diagnosis: Schema.String;
|
|
2440
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
2441
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
2442
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
2443
|
+
}>;
|
|
2444
|
+
}>, Schema.TaggedStruct<"row", {
|
|
2445
|
+
readonly selector: Schema.TaggedStruct<"run-events", {
|
|
2446
|
+
readonly runId: Schema.String;
|
|
2447
|
+
}>;
|
|
2448
|
+
readonly cursor: Schema.Struct<{
|
|
2449
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2450
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2451
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2452
|
+
readonly runId: Schema.String;
|
|
2453
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2454
|
+
readonly runId: Schema.String;
|
|
2455
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2456
|
+
readonly runId: Schema.String;
|
|
2457
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2458
|
+
readonly runId: Schema.String;
|
|
2459
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2460
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2461
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2462
|
+
readonly runId: Schema.String;
|
|
2463
|
+
readonly nodeId: Schema.String;
|
|
2464
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2465
|
+
readonly flowId: Schema.String;
|
|
2466
|
+
}>]>;
|
|
2467
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2468
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2469
|
+
readonly value: Schema.Int;
|
|
2470
|
+
readonly offset: Schema.Int;
|
|
2471
|
+
}>;
|
|
2472
|
+
readonly row: Schema.Struct<{
|
|
2473
|
+
readonly cursor: Schema.optional<Schema.Struct<{
|
|
2474
|
+
readonly sequence: Schema.Int;
|
|
2475
|
+
readonly offset: Schema.optional<Schema.Int>;
|
|
2476
|
+
}>>;
|
|
2477
|
+
readonly sequence: Schema.Number;
|
|
2478
|
+
readonly kind: Schema.String;
|
|
2479
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2480
|
+
readonly occurredAt: Schema.Number;
|
|
2481
|
+
readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2482
|
+
}>;
|
|
2483
|
+
}>, Schema.TaggedStruct<"row", {
|
|
2484
|
+
readonly selector: Schema.TaggedStruct<"transcript", {
|
|
2485
|
+
readonly runId: Schema.String;
|
|
2486
|
+
}>;
|
|
2487
|
+
readonly cursor: Schema.Struct<{
|
|
2488
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2489
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2490
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2491
|
+
readonly runId: Schema.String;
|
|
2492
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2493
|
+
readonly runId: Schema.String;
|
|
2494
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2495
|
+
readonly runId: Schema.String;
|
|
2496
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2497
|
+
readonly runId: Schema.String;
|
|
2498
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2499
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2500
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2501
|
+
readonly runId: Schema.String;
|
|
2502
|
+
readonly nodeId: Schema.String;
|
|
2503
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2504
|
+
readonly flowId: Schema.String;
|
|
2505
|
+
}>]>;
|
|
2506
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2507
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2508
|
+
readonly value: Schema.Int;
|
|
2509
|
+
readonly offset: Schema.Int;
|
|
2510
|
+
}>;
|
|
2511
|
+
readonly row: Schema.Struct<{
|
|
2512
|
+
readonly runId: Schema.String;
|
|
2513
|
+
readonly sequence: Schema.Number;
|
|
2514
|
+
readonly turn: Schema.Number;
|
|
2515
|
+
readonly at: Schema.Number;
|
|
2516
|
+
readonly kind: Schema.String;
|
|
2517
|
+
readonly callId: Schema.optional<Schema.String>;
|
|
2518
|
+
readonly text: Schema.String;
|
|
2519
|
+
}>;
|
|
2520
|
+
}>, Schema.TaggedStruct<"row", {
|
|
2521
|
+
readonly selector: Schema.TaggedStruct<"run-tree", {
|
|
2522
|
+
readonly runId: Schema.String;
|
|
2523
|
+
}>;
|
|
2524
|
+
readonly cursor: Schema.Struct<{
|
|
2525
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2526
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2527
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2528
|
+
readonly runId: Schema.String;
|
|
2529
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2530
|
+
readonly runId: Schema.String;
|
|
2531
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2532
|
+
readonly runId: Schema.String;
|
|
2533
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2534
|
+
readonly runId: Schema.String;
|
|
2535
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2536
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2537
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2538
|
+
readonly runId: Schema.String;
|
|
2539
|
+
readonly nodeId: Schema.String;
|
|
2540
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2541
|
+
readonly flowId: Schema.String;
|
|
2542
|
+
}>]>;
|
|
2543
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2544
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2545
|
+
readonly value: Schema.Int;
|
|
2546
|
+
readonly offset: Schema.Int;
|
|
2547
|
+
}>;
|
|
2548
|
+
readonly row: Schema.Struct<{
|
|
2549
|
+
readonly runId: Schema.String;
|
|
2550
|
+
readonly nodeId: Schema.String;
|
|
2551
|
+
readonly label: Schema.String;
|
|
2552
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "failed"]>;
|
|
2553
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
2554
|
+
readonly startedAt: Schema.Number;
|
|
2555
|
+
readonly endedAt: Schema.optional<Schema.Number>;
|
|
2556
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
2557
|
+
}>;
|
|
2558
|
+
}>, Schema.TaggedStruct<"row", {
|
|
2559
|
+
readonly selector: Schema.TaggedStruct<"approvals", {
|
|
2560
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2561
|
+
}>;
|
|
2562
|
+
readonly cursor: Schema.Struct<{
|
|
2563
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2564
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2565
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2566
|
+
readonly runId: Schema.String;
|
|
2567
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2568
|
+
readonly runId: Schema.String;
|
|
2569
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2570
|
+
readonly runId: Schema.String;
|
|
2571
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2572
|
+
readonly runId: Schema.String;
|
|
2573
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2574
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2575
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2576
|
+
readonly runId: Schema.String;
|
|
2577
|
+
readonly nodeId: Schema.String;
|
|
2578
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2579
|
+
readonly flowId: Schema.String;
|
|
2580
|
+
}>]>;
|
|
2581
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2582
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2583
|
+
readonly value: Schema.Int;
|
|
2584
|
+
readonly offset: Schema.Int;
|
|
2585
|
+
}>;
|
|
2586
|
+
readonly row: Schema.Struct<{
|
|
2587
|
+
readonly runId: Schema.String;
|
|
2588
|
+
readonly waitRunId: Schema.optional<Schema.String>;
|
|
2589
|
+
readonly questionProvenance: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
2590
|
+
readonly requestId: Schema.String;
|
|
2591
|
+
readonly title: Schema.String;
|
|
2592
|
+
readonly request: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
2593
|
+
readonly payload: Schema.Struct<{
|
|
2594
|
+
readonly target: Schema.Union<readonly [Schema.TaggedStruct<"Plan", {
|
|
2595
|
+
readonly planId: Schema.String;
|
|
2596
|
+
readonly digest: Schema.String;
|
|
2597
|
+
readonly envelope: Schema.Struct<{
|
|
2598
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
2599
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2600
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
2601
|
+
readonly budget: Schema.Struct<{
|
|
2602
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
2603
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
2604
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
2605
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
2606
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
2607
|
+
}>;
|
|
2608
|
+
readonly host: Schema.optional<Schema.String>;
|
|
2609
|
+
}>;
|
|
2610
|
+
}>, Schema.TaggedStruct<"Node", {
|
|
2611
|
+
readonly runId: Schema.String;
|
|
2612
|
+
readonly requestId: Schema.String;
|
|
2613
|
+
readonly digest: Schema.String;
|
|
2614
|
+
readonly envelope: Schema.Struct<{
|
|
2615
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
2616
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2617
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
2618
|
+
readonly budget: Schema.Struct<{
|
|
2619
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
2620
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
2621
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
2622
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
2623
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
2624
|
+
}>;
|
|
2625
|
+
readonly host: Schema.optional<Schema.String>;
|
|
2626
|
+
}>;
|
|
2627
|
+
}>]>;
|
|
2628
|
+
readonly scope: Schema.Literals<readonly ["once", "run", "remembered"]>;
|
|
2629
|
+
readonly idempotencyKey: Schema.String;
|
|
2630
|
+
}>;
|
|
2631
|
+
readonly requestedAt: Schema.Number;
|
|
2632
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
2633
|
+
}>;
|
|
2634
|
+
}>, Schema.TaggedStruct<"row", {
|
|
2635
|
+
readonly selector: Schema.TaggedStruct<"node-output", {
|
|
2636
|
+
readonly runId: Schema.String;
|
|
2637
|
+
readonly nodeId: Schema.String;
|
|
2638
|
+
}>;
|
|
2639
|
+
readonly cursor: Schema.Struct<{
|
|
2640
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2641
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2642
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2643
|
+
readonly runId: Schema.String;
|
|
2644
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2645
|
+
readonly runId: Schema.String;
|
|
2646
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2647
|
+
readonly runId: Schema.String;
|
|
2648
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2649
|
+
readonly runId: Schema.String;
|
|
2650
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2651
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2652
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2653
|
+
readonly runId: Schema.String;
|
|
2654
|
+
readonly nodeId: Schema.String;
|
|
2655
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2656
|
+
readonly flowId: Schema.String;
|
|
2657
|
+
}>]>;
|
|
2658
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2659
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2660
|
+
readonly value: Schema.Int;
|
|
2661
|
+
readonly offset: Schema.Int;
|
|
2662
|
+
}>;
|
|
2663
|
+
readonly row: Schema.Struct<{
|
|
2664
|
+
readonly runId: Schema.String;
|
|
2665
|
+
readonly nodeId: Schema.String;
|
|
2666
|
+
readonly outcome: Schema.Literals<readonly ["success", "failure"]>;
|
|
2667
|
+
readonly output: Schema.String;
|
|
2668
|
+
readonly settledAt: Schema.Number;
|
|
2669
|
+
}>;
|
|
2670
|
+
}>, Schema.TaggedStruct<"row", {
|
|
2671
|
+
readonly selector: Schema.TaggedStruct<"flow-durations", {
|
|
2672
|
+
readonly flowId: Schema.String;
|
|
2673
|
+
}>;
|
|
2674
|
+
readonly cursor: Schema.Struct<{
|
|
2675
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2676
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2677
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2678
|
+
readonly runId: Schema.String;
|
|
2679
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2680
|
+
readonly runId: Schema.String;
|
|
2681
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2682
|
+
readonly runId: Schema.String;
|
|
2683
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2684
|
+
readonly runId: Schema.String;
|
|
2685
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2686
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2687
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2688
|
+
readonly runId: Schema.String;
|
|
2689
|
+
readonly nodeId: Schema.String;
|
|
2690
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2691
|
+
readonly flowId: Schema.String;
|
|
2692
|
+
}>]>;
|
|
2693
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2694
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2695
|
+
readonly value: Schema.Int;
|
|
2696
|
+
readonly offset: Schema.Int;
|
|
2697
|
+
}>;
|
|
2698
|
+
readonly row: Schema.Struct<{
|
|
2699
|
+
readonly flowId: Schema.String;
|
|
2700
|
+
readonly actionTag: Schema.String;
|
|
2701
|
+
readonly samples: Schema.Number;
|
|
2702
|
+
readonly p50Ms: Schema.Number;
|
|
2703
|
+
readonly p90Ms: Schema.Number;
|
|
2704
|
+
}>;
|
|
2705
|
+
}>, Schema.TaggedStruct<"snapshot-end", {
|
|
2706
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2707
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2708
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2709
|
+
readonly runId: Schema.String;
|
|
2710
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2711
|
+
readonly runId: Schema.String;
|
|
2712
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2713
|
+
readonly runId: Schema.String;
|
|
2714
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2715
|
+
readonly runId: Schema.String;
|
|
2716
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2717
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2718
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2719
|
+
readonly runId: Schema.String;
|
|
2720
|
+
readonly nodeId: Schema.String;
|
|
2721
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2722
|
+
readonly flowId: Schema.String;
|
|
2723
|
+
}>]>;
|
|
2724
|
+
readonly cursor: Schema.Struct<{
|
|
2725
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2726
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2727
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2728
|
+
readonly runId: Schema.String;
|
|
2729
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2730
|
+
readonly runId: Schema.String;
|
|
2731
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2732
|
+
readonly runId: Schema.String;
|
|
2733
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2734
|
+
readonly runId: Schema.String;
|
|
2735
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2736
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2737
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2738
|
+
readonly runId: Schema.String;
|
|
2739
|
+
readonly nodeId: Schema.String;
|
|
2740
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2741
|
+
readonly flowId: Schema.String;
|
|
2742
|
+
}>]>;
|
|
2743
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2744
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2745
|
+
readonly value: Schema.Int;
|
|
2746
|
+
readonly offset: Schema.Int;
|
|
2747
|
+
}>;
|
|
2748
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
2749
|
+
readonly selector: Schema.TaggedStruct<"workspace-runs", {
|
|
2750
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2751
|
+
}>;
|
|
2752
|
+
readonly cursor: Schema.Struct<{
|
|
2753
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2754
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2755
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2756
|
+
readonly runId: Schema.String;
|
|
2757
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2758
|
+
readonly runId: Schema.String;
|
|
2759
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2760
|
+
readonly runId: Schema.String;
|
|
2761
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2762
|
+
readonly runId: Schema.String;
|
|
2763
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2764
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2765
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2766
|
+
readonly runId: Schema.String;
|
|
2767
|
+
readonly nodeId: Schema.String;
|
|
2768
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2769
|
+
readonly flowId: Schema.String;
|
|
2770
|
+
}>]>;
|
|
2771
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2772
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2773
|
+
readonly value: Schema.Int;
|
|
2774
|
+
readonly offset: Schema.Int;
|
|
2775
|
+
}>;
|
|
2776
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
2777
|
+
readonly runId: Schema.String;
|
|
2778
|
+
readonly flowId: Schema.String;
|
|
2779
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
2780
|
+
readonly subjectId: Schema.String;
|
|
2781
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
2782
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
2783
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
2784
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
2785
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
2786
|
+
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"]>>;
|
|
2787
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
2788
|
+
readonly checkerId: Schema.String;
|
|
2789
|
+
readonly monitorId: Schema.String;
|
|
2790
|
+
readonly observedAt: Schema.Int;
|
|
2791
|
+
readonly expiresAt: Schema.Int;
|
|
2792
|
+
readonly evidenceSeq: Schema.Int;
|
|
2793
|
+
readonly incarnation: Schema.String;
|
|
2794
|
+
readonly version: Schema.Int;
|
|
2795
|
+
}>>;
|
|
2796
|
+
readonly updatedAt: Schema.Int;
|
|
2797
|
+
}>>;
|
|
2798
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
2799
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
2800
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
2801
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
2802
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
2803
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
2804
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
2805
|
+
}>>;
|
|
2806
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
2807
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
2808
|
+
readonly rootExecutionId: Schema.String;
|
|
2809
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
2810
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2811
|
+
readonly executionId: Schema.String;
|
|
2812
|
+
readonly generation: Schema.Number;
|
|
2813
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
2814
|
+
readonly fromSequence: Schema.Number;
|
|
2815
|
+
readonly throughSequence: Schema.Number;
|
|
2816
|
+
}>>>;
|
|
2817
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
2818
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
2819
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
2820
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
2821
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
2822
|
+
}>>;
|
|
2823
|
+
readonly createdAt: Schema.Number;
|
|
2824
|
+
readonly updatedAt: Schema.Number;
|
|
2825
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
2826
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
2827
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
2828
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
2829
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
2830
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
2831
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
2832
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
2833
|
+
readonly requestedAt: Schema.Number;
|
|
2834
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
2835
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
2836
|
+
readonly id: Schema.String;
|
|
2837
|
+
readonly kind: Schema.String;
|
|
2838
|
+
readonly stampedAt: Schema.Number;
|
|
2839
|
+
}>>;
|
|
2840
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
2841
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
2842
|
+
}>>;
|
|
2843
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
2844
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
2845
|
+
readonly turns: Schema.Number;
|
|
2846
|
+
readonly calls: Schema.Number;
|
|
2847
|
+
readonly callsFailed: Schema.Number;
|
|
2848
|
+
readonly editsAttempted: Schema.Number;
|
|
2849
|
+
readonly editsSucceeded: Schema.Number;
|
|
2850
|
+
readonly inputTokens: Schema.Number;
|
|
2851
|
+
readonly outputTokens: Schema.Number;
|
|
2852
|
+
readonly verdict: Schema.String;
|
|
2853
|
+
readonly diagnosis: Schema.String;
|
|
2854
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
2855
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
2856
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
2857
|
+
}>>;
|
|
2858
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
2859
|
+
readonly selector: Schema.TaggedStruct<"run-summary", {
|
|
2860
|
+
readonly runId: Schema.String;
|
|
2861
|
+
}>;
|
|
2862
|
+
readonly cursor: Schema.Struct<{
|
|
2863
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2864
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2865
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2866
|
+
readonly runId: Schema.String;
|
|
2867
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2868
|
+
readonly runId: Schema.String;
|
|
2869
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2870
|
+
readonly runId: Schema.String;
|
|
2871
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2872
|
+
readonly runId: Schema.String;
|
|
2873
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2874
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2875
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2876
|
+
readonly runId: Schema.String;
|
|
2877
|
+
readonly nodeId: Schema.String;
|
|
2878
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2879
|
+
readonly flowId: Schema.String;
|
|
2880
|
+
}>]>;
|
|
2881
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2882
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2883
|
+
readonly value: Schema.Int;
|
|
2884
|
+
readonly offset: Schema.Int;
|
|
2885
|
+
}>;
|
|
2886
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
2887
|
+
readonly runId: Schema.String;
|
|
2888
|
+
readonly flowId: Schema.String;
|
|
2889
|
+
readonly statusRollup: Schema.optional<Schema.Struct<{
|
|
2890
|
+
readonly subjectId: Schema.String;
|
|
2891
|
+
readonly state: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "completed", "failed", "cancelled", "spawning", "exited"]>;
|
|
2892
|
+
readonly activity: Schema.Literals<readonly ["working", "idle", "needs-input", "unknown"]>;
|
|
2893
|
+
readonly health: Schema.Literals<readonly ["healthy", "stalled", "wedged-node", "runaway-loop", "awaiting-human", "failing", "unknown"]>;
|
|
2894
|
+
readonly attention: Schema.Literals<readonly ["none", "awaiting-approval", "needs-input", "needs-resume", "unhealthy"]>;
|
|
2895
|
+
readonly freshness: Schema.Literals<readonly ["fresh", "stale", "unobserved"]>;
|
|
2896
|
+
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"]>>;
|
|
2897
|
+
readonly provenance: Schema.optional<Schema.Struct<{
|
|
2898
|
+
readonly checkerId: Schema.String;
|
|
2899
|
+
readonly monitorId: Schema.String;
|
|
2900
|
+
readonly observedAt: Schema.Int;
|
|
2901
|
+
readonly expiresAt: Schema.Int;
|
|
2902
|
+
readonly evidenceSeq: Schema.Int;
|
|
2903
|
+
readonly incarnation: Schema.String;
|
|
2904
|
+
readonly version: Schema.Int;
|
|
2905
|
+
}>>;
|
|
2906
|
+
readonly updatedAt: Schema.Int;
|
|
2907
|
+
}>>;
|
|
2908
|
+
readonly status: Schema.Literals<readonly ["accepted", "running", "parked", "waiting-approval", "cancelled", "completed", "failed"]>;
|
|
2909
|
+
readonly lifecycleProvenance: Schema.optional<Schema.Struct<{
|
|
2910
|
+
readonly control: Schema.Literals<readonly ["events", "legacy-snapshot", "unverified-snapshot"]>;
|
|
2911
|
+
readonly execution: Schema.Literals<readonly ["control", "engine-observed", "engine-missing"]>;
|
|
2912
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
2913
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
2914
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
2915
|
+
}>>;
|
|
2916
|
+
readonly executionProvenance: Schema.optional<Schema.Struct<{
|
|
2917
|
+
readonly source: Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>;
|
|
2918
|
+
readonly rootExecutionId: Schema.String;
|
|
2919
|
+
readonly humanWaits: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
2920
|
+
readonly humanWaitSources: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2921
|
+
readonly executionId: Schema.String;
|
|
2922
|
+
readonly generation: Schema.Number;
|
|
2923
|
+
readonly baseline: Schema.Literals<readonly ["created", "legacy"]>;
|
|
2924
|
+
readonly fromSequence: Schema.Number;
|
|
2925
|
+
readonly throughSequence: Schema.Number;
|
|
2926
|
+
}>>>;
|
|
2927
|
+
readonly currentExecutionId: Schema.optional<Schema.String>;
|
|
2928
|
+
readonly generation: Schema.optional<Schema.Number>;
|
|
2929
|
+
readonly baseline: Schema.optional<Schema.Literals<readonly ["created", "legacy"]>>;
|
|
2930
|
+
readonly fromSequence: Schema.optional<Schema.Number>;
|
|
2931
|
+
readonly throughSequence: Schema.optional<Schema.Number>;
|
|
2932
|
+
}>>;
|
|
2933
|
+
readonly createdAt: Schema.Number;
|
|
2934
|
+
readonly updatedAt: Schema.Number;
|
|
2935
|
+
readonly planId: Schema.optional<Schema.String>;
|
|
2936
|
+
readonly planDigest: Schema.optional<Schema.String>;
|
|
2937
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
2938
|
+
readonly lineageId: Schema.optional<Schema.String>;
|
|
2939
|
+
readonly roundOrdinal: Schema.optional<Schema.Number>;
|
|
2940
|
+
readonly waitingReason: Schema.optional<Schema.String>;
|
|
2941
|
+
readonly steeringPending: Schema.optional<Schema.Number>;
|
|
2942
|
+
readonly cancellation: Schema.optional<Schema.Struct<{
|
|
2943
|
+
readonly requestedAt: Schema.Number;
|
|
2944
|
+
readonly source: Schema.Literals<readonly ["control", "engine", "cascade"]>;
|
|
2945
|
+
readonly principal: Schema.optional<Schema.Struct<{
|
|
2946
|
+
readonly id: Schema.String;
|
|
2947
|
+
readonly kind: Schema.String;
|
|
2948
|
+
readonly stampedAt: Schema.Number;
|
|
2949
|
+
}>>;
|
|
2950
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
2951
|
+
readonly cascadedFrom: Schema.optional<Schema.String>;
|
|
2952
|
+
}>>;
|
|
2953
|
+
readonly deadlineAt: Schema.optional<Schema.Number>;
|
|
2954
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
2955
|
+
readonly turns: Schema.Number;
|
|
2956
|
+
readonly calls: Schema.Number;
|
|
2957
|
+
readonly callsFailed: Schema.Number;
|
|
2958
|
+
readonly editsAttempted: Schema.Number;
|
|
2959
|
+
readonly editsSucceeded: Schema.Number;
|
|
2960
|
+
readonly inputTokens: Schema.Number;
|
|
2961
|
+
readonly outputTokens: Schema.Number;
|
|
2962
|
+
readonly verdict: Schema.String;
|
|
2963
|
+
readonly diagnosis: Schema.String;
|
|
2964
|
+
readonly finalOutput: Schema.optional<Schema.String>;
|
|
2965
|
+
readonly failureFault: Schema.optional<Schema.Literals<readonly ["user", "wait", "infra", "dependency", "bug", "factory", "policy"]>>;
|
|
2966
|
+
readonly failureTag: Schema.optional<Schema.String>;
|
|
2967
|
+
}>>;
|
|
2968
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
2969
|
+
readonly selector: Schema.TaggedStruct<"run-events", {
|
|
2970
|
+
readonly runId: Schema.String;
|
|
2971
|
+
}>;
|
|
2972
|
+
readonly cursor: Schema.Struct<{
|
|
2973
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
2974
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
2975
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
2976
|
+
readonly runId: Schema.String;
|
|
2977
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
2978
|
+
readonly runId: Schema.String;
|
|
2979
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
2980
|
+
readonly runId: Schema.String;
|
|
2981
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
2982
|
+
readonly runId: Schema.String;
|
|
2983
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
2984
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
2985
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
2986
|
+
readonly runId: Schema.String;
|
|
2987
|
+
readonly nodeId: Schema.String;
|
|
2988
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
2989
|
+
readonly flowId: Schema.String;
|
|
2990
|
+
}>]>;
|
|
2991
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
2992
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
2993
|
+
readonly value: Schema.Int;
|
|
2994
|
+
readonly offset: Schema.Int;
|
|
2995
|
+
}>;
|
|
2996
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
2997
|
+
readonly cursor: Schema.optional<Schema.Struct<{
|
|
2998
|
+
readonly sequence: Schema.Int;
|
|
2999
|
+
readonly offset: Schema.optional<Schema.Int>;
|
|
3000
|
+
}>>;
|
|
3001
|
+
readonly sequence: Schema.Number;
|
|
3002
|
+
readonly kind: Schema.String;
|
|
3003
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
3004
|
+
readonly occurredAt: Schema.Number;
|
|
3005
|
+
readonly payload: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3006
|
+
}>>;
|
|
3007
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
3008
|
+
readonly selector: Schema.TaggedStruct<"transcript", {
|
|
3009
|
+
readonly runId: Schema.String;
|
|
3010
|
+
}>;
|
|
3011
|
+
readonly cursor: Schema.Struct<{
|
|
3012
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
3013
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
3014
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
3015
|
+
readonly runId: Schema.String;
|
|
3016
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
3017
|
+
readonly runId: Schema.String;
|
|
3018
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
3019
|
+
readonly runId: Schema.String;
|
|
3020
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
3021
|
+
readonly runId: Schema.String;
|
|
3022
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
3023
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
3024
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
3025
|
+
readonly runId: Schema.String;
|
|
3026
|
+
readonly nodeId: Schema.String;
|
|
3027
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
3028
|
+
readonly flowId: Schema.String;
|
|
3029
|
+
}>]>;
|
|
3030
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
3031
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
3032
|
+
readonly value: Schema.Int;
|
|
3033
|
+
readonly offset: Schema.Int;
|
|
3034
|
+
}>;
|
|
3035
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
3036
|
+
readonly runId: Schema.String;
|
|
3037
|
+
readonly sequence: Schema.Number;
|
|
3038
|
+
readonly turn: Schema.Number;
|
|
3039
|
+
readonly at: Schema.Number;
|
|
3040
|
+
readonly kind: Schema.String;
|
|
3041
|
+
readonly callId: Schema.optional<Schema.String>;
|
|
3042
|
+
readonly text: Schema.String;
|
|
3043
|
+
}>>;
|
|
3044
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
3045
|
+
readonly selector: Schema.TaggedStruct<"run-tree", {
|
|
3046
|
+
readonly runId: Schema.String;
|
|
3047
|
+
}>;
|
|
3048
|
+
readonly cursor: Schema.Struct<{
|
|
3049
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
3050
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
3051
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
3052
|
+
readonly runId: Schema.String;
|
|
3053
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
3054
|
+
readonly runId: Schema.String;
|
|
3055
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
3056
|
+
readonly runId: Schema.String;
|
|
3057
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
3058
|
+
readonly runId: Schema.String;
|
|
3059
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
3060
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
3061
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
3062
|
+
readonly runId: Schema.String;
|
|
3063
|
+
readonly nodeId: Schema.String;
|
|
3064
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
3065
|
+
readonly flowId: Schema.String;
|
|
3066
|
+
}>]>;
|
|
3067
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
3068
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
3069
|
+
readonly value: Schema.Int;
|
|
3070
|
+
readonly offset: Schema.Int;
|
|
3071
|
+
}>;
|
|
3072
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
3073
|
+
readonly runId: Schema.String;
|
|
3074
|
+
readonly nodeId: Schema.String;
|
|
3075
|
+
readonly label: Schema.String;
|
|
3076
|
+
readonly status: Schema.Literals<readonly ["running", "completed", "failed"]>;
|
|
3077
|
+
readonly seat: Schema.optional<Schema.String>;
|
|
3078
|
+
readonly startedAt: Schema.Number;
|
|
3079
|
+
readonly endedAt: Schema.optional<Schema.Number>;
|
|
3080
|
+
readonly parentRunId: Schema.optional<Schema.String>;
|
|
3081
|
+
}>>;
|
|
3082
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
3083
|
+
readonly selector: Schema.TaggedStruct<"approvals", {
|
|
3084
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
3085
|
+
}>;
|
|
3086
|
+
readonly cursor: Schema.Struct<{
|
|
3087
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
3088
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
3089
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
3090
|
+
readonly runId: Schema.String;
|
|
3091
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
3092
|
+
readonly runId: Schema.String;
|
|
3093
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
3094
|
+
readonly runId: Schema.String;
|
|
3095
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
3096
|
+
readonly runId: Schema.String;
|
|
3097
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
3098
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
3099
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
3100
|
+
readonly runId: Schema.String;
|
|
3101
|
+
readonly nodeId: Schema.String;
|
|
3102
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
3103
|
+
readonly flowId: Schema.String;
|
|
3104
|
+
}>]>;
|
|
3105
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
3106
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
3107
|
+
readonly value: Schema.Int;
|
|
3108
|
+
readonly offset: Schema.Int;
|
|
3109
|
+
}>;
|
|
3110
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
3111
|
+
readonly runId: Schema.String;
|
|
3112
|
+
readonly waitRunId: Schema.optional<Schema.String>;
|
|
3113
|
+
readonly questionProvenance: Schema.optional<Schema.Literals<readonly ["events", "legacy-observation", "unverified-observation"]>>;
|
|
3114
|
+
readonly requestId: Schema.String;
|
|
3115
|
+
readonly title: Schema.String;
|
|
3116
|
+
readonly request: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
3117
|
+
readonly payload: Schema.Struct<{
|
|
3118
|
+
readonly target: Schema.Union<readonly [Schema.TaggedStruct<"Plan", {
|
|
3119
|
+
readonly planId: Schema.String;
|
|
3120
|
+
readonly digest: Schema.String;
|
|
3121
|
+
readonly envelope: Schema.Struct<{
|
|
3122
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
3123
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
3124
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
3125
|
+
readonly budget: Schema.Struct<{
|
|
3126
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
3127
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
3128
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
3129
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
3130
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
3131
|
+
}>;
|
|
3132
|
+
readonly host: Schema.optional<Schema.String>;
|
|
3133
|
+
}>;
|
|
3134
|
+
}>, Schema.TaggedStruct<"Node", {
|
|
3135
|
+
readonly runId: Schema.String;
|
|
3136
|
+
readonly requestId: Schema.String;
|
|
3137
|
+
readonly digest: Schema.String;
|
|
3138
|
+
readonly envelope: Schema.Struct<{
|
|
3139
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
3140
|
+
readonly hostImports: Schema.optional<Schema.$Array<Schema.String>>;
|
|
3141
|
+
readonly flows: Schema.$Array<Schema.String>;
|
|
3142
|
+
readonly budget: Schema.Struct<{
|
|
3143
|
+
readonly tokens: Schema.optional<Schema.Number>;
|
|
3144
|
+
readonly milliseconds: Schema.optional<Schema.Number>;
|
|
3145
|
+
readonly usd: Schema.optional<Schema.Number>;
|
|
3146
|
+
readonly onExceeded: Schema.optional<Schema.Literals<readonly ["fail", "warn", "skip-remaining", "park"]>>;
|
|
3147
|
+
readonly deadline: Schema.optional<Schema.Int>;
|
|
3148
|
+
}>;
|
|
3149
|
+
readonly host: Schema.optional<Schema.String>;
|
|
3150
|
+
}>;
|
|
3151
|
+
}>]>;
|
|
3152
|
+
readonly scope: Schema.Literals<readonly ["once", "run", "remembered"]>;
|
|
3153
|
+
readonly idempotencyKey: Schema.String;
|
|
3154
|
+
}>;
|
|
3155
|
+
readonly requestedAt: Schema.Number;
|
|
3156
|
+
readonly status: Schema.Literals<readonly ["pending", "approved", "denied"]>;
|
|
3157
|
+
}>>;
|
|
3158
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
3159
|
+
readonly selector: Schema.TaggedStruct<"node-output", {
|
|
3160
|
+
readonly runId: Schema.String;
|
|
3161
|
+
readonly nodeId: Schema.String;
|
|
3162
|
+
}>;
|
|
3163
|
+
readonly cursor: Schema.Struct<{
|
|
3164
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
3165
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
3166
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
3167
|
+
readonly runId: Schema.String;
|
|
3168
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
3169
|
+
readonly runId: Schema.String;
|
|
3170
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
3171
|
+
readonly runId: Schema.String;
|
|
3172
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
3173
|
+
readonly runId: Schema.String;
|
|
3174
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
3175
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
3176
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
3177
|
+
readonly runId: Schema.String;
|
|
3178
|
+
readonly nodeId: Schema.String;
|
|
3179
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
3180
|
+
readonly flowId: Schema.String;
|
|
3181
|
+
}>]>;
|
|
3182
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
3183
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
3184
|
+
readonly value: Schema.Int;
|
|
3185
|
+
readonly offset: Schema.Int;
|
|
3186
|
+
}>;
|
|
3187
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
3188
|
+
readonly runId: Schema.String;
|
|
3189
|
+
readonly nodeId: Schema.String;
|
|
3190
|
+
readonly outcome: Schema.Literals<readonly ["success", "failure"]>;
|
|
3191
|
+
readonly output: Schema.String;
|
|
3192
|
+
readonly settledAt: Schema.Number;
|
|
3193
|
+
}>>;
|
|
3194
|
+
}>, Schema.TaggedStruct<"delta", {
|
|
3195
|
+
readonly selector: Schema.TaggedStruct<"flow-durations", {
|
|
3196
|
+
readonly flowId: Schema.String;
|
|
3197
|
+
}>;
|
|
3198
|
+
readonly cursor: Schema.Struct<{
|
|
3199
|
+
readonly selector: Schema.Union<readonly [Schema.TaggedStruct<"workspace-runs", {
|
|
3200
|
+
readonly flowId: Schema.optionalKey<Schema.NonEmptyString>;
|
|
3201
|
+
}>, Schema.TaggedStruct<"run-summary", {
|
|
3202
|
+
readonly runId: Schema.String;
|
|
3203
|
+
}>, Schema.TaggedStruct<"run-events", {
|
|
3204
|
+
readonly runId: Schema.String;
|
|
3205
|
+
}>, Schema.TaggedStruct<"transcript", {
|
|
3206
|
+
readonly runId: Schema.String;
|
|
3207
|
+
}>, Schema.TaggedStruct<"run-tree", {
|
|
3208
|
+
readonly runId: Schema.String;
|
|
3209
|
+
}>, Schema.TaggedStruct<"approvals", {
|
|
3210
|
+
readonly runId: Schema.optional<Schema.String>;
|
|
3211
|
+
}>, Schema.TaggedStruct<"node-output", {
|
|
3212
|
+
readonly runId: Schema.String;
|
|
3213
|
+
readonly nodeId: Schema.String;
|
|
3214
|
+
}>, Schema.TaggedStruct<"flow-durations", {
|
|
3215
|
+
readonly flowId: Schema.String;
|
|
3216
|
+
}>]>;
|
|
3217
|
+
readonly projection: Schema.Literals<readonly ["workspace-runs", "run-summary", "run-events", "transcript", "run-tree", "approvals", "node-output", "flow-durations"]>;
|
|
3218
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
3219
|
+
readonly value: Schema.Int;
|
|
3220
|
+
readonly offset: Schema.Int;
|
|
3221
|
+
}>;
|
|
3222
|
+
readonly delta: Schema.$Array<Schema.Struct<{
|
|
3223
|
+
readonly flowId: Schema.String;
|
|
3224
|
+
readonly actionTag: Schema.String;
|
|
3225
|
+
readonly samples: Schema.Number;
|
|
3226
|
+
readonly p50Ms: Schema.Number;
|
|
3227
|
+
readonly p90Ms: Schema.Number;
|
|
3228
|
+
}>>;
|
|
3229
|
+
}>, Schema.TaggedStruct<"heartbeat", {
|
|
3230
|
+
readonly atMs: Schema.Number;
|
|
3231
|
+
}>]>;
|
|
3232
|
+
/**
|
|
3233
|
+
* A frame sent by the gateway subscription protocol.
|
|
3234
|
+
*
|
|
3235
|
+
* @since 0.1.0
|
|
3236
|
+
* @category models
|
|
3237
|
+
*/
|
|
3238
|
+
export type GatewayFrame = typeof GatewayFrame.Type;
|
|
3239
|
+
/**
|
|
3240
|
+
* The snapshot one selector answers with.
|
|
3241
|
+
*
|
|
3242
|
+
* A literal selector keeps its own rows: `SnapshotOf<ApprovalsSelector>` has
|
|
3243
|
+
* `ApprovalRow` rows, so a caller reads `requestId` without an assertion. A
|
|
3244
|
+
* selector union maps to the snapshot union, which is what a caller holding a
|
|
3245
|
+
* selector chosen at runtime still gets.
|
|
3246
|
+
*
|
|
3247
|
+
* @since 1.0.0
|
|
3248
|
+
* @category models
|
|
3249
|
+
*/
|
|
3250
|
+
export type SnapshotOf<S extends ProjectionSelector> = Extract<ProjectionSnapshot, {
|
|
3251
|
+
readonly selector: {
|
|
3252
|
+
readonly _tag: S["_tag"];
|
|
3253
|
+
};
|
|
3254
|
+
}>;
|
|
3255
|
+
/**
|
|
3256
|
+
* The frames one selector's subscription emits.
|
|
3257
|
+
*
|
|
3258
|
+
* Snapshot brackets and keepalives carry no rows and belong to every
|
|
3259
|
+
* selector; the row and delta frames are the selector's own.
|
|
3260
|
+
*
|
|
3261
|
+
* @since 1.0.0
|
|
3262
|
+
* @category models
|
|
3263
|
+
*/
|
|
3264
|
+
export type FrameOf<S extends ProjectionSelector> = SnapshotStartFrame | SnapshotEndFrame | HeartbeatFrame | Extract<RowFrame, {
|
|
3265
|
+
readonly selector: {
|
|
3266
|
+
readonly _tag: S["_tag"];
|
|
3267
|
+
};
|
|
3268
|
+
}> | Extract<DeltaFrame, {
|
|
3269
|
+
readonly selector: {
|
|
3270
|
+
readonly _tag: S["_tag"];
|
|
3271
|
+
};
|
|
3272
|
+
}>;
|
|
3273
|
+
export {};
|
|
3274
|
+
//# sourceMappingURL=GatewaySchema.d.ts.map
|