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.
Files changed (246) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +112 -2
  2. package/dist/bundling-sources/sdk/src/index.ts +7 -0
  3. package/dist/bundling-sources/sdk/src/integrations.ts +198 -0
  4. package/dist/bundling-sources/sdk/src/plays/run-request.ts +3 -0
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/tool-calls.ts +35 -11
  7. package/dist/bundling-sources/sdk/src/types.ts +10 -0
  8. package/dist/bundling-sources/shared_libs/integration-contracts/calendar-delegation.ts +132 -0
  9. package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +3 -1
  10. package/dist/bundling-sources/shared_libs/integration-contracts/tool-connection.ts +13 -0
  11. package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +108 -1
  12. package/dist/bundling-sources/shared_libs/monitors/package.json +1 -1
  13. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  14. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  15. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +5 -5
  16. package/dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts +34 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +11 -5
  18. package/dist/bundling-sources/shared_libs/play-runtime/baked-runner-image.ts +9 -7
  19. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +235 -12
  20. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +20 -1
  21. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +39 -30
  22. package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +29 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/event-wait-tools.ts +2 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +10 -4
  25. package/dist/bundling-sources/shared_libs/play-runtime/fleet-sandbox-sweep.ts +209 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +4 -0
  27. package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +24 -1
  28. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +2 -1
  29. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -1
  30. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +37 -0
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +43 -3
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +7 -0
  33. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +15 -0
  34. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +23 -5
  35. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +320 -836
  36. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/vercel-sandbox.ts +1061 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +862 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +45 -0
  39. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/sandbox-create-outcome.ts +3 -1
  40. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +11 -5
  41. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-contract.ts +20 -2
  42. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +71 -34
  43. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-provider-profile.ts +286 -0
  44. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +4 -1
  45. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +12 -3
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +7 -0
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +49 -55
  48. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +127 -5
  49. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +7 -1
  50. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +214 -0
  51. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/managed-sandbox-resource-sql.ts +118 -0
  52. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +1 -0
  53. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +229 -144
  54. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +2 -2
  55. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +2 -1
  56. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +11 -13
  57. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +42 -7
  58. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +2 -1
  59. package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +2 -2
  60. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +17 -0
  61. package/dist/bundling-sources/shared_libs/play-runtime/vercel-sandbox-runtime-config.ts +217 -0
  62. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +23 -0
  63. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +1 -0
  64. package/dist/bundling-sources/shared_libs/plays/script-entry.ts +76 -6
  65. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +1 -0
  66. package/dist/bundling-sources/shared_libs/security/credential-revision.ts +50 -0
  67. package/dist/bundling-sources/shared_libs/security/internal-actor.ts +2 -1
  68. package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +37 -0
  69. package/dist/cli/auth-ENBXAKQS.js +43 -0
  70. package/dist/cli/{auth-IGBGOB4E.mjs → auth-IMWJAHPU.mjs} +5 -5
  71. package/dist/cli/{billing-IB2TWE74.js → billing-Y55PR2PV.js} +101 -101
  72. package/dist/cli/{billing-N37W2I62.mjs → billing-YQMW3QJI.mjs} +12 -12
  73. package/dist/cli/chunk-22OBDYHP.js +455 -0
  74. package/dist/cli/{chunk-GBAT5NMI.mjs → chunk-2HSZCQMT.mjs} +48 -6
  75. package/dist/cli/{chunk-VLEVVDWG.js → chunk-2JHYYB3F.js} +3 -3
  76. package/dist/cli/{chunk-D44DP4KJ.js → chunk-3I26HMJ7.js} +37 -17
  77. package/dist/cli/{chunk-B5NP3SHX.mjs → chunk-3JDA23NN.mjs} +2 -2
  78. package/dist/cli/{chunk-QXNOSCYL.js → chunk-3KGMM4KS.js} +1 -1
  79. package/dist/cli/{chunk-6WQDHEVF.mjs → chunk-456RRXAP.mjs} +5 -5
  80. package/dist/cli/{chunk-V4EYJKGJ.js → chunk-4JQEAYN3.js} +156 -17
  81. package/dist/cli/{chunk-FGGPCAGC.js → chunk-4PKHFW56.js} +18 -18
  82. package/dist/cli/{chunk-QONO7FRF.mjs → chunk-57G4NYOL.mjs} +1 -1
  83. package/dist/cli/{chunk-46V7QSJE.mjs → chunk-5PR4VLLL.mjs} +3 -3
  84. package/dist/cli/{chunk-OLH2PHMC.mjs → chunk-6P7TGCHQ.mjs} +1 -1
  85. package/dist/cli/{chunk-AKY7KZRJ.js → chunk-7GNZEOTH.js} +6 -6
  86. package/dist/cli/{chunk-LFMQVSEI.js → chunk-7HMMTSDA.js} +5 -5
  87. package/dist/cli/{chunk-ORA5TMML.mjs → chunk-BEQ7RQLT.mjs} +5 -5
  88. package/dist/cli/{chunk-KQSTV4MW.js → chunk-BLYW6FFB.js} +60 -18
  89. package/dist/cli/{chunk-GM73TZ2W.js → chunk-C4P2KLWT.js} +41 -41
  90. package/dist/cli/{chunk-DNGACHFX.js → chunk-COJHT2KF.js} +22 -22
  91. package/dist/cli/{chunk-6SLEHAXX.js → chunk-DF2X7GJG.js} +5 -5
  92. package/dist/cli/{chunk-TT4JUUC3.mjs → chunk-DVDWAC2M.mjs} +7 -3
  93. package/dist/cli/{chunk-5CAVURVS.js → chunk-DYDHLBSK.js} +53 -53
  94. package/dist/cli/{chunk-UNDLNT3V.js → chunk-ECWOIXAV.js} +1 -1
  95. package/dist/cli/{chunk-EHLCWGWN.js → chunk-G26VJCNT.js} +4 -4
  96. package/dist/cli/{chunk-WL2GUGNZ.js → chunk-GQHRGBHV.js} +7 -7
  97. package/dist/cli/{chunk-DADH3WPE.mjs → chunk-GV45TTI6.mjs} +2 -2
  98. package/dist/cli/{chunk-OVX3Q5Q3.mjs → chunk-GWNYLIF7.mjs} +1 -1
  99. package/dist/cli/{chunk-EGOCGWCI.mjs → chunk-H4SAHB3Q.mjs} +3 -3
  100. package/dist/cli/{chunk-FX4OWXKK.mjs → chunk-HAQRF6DJ.mjs} +2 -2
  101. package/dist/cli/{chunk-NLZHLEHD.mjs → chunk-HBSWATOU.mjs} +6 -6
  102. package/dist/cli/{chunk-ACVTMAW4.mjs → chunk-HVJQF5BI.mjs} +2 -2
  103. package/dist/cli/{chunk-L2VKAASU.mjs → chunk-HXIR3VQL.mjs} +21 -0
  104. package/dist/cli/{chunk-Z5YRKX7K.mjs → chunk-HXM2JUGD.mjs} +1 -1
  105. package/dist/cli/{chunk-JPT6VE54.js → chunk-IFIJ4DBJ.js} +2 -2
  106. package/dist/cli/{chunk-HAITCPCG.js → chunk-JBWOE6AP.js} +16 -16
  107. package/dist/cli/{chunk-AWLPERL3.js → chunk-JWVG7ZPX.js} +3 -3
  108. package/dist/cli/{chunk-3XXXMSSP.js → chunk-KE6CSCUF.js} +44 -44
  109. package/dist/cli/{chunk-2ZGSHVZE.mjs → chunk-LPUBBUKX.mjs} +24 -4
  110. package/dist/cli/{chunk-PLIKPGOO.mjs → chunk-LQ6RRYXN.mjs} +5 -5
  111. package/dist/cli/{chunk-FFDZT255.mjs → chunk-LW274RO7.mjs} +1 -1
  112. package/dist/cli/{chunk-Z2XA6YU4.mjs → chunk-LX35AXTN.mjs} +1 -0
  113. package/dist/cli/{chunk-FANIRW74.mjs → chunk-NIPLY25A.mjs} +0 -2
  114. package/dist/cli/{chunk-VHJUH3TB.js → chunk-ON56ISO6.js} +3 -3
  115. package/dist/cli/{chunk-4I47NCRI.js → chunk-PDJ4UDCO.js} +498 -328
  116. package/dist/cli/{chunk-SWO5QOXB.mjs → chunk-PFGOCUH3.mjs} +1 -1
  117. package/dist/cli/{chunk-Q7WDXLYO.js → chunk-PKRW76XG.js} +2 -2
  118. package/dist/cli/{chunk-YK7NNZD4.mjs → chunk-PMW5YP72.mjs} +37 -190
  119. package/dist/cli/{chunk-5APOJWJF.mjs → chunk-Q7ZOWNKR.mjs} +183 -13
  120. package/dist/cli/{chunk-WACIN4PR.mjs → chunk-REEOMNCO.mjs} +3 -3
  121. package/dist/cli/{chunk-DMXLZ57N.js → chunk-RG34YBDE.js} +2 -2
  122. package/dist/cli/{chunk-3LEUSRV3.mjs → chunk-RJPDCSTD.mjs} +4 -4
  123. package/dist/cli/{chunk-IPVRMYWT.js → chunk-RKF263LR.js} +5 -5
  124. package/dist/cli/{chunk-AUFE624T.js → chunk-RUFR4PUO.js} +10 -10
  125. package/dist/cli/{chunk-I5EAIFGO.mjs → chunk-SK3HPU2J.mjs} +1 -1
  126. package/dist/cli/{chunk-ZVNYBQ77.mjs → chunk-SKS53WM6.mjs} +4 -4
  127. package/dist/cli/{chunk-CQDQNZGH.js → chunk-SL6MYJYM.js} +1 -0
  128. package/dist/cli/{chunk-E4CABWXL.js → chunk-TI6DTURF.js} +22 -1
  129. package/dist/cli/{chunk-CFZCRM6R.js → chunk-UHIAQPVA.js} +26 -26
  130. package/dist/cli/{chunk-D7GWEBMF.js → chunk-UNMNGRPB.js} +7 -7
  131. package/dist/cli/{chunk-GWHA4DAC.js → chunk-UV4RU2TE.js} +0 -2
  132. package/dist/cli/{chunk-TTBHOMAA.js → chunk-W7X4KH45.js} +316 -469
  133. package/dist/cli/chunk-WBSGPLH5.mjs +455 -0
  134. package/dist/cli/{chunk-SCLP5H4P.mjs → chunk-WUEORIOY.mjs} +1 -1
  135. package/dist/cli/{chunk-IDDKNMFX.mjs → chunk-Y3T5GWYK.mjs} +153 -14
  136. package/dist/cli/{chunk-P4MDTBAA.mjs → chunk-YIRVKMON.mjs} +1 -1
  137. package/dist/cli/{chunk-NDNEARE3.js → chunk-Z44YTSTA.js} +13 -13
  138. package/dist/cli/{chunk-F6QV42MC.mjs → chunk-Z7SXGOIQ.mjs} +1 -1
  139. package/dist/cli/{chunk-2VRKBHMD.mjs → chunk-ZHY4T5M6.mjs} +1 -1
  140. package/dist/cli/{chunk-E7B73LGT.js → chunk-ZY6FL4O4.js} +24 -20
  141. package/dist/cli/command-docs.js +3 -3
  142. package/dist/cli/command-docs.mjs +2 -2
  143. package/dist/cli/{concurrent-runs-help-DIBGMEIN.mjs → concurrent-runs-help-KBWPKSTP.mjs} +7 -7
  144. package/dist/cli/concurrent-runs-help-TOMLCMV7.js +21 -0
  145. package/dist/cli/{csv-CAVA3EMS.mjs → csv-M5EBEMZH.mjs} +4 -4
  146. package/dist/cli/{csv-XZAM7EYZ.js → csv-XGGDZTQI.js} +13 -13
  147. package/dist/cli/{db-PPGEOBNG.js → db-CVPR54XK.js} +29 -29
  148. package/dist/cli/{db-HD332QI7.mjs → db-M6FJ6J6E.mjs} +8 -8
  149. package/dist/cli/describe-RUODIS6M.js +50 -0
  150. package/dist/cli/describe-X6QA2U3C.mjs +50 -0
  151. package/dist/cli/describe-core.d.mts +3 -3
  152. package/dist/cli/describe-core.d.ts +3 -3
  153. package/dist/cli/describe-core.js +3 -3
  154. package/dist/cli/describe-core.mjs +2 -2
  155. package/dist/cli/{executions-AFEOLB4A.mjs → executions-EHTS2XJX.mjs} +8 -8
  156. package/dist/cli/{executions-4ZKBL7IC.js → executions-VJEEWN22.js} +10 -10
  157. package/dist/cli/{feedback-J2YPLKMF.mjs → feedback-76VGY4GP.mjs} +6 -6
  158. package/dist/cli/{feedback-M6Y33JKT.js → feedback-DQPUCUXO.js} +14 -14
  159. package/dist/cli/{git-632RYEF6.mjs → git-IY6DKKLR.mjs} +5 -5
  160. package/dist/cli/git-RLHTSYRY.js +25 -0
  161. package/dist/cli/index.js +150 -146
  162. package/dist/cli/index.mjs +49 -45
  163. package/dist/cli/integrations-242LE3TQ.mjs +98 -0
  164. package/dist/cli/integrations-CQSTIKFY.js +98 -0
  165. package/dist/cli/{legacy-noops-KWZMXYAU.mjs → legacy-noops-SWTSTMRY.mjs} +6 -6
  166. package/dist/cli/{legacy-noops-4Y62TKPC.js → legacy-noops-U72DO6ZF.js} +9 -9
  167. package/dist/cli/{mcp-PESLHAAC.mjs → mcp-JJH6JR52.mjs} +72 -15
  168. package/dist/cli/{mcp-35QA6YG7.js → mcp-L473BKLJ.js} +89 -32
  169. package/dist/cli/{monitors-4DTUZLAI.js → monitors-3TF2DOFD.js} +119 -104
  170. package/dist/cli/{monitors-YVBKBJBU.mjs → monitors-VSYHUBKC.mjs} +26 -11
  171. package/dist/cli/{org-DJNKMFCZ.mjs → org-S5VIKU2E.mjs} +8 -8
  172. package/dist/cli/{org-FWCBZMER.js → org-YKVI2ZTI.js} +90 -90
  173. package/dist/cli/{play-PHVQEEEZ.mjs → play-C7T5A3QM.mjs} +44 -25
  174. package/dist/cli/{play-FZ45M4KD.js → play-DOWEG45Y.js} +374 -355
  175. package/dist/cli/{providers-46E67QG7.mjs → providers-BMVVX3VD.mjs} +10 -9
  176. package/dist/cli/{providers-QJU6FMDD.js → providers-TAZPPFTB.js} +13 -12
  177. package/dist/cli/{quickstart-6HMJJ4RR.mjs → quickstart-A3WKMKTW.mjs} +4 -4
  178. package/dist/cli/{quickstart-HOL7H5FS.js → quickstart-HD6FQXGR.js} +6 -6
  179. package/dist/cli/{run-WKSIRXEC.js → run-BVVV2UX7.js} +49 -48
  180. package/dist/cli/{run-2W2TJ6QA.mjs → run-FV7TWNOC.mjs} +28 -27
  181. package/dist/cli/{search-Y2CFLSYB.mjs → search-MGK6WIKS.mjs} +9 -9
  182. package/dist/cli/search-VJFCWUZN.js +32 -0
  183. package/dist/cli/{search-output-2IK6ZZDY.js → search-output-6Y7KEPIE.js} +6 -6
  184. package/dist/cli/{search-output-FCZ35PHF.mjs → search-output-GM7LDZKE.mjs} +4 -4
  185. package/dist/cli/{secrets-PNPNUZLX.mjs → secrets-4RFAR7YI.mjs} +8 -8
  186. package/dist/cli/{secrets-JVJIHGU4.js → secrets-SISXIXSZ.js} +17 -17
  187. package/dist/cli/{sessions-GY5VVQGO.mjs → sessions-CE3OMEG7.mjs} +6 -6
  188. package/dist/cli/sessions-OWWZJZXH.js +22 -0
  189. package/dist/cli/{settings-5WHMFRNQ.js → settings-4HPM3K4A.js} +89 -89
  190. package/dist/cli/{settings-YQOPF3AI.mjs → settings-E22IDSX2.mjs} +16 -16
  191. package/dist/cli/{setup-3VJMKDEU.js → setup-BDRSNLKX.js} +49 -49
  192. package/dist/cli/{setup-O5U5IEVW.mjs → setup-BK65MDZ6.mjs} +9 -9
  193. package/dist/cli/{skills-G6J5PF35.mjs → skills-FI2GZMR4.mjs} +7 -7
  194. package/dist/cli/skills-ZLBFUAFR.js +36 -0
  195. package/dist/cli/tools-3K72VE33.js +57 -0
  196. package/dist/cli/{tools-AG7SWL5Y.mjs → tools-HMMWYUNW.mjs} +20 -19
  197. package/dist/cli/update-QZV6DH5V.js +34 -0
  198. package/dist/cli/{update-K73DD6CR.mjs → update-WDKBSXV5.mjs} +9 -9
  199. package/dist/cli/{views-4D2OTLIO.js → views-775AUDWQ.js} +23 -23
  200. package/dist/cli/{views-MO6DIOMR.mjs → views-JYIJCO23.mjs} +8 -8
  201. package/dist/cli/{workflow-ZEMFCS4Y.js → workflow-4H6KQRFQ.js} +19 -19
  202. package/dist/cli/{workflow-MMZMAELI.mjs → workflow-FKKHE3IU.mjs} +9 -9
  203. package/dist/{client-DLG9mHDh.d.mts → client-ANT3pyoa.d.mts} +1 -1
  204. package/dist/{client-X-FJD5Dp.d.ts → client-DD_FyJVd.d.ts} +1 -1
  205. package/dist/{client-core-WtnqyBwY.d.mts → client-core-Dg9tKhdB.d.mts} +339 -3
  206. package/dist/{client-core-0jmHfFBv.d.ts → client-core-QHmo73k1.d.ts} +339 -3
  207. package/dist/{compiler-manifest-Cys06iYg.d.mts → compiler-manifest-BWFtsQIC.d.mts} +21 -0
  208. package/dist/{compiler-manifest-Cys06iYg.d.ts → compiler-manifest-BWFtsQIC.d.ts} +21 -0
  209. package/dist/{errors-B6eMjKcr.d.mts → errors-CwKXXtuu.d.mts} +1 -1
  210. package/dist/{errors-rdOUqcU2.d.ts → errors-Lm9_vJHZ.d.ts} +1 -1
  211. package/dist/{index-ejWadAL5.d.ts → index-3vJ-V9yw.d.ts} +1 -1
  212. package/dist/{index-CZdYO81A.d.mts → index-DjwsAt82.d.mts} +1 -1
  213. package/dist/index.d.mts +7 -7
  214. package/dist/index.d.ts +7 -7
  215. package/dist/index.js +12 -12
  216. package/dist/index.mjs +8 -8
  217. package/dist/install-integrity.json +147 -133
  218. package/dist/plays/bundle-play-file.d.mts +3 -3
  219. package/dist/plays/bundle-play-file.d.ts +3 -3
  220. package/dist/plays/bundle-play-file.mjs +23 -4
  221. package/dist/plays/play-description.d.mts +2 -2
  222. package/dist/plays/play-description.d.ts +2 -2
  223. package/dist/plays/run-request.d.mts +2 -2
  224. package/dist/plays/run-request.d.ts +2 -2
  225. package/dist/plays/run-request.js +2 -2
  226. package/dist/plays/run-request.mjs +1 -1
  227. package/dist/release.d.mts +1 -1
  228. package/dist/release.d.ts +1 -1
  229. package/dist/release.js +2 -2
  230. package/dist/release.mjs +1 -1
  231. package/dist/server.d.mts +4 -4
  232. package/dist/server.d.ts +4 -4
  233. package/dist/server.js +7 -7
  234. package/dist/server.mjs +5 -5
  235. package/package.json +1 -1
  236. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal-resource-usage.ts +0 -222
  237. package/dist/cli/auth-2PH6RSKL.js +0 -43
  238. package/dist/cli/concurrent-runs-help-BNIDBKML.js +0 -21
  239. package/dist/cli/describe-5TFFB2PM.js +0 -49
  240. package/dist/cli/describe-THQU7N47.mjs +0 -49
  241. package/dist/cli/git-AQLQYWRI.js +0 -25
  242. package/dist/cli/search-YLJFCJTK.js +0 -32
  243. package/dist/cli/sessions-TZ33UCPS.js +0 -22
  244. package/dist/cli/skills-WZY3XDT3.js +0 -36
  245. package/dist/cli/tools-BXQBL72Q.js +0 -56
  246. 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
- export type FleetMemberAction = 'create' | 'update' | 'remove' | 'blocked';
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.1",
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": "0 14 * * 1",
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 a disposable Production workspace with the published CLI and publish found, exact, recall, precision and settled credits.",
287
- "successDefinition": "Every benchmark exports its rows, scores them, settles within its credit cap, and the summary uploads; the disposable workspace is deleted.",
288
- "failureDefinition": "Workspace bootstrap, dataset load, a play run, export, scoring, a credit-cap overrun, or workspace deletion fails.",
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": 7200000,
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
- context,
2477
- { action: 'list_views' },
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 false, an
36
- * unset worker setting keeps today's full upload, and the Production release
37
- * and Preview `runtime up` do not publish. Flipping it to true makes, in the
38
- * same release, the release publish `deepline-play-runner:<own bundle hash>`
39
- * before its workers roll and those workers look that image up. Read by
40
- * `.github/workflows/production-release.yml` and `scripts/runtime-target.ts`.
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 = false;
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