deepline 0.3.523 → 0.3.525

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 (177) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +68 -60
  2. package/dist/bundling-sources/sdk/src/http-core.ts +14 -0
  3. package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -0
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/sdk/src/types.ts +10 -0
  6. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +60 -14
  7. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue-delivery.ts +9 -3
  8. package/dist/bundling-sources/shared_libs/observability/dlq.ts +19 -0
  9. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  10. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  11. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
  12. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +397 -22
  13. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +473 -13
  14. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +28 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/run-retry-summary.ts +202 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +60 -8
  17. package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +112 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +39 -1
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +13 -5
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +10 -1
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-retry-facts.ts +62 -0
  22. package/dist/cli/auth-K7PMRXNG.js +43 -0
  23. package/dist/cli/{auth-ENQUQS56.mjs → auth-TH3VGYBK.mjs} +5 -5
  24. package/dist/cli/{billing-6A27ULCX.mjs → billing-CMHFI2LN.mjs} +8 -8
  25. package/dist/cli/{billing-6HONTJOY.js → billing-TWKVUFU2.js} +83 -83
  26. package/dist/cli/{chunk-JMMNCJ7Z.js → chunk-2WFVLOB7.js} +1 -1
  27. package/dist/cli/{chunk-S4YKRH3W.js → chunk-4UWXFXQF.js} +3 -3
  28. package/dist/cli/{chunk-PCORO245.mjs → chunk-5BSGWIQD.mjs} +2 -2
  29. package/dist/cli/{chunk-SBGKKOCC.js → chunk-5JFAQUZS.js} +26 -26
  30. package/dist/cli/{chunk-RVHUW4TN.js → chunk-5YAJGRWB.js} +17 -17
  31. package/dist/cli/{chunk-ITJ7NB2D.mjs → chunk-7AOFSZJM.mjs} +3 -1
  32. package/dist/cli/{chunk-JVEFMOY2.mjs → chunk-7C4F4TLR.mjs} +1 -1
  33. package/dist/cli/{chunk-QMBL5ZIQ.mjs → chunk-7OF3A4KJ.mjs} +3 -3
  34. package/dist/cli/{chunk-326WVSWS.js → chunk-AVDEYOVP.js} +269 -269
  35. package/dist/cli/{chunk-GJYLC4JB.mjs → chunk-BNH4Y35W.mjs} +2 -2
  36. package/dist/cli/{chunk-ZWN4RXC2.js → chunk-CKTRQSRA.js} +22 -22
  37. package/dist/cli/{chunk-I62LJ7NU.mjs → chunk-CLTL7ZJI.mjs} +1 -1
  38. package/dist/cli/{chunk-IEVXYHGJ.js → chunk-CQSANB3V.js} +5 -5
  39. package/dist/cli/{chunk-QYXIODWH.js → chunk-CWRL6IQP.js} +44 -29
  40. package/dist/cli/{chunk-WVQOXYTQ.mjs → chunk-CZNEQMJR.mjs} +37 -34
  41. package/dist/cli/{chunk-4NWY7JBB.js → chunk-DYS3KWYF.js} +11 -11
  42. package/dist/cli/{chunk-HSVGP4CI.mjs → chunk-EP6YH6QJ.mjs} +2 -2
  43. package/dist/cli/{chunk-XYL26236.js → chunk-ESWM2JW4.js} +2 -2
  44. package/dist/cli/{chunk-6OZ2WSHD.mjs → chunk-ETHVJ2ZE.mjs} +1 -1
  45. package/dist/cli/{chunk-6DBRBWHC.mjs → chunk-GCLNX72G.mjs} +2 -2
  46. package/dist/cli/{chunk-R2VZVHJP.mjs → chunk-GESIFFQX.mjs} +1 -1
  47. package/dist/cli/{chunk-QSAC3IVI.mjs → chunk-IMO3HXWZ.mjs} +1 -1
  48. package/dist/cli/{chunk-JGZQBDYG.mjs → chunk-JVWSIA2V.mjs} +4 -4
  49. package/dist/cli/{chunk-7GNKAACY.js → chunk-KBOSALBI.js} +10 -10
  50. package/dist/cli/{chunk-K326BEVR.js → chunk-KEZ3KBWW.js} +10 -10
  51. package/dist/cli/{chunk-7M5FRSFP.mjs → chunk-KPINGHIF.mjs} +2 -2
  52. package/dist/cli/{chunk-UH3EAFFN.mjs → chunk-LAMGJQDY.mjs} +2 -2
  53. package/dist/cli/{chunk-UQN4VTZL.js → chunk-LE537GBC.js} +13 -6
  54. package/dist/cli/{chunk-PESMXAUG.js → chunk-LXKH4MKH.js} +6 -6
  55. package/dist/cli/{chunk-4V63IJCL.mjs → chunk-M43ZYNDA.mjs} +5 -5
  56. package/dist/cli/{chunk-XVXEARHC.js → chunk-MHBSRNI7.js} +41 -41
  57. package/dist/cli/{chunk-HUC5SGJQ.js → chunk-MRUFGOJR.js} +2 -2
  58. package/dist/cli/{chunk-RQN4PHRE.js → chunk-N4MMU3QF.js} +21 -21
  59. package/dist/cli/{chunk-2BRDHM4S.js → chunk-NB2ECLQE.js} +9 -9
  60. package/dist/cli/{chunk-DNXP3D5H.mjs → chunk-NO4URKKT.mjs} +5 -5
  61. package/dist/cli/{chunk-MZROKQV3.js → chunk-NRBCETWL.js} +44 -44
  62. package/dist/cli/{chunk-JCTTXLAZ.mjs → chunk-OWQF6WVH.mjs} +10 -3
  63. package/dist/cli/{chunk-NWTMQGPP.mjs → chunk-OXFIJYN3.mjs} +8 -8
  64. package/dist/cli/{chunk-FBMOBNJY.js → chunk-P62LON53.js} +2 -2
  65. package/dist/cli/{chunk-NMU3VR5U.js → chunk-PMH4GLMD.js} +1 -0
  66. package/dist/cli/{chunk-S3A4IXBQ.mjs → chunk-PSX3WHIH.mjs} +1 -0
  67. package/dist/cli/{chunk-N5MLEXZ7.js → chunk-QR7VYYNM.js} +176 -173
  68. package/dist/cli/{chunk-RKREB7MU.mjs → chunk-RMZ6CISE.mjs} +3 -3
  69. package/dist/cli/{chunk-V46J3UTM.js → chunk-S5LUY3KJ.js} +7 -7
  70. package/dist/cli/{chunk-MCXPJYBN.js → chunk-TFEGJEYO.js} +3 -3
  71. package/dist/cli/{chunk-MT3WG3KR.js → chunk-TO72GW5I.js} +16 -16
  72. package/dist/cli/{chunk-H7275EZU.mjs → chunk-TXSBPBHB.mjs} +5 -5
  73. package/dist/cli/{chunk-SXTVJIGB.mjs → chunk-U4M32NFS.mjs} +1 -1
  74. package/dist/cli/{chunk-5WFQXAD4.mjs → chunk-UQYKSOGO.mjs} +5 -5
  75. package/dist/cli/{chunk-KILRUAXF.mjs → chunk-UXF3ODJJ.mjs} +2 -2
  76. package/dist/cli/{chunk-36LQQL5C.js → chunk-V2GN4PLK.js} +5 -5
  77. package/dist/cli/{chunk-HUIFUE4L.js → chunk-V65J64FL.js} +53 -53
  78. package/dist/cli/{chunk-U6DLLV3S.mjs → chunk-VYIAWAKJ.mjs} +1 -1
  79. package/dist/cli/{chunk-WGVJA4I5.js → chunk-WA3FG7DH.js} +14 -14
  80. package/dist/cli/{chunk-MHTRYBXY.mjs → chunk-WEYFSBAD.mjs} +44 -29
  81. package/dist/cli/{chunk-LZL6V5M5.mjs → chunk-WGRDOPAK.mjs} +2 -2
  82. package/dist/cli/{chunk-NTLBZUHD.js → chunk-XYIECA7M.js} +4 -2
  83. package/dist/cli/{chunk-QOO5W5XS.mjs → chunk-YC7FKAJ4.mjs} +12 -12
  84. package/dist/cli/{chunk-BN5VKY4X.js → chunk-ZS2WHWWL.js} +7 -7
  85. package/dist/cli/{chunk-F3WRLFFM.mjs → chunk-ZWFTHEPT.mjs} +2 -2
  86. package/dist/cli/command-docs.js +2 -2
  87. package/dist/cli/command-docs.mjs +1 -1
  88. package/dist/cli/{csv-UBACJK75.js → csv-5JHWVJ5N.js} +13 -13
  89. package/dist/cli/{csv-YFJ2JLUP.mjs → csv-OO554TPX.mjs} +4 -4
  90. package/dist/cli/{db-2ZPA2LZ7.js → db-CYQJ4OXF.js} +28 -28
  91. package/dist/cli/{db-NKGYTAQO.mjs → db-SQKJ6RKU.mjs} +7 -7
  92. package/dist/cli/describe-N7AKTUQV.mjs +50 -0
  93. package/dist/cli/describe-PASXOL3R.js +50 -0
  94. package/dist/cli/describe-core.d.mts +4 -2
  95. package/dist/cli/describe-core.d.ts +4 -2
  96. package/dist/cli/describe-core.js +5 -5
  97. package/dist/cli/describe-core.mjs +4 -4
  98. package/dist/cli/{executions-HTHQ7KKD.mjs → executions-F34DORW6.mjs} +7 -7
  99. package/dist/cli/{executions-NXMRGPIL.js → executions-K7EGCRKX.js} +9 -9
  100. package/dist/cli/{feedback-USP4T34P.mjs → feedback-GQHKCS66.mjs} +5 -5
  101. package/dist/cli/{feedback-TGVQACRO.js → feedback-NOQVCA3Q.js} +10 -10
  102. package/dist/cli/{git-KUONEHCD.mjs → git-2EEITXDB.mjs} +5 -5
  103. package/dist/cli/git-UU4YFJ2Q.js +25 -0
  104. package/dist/cli/index.js +146 -146
  105. package/dist/cli/index.mjs +45 -45
  106. package/dist/cli/{legacy-noops-B2GMHU42.mjs → legacy-noops-JHMY5XRB.mjs} +6 -6
  107. package/dist/cli/{legacy-noops-2JY3CQ24.js → legacy-noops-RFNHQ7RG.js} +9 -9
  108. package/dist/cli/{monitors-2OVBZJ6Z.mjs → monitors-RDMP6SPZ.mjs} +8 -8
  109. package/dist/cli/{monitors-XI6I52AX.js → monitors-UKRZ4BDK.js} +101 -101
  110. package/dist/cli/{org-5TUQ2H6Y.js → org-OX7TYTHV.js} +87 -87
  111. package/dist/cli/{org-BNJW764Y.mjs → org-RF3G4KMB.mjs} +7 -7
  112. package/dist/cli/{pages-QC3TQIPW.mjs → pages-FBM3MGSP.mjs} +7 -7
  113. package/dist/cli/{pages-UXCLX53Y.js → pages-MKQT5LFV.js} +19 -19
  114. package/dist/cli/{play-KRWMZ7FG.js → play-OOVX2DMV.js} +802 -713
  115. package/dist/cli/{play-45PPG5SZ.mjs → play-YWC2UORM.mjs} +197 -108
  116. package/dist/cli/{providers-RBUJ72Y3.js → providers-2CGZYLER.js} +10 -10
  117. package/dist/cli/{providers-JDT35MRL.mjs → providers-3PEQESIU.mjs} +7 -7
  118. package/dist/cli/{quickstart-JZ4Q3HFT.js → quickstart-6AANHKQZ.js} +6 -6
  119. package/dist/cli/{quickstart-GD2SWGAC.mjs → quickstart-KVB36SOW.mjs} +4 -4
  120. package/dist/cli/{run-JEAHA367.js → run-NJ7WV5TK.js} +46 -46
  121. package/dist/cli/{run-KIZ3HBI2.mjs → run-QC23NRKO.mjs} +27 -27
  122. package/dist/cli/{search-5UFNXHFK.mjs → search-7BMFFZI2.mjs} +9 -9
  123. package/dist/cli/search-NH4DTXUK.js +33 -0
  124. package/dist/cli/{search-output-HAXPKQO6.mjs → search-output-CALZ4ZI2.mjs} +4 -4
  125. package/dist/cli/{search-output-W3RDSVLE.js → search-output-XC2AVBFX.js} +6 -6
  126. package/dist/cli/{secrets-JAWT66B2.mjs → secrets-7ZHA57DI.mjs} +7 -7
  127. package/dist/cli/{secrets-PC7C2Q32.js → secrets-VHU4B2D4.js} +16 -16
  128. package/dist/cli/sessions-2TE5JWVP.js +18 -0
  129. package/dist/cli/{sessions-325V7G35.mjs → sessions-YYULWFZE.mjs} +6 -6
  130. package/dist/cli/{settings-FKHTA65P.mjs → settings-AVY4NNHI.mjs} +14 -14
  131. package/dist/cli/{settings-RGU6Y2QR.js → settings-WV77QJGD.js} +87 -87
  132. package/dist/cli/{setup-43GOYTFC.mjs → setup-AOUJ3RMU.mjs} +10 -10
  133. package/dist/cli/{setup-ZMZ7HU2I.js → setup-GE5TLTC4.js} +50 -50
  134. package/dist/cli/{skills-Q2VAHSXM.mjs → skills-FVWO2G66.mjs} +8 -8
  135. package/dist/cli/skills-OL7LD6QX.js +37 -0
  136. package/dist/cli/{tools-BUH7ZWDS.mjs → tools-URE655B4.mjs} +20 -20
  137. package/dist/cli/tools-VQ5JO6DI.js +57 -0
  138. package/dist/cli/{update-JFALWOHD.mjs → update-5B4G4345.mjs} +10 -10
  139. package/dist/cli/update-7ZOIOTZN.js +35 -0
  140. package/dist/cli/{artifacts-RBHR2DG4.mjs → views-GSECJ5IK.mjs} +77 -77
  141. package/dist/cli/views-IC762HEQ.js +270 -0
  142. package/dist/cli/{workflow-ISJKLY6X.mjs → workflow-6UQM565I.mjs} +8 -8
  143. package/dist/cli/{workflow-YELST32A.js → workflow-EME7ZEOV.js} +18 -18
  144. package/dist/{client-C2N7MofG.d.mts → client-Bd2meveV.d.mts} +1 -1
  145. package/dist/{client-C7lTRJjw.d.ts → client-CBCVhL8U.d.ts} +1 -1
  146. package/dist/{client-core-BTkDSKGn.d.mts → client-core-CGj8V9mw.d.mts} +110 -43
  147. package/dist/{client-core-hmhBi7Ib.d.ts → client-core-CsRRWCFy.d.ts} +110 -43
  148. package/dist/index.d.mts +3 -3
  149. package/dist/index.d.ts +3 -3
  150. package/dist/index.js +10 -10
  151. package/dist/index.mjs +7 -7
  152. package/dist/install-integrity.json +120 -118
  153. package/dist/plays/play-description.d.mts +1 -1
  154. package/dist/plays/play-description.d.ts +1 -1
  155. package/dist/plays/play-description.js +2 -2
  156. package/dist/plays/play-description.mjs +1 -1
  157. package/dist/plays/run-request.d.mts +1 -1
  158. package/dist/plays/run-request.d.ts +1 -1
  159. package/dist/release.d.mts +1 -1
  160. package/dist/release.d.ts +1 -1
  161. package/dist/release.js +2 -2
  162. package/dist/release.mjs +1 -1
  163. package/dist/server.d.mts +2 -2
  164. package/dist/server.d.ts +2 -2
  165. package/dist/server.js +6 -6
  166. package/dist/server.mjs +4 -4
  167. package/package.json +1 -1
  168. package/dist/cli/artifacts-RZTS2JHZ.js +0 -270
  169. package/dist/cli/auth-DPWYFQR5.js +0 -43
  170. package/dist/cli/describe-GX7DRKWZ.mjs +0 -50
  171. package/dist/cli/describe-WQZF7MEG.js +0 -50
  172. package/dist/cli/git-X3SCQREB.js +0 -25
  173. package/dist/cli/search-6JULJMD7.js +0 -33
  174. package/dist/cli/sessions-WFUCOJHZ.js +0 -18
  175. package/dist/cli/skills-3XTQ6FFM.js +0 -37
  176. package/dist/cli/tools-UK2R4YXQ.js +0 -57
  177. package/dist/cli/update-LNKPHS54.js +0 -35
@@ -5,7 +5,7 @@ import {
5
5
  parsePlayRunHeaderFlag,
6
6
  parsePlayRunOptions,
7
7
  resolvePlayRunCliOptions
8
- } from "./chunk-PCORO245.mjs";
8
+ } from "./chunk-5BSGWIQD.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-KILRUAXF.mjs";
21
+ } from "./chunk-UXF3ODJJ.mjs";
22
22
  import {
23
23
  registerDeprecatedSearchCommand
24
- } from "./chunk-5WFQXAD4.mjs";
24
+ } from "./chunk-UQYKSOGO.mjs";
25
25
  import "./chunk-5AEDYVB6.mjs";
26
26
  import {
27
27
  handleDeploymentGet,
28
28
  handleDeploymentsList
29
- } from "./chunk-HSVGP4CI.mjs";
29
+ } from "./chunk-EP6YH6QJ.mjs";
30
30
  import {
31
31
  buildPlayDashboardUrl,
32
32
  buildPlayRunUrl
33
- } from "./chunk-ITJ7NB2D.mjs";
33
+ } from "./chunk-7AOFSZJM.mjs";
34
34
  import {
35
35
  shellQuote
36
36
  } from "./chunk-OVDNJAJN.mjs";
@@ -51,10 +51,10 @@ import {
51
51
  import {
52
52
  pinLocalPlayImports,
53
53
  planLocalPlayExecution
54
- } from "./chunk-UH3EAFFN.mjs";
54
+ } from "./chunk-LAMGJQDY.mjs";
55
55
  import {
56
56
  DeeplineClient
57
- } from "./chunk-7M5FRSFP.mjs";
57
+ } from "./chunk-KPINGHIF.mjs";
58
58
  import {
59
59
  RUN_EVENT_SEARCH_KIND_VALUES,
60
60
  RunEventQueryInputError,
@@ -67,7 +67,7 @@ import {
67
67
  normalizePlayStatus,
68
68
  normalizeRunEventOperationRequest,
69
69
  parseLogLevel
70
- } from "./chunk-WVQOXYTQ.mjs";
70
+ } from "./chunk-CZNEQMJR.mjs";
71
71
  import "./chunk-L2VKAASU.mjs";
72
72
  import {
73
73
  CSV_DATA_INPUT_KEY,
@@ -86,24 +86,24 @@ import {
86
86
  import {
87
87
  CSV_HEADER_MATCHING_NOTE,
88
88
  playInputExampleArgs
89
- } from "./chunk-S3A4IXBQ.mjs";
89
+ } from "./chunk-PSX3WHIH.mjs";
90
90
  import "./chunk-UBKA33KY.mjs";
91
91
  import {
92
92
  checkPlayRunCompatibility,
93
93
  usesCliPlayAdmission
94
- } from "./chunk-F3WRLFFM.mjs";
94
+ } from "./chunk-ZWFTHEPT.mjs";
95
95
  import {
96
96
  isCliTraceEnabled,
97
97
  recordCliTrace,
98
98
  resolveCliMaintenancePolicy,
99
99
  traceCliSpan
100
- } from "./chunk-I62LJ7NU.mjs";
101
- import "./chunk-4V63IJCL.mjs";
100
+ } from "./chunk-CLTL7ZJI.mjs";
101
+ import "./chunk-M43ZYNDA.mjs";
102
102
  import {
103
103
  createCliProgress,
104
104
  getActiveCliProgress
105
- } from "./chunk-QSAC3IVI.mjs";
106
- import "./chunk-LZL6V5M5.mjs";
105
+ } from "./chunk-IMO3HXWZ.mjs";
106
+ import "./chunk-WGRDOPAK.mjs";
107
107
  import {
108
108
  formatNonStandardSandboxRuntimeWarning
109
109
  } from "./chunk-5LUF4LAR.mjs";
@@ -123,17 +123,17 @@ import {
123
123
  printJsonError,
124
124
  renderCommandEnvelopeText,
125
125
  shouldEmitJson
126
- } from "./chunk-6DBRBWHC.mjs";
127
- import "./chunk-SXTVJIGB.mjs";
126
+ } from "./chunk-GCLNX72G.mjs";
127
+ import "./chunk-U4M32NFS.mjs";
128
128
  import {
129
129
  fetchWithDeploymentProtection
130
- } from "./chunk-JCTTXLAZ.mjs";
130
+ } from "./chunk-OWQF6WVH.mjs";
131
131
  import "./chunk-QNHHZ63P.mjs";
132
132
  import "./chunk-DLIRSHV6.mjs";
133
133
  import {
134
134
  DeeplineError
135
135
  } from "./chunk-ZPGGW27Q.mjs";
136
- import "./chunk-JVEFMOY2.mjs";
136
+ import "./chunk-7C4F4TLR.mjs";
137
137
  import "./chunk-WZYKRD7T.mjs";
138
138
  import {
139
139
  __commonJS,
@@ -3063,9 +3063,9 @@ async function handleRunEventQuery(args, resource = "logs") {
3063
3063
  return await executeRunEventQuery(args, resource);
3064
3064
  } catch (error) {
3065
3065
  const failure = error instanceof Error ? error : new Error(String(error));
3066
- const record3 = failure;
3067
- const status = record3.statusCode;
3068
- const exitCode = error instanceof RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3066
+ const record4 = failure;
3067
+ const status = record4.statusCode;
3068
+ const exitCode = error instanceof RunEventQueryInputError || status === 400 || status === 422 || record4.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record4.code === "CONFIG_ERROR" || record4.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3069
3069
  const diagnostic = Object.assign(failure, {
3070
3070
  exitCode,
3071
3071
  retryable: exitCode === 5
@@ -3895,13 +3895,56 @@ function buildRunNavigation(status) {
3895
3895
  };
3896
3896
  }
3897
3897
 
3898
+ // ../play-runtime/run-retry-summary.ts
3899
+ var RUN_RETRY_RECOVERY_OUTCOMES = [
3900
+ "none",
3901
+ "recovering",
3902
+ "recovered",
3903
+ "exhausted"
3904
+ ];
3905
+ function record2(value) {
3906
+ return value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
3907
+ }
3908
+ var MISSING = Symbol("missing");
3909
+ var MALFORMED_STORED_JSON = Symbol("malformed-stored-json");
3910
+ function normalizeRunRetrySummary(value) {
3911
+ const source = record2(value);
3912
+ const recoveries = record2(source?.platformRecoveries);
3913
+ const count2 = (field) => Number.isSafeInteger(field) && field >= 0;
3914
+ if (!source || !recoveries || source.scope !== "current_epoch" || !count2(source.resumeEpoch) || !count2(recoveries.preCode) || !count2(recoveries.postCode) || !RUN_RETRY_RECOVERY_OUTCOMES.includes(
3915
+ source.recoveryOutcome
3916
+ )) {
3917
+ return void 0;
3918
+ }
3919
+ return {
3920
+ scope: "current_epoch",
3921
+ resumeEpoch: source.resumeEpoch,
3922
+ platformRecoveries: {
3923
+ preCode: recoveries.preCode,
3924
+ postCode: recoveries.postCode
3925
+ },
3926
+ recoveryOutcome: source.recoveryOutcome
3927
+ };
3928
+ }
3929
+ function formatRunRetrySummary(summary) {
3930
+ const { preCode, postCode } = summary.platformRecoveries;
3931
+ const parts = [
3932
+ preCode + postCode > 0 || summary.recoveryOutcome !== "none" ? `platform recoveries ${preCode} before code, ${postCode} after code (${summary.recoveryOutcome})` : "no platform recovery"
3933
+ ];
3934
+ if (summary.resumeEpoch > 0)
3935
+ parts.push(
3936
+ `resumed ${summary.resumeEpoch} ${summary.resumeEpoch === 1 ? "time" : "times"}; counts are since the last resume`
3937
+ );
3938
+ return parts.join(" \xB7 ");
3939
+ }
3940
+
3898
3941
  // src/cli/play-check-output.ts
3899
- var record2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
3942
+ var record3 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
3900
3943
  function projectCheckedPlay(outcome, full = false) {
3901
3944
  const { result } = outcome;
3902
3945
  const raw = result;
3903
- const contract = record2(raw.authoringContract);
3904
- const pipeline = record2(result.staticPipeline ?? contract?.staticPipeline);
3946
+ const contract = record3(raw.authoringContract);
3947
+ const pipeline = record3(result.staticPipeline ?? contract?.staticPipeline);
3905
3948
  const { inputs, outputs, triggers, tools, ...recognized } = result.recognized ?? {};
3906
3949
  const issues = [...result.issues ?? []];
3907
3950
  for (const [severity, messages] of [
@@ -3972,7 +4015,7 @@ function projectCheckedPlay(outcome, full = false) {
3972
4015
  }
3973
4016
  function checkedRunExample(plays, target) {
3974
4017
  const play = plays.find((item) => item.exportName === "default");
3975
- const schema = record2(play?.inputSchema);
4018
+ const schema = record3(play?.inputSchema);
3976
4019
  if (!play?.valid || !schema) return void 0;
3977
4020
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3978
4021
  const base = `deepline run ${quote(target)}`;
@@ -5393,11 +5436,11 @@ var DeployApiClient = class {
5393
5436
  parsed = text;
5394
5437
  }
5395
5438
  if (!response.ok) {
5396
- const record3 = parsed ?? {};
5439
+ const record4 = parsed ?? {};
5397
5440
  throw new DeployApiError({
5398
- message: typeof record3.error === "string" ? record3.error : `Deploy API ${input.path} failed (${response.status}).`,
5441
+ message: typeof record4.error === "string" ? record4.error : `Deploy API ${input.path} failed (${response.status}).`,
5399
5442
  status: response.status,
5400
- code: typeof record3.code === "string" ? record3.code : null,
5443
+ code: typeof record4.code === "string" ? record4.code : null,
5401
5444
  body: parsed
5402
5445
  });
5403
5446
  }
@@ -5566,10 +5609,10 @@ function parseDeeplineManifest(raw) {
5566
5609
  if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
5567
5610
  throw new DeeplineManifestError("deepline.json must be a JSON object.");
5568
5611
  }
5569
- const record3 = parsed;
5570
- const plays = record3.plays === void 0 ? DEFAULT_PLAY_GLOBS : readGlobs(record3.plays, "plays");
5571
- const monitors = record3.monitors === void 0 ? DEFAULT_MONITOR_GLOBS : readGlobs(record3.monitors, "monitors");
5572
- const org = typeof record3.org === "string" && record3.org.trim() ? record3.org.trim() : void 0;
5612
+ const record4 = parsed;
5613
+ const plays = record4.plays === void 0 ? DEFAULT_PLAY_GLOBS : readGlobs(record4.plays, "plays");
5614
+ const monitors = record4.monitors === void 0 ? DEFAULT_MONITOR_GLOBS : readGlobs(record4.monitors, "monitors");
5615
+ const org = typeof record4.org === "string" && record4.org.trim() ? record4.org.trim() : void 0;
5573
5616
  return {
5574
5617
  plays,
5575
5618
  monitors,
@@ -7458,8 +7501,8 @@ function looksLikeStagedFileRef(value) {
7458
7501
  if (!value || typeof value !== "object" || Array.isArray(value)) {
7459
7502
  return false;
7460
7503
  }
7461
- const record3 = value;
7462
- return typeof record3.contentHash === "string" || typeof record3.contentBase64 === "string" || typeof record3.logicalPath === "string" && typeof record3.bytes === "number";
7504
+ const record4 = value;
7505
+ return typeof record4.contentHash === "string" || typeof record4.contentBase64 === "string" || typeof record4.logicalPath === "string" && typeof record4.bytes === "number";
7463
7506
  }
7464
7507
  function collectLocalFileInputRefs(value, inputPath, key, out) {
7465
7508
  if (typeof value === "string") {
@@ -7903,8 +7946,8 @@ function readLiveRunField(event, field) {
7903
7946
  const records = [payload, payload.progress, run, run?.progress].filter(
7904
7947
  (value) => Boolean(value && typeof value === "object" && !Array.isArray(value))
7905
7948
  );
7906
- for (const record3 of records) {
7907
- if (record3[field] !== void 0) return record3[field];
7949
+ for (const record4 of records) {
7950
+ if (record4[field] !== void 0) return record4[field];
7908
7951
  }
7909
7952
  return void 0;
7910
7953
  }
@@ -8229,8 +8272,8 @@ function getProgressLinesFromLiveEvent(event) {
8229
8272
  if (!state || typeof state !== "object" || Array.isArray(state)) {
8230
8273
  continue;
8231
8274
  }
8232
- const record3 = state;
8233
- const progress = record3.progress && typeof record3.progress === "object" && !Array.isArray(record3.progress) ? record3.progress : null;
8275
+ const record4 = state;
8276
+ const progress = record4.progress && typeof record4.progress === "object" && !Array.isArray(record4.progress) ? record4.progress : null;
8234
8277
  if (!progress) {
8235
8278
  continue;
8236
8279
  }
@@ -8247,7 +8290,7 @@ function getProgressLinesFromLiveEvent(event) {
8247
8290
  completed: progress.completed
8248
8291
  });
8249
8292
  lines.push(
8250
- `progress ${formatProgressLabel(record3.nodeId ?? progress.artifactTableNamespace)}: ${counts}${messageSuffix}`
8293
+ `progress ${formatProgressLabel(record4.nodeId ?? progress.artifactTableNamespace)}: ${counts}${messageSuffix}`
8251
8294
  );
8252
8295
  }
8253
8296
  const calls = readRecord(payload.calls);
@@ -9554,9 +9597,9 @@ function formatProviderCapacityWaitLogLine(line) {
9554
9597
  let details;
9555
9598
  try {
9556
9599
  const parsed = JSON.parse(match[2]);
9557
- const record3 = readRecord(parsed);
9558
- if (!record3) return null;
9559
- details = record3;
9600
+ const record4 = readRecord(parsed);
9601
+ if (!record4) return null;
9602
+ details = record4;
9560
9603
  } catch {
9561
9604
  return null;
9562
9605
  }
@@ -9574,9 +9617,9 @@ function formatMapProgressDiagnosticLogLine(line) {
9574
9617
  let details;
9575
9618
  try {
9576
9619
  const parsed = JSON.parse(match[2]);
9577
- const record3 = readRecord(parsed);
9578
- if (!record3) return null;
9579
- details = record3;
9620
+ const record4 = readRecord(parsed);
9621
+ if (!record4) return null;
9622
+ details = record4;
9580
9623
  } catch {
9581
9624
  return null;
9582
9625
  }
@@ -9683,17 +9726,17 @@ function collectDatasetHandleLines(value, path = "result") {
9683
9726
  return [];
9684
9727
  }
9685
9728
  if (isDatasetHandle(value)) {
9686
- const record3 = value;
9687
- const count2 = typeof record3.count === "number" ? record3.count : typeof record3.rowCount === "number" ? record3.rowCount : null;
9688
- const preview = Array.isArray(record3.preview) ? record3.preview : [];
9729
+ const record4 = value;
9730
+ const count2 = typeof record4.count === "number" ? record4.count : typeof record4.rowCount === "number" ? record4.rowCount : null;
9731
+ const preview = Array.isArray(record4.preview) ? record4.preview : [];
9689
9732
  const lines2 = [
9690
- ` dataset ${typeof record3.path === "string" ? record3.path : path}: rows=${count2 === null ? "-" : formatInteger(count2)} preview=${formatInteger(preview.length)}`
9733
+ ` dataset ${typeof record4.path === "string" ? record4.path : path}: rows=${count2 === null ? "-" : formatInteger(count2)} preview=${formatInteger(preview.length)}`
9691
9734
  ];
9692
- if (typeof record3.queryDatasetCommand === "string") {
9693
- lines2.push(` query dataset: ${record3.queryDatasetCommand}`);
9735
+ if (typeof record4.queryDatasetCommand === "string") {
9736
+ lines2.push(` query dataset: ${record4.queryDatasetCommand}`);
9694
9737
  }
9695
- if (typeof record3.slowExportAsCsvCommand === "string") {
9696
- lines2.push(` export CSV: ${record3.slowExportAsCsvCommand}`);
9738
+ if (typeof record4.slowExportAsCsvCommand === "string") {
9739
+ lines2.push(` export CSV: ${record4.slowExportAsCsvCommand}`);
9697
9740
  }
9698
9741
  return lines2;
9699
9742
  }
@@ -9785,16 +9828,16 @@ function formatSupersededRowsNotice(count2) {
9785
9828
  return `${formatInteger(count2)} row${count2 === 1 ? "" : "s"} skipped because a newer Runtime Sheet write took precedence`;
9786
9829
  }
9787
9830
  function readRowOutcomeSummary(value) {
9788
- const record3 = getRecordField(value, "rowOutcomes");
9789
- if (!record3) return null;
9790
- const completedRows = getNumericField(record3, "completedRows");
9791
- const failedRows = getNumericField(record3, "failedRows");
9792
- const totalRows = getNumericField(record3, "totalRows");
9831
+ const record4 = getRecordField(value, "rowOutcomes");
9832
+ if (!record4) return null;
9833
+ const completedRows = getNumericField(record4, "completedRows");
9834
+ const failedRows = getNumericField(record4, "failedRows");
9835
+ const totalRows = getNumericField(record4, "totalRows");
9793
9836
  if (completedRows === null || failedRows === null || totalRows === null) {
9794
9837
  return null;
9795
9838
  }
9796
- const explicitHasFailures = getRecordField(record3, "hasRowFailures");
9797
- const supersededRows = getNumericField(record3, "supersededRows");
9839
+ const explicitHasFailures = getRecordField(record4, "hasRowFailures");
9840
+ const supersededRows = getNumericField(record4, "supersededRows");
9798
9841
  return {
9799
9842
  completedRows,
9800
9843
  failedRows,
@@ -10172,8 +10215,8 @@ function withTerminalPlayIdentity(status, playName) {
10172
10215
  if (!playName.trim() || getPlayRunPackage(status)) {
10173
10216
  return status;
10174
10217
  }
10175
- const record3 = status;
10176
- const hasIdentity = typeof record3.playName === "string" && record3.playName.trim().length > 0 || typeof record3.name === "string" && record3.name.trim().length > 0 || Boolean(getStringField(record3.run, "playName"));
10218
+ const record4 = status;
10219
+ const hasIdentity = typeof record4.playName === "string" && record4.playName.trim().length > 0 || typeof record4.name === "string" && record4.name.trim().length > 0 || Boolean(getStringField(record4.run, "playName"));
10177
10220
  if (hasIdentity) {
10178
10221
  return status;
10179
10222
  }
@@ -10305,9 +10348,9 @@ function formatSummaryScalar(value) {
10305
10348
  }
10306
10349
  return null;
10307
10350
  }
10308
- function formatSummaryScalarParts(record3, skipKeys = /* @__PURE__ */ new Set()) {
10351
+ function formatSummaryScalarParts(record4, skipKeys = /* @__PURE__ */ new Set()) {
10309
10352
  const parts = [];
10310
- for (const [key, value] of Object.entries(record3)) {
10353
+ for (const [key, value] of Object.entries(record4)) {
10311
10354
  if (skipKeys.has(key)) {
10312
10355
  continue;
10313
10356
  }
@@ -10334,13 +10377,13 @@ function formatTopValuesPart(value) {
10334
10377
  return `top_values=${entries.map(([topValue, count2]) => `${topValue}=${String(count2)}`).join(", ")}`;
10335
10378
  }
10336
10379
  function formatPackageDatasetSummaryLines(summary, indent = " ") {
10337
- const record3 = readRecord(summary);
10338
- const columnStats = readRecord(record3?.columnStats);
10339
- if (!record3 || !columnStats) {
10380
+ const record4 = readRecord(summary);
10381
+ const columnStats = readRecord(record4?.columnStats);
10382
+ if (!record4 || !columnStats) {
10340
10383
  return [];
10341
10384
  }
10342
10385
  const lines = [];
10343
- const rowCounts = readRecord(record3.rowCounts);
10386
+ const rowCounts = readRecord(record4.rowCounts);
10344
10387
  if (rowCounts) {
10345
10388
  const persisted = readNonNegativeInteger(rowCounts.persisted);
10346
10389
  const succeeded = readNonNegativeInteger(rowCounts.succeeded);
@@ -10356,7 +10399,7 @@ function formatPackageDatasetSummaryLines(summary, indent = " ") {
10356
10399
  }
10357
10400
  }
10358
10401
  const parts = formatSummaryScalarParts(
10359
- record3,
10402
+ record4,
10360
10403
  /* @__PURE__ */ new Set(["columnStats", "rowCounts"])
10361
10404
  );
10362
10405
  if (parts.length > 0) {
@@ -10386,35 +10429,35 @@ function actionToCommand(action) {
10386
10429
  if (!action || typeof action !== "object" || Array.isArray(action)) {
10387
10430
  return null;
10388
10431
  }
10389
- const record3 = action;
10390
- if (typeof record3.command === "string" && record3.command.trim()) {
10391
- return record3.command.trim();
10432
+ const record4 = action;
10433
+ if (typeof record4.command === "string" && record4.command.trim()) {
10434
+ return record4.command.trim();
10392
10435
  }
10393
- if (record3.kind === "deepline_run_inspect" && typeof record3.runId === "string") {
10394
- return `deepline runs get ${record3.runId}`;
10436
+ if (record4.kind === "deepline_run_inspect" && typeof record4.runId === "string") {
10437
+ return `deepline runs get ${record4.runId}`;
10395
10438
  }
10396
- if (record3.kind === "deepline_run_full" && typeof record3.runId === "string") {
10397
- return `deepline runs get ${record3.runId} --full`;
10439
+ if (record4.kind === "deepline_run_full" && typeof record4.runId === "string") {
10440
+ return `deepline runs get ${record4.runId} --full`;
10398
10441
  }
10399
- if (record3.kind === "deepline_run_billing" && typeof record3.runId === "string") {
10400
- return `deepline billing usage --run-id ${record3.runId}`;
10442
+ if (record4.kind === "deepline_run_billing" && typeof record4.runId === "string") {
10443
+ return `deepline billing usage --run-id ${record4.runId}`;
10401
10444
  }
10402
- if (record3.kind === "deepline_run_export" && typeof record3.runId === "string" && typeof record3.datasetPath === "string") {
10403
- return `deepline runs export ${record3.runId} --dataset ${shellQuote(
10404
- record3.datasetPath
10405
- )} --out ${shellQuote(`${record3.datasetPath.split(".").pop() || "dataset"}.csv`)}`;
10445
+ if (record4.kind === "deepline_run_export" && typeof record4.runId === "string" && typeof record4.datasetPath === "string") {
10446
+ return `deepline runs export ${record4.runId} --dataset ${shellQuote(
10447
+ record4.datasetPath
10448
+ )} --out ${shellQuote(`${record4.datasetPath.split(".").pop() || "dataset"}.csv`)}`;
10406
10449
  }
10407
- if (record3.kind === "deepline_run_logs") {
10408
- if (typeof record3.command === "string" && record3.command.trim()) {
10409
- return record3.command;
10450
+ if (record4.kind === "deepline_run_logs") {
10451
+ if (typeof record4.command === "string" && record4.command.trim()) {
10452
+ return record4.command;
10410
10453
  }
10411
- if (typeof record3.runId === "string") {
10412
- return record3.view === "failed" ? `deepline runs logs ${record3.runId} --failed` : `deepline runs logs ${record3.runId}`;
10454
+ if (typeof record4.runId === "string") {
10455
+ return record4.view === "failed" ? `deepline runs logs ${record4.runId} --failed` : `deepline runs logs ${record4.runId}`;
10413
10456
  }
10414
10457
  }
10415
- if (record3.kind === "deepline_db_query" && typeof record3.sql === "string") {
10416
- const maxRows = typeof record3.maxRows === "number" && Number.isFinite(record3.maxRows) ? Math.trunc(record3.maxRows) : 20;
10417
- return `deepline db query --sql ${shellQuote(record3.sql)} --max-rows ${maxRows}`;
10458
+ if (record4.kind === "deepline_db_query" && typeof record4.sql === "string") {
10459
+ const maxRows = typeof record4.maxRows === "number" && Number.isFinite(record4.maxRows) ? Math.trunc(record4.maxRows) : 20;
10460
+ return `deepline db query --sql ${shellQuote(record4.sql)} --max-rows ${maxRows}`;
10418
10461
  }
10419
10462
  return null;
10420
10463
  }
@@ -10609,8 +10652,8 @@ function formatPackageValueOutputLines(packaged) {
10609
10652
  const outputs = packaged.outputs && typeof packaged.outputs === "object" && !Array.isArray(packaged.outputs) ? packaged.outputs : null;
10610
10653
  if (!outputs) return [];
10611
10654
  const returned = Object.entries(outputs).filter(([, output]) => {
10612
- const record3 = readRecord(output);
10613
- return record3?.kind === "dataset" || record3?.kind === "value" && Object.prototype.hasOwnProperty.call(record3, "value");
10655
+ const record4 = readRecord(output);
10656
+ return record4?.kind === "dataset" || record4?.kind === "value" && Object.prototype.hasOwnProperty.call(record4, "value");
10614
10657
  });
10615
10658
  if (returned.length === 0) return [];
10616
10659
  const datasets = packageDatasetRecords(packaged);
@@ -11311,12 +11354,12 @@ function exportableSheetRow(row) {
11311
11354
  if (!row || typeof row !== "object" || Array.isArray(row)) {
11312
11355
  return null;
11313
11356
  }
11314
- const record3 = row;
11315
- const data = record3.data;
11357
+ const record4 = row;
11358
+ const data = record4.data;
11316
11359
  if (data && typeof data === "object" && !Array.isArray(data)) {
11317
11360
  return data;
11318
11361
  }
11319
- const fallback = { ...record3 };
11362
+ const fallback = { ...record4 };
11320
11363
  for (const key of [
11321
11364
  "key",
11322
11365
  "status",
@@ -11808,8 +11851,8 @@ var PLAY_SYNTAX_MIGRATION_ERROR_MARKERS = [
11808
11851
  "ctx.map(...) has been replaced by ctx.dataset(...)",
11809
11852
  "Dataset .step(...) has been replaced by .withColumn(...)"
11810
11853
  ];
11811
- function stringArrayField(record3, key) {
11812
- const value = record3[key];
11854
+ function stringArrayField(record4, key) {
11855
+ const value = record4[key];
11813
11856
  if (!Array.isArray(value)) return [];
11814
11857
  return value.filter((entry) => typeof entry === "string");
11815
11858
  }
@@ -12315,8 +12358,8 @@ function cronExecutionLabel(status) {
12315
12358
  return status;
12316
12359
  }
12317
12360
  function readLiveCronMetadata(play) {
12318
- const record3 = readRecord(play);
12319
- const metadata = readRecord(record3?.triggerMetadata);
12361
+ const record4 = readRecord(play);
12362
+ const metadata = readRecord(record4?.triggerMetadata);
12320
12363
  return {
12321
12364
  schedule: typeof metadata?.cronSchedule === "string" ? metadata.cronSchedule : null,
12322
12365
  timezone: typeof metadata?.cronTimezone === "string" ? metadata.cronTimezone : null,
@@ -13387,6 +13430,10 @@ function renderRunOverviewText(overview, extras = {}) {
13387
13430
  lines.push(
13388
13431
  ` recovery: ${run.recovery.mode}${run.recovery.sourceRunId ? ` from ${run.recovery.sourceRunId}` : ""}`
13389
13432
  );
13433
+ const retries = normalizeRunRetrySummary(run.retries);
13434
+ if (retries) lines.push(` retries: ${formatRunRetrySummary(retries)}`);
13435
+ else if (run.retriesUnavailableReason)
13436
+ lines.push(` retries: unavailable (${run.retriesUnavailableReason})`);
13390
13437
  if (run.error) lines.push(` error: ${run.error}`);
13391
13438
  for (const warning of overview.warnings) lines.push(` warning: ${warning}`);
13392
13439
  const sections = [];
@@ -13605,6 +13652,8 @@ async function handleRunGet(args) {
13605
13652
  timing,
13606
13653
  () => client.runs.get(runId, {
13607
13654
  full: false,
13655
+ // With --full the full read below carries retries; ask only once.
13656
+ retries: !full,
13608
13657
  failedLogs: args.includes("--log-failed")
13609
13658
  })
13610
13659
  );
@@ -13646,7 +13695,7 @@ async function handleRunGet(args) {
13646
13695
  "runs get",
13647
13696
  "full result",
13648
13697
  timing,
13649
- () => client.runs.get(runId, { full: true })
13698
+ () => client.runs.get(runId, { full: true, retries: true })
13650
13699
  ) : void 0;
13651
13700
  const overview = buildRunOverview(status, fullStatus);
13652
13701
  const [hits, credits] = await Promise.all([
@@ -13806,6 +13855,29 @@ async function handleRunLifecycleStatus(args) {
13806
13855
  }
13807
13856
  return 0;
13808
13857
  }
13858
+ var FROM_RUN_RERUN_FLAGS = {
13859
+ "--idempotency-key": "idempotencyKey",
13860
+ "--input-overrides": "inputOverrides"
13861
+ };
13862
+ function takeFromRunRerunArgs(args) {
13863
+ const taken = {};
13864
+ const rest = [];
13865
+ for (let index = 0; index < args.length; index += 1) {
13866
+ const arg = args[index];
13867
+ const equals = arg.indexOf("=");
13868
+ const flag = equals > 0 ? arg.slice(0, equals) : arg;
13869
+ if (!Object.hasOwn(FROM_RUN_RERUN_FLAGS, flag)) {
13870
+ rest.push(arg);
13871
+ continue;
13872
+ }
13873
+ const field = FROM_RUN_RERUN_FLAGS[flag];
13874
+ if (taken[field] !== void 0) {
13875
+ return { ok: false, error: `${flag} may be given only once.` };
13876
+ }
13877
+ taken[field] = equals > 0 ? arg.slice(equals + 1) : args[++index] ?? "";
13878
+ }
13879
+ return { ok: true, ...taken, rest };
13880
+ }
13809
13881
  function runsRerunRenameNotice(runId) {
13810
13882
  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}.`;
13811
13883
  }
@@ -16136,7 +16208,11 @@ Notes:
16136
16208
  from --from-start. (Formerly --force-tool-refresh.)
16137
16209
  --from-run <run-id> starts a new run of the same Play with that run's
16138
16210
  retained input and pinned revision, and returns once it starts. It accepts
16139
- only --json.
16211
+ only --json, --idempotency-key <key> and --input-overrides <json>, which
16212
+ behave exactly as on runs rerun. A key deduplicates only the exact same
16213
+ rerun intent (source run, resulting input, pinned revision); the same key
16214
+ with a changed input is refused with a 409 conflict. Use one stable key per
16215
+ exact intent. Without a key, each invocation starts a new run.
16140
16216
  --max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
16141
16217
  resident-work ceiling. Default: ${DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16142
16218
  Provider pacing and sandbox memory limits still apply.
@@ -16330,7 +16406,14 @@ JSON field selection:
16330
16406
  ).map(
16331
16407
  ([key]) => `--${key.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)}`
16332
16408
  );
16333
- if (target !== void 0 || command.args.length > 0) {
16409
+ const rerunArgs = takeFromRunRerunArgs(
16410
+ target !== void 0 && command.args[0] !== target ? [target, ...command.args] : [...command.args]
16411
+ );
16412
+ if (!rerunArgs.ok) {
16413
+ console.error(rerunArgs.error);
16414
+ return 1;
16415
+ }
16416
+ if (rerunArgs.rest.length > 0) {
16334
16417
  conflicting.unshift("a play target or input");
16335
16418
  }
16336
16419
  if (conflicting.length > 0) {
@@ -16340,7 +16423,9 @@ JSON field selection:
16340
16423
  return 1;
16341
16424
  }
16342
16425
  return runRunsRerunCommand(runId, {
16343
- ...options.json === void 0 ? {} : { json: Boolean(options.json) }
16426
+ ...options.json === void 0 ? {} : { json: Boolean(options.json) },
16427
+ ...rerunArgs.idempotencyKey === void 0 ? {} : { idempotencyKey: rerunArgs.idempotencyKey },
16428
+ ...rerunArgs.inputOverrides === void 0 ? {} : { inputOverrides: rerunArgs.inputOverrides }
16344
16429
  });
16345
16430
  }
16346
16431
  async function runPlayCommand(target, options, command) {
@@ -16577,7 +16662,7 @@ Examples:
16577
16662
  process.exitCode = await ownView();
16578
16663
  return;
16579
16664
  }
16580
- const { describeAnything } = await import("./describe-GX7DRKWZ.mjs");
16665
+ const { describeAnything } = await import("./describe-N7AKTUQV.mjs");
16581
16666
  process.exitCode = await describeAnything(
16582
16667
  name,
16583
16668
  {
@@ -16915,7 +17000,7 @@ Examples:
16915
17000
  new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
16916
17001
  ).action(async (runId, options) => {
16917
17002
  if (TOOL_EXECUTION_ID.test(runId)) {
16918
- const { getToolExecutionReceipt } = await import("./tools-BUH7ZWDS.mjs");
17003
+ const { getToolExecutionReceipt } = await import("./tools-URE655B4.mjs");
16919
17004
  process.exitCode = await getToolExecutionReceipt(runId, {
16920
17005
  receiptJson: options.json !== void 0
16921
17006
  });
@@ -16948,9 +17033,12 @@ Notes:
16948
17033
  side effect.
16949
17034
  Every call sends an Idempotency-Key. Pass --idempotency-key to reuse the
16950
17035
  same key across separate invocations (for example after an ambiguous or
16951
- lost response): the same source run and key always resolve to the same
16952
- rerun, and the JSON result reports deduplicated: true when nothing new was
16953
- started. A different key intentionally starts another rerun.
17036
+ lost response). A key deduplicates only the exact same rerun intent: the
17037
+ same source run, the same --input-overrides (the resulting input) and the
17038
+ same pinned revision return the one rerun that key started, and the JSON
17039
+ result reports deduplicated: true. The same key with a changed input is
17040
+ refused with a 409 conflict and starts nothing. Use one stable key per
17041
+ exact intent; a different key intentionally starts another rerun.
16954
17042
 
16955
17043
  Examples:
16956
17044
  deepline runs rerun play/my-play/webhook/abc
@@ -17680,6 +17768,7 @@ export {
17680
17768
  shouldPrintPlayProgressLine,
17681
17769
  startAndWaitForPlayCompletion,
17682
17770
  startAndWaitForPlayCompletionByStream,
17771
+ takeFromRunRerunArgs,
17683
17772
  truncateErrorForDisplay,
17684
17773
  waitForPlayCompletionByWatch,
17685
17774
  withTerminalPlayIdentity,