deepline 0.3.502 → 0.3.504

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 (211) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +26 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +9 -0
  5. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
  6. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
  7. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
  8. package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +0 -8
  9. package/dist/bundling-sources/shared_libs/observability/dlq.ts +174 -0
  10. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  11. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  12. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +20 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +62 -2
  15. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +667 -62
  16. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +55 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +20 -2
  18. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +46 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +80 -4
  20. package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +95 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +292 -45
  22. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +15 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +3 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +7 -3
  25. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +31 -1
  26. package/dist/bundling-sources/shared_libs/play-runtime/post-code-recovery-policy.ts +231 -0
  27. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +4 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/run-ending-event.ts +55 -0
  29. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +126 -0
  30. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +38 -1
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +2 -9
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +51 -19
  33. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +9 -4
  34. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +2 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +12 -1
  37. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +3 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +42 -0
  39. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
  40. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +26 -1
  41. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +13 -0
  42. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +53 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +631 -19
  44. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +719 -0
  45. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +206 -0
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/latest-cache-result.ts +83 -0
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1432 -157
  48. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +61 -0
  49. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +29 -8
  50. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-queue-health.ts +27 -2
  51. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +45 -0
  52. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +18 -0
  53. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +129 -14
  54. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
  55. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +10 -1
  56. package/dist/cli/{auth-EFHLOVG4.mjs → auth-3L5AA5AX.mjs} +5 -5
  57. package/dist/cli/auth-UPK4IIIN.js +43 -0
  58. package/dist/cli/{billing-Q5XKEYPP.mjs → billing-E7EASVPO.mjs} +19 -12
  59. package/dist/cli/{billing-SKT2VE34.js → billing-HOGXVE2V.js} +92 -85
  60. package/dist/cli/{chunk-L5CTJY74.mjs → chunk-22OCKCYS.mjs} +2 -2
  61. package/dist/cli/{chunk-YWOQYYYS.mjs → chunk-2ABRDH3B.mjs} +2 -2
  62. package/dist/cli/{chunk-IL666WJE.js → chunk-2W77YCKH.js} +5 -5
  63. package/dist/cli/{chunk-2MVIS2UI.mjs → chunk-3MLFFWDM.mjs} +2 -2
  64. package/dist/cli/{chunk-HMZF2CSP.mjs → chunk-4CC67XH5.mjs} +2 -2
  65. package/dist/cli/{chunk-NXVYLX3F.mjs → chunk-5CHBIJIM.mjs} +10 -6
  66. package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
  67. package/dist/cli/{chunk-JL6H4H3G.js → chunk-5Z6EULD5.js} +6 -6
  68. package/dist/cli/{chunk-32YQBJON.js → chunk-67OI26OE.js} +7 -7
  69. package/dist/cli/{chunk-LA3UYRVZ.js → chunk-6JNBMTCZ.js} +1 -1
  70. package/dist/cli/{chunk-DYHTXGLX.js → chunk-6SMR7LU7.js} +2 -2
  71. package/dist/cli/{chunk-OFBLT2LQ.mjs → chunk-7F4OEHQK.mjs} +1 -1
  72. package/dist/cli/{chunk-DRBD4IYQ.mjs → chunk-7MJYZ33I.mjs} +2 -6
  73. package/dist/cli/{chunk-UOANF3DR.js → chunk-7P2QVMBP.js} +26 -7
  74. package/dist/cli/{chunk-GINKIZ7S.js → chunk-A6LA42JY.js} +16 -16
  75. package/dist/cli/{chunk-FVM4PS5Q.js → chunk-BN5VKY4X.js} +25 -12
  76. package/dist/cli/{chunk-Z2H7OQ6E.mjs → chunk-BTWUNKKX.mjs} +2 -2
  77. package/dist/cli/{chunk-R5F7JXT4.mjs → chunk-BX45XMXZ.mjs} +2 -2
  78. package/dist/cli/{chunk-NKLM4J4X.mjs → chunk-DEAJVQEG.mjs} +1 -1
  79. package/dist/cli/{chunk-JFBJLNBI.js → chunk-FISP4LCK.js} +53 -53
  80. package/dist/cli/{chunk-OEUMXKR5.js → chunk-FTRVCIGC.js} +26 -26
  81. package/dist/cli/{chunk-YL2CCF6T.mjs → chunk-GGBXNQCR.mjs} +4 -4
  82. package/dist/cli/{chunk-YPTZJ7LO.js → chunk-GJ2DA35C.js} +100 -17
  83. package/dist/cli/{chunk-2S2F6YSI.js → chunk-GRAGUYIE.js} +41 -41
  84. package/dist/cli/{chunk-2JS3H6H6.mjs → chunk-HUX5DZO6.mjs} +3 -3
  85. package/dist/cli/{chunk-4CCMD7QM.mjs → chunk-IGNQKOWT.mjs} +32 -15
  86. package/dist/cli/{chunk-WKFAX2K7.js → chunk-IPAMOMGP.js} +21 -21
  87. package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
  88. package/dist/cli/{chunk-Q3NM6ZL3.js → chunk-JPR2546F.js} +23 -21
  89. package/dist/cli/{chunk-X5MGQ7UT.js → chunk-KCKAFTPY.js} +10 -10
  90. package/dist/cli/{chunk-TAK3MVXY.js → chunk-KGUGNEKL.js} +284 -267
  91. package/dist/cli/{chunk-OVZOMSH2.js → chunk-LHXYCZYO.js} +8 -8
  92. package/dist/cli/{chunk-QOJBRCAS.js → chunk-MJTK6Q3G.js} +3 -3
  93. package/dist/cli/{chunk-MYUISF3P.mjs → chunk-MLMWM5DV.mjs} +5 -5
  94. package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
  95. package/dist/cli/{chunk-MP5QY4A2.mjs → chunk-NZ7Z7WNM.mjs} +2 -2
  96. package/dist/cli/{chunk-HIVRCTDR.mjs → chunk-OX2D6BG4.mjs} +20 -1
  97. package/dist/cli/{chunk-YDXEXVBV.js → chunk-QKKU2FH4.js} +7 -7
  98. package/dist/cli/{chunk-3KEZVGGV.mjs → chunk-QOLX2O2S.mjs} +4 -4
  99. package/dist/cli/{chunk-JFUXUSKB.mjs → chunk-R2VZVHJP.mjs} +15 -2
  100. package/dist/cli/chunk-R7J7CJPZ.js +209 -0
  101. package/dist/cli/{chunk-XMKUJ44Z.js → chunk-SMSQVRHE.js} +5 -5
  102. package/dist/cli/{chunk-54QXWK3C.mjs → chunk-SVFTZTCI.mjs} +1 -1
  103. package/dist/cli/{chunk-FWDAEWCD.js → chunk-TMQUMILM.js} +19 -23
  104. package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-UFYJTRSF.mjs} +98 -15
  105. package/dist/cli/{chunk-EUWRKWT4.js → chunk-UJMBG5JU.js} +5 -4
  106. package/dist/cli/{chunk-DKAMCJIT.js → chunk-USTJEEND.js} +17 -13
  107. package/dist/cli/{chunk-AJL2Q6IQ.js → chunk-UXQQPMYO.js} +2 -2
  108. package/dist/cli/{chunk-7ZYSXSJJ.mjs → chunk-VJVJWZ6I.mjs} +5 -5
  109. package/dist/cli/{chunk-JLYDLK6X.js → chunk-WBIDPDKJ.js} +3 -3
  110. package/dist/cli/{chunk-QNELA7SX.js → chunk-WZSFIJMG.js} +53 -53
  111. package/dist/cli/{chunk-NZXB27TP.mjs → chunk-XHZSPMNC.mjs} +4 -4
  112. package/dist/cli/{chunk-W5CHE5Q2.mjs → chunk-Y6XKCEPK.mjs} +1 -1
  113. package/dist/cli/{chunk-4WTC5SSN.mjs → chunk-Y7VEHKID.mjs} +10 -8
  114. package/dist/cli/{chunk-3MJSWVQ2.mjs → chunk-YOQ2NNDO.mjs} +2 -1
  115. package/dist/cli/{chunk-ZNB6GR3P.mjs → chunk-Z6FXUDIL.mjs} +1 -1
  116. package/dist/cli/command-docs.d.mts +2 -1
  117. package/dist/cli/command-docs.d.ts +2 -1
  118. package/dist/cli/command-docs.js +6 -2
  119. package/dist/cli/command-docs.mjs +5 -1
  120. package/dist/cli/{csv-OXGSCV75.js → csv-2XWGPITO.js} +13 -13
  121. package/dist/cli/{csv-6AEPKKCO.mjs → csv-433JEHLQ.mjs} +4 -4
  122. package/dist/cli/{db-K3KRK4CZ.mjs → db-K747DH43.mjs} +6 -6
  123. package/dist/cli/{db-6NVHDUZY.js → db-PJJMD4VH.js} +27 -27
  124. package/dist/cli/describe-OYS7LZJD.js +49 -0
  125. package/dist/cli/{describe-P3ZJS7TQ.mjs → describe-VEDDYW4P.mjs} +20 -20
  126. package/dist/cli/describe-core.d.mts +8 -4
  127. package/dist/cli/describe-core.d.ts +8 -4
  128. package/dist/cli/describe-core.js +4 -4
  129. package/dist/cli/describe-core.mjs +3 -3
  130. package/dist/cli/{executions-2C2FFG52.js → executions-HM5T72H6.js} +8 -8
  131. package/dist/cli/{executions-I7XW6WWK.mjs → executions-JWRX3XCT.mjs} +6 -6
  132. package/dist/cli/{feedback-47B57A5Y.js → feedback-34UG4BO3.js} +8 -8
  133. package/dist/cli/{feedback-RSTNBJAI.mjs → feedback-MNSIA63Y.mjs} +4 -4
  134. package/dist/cli/git-5YQJSJFR.js +25 -0
  135. package/dist/cli/{git-3G5AFKBT.mjs → git-ZKEOXV3A.mjs} +5 -5
  136. package/dist/cli/index.js +144 -142
  137. package/dist/cli/index.mjs +44 -42
  138. package/dist/cli/{legacy-noops-NQ262TKL.mjs → legacy-noops-5M4T4ZVT.mjs} +5 -5
  139. package/dist/cli/{legacy-noops-P665PBG4.js → legacy-noops-YXSI4FVU.js} +8 -8
  140. package/dist/cli/{monitors-KUPZODZS.mjs → monitors-C65OC4AW.mjs} +7 -7
  141. package/dist/cli/{monitors-IPWAD7LS.js → monitors-O25GDOYE.js} +95 -95
  142. package/dist/cli/{org-WFC3N672.js → org-2GSPLY2A.js} +72 -72
  143. package/dist/cli/{org-ZCQGEM3L.mjs → org-ZRMG5NS2.mjs} +6 -6
  144. package/dist/cli/{pages-N5BNC67L.js → pages-45DPADK6.js} +18 -18
  145. package/dist/cli/{pages-VE66IU7B.mjs → pages-TZZUFBRO.mjs} +6 -6
  146. package/dist/cli/{play-EIMDIAJB.mjs → play-3D7HH273.mjs} +138 -226
  147. package/dist/cli/{play-NKIRJSKX.js → play-RCGMND6X.js} +454 -542
  148. package/dist/cli/{providers-XU3AGY2F.js → providers-3N3ECMTY.js} +9 -9
  149. package/dist/cli/{providers-KDTJ63ED.mjs → providers-PSAKV6CJ.mjs} +6 -6
  150. package/dist/cli/{quickstart-TXFXUODF.mjs → quickstart-2A35SMGC.mjs} +4 -4
  151. package/dist/cli/{quickstart-OSCHOSXU.js → quickstart-6R6AIXM6.js} +6 -6
  152. package/dist/cli/{run-ODGML35U.mjs → run-F3TLDGUO.mjs} +25 -25
  153. package/dist/cli/{run-ET2KVTPK.js → run-F6ZXTASZ.js} +44 -44
  154. package/dist/cli/{search-DK67K6PR.mjs → search-CZLCY3D2.mjs} +7 -7
  155. package/dist/cli/search-R5VEWJO2.js +32 -0
  156. package/dist/cli/{search-output-6SOKQTCW.mjs → search-output-MQTSTLN5.mjs} +5 -5
  157. package/dist/cli/{search-output-KXP4FA62.js → search-output-R5XDNILW.js} +7 -7
  158. package/dist/cli/{secrets-C6SYTMU7.mjs → secrets-D3GF4B2Z.mjs} +6 -6
  159. package/dist/cli/{secrets-WPS6NMNK.js → secrets-DCJYHDSY.js} +15 -15
  160. package/dist/cli/{sessions-PXVOH34X.mjs → sessions-QGEQ2UYZ.mjs} +5 -5
  161. package/dist/cli/{sessions-IP562J5Z.js → sessions-Z4JYJSDP.js} +6 -6
  162. package/dist/cli/{settings-FBUQGYVJ.mjs → settings-G7QEXA4N.mjs} +11 -11
  163. package/dist/cli/{settings-SUDUIVMY.js → settings-UVXXAT4A.js} +78 -78
  164. package/dist/cli/{setup-I5H6IOEY.js → setup-5I42W7D4.js} +49 -49
  165. package/dist/cli/{setup-JSIMTR73.mjs → setup-QHJU3DUI.mjs} +9 -9
  166. package/dist/cli/{skills-FJQ3LX6N.mjs → skills-5LRF4UKX.mjs} +7 -7
  167. package/dist/cli/skills-FB6TV52O.js +36 -0
  168. package/dist/cli/tools-L2364RPA.js +56 -0
  169. package/dist/cli/{tools-IGBK4BVE.mjs → tools-PUT6STVG.mjs} +18 -18
  170. package/dist/cli/{update-7MTT6F5K.mjs → update-CJ2GA64X.mjs} +9 -9
  171. package/dist/cli/update-ESYJGYVZ.js +34 -0
  172. package/dist/cli/{workflow-PM2J2OU3.mjs → workflow-HVEWRTXD.mjs} +7 -7
  173. package/dist/cli/{workflow-UX3ZX6BQ.js → workflow-O67MEBCP.js} +17 -17
  174. package/dist/{client-Bn8FwKGO.d.ts → client-CIwenMFS.d.ts} +1 -1
  175. package/dist/{client-CfNRmjLK.d.mts → client-DYAfJpaN.d.mts} +1 -1
  176. package/dist/{client-core-B91EV0WS.d.ts → client-core-CRjtyMAI.d.ts} +25 -2
  177. package/dist/{client-core-BG8Cgrmk.d.mts → client-core-DlzP8vEs.d.mts} +25 -2
  178. package/dist/{compiler-manifest-DlXDyndN.d.mts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
  179. package/dist/{compiler-manifest-DlXDyndN.d.ts → compiler-manifest-DaJrA2KV.d.ts} +1 -1
  180. package/dist/{errors-BtriA2ld.d.mts → errors-BKnSYueU.d.mts} +1 -1
  181. package/dist/{errors-DmcLykM7.d.ts → errors-KLga4bLr.d.ts} +1 -1
  182. package/dist/{index-DI0sR_fX.d.mts → index-C-8AFpWy.d.mts} +1 -1
  183. package/dist/{index--Jw-slHY.d.ts → index-C5nAZ-VS.d.ts} +1 -1
  184. package/dist/index.d.mts +7 -7
  185. package/dist/index.d.ts +7 -7
  186. package/dist/index.js +9 -9
  187. package/dist/index.mjs +6 -6
  188. package/dist/install-integrity.json +125 -116
  189. package/dist/plays/bundle-play-file.d.mts +3 -3
  190. package/dist/plays/bundle-play-file.d.ts +3 -3
  191. package/dist/plays/bundle-play-file.mjs +12 -5
  192. package/dist/plays/play-description.d.mts +2 -2
  193. package/dist/plays/play-description.d.ts +2 -2
  194. package/dist/plays/run-request.d.mts +2 -2
  195. package/dist/plays/run-request.d.ts +2 -2
  196. package/dist/release.d.mts +1 -1
  197. package/dist/release.d.ts +1 -1
  198. package/dist/release.js +2 -2
  199. package/dist/release.mjs +1 -1
  200. package/dist/server.d.mts +4 -4
  201. package/dist/server.d.ts +4 -4
  202. package/dist/server.js +5 -5
  203. package/dist/server.mjs +3 -3
  204. package/package.json +1 -1
  205. package/dist/cli/auth-VM3IKP5F.js +0 -43
  206. package/dist/cli/describe-JOUAXXPE.js +0 -49
  207. package/dist/cli/git-OPKIC6JQ.js +0 -25
  208. package/dist/cli/search-6U54Y3OK.js +0 -32
  209. package/dist/cli/skills-VHININXC.js +0 -36
  210. package/dist/cli/tools-XMBMHVKF.js +0 -56
  211. package/dist/cli/update-H7JVW43I.js +0 -34
@@ -5,7 +5,7 @@ import {
5
5
  parsePlayRunHeaderFlag,
6
6
  parsePlayRunOptions,
7
7
  resolvePlayRunCliOptions
8
- } from "./chunk-NXVYLX3F.mjs";
8
+ } from "./chunk-5CHBIJIM.mjs";
9
9
  import {
10
10
  ExecutionOutputError,
11
11
  TABLE_EXPORT_ERROR_COLUMN,
@@ -18,19 +18,19 @@ import {
18
18
  underscoreKeysLast,
19
19
  writeExecutionOutput,
20
20
  writeRunDatasetCsv
21
- } from "./chunk-L5CTJY74.mjs";
21
+ } from "./chunk-22OCKCYS.mjs";
22
22
  import {
23
23
  registerDeprecatedSearchCommand
24
- } from "./chunk-3KEZVGGV.mjs";
24
+ } from "./chunk-QOLX2O2S.mjs";
25
25
  import "./chunk-5AEDYVB6.mjs";
26
26
  import {
27
27
  handleDeploymentGet,
28
28
  handleDeploymentsList
29
- } from "./chunk-Z2H7OQ6E.mjs";
29
+ } from "./chunk-BTWUNKKX.mjs";
30
30
  import {
31
31
  buildPlayDashboardUrl,
32
32
  buildPlayRunUrl
33
- } from "./chunk-SAW3FBCA.mjs";
33
+ } from "./chunk-ITJ7NB2D.mjs";
34
34
  import {
35
35
  shellQuote
36
36
  } from "./chunk-OVDNJAJN.mjs";
@@ -42,14 +42,6 @@ import {
42
42
  listPlayFileExports,
43
43
  parsePlaySourceForAnalysis
44
44
  } from "./chunk-GBAT5NMI.mjs";
45
- import {
46
- MAX_PLAY_SANDBOX_RUNTIME_LIMITS,
47
- PLAY_SANDBOX_SIZE_LIMITS,
48
- STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS,
49
- modalSandboxMemoryLimitGiBForPlay,
50
- playSandboxSizeForLimits,
51
- resolvePlaySandboxRuntimeLimits
52
- } from "./chunk-7I4B6V2S.mjs";
53
45
  import {
54
46
  resolveEnabledExecutionProfile
55
47
  } from "./chunk-F6QV42MC.mjs";
@@ -59,10 +51,10 @@ import {
59
51
  import {
60
52
  pinLocalPlayImports,
61
53
  planLocalPlayExecution
62
- } from "./chunk-R5F7JXT4.mjs";
54
+ } from "./chunk-BX45XMXZ.mjs";
63
55
  import {
64
56
  DeeplineClient
65
- } from "./chunk-YWOQYYYS.mjs";
57
+ } from "./chunk-2ABRDH3B.mjs";
66
58
  import {
67
59
  RUN_EVENT_SEARCH_KIND_VALUES,
68
60
  RunEventQueryInputError,
@@ -75,7 +67,7 @@ import {
75
67
  normalizePlayStatus,
76
68
  normalizeRunEventOperationRequest,
77
69
  parseLogLevel
78
- } from "./chunk-HIVRCTDR.mjs";
70
+ } from "./chunk-OX2D6BG4.mjs";
79
71
  import "./chunk-L2VKAASU.mjs";
80
72
  import {
81
73
  CSV_DATA_INPUT_KEY,
@@ -98,18 +90,24 @@ import "./chunk-BMCRTI6Z.mjs";
98
90
  import {
99
91
  checkPlayRunCompatibility,
100
92
  usesCliPlayAdmission
101
- } from "./chunk-HMZF2CSP.mjs";
93
+ } from "./chunk-4CC67XH5.mjs";
102
94
  import {
103
95
  isCliTraceEnabled,
104
96
  recordCliTrace,
105
97
  resolveCliMaintenancePolicy,
106
98
  traceCliSpan
107
- } from "./chunk-ZNB6GR3P.mjs";
108
- import "./chunk-NZXB27TP.mjs";
99
+ } from "./chunk-Z6FXUDIL.mjs";
100
+ import "./chunk-XHZSPMNC.mjs";
109
101
  import {
110
102
  createCliProgress,
111
103
  getActiveCliProgress
112
- } from "./chunk-NKLM4J4X.mjs";
104
+ } from "./chunk-DEAJVQEG.mjs";
105
+ import {
106
+ formatNonStandardSandboxRuntimeWarning
107
+ } from "./chunk-5LUF4LAR.mjs";
108
+ import {
109
+ resolvePlaySandboxRuntimeLimits
110
+ } from "./chunk-7I4B6V2S.mjs";
113
111
  import {
114
112
  argsWantJson,
115
113
  describeArgs,
@@ -123,17 +121,17 @@ import {
123
121
  printJsonError,
124
122
  renderCommandEnvelopeText,
125
123
  shouldEmitJson
126
- } from "./chunk-2MVIS2UI.mjs";
127
- import "./chunk-W5CHE5Q2.mjs";
124
+ } from "./chunk-3MLFFWDM.mjs";
125
+ import "./chunk-Y6XKCEPK.mjs";
128
126
  import {
129
127
  fetchWithDeploymentProtection
130
- } from "./chunk-3MJSWVQ2.mjs";
128
+ } from "./chunk-YOQ2NNDO.mjs";
131
129
  import "./chunk-4QF2K7TM.mjs";
132
130
  import "./chunk-DLIRSHV6.mjs";
133
131
  import {
134
132
  DeeplineError
135
133
  } from "./chunk-HBL4PM5Q.mjs";
136
- import "./chunk-OFBLT2LQ.mjs";
134
+ import "./chunk-7F4OEHQK.mjs";
137
135
  import "./chunk-WZYKRD7T.mjs";
138
136
  import {
139
137
  __commonJS,
@@ -4256,6 +4254,7 @@ async function runRunsRerunCommand(runId, options) {
4256
4254
  return 1;
4257
4255
  }
4258
4256
  }
4257
+ if (options.notice) console.error(options.notice);
4259
4258
  const result = await new DeeplineClient().runs.rerun(runId, {
4260
4259
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4261
4260
  ...inputOverrides === void 0 ? {} : { inputOverrides }
@@ -4282,6 +4281,26 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
4282
4281
  return 0;
4283
4282
  }
4284
4283
 
4284
+ // src/cli/operations/runs-resume.ts
4285
+ async function runRunsResumeCommand(runId) {
4286
+ try {
4287
+ const result = await new DeeplineClient().runs.resume(runId);
4288
+ if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
4289
+ throw new Error(
4290
+ "Invalid resume receipt: expected the requested run and a new positive epoch."
4291
+ );
4292
+ console.log(
4293
+ `Resumed run ${result.runId} at epoch ${result.epoch}. Completed calls will be reused; only unfinished work runs.`
4294
+ );
4295
+ console.log(` inspect: deepline runs get ${result.runId}`);
4296
+ return 0;
4297
+ } catch (error) {
4298
+ if (error instanceof DeeplineError && error.code && !error.message.includes(error.code))
4299
+ error.message = `${error.code}: ${error.message}`;
4300
+ throw error;
4301
+ }
4302
+ }
4303
+
4285
4304
  // ../plays/cascade-falloff.ts
4286
4305
  function cascadeFalloff(input) {
4287
4306
  const order = new Map(input.legs.map((leg, index) => [leg, index]));
@@ -5260,198 +5279,6 @@ ${hint}`;
5260
5279
  });
5261
5280
  }
5262
5281
 
5263
- // ../play-runtime/worker-api-types.ts
5264
- var DAYTONA_COMPUTE_PRICING_USD = {
5265
- vcpuSecond: 14e-6,
5266
- memoryGiBSecond: 45e-7,
5267
- storageGiBSecond: 3e-8,
5268
- includedStorageGiB: 5
5269
- };
5270
- var MODAL_SANDBOX_COMPUTE_PRICING_USD = {
5271
- physicalCoreSecond: 3942e-8,
5272
- memoryGiBSecond: 667e-8
5273
- };
5274
- var MODAL_SANDBOX_CPU_CORES = 0.5;
5275
- function modalSandboxResourcesForPlay(input) {
5276
- return {
5277
- physicalCpuCores: MODAL_SANDBOX_CPU_CORES * input.cpu,
5278
- memoryMiB: input.memoryGiB * 1024
5279
- };
5280
- }
5281
- function roundUsd(amount) {
5282
- return Number(Math.max(0, amount).toFixed(12));
5283
- }
5284
- function sandboxSizeMetadata(cpu, memoryGiB) {
5285
- const entry = Object.entries(PLAY_SANDBOX_SIZE_LIMITS).find(
5286
- ([, limits]) => limits.cpu === cpu && limits.memoryGiB === memoryGiB
5287
- );
5288
- return entry ? { sandboxSize: entry[0] } : {};
5289
- }
5290
- function runtimeLimitMetadata(maxBillingDurationSeconds, observedWallTimeSeconds) {
5291
- if (typeof maxBillingDurationSeconds !== "number" || !Number.isFinite(maxBillingDurationSeconds) || maxBillingDurationSeconds <= 0) {
5292
- return {};
5293
- }
5294
- return {
5295
- maxBillingDurationSeconds,
5296
- ...typeof observedWallTimeSeconds === "number" && Number.isFinite(observedWallTimeSeconds) ? { observedWallTimeSeconds: Math.max(0, observedWallTimeSeconds) } : {}
5297
- };
5298
- }
5299
- function resolveDaytonaSandboxComputeItem(input) {
5300
- const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
5301
- const cpu = Math.max(0, input.cpu);
5302
- const memoryGiB = Math.max(0, input.memoryGiB);
5303
- const billableDiskGiB = Math.max(
5304
- 0,
5305
- input.diskGiB - DAYTONA_COMPUTE_PRICING_USD.includedStorageGiB
5306
- );
5307
- const providerCostUsd = roundUsd(
5308
- billableSeconds * (cpu * DAYTONA_COMPUTE_PRICING_USD.vcpuSecond + memoryGiB * DAYTONA_COMPUTE_PRICING_USD.memoryGiBSecond + billableDiskGiB * DAYTONA_COMPUTE_PRICING_USD.storageGiBSecond)
5309
- );
5310
- return {
5311
- itemId: input.itemId,
5312
- source: input.source ?? "daytona",
5313
- unit: "sandbox_second",
5314
- units: billableSeconds,
5315
- providerCostUsd,
5316
- metadata: {
5317
- ...sandboxSizeMetadata(cpu, memoryGiB),
5318
- sandboxId: input.sandboxId ?? null,
5319
- cpu,
5320
- memoryGiB,
5321
- diskGiB: Math.max(0, input.diskGiB),
5322
- billableDiskGiB,
5323
- startedAt: input.startedAt,
5324
- endedAt: input.endedAt,
5325
- ...runtimeLimitMetadata(
5326
- input.maxBillingDurationSeconds,
5327
- input.observedWallTimeSeconds
5328
- )
5329
- }
5330
- };
5331
- }
5332
- function resolveModalSandboxComputeItem(input) {
5333
- const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
5334
- const physicalCpuCores = Math.max(0, input.physicalCpuCores);
5335
- const memoryGiB = Math.max(0, input.memoryGiB);
5336
- const providerCostUsd = roundUsd(
5337
- billableSeconds * (physicalCpuCores * MODAL_SANDBOX_COMPUTE_PRICING_USD.physicalCoreSecond + memoryGiB * MODAL_SANDBOX_COMPUTE_PRICING_USD.memoryGiBSecond)
5338
- );
5339
- return {
5340
- itemId: input.itemId,
5341
- source: "modal",
5342
- unit: "sandbox_second",
5343
- units: billableSeconds,
5344
- providerCostUsd,
5345
- metadata: {
5346
- ...sandboxSizeMetadata(
5347
- physicalCpuCores / MODAL_SANDBOX_CPU_CORES,
5348
- memoryGiB
5349
- ),
5350
- sandboxId: input.sandboxId ?? null,
5351
- physicalCpuCores,
5352
- memoryGiB,
5353
- ...input.memoryLimitGiB === void 0 ? {} : {
5354
- memoryLimitGiB: input.memoryLimitGiB,
5355
- // The Preview evaluation preserves the existing compute price.
5356
- // Sampled burst cost is diagnostic until provider billing can be
5357
- // reconciled; a hard ceiling is never presented as actual usage.
5358
- costBasis: "reserved_resources"
5359
- },
5360
- startedAt: input.startedAt,
5361
- endedAt: input.endedAt,
5362
- ...runtimeLimitMetadata(
5363
- input.maxBillingDurationSeconds,
5364
- input.observedWallTimeSeconds
5365
- )
5366
- }
5367
- };
5368
- }
5369
-
5370
- // ../play-runtime/runtime-constants.ts
5371
- var STANDARD_PLAY_RUNTIME_LIMIT_SECONDS = 30 * 60;
5372
- var PLAY_RUNNER_TERMINAL_GRACE_SECONDS = 90;
5373
- var PLAY_RUNNER_STARTUP_GRACE_SECONDS = 4 * 60;
5374
- var SANDBOX_NETWORK_CUT_MAX_MS = 11 * 6e4;
5375
- var RUNNER_GATEWAY_CONNECTION_RETRY_BUDGET_MS = SANDBOX_NETWORK_CUT_MAX_MS + 6e4;
5376
- var PLAY_RUNNER_TIMEOUT_SECONDS = 40 * 60;
5377
- var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS = MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds + (PLAY_RUNNER_TIMEOUT_SECONDS - STANDARD_PLAY_RUNTIME_LIMIT_SECONDS);
5378
-
5379
- // ../billing/compute-pricing-contract.ts
5380
- var COMPUTE_BILLING_MARKUP_MULTIPLIER = 5;
5381
- var DEFAULT_USD_PER_CUSTOMER_CREDIT = 0.1;
5382
- var DEFAULT_PROVIDER_MARKUP_MULTIPLIER = 1.4;
5383
- var MAX_SANDBOX_COMPUTE_BILLING_SECONDS = 60 * 60;
5384
- var MAX_SANDBOX_COMPUTE_PROVIDER_COST_USD = Math.max(
5385
- ...Object.values(PLAY_SANDBOX_SIZE_LIMITS).flatMap((profile) => {
5386
- const modalResources = modalSandboxResourcesForPlay(profile);
5387
- return [
5388
- resolveDaytonaSandboxComputeItem({
5389
- itemId: "billing-cap",
5390
- wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
5391
- cpu: profile.cpu,
5392
- memoryGiB: profile.memoryGiB,
5393
- diskGiB: profile.diskGiB
5394
- }).providerCostUsd,
5395
- resolveModalSandboxComputeItem({
5396
- itemId: "billing-cap",
5397
- wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
5398
- physicalCpuCores: modalResources.physicalCpuCores,
5399
- memoryGiB: profile.memoryGiB
5400
- }).providerCostUsd
5401
- ];
5402
- })
5403
- );
5404
- function roundUpCredits(value) {
5405
- if (!Number.isFinite(value) || value <= 0) return 0;
5406
- return Math.ceil(value * 100) / 100;
5407
- }
5408
- function maximumPlaySandboxBillingSeconds(limits) {
5409
- return Math.min(
5410
- limits.timeoutSeconds + PLAY_RUNNER_TERMINAL_GRACE_SECONDS,
5411
- MAX_SANDBOX_COMPUTE_BILLING_SECONDS
5412
- );
5413
- }
5414
- function estimateDaytonaMaximumComputeCredits(limits) {
5415
- const item = resolveDaytonaSandboxComputeItem({
5416
- itemId: "estimate",
5417
- wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
5418
- cpu: limits.cpu,
5419
- memoryGiB: limits.memoryGiB,
5420
- diskGiB: limits.diskGiB
5421
- });
5422
- return roundUpCredits(
5423
- item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
5424
- );
5425
- }
5426
- function estimateModalMaximumComputeCredits(limits, elasticMemory = false) {
5427
- const resources = modalSandboxResourcesForPlay(limits);
5428
- const item = resolveModalSandboxComputeItem({
5429
- itemId: "estimate",
5430
- wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
5431
- physicalCpuCores: resources.physicalCpuCores,
5432
- memoryGiB: elasticMemory ? modalSandboxMemoryLimitGiBForPlay(limits) : limits.memoryGiB
5433
- });
5434
- return roundUpCredits(
5435
- item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
5436
- );
5437
- }
5438
- function estimateMaximumSandboxComputeCredits(limits, elasticMemory = false) {
5439
- return Math.max(
5440
- estimateDaytonaMaximumComputeCredits(limits),
5441
- estimateModalMaximumComputeCredits(limits, elasticMemory)
5442
- );
5443
- }
5444
- function formatNonStandardSandboxRuntimeWarning(limits) {
5445
- const size = playSandboxSizeForLimits(limits);
5446
- if (!size) return null;
5447
- if (size === "standard" && limits.timeoutSeconds <= STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds) {
5448
- return null;
5449
- }
5450
- const maximumComputeCredits = estimateMaximumSandboxComputeCredits(limits);
5451
- const quotedTimeout = `${Math.ceil(limits.timeoutSeconds / 60)}m`;
5452
- return `This Play requests the ${size} sandbox for up to ${limits.timeoutSeconds}s (${limits.memoryGiB}GiB memory, ${limits.cpu} CPU, ${limits.diskGiB}GiB disk). Resource-based pricing estimate: ${maximumComputeCredits.toFixed(2)} Deepline credits. Workspace plan pricing can differ. Run deepline billing quote --sandbox-timeout ${quotedTimeout} --sandbox-size ${size} for your workspace's session ceiling.`;
5453
- }
5454
-
5455
5282
  // ../play-runtime/internal-step-ids.ts
5456
5283
  var INTERNAL_GLUE_NODE_ID_PREFIX = "run_javascript:";
5457
5284
  function isInternalGlueStepId(stepId) {
@@ -13939,6 +13766,9 @@ async function handleRunLifecycleStatus(args) {
13939
13766
  }
13940
13767
  return 0;
13941
13768
  }
13769
+ function runsRerunRenameNotice(runId) {
13770
+ return `runs rerun starts a new run. To continue a stopped run without repeating its completed work, use: deepline runs resume ${runId}. To start over, use: deepline plays run --from-run ${runId}.`;
13771
+ }
13942
13772
  async function handleRunsRerun(args) {
13943
13773
  const usage2 = "Usage: deepline runs rerun <run-id> [--idempotency-key <key>] [--input-overrides <json>] [--json]";
13944
13774
  let runId;
@@ -16259,10 +16089,14 @@ Notes:
16259
16089
  the server accepts the run. The destination must not already exist.
16260
16090
  The run page URL is printed when the run starts. Pass --open to open it in a browser.
16261
16091
  Concurrent runs for the same play are allowed.
16262
- --force starts a fresh run graph without refreshing completed provider calls.
16263
- It does not cancel active sibling runs.
16264
- --force-tool-refresh re-executes completed tool receipts and may repeat billed
16265
- provider calls. It is independent from --force.
16092
+ --from-start starts a fresh run graph without refreshing completed provider calls.
16093
+ It does not cancel active sibling runs. (Formerly --force.)
16094
+ --refresh-cache skips cached reads, calls providers again, and updates the
16095
+ shared result other Plays reuse, billing those calls again. It is independent
16096
+ from --from-start. (Formerly --force-tool-refresh.)
16097
+ --from-run <run-id> starts a new run of the same Play with that run's
16098
+ retained input and pinned revision, and returns once it starts. It accepts
16099
+ only --json.
16266
16100
  --max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
16267
16101
  resident-work ceiling. Default: ${DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16268
16102
  Provider pacing and sandbox memory limits still apply.
@@ -16321,6 +16155,7 @@ Examples:
16321
16155
  deepline plays run my.play.ts --max-credits 50
16322
16156
  deepline plays run my.play.ts --input @input.json
16323
16157
  deepline plays run cto-search.play.ts --limit 5
16158
+ deepline plays run --from-run <run-id>
16324
16159
  deepline runs export <run-id> --out output.csv
16325
16160
  deepline runs get <run-id>
16326
16161
  `
@@ -16376,9 +16211,19 @@ Examples:
16376
16211
  ).option(
16377
16212
  "--tail-timeout-ms <ms>",
16378
16213
  "Timeout while waiting for terminal run status"
16379
- ).option("--force", "Start a fresh run graph").option(
16380
- "--force-tool-refresh",
16381
- "Refresh completed tool receipts; may repeat billed provider calls"
16214
+ ).option("--from-start", "Start a fresh run graph").addOption(
16215
+ new Option2("--force", "Compatibility alias for --from-start").hideHelp()
16216
+ ).option(
16217
+ "--from-run <run-id>",
16218
+ "Start a new run from an earlier run's retained input and pinned revision"
16219
+ ).option(
16220
+ "--refresh-cache",
16221
+ "Skip cached reads and call providers again (bills those calls again)"
16222
+ ).addOption(
16223
+ new Option2(
16224
+ "--force-tool-refresh",
16225
+ "Compatibility alias for --refresh-cache"
16226
+ ).hideHelp()
16382
16227
  ).option(
16383
16228
  "--max-concurrent-external-calls <count>",
16384
16229
  `Concurrent provider-tool and deepline.fetch executions (${DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
@@ -16405,6 +16250,11 @@ JSON field selection:
16405
16250
  `
16406
16251
  ).action(
16407
16252
  async (target, cliOptions, command) => {
16253
+ warnRenamedPlayRunFlags(cliOptions);
16254
+ if (cliOptions.fromRun !== void 0) {
16255
+ process.exitCode = await runPlayFromRun(target, cliOptions, command);
16256
+ return;
16257
+ }
16408
16258
  const inlineFile = cliOptions.eval === void 0 ? null : writeInlinePlay(cliOptions.eval);
16409
16259
  try {
16410
16260
  process.exitCode = await runPlayCommand(
@@ -16417,6 +16267,42 @@ JSON field selection:
16417
16267
  }
16418
16268
  }
16419
16269
  );
16270
+ function warnRenamedPlayRunFlags(options) {
16271
+ if (options.force) {
16272
+ console.error(
16273
+ "--force is now --from-start; the old name will be removed after a migration window."
16274
+ );
16275
+ }
16276
+ if (options.forceToolRefresh) {
16277
+ console.error(
16278
+ "--force-tool-refresh is now --refresh-cache; the old name will be removed after a migration window."
16279
+ );
16280
+ }
16281
+ }
16282
+ async function runPlayFromRun(target, options, command) {
16283
+ const runId = options.fromRun?.trim();
16284
+ if (!runId || runId.startsWith("--")) {
16285
+ console.error("--from-run requires a run id.");
16286
+ return 1;
16287
+ }
16288
+ const conflicting = Object.entries(options).filter(
16289
+ ([key, value]) => value !== void 0 && key !== "fromRun" && key !== "json" && !(key === "wait" && value === true)
16290
+ ).map(
16291
+ ([key]) => `--${key.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)}`
16292
+ );
16293
+ if (target !== void 0 || command.args.length > 0) {
16294
+ conflicting.unshift("a play target or input");
16295
+ }
16296
+ if (conflicting.length > 0) {
16297
+ console.error(
16298
+ `--from-run reuses the earlier run's play, input and revision; it cannot be combined with ${conflicting.join(", ")}.`
16299
+ );
16300
+ return 1;
16301
+ }
16302
+ return runRunsRerunCommand(runId, {
16303
+ ...options.json === void 0 ? {} : { json: Boolean(options.json) }
16304
+ });
16305
+ }
16420
16306
  async function runPlayCommand(target, options, command) {
16421
16307
  const passthroughArgs = [...command.args];
16422
16308
  const explicitTarget = options.file || options.name;
@@ -16651,7 +16537,7 @@ Examples:
16651
16537
  process.exitCode = await ownView();
16652
16538
  return;
16653
16539
  }
16654
- const { describeAnything } = await import("./describe-P3ZJS7TQ.mjs");
16540
+ const { describeAnything } = await import("./describe-VEDDYW4P.mjs");
16655
16541
  process.exitCode = await describeAnything(
16656
16542
  name,
16657
16543
  {
@@ -16989,7 +16875,7 @@ Examples:
16989
16875
  new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
16990
16876
  ).action(async (runId, options) => {
16991
16877
  if (TOOL_EXECUTION_ID.test(runId)) {
16992
- const { getToolExecutionReceipt } = await import("./tools-IGBK4BVE.mjs");
16878
+ const { getToolExecutionReceipt } = await import("./tools-PUT6STVG.mjs");
16993
16879
  process.exitCode = await getToolExecutionReceipt(runId, {
16994
16880
  receiptJson: options.json !== void 0
16995
16881
  });
@@ -17014,6 +16900,9 @@ Examples:
17014
16900
  `
17015
16901
  Notes:
17016
16902
  Creates a new run. It never mutates the original run.
16903
+ To continue a stopped run without repeating its completed work, use
16904
+ deepline runs resume <run-id>. To start over, use
16905
+ deepline plays run --from-run <run-id> (the same operation as this command).
17017
16906
  The rerun uses the original input and exact saved revision. Normal completed
17018
16907
  tool receipts may be reused; inspect the new run before forcing any external
17019
16908
  side effect.
@@ -17035,7 +16924,30 @@ Examples:
17035
16924
  "--input-overrides <json>",
17036
16925
  "Override existing scalar fields in the retained input for this rerun"
17037
16926
  ).option("--json", "Emit JSON output").action(async (runId, options) => {
17038
- process.exitCode = await runRunsRerunCommand(runId, options);
16927
+ process.exitCode = await runRunsRerunCommand(runId, {
16928
+ ...options,
16929
+ notice: runsRerunRenameNotice(runId)
16930
+ });
16931
+ });
16932
+ runs.command("resume <runId>").description(
16933
+ "Continue a failed or cancelled run as the same run, reusing its completed work."
16934
+ ).addHelpText(
16935
+ "after",
16936
+ `
16937
+ Notes:
16938
+ Continues the same run id with its original input and pinned revision.
16939
+ Completed calls are reused; only work the run had not finished runs.
16940
+ A run can be resumed for 14 days after it stops. To start over as a new
16941
+ run instead, use deepline plays run --from-run <run-id>.
16942
+ The server refuses while the run is still active, while its last attempt
16943
+ or sandbox cleanup is still finishing (try again in a minute), and after
16944
+ the 14-day window.
16945
+
16946
+ Examples:
16947
+ deepline runs resume play/my-play/run/20260501t000000-000
16948
+ `
16949
+ ).action(async (runId) => {
16950
+ process.exitCode = await runRunsResumeCommand(runId);
17039
16951
  });
17040
16952
  runs.command("list").description("List play runs.").addHelpText(
17041
16953
  "after",