deepline 0.3.551 → 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 +130 -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 +124 -10
- 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 +66 -30
- 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 +11 -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-monitor-upstream-identity.ts +80 -13
- 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/tamradar-countries.ts +285 -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 +312 -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 +568 -26
- 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-runs-rollout.ts +14 -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 +92 -16
- 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 +300 -57
- 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 +298 -46
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +39 -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-rate-state.ts +32 -10
- 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/tool-result.ts +37 -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-E7BH4GMJ.mjs → auth-I3QAU4RV.mjs} +8 -7
- package/dist/cli/auth-MQCN7WGZ.js +44 -0
- package/dist/cli/{billing-OXKU462W.mjs → billing-3IC54OQQ.mjs} +202 -59
- package/dist/cli/{billing-DNQAZGX7.js → billing-YGFFVAIC.js} +302 -159
- package/dist/cli/{chunk-COGREZAO.js → chunk-2B5B5KAW.js} +210 -128
- package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
- package/dist/cli/{chunk-T2B5BVZE.js → chunk-3NTP2OSG.js} +13 -13
- package/dist/cli/{chunk-FOTGUFVK.mjs → chunk-45OAVGU6.mjs} +5 -5
- package/dist/cli/{chunk-54EEYLTF.js → chunk-4747TPLV.js} +3 -3
- package/dist/cli/{chunk-CLRAANWH.mjs → chunk-4BFTDNHU.mjs} +1 -1
- package/dist/cli/{chunk-BGBJV26E.mjs → chunk-4HYNMXXF.mjs} +4 -4
- package/dist/cli/{chunk-5S6PHKRV.mjs → chunk-4SMCFQ23.mjs} +1 -1
- package/dist/cli/{chunk-VWLHRZFG.mjs → chunk-55F6HNOY.mjs} +5 -5
- package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
- package/dist/cli/{chunk-VTGG2RT3.js → chunk-6NE3RRRY.js} +1 -1
- package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
- package/dist/cli/{chunk-MNSTCJMX.mjs → chunk-72V4PDH5.mjs} +18 -18
- package/dist/cli/{chunk-ZCDKE4UH.js → chunk-74RES4DS.js} +5 -5
- package/dist/cli/{chunk-WKBHUB6R.js → chunk-7GEMELKI.js} +366 -320
- package/dist/cli/{chunk-C4CUZH57.js → chunk-7O6J6A7P.js} +1871 -92
- package/dist/cli/{chunk-7RSIFA72.js → chunk-7SERLBNR.js} +161 -53
- package/dist/cli/{chunk-3G6QZACZ.js → chunk-7YRJ5UC4.js} +21 -21
- package/dist/cli/{chunk-I4VKGNAQ.mjs → chunk-A7DLBE5K.mjs} +136 -54
- package/dist/cli/{chunk-GGB3JYCW.mjs → chunk-AGICYWGN.mjs} +299 -69
- package/dist/cli/{chunk-44KSACJW.mjs → chunk-AGIQDA2T.mjs} +12 -12
- package/dist/cli/{chunk-PACD5DGC.js → chunk-AGLR6QVN.js} +255 -109
- package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
- package/dist/cli/{chunk-4OMAGJ6U.js → chunk-BVDKFS2T.js} +2 -2
- package/dist/cli/{chunk-LPJPCGT3.js → chunk-CACFJODG.js} +190 -134
- package/dist/cli/{chunk-GVYLCCKN.mjs → chunk-CAEBJOYU.mjs} +1 -1
- package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
- package/dist/cli/{chunk-POLUE7D5.js → chunk-DP2VH7CO.js} +12 -12
- package/dist/cli/{chunk-D6M5HFBB.mjs → chunk-DP64MD6U.mjs} +1 -1
- package/dist/cli/{chunk-W425ERWN.mjs → chunk-DZA7RFGL.mjs} +5 -5
- package/dist/cli/{chunk-R7J7CJPZ.js → chunk-E2G2DNAB.js} +4 -1
- package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-E7WZOX2A.mjs} +22 -18
- package/dist/cli/{chunk-44I675YK.js → chunk-FM7LPUPA.js} +41 -41
- package/dist/cli/{chunk-2UXDHFSF.mjs → chunk-GAVZ4EOD.mjs} +1 -1
- package/dist/cli/{chunk-Z2FIOG3V.js → chunk-HEBO3XNZ.js} +27 -31
- package/dist/cli/{chunk-6PWJKMFQ.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-3KYBDAR3.js → chunk-IMX7J4DU.js} +8 -8
- package/dist/cli/{chunk-HEHVGEZV.mjs → chunk-INEMTYMT.mjs} +8 -8
- package/dist/cli/{chunk-5VVSEU67.js → chunk-IUOGII7D.js} +6 -7
- package/dist/cli/{chunk-MXGA6JFI.mjs → chunk-JJGWHITQ.mjs} +5 -5
- package/dist/cli/{chunk-QM6Y6S4E.js → chunk-JLGP5XAJ.js} +5 -5
- package/dist/cli/{chunk-V6SCP4B7.mjs → chunk-LFOERUQY.mjs} +69 -3
- package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
- package/dist/cli/{chunk-ZMNGZ6XS.mjs → chunk-LH5PZKER.mjs} +80 -24
- package/dist/cli/{chunk-MR5LTVHD.js → chunk-LRDHPOZW.js} +69 -69
- package/dist/cli/{chunk-5LUF4LAR.mjs → chunk-LRZGS6RZ.mjs} +3 -0
- package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
- package/dist/cli/{chunk-UDXULACQ.js → chunk-MLABYI4M.js} +90 -24
- package/dist/cli/{chunk-S7IZWGUA.mjs → chunk-NDNHYONK.mjs} +17 -21
- package/dist/cli/{chunk-4D3WIZST.mjs → chunk-OTV2UUKW.mjs} +164 -18
- package/dist/cli/{chunk-XYE5XPGF.js → chunk-Q6Z6N3A7.js} +18 -18
- package/dist/cli/{chunk-7WQNWJQW.mjs → chunk-QG6JIWUL.mjs} +151 -43
- package/dist/cli/{chunk-3T65J5RG.mjs → chunk-QI5S5HWB.mjs} +2 -2
- package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
- package/dist/cli/{chunk-PM7MO62Y.mjs → chunk-RMNOZKRI.mjs} +3 -3
- package/dist/cli/{chunk-NMWGZD6Y.js → chunk-RTV4RF7N.js} +36 -36
- package/dist/cli/{chunk-CQ6JYQSW.js → chunk-SBH4CKPN.js} +11 -11
- package/dist/cli/{chunk-BIIJATTX.mjs → chunk-SG3LUONJ.mjs} +3 -3
- package/dist/cli/{chunk-2WFPHBR4.js → chunk-TFEXSHPM.js} +22 -18
- package/dist/cli/{chunk-5IL7SC45.mjs → chunk-TN4TY6TT.mjs} +6 -7
- package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-UEVKMZLR.mjs} +54 -3
- package/dist/cli/{chunk-RE5MJBEV.mjs → chunk-UVQJYV76.mjs} +2 -2
- package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
- package/dist/cli/{chunk-W2ZWQUHT.js → chunk-WOCHZCUJ.js} +2 -2
- package/dist/cli/{chunk-ZDQFBJPO.js → chunk-XLIHTJVM.js} +348 -118
- package/dist/cli/{chunk-2ZYRBMQM.js → chunk-Y6SP3JMI.js} +22 -22
- package/dist/cli/{chunk-PPSDCN6C.js → chunk-YUA6HA6D.js} +2 -2
- package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
- package/dist/cli/{chunk-E64HFB4L.mjs → chunk-Z6XPSHKM.mjs} +87 -41
- package/dist/cli/{chunk-7DOQ3OEX.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-C6L6I5OR.mjs → concurrent-runs-help-DNV2X5AZ.mjs} +9 -8
- package/dist/cli/{csv-QMF4FWE7.js → csv-SA6ELJY6.js} +16 -15
- package/dist/cli/{csv-SYSDXFEM.mjs → csv-ZXZGHWOM.mjs} +7 -6
- package/dist/cli/{db-Q7HURWRZ.mjs → db-A54SP6AD.mjs} +16 -16
- package/dist/cli/{db-YSHPPA4H.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-G7U3VUXN.mjs → executions-HL2M2DFU.mjs} +10 -10
- package/dist/cli/{executions-MWBC5TAW.js → executions-TLFZRHBJ.js} +12 -12
- package/dist/cli/{feedback-SD55OY6H.js → feedback-5UEX5UZK.js} +17 -16
- package/dist/cli/{feedback-GMHIFLBJ.mjs → feedback-QMBTNXVG.mjs} +9 -8
- package/dist/cli/git-4JWOOHBG.js +26 -0
- package/dist/cli/{git-HPE45OPD.mjs → git-LKGXVIVC.mjs} +8 -7
- package/dist/cli/index.js +170 -158
- package/dist/cli/index.mjs +60 -48
- package/dist/cli/{integrations-HFKVBY6G.js → integrations-6RUTLMN7.js} +23 -27
- package/dist/cli/{integrations-2W4MGIQR.mjs → integrations-FGGRVUJ7.mjs} +15 -19
- package/dist/cli/{legacy-noops-SXVNDEXN.js → legacy-noops-J3Z7QRWZ.js} +12 -11
- package/dist/cli/{legacy-noops-GZYKNU2Z.mjs → legacy-noops-YIPRMVXZ.mjs} +9 -8
- package/dist/cli/{mcp-PJRHQHHU.js → mcp-6LWFP7RW.js} +121 -48
- package/dist/cli/{mcp-BWA6KULG.mjs → mcp-CHDYFO7F.mjs} +100 -27
- package/dist/cli/{monitors-K2WSI6CR.js → monitors-STM6A7OU.js} +221 -186
- package/dist/cli/{monitors-SYQKCATO.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-SZXY2F2S.js → play-SM4CW2GS.js} +1116 -846
- package/dist/cli/{play-TTMABJEI.mjs → play-SN5YWLS7.mjs} +375 -105
- package/dist/cli/{providers-GQIOMRQO.mjs → providers-WZ4YBR5Y.mjs} +10 -10
- package/dist/cli/{providers-YDHCTZAF.js → providers-WZARYMCF.js} +13 -13
- package/dist/cli/{quickstart-PHSSMKCA.mjs → quickstart-2575BNKA.mjs} +7 -6
- package/dist/cli/{quickstart-BNYOXQXG.js → quickstart-PS4YHQJ6.js} +9 -8
- package/dist/cli/{run-GFIAZXVL.js → run-FLZ6OTM7.js} +51 -51
- package/dist/cli/{run-74C3C75C.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-3SWUB7KX.mjs → search-HLPPKQEO.mjs} +11 -11
- package/dist/cli/search-JJWVHR3N.js +32 -0
- package/dist/cli/{search-output-K2SWHVHQ.mjs → search-output-PDAXNOGP.mjs} +9 -8
- package/dist/cli/{search-output-6JF3S4TP.js → search-output-RXJLU36B.js} +12 -11
- package/dist/cli/{secrets-2M4XWEKE.mjs → secrets-CGELYQ3H.mjs} +11 -11
- package/dist/cli/{secrets-2SAKLH2H.js → secrets-QJNG7G2Y.js} +20 -20
- package/dist/cli/sessions-DHTBT2GN.js +23 -0
- package/dist/cli/{sessions-A64BCXTO.mjs → sessions-ELMWVR4M.mjs} +9 -8
- package/dist/cli/{settings-HV64WIJF.js → settings-44I44P5F.js} +89 -89
- package/dist/cli/{settings-SVGEC3FI.mjs → settings-RR3LZXL7.mjs} +16 -16
- package/dist/cli/{setup-EDC3NEJ3.mjs → setup-KGWRWH4B.mjs} +20 -19
- package/dist/cli/{setup-FHXOLQGQ.js → setup-KTEYOCJO.js} +60 -59
- package/dist/cli/skills-EPZPEXI2.js +37 -0
- package/dist/cli/{skills-3HGHZMXB.mjs → skills-FPRID2I5.mjs} +10 -9
- package/dist/cli/tools-IGQQ5TML.js +57 -0
- package/dist/cli/{tools-P2QS6A6Q.mjs → tools-PI4WMDLY.mjs} +23 -23
- package/dist/cli/update-4RNCVYGE.js +37 -0
- package/dist/cli/{update-552BYQM4.mjs → update-VJOJAZ7B.mjs} +14 -11
- package/dist/cli/{views-PA25NAE3.js → views-NTUOLNQU.js} +62 -64
- package/dist/cli/{views-LD5HXJYY.mjs → views-OVPSINZO.mjs} +47 -49
- package/dist/cli/{workflow-FIDBUQV6.js → workflow-2UDYDM6F.js} +23 -23
- package/dist/cli/{workflow-LDYFGBYP.mjs → workflow-7OEFNXZC.mjs} +13 -13
- package/dist/{client-DuDFiJDU.d.mts → client-B8f7RNF8.d.mts} +1 -1
- package/dist/{client-t9HZAkFD.d.ts → client-C5TgXmJQ.d.ts} +1 -1
- package/dist/{client-core-DydMQOft.d.mts → client-core-SLLGBTht.d.mts} +285 -23
- package/dist/{client-core-CJRzLanv.d.ts → client-core-p0sOxnkl.d.ts} +285 -23
- package/dist/{compiler-manifest-BqwVrOri.d.mts → compiler-manifest-D_zZEh9Q.d.mts} +70 -5
- package/dist/{compiler-manifest-BqwVrOri.d.ts → 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 +162 -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-B4PI7GVY.js +0 -43
- package/dist/cli/concurrent-runs-help-JEFQZTJI.js +0 -21
- package/dist/cli/describe-PXTSBJTL.js +0 -50
- package/dist/cli/describe-YGMQBV44.mjs +0 -50
- package/dist/cli/git-I3JV7IGH.js +0 -25
- package/dist/cli/org-5KD7X7IA.mjs +0 -1282
- package/dist/cli/org-YQ2CR32B.js +0 -1282
- package/dist/cli/run-identity-G257GQED.js +0 -25
- package/dist/cli/search-2RRRF4LW.js +0 -32
- package/dist/cli/sessions-SBH27JNW.js +0 -22
- package/dist/cli/skills-Y3SRLOYD.js +0 -36
- package/dist/cli/tools-OFYPUPUV.js +0 -57
- package/dist/cli/update-SOUSCLB7.js +0 -34
package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts
CHANGED
|
@@ -111,9 +111,8 @@ function parseIpv4Cidr(entry: string): Ipv4Cidr | null {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
function cidrCovers(cidr: Ipv4Cidr, address: number): boolean {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
return ((cidr.network & mask) >>> 0) === ((address & mask) >>> 0);
|
|
114
|
+
const mask = cidrMask(cidr.prefix);
|
|
115
|
+
return (cidr.network & mask) >>> 0 === (address & mask) >>> 0;
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
/** Gateway hostnames (or literal IPv4s) whose addresses the gate checks. */
|
|
@@ -147,6 +146,12 @@ export type EarlySandboxGatewayAddresses =
|
|
|
147
146
|
/** Every IPv4 address of every host. */
|
|
148
147
|
addresses: readonly string[];
|
|
149
148
|
atMs: number;
|
|
149
|
+
/**
|
|
150
|
+
* When this exact address set was first resolved, carried across
|
|
151
|
+
* refreshes that return the same set; a failed refresh resets it.
|
|
152
|
+
* Absent on states built elsewhere, which narrowing then refuses.
|
|
153
|
+
*/
|
|
154
|
+
stableSinceMs?: number;
|
|
150
155
|
};
|
|
151
156
|
|
|
152
157
|
/**
|
|
@@ -170,26 +175,157 @@ export function earlySandboxEgressRefusal(input: {
|
|
|
170
175
|
return 'egress_allowlist_too_wide';
|
|
171
176
|
cidrs.push(cidr);
|
|
172
177
|
}
|
|
178
|
+
const fresh = freshGatewayAddresses(input);
|
|
179
|
+
if ('refused' in fresh) return fresh.refused;
|
|
180
|
+
for (const value of fresh.addresses) {
|
|
181
|
+
if (!cidrs.some((cidr) => cidrCovers(cidr, value)))
|
|
182
|
+
return 'egress_gateway_uncovered';
|
|
183
|
+
}
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* The gateways' current IPv4 addresses as integers, or why they cannot be
|
|
189
|
+
* trusted: unconfigured, not yet (or not for these hosts) resolved, failed,
|
|
190
|
+
* stale, empty or not IPv4.
|
|
191
|
+
*/
|
|
192
|
+
function freshGatewayAddresses(input: {
|
|
193
|
+
gatewayHosts: readonly string[] | null;
|
|
194
|
+
gateway: EarlySandboxGatewayAddresses;
|
|
195
|
+
nowMs: number;
|
|
196
|
+
}): { addresses: number[] } | { refused: EarlySandboxEgressRefusal } {
|
|
173
197
|
if (!input.gatewayHosts || input.gatewayHosts.length === 0)
|
|
174
|
-
return 'egress_gateway_unconfigured';
|
|
198
|
+
return { refused: 'egress_gateway_unconfigured' };
|
|
175
199
|
const gateway = input.gateway;
|
|
176
|
-
if (gateway.status === 'pending')
|
|
177
|
-
|
|
200
|
+
if (gateway.status === 'pending')
|
|
201
|
+
return { refused: 'egress_gateway_dns_pending' };
|
|
202
|
+
if (gateway.status === 'failed')
|
|
203
|
+
return { refused: 'egress_gateway_dns_failed' };
|
|
178
204
|
// Resolved for other hosts (the env changed): not yet resolved for these.
|
|
179
205
|
if (
|
|
180
206
|
gateway.hosts.length !== input.gatewayHosts.length ||
|
|
181
207
|
gateway.hosts.some((host, index) => host !== input.gatewayHosts![index])
|
|
182
208
|
)
|
|
183
|
-
return 'egress_gateway_dns_pending';
|
|
209
|
+
return { refused: 'egress_gateway_dns_pending' };
|
|
184
210
|
if (input.nowMs - gateway.atMs > EARLY_SANDBOX_GATEWAY_DNS_MAX_AGE_MS)
|
|
185
|
-
return 'egress_gateway_dns_stale';
|
|
186
|
-
if (gateway.addresses.length === 0)
|
|
211
|
+
return { refused: 'egress_gateway_dns_stale' };
|
|
212
|
+
if (gateway.addresses.length === 0)
|
|
213
|
+
return { refused: 'egress_gateway_dns_failed' };
|
|
214
|
+
const addresses: number[] = [];
|
|
187
215
|
for (const address of gateway.addresses) {
|
|
188
216
|
const value = ipv4ToInt(address);
|
|
189
|
-
if (value === null
|
|
190
|
-
|
|
217
|
+
if (value === null) return { refused: 'egress_gateway_uncovered' };
|
|
218
|
+
addresses.push(value);
|
|
191
219
|
}
|
|
192
|
-
return
|
|
220
|
+
return { addresses };
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function intToIpv4(value: number): string {
|
|
224
|
+
return [24, 16, 8, 0].map((shift) => (value >>> shift) & 255).join('.');
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function cidrMask(prefix: number): number {
|
|
228
|
+
return prefix === 0 ? 0 : (0xffffffff << (32 - prefix)) >>> 0;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/** Whether every address of `inner` is in `outer`. */
|
|
232
|
+
function cidrContains(outer: Ipv4Cidr, inner: Ipv4Cidr): boolean {
|
|
233
|
+
return (
|
|
234
|
+
inner.prefix >= outer.prefix &&
|
|
235
|
+
(inner.network & cidrMask(outer.prefix)) >>> 0 ===
|
|
236
|
+
(outer.network & cidrMask(outer.prefix)) >>> 0
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export type EarlySandboxNarrowedAllowlist =
|
|
241
|
+
| { allowlist: string[] }
|
|
242
|
+
| {
|
|
243
|
+
refused:
|
|
244
|
+
| EarlySandboxEgressRefusal
|
|
245
|
+
| 'egress_narrow_prefix_invalid'
|
|
246
|
+
| 'egress_narrow_uncontained'
|
|
247
|
+
| 'egress_narrow_unstable';
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
export type EarlySandboxNarrowRefusal = Extract<
|
|
251
|
+
EarlySandboxNarrowedAllowlist,
|
|
252
|
+
{ refused: unknown }
|
|
253
|
+
>['refused'];
|
|
254
|
+
|
|
255
|
+
/** The narrowed list's prefix: each gateway address alone. */
|
|
256
|
+
export const EARLY_SANDBOX_NARROW_PREFIX = 32;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* How long the gateways' address set must have stayed the same before a
|
|
260
|
+
* narrowed list is derived from it. An adopted sandbox keeps its list for its
|
|
261
|
+
* whole run, so a set that just changed is the likeliest to change again.
|
|
262
|
+
*/
|
|
263
|
+
export const EARLY_SANDBOX_NARROW_MIN_STABLE_MS = 30 * 60_000;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* An allowlist for one early sandbox that only shrinks the deployment's:
|
|
267
|
+
* each current gateway address masked to `prefix` (24..32), kept only when
|
|
268
|
+
* some deployment entry fully contains it. Pure, and refuses (fail closed)
|
|
269
|
+
* on anything the gate itself would refuse about the gateways, on an
|
|
270
|
+
* unusable deployment allowlist, and on a derived range the deployment
|
|
271
|
+
* allowlist does not contain. Whatever it returns passes
|
|
272
|
+
* `earlySandboxEgressRefusal` for the same gateway state.
|
|
273
|
+
*
|
|
274
|
+
* With `minStableMs`, it also refuses (`egress_narrow_unstable`) unless the
|
|
275
|
+
* gateway address set has stayed the same for at least that long.
|
|
276
|
+
*
|
|
277
|
+
* Used only behind the per-run EN switch (Modal early create and adoption),
|
|
278
|
+
* which only a per-organization fast_launch@7 pin grants.
|
|
279
|
+
*/
|
|
280
|
+
export function narrowEarlySandboxAllowlist(input: {
|
|
281
|
+
outboundCidrAllowlist: readonly string[] | null | undefined;
|
|
282
|
+
prefix: number;
|
|
283
|
+
gatewayHosts: readonly string[] | null;
|
|
284
|
+
gateway: EarlySandboxGatewayAddresses;
|
|
285
|
+
nowMs: number;
|
|
286
|
+
minStableMs?: number;
|
|
287
|
+
}): EarlySandboxNarrowedAllowlist {
|
|
288
|
+
if (
|
|
289
|
+
!Number.isInteger(input.prefix) ||
|
|
290
|
+
input.prefix < EARLY_SANDBOX_EGRESS_MIN_PREFIX ||
|
|
291
|
+
input.prefix > 32
|
|
292
|
+
)
|
|
293
|
+
return { refused: 'egress_narrow_prefix_invalid' };
|
|
294
|
+
const allowlist = input.outboundCidrAllowlist;
|
|
295
|
+
if (!allowlist) return { refused: 'egress_allowlist_missing' };
|
|
296
|
+
if (allowlist.length === 0) return { refused: 'egress_allowlist_empty' };
|
|
297
|
+
const deployment: Ipv4Cidr[] = [];
|
|
298
|
+
for (const entry of allowlist) {
|
|
299
|
+
const cidr = parseIpv4Cidr(entry);
|
|
300
|
+
if (!cidr) return { refused: 'egress_allowlist_invalid' };
|
|
301
|
+
deployment.push(cidr);
|
|
302
|
+
}
|
|
303
|
+
const fresh = freshGatewayAddresses(input);
|
|
304
|
+
if ('refused' in fresh) return fresh;
|
|
305
|
+
if (input.minStableMs !== undefined) {
|
|
306
|
+
const stableSinceMs =
|
|
307
|
+
input.gateway.status === 'resolved'
|
|
308
|
+
? input.gateway.stableSinceMs
|
|
309
|
+
: undefined;
|
|
310
|
+
if (
|
|
311
|
+
stableSinceMs === undefined ||
|
|
312
|
+
input.nowMs - stableSinceMs < input.minStableMs
|
|
313
|
+
)
|
|
314
|
+
return { refused: 'egress_narrow_unstable' };
|
|
315
|
+
}
|
|
316
|
+
const narrowed = new Set<string>();
|
|
317
|
+
for (const address of fresh.addresses) {
|
|
318
|
+
if (!deployment.some((cidr) => cidrCovers(cidr, address)))
|
|
319
|
+
return { refused: 'egress_gateway_uncovered' };
|
|
320
|
+
const derived = {
|
|
321
|
+
network: (address & cidrMask(input.prefix)) >>> 0,
|
|
322
|
+
prefix: input.prefix,
|
|
323
|
+
};
|
|
324
|
+
if (!deployment.some((cidr) => cidrContains(cidr, derived)))
|
|
325
|
+
return { refused: 'egress_narrow_uncontained' };
|
|
326
|
+
narrowed.add(`${intToIpv4(derived.network)}/${derived.prefix}`);
|
|
327
|
+
}
|
|
328
|
+
return { allowlist: [...narrowed].sort() };
|
|
193
329
|
}
|
|
194
330
|
|
|
195
331
|
export type ResolveIpv4 = (host: string) => Promise<string[]>;
|
|
@@ -266,11 +402,22 @@ export class EarlySandboxGatewayAddressWatch {
|
|
|
266
402
|
throw new Error(`no IPv4 address for ${host}`);
|
|
267
403
|
for (const address of resolved) addresses.add(address);
|
|
268
404
|
}
|
|
405
|
+
const sorted = [...addresses].sort();
|
|
406
|
+
const previous = this.#state;
|
|
407
|
+
const atMs = this.#nowMs();
|
|
408
|
+
const unchanged =
|
|
409
|
+
previous.status === 'resolved' &&
|
|
410
|
+
previous.hosts.join(',') === hosts.join(',') &&
|
|
411
|
+
previous.addresses.join(',') === sorted.join(',');
|
|
269
412
|
this.#state = {
|
|
270
413
|
status: 'resolved',
|
|
271
414
|
hosts,
|
|
272
|
-
addresses:
|
|
273
|
-
atMs
|
|
415
|
+
addresses: sorted,
|
|
416
|
+
atMs,
|
|
417
|
+
stableSinceMs:
|
|
418
|
+
unchanged && previous.stableSinceMs !== undefined
|
|
419
|
+
? previous.stableSinceMs
|
|
420
|
+
: atMs,
|
|
274
421
|
};
|
|
275
422
|
} catch (error) {
|
|
276
423
|
this.#state = {
|
|
@@ -213,10 +213,21 @@ export class EarlySandboxRegistry<
|
|
|
213
213
|
take(key: string): Promise<EarlySandboxEntry<TSandbox> | null> | undefined {
|
|
214
214
|
const entry = this.#entries.get(key);
|
|
215
215
|
this.#entries.delete(key);
|
|
216
|
-
if (entry)
|
|
216
|
+
if (entry) {
|
|
217
|
+
this.#release(entry);
|
|
218
|
+
for (const handler of this.#takeHandlers) handler(key);
|
|
219
|
+
}
|
|
217
220
|
return entry;
|
|
218
221
|
}
|
|
219
222
|
|
|
223
|
+
/** LH: told each key a launch (or a reap) takes from this registry. */
|
|
224
|
+
subscribeTake(handler: (key: string) => void): () => void {
|
|
225
|
+
this.#takeHandlers.add(handler);
|
|
226
|
+
return () => this.#takeHandlers.delete(handler);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
readonly #takeHandlers = new Set<(key: string) => void>();
|
|
230
|
+
|
|
220
231
|
/**
|
|
221
232
|
* The reaper or sweep has settled this sandbox (terminated, or found it
|
|
222
233
|
* adopted by a launch elsewhere): it no longer counts as outstanding. A
|
|
@@ -396,8 +407,10 @@ export type EarlySandboxAdapter<
|
|
|
396
407
|
/**
|
|
397
408
|
* Why this process cannot start an early sandbox on this provider now (a
|
|
398
409
|
* provider precondition), or null. Checked after E2 resolves on; not logged.
|
|
410
|
+
* It gets the hinted run, whose per-run switches may change the egress
|
|
411
|
+
* policy the create would carry (Modal's EN).
|
|
399
412
|
*/
|
|
400
|
-
startUnavailable(): string | null;
|
|
413
|
+
startUnavailable(input: EarlySandboxStartRequest): string | null;
|
|
401
414
|
/**
|
|
402
415
|
* The environment and egress policy this process's early create would
|
|
403
416
|
* carry; part of the key. Called only after `startUnavailable` is null.
|
|
@@ -437,7 +450,7 @@ export function startEarlySandbox<TSandbox extends EarlySandboxHandle>(
|
|
|
437
450
|
input.experimentSwitchOverrides,
|
|
438
451
|
EARLY_SANDBOX_START,
|
|
439
452
|
) ||
|
|
440
|
-
adapter.startUnavailable() !== null
|
|
453
|
+
adapter.startUnavailable(input) !== null
|
|
441
454
|
)
|
|
442
455
|
return false;
|
|
443
456
|
// The key and the adoption check are org-scoped; a hint without an org
|
|
@@ -274,3 +274,40 @@ export async function gunzipRuntimeApiRequestBody(input: {
|
|
|
274
274
|
throw error;
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
+
|
|
278
|
+
/** The existing runtime JSON transport, with cancellable compressed-body reads. */
|
|
279
|
+
export async function readRuntimeApiRequestJson(input: {
|
|
280
|
+
request: Request;
|
|
281
|
+
maxBytes: number;
|
|
282
|
+
signal?: AbortSignal;
|
|
283
|
+
}): Promise<unknown> {
|
|
284
|
+
const { request } = input;
|
|
285
|
+
if (!isGzipContentEncoding(request.headers.get('content-encoding')))
|
|
286
|
+
return request.json();
|
|
287
|
+
const signal = input.signal ?? request.signal;
|
|
288
|
+
const reader = request.body?.getReader();
|
|
289
|
+
if (!reader) throw new SyntaxError('Runtime request body is empty.');
|
|
290
|
+
const chunks: Buffer[] = [];
|
|
291
|
+
const onAbort = () => {
|
|
292
|
+
void reader.cancel(signal.reason).catch(() => undefined);
|
|
293
|
+
};
|
|
294
|
+
signal.addEventListener('abort', onAbort, { once: true });
|
|
295
|
+
try {
|
|
296
|
+
if (signal.aborted) throw signal.reason;
|
|
297
|
+
while (true) {
|
|
298
|
+
const { value, done } = await reader.read();
|
|
299
|
+
if (signal.aborted) throw signal.reason;
|
|
300
|
+
if (done) break;
|
|
301
|
+
chunks.push(Buffer.from(value));
|
|
302
|
+
}
|
|
303
|
+
} finally {
|
|
304
|
+
signal.removeEventListener('abort', onAbort);
|
|
305
|
+
reader.releaseLock();
|
|
306
|
+
}
|
|
307
|
+
const decoded = await gunzipRuntimeApiRequestBody({
|
|
308
|
+
body: Buffer.concat(chunks),
|
|
309
|
+
maxBytes: input.maxBytes,
|
|
310
|
+
});
|
|
311
|
+
if (signal.aborted) throw signal.reason;
|
|
312
|
+
return JSON.parse(decoded.toString('utf8')) as unknown;
|
|
313
|
+
}
|
|
@@ -36,3 +36,12 @@ export function integrationExecutePath(
|
|
|
36
36
|
): string {
|
|
37
37
|
return `/api/v2/integrations/${encodeURIComponent(toolId)}/${suffix}`;
|
|
38
38
|
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* One GET for a runner's park-fence startup reads: every named tool's
|
|
42
|
+
* metadata and auth-scope answer, as the two per-tool routes would give them
|
|
43
|
+
* (`startup-read-tool-ids.ts`). Not under `runtime-tools/`, so no tool id can
|
|
44
|
+
* shadow it.
|
|
45
|
+
*/
|
|
46
|
+
export const PLAY_RUNTIME_TOOL_STARTUP_READS_PATH =
|
|
47
|
+
'/api/v2/plays/runtime-tool-startup-reads';
|