deepline 0.3.542 → 0.3.544
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 +112 -2
- package/dist/bundling-sources/sdk/src/index.ts +7 -0
- package/dist/bundling-sources/sdk/src/integrations.ts +198 -0
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/tool-calls.ts +35 -11
- package/dist/bundling-sources/sdk/src/types.ts +10 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/calendar-delegation.ts +132 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +3 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/tool-connection.ts +13 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +108 -1
- package/dist/bundling-sources/shared_libs/monitors/package.json +1 -1
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +5 -5
- package/dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts +34 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +11 -5
- package/dist/bundling-sources/shared_libs/play-runtime/baked-runner-image.ts +9 -7
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +235 -12
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +20 -1
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +39 -30
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/event-wait-tools.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +10 -4
- package/dist/bundling-sources/shared_libs/play-runtime/fleet-sandbox-sweep.ts +209 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +24 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +37 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +43 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +23 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +320 -836
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/vercel-sandbox.ts +1061 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +862 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +45 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/sandbox-create-outcome.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +11 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-contract.ts +20 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +71 -34
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-provider-profile.ts +286 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +4 -1
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +12 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +49 -55
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +127 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +214 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/managed-sandbox-resource-sql.ts +118 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +229 -144
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +11 -13
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +42 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/vercel-sandbox-runtime-config.ts +217 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +23 -0
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +1 -0
- package/dist/bundling-sources/shared_libs/plays/script-entry.ts +76 -6
- package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +1 -0
- package/dist/bundling-sources/shared_libs/security/credential-revision.ts +50 -0
- package/dist/bundling-sources/shared_libs/security/internal-actor.ts +2 -1
- package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +37 -0
- package/dist/cli/auth-ENBXAKQS.js +43 -0
- package/dist/cli/{auth-IGBGOB4E.mjs → auth-IMWJAHPU.mjs} +5 -5
- package/dist/cli/{billing-IB2TWE74.js → billing-Y55PR2PV.js} +101 -101
- package/dist/cli/{billing-N37W2I62.mjs → billing-YQMW3QJI.mjs} +12 -12
- package/dist/cli/chunk-22OBDYHP.js +455 -0
- package/dist/cli/{chunk-GBAT5NMI.mjs → chunk-2HSZCQMT.mjs} +48 -6
- package/dist/cli/{chunk-VLEVVDWG.js → chunk-2JHYYB3F.js} +3 -3
- package/dist/cli/{chunk-D44DP4KJ.js → chunk-3I26HMJ7.js} +37 -17
- package/dist/cli/{chunk-B5NP3SHX.mjs → chunk-3JDA23NN.mjs} +2 -2
- package/dist/cli/{chunk-QXNOSCYL.js → chunk-3KGMM4KS.js} +1 -1
- package/dist/cli/{chunk-6WQDHEVF.mjs → chunk-456RRXAP.mjs} +5 -5
- package/dist/cli/{chunk-V4EYJKGJ.js → chunk-4JQEAYN3.js} +156 -17
- package/dist/cli/{chunk-FGGPCAGC.js → chunk-4PKHFW56.js} +18 -18
- package/dist/cli/{chunk-QONO7FRF.mjs → chunk-57G4NYOL.mjs} +1 -1
- package/dist/cli/{chunk-46V7QSJE.mjs → chunk-5PR4VLLL.mjs} +3 -3
- package/dist/cli/{chunk-OLH2PHMC.mjs → chunk-6P7TGCHQ.mjs} +1 -1
- package/dist/cli/{chunk-AKY7KZRJ.js → chunk-7GNZEOTH.js} +6 -6
- package/dist/cli/{chunk-LFMQVSEI.js → chunk-7HMMTSDA.js} +5 -5
- package/dist/cli/{chunk-ORA5TMML.mjs → chunk-BEQ7RQLT.mjs} +5 -5
- package/dist/cli/{chunk-KQSTV4MW.js → chunk-BLYW6FFB.js} +60 -18
- package/dist/cli/{chunk-GM73TZ2W.js → chunk-C4P2KLWT.js} +41 -41
- package/dist/cli/{chunk-DNGACHFX.js → chunk-COJHT2KF.js} +22 -22
- package/dist/cli/{chunk-6SLEHAXX.js → chunk-DF2X7GJG.js} +5 -5
- package/dist/cli/{chunk-TT4JUUC3.mjs → chunk-DVDWAC2M.mjs} +7 -3
- package/dist/cli/{chunk-5CAVURVS.js → chunk-DYDHLBSK.js} +53 -53
- package/dist/cli/{chunk-UNDLNT3V.js → chunk-ECWOIXAV.js} +1 -1
- package/dist/cli/{chunk-EHLCWGWN.js → chunk-G26VJCNT.js} +4 -4
- package/dist/cli/{chunk-WL2GUGNZ.js → chunk-GQHRGBHV.js} +7 -7
- package/dist/cli/{chunk-DADH3WPE.mjs → chunk-GV45TTI6.mjs} +2 -2
- package/dist/cli/{chunk-OVX3Q5Q3.mjs → chunk-GWNYLIF7.mjs} +1 -1
- package/dist/cli/{chunk-EGOCGWCI.mjs → chunk-H4SAHB3Q.mjs} +3 -3
- package/dist/cli/{chunk-FX4OWXKK.mjs → chunk-HAQRF6DJ.mjs} +2 -2
- package/dist/cli/{chunk-NLZHLEHD.mjs → chunk-HBSWATOU.mjs} +6 -6
- package/dist/cli/{chunk-ACVTMAW4.mjs → chunk-HVJQF5BI.mjs} +2 -2
- package/dist/cli/{chunk-L2VKAASU.mjs → chunk-HXIR3VQL.mjs} +21 -0
- package/dist/cli/{chunk-Z5YRKX7K.mjs → chunk-HXM2JUGD.mjs} +1 -1
- package/dist/cli/{chunk-JPT6VE54.js → chunk-IFIJ4DBJ.js} +2 -2
- package/dist/cli/{chunk-HAITCPCG.js → chunk-JBWOE6AP.js} +16 -16
- package/dist/cli/{chunk-AWLPERL3.js → chunk-JWVG7ZPX.js} +3 -3
- package/dist/cli/{chunk-3XXXMSSP.js → chunk-KE6CSCUF.js} +44 -44
- package/dist/cli/{chunk-2ZGSHVZE.mjs → chunk-LPUBBUKX.mjs} +24 -4
- package/dist/cli/{chunk-PLIKPGOO.mjs → chunk-LQ6RRYXN.mjs} +5 -5
- package/dist/cli/{chunk-FFDZT255.mjs → chunk-LW274RO7.mjs} +1 -1
- package/dist/cli/{chunk-Z2XA6YU4.mjs → chunk-LX35AXTN.mjs} +1 -0
- package/dist/cli/{chunk-FANIRW74.mjs → chunk-NIPLY25A.mjs} +0 -2
- package/dist/cli/{chunk-VHJUH3TB.js → chunk-ON56ISO6.js} +3 -3
- package/dist/cli/{chunk-4I47NCRI.js → chunk-PDJ4UDCO.js} +498 -328
- package/dist/cli/{chunk-SWO5QOXB.mjs → chunk-PFGOCUH3.mjs} +1 -1
- package/dist/cli/{chunk-Q7WDXLYO.js → chunk-PKRW76XG.js} +2 -2
- package/dist/cli/{chunk-YK7NNZD4.mjs → chunk-PMW5YP72.mjs} +37 -190
- package/dist/cli/{chunk-5APOJWJF.mjs → chunk-Q7ZOWNKR.mjs} +183 -13
- package/dist/cli/{chunk-WACIN4PR.mjs → chunk-REEOMNCO.mjs} +3 -3
- package/dist/cli/{chunk-DMXLZ57N.js → chunk-RG34YBDE.js} +2 -2
- package/dist/cli/{chunk-3LEUSRV3.mjs → chunk-RJPDCSTD.mjs} +4 -4
- package/dist/cli/{chunk-IPVRMYWT.js → chunk-RKF263LR.js} +5 -5
- package/dist/cli/{chunk-AUFE624T.js → chunk-RUFR4PUO.js} +10 -10
- package/dist/cli/{chunk-I5EAIFGO.mjs → chunk-SK3HPU2J.mjs} +1 -1
- package/dist/cli/{chunk-ZVNYBQ77.mjs → chunk-SKS53WM6.mjs} +4 -4
- package/dist/cli/{chunk-CQDQNZGH.js → chunk-SL6MYJYM.js} +1 -0
- package/dist/cli/{chunk-E4CABWXL.js → chunk-TI6DTURF.js} +22 -1
- package/dist/cli/{chunk-CFZCRM6R.js → chunk-UHIAQPVA.js} +26 -26
- package/dist/cli/{chunk-D7GWEBMF.js → chunk-UNMNGRPB.js} +7 -7
- package/dist/cli/{chunk-GWHA4DAC.js → chunk-UV4RU2TE.js} +0 -2
- package/dist/cli/{chunk-TTBHOMAA.js → chunk-W7X4KH45.js} +316 -469
- package/dist/cli/chunk-WBSGPLH5.mjs +455 -0
- package/dist/cli/{chunk-SCLP5H4P.mjs → chunk-WUEORIOY.mjs} +1 -1
- package/dist/cli/{chunk-IDDKNMFX.mjs → chunk-Y3T5GWYK.mjs} +153 -14
- package/dist/cli/{chunk-P4MDTBAA.mjs → chunk-YIRVKMON.mjs} +1 -1
- package/dist/cli/{chunk-NDNEARE3.js → chunk-Z44YTSTA.js} +13 -13
- package/dist/cli/{chunk-F6QV42MC.mjs → chunk-Z7SXGOIQ.mjs} +1 -1
- package/dist/cli/{chunk-2VRKBHMD.mjs → chunk-ZHY4T5M6.mjs} +1 -1
- package/dist/cli/{chunk-E7B73LGT.js → chunk-ZY6FL4O4.js} +24 -20
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/{concurrent-runs-help-DIBGMEIN.mjs → concurrent-runs-help-KBWPKSTP.mjs} +7 -7
- package/dist/cli/concurrent-runs-help-TOMLCMV7.js +21 -0
- package/dist/cli/{csv-CAVA3EMS.mjs → csv-M5EBEMZH.mjs} +4 -4
- package/dist/cli/{csv-XZAM7EYZ.js → csv-XGGDZTQI.js} +13 -13
- package/dist/cli/{db-PPGEOBNG.js → db-CVPR54XK.js} +29 -29
- package/dist/cli/{db-HD332QI7.mjs → db-M6FJ6J6E.mjs} +8 -8
- package/dist/cli/describe-RUODIS6M.js +50 -0
- package/dist/cli/describe-X6QA2U3C.mjs +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 +3 -3
- package/dist/cli/describe-core.mjs +2 -2
- package/dist/cli/{executions-AFEOLB4A.mjs → executions-EHTS2XJX.mjs} +8 -8
- package/dist/cli/{executions-4ZKBL7IC.js → executions-VJEEWN22.js} +10 -10
- package/dist/cli/{feedback-J2YPLKMF.mjs → feedback-76VGY4GP.mjs} +6 -6
- package/dist/cli/{feedback-M6Y33JKT.js → feedback-DQPUCUXO.js} +14 -14
- package/dist/cli/{git-632RYEF6.mjs → git-IY6DKKLR.mjs} +5 -5
- package/dist/cli/git-RLHTSYRY.js +25 -0
- package/dist/cli/index.js +150 -146
- package/dist/cli/index.mjs +49 -45
- package/dist/cli/integrations-242LE3TQ.mjs +98 -0
- package/dist/cli/integrations-CQSTIKFY.js +98 -0
- package/dist/cli/{legacy-noops-KWZMXYAU.mjs → legacy-noops-SWTSTMRY.mjs} +6 -6
- package/dist/cli/{legacy-noops-4Y62TKPC.js → legacy-noops-U72DO6ZF.js} +9 -9
- package/dist/cli/{mcp-PESLHAAC.mjs → mcp-JJH6JR52.mjs} +72 -15
- package/dist/cli/{mcp-35QA6YG7.js → mcp-L473BKLJ.js} +89 -32
- package/dist/cli/{monitors-4DTUZLAI.js → monitors-3TF2DOFD.js} +119 -104
- package/dist/cli/{monitors-YVBKBJBU.mjs → monitors-VSYHUBKC.mjs} +26 -11
- package/dist/cli/{org-DJNKMFCZ.mjs → org-S5VIKU2E.mjs} +8 -8
- package/dist/cli/{org-FWCBZMER.js → org-YKVI2ZTI.js} +90 -90
- package/dist/cli/{play-PHVQEEEZ.mjs → play-C7T5A3QM.mjs} +44 -25
- package/dist/cli/{play-FZ45M4KD.js → play-DOWEG45Y.js} +374 -355
- package/dist/cli/{providers-46E67QG7.mjs → providers-BMVVX3VD.mjs} +10 -9
- package/dist/cli/{providers-QJU6FMDD.js → providers-TAZPPFTB.js} +13 -12
- package/dist/cli/{quickstart-6HMJJ4RR.mjs → quickstart-A3WKMKTW.mjs} +4 -4
- package/dist/cli/{quickstart-HOL7H5FS.js → quickstart-HD6FQXGR.js} +6 -6
- package/dist/cli/{run-WKSIRXEC.js → run-BVVV2UX7.js} +49 -48
- package/dist/cli/{run-2W2TJ6QA.mjs → run-FV7TWNOC.mjs} +28 -27
- package/dist/cli/{search-Y2CFLSYB.mjs → search-MGK6WIKS.mjs} +9 -9
- package/dist/cli/search-VJFCWUZN.js +32 -0
- package/dist/cli/{search-output-2IK6ZZDY.js → search-output-6Y7KEPIE.js} +6 -6
- package/dist/cli/{search-output-FCZ35PHF.mjs → search-output-GM7LDZKE.mjs} +4 -4
- package/dist/cli/{secrets-PNPNUZLX.mjs → secrets-4RFAR7YI.mjs} +8 -8
- package/dist/cli/{secrets-JVJIHGU4.js → secrets-SISXIXSZ.js} +17 -17
- package/dist/cli/{sessions-GY5VVQGO.mjs → sessions-CE3OMEG7.mjs} +6 -6
- package/dist/cli/sessions-OWWZJZXH.js +22 -0
- package/dist/cli/{settings-5WHMFRNQ.js → settings-4HPM3K4A.js} +89 -89
- package/dist/cli/{settings-YQOPF3AI.mjs → settings-E22IDSX2.mjs} +16 -16
- package/dist/cli/{setup-3VJMKDEU.js → setup-BDRSNLKX.js} +49 -49
- package/dist/cli/{setup-O5U5IEVW.mjs → setup-BK65MDZ6.mjs} +9 -9
- package/dist/cli/{skills-G6J5PF35.mjs → skills-FI2GZMR4.mjs} +7 -7
- package/dist/cli/skills-ZLBFUAFR.js +36 -0
- package/dist/cli/tools-3K72VE33.js +57 -0
- package/dist/cli/{tools-AG7SWL5Y.mjs → tools-HMMWYUNW.mjs} +20 -19
- package/dist/cli/update-QZV6DH5V.js +34 -0
- package/dist/cli/{update-K73DD6CR.mjs → update-WDKBSXV5.mjs} +9 -9
- package/dist/cli/{views-4D2OTLIO.js → views-775AUDWQ.js} +23 -23
- package/dist/cli/{views-MO6DIOMR.mjs → views-JYIJCO23.mjs} +8 -8
- package/dist/cli/{workflow-ZEMFCS4Y.js → workflow-4H6KQRFQ.js} +19 -19
- package/dist/cli/{workflow-MMZMAELI.mjs → workflow-FKKHE3IU.mjs} +9 -9
- package/dist/{client-DLG9mHDh.d.mts → client-ANT3pyoa.d.mts} +1 -1
- package/dist/{client-X-FJD5Dp.d.ts → client-DD_FyJVd.d.ts} +1 -1
- package/dist/{client-core-WtnqyBwY.d.mts → client-core-Dg9tKhdB.d.mts} +339 -3
- package/dist/{client-core-0jmHfFBv.d.ts → client-core-QHmo73k1.d.ts} +339 -3
- package/dist/{compiler-manifest-Cys06iYg.d.mts → compiler-manifest-BWFtsQIC.d.mts} +21 -0
- package/dist/{compiler-manifest-Cys06iYg.d.ts → compiler-manifest-BWFtsQIC.d.ts} +21 -0
- package/dist/{errors-B6eMjKcr.d.mts → errors-CwKXXtuu.d.mts} +1 -1
- package/dist/{errors-rdOUqcU2.d.ts → errors-Lm9_vJHZ.d.ts} +1 -1
- package/dist/{index-ejWadAL5.d.ts → index-3vJ-V9yw.d.ts} +1 -1
- package/dist/{index-CZdYO81A.d.mts → index-DjwsAt82.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +12 -12
- package/dist/index.mjs +8 -8
- package/dist/install-integrity.json +147 -133
- 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/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 +2 -2
- package/dist/plays/run-request.mjs +1 -1
- 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 +7 -7
- package/dist/server.mjs +5 -5
- package/package.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal-resource-usage.ts +0 -222
- package/dist/cli/auth-2PH6RSKL.js +0 -43
- package/dist/cli/concurrent-runs-help-BNIDBKML.js +0 -21
- package/dist/cli/describe-5TFFB2PM.js +0 -49
- package/dist/cli/describe-THQU7N47.mjs +0 -49
- package/dist/cli/git-AQLQYWRI.js +0 -25
- package/dist/cli/search-YLJFCJTK.js +0 -32
- package/dist/cli/sessions-TZ33UCPS.js +0 -22
- package/dist/cli/skills-WZY3XDT3.js +0 -36
- package/dist/cli/tools-BXQBL72Q.js +0 -56
- package/dist/cli/update-XYP5EII6.js +0 -34
|
@@ -17,7 +17,19 @@ export { FLEET_BLOCKED_BY } from './limits';
|
|
|
17
17
|
// Rollout access is checked by convergence immediately before provider work,
|
|
18
18
|
// not by this pure planner: an admitted plan can outlive rollout access.
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* `adopt` is a takeover: a live monitor a named Batch deployed, which this
|
|
22
|
+
* Fleet now claims. It is a planning action only. The commit receives it as a
|
|
23
|
+
* `create`, and the commit transition, reading the monitor row itself,
|
|
24
|
+
* re-derives it into an update of the radar the provider already holds. It
|
|
25
|
+
* never reaches the provider as a create.
|
|
26
|
+
*/
|
|
27
|
+
export type FleetMemberAction =
|
|
28
|
+
| 'create'
|
|
29
|
+
| 'adopt'
|
|
30
|
+
| 'update'
|
|
31
|
+
| 'remove'
|
|
32
|
+
| 'blocked';
|
|
21
33
|
|
|
22
34
|
/** One monitor the fleet wants, fully resolved from its source row. */
|
|
23
35
|
export type DesiredFleetMember = {
|
|
@@ -52,6 +64,20 @@ export type OwnedFleetMonitor = {
|
|
|
52
64
|
firstMissingAt: number | null;
|
|
53
65
|
};
|
|
54
66
|
|
|
67
|
+
/**
|
|
68
|
+
* A live monitor no Fleet owns yet that this Fleet may take over: the key was
|
|
69
|
+
* deployed by a named Batch and the provider holds its radar.
|
|
70
|
+
*/
|
|
71
|
+
export type FleetTakeover = {
|
|
72
|
+
/** The provider already holds exactly the payload this Fleet renders. */
|
|
73
|
+
payloadMatches: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* No named Batch deployed it: the sync's `adopt_existing` opt-in is what
|
|
76
|
+
* authorizes the takeover, and the commit is told so per member.
|
|
77
|
+
*/
|
|
78
|
+
adoptExisting: boolean;
|
|
79
|
+
};
|
|
80
|
+
|
|
55
81
|
export type PlannedFleetMember = {
|
|
56
82
|
monitorKey: string;
|
|
57
83
|
sourceKey: string;
|
|
@@ -62,6 +88,8 @@ export type PlannedFleetMember = {
|
|
|
62
88
|
blockedBy?: string;
|
|
63
89
|
/** True when the commit must be given a monitor seed for this key. */
|
|
64
90
|
needsSeed: boolean;
|
|
91
|
+
/** An `adopt` the sync's opt-in authorizes, not a named Batch. */
|
|
92
|
+
adoptExisting?: true;
|
|
65
93
|
};
|
|
66
94
|
|
|
67
95
|
export type FleetPlan = {
|
|
@@ -80,6 +108,22 @@ export type FleetPlan = {
|
|
|
80
108
|
unblocked: number;
|
|
81
109
|
/** Creates for rows the fleet did not own a monitor for. Included in `creates`. */
|
|
82
110
|
newRows: number;
|
|
111
|
+
/**
|
|
112
|
+
* Live named-Batch monitors this plan takes over with the payload the
|
|
113
|
+
* provider already holds: no provider call, the radar and its callback
|
|
114
|
+
* binding are kept. Not counted in `creates` or `updates`.
|
|
115
|
+
*/
|
|
116
|
+
adopts: number;
|
|
117
|
+
/**
|
|
118
|
+
* Takeovers whose payload differs, so their radar is replaced as any update
|
|
119
|
+
* replaces one. Included in `updates`; never in `creates`.
|
|
120
|
+
*/
|
|
121
|
+
adoptsWithUpdate: number;
|
|
122
|
+
/**
|
|
123
|
+
* Of `adopts` and `adoptsWithUpdate`: monitors no named Batch deployed,
|
|
124
|
+
* taken over only because the sync opted in with `adopt_existing`.
|
|
125
|
+
*/
|
|
126
|
+
adoptsExisting: number;
|
|
83
127
|
};
|
|
84
128
|
|
|
85
129
|
export type FleetMembershipMember = {
|
|
@@ -147,6 +191,38 @@ export type FleetEntitlements = {
|
|
|
147
191
|
monitorsPerEntity: number;
|
|
148
192
|
};
|
|
149
193
|
|
|
194
|
+
/**
|
|
195
|
+
* The accounts `planFleetMembers` reads monitor counts for.
|
|
196
|
+
*
|
|
197
|
+
* Only a member the provider does not hold yet (no applied hash) reaches the
|
|
198
|
+
* per-account admission below; one already applied is counted, and an update
|
|
199
|
+
* never opens an account. Counting every desired member's account read
|
|
200
|
+
* 100,000 accounts on an unchanged 100,000-member re-plan, 23 s of it, to
|
|
201
|
+
* consult none of them. Matching mirrors `planFleetMembers` exactly: by
|
|
202
|
+
* monitor key, else by source key.
|
|
203
|
+
*/
|
|
204
|
+
export function entityKeysAdmittedByPlan(input: {
|
|
205
|
+
desired: readonly DesiredFleetMember[];
|
|
206
|
+
owned: readonly OwnedFleetMonitor[];
|
|
207
|
+
}): string[] {
|
|
208
|
+
const ownedByKey = new Map(
|
|
209
|
+
input.owned.map((monitor) => [monitor.monitorKey, monitor]),
|
|
210
|
+
);
|
|
211
|
+
const ownedBySource = new Map<string, OwnedFleetMonitor>();
|
|
212
|
+
for (const monitor of input.owned) {
|
|
213
|
+
if (monitor.sourceKey) ownedBySource.set(monitor.sourceKey, monitor);
|
|
214
|
+
}
|
|
215
|
+
const keys = new Set<string>();
|
|
216
|
+
for (const desired of input.desired) {
|
|
217
|
+
const owned =
|
|
218
|
+
ownedByKey.get(desired.monitorKey) ??
|
|
219
|
+
ownedBySource.get(desired.sourceKey);
|
|
220
|
+
if ((owned?.appliedHash ?? null) !== null) continue;
|
|
221
|
+
keys.add(fleetEntityKeyFor(desired));
|
|
222
|
+
}
|
|
223
|
+
return [...keys];
|
|
224
|
+
}
|
|
225
|
+
|
|
150
226
|
/**
|
|
151
227
|
* Turn "what the fleet wants" plus "what it already owns" into commit members.
|
|
152
228
|
*
|
|
@@ -166,6 +242,8 @@ export function planFleetMembers(input: {
|
|
|
166
242
|
* is what costs allowance.
|
|
167
243
|
*/
|
|
168
244
|
entityMonitorCounts: ReadonlyMap<string, number>;
|
|
245
|
+
/** Live monitors this fleet may take over, by monitor key. */
|
|
246
|
+
takeovers?: ReadonlyMap<string, FleetTakeover>;
|
|
169
247
|
}): FleetPlan {
|
|
170
248
|
const ownedByKey = new Map(
|
|
171
249
|
input.owned.map((monitor) => [monitor.monitorKey, monitor]),
|
|
@@ -191,6 +269,9 @@ export function planFleetMembers(input: {
|
|
|
191
269
|
let retries = 0;
|
|
192
270
|
let unblocked = 0;
|
|
193
271
|
let newRows = 0;
|
|
272
|
+
let adopts = 0;
|
|
273
|
+
let adoptsWithUpdate = 0;
|
|
274
|
+
let adoptsExisting = 0;
|
|
194
275
|
|
|
195
276
|
const refuse = (member: PlannedFleetMember, blockedBy: string) => {
|
|
196
277
|
blocked[blockedBy] = (blocked[blockedBy] ?? 0) + 1;
|
|
@@ -231,6 +312,29 @@ export function planFleetMembers(input: {
|
|
|
231
312
|
continue;
|
|
232
313
|
}
|
|
233
314
|
|
|
315
|
+
const takeover = owned
|
|
316
|
+
? undefined
|
|
317
|
+
: input.takeovers?.get(desired.monitorKey);
|
|
318
|
+
if (takeover) {
|
|
319
|
+
// The monitor exists and is already counted against its account, so a
|
|
320
|
+
// takeover admits nothing against a limit and opens no account. The
|
|
321
|
+
// seed is still sent: if the monitor is deleted before the commit, the
|
|
322
|
+
// commit creates it from scratch as it would any new row.
|
|
323
|
+
members.push({
|
|
324
|
+
...base,
|
|
325
|
+
action: 'adopt',
|
|
326
|
+
...(takeover.adoptExisting ? { adoptExisting: true as const } : {}),
|
|
327
|
+
});
|
|
328
|
+
if (takeover.adoptExisting) adoptsExisting += 1;
|
|
329
|
+
if (takeover.payloadMatches) {
|
|
330
|
+
adopts += 1;
|
|
331
|
+
} else {
|
|
332
|
+
adoptsWithUpdate += 1;
|
|
333
|
+
updates += 1;
|
|
334
|
+
}
|
|
335
|
+
continue;
|
|
336
|
+
}
|
|
337
|
+
|
|
234
338
|
const onEntity = entityCounts.get(entityKey) ?? 0;
|
|
235
339
|
if (onEntity >= input.entitlements.monitorsPerEntity) {
|
|
236
340
|
refuse(base, FLEET_BLOCKED_BY.monitorsPerEntity);
|
|
@@ -281,5 +385,8 @@ export function planFleetMembers(input: {
|
|
|
281
385
|
retries,
|
|
282
386
|
unblocked,
|
|
283
387
|
newRows,
|
|
388
|
+
adopts,
|
|
389
|
+
adoptsWithUpdate,
|
|
390
|
+
adoptsExisting,
|
|
284
391
|
};
|
|
285
392
|
}
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"@deepline/product-notifications": "workspace:*",
|
|
148
148
|
"@vercel/oidc": "^3.0.5",
|
|
149
149
|
"@vercel/queue": "^0.4.0",
|
|
150
|
-
"next": "16.4.
|
|
150
|
+
"next": "16.4.6",
|
|
151
151
|
"pg": "^8.19.0",
|
|
152
152
|
"react": "19.2.5",
|
|
153
153
|
"@deepline/integration-contracts": "workspace:*"
|
|
@@ -127,6 +127,15 @@ export const OPERATIONS_QUEUE_CATALOG = [
|
|
|
127
127
|
300_000,
|
|
128
128
|
900_000,
|
|
129
129
|
),
|
|
130
|
+
queue(
|
|
131
|
+
'communication-wait-deliveries',
|
|
132
|
+
'Communication wait deliveries',
|
|
133
|
+
'leased_workset',
|
|
134
|
+
'runtime',
|
|
135
|
+
'Deliver a verified response to its existing Play run through the shared admission Workpool',
|
|
136
|
+
60_000,
|
|
137
|
+
300_000,
|
|
138
|
+
),
|
|
130
139
|
queue(
|
|
131
140
|
'play-webhook-receipts',
|
|
132
141
|
'Play webhook receipts',
|
|
@@ -264,6 +264,7 @@ export function createProviderQueueItemConnector(
|
|
|
264
264
|
export const QUEUE_CONNECTOR_BACKENDS: Readonly<
|
|
265
265
|
Record<string, QueueConnectorBackend>
|
|
266
266
|
> = {
|
|
267
|
+
'communication-wait-deliveries': 'convex',
|
|
267
268
|
'play-runtime-tasks': 'absurd',
|
|
268
269
|
'run-ledger-projector-outbox': 'postgres-outbox',
|
|
269
270
|
'compute-billing-jobs': 'postgres-outbox',
|
|
@@ -277,17 +277,17 @@
|
|
|
277
277
|
"id": "github.prebuilt-benchmarks",
|
|
278
278
|
"name": "Prebuilt benchmarks",
|
|
279
279
|
"scheduler": "github_actions",
|
|
280
|
-
"cadence": "
|
|
280
|
+
"cadence": "30 7 * * *",
|
|
281
281
|
"timezone": "UTC",
|
|
282
282
|
"source": ".github/workflows/prebuilt-benchmarks.yml",
|
|
283
283
|
"locator": "schedule:",
|
|
284
284
|
"owner": "evals",
|
|
285
285
|
"criticality": "reporting",
|
|
286
|
-
"purpose": "Run each prebuilt play on its fixed labeled sample in
|
|
287
|
-
"successDefinition": "Every benchmark exports its rows, scores them, settles within its credit cap
|
|
288
|
-
"failureDefinition": "
|
|
286
|
+
"purpose": "Run each prebuilt play on its fixed labeled sample in the persistent benchmark workspace on Production with the published CLI (reusing results under 4 days old when nothing changed) and publish found, exact, recall, precision and settled credits.",
|
|
287
|
+
"successDefinition": "Every benchmark exports its rows (or reuses a recent fresh run), scores them, settles within its credit cap and the workspace's 2000-credit monthly usage cap, and the summary uploads.",
|
|
288
|
+
"failureDefinition": "A dataset load, play run, export, scoring or credit-cap overrun fails, or the workspace's monthly usage cap is missing or used up.",
|
|
289
289
|
"startGraceMs": 600000,
|
|
290
|
-
"runTimeoutMs":
|
|
290
|
+
"runTimeoutMs": 18000000,
|
|
291
291
|
"failureAlert": "github_workflow_run",
|
|
292
292
|
"domainReportRequired": true
|
|
293
293
|
},
|
|
@@ -284,3 +284,37 @@ export function augmentSheetContractWithDatasetFields(input: {
|
|
|
284
284
|
|
|
285
285
|
return { ...input.contract, columns: [...inputColumns, ...outputColumns] };
|
|
286
286
|
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* A dataset's stored column names in the order a run wrote them: each row's
|
|
290
|
+
* keys in the order the Play built them (first seen across `rows`), then each
|
|
291
|
+
* output field (its `withColumn`s, in declaration order), continuing an order
|
|
292
|
+
* recorded earlier in the run (`existing`). This is the order the run page
|
|
293
|
+
* shows; the table's own column order is creation order across every run and
|
|
294
|
+
* goes stale when a Play changes.
|
|
295
|
+
*/
|
|
296
|
+
export function datasetWrittenColumnOrder(input: {
|
|
297
|
+
contract: PlaySheetContract;
|
|
298
|
+
rows: readonly Record<string, unknown>[];
|
|
299
|
+
outputFields?: readonly string[];
|
|
300
|
+
existing?: readonly string[];
|
|
301
|
+
}): string[] {
|
|
302
|
+
const order = [...(input.existing ?? [])];
|
|
303
|
+
const seen = new Set(order);
|
|
304
|
+
const append = (field: string) => {
|
|
305
|
+
if (!isDatasetPayloadField(field)) return;
|
|
306
|
+
const declared = input.contract.columns.find(
|
|
307
|
+
(column) =>
|
|
308
|
+
(column.source === 'input' || column.source === 'datasetColumn') &&
|
|
309
|
+
(column.field ?? column.id) === field,
|
|
310
|
+
);
|
|
311
|
+
const sqlName = declared?.sqlName ?? sqlSafePlayColumnName(field);
|
|
312
|
+
if (seen.has(sqlName)) return;
|
|
313
|
+
seen.add(sqlName);
|
|
314
|
+
order.push(sqlName);
|
|
315
|
+
};
|
|
316
|
+
for (const row of input.rows)
|
|
317
|
+
for (const field of Object.keys(row)) append(field);
|
|
318
|
+
for (const field of input.outputFields ?? []) append(field);
|
|
319
|
+
return order;
|
|
320
|
+
}
|
|
@@ -165,6 +165,8 @@ export type RuntimeStatusUpdate = {
|
|
|
165
165
|
complete?: boolean;
|
|
166
166
|
/** Dataset-grain row birth, stated once per dataset (ADR 0019). */
|
|
167
167
|
bornFrom?: PlayDatasetBornFrom;
|
|
168
|
+
/** Stored column names in the order the run wrote them. */
|
|
169
|
+
columns?: string[];
|
|
168
170
|
at: number;
|
|
169
171
|
}>;
|
|
170
172
|
/** Sparse typed activity facts. Routing/deduplication happens server-side. */
|
|
@@ -2472,10 +2474,9 @@ export async function listViewsViaAppRuntime(
|
|
|
2472
2474
|
context: WorkerRuntimeApiContext,
|
|
2473
2475
|
): Promise<PlayViewLink[]> {
|
|
2474
2476
|
try {
|
|
2475
|
-
const result = await postAppRuntimeApi<{ views: PlayViewLink[] }>(
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
);
|
|
2477
|
+
const result = await postAppRuntimeApi<{ views: PlayViewLink[] }>(context, {
|
|
2478
|
+
action: 'list_views',
|
|
2479
|
+
});
|
|
2479
2480
|
return result.views;
|
|
2480
2481
|
} catch (error) {
|
|
2481
2482
|
// An older receiver does not know list_views. Say so instead of returning
|
|
@@ -2728,7 +2729,11 @@ async function updateRunStatusViaAppRuntimeUnlocked(
|
|
|
2728
2729
|
// an unattributed or stale birth for the whole run.
|
|
2729
2730
|
(event.bornFrom !== undefined &&
|
|
2730
2731
|
(!current.bornFrom ||
|
|
2731
|
-
event.bornFrom.rowCountIn > current.bornFrom.rowCountIn))
|
|
2732
|
+
event.bornFrom.rowCountIn > current.bornFrom.rowCountIn)) ||
|
|
2733
|
+
// A longer written column order (a later page or the terminal write
|
|
2734
|
+
// adding withColumns) is a change the snapshot must keep.
|
|
2735
|
+
(event.columns !== undefined &&
|
|
2736
|
+
event.columns.length > (current.columns?.length ?? 0));
|
|
2732
2737
|
if (!changesSnapshot) continue;
|
|
2733
2738
|
events.push({
|
|
2734
2739
|
type: RUN_EVENT_KIND.datasetLifecycle,
|
|
@@ -2750,6 +2755,7 @@ async function updateRunStatusViaAppRuntimeUnlocked(
|
|
|
2750
2755
|
: { failedRows: event.failedRows }),
|
|
2751
2756
|
...(event.complete === undefined ? {} : { complete: event.complete }),
|
|
2752
2757
|
...(event.bornFrom === undefined ? {} : { bornFrom: event.bornFrom }),
|
|
2758
|
+
...(event.columns === undefined ? {} : { columns: event.columns }),
|
|
2753
2759
|
});
|
|
2754
2760
|
}
|
|
2755
2761
|
const latestActivities = new Map(
|
|
@@ -32,14 +32,16 @@ export const BAKED_RUNNER_SELF_MODE = 'self';
|
|
|
32
32
|
export const BAKED_RUNNER_OFF_MODE = 'off';
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
* Release-owned enable for self-versioned baked runner images. While
|
|
36
|
-
* unset worker setting
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
35
|
+
* Release-owned enable for self-versioned baked runner images. While true, an
|
|
36
|
+
* unset worker setting means `self`: each worker looks up
|
|
37
|
+
* `deepline-play-runner:<own bundle hash>`, and the Production release and
|
|
38
|
+
* Preview preparation publish that image beside the worker roll. A worker
|
|
39
|
+
* whose image is absent, unreadable or mismatched uploads the runner as
|
|
40
|
+
* before. `DEEPLINE_BAKED_RUNNER_HASH=off` on a worker is the kill switch.
|
|
41
|
+
* Read from the release SHA by `.github/workflows/production-release.yml` and
|
|
42
|
+
* from the target checkout by `scripts/run-daytona-preview-release-gate.sh`.
|
|
41
43
|
*/
|
|
42
|
-
export const BAKED_RUNNER_SELF_VERSIONED: boolean =
|
|
44
|
+
export const BAKED_RUNNER_SELF_VERSIONED: boolean = true;
|
|
43
45
|
export const BAKED_RUNNER_ROOT = '/opt/deepline/runner';
|
|
44
46
|
export const BAKED_RUNNER_FILE_NAME = 'play-runner.cjs';
|
|
45
47
|
|