deepline 0.3.552 → 0.3.553
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/dist/bundling-sources/sdk/src/client-core.ts +107 -12
- package/dist/bundling-sources/sdk/src/compat.ts +239 -87
- package/dist/bundling-sources/sdk/src/config.ts +113 -2
- package/dist/bundling-sources/sdk/src/errors.ts +2 -0
- package/dist/bundling-sources/sdk/src/http-core.ts +118 -8
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/integrations.ts +6 -4
- package/dist/bundling-sources/sdk/src/play.ts +3 -0
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +8 -1
- package/dist/bundling-sources/sdk/src/tool-calls.ts +2 -1
- package/dist/bundling-sources/sdk/src/tool-failure-hint.ts +104 -0
- package/dist/bundling-sources/sdk/src/types.ts +9 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +4 -2
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-plan-skus.ts +25 -0
- package/dist/bundling-sources/shared_libs/monitors/action-actor.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/credit-recovery.ts +58 -4
- package/dist/bundling-sources/shared_libs/monitors/billing/policy-builders.ts +8 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/pricing.ts +11 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +13 -0
- package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +103 -5
- package/dist/bundling-sources/shared_libs/monitors/fleets/converge-admission.ts +133 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/fence-attention.ts +165 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/fence-release.ts +726 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/fence-walk.ts +274 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +1 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +28 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/provider-bulk-wait.ts +126 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/shared-payload.ts +189 -0
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +28 -0
- package/dist/bundling-sources/shared_libs/monitors/inbound-publish-key.ts +4 -0
- package/dist/bundling-sources/shared_libs/monitors/inventory-counter-errors.ts +25 -0
- package/dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts +65 -0
- package/dist/bundling-sources/shared_libs/monitors/package.json +9 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +152 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +390 -10
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +34 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +66 -30
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +30 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-resource-failure.ts +26 -3
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +41 -13
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/raw-receipt-causes.ts +219 -0
- package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +21 -10
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +13 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-integrations.ts +13 -0
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/log-metadata.ts +5 -3
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +10 -1
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/redaction.ts +24 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +168 -41
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -2
- package/dist/bundling-sources/shared_libs/play-data-plane/preview-r2-oidc.ts +188 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +170 -16
- package/dist/bundling-sources/shared_libs/play-data-plane/runtime-sheet-storage-contract.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +68 -2
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +444 -39
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-fetch-caller-deadline.ts +200 -0
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +21 -1
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +3 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +70 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-tool-identity.ts +3 -3
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +16 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +72 -0
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +62 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +74 -3
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +31 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/query-result-dataset.ts +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +39 -2
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +9 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +33 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-contract.ts +24 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +254 -44
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +87 -6
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +241 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +161 -14
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +16 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-compression.ts +37 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +259 -52
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +30 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +62 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +206 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +42 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +185 -64
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-slot-ledger.ts +157 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +110 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-listener-hint.ts +323 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/executor-attempt-standing.ts +72 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-storage.ts +23 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-workspace-purge.ts +199 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +632 -66
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +517 -16
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-api-origin.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-receipt-value-storage.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +599 -2
- package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/startup-read-tool-ids.ts +60 -0
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +51 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call-retry-facts.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +113 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -7
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +40 -5
- package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/control-plane-types.ts +16 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/run-deployment.ts +10 -41
- package/dist/bundling-sources/shared_libs/plays/extension-bridge.ts +33 -0
- package/dist/bundling-sources/shared_libs/plays/row-identity.ts +18 -1
- package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +108 -0
- package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +14 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +171 -0
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +27 -1
- package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +9 -24
- package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +178 -5
- package/dist/bundling-sources/shared_libs/security/signup-email-dns-screen.ts +148 -0
- package/dist/bundling-sources/shared_libs/tool-execution-error.ts +108 -0
- package/dist/cli/{auth-KVSBJZOX.mjs → auth-I3QAU4RV.mjs} +8 -7
- package/dist/cli/auth-MQCN7WGZ.js +44 -0
- package/dist/cli/{billing-54RHFEBI.mjs → billing-3IC54OQQ.mjs} +197 -61
- package/dist/cli/{billing-FQREA7UA.js → billing-YGFFVAIC.js} +297 -161
- package/dist/cli/{chunk-4MK42735.js → chunk-2B5B5KAW.js} +210 -128
- package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
- package/dist/cli/{chunk-4NQF6KJ3.js → chunk-3NTP2OSG.js} +13 -13
- package/dist/cli/{chunk-HYC4MKGK.mjs → chunk-45OAVGU6.mjs} +5 -5
- package/dist/cli/{chunk-WLN3SUIA.js → chunk-4747TPLV.js} +3 -3
- package/dist/cli/{chunk-AZQ264ID.mjs → chunk-4BFTDNHU.mjs} +1 -1
- package/dist/cli/{chunk-BGBJV26E.mjs → chunk-4HYNMXXF.mjs} +4 -4
- package/dist/cli/{chunk-DJ2JDK4O.mjs → chunk-4SMCFQ23.mjs} +1 -1
- package/dist/cli/{chunk-QPKH23EC.mjs → chunk-55F6HNOY.mjs} +5 -5
- package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
- package/dist/cli/{chunk-634ZDA3F.js → chunk-6NE3RRRY.js} +1 -1
- package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
- package/dist/cli/{chunk-EOPEYCY7.mjs → chunk-72V4PDH5.mjs} +18 -18
- package/dist/cli/{chunk-IHRKLXZN.js → chunk-74RES4DS.js} +5 -5
- package/dist/cli/{chunk-45PVGZST.js → chunk-7GEMELKI.js} +366 -320
- package/dist/cli/{chunk-4UUR4TCH.js → chunk-7O6J6A7P.js} +1871 -92
- package/dist/cli/{chunk-XVB7V4N7.js → chunk-7SERLBNR.js} +161 -53
- package/dist/cli/{chunk-F2LH7TGF.js → chunk-7YRJ5UC4.js} +21 -21
- package/dist/cli/{chunk-YJHE3O5M.mjs → chunk-A7DLBE5K.mjs} +136 -54
- package/dist/cli/{chunk-6PRW5UBA.mjs → chunk-AGICYWGN.mjs} +299 -69
- package/dist/cli/{chunk-S5S355UY.mjs → chunk-AGIQDA2T.mjs} +12 -12
- package/dist/cli/{chunk-RBEUVDZF.js → chunk-AGLR6QVN.js} +249 -107
- package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
- package/dist/cli/{chunk-RQZQVFCJ.js → chunk-BVDKFS2T.js} +2 -2
- package/dist/cli/{chunk-PFO3ISXA.js → chunk-CACFJODG.js} +174 -129
- package/dist/cli/{chunk-6RZOWL2V.mjs → chunk-CAEBJOYU.mjs} +1 -1
- package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
- package/dist/cli/{chunk-6YCA5NKJ.js → chunk-DP2VH7CO.js} +12 -12
- package/dist/cli/{chunk-AWJPDPMA.mjs → chunk-DP64MD6U.mjs} +1 -1
- package/dist/cli/{chunk-PTVD2GVQ.mjs → chunk-DZA7RFGL.mjs} +5 -5
- package/dist/cli/{chunk-V436Z54K.js → chunk-E2G2DNAB.js} +3 -1
- package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-E7WZOX2A.mjs} +22 -18
- package/dist/cli/{chunk-IDVVIXPJ.js → chunk-FM7LPUPA.js} +41 -41
- package/dist/cli/{chunk-AQWQ2BFX.mjs → chunk-GAVZ4EOD.mjs} +1 -1
- package/dist/cli/{chunk-GKYAYLRI.js → chunk-HEBO3XNZ.js} +27 -31
- package/dist/cli/{chunk-IYSTRCLX.mjs → chunk-HSJ6X2AQ.mjs} +4 -4
- package/dist/cli/{chunk-UPMRIVZB.js → chunk-HVI55MTK.js} +61 -10
- package/dist/cli/{chunk-KWSH5T7K.js → chunk-IH6GDNKW.js} +21 -21
- package/dist/cli/{chunk-HO3XK3R7.js → chunk-IMX7J4DU.js} +8 -8
- package/dist/cli/{chunk-EUPVF4SU.mjs → chunk-INEMTYMT.mjs} +8 -8
- package/dist/cli/{chunk-3FD5EQ62.js → chunk-IUOGII7D.js} +6 -7
- package/dist/cli/{chunk-U7QRMBIY.mjs → chunk-JJGWHITQ.mjs} +5 -5
- package/dist/cli/{chunk-SHLFOPD6.js → chunk-JLGP5XAJ.js} +5 -5
- package/dist/cli/{chunk-4TALT2M3.mjs → chunk-LFOERUQY.mjs} +69 -3
- package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
- package/dist/cli/{chunk-Z5TSLLOW.mjs → chunk-LH5PZKER.mjs} +63 -18
- package/dist/cli/{chunk-S46HWQKO.js → chunk-LRDHPOZW.js} +69 -69
- package/dist/cli/{chunk-6ZORHRKB.mjs → chunk-LRZGS6RZ.mjs} +2 -0
- package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
- package/dist/cli/{chunk-7IKQKKNX.js → chunk-MLABYI4M.js} +90 -24
- package/dist/cli/{chunk-ZIAXDBXX.mjs → chunk-NDNHYONK.mjs} +17 -21
- package/dist/cli/{chunk-YLTMXJFC.mjs → chunk-OTV2UUKW.mjs} +158 -16
- package/dist/cli/{chunk-G4O75EXF.js → chunk-Q6Z6N3A7.js} +18 -18
- package/dist/cli/{chunk-WE5HES3H.mjs → chunk-QG6JIWUL.mjs} +151 -43
- package/dist/cli/{chunk-QY3ZNU6Z.mjs → chunk-QI5S5HWB.mjs} +2 -2
- package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
- package/dist/cli/{chunk-57VZVF5D.mjs → chunk-RMNOZKRI.mjs} +3 -3
- package/dist/cli/{chunk-BAIST2BR.js → chunk-RTV4RF7N.js} +36 -36
- package/dist/cli/{chunk-JWUAX6OP.js → chunk-SBH4CKPN.js} +11 -11
- package/dist/cli/{chunk-FTJLJCE5.mjs → chunk-SG3LUONJ.mjs} +3 -3
- package/dist/cli/{chunk-2WFPHBR4.js → chunk-TFEXSHPM.js} +22 -18
- package/dist/cli/{chunk-QAORXEY3.mjs → chunk-TN4TY6TT.mjs} +6 -7
- package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-UEVKMZLR.mjs} +54 -3
- package/dist/cli/{chunk-QILKGXYF.mjs → chunk-UVQJYV76.mjs} +2 -2
- package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
- package/dist/cli/{chunk-MF2GHZDO.js → chunk-WOCHZCUJ.js} +2 -2
- package/dist/cli/{chunk-VQALXEXO.js → chunk-XLIHTJVM.js} +348 -118
- package/dist/cli/{chunk-ADRC5I3R.js → chunk-Y6SP3JMI.js} +22 -22
- package/dist/cli/{chunk-77AAAGVB.js → chunk-YUA6HA6D.js} +2 -2
- package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
- package/dist/cli/{chunk-6O5HOODW.mjs → chunk-Z6XPSHKM.mjs} +87 -41
- package/dist/cli/{chunk-QX7LFGJR.mjs → chunk-Z7AOIHFE.mjs} +1870 -91
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/concurrent-runs-help-CFJH4KXV.js +22 -0
- package/dist/cli/{concurrent-runs-help-Q4KPAUJX.mjs → concurrent-runs-help-DNV2X5AZ.mjs} +9 -8
- package/dist/cli/{csv-F5VAGX4K.js → csv-SA6ELJY6.js} +16 -15
- package/dist/cli/{csv-2PTVDNO6.mjs → csv-ZXZGHWOM.mjs} +7 -6
- package/dist/cli/{db-IEDXAUF7.mjs → db-A54SP6AD.mjs} +16 -16
- package/dist/cli/{db-Z3OIUFMM.js → db-JHFEIQBU.js} +43 -43
- package/dist/cli/describe-PHQ33AGS.mjs +50 -0
- package/dist/cli/describe-RHJ4XRFI.js +50 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +6 -6
- package/dist/cli/describe-core.mjs +5 -5
- package/dist/cli/{executions-R3LP74QN.mjs → executions-HL2M2DFU.mjs} +10 -10
- package/dist/cli/{executions-H6H5655J.js → executions-TLFZRHBJ.js} +12 -12
- package/dist/cli/{feedback-VFOUR66B.js → feedback-5UEX5UZK.js} +17 -16
- package/dist/cli/{feedback-WL3MRVT5.mjs → feedback-QMBTNXVG.mjs} +9 -8
- package/dist/cli/git-4JWOOHBG.js +26 -0
- package/dist/cli/{git-YX2J4GCI.mjs → git-LKGXVIVC.mjs} +8 -7
- package/dist/cli/index.js +170 -158
- package/dist/cli/index.mjs +60 -48
- package/dist/cli/{integrations-E2JZYKHS.js → integrations-6RUTLMN7.js} +23 -27
- package/dist/cli/{integrations-5ZK5KLVP.mjs → integrations-FGGRVUJ7.mjs} +15 -19
- package/dist/cli/{legacy-noops-3VW4IJTH.js → legacy-noops-J3Z7QRWZ.js} +12 -11
- package/dist/cli/{legacy-noops-SMN3GSXY.mjs → legacy-noops-YIPRMVXZ.mjs} +9 -8
- package/dist/cli/{mcp-UQV2K4EW.js → mcp-6LWFP7RW.js} +121 -48
- package/dist/cli/{mcp-V6MGCYAG.mjs → mcp-CHDYFO7F.mjs} +100 -27
- package/dist/cli/{monitors-R3BBDCRC.js → monitors-STM6A7OU.js} +221 -186
- package/dist/cli/{monitors-GGKS5W6M.mjs → monitors-UGRY2BXI.mjs} +58 -23
- package/dist/cli/org-3SYOUQCX.mjs +2289 -0
- package/dist/cli/org-ZOBSNSIB.js +2289 -0
- package/dist/cli/outcomes-H4YYAT5X.js +2865 -0
- package/dist/cli/outcomes-Z3P2JE67.mjs +2865 -0
- package/dist/cli/{play-2MVO27VO.js → play-SM4CW2GS.js} +1116 -846
- package/dist/cli/{play-MDWPR4XG.mjs → play-SN5YWLS7.mjs} +375 -105
- package/dist/cli/{providers-AKDYFZJZ.mjs → providers-WZ4YBR5Y.mjs} +10 -10
- package/dist/cli/{providers-2AACRUZH.js → providers-WZARYMCF.js} +13 -13
- package/dist/cli/{quickstart-QDGRJFZY.mjs → quickstart-2575BNKA.mjs} +7 -6
- package/dist/cli/{quickstart-H6IV3PV3.js → quickstart-PS4YHQJ6.js} +9 -8
- package/dist/cli/{run-2634REDK.js → run-FLZ6OTM7.js} +51 -51
- package/dist/cli/{run-RTSQNGRD.mjs → run-ZUHCZOJS.mjs} +31 -31
- package/dist/cli/run-identity-LMLFMACS.js +31 -0
- package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MAZ7ANH5.mjs} +9 -3
- package/dist/cli/{search-6AOJ4XPP.mjs → search-HLPPKQEO.mjs} +11 -11
- package/dist/cli/search-JJWVHR3N.js +32 -0
- package/dist/cli/{search-output-6ADMTOU5.mjs → search-output-PDAXNOGP.mjs} +9 -8
- package/dist/cli/{search-output-S5ODBL5E.js → search-output-RXJLU36B.js} +12 -11
- package/dist/cli/{secrets-TFIFBFB3.mjs → secrets-CGELYQ3H.mjs} +11 -11
- package/dist/cli/{secrets-LHCIIHMT.js → secrets-QJNG7G2Y.js} +20 -20
- package/dist/cli/sessions-DHTBT2GN.js +23 -0
- package/dist/cli/{sessions-WHBVUHVW.mjs → sessions-ELMWVR4M.mjs} +9 -8
- package/dist/cli/{settings-CP4FVK2W.js → settings-44I44P5F.js} +89 -89
- package/dist/cli/{settings-EBONWL5C.mjs → settings-RR3LZXL7.mjs} +16 -16
- package/dist/cli/{setup-I5AZE3IU.mjs → setup-KGWRWH4B.mjs} +20 -19
- package/dist/cli/{setup-LFGHTNLQ.js → setup-KTEYOCJO.js} +60 -59
- package/dist/cli/skills-EPZPEXI2.js +37 -0
- package/dist/cli/{skills-W76AO5XE.mjs → skills-FPRID2I5.mjs} +10 -9
- package/dist/cli/tools-IGQQ5TML.js +57 -0
- package/dist/cli/{tools-7IJHGF6W.mjs → tools-PI4WMDLY.mjs} +23 -23
- package/dist/cli/update-4RNCVYGE.js +37 -0
- package/dist/cli/{update-GFOPZTHY.mjs → update-VJOJAZ7B.mjs} +14 -11
- package/dist/cli/{views-BPL2TQJ4.js → views-NTUOLNQU.js} +62 -64
- package/dist/cli/{views-D4NX4SBG.mjs → views-OVPSINZO.mjs} +47 -49
- package/dist/cli/{workflow-ZYNAUCKC.js → workflow-2UDYDM6F.js} +23 -23
- package/dist/cli/{workflow-YXP42FUI.mjs → workflow-7OEFNXZC.mjs} +13 -13
- package/dist/{client-CyXGrO4D.d.mts → client-B8f7RNF8.d.mts} +1 -1
- package/dist/{client-Bf3IpUKN.d.ts → client-C5TgXmJQ.d.ts} +1 -1
- package/dist/{client-core-BxsLnXlm.d.mts → client-core-SLLGBTht.d.mts} +268 -23
- package/dist/{client-core-BWd0lX0Z.d.ts → client-core-p0sOxnkl.d.ts} +268 -23
- package/dist/{compiler-manifest-BqwVrOri.d.ts → compiler-manifest-D_zZEh9Q.d.mts} +70 -5
- package/dist/{compiler-manifest-BqwVrOri.d.mts → compiler-manifest-D_zZEh9Q.d.ts} +70 -5
- package/dist/{errors-BU8FB99X.d.mts → errors-CZCrBFrQ.d.mts} +1 -1
- package/dist/{errors-DfVN_FUG.d.ts → errors-DsUkLrdZ.d.ts} +1 -1
- package/dist/{index-BGnvtYGc.d.ts → index-B6RTOZGC.d.ts} +1 -1
- package/dist/{index-DjZgwpGw.d.mts → index-DeOVrEmX.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +66 -55
- package/dist/index.mjs +25 -14
- package/dist/install-integrity.json +161 -142
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +23 -4
- package/dist/plays/csv-data-input.js +3 -3
- package/dist/plays/csv-data-input.mjs +2 -2
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +4 -4
- package/dist/plays/run-request.mjs +3 -3
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +15 -13
- package/dist/server.mjs +9 -7
- package/package.json +1 -1
- package/dist/cli/auth-MMNVWATX.js +0 -43
- package/dist/cli/concurrent-runs-help-FQAIHKKC.js +0 -21
- package/dist/cli/describe-QDANCTS3.mjs +0 -50
- package/dist/cli/describe-VUTT5ZKU.js +0 -50
- package/dist/cli/git-ETB3GH3K.js +0 -25
- package/dist/cli/org-GRYVMNSW.js +0 -1282
- package/dist/cli/org-Z37NGJV4.mjs +0 -1282
- package/dist/cli/run-identity-G257GQED.js +0 -25
- package/dist/cli/search-VTW2YNBS.js +0 -32
- package/dist/cli/sessions-CJ4FJ2WB.js +0 -22
- package/dist/cli/skills-R7EBXREW.js +0 -36
- package/dist/cli/tools-V7U2BDXM.js +0 -57
- package/dist/cli/update-4COPZETK.js +0 -34
|
@@ -2,7 +2,10 @@ import {
|
|
|
2
2
|
deployed,
|
|
3
3
|
type DeployedOperationContract,
|
|
4
4
|
} from '@deepline/deployed-contracts';
|
|
5
|
-
import
|
|
5
|
+
import {
|
|
6
|
+
hasRuntimeExecutionCapability,
|
|
7
|
+
type RuntimeExecutionCapability,
|
|
8
|
+
} from './execution-capabilities';
|
|
6
9
|
|
|
7
10
|
/** Gateway sheet admission operations retain distinct old/new semantics. */
|
|
8
11
|
export const RUNTIME_SHEET_ADMISSION_CAPABILITIES = {
|
|
@@ -160,6 +163,64 @@ export function runtimeOperationCapability(
|
|
|
160
163
|
);
|
|
161
164
|
}
|
|
162
165
|
|
|
166
|
+
/** Finish admitted effects after an account block; never admit or start new work. */
|
|
167
|
+
const BLOCKED_ACCOUNT_COMPLETION_OPERATIONS = new Set<string>([
|
|
168
|
+
'release_runtime_receipt_execution_lock',
|
|
169
|
+
'complete_runtime_step_receipt',
|
|
170
|
+
'complete_runtime_step_receipts',
|
|
171
|
+
'complete_runtime_step_receipts_by_reference',
|
|
172
|
+
'release_runtime_step_receipt',
|
|
173
|
+
'fail_runtime_step_receipt',
|
|
174
|
+
'fail_runtime_step_receipts',
|
|
175
|
+
'heartbeat_runtime_step_receipts',
|
|
176
|
+
'append_run_events',
|
|
177
|
+
'project_run_events',
|
|
178
|
+
'save_results',
|
|
179
|
+
'compute_billing_upsert',
|
|
180
|
+
'compute_billing_record_item',
|
|
181
|
+
'compute_billing_finalize',
|
|
182
|
+
'rate_state_release',
|
|
183
|
+
'rate_state_penalize',
|
|
184
|
+
]);
|
|
185
|
+
|
|
186
|
+
export function isBlockedAccountCompletionOperation(action: unknown): boolean {
|
|
187
|
+
return (
|
|
188
|
+
typeof action === 'string' &&
|
|
189
|
+
BLOCKED_ACCOUNT_COMPLETION_OPERATIONS.has(action)
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/** Historical batches may finish only when every event is an authorized completion. */
|
|
194
|
+
export function isBlockedAccountCompletionRequest(
|
|
195
|
+
body: unknown,
|
|
196
|
+
capabilities: readonly RuntimeExecutionCapability[],
|
|
197
|
+
): boolean {
|
|
198
|
+
if (!body || typeof body !== 'object' || Array.isArray(body)) return false;
|
|
199
|
+
const request = body as Record<string, unknown>;
|
|
200
|
+
if (request.action === 'batch') {
|
|
201
|
+
return (
|
|
202
|
+
Array.isArray(request.events) &&
|
|
203
|
+
request.events.length > 0 &&
|
|
204
|
+
request.events.every((event: unknown) => {
|
|
205
|
+
if (
|
|
206
|
+
!event ||
|
|
207
|
+
typeof event !== 'object' ||
|
|
208
|
+
Array.isArray(event) ||
|
|
209
|
+
(event as Record<string, unknown>).action === 'batch'
|
|
210
|
+
)
|
|
211
|
+
return false;
|
|
212
|
+
return isBlockedAccountCompletionRequest(event, capabilities);
|
|
213
|
+
})
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
const capability = runtimeOperationCapabilityForRequest(body, capabilities);
|
|
217
|
+
return Boolean(
|
|
218
|
+
capability &&
|
|
219
|
+
hasRuntimeExecutionCapability(capabilities, capability) &&
|
|
220
|
+
isBlockedAccountCompletionOperation(request.action),
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
163
224
|
/**
|
|
164
225
|
* Projection credentials permit only keyed outbox deliveries, never progress
|
|
165
226
|
* producers. Each accepted action still validates its key, run scope and live
|
|
@@ -60,3 +60,39 @@ export function shouldUseRuntimeSchedulerDirectNotify(
|
|
|
60
60
|
): boolean {
|
|
61
61
|
return !isIsolatedRuntimeSchedulerSchema(schedulerSchema);
|
|
62
62
|
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Env carrying an isolated Preview lane's listener-election mode, written only
|
|
66
|
+
* by the release gate from a typed target config
|
|
67
|
+
* (`runtime.listenerElection`).
|
|
68
|
+
*/
|
|
69
|
+
export const PREVIEW_WORKER_LISTENER_ELECTION_ENV =
|
|
70
|
+
'DEEPLINE_PREVIEW_WORKER_LISTENER_ELECTION';
|
|
71
|
+
|
|
72
|
+
export type PreviewWorkerListenerElection = 'polling' | 'direct_listen';
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Whether this worker joins its queue's direct-LISTEN election because its
|
|
76
|
+
* isolated Preview lane was configured for it. Unset (every Production worker
|
|
77
|
+
* and every other Preview lane) is `polling`: unchanged. `direct_listen` on a
|
|
78
|
+
* non-isolated (Production-shaped) schema, or any other value, fails boot
|
|
79
|
+
* loudly instead of being ignored.
|
|
80
|
+
*/
|
|
81
|
+
export function resolvePreviewWorkerListenerElection(
|
|
82
|
+
env: Readonly<Record<string, string | undefined>>,
|
|
83
|
+
schedulerSchema: string | null | undefined,
|
|
84
|
+
): PreviewWorkerListenerElection {
|
|
85
|
+
const raw = env[PREVIEW_WORKER_LISTENER_ELECTION_ENV]?.trim();
|
|
86
|
+
if (!raw || raw === 'polling') return 'polling';
|
|
87
|
+
if (raw !== 'direct_listen') {
|
|
88
|
+
throw new Error(
|
|
89
|
+
`${PREVIEW_WORKER_LISTENER_ELECTION_ENV} must be polling or direct_listen; got "${raw}".`,
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
if (!isIsolatedRuntimeSchedulerSchema(schedulerSchema)) {
|
|
93
|
+
throw new Error(
|
|
94
|
+
`${PREVIEW_WORKER_LISTENER_ELECTION_ENV}=direct_listen is valid only on an isolated Preview scheduler schema.`,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
return 'direct_listen';
|
|
98
|
+
}
|
|
@@ -298,3 +298,39 @@ export function prepareRuntimeSheetRowsForJsonTransport(input: {
|
|
|
298
298
|
}
|
|
299
299
|
return rows;
|
|
300
300
|
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The rows `prepareRuntimeSheetRowsForJsonTransport` returns, each as the
|
|
304
|
+
* exact text `JSON.stringify` gives that row, built from the prepared patch
|
|
305
|
+
* JSON instead of parsing it back and serializing it again. The patch text is
|
|
306
|
+
* `JSON.stringify` output, so it is already the canonical form a parse and a
|
|
307
|
+
* second stringify would reproduce byte for byte.
|
|
308
|
+
*/
|
|
309
|
+
export function prepareRuntimeSheetRowJsonForTransport(input: {
|
|
310
|
+
rows: Iterable<MapRowOutcome>;
|
|
311
|
+
runId: string;
|
|
312
|
+
outputFields: readonly string[];
|
|
313
|
+
}): Array<{ key: string; json: string }> {
|
|
314
|
+
const rows: Array<{ key: string; json: string }> = [];
|
|
315
|
+
for (const row of input.rows) {
|
|
316
|
+
const { completedRows, failedRows } = prepareRuntimeSheetRowTransitions({
|
|
317
|
+
rows: [row],
|
|
318
|
+
runId: input.runId,
|
|
319
|
+
outputFields: input.outputFields,
|
|
320
|
+
});
|
|
321
|
+
const prepared = completedRows[0] ?? failedRows[0];
|
|
322
|
+
if (!prepared) continue;
|
|
323
|
+
const failed = failedRows[0];
|
|
324
|
+
// Same keys, in the same order, as the object the transport row is.
|
|
325
|
+
let json =
|
|
326
|
+
`{"key":${JSON.stringify(prepared.key)}` +
|
|
327
|
+
`,"inputIndex":${JSON.stringify(prepared.input_index)}` +
|
|
328
|
+
`,"data":${prepared.data_patch_json}` +
|
|
329
|
+
`,"cellMetaPatch":${prepared.cell_meta_patch_json}`;
|
|
330
|
+
if (failed) {
|
|
331
|
+
json += `,"status":"failed","error":${JSON.stringify(failed.error)}`;
|
|
332
|
+
}
|
|
333
|
+
rows.push({ key: prepared.key, json: `${json}}` });
|
|
334
|
+
}
|
|
335
|
+
return rows;
|
|
336
|
+
}
|
|
@@ -50,7 +50,9 @@ export const RUNTIME_SPEED_PROFILE_OFF = 'off';
|
|
|
50
50
|
|
|
51
51
|
type RuntimeSpeedProfileDefinition = {
|
|
52
52
|
readonly summary: string;
|
|
53
|
-
readonly switches: Readonly<
|
|
53
|
+
readonly switches: Readonly<
|
|
54
|
+
Partial<Record<PerRunExperimentSwitchId, boolean>>
|
|
55
|
+
>;
|
|
54
56
|
};
|
|
55
57
|
|
|
56
58
|
export const RUNTIME_SPEED_PROFILES = {
|
|
@@ -78,13 +80,215 @@ export const RUNTIME_SPEED_PROFILES = {
|
|
|
78
80
|
F3: false,
|
|
79
81
|
},
|
|
80
82
|
},
|
|
83
|
+
'fast_launch@2': {
|
|
84
|
+
summary:
|
|
85
|
+
'fast_launch@1 plus the cold-admission switches C3 (durable typecheck verdicts), C4 (launch credential check without the checker) and C5 (early source-verdict read). Preview A/B, 4 cold pairs on 2026-11-19: admission p50 3976 -> 1346 ms (paired -2.2 s). Early start and the sidecar stay off.',
|
|
86
|
+
switches: {
|
|
87
|
+
B: true,
|
|
88
|
+
H1: true,
|
|
89
|
+
P1: true,
|
|
90
|
+
P2: true,
|
|
91
|
+
V3: true,
|
|
92
|
+
C3: true,
|
|
93
|
+
C4: true,
|
|
94
|
+
C5: true,
|
|
95
|
+
// Early start and its dependants: not in @2.
|
|
96
|
+
E2: false,
|
|
97
|
+
PB: false,
|
|
98
|
+
CA: false,
|
|
99
|
+
A1: false,
|
|
100
|
+
// The supervisor sidecar: blocked for security.
|
|
101
|
+
S1: false,
|
|
102
|
+
// Never screened, or Preview-only.
|
|
103
|
+
PWM: false,
|
|
104
|
+
PWT: false,
|
|
105
|
+
PWV: false,
|
|
106
|
+
PI: false,
|
|
107
|
+
F3: false,
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
'fast_launch@3': {
|
|
111
|
+
summary:
|
|
112
|
+
'fast_launch@2 plus N1 (one Node process verifies the baked runner, materializes and watches: two Node starts before the runner instead of four on the 0.5-core sandbox), PI (start-intent read overlapping the admission reservation) and F3 (Preview-only callback probe detached). Early start (E2, PB, CA, A1) stays off: it has no Production hint path yet, and turning it on later gets its own id.',
|
|
113
|
+
switches: {
|
|
114
|
+
B: true,
|
|
115
|
+
H1: true,
|
|
116
|
+
P1: true,
|
|
117
|
+
P2: true,
|
|
118
|
+
V3: true,
|
|
119
|
+
C3: true,
|
|
120
|
+
C4: true,
|
|
121
|
+
C5: true,
|
|
122
|
+
N1: true,
|
|
123
|
+
PI: true,
|
|
124
|
+
F3: true,
|
|
125
|
+
// Early start and its dependants: no Production hint path yet.
|
|
126
|
+
E2: false,
|
|
127
|
+
PB: false,
|
|
128
|
+
CA: false,
|
|
129
|
+
A1: false,
|
|
130
|
+
// The supervisor sidecar: blocked for security.
|
|
131
|
+
S1: false,
|
|
132
|
+
// Never screened; their sibling deep prewarm lost.
|
|
133
|
+
PWM: false,
|
|
134
|
+
PWT: false,
|
|
135
|
+
PWV: false,
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
'fast_launch@4': {
|
|
139
|
+
summary:
|
|
140
|
+
'fast_launch@2 plus PI (start-intent read overlapping the admission reservation) only. Modal Preview A/B against @2, 8 interleaved pairs on 2026-11-20 (release 3b690e9852d): admission p50 hello world 1453 -> 822 ms (paired -598, 7/8 pairs), one call 1047 -> 818 ms (paired -250, 8/8). N1 is pinned off: in the same A/B @3 (with N1) showed no end-to-end gain and its effect is unconfirmed. F3 is Preview-only and stays off. Early start and the sidecar stay off.',
|
|
141
|
+
switches: {
|
|
142
|
+
B: true,
|
|
143
|
+
H1: true,
|
|
144
|
+
P1: true,
|
|
145
|
+
P2: true,
|
|
146
|
+
V3: true,
|
|
147
|
+
C3: true,
|
|
148
|
+
C4: true,
|
|
149
|
+
C5: true,
|
|
150
|
+
PI: true,
|
|
151
|
+
// Unproven in the @3 A/B (no end-to-end gain, effect unconfirmed).
|
|
152
|
+
N1: false,
|
|
153
|
+
// Preview-only.
|
|
154
|
+
F3: false,
|
|
155
|
+
// Early start and its dependants: no Production hint path yet.
|
|
156
|
+
E2: false,
|
|
157
|
+
PB: false,
|
|
158
|
+
CA: false,
|
|
159
|
+
A1: false,
|
|
160
|
+
// The supervisor sidecar: blocked for security.
|
|
161
|
+
S1: false,
|
|
162
|
+
// Never screened; their sibling deep prewarm lost.
|
|
163
|
+
PWM: false,
|
|
164
|
+
PWT: false,
|
|
165
|
+
PWV: false,
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
'fast_launch@5': {
|
|
169
|
+
summary:
|
|
170
|
+
'fast_launch@4 plus early start: E2 (the run sandbox starts at admission through the Production hint relay), PB (the baked runner pre-boots in it, waiting for its config) and CA (the hinted worker is preferred for the first claim; needs the CAR worker reader). KEEP9 (Preview, 2026-11-17) measured accepted-to-heartbeat 220 ms against 638 ms; the end-to-end gain at Production 0.5 core is an estimate until measured. A1, the sidecar (S1), N1 and F3 stay off. Registered before any grant.',
|
|
171
|
+
switches: {
|
|
172
|
+
B: true,
|
|
173
|
+
H1: true,
|
|
174
|
+
P1: true,
|
|
175
|
+
P2: true,
|
|
176
|
+
V3: true,
|
|
177
|
+
C3: true,
|
|
178
|
+
C4: true,
|
|
179
|
+
C5: true,
|
|
180
|
+
PI: true,
|
|
181
|
+
E2: true,
|
|
182
|
+
PB: true,
|
|
183
|
+
CA: true,
|
|
184
|
+
// Tag-read skip on in-process adoption: not part of the early-start proof.
|
|
185
|
+
A1: false,
|
|
186
|
+
// Unproven in the @3 A/B (no end-to-end gain, effect unconfirmed).
|
|
187
|
+
N1: false,
|
|
188
|
+
// Preview-only.
|
|
189
|
+
F3: false,
|
|
190
|
+
// The supervisor sidecar: blocked for security.
|
|
191
|
+
S1: false,
|
|
192
|
+
// Never screened; their sibling deep prewarm lost.
|
|
193
|
+
PWM: false,
|
|
194
|
+
PWT: false,
|
|
195
|
+
PWV: false,
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
'fast_launch@6': {
|
|
199
|
+
summary:
|
|
200
|
+
"fast_launch@4 plus early start routed to the claimer: E2 (the run sandbox starts at admission through the Production hint relay), PB (the baked runner pre-boots in it) and LH (the gateway sends the hint only to the worker holding the run queue's listener election, bound to its leadership generation and one free slot). CA is pinned off: LH needs no claim gate, task param or claim-path read. Preview (2026-11-23, #11257) proved LH routing and safe refusal; Preview lanes carry no egress allowlist, so the early-start gain itself is unmeasured until Production. A1, the sidecar (S1), N1 and F3 stay off. Registered before any grant.",
|
|
201
|
+
switches: {
|
|
202
|
+
B: true,
|
|
203
|
+
H1: true,
|
|
204
|
+
P1: true,
|
|
205
|
+
P2: true,
|
|
206
|
+
V3: true,
|
|
207
|
+
C3: true,
|
|
208
|
+
C4: true,
|
|
209
|
+
C5: true,
|
|
210
|
+
PI: true,
|
|
211
|
+
E2: true,
|
|
212
|
+
PB: true,
|
|
213
|
+
LH: true,
|
|
214
|
+
// LH replaces claim affinity; its worker reader (CAR) stays off.
|
|
215
|
+
CA: false,
|
|
216
|
+
// Tag-read skip on in-process adoption: not part of the early-start proof.
|
|
217
|
+
A1: false,
|
|
218
|
+
// Unproven in the @3 A/B (no end-to-end gain, effect unconfirmed).
|
|
219
|
+
N1: false,
|
|
220
|
+
// Preview-only.
|
|
221
|
+
F3: false,
|
|
222
|
+
// The supervisor sidecar: blocked for security.
|
|
223
|
+
S1: false,
|
|
224
|
+
// Never screened; their sibling deep prewarm lost.
|
|
225
|
+
PWM: false,
|
|
226
|
+
PWT: false,
|
|
227
|
+
PWV: false,
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
'fast_launch@7': {
|
|
231
|
+
summary:
|
|
232
|
+
"fast_launch@6 plus EN: the early sandbox's egress is each gateway IPv4 as /32, contained in the deployment allowlist and derived from an address set stable for 30 min, so the existing gate (at most /24, gateways covered) admits it; only a launch whose own derivation gives the same list adopts it, and every fallback create keeps the deployment allowlist. Production @6 early starts were all refused with egress_allowlist_too_wide. Registered before any grant.",
|
|
233
|
+
switches: {
|
|
234
|
+
B: true,
|
|
235
|
+
H1: true,
|
|
236
|
+
P1: true,
|
|
237
|
+
P2: true,
|
|
238
|
+
V3: true,
|
|
239
|
+
C3: true,
|
|
240
|
+
C4: true,
|
|
241
|
+
C5: true,
|
|
242
|
+
PI: true,
|
|
243
|
+
E2: true,
|
|
244
|
+
PB: true,
|
|
245
|
+
LH: true,
|
|
246
|
+
EN: true,
|
|
247
|
+
CA: false,
|
|
248
|
+
A1: false,
|
|
249
|
+
N1: false,
|
|
250
|
+
F3: false,
|
|
251
|
+
S1: false,
|
|
252
|
+
PWM: false,
|
|
253
|
+
PWT: false,
|
|
254
|
+
PWV: false,
|
|
255
|
+
},
|
|
256
|
+
},
|
|
81
257
|
} as const satisfies Record<string, RuntimeSpeedProfileDefinition>;
|
|
82
258
|
|
|
83
259
|
export type RuntimeSpeedProfileId = keyof typeof RUNTIME_SPEED_PROFILES;
|
|
84
260
|
|
|
85
261
|
/** The profile the `runtime-fast-launch` rollout grants. */
|
|
86
262
|
export const RUNTIME_FAST_LAUNCH_PROFILE: RuntimeSpeedProfileId =
|
|
87
|
-
'fast_launch@
|
|
263
|
+
'fast_launch@6';
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Per-organization exceptions to `RUNTIME_FAST_LAUNCH_PROFILE`, for
|
|
267
|
+
* organizations the rollout already grants. An entry changes only its own
|
|
268
|
+
* organization, so granting a newer profile to one workspace, or putting one
|
|
269
|
+
* workspace back on an earlier frozen profile, never moves the shared default
|
|
270
|
+
* or any other workspace. An entry enables nothing: the rollout decision still
|
|
271
|
+
* gates every organization, and disabling its override still stops it.
|
|
272
|
+
*/
|
|
273
|
+
export const RUNTIME_FAST_LAUNCH_ORGANIZATION_PROFILES: Readonly<
|
|
274
|
+
Record<string, RuntimeSpeedProfileId>
|
|
275
|
+
> = {
|
|
276
|
+
// Internal Deepline workspace: the one org granted EN for its Production
|
|
277
|
+
// measurement. Rollback is this entry back to 'fast_launch@4', or removal.
|
|
278
|
+
jh772jvn83r6be5kpcjn6rcqj182tgre: 'fast_launch@7',
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
/** The profile the rollout grants to this organization. */
|
|
282
|
+
export function runtimeFastLaunchProfileFor(
|
|
283
|
+
orgId: string,
|
|
284
|
+
organizationProfiles: Readonly<
|
|
285
|
+
Record<string, RuntimeSpeedProfileId>
|
|
286
|
+
> = RUNTIME_FAST_LAUNCH_ORGANIZATION_PROFILES,
|
|
287
|
+
): RuntimeSpeedProfileId {
|
|
288
|
+
return Object.prototype.hasOwnProperty.call(organizationProfiles, orgId)
|
|
289
|
+
? organizationProfiles[orgId]!
|
|
290
|
+
: RUNTIME_FAST_LAUNCH_PROFILE;
|
|
291
|
+
}
|
|
88
292
|
|
|
89
293
|
export function isRuntimeSpeedProfileId(
|
|
90
294
|
value: unknown,
|
|
@@ -56,6 +56,8 @@ export type AbsurdClaimQueryTiming = {
|
|
|
56
56
|
queryMs: number;
|
|
57
57
|
totalMs: number;
|
|
58
58
|
taskIds: string[];
|
|
59
|
+
/** Each claimed task's run (`claim_task` returns both). */
|
|
60
|
+
runIdsByTaskId?: Record<string, string>;
|
|
59
61
|
/** `performance.now()` when the claim returned. */
|
|
60
62
|
returnedAt: number;
|
|
61
63
|
};
|
|
@@ -63,8 +65,20 @@ export type AbsurdClaimQueryTiming = {
|
|
|
63
65
|
/** Observes the engine's scheduler queries; measurement only. */
|
|
64
66
|
export type AbsurdSchedulerQueryObserver = {
|
|
65
67
|
onClaimTask(timing: AbsurdClaimQueryTiming): void;
|
|
68
|
+
/**
|
|
69
|
+
* The engine's run-terminal write for `runId` settled (succeeded or threw):
|
|
70
|
+
* `complete_run`, `fail_run` or `schedule_run`. Until then the engine still
|
|
71
|
+
* holds the run's slot (`executeTask` is unsettled).
|
|
72
|
+
*/
|
|
73
|
+
onRunWrite?(runId: string): void;
|
|
66
74
|
};
|
|
67
75
|
|
|
76
|
+
const ABSURD_RUN_WRITE_SQL = [
|
|
77
|
+
'absurd.complete_run(',
|
|
78
|
+
'absurd.fail_run(',
|
|
79
|
+
'absurd.schedule_run(',
|
|
80
|
+
] as const;
|
|
81
|
+
|
|
68
82
|
// The vendored engine's claim statement (`Absurd.claimTasks`).
|
|
69
83
|
const ABSURD_CLAIM_TASK_SQL = 'absurd.claim_task(';
|
|
70
84
|
|
|
@@ -86,6 +100,23 @@ export function absurdQueryableForRuntimeScheduler(
|
|
|
86
100
|
params?: unknown[],
|
|
87
101
|
): Promise<QueryResult<Row>> => {
|
|
88
102
|
const signal = absurdSchedulerQuerySignal.getStore();
|
|
103
|
+
const runWriteId =
|
|
104
|
+
observer?.onRunWrite &&
|
|
105
|
+
ABSURD_RUN_WRITE_SQL.some((statement) => sql.includes(statement)) &&
|
|
106
|
+
typeof params?.[1] === 'string'
|
|
107
|
+
? params[1]
|
|
108
|
+
: null;
|
|
109
|
+
if (runWriteId) {
|
|
110
|
+
try {
|
|
111
|
+
return await absurdQueryableForRuntimeScheduler(
|
|
112
|
+
poolOptions,
|
|
113
|
+
undefined,
|
|
114
|
+
claimGate,
|
|
115
|
+
).query<Row>(sql, params);
|
|
116
|
+
} finally {
|
|
117
|
+
observer?.onRunWrite?.(runWriteId);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
89
120
|
const timed =
|
|
90
121
|
observer !== undefined && sql.includes(ABSURD_CLAIM_TASK_SQL);
|
|
91
122
|
const startedAt = timed ? performance.now() : 0;
|
|
@@ -122,6 +153,17 @@ export function absurdQueryableForRuntimeScheduler(
|
|
|
122
153
|
const taskId = (row as { task_id?: unknown }).task_id;
|
|
123
154
|
return typeof taskId === 'string' ? [taskId] : [];
|
|
124
155
|
}),
|
|
156
|
+
runIdsByTaskId: Object.fromEntries(
|
|
157
|
+
result.rows.flatMap((row) => {
|
|
158
|
+
const { task_id: taskId, run_id: runId } = row as {
|
|
159
|
+
task_id?: unknown;
|
|
160
|
+
run_id?: unknown;
|
|
161
|
+
};
|
|
162
|
+
return typeof taskId === 'string' && typeof runId === 'string'
|
|
163
|
+
? [[taskId, runId]]
|
|
164
|
+
: [];
|
|
165
|
+
}),
|
|
166
|
+
),
|
|
125
167
|
returnedAt,
|
|
126
168
|
});
|
|
127
169
|
}
|