deepline 0.3.501 → 0.3.503

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 (210) 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/starter-templates.ts +0 -8
  6. package/dist/bundling-sources/shared_libs/observability/dlq.ts +174 -0
  7. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  8. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  9. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +20 -2
  10. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +20 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +62 -2
  12. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +667 -62
  13. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +55 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +29 -14
  15. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +20 -2
  16. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +46 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +80 -4
  18. package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +95 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +292 -45
  20. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +15 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +3 -0
  22. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +7 -3
  23. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +31 -1
  24. package/dist/bundling-sources/shared_libs/play-runtime/post-code-recovery-policy.ts +231 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +264 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +9 -0
  27. package/dist/bundling-sources/shared_libs/play-runtime/run-ending-event.ts +55 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +126 -0
  29. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +70 -1
  30. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +2 -9
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +51 -19
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +9 -4
  33. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2 -0
  34. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +2 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +12 -1
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +3 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +30 -8
  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 +1453 -160
  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/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +2 -0
  57. package/dist/cli/{auth-6ECHXOI4.mjs → auth-IC4WLSE3.mjs} +5 -5
  58. package/dist/cli/auth-ZCMSXZO4.js +43 -0
  59. package/dist/cli/{billing-75NZYRXA.mjs → billing-2VOV64SD.mjs} +6 -6
  60. package/dist/cli/{billing-QRR7O6BD.js → billing-LWQOII22.js} +79 -79
  61. package/dist/cli/{chunk-N2TJJNCW.js → chunk-2626LTU3.js} +291 -273
  62. package/dist/cli/{chunk-VL72UKNW.js → chunk-26RSSTCF.js} +26 -26
  63. package/dist/cli/{chunk-HDKXSHGA.js → chunk-2K2QBLYO.js} +53 -53
  64. package/dist/cli/{chunk-463ZOO2L.js → chunk-33JUK73X.js} +7 -7
  65. package/dist/cli/{chunk-KTOAJP4N.js → chunk-3CXHK4TW.js} +10 -10
  66. package/dist/cli/{chunk-YPTZJ7LO.js → chunk-4IIYSBEP.js} +70 -13
  67. package/dist/cli/{chunk-VTDAJZIJ.mjs → chunk-5GI6NKOE.mjs} +20 -1
  68. package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-5M5WSFRZ.mjs} +70 -13
  69. package/dist/cli/{chunk-5S7MLAI7.mjs → chunk-6XTE6C3W.mjs} +41 -23
  70. package/dist/cli/{chunk-7L6QNHUL.mjs → chunk-7HEDCIR3.mjs} +1 -1
  71. package/dist/cli/{chunk-C5R3UH5V.mjs → chunk-7MJYZ33I.mjs} +2 -6
  72. package/dist/cli/{chunk-TOE7LHEA.js → chunk-A2C6ONWA.js} +6 -6
  73. package/dist/cli/{chunk-QQ3JJYE2.js → chunk-AARF4SOW.js} +17 -13
  74. package/dist/cli/{chunk-APAHMCGR.js → chunk-B3X4YWQ6.js} +53 -53
  75. package/dist/cli/{chunk-J74N375S.mjs → chunk-BI2Q45SY.mjs} +4 -4
  76. package/dist/cli/{chunk-GBICEYUA.js → chunk-BN5VKY4X.js} +141 -20
  77. package/dist/cli/{chunk-UR7JOSLT.js → chunk-C5RQTTLP.js} +26 -7
  78. package/dist/cli/{chunk-ZUOKIBLJ.mjs → chunk-D27HP3HS.mjs} +2 -2
  79. package/dist/cli/{chunk-UJRN6YP6.mjs → chunk-DPI5OYVU.mjs} +10 -6
  80. package/dist/cli/{chunk-MSLXAVVK.mjs → chunk-EDMV4JT5.mjs} +2 -2
  81. package/dist/cli/{chunk-ZUQHQGC5.mjs → chunk-EQ3WMKFY.mjs} +5 -5
  82. package/dist/cli/{chunk-5X4AUFYW.js → chunk-F73PD2XD.js} +7 -7
  83. package/dist/cli/{chunk-O3DDVP7Z.mjs → chunk-FHJ54BHH.mjs} +2 -2
  84. package/dist/cli/{chunk-SV2TEZ2M.js → chunk-FIUTDSJX.js} +5 -4
  85. package/dist/cli/{chunk-W6JTHVPF.js → chunk-FVDTERO2.js} +21 -21
  86. package/dist/cli/{chunk-CJJ7JBM2.js → chunk-FZHOWPSN.js} +23 -21
  87. package/dist/cli/{chunk-WJUDAHIQ.mjs → chunk-GIHNEYBG.mjs} +1 -1
  88. package/dist/cli/{chunk-V5NHEYU7.mjs → chunk-GLZBFBJS.mjs} +5 -5
  89. package/dist/cli/{chunk-VVEMPC2I.js → chunk-HRTDCXHI.js} +2 -2
  90. package/dist/cli/{chunk-BOFCF4L7.js → chunk-HS63YBT5.js} +3 -3
  91. package/dist/cli/{chunk-4OXHLTCP.js → chunk-IIP46RVC.js} +1 -1
  92. package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
  93. package/dist/cli/{chunk-NA3J3F2Z.mjs → chunk-J6RBOLK7.mjs} +1 -1
  94. package/dist/cli/{chunk-PXIF74UJ.mjs → chunk-JJVN7OIX.mjs} +4 -4
  95. package/dist/cli/{chunk-T7E3XEPG.mjs → chunk-JPDD4Y53.mjs} +10 -8
  96. package/dist/cli/{chunk-OKOXB3LY.mjs → chunk-K7NFFQFU.mjs} +2 -2
  97. package/dist/cli/{chunk-66XDYH5T.mjs → chunk-KGLVATEB.mjs} +2 -2
  98. package/dist/cli/{chunk-EHVFBD36.mjs → chunk-KPBBT6OS.mjs} +2 -1
  99. package/dist/cli/{chunk-MADTHS56.mjs → chunk-L3TZV625.mjs} +1 -1
  100. package/dist/cli/{chunk-FS7XYDOF.js → chunk-MJQOG4TZ.js} +16 -16
  101. package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
  102. package/dist/cli/{chunk-EKZQ5LQO.js → chunk-PVA3MWCO.js} +3 -3
  103. package/dist/cli/{chunk-PNF2ZU4R.js → chunk-QIEYEY6Z.js} +8 -8
  104. package/dist/cli/{chunk-KSHAFYYG.mjs → chunk-R2VZVHJP.mjs} +127 -6
  105. package/dist/cli/{chunk-XEBFJ2PH.js → chunk-RVOBFO7C.js} +41 -41
  106. package/dist/cli/{chunk-RU5ROUFO.js → chunk-TCQYWZFS.js} +5 -5
  107. package/dist/cli/{chunk-I42EOZKQ.js → chunk-TMQUMILM.js} +19 -23
  108. package/dist/cli/{chunk-EOO7OSS4.mjs → chunk-URZNSJE2.mjs} +4 -4
  109. package/dist/cli/{chunk-Z6AUOV7D.mjs → chunk-VC5B462T.mjs} +2 -2
  110. package/dist/cli/{chunk-EKF4DKUA.js → chunk-WHP3FJ7T.js} +5 -5
  111. package/dist/cli/{chunk-VD2374K7.mjs → chunk-WS274KID.mjs} +1 -1
  112. package/dist/cli/{chunk-T4U245E4.mjs → chunk-XYZZZLN6.mjs} +2 -2
  113. package/dist/cli/{chunk-J6SVNKRP.js → chunk-YXGPMTAK.js} +2 -2
  114. package/dist/cli/{chunk-RFV7PPLS.mjs → chunk-ZEQPCEV4.mjs} +3 -3
  115. package/dist/cli/command-docs.js +2 -2
  116. package/dist/cli/command-docs.mjs +1 -1
  117. package/dist/cli/{csv-RZJ4SOIL.mjs → csv-2TXOI3UE.mjs} +4 -4
  118. package/dist/cli/{csv-JXX2LXK5.js → csv-NEWCNOSZ.js} +13 -13
  119. package/dist/cli/{db-T2KJNONM.js → db-J3IJS4OG.js} +27 -27
  120. package/dist/cli/{db-MUTT2NWI.mjs → db-PX7EQEIG.mjs} +6 -6
  121. package/dist/cli/{describe-K3UMAAVO.mjs → describe-GQHGTZSL.mjs} +20 -21
  122. package/dist/cli/describe-LE7EZCL4.js +49 -0
  123. package/dist/cli/describe-core.d.mts +8 -4
  124. package/dist/cli/describe-core.d.ts +8 -4
  125. package/dist/cli/describe-core.js +4 -5
  126. package/dist/cli/describe-core.mjs +3 -4
  127. package/dist/cli/{executions-PHS4R2OX.mjs → executions-FFKK24RY.mjs} +6 -6
  128. package/dist/cli/{executions-7HSLDRHR.js → executions-RO3TJUXL.js} +8 -8
  129. package/dist/cli/{feedback-BJZRM637.js → feedback-XRR4HIS6.js} +8 -8
  130. package/dist/cli/{feedback-RWMDCIDF.mjs → feedback-ZTO56SRL.mjs} +4 -4
  131. package/dist/cli/git-26AH4XIO.js +25 -0
  132. package/dist/cli/{git-YW6VHYZG.mjs → git-FIPBVFYZ.mjs} +5 -5
  133. package/dist/cli/index.js +142 -142
  134. package/dist/cli/index.mjs +42 -42
  135. package/dist/cli/{legacy-noops-5UBSUPGG.mjs → legacy-noops-AMD2NWHF.mjs} +5 -5
  136. package/dist/cli/{legacy-noops-2WUV2XD7.js → legacy-noops-MTBBGM27.js} +8 -8
  137. package/dist/cli/{monitors-HWOQO3OK.mjs → monitors-24LDKDJX.mjs} +7 -7
  138. package/dist/cli/{monitors-YZZRKSTG.js → monitors-42PIGLBF.js} +95 -95
  139. package/dist/cli/{org-NCXT6RB4.mjs → org-4B7SCFRL.mjs} +6 -6
  140. package/dist/cli/{org-JY7HLHBA.js → org-GQMCA3MN.js} +72 -72
  141. package/dist/cli/{pages-QJO53QAT.mjs → pages-PD5EGL2R.mjs} +6 -6
  142. package/dist/cli/{pages-6ZOHXL6X.js → pages-RL2M62GJ.js} +18 -18
  143. package/dist/cli/{play-SQRS7JN3.mjs → play-5V54VTUR.mjs} +132 -26
  144. package/dist/cli/{play-TAYGSR35.js → play-FST6ZAHW.js} +447 -341
  145. package/dist/cli/{providers-4Q5LOIQ5.js → providers-HBUUPN7J.js} +9 -9
  146. package/dist/cli/{providers-3IR3N5DT.mjs → providers-N5YVCKPL.mjs} +6 -6
  147. package/dist/cli/{quickstart-ITNUZENY.js → quickstart-4QIQNSHG.js} +6 -6
  148. package/dist/cli/{quickstart-KCZCYO6B.mjs → quickstart-NJDDVTQR.mjs} +4 -4
  149. package/dist/cli/{run-YQ57LMKN.js → run-FGOKCG4J.js} +44 -45
  150. package/dist/cli/{run-JCWRWDSK.mjs → run-JHI5MTHD.mjs} +25 -26
  151. package/dist/cli/search-CTKSEVSO.js +32 -0
  152. package/dist/cli/{search-FUM27HQP.mjs → search-EWIZBIY2.mjs} +7 -7
  153. package/dist/cli/{search-output-EWEYT34M.mjs → search-output-NAK3MWBH.mjs} +53 -75
  154. package/dist/cli/{search-output-XAMWKRJH.js → search-output-TMQTRC2W.js} +58 -80
  155. package/dist/cli/{secrets-2IRRRZBL.js → secrets-5TSUEOJB.js} +15 -15
  156. package/dist/cli/{secrets-YTI4IAKR.mjs → secrets-ONQVW5SR.mjs} +6 -6
  157. package/dist/cli/{sessions-EFS4KUPF.mjs → sessions-B7F5O3ZR.mjs} +5 -5
  158. package/dist/cli/{sessions-HWTRDXBQ.js → sessions-BSGE5EET.js} +6 -6
  159. package/dist/cli/{settings-FRVEIOKR.js → settings-47LARBRU.js} +78 -78
  160. package/dist/cli/{settings-NTOO42DY.mjs → settings-SGGFQV5R.mjs} +11 -11
  161. package/dist/cli/{setup-PAVQPALX.mjs → setup-ATGNXQUK.mjs} +9 -9
  162. package/dist/cli/{setup-6ZIOAE2V.js → setup-BNFZFXO6.js} +49 -49
  163. package/dist/cli/skills-6RD25MVM.js +36 -0
  164. package/dist/cli/{skills-3O3XTPUM.mjs → skills-CIMBRM5R.mjs} +7 -7
  165. package/dist/cli/{tools-7QSB65UL.mjs → tools-DTDXAULX.mjs} +18 -19
  166. package/dist/cli/tools-TDZH4XHS.js +56 -0
  167. package/dist/cli/{update-T6CYS5ZT.mjs → update-EOIJBJCO.mjs} +9 -9
  168. package/dist/cli/update-Y32VT4VL.js +34 -0
  169. package/dist/cli/{workflow-OMSXZ73T.mjs → workflow-IWXUJPWY.mjs} +7 -7
  170. package/dist/cli/{workflow-4KMJBMGX.js → workflow-V5VKPICQ.js} +17 -17
  171. package/dist/{client-Bn8FwKGO.d.ts → client-CIwenMFS.d.ts} +1 -1
  172. package/dist/{client-CfNRmjLK.d.mts → client-DYAfJpaN.d.mts} +1 -1
  173. package/dist/{client-core-B91EV0WS.d.ts → client-core-CRjtyMAI.d.ts} +25 -2
  174. package/dist/{client-core-BG8Cgrmk.d.mts → client-core-DlzP8vEs.d.mts} +25 -2
  175. package/dist/{compiler-manifest-DlXDyndN.d.ts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
  176. package/dist/{compiler-manifest-DlXDyndN.d.mts → compiler-manifest-DaJrA2KV.d.ts} +1 -1
  177. package/dist/{errors-BtriA2ld.d.mts → errors-BKnSYueU.d.mts} +1 -1
  178. package/dist/{errors-DmcLykM7.d.ts → errors-KLga4bLr.d.ts} +1 -1
  179. package/dist/{index-DI0sR_fX.d.mts → index-C-8AFpWy.d.mts} +1 -1
  180. package/dist/{index--Jw-slHY.d.ts → index-C5nAZ-VS.d.ts} +1 -1
  181. package/dist/index.d.mts +7 -7
  182. package/dist/index.d.ts +7 -7
  183. package/dist/index.js +9 -9
  184. package/dist/index.mjs +6 -6
  185. package/dist/install-integrity.json +124 -118
  186. package/dist/plays/bundle-play-file.d.mts +3 -3
  187. package/dist/plays/bundle-play-file.d.ts +3 -3
  188. package/dist/plays/bundle-play-file.mjs +8 -1
  189. package/dist/plays/play-description.d.mts +2 -2
  190. package/dist/plays/play-description.d.ts +2 -2
  191. package/dist/plays/run-request.d.mts +2 -2
  192. package/dist/plays/run-request.d.ts +2 -2
  193. package/dist/release.d.mts +1 -1
  194. package/dist/release.d.ts +1 -1
  195. package/dist/release.js +2 -2
  196. package/dist/release.mjs +1 -1
  197. package/dist/server.d.mts +4 -4
  198. package/dist/server.d.ts +4 -4
  199. package/dist/server.js +5 -5
  200. package/dist/server.mjs +3 -3
  201. package/package.json +1 -1
  202. package/dist/cli/auth-VP7PMXKQ.js +0 -43
  203. package/dist/cli/chunk-XK5DMLZE.js +0 -111
  204. package/dist/cli/chunk-XRDXNAAY.mjs +0 -111
  205. package/dist/cli/describe-SEXUJLE4.js +0 -50
  206. package/dist/cli/git-VNS7UQWN.js +0 -25
  207. package/dist/cli/search-I425FRTK.js +0 -32
  208. package/dist/cli/skills-6ZNMO2PR.js +0 -36
  209. package/dist/cli/tools-DPV2JES6.js +0 -57
  210. package/dist/cli/update-Q5GUDEAW.js +0 -34
@@ -5,7 +5,7 @@ import {
5
5
  parsePlayRunHeaderFlag,
6
6
  parsePlayRunOptions,
7
7
  resolvePlayRunCliOptions
8
- } from "./chunk-UJRN6YP6.mjs";
8
+ } from "./chunk-DPI5OYVU.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-O3DDVP7Z.mjs";
21
+ } from "./chunk-FHJ54BHH.mjs";
22
22
  import {
23
23
  registerDeprecatedSearchCommand
24
- } from "./chunk-EOO7OSS4.mjs";
24
+ } from "./chunk-URZNSJE2.mjs";
25
25
  import "./chunk-5AEDYVB6.mjs";
26
26
  import {
27
27
  handleDeploymentGet,
28
28
  handleDeploymentsList
29
- } from "./chunk-T4U245E4.mjs";
29
+ } from "./chunk-XYZZZLN6.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";
@@ -59,10 +59,10 @@ import {
59
59
  import {
60
60
  pinLocalPlayImports,
61
61
  planLocalPlayExecution
62
- } from "./chunk-MSLXAVVK.mjs";
62
+ } from "./chunk-EDMV4JT5.mjs";
63
63
  import {
64
64
  DeeplineClient
65
- } from "./chunk-ZUOKIBLJ.mjs";
65
+ } from "./chunk-D27HP3HS.mjs";
66
66
  import {
67
67
  RUN_EVENT_SEARCH_KIND_VALUES,
68
68
  RunEventQueryInputError,
@@ -75,7 +75,7 @@ import {
75
75
  normalizePlayStatus,
76
76
  normalizeRunEventOperationRequest,
77
77
  parseLogLevel
78
- } from "./chunk-VTDAJZIJ.mjs";
78
+ } from "./chunk-5GI6NKOE.mjs";
79
79
  import "./chunk-L2VKAASU.mjs";
80
80
  import {
81
81
  CSV_DATA_INPUT_KEY,
@@ -98,18 +98,18 @@ import "./chunk-BMCRTI6Z.mjs";
98
98
  import {
99
99
  checkPlayRunCompatibility,
100
100
  usesCliPlayAdmission
101
- } from "./chunk-OKOXB3LY.mjs";
101
+ } from "./chunk-K7NFFQFU.mjs";
102
102
  import {
103
103
  isCliTraceEnabled,
104
104
  recordCliTrace,
105
105
  resolveCliMaintenancePolicy,
106
106
  traceCliSpan
107
- } from "./chunk-VD2374K7.mjs";
108
- import "./chunk-J74N375S.mjs";
107
+ } from "./chunk-WS274KID.mjs";
108
+ import "./chunk-BI2Q45SY.mjs";
109
109
  import {
110
110
  createCliProgress,
111
111
  getActiveCliProgress
112
- } from "./chunk-WJUDAHIQ.mjs";
112
+ } from "./chunk-GIHNEYBG.mjs";
113
113
  import {
114
114
  argsWantJson,
115
115
  describeArgs,
@@ -123,17 +123,17 @@ import {
123
123
  printJsonError,
124
124
  renderCommandEnvelopeText,
125
125
  shouldEmitJson
126
- } from "./chunk-66XDYH5T.mjs";
127
- import "./chunk-MADTHS56.mjs";
126
+ } from "./chunk-KGLVATEB.mjs";
127
+ import "./chunk-L3TZV625.mjs";
128
128
  import {
129
129
  fetchWithDeploymentProtection
130
- } from "./chunk-EHVFBD36.mjs";
130
+ } from "./chunk-KPBBT6OS.mjs";
131
131
  import "./chunk-4QF2K7TM.mjs";
132
132
  import "./chunk-DLIRSHV6.mjs";
133
133
  import {
134
134
  DeeplineError
135
135
  } from "./chunk-HBL4PM5Q.mjs";
136
- import "./chunk-7L6QNHUL.mjs";
136
+ import "./chunk-7HEDCIR3.mjs";
137
137
  import "./chunk-WZYKRD7T.mjs";
138
138
  import {
139
139
  __commonJS,
@@ -4256,6 +4256,7 @@ async function runRunsRerunCommand(runId, options) {
4256
4256
  return 1;
4257
4257
  }
4258
4258
  }
4259
+ if (options.notice) console.error(options.notice);
4259
4260
  const result = await new DeeplineClient().runs.rerun(runId, {
4260
4261
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4261
4262
  ...inputOverrides === void 0 ? {} : { inputOverrides }
@@ -4282,6 +4283,26 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
4282
4283
  return 0;
4283
4284
  }
4284
4285
 
4286
+ // src/cli/operations/runs-resume.ts
4287
+ async function runRunsResumeCommand(runId) {
4288
+ try {
4289
+ const result = await new DeeplineClient().runs.resume(runId);
4290
+ if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
4291
+ throw new Error(
4292
+ "Invalid resume receipt: expected the requested run and a new positive epoch."
4293
+ );
4294
+ console.log(
4295
+ `Resumed run ${result.runId} at epoch ${result.epoch}. Completed calls will be reused; only unfinished work runs.`
4296
+ );
4297
+ console.log(` inspect: deepline runs get ${result.runId}`);
4298
+ return 0;
4299
+ } catch (error) {
4300
+ if (error instanceof DeeplineError && error.code && !error.message.includes(error.code))
4301
+ error.message = `${error.code}: ${error.message}`;
4302
+ throw error;
4303
+ }
4304
+ }
4305
+
4285
4306
  // ../plays/cascade-falloff.ts
4286
4307
  function cascadeFalloff(input) {
4287
4308
  const order = new Map(input.legs.map((leg, index) => [leg, index]));
@@ -13939,6 +13960,9 @@ async function handleRunLifecycleStatus(args) {
13939
13960
  }
13940
13961
  return 0;
13941
13962
  }
13963
+ function runsRerunRenameNotice(runId) {
13964
+ 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}.`;
13965
+ }
13942
13966
  async function handleRunsRerun(args) {
13943
13967
  const usage2 = "Usage: deepline runs rerun <run-id> [--idempotency-key <key>] [--input-overrides <json>] [--json]";
13944
13968
  let runId;
@@ -16259,10 +16283,14 @@ Notes:
16259
16283
  the server accepts the run. The destination must not already exist.
16260
16284
  The run page URL is printed when the run starts. Pass --open to open it in a browser.
16261
16285
  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.
16286
+ --from-start starts a fresh run graph without refreshing completed provider calls.
16287
+ It does not cancel active sibling runs. (Formerly --force.)
16288
+ --refresh-cache skips cached reads, calls providers again, and updates the
16289
+ shared result other Plays reuse, billing those calls again. It is independent
16290
+ from --from-start. (Formerly --force-tool-refresh.)
16291
+ --from-run <run-id> starts a new run of the same Play with that run's
16292
+ retained input and pinned revision, and returns once it starts. It accepts
16293
+ only --json.
16266
16294
  --max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
16267
16295
  resident-work ceiling. Default: ${DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16268
16296
  Provider pacing and sandbox memory limits still apply.
@@ -16321,6 +16349,7 @@ Examples:
16321
16349
  deepline plays run my.play.ts --max-credits 50
16322
16350
  deepline plays run my.play.ts --input @input.json
16323
16351
  deepline plays run cto-search.play.ts --limit 5
16352
+ deepline plays run --from-run <run-id>
16324
16353
  deepline runs export <run-id> --out output.csv
16325
16354
  deepline runs get <run-id>
16326
16355
  `
@@ -16376,9 +16405,19 @@ Examples:
16376
16405
  ).option(
16377
16406
  "--tail-timeout-ms <ms>",
16378
16407
  "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"
16408
+ ).option("--from-start", "Start a fresh run graph").addOption(
16409
+ new Option2("--force", "Compatibility alias for --from-start").hideHelp()
16410
+ ).option(
16411
+ "--from-run <run-id>",
16412
+ "Start a new run from an earlier run's retained input and pinned revision"
16413
+ ).option(
16414
+ "--refresh-cache",
16415
+ "Skip cached reads and call providers again (bills those calls again)"
16416
+ ).addOption(
16417
+ new Option2(
16418
+ "--force-tool-refresh",
16419
+ "Compatibility alias for --refresh-cache"
16420
+ ).hideHelp()
16382
16421
  ).option(
16383
16422
  "--max-concurrent-external-calls <count>",
16384
16423
  `Concurrent provider-tool and deepline.fetch executions (${DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
@@ -16405,6 +16444,11 @@ JSON field selection:
16405
16444
  `
16406
16445
  ).action(
16407
16446
  async (target, cliOptions, command) => {
16447
+ warnRenamedPlayRunFlags(cliOptions);
16448
+ if (cliOptions.fromRun !== void 0) {
16449
+ process.exitCode = await runPlayFromRun(target, cliOptions, command);
16450
+ return;
16451
+ }
16408
16452
  const inlineFile = cliOptions.eval === void 0 ? null : writeInlinePlay(cliOptions.eval);
16409
16453
  try {
16410
16454
  process.exitCode = await runPlayCommand(
@@ -16417,6 +16461,42 @@ JSON field selection:
16417
16461
  }
16418
16462
  }
16419
16463
  );
16464
+ function warnRenamedPlayRunFlags(options) {
16465
+ if (options.force) {
16466
+ console.error(
16467
+ "--force is now --from-start; the old name will be removed after a migration window."
16468
+ );
16469
+ }
16470
+ if (options.forceToolRefresh) {
16471
+ console.error(
16472
+ "--force-tool-refresh is now --refresh-cache; the old name will be removed after a migration window."
16473
+ );
16474
+ }
16475
+ }
16476
+ async function runPlayFromRun(target, options, command) {
16477
+ const runId = options.fromRun?.trim();
16478
+ if (!runId || runId.startsWith("--")) {
16479
+ console.error("--from-run requires a run id.");
16480
+ return 1;
16481
+ }
16482
+ const conflicting = Object.entries(options).filter(
16483
+ ([key, value]) => value !== void 0 && key !== "fromRun" && key !== "json" && !(key === "wait" && value === true)
16484
+ ).map(
16485
+ ([key]) => `--${key.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)}`
16486
+ );
16487
+ if (target !== void 0 || command.args.length > 0) {
16488
+ conflicting.unshift("a play target or input");
16489
+ }
16490
+ if (conflicting.length > 0) {
16491
+ console.error(
16492
+ `--from-run reuses the earlier run's play, input and revision; it cannot be combined with ${conflicting.join(", ")}.`
16493
+ );
16494
+ return 1;
16495
+ }
16496
+ return runRunsRerunCommand(runId, {
16497
+ ...options.json === void 0 ? {} : { json: Boolean(options.json) }
16498
+ });
16499
+ }
16420
16500
  async function runPlayCommand(target, options, command) {
16421
16501
  const passthroughArgs = [...command.args];
16422
16502
  const explicitTarget = options.file || options.name;
@@ -16651,7 +16731,7 @@ Examples:
16651
16731
  process.exitCode = await ownView();
16652
16732
  return;
16653
16733
  }
16654
- const { describeAnything } = await import("./describe-K3UMAAVO.mjs");
16734
+ const { describeAnything } = await import("./describe-GQHGTZSL.mjs");
16655
16735
  process.exitCode = await describeAnything(
16656
16736
  name,
16657
16737
  {
@@ -16989,7 +17069,7 @@ Examples:
16989
17069
  new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
16990
17070
  ).action(async (runId, options) => {
16991
17071
  if (TOOL_EXECUTION_ID.test(runId)) {
16992
- const { getToolExecutionReceipt } = await import("./tools-7QSB65UL.mjs");
17072
+ const { getToolExecutionReceipt } = await import("./tools-DTDXAULX.mjs");
16993
17073
  process.exitCode = await getToolExecutionReceipt(runId, {
16994
17074
  receiptJson: options.json !== void 0
16995
17075
  });
@@ -17014,6 +17094,9 @@ Examples:
17014
17094
  `
17015
17095
  Notes:
17016
17096
  Creates a new run. It never mutates the original run.
17097
+ To continue a stopped run without repeating its completed work, use
17098
+ deepline runs resume <run-id>. To start over, use
17099
+ deepline plays run --from-run <run-id> (the same operation as this command).
17017
17100
  The rerun uses the original input and exact saved revision. Normal completed
17018
17101
  tool receipts may be reused; inspect the new run before forcing any external
17019
17102
  side effect.
@@ -17035,7 +17118,30 @@ Examples:
17035
17118
  "--input-overrides <json>",
17036
17119
  "Override existing scalar fields in the retained input for this rerun"
17037
17120
  ).option("--json", "Emit JSON output").action(async (runId, options) => {
17038
- process.exitCode = await runRunsRerunCommand(runId, options);
17121
+ process.exitCode = await runRunsRerunCommand(runId, {
17122
+ ...options,
17123
+ notice: runsRerunRenameNotice(runId)
17124
+ });
17125
+ });
17126
+ runs.command("resume <runId>").description(
17127
+ "Continue a failed or cancelled run as the same run, reusing its completed work."
17128
+ ).addHelpText(
17129
+ "after",
17130
+ `
17131
+ Notes:
17132
+ Continues the same run id with its original input and pinned revision.
17133
+ Completed calls are reused; only work the run had not finished runs.
17134
+ A run can be resumed for 14 days after it stops. To start over as a new
17135
+ run instead, use deepline plays run --from-run <run-id>.
17136
+ The server refuses while the run is still active, while its last attempt
17137
+ or sandbox cleanup is still finishing (try again in a minute), and after
17138
+ the 14-day window.
17139
+
17140
+ Examples:
17141
+ deepline runs resume play/my-play/run/20260501t000000-000
17142
+ `
17143
+ ).action(async (runId) => {
17144
+ process.exitCode = await runRunsResumeCommand(runId);
17039
17145
  });
17040
17146
  runs.command("list").description("List play runs.").addHelpText(
17041
17147
  "after",