deepline 0.3.522 → 0.3.524

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 (176) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +178 -60
  2. package/dist/bundling-sources/sdk/src/index.ts +3 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +60 -14
  5. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue-delivery.ts +9 -3
  6. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +406 -40
  8. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +1 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/db-session-renewal.ts +209 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +16 -6
  11. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +388 -13
  12. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +28 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +5 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +1 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +38 -5
  16. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +92 -10
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +96 -25
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +29 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +139 -17
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +26 -3
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +145 -5
  22. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +190 -10
  23. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +85 -5
  24. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +21 -11
  25. package/dist/cli/auth-OKPHHMMP.js +43 -0
  26. package/dist/cli/{auth-YIBY5IKT.mjs → auth-QXJMVLPN.mjs} +5 -5
  27. package/dist/cli/{billing-UDKL53GI.js → billing-N5R4HTHT.js} +82 -82
  28. package/dist/cli/{billing-G3IX3SNY.mjs → billing-SNSIFM4B.mjs} +7 -7
  29. package/dist/cli/{chunk-EJBW7Y6Z.js → chunk-2ZWNIS54.js} +108 -96
  30. package/dist/cli/{chunk-3KMGVOBM.mjs → chunk-2ZX7XSAQ.mjs} +4 -4
  31. package/dist/cli/{chunk-4TUMKJZX.mjs → chunk-3WWTBQHC.mjs} +2 -2
  32. package/dist/cli/{chunk-MD524MRB.mjs → chunk-536TGWR6.mjs} +1 -1
  33. package/dist/cli/{chunk-37SXIFIU.js → chunk-66N76YZG.js} +44 -44
  34. package/dist/cli/{chunk-BZY335JP.js → chunk-7E6B7VMS.js} +5 -5
  35. package/dist/cli/{chunk-HYR34KFA.js → chunk-7OQGZBDG.js} +109 -24
  36. package/dist/cli/{chunk-GVKW3LCA.js → chunk-7QM6DNR4.js} +11 -11
  37. package/dist/cli/{chunk-DNJJ3ULJ.js → chunk-ANKD3AIR.js} +2 -2
  38. package/dist/cli/{chunk-4DFWDA2Q.js → chunk-ATATJNJ6.js} +9 -9
  39. package/dist/cli/{chunk-ZZ7U4YJS.mjs → chunk-BXIQD2IY.mjs} +1 -1
  40. package/dist/cli/{chunk-XT25FX6T.js → chunk-BXVYVIMB.js} +3 -3
  41. package/dist/cli/{chunk-XR6TN5DT.mjs → chunk-CH7JVSA7.mjs} +6 -6
  42. package/dist/cli/{chunk-RKE5YTHY.mjs → chunk-EO55Y4QW.mjs} +5 -5
  43. package/dist/cli/{chunk-RI672VNY.js → chunk-EQNAQENZ.js} +2 -2
  44. package/dist/cli/{chunk-LFSOBW7E.mjs → chunk-FXTV5B3D.mjs} +22 -10
  45. package/dist/cli/{chunk-C6WGMODR.mjs → chunk-GMO3JDZA.mjs} +2 -2
  46. package/dist/cli/{chunk-DRDZBRXV.js → chunk-GTGJBZVH.js} +7 -7
  47. package/dist/cli/{chunk-SFMCKB57.mjs → chunk-HLAFGQPV.mjs} +76 -34
  48. package/dist/cli/{chunk-534YYHIF.js → chunk-HTYT2OHB.js} +6 -6
  49. package/dist/cli/{chunk-ZZLZCO6Y.js → chunk-I75VRGQG.js} +22 -22
  50. package/dist/cli/{chunk-Y3LDRCMB.mjs → chunk-II3BJKCH.mjs} +2 -2
  51. package/dist/cli/{chunk-5BQPEHEP.js → chunk-JDIQBZ6O.js} +14 -14
  52. package/dist/cli/{chunk-ENWJFUWK.mjs → chunk-KKPBCB6D.mjs} +2 -2
  53. package/dist/cli/{chunk-BONXEWYF.mjs → chunk-KSQXBLRW.mjs} +3 -3
  54. package/dist/cli/{chunk-7JEN3FX4.js → chunk-LRWDZDBS.js} +5 -5
  55. package/dist/cli/{chunk-5477PEHL.mjs → chunk-MW3YMPD2.mjs} +1 -1
  56. package/dist/cli/{chunk-VFCVH2LV.mjs → chunk-NUC7ZVDG.mjs} +5 -5
  57. package/dist/cli/{chunk-DLDWAPA5.js → chunk-OCT4SUJA.js} +4 -4
  58. package/dist/cli/{chunk-FQQAAR3Q.mjs → chunk-OQ5G7RFQ.mjs} +1 -1
  59. package/dist/cli/{chunk-VIM6I7RC.js → chunk-PFKKZVFK.js} +41 -41
  60. package/dist/cli/{chunk-OAQIVJFY.mjs → chunk-PFKWKWUJ.mjs} +2 -2
  61. package/dist/cli/{chunk-52MHE7B4.mjs → chunk-R457IMHJ.mjs} +1 -1
  62. package/dist/cli/{chunk-UV6XCHOZ.mjs → chunk-RIX26ZJD.mjs} +1 -1
  63. package/dist/cli/{chunk-RDJTCW3I.mjs → chunk-RTDX5NNN.mjs} +3 -3
  64. package/dist/cli/{chunk-FNHUDCJE.js → chunk-RUULUCBP.js} +10 -10
  65. package/dist/cli/{chunk-GMYDVW7Z.js → chunk-SF4QJVBE.js} +3 -3
  66. package/dist/cli/{chunk-DARD7TJ7.js → chunk-SMWFOGUT.js} +53 -53
  67. package/dist/cli/{chunk-XXY4E57R.mjs → chunk-T43FF5PF.mjs} +2 -2
  68. package/dist/cli/{chunk-ZUAKRBZB.js → chunk-TZTWH53O.js} +1 -1
  69. package/dist/cli/{chunk-7J5PLHII.mjs → chunk-V2YIBBVT.mjs} +1 -1
  70. package/dist/cli/{chunk-6SJPZV5E.js → chunk-V4RJ57MA.js} +2 -2
  71. package/dist/cli/{chunk-4MF44THR.js → chunk-V7KUBDEB.js} +82 -40
  72. package/dist/cli/{chunk-ISUUSSS4.js → chunk-VHTVXS5A.js} +16 -16
  73. package/dist/cli/{chunk-NDNG3MAT.mjs → chunk-WCVIPZWX.mjs} +5 -5
  74. package/dist/cli/{chunk-F5D623KO.js → chunk-WOEPDSO3.js} +26 -26
  75. package/dist/cli/{chunk-VE6FHVXZ.mjs → chunk-XURWFEXM.mjs} +109 -24
  76. package/dist/cli/{chunk-G65FJ5JX.mjs → chunk-YCIXY66B.mjs} +2 -2
  77. package/dist/cli/{chunk-CFXERH7F.mjs → chunk-YGOI5ZE5.mjs} +1 -1
  78. package/dist/cli/{chunk-PDLRUZ42.mjs → chunk-YKFW3NNA.mjs} +5 -5
  79. package/dist/cli/{chunk-5H22VJPE.js → chunk-YXVYPYIP.js} +6 -6
  80. package/dist/cli/{chunk-KMBF3N2Z.js → chunk-Z4MOEQSY.js} +16 -16
  81. package/dist/cli/command-docs.js +2 -2
  82. package/dist/cli/command-docs.mjs +1 -1
  83. package/dist/cli/{csv-PE35WGRO.mjs → csv-HT2JBCW2.mjs} +4 -4
  84. package/dist/cli/{csv-3HIE4VCO.js → csv-Q2LWKXAV.js} +13 -13
  85. package/dist/cli/{db-L7ZMMQKW.mjs → db-CS3XQ2LX.mjs} +6 -6
  86. package/dist/cli/{db-O2YRTTDO.js → db-XEV4WEE4.js} +27 -27
  87. package/dist/cli/describe-5G5NXO5E.js +50 -0
  88. package/dist/cli/{describe-NI324Y2M.mjs → describe-OUTXLDGZ.mjs} +18 -18
  89. package/dist/cli/describe-core.d.mts +3 -3
  90. package/dist/cli/describe-core.d.ts +3 -3
  91. package/dist/cli/{executions-VH4DKLFI.js → executions-JCC34WAD.js} +8 -8
  92. package/dist/cli/{executions-T6KU2OKK.mjs → executions-L6XFG5MP.mjs} +6 -6
  93. package/dist/cli/{feedback-SCSJC3FX.mjs → feedback-AWBDO5I6.mjs} +5 -5
  94. package/dist/cli/{feedback-ZLC6G5OK.js → feedback-HV2M2G7N.js} +10 -10
  95. package/dist/cli/git-GDPTG52F.js +25 -0
  96. package/dist/cli/{git-I4LVQCID.mjs → git-S4LRXTRX.mjs} +5 -5
  97. package/dist/cli/index.js +146 -146
  98. package/dist/cli/index.mjs +45 -45
  99. package/dist/cli/{legacy-noops-44FQ2256.mjs → legacy-noops-7MOKBL4O.mjs} +6 -6
  100. package/dist/cli/{legacy-noops-UPFWEHPG.js → legacy-noops-RGSZUD6V.js} +9 -9
  101. package/dist/cli/{monitors-JN6IQGK6.js → monitors-JEFM2C5W.js} +100 -100
  102. package/dist/cli/{monitors-LMSASWXE.mjs → monitors-XQNXDZPQ.mjs} +7 -7
  103. package/dist/cli/{org-F7O3ZU5O.js → org-GYLA5V32.js} +235 -72
  104. package/dist/cli/{org-QYLVEE7A.mjs → org-KTMJZGTN.mjs} +169 -6
  105. package/dist/cli/{pages-KEL3Y4L4.js → pages-RY4U7OCL.js} +18 -18
  106. package/dist/cli/{pages-5XE4LBZN.mjs → pages-WOMU2T2O.mjs} +6 -6
  107. package/dist/cli/{play-OURHH6KV.js → play-2Q6MWJ3D.js} +363 -323
  108. package/dist/cli/{play-MWQG3G32.mjs → play-KOYGGNYS.mjs} +64 -24
  109. package/dist/cli/{providers-IQY7LUBB.mjs → providers-7YKDITJC.mjs} +6 -6
  110. package/dist/cli/{providers-ZCBWPE3C.js → providers-HOIRHMN2.js} +9 -9
  111. package/dist/cli/{quickstart-O53OXTN6.js → quickstart-OWCJOSQA.js} +6 -6
  112. package/dist/cli/{quickstart-L45NGRMI.mjs → quickstart-RDXHSMVX.mjs} +4 -4
  113. package/dist/cli/{run-W745Z3Z5.js → run-MT2ABKO5.js} +41 -41
  114. package/dist/cli/{run-VCSIWLEU.mjs → run-RT73NDP5.mjs} +23 -23
  115. package/dist/cli/search-7VBA6IGS.js +33 -0
  116. package/dist/cli/{search-THELKULN.mjs → search-CJPKIGSA.mjs} +8 -8
  117. package/dist/cli/{search-output-N7MJLYYD.mjs → search-output-AREMA544.mjs} +4 -4
  118. package/dist/cli/{search-output-SJW7LEOM.js → search-output-OSBZ7WK6.js} +6 -6
  119. package/dist/cli/{secrets-44ST3FJH.mjs → secrets-BTIY2FEJ.mjs} +6 -6
  120. package/dist/cli/{secrets-GDXPX3KB.js → secrets-OV6KH633.js} +15 -15
  121. package/dist/cli/{sessions-LYCBI77S.mjs → sessions-3CO3ZFOD.mjs} +6 -6
  122. package/dist/cli/sessions-B3WNEWRW.js +18 -0
  123. package/dist/cli/{settings-GXPDMJFG.mjs → settings-7BQIC7QN.mjs} +13 -13
  124. package/dist/cli/{settings-3WOFF642.js → settings-LBIECYDB.js} +86 -86
  125. package/dist/cli/{setup-YHLMBJP4.js → setup-QZE7QR3F.js} +50 -50
  126. package/dist/cli/{setup-YM6JEB64.mjs → setup-XPTSNNES.mjs} +10 -10
  127. package/dist/cli/{skills-WX4XWEAT.mjs → skills-TGGKIQLT.mjs} +8 -8
  128. package/dist/cli/skills-TXBRTWEV.js +37 -0
  129. package/dist/cli/{tools-K24VSQ7S.mjs → tools-MKIFX2TQ.mjs} +17 -17
  130. package/dist/cli/tools-RZJV4X3J.js +57 -0
  131. package/dist/cli/{update-PSSCF5AT.mjs → update-5R3D3WNH.mjs} +10 -10
  132. package/dist/cli/update-YWGGPWUA.js +35 -0
  133. package/dist/cli/{artifacts-RY2MK74N.mjs → views-VHKDHHUP.mjs} +76 -76
  134. package/dist/cli/views-VPWEINIA.js +270 -0
  135. package/dist/cli/{workflow-FPVI3NIA.js → workflow-7K2VEQ4V.js} +17 -17
  136. package/dist/cli/{workflow-DGOPYATO.mjs → workflow-D5DF65N6.mjs} +7 -7
  137. package/dist/{client-DA71-2_u.d.mts → client-C5_6W8yd.d.mts} +1 -1
  138. package/dist/{client-core-C0IzDKMJ.d.ts → client-core-B-GPfmaC.d.ts} +121 -44
  139. package/dist/{client-core-BXbds1cb.d.mts → client-core-Dob428Z4.d.mts} +121 -44
  140. package/dist/{client-B-2Am2y6.d.ts → client-iXW4TOat.d.ts} +1 -1
  141. package/dist/{compiler-manifest-B4mIIbw7.d.mts → compiler-manifest-DsxsQP-T.d.mts} +14 -7
  142. package/dist/{compiler-manifest-B4mIIbw7.d.ts → compiler-manifest-DsxsQP-T.d.ts} +14 -7
  143. package/dist/{errors-Gj9i5Rkd.d.ts → errors-Bk5h1D-C.d.ts} +1 -1
  144. package/dist/{errors-C2F4qzAq.d.mts → errors-qdJUVQ3g.d.mts} +1 -1
  145. package/dist/{index-5JZBufdF.d.mts → index-PaupwX1B.d.mts} +1 -1
  146. package/dist/{index-BXtSj8bv.d.ts → index-bL66eHYz.d.ts} +1 -1
  147. package/dist/index.d.mts +7 -7
  148. package/dist/index.d.ts +7 -7
  149. package/dist/index.js +9 -9
  150. package/dist/index.mjs +6 -6
  151. package/dist/install-integrity.json +117 -116
  152. package/dist/plays/bundle-play-file.d.mts +3 -3
  153. package/dist/plays/bundle-play-file.d.ts +3 -3
  154. package/dist/plays/bundle-play-file.mjs +7 -5
  155. package/dist/plays/play-description.d.mts +2 -2
  156. package/dist/plays/play-description.d.ts +2 -2
  157. package/dist/plays/run-request.d.mts +2 -2
  158. package/dist/plays/run-request.d.ts +2 -2
  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 +4 -4
  164. package/dist/server.d.ts +4 -4
  165. package/dist/server.js +5 -5
  166. package/dist/server.mjs +3 -3
  167. package/package.json +1 -1
  168. package/dist/cli/artifacts-GIZZH5VA.js +0 -270
  169. package/dist/cli/auth-JSES2JOQ.js +0 -43
  170. package/dist/cli/describe-EB336DAO.js +0 -50
  171. package/dist/cli/git-23T7TXAH.js +0 -25
  172. package/dist/cli/search-R6K7ZAMU.js +0 -33
  173. package/dist/cli/sessions-2V5ZFOWL.js +0 -18
  174. package/dist/cli/skills-XNGADDO6.js +0 -37
  175. package/dist/cli/tools-ROUMCB7B.js +0 -57
  176. package/dist/cli/update-RXURGIRW.js +0 -35
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunk4DFWDA2Qjs = require('./chunk-4DFWDA2Q.js');
8
+ var _chunkATATJNJ6js = require('./chunk-ATATJNJ6.js');
9
9
 
10
10
 
11
11
 
@@ -18,15 +18,15 @@ var _chunk4DFWDA2Qjs = require('./chunk-4DFWDA2Q.js');
18
18
 
19
19
 
20
20
 
21
- var _chunk5H22VJPEjs = require('./chunk-5H22VJPE.js');
21
+ var _chunkYXVYPYIPjs = require('./chunk-YXVYPYIP.js');
22
22
 
23
23
 
24
- var _chunkGVKW3LCAjs = require('./chunk-GVKW3LCA.js');
24
+ var _chunk7QM6DNR4js = require('./chunk-7QM6DNR4.js');
25
25
  require('./chunk-D3BCSAN7.js');
26
26
 
27
27
 
28
28
 
29
- var _chunkF5D623KOjs = require('./chunk-F5D623KO.js');
29
+ var _chunkWOEPDSO3js = require('./chunk-WOEPDSO3.js');
30
30
 
31
31
 
32
32
 
@@ -51,10 +51,10 @@ var _chunkNRO3NTVOjs = require('./chunk-NRO3NTVO.js');
51
51
 
52
52
 
53
53
 
54
- var _chunkBZY335JPjs = require('./chunk-BZY335JP.js');
54
+ var _chunk7E6B7VMSjs = require('./chunk-7E6B7VMS.js');
55
55
 
56
56
 
57
- var _chunk7JEN3FX4js = require('./chunk-7JEN3FX4.js');
57
+ var _chunkLRWDZDBSjs = require('./chunk-LRWDZDBS.js');
58
58
 
59
59
 
60
60
 
@@ -67,7 +67,7 @@ var _chunk7JEN3FX4js = require('./chunk-7JEN3FX4.js');
67
67
 
68
68
 
69
69
 
70
- var _chunk4MF44THRjs = require('./chunk-4MF44THR.js');
70
+ var _chunkV7KUBDEBjs = require('./chunk-V7KUBDEB.js');
71
71
  require('./chunk-E4CABWXL.js');
72
72
 
73
73
 
@@ -91,19 +91,19 @@ require('./chunk-XDVT3GOM.js');
91
91
 
92
92
 
93
93
 
94
- var _chunk534YYHIFjs = require('./chunk-534YYHIF.js');
94
+ var _chunkHTYT2OHBjs = require('./chunk-HTYT2OHB.js');
95
95
 
96
96
 
97
97
 
98
98
 
99
99
 
100
- var _chunkDNJJ3ULJjs = require('./chunk-DNJJ3ULJ.js');
101
- require('./chunk-37SXIFIU.js');
100
+ var _chunkANKD3AIRjs = require('./chunk-ANKD3AIR.js');
101
+ require('./chunk-66N76YZG.js');
102
102
 
103
103
 
104
104
 
105
- var _chunkXT25FX6Tjs = require('./chunk-XT25FX6T.js');
106
- require('./chunk-5BQPEHEP.js');
105
+ var _chunkBXVYVIMBjs = require('./chunk-BXVYVIMB.js');
106
+ require('./chunk-JDIQBZ6O.js');
107
107
 
108
108
 
109
109
  var _chunkR7J7CJPZjs = require('./chunk-R7J7CJPZ.js');
@@ -123,17 +123,17 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
123
123
 
124
124
 
125
125
 
126
- var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.js');
127
- require('./chunk-GMYDVW7Z.js');
126
+ var _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
127
+ require('./chunk-SF4QJVBE.js');
128
128
 
129
129
 
130
- var _chunkDLDWAPA5js = require('./chunk-DLDWAPA5.js');
130
+ var _chunkOCT4SUJAjs = require('./chunk-OCT4SUJA.js');
131
131
  require('./chunk-T2N3B7IQ.js');
132
132
  require('./chunk-XNYIZMNQ.js');
133
133
 
134
134
 
135
135
  var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
136
- require('./chunk-ZUAKRBZB.js');
136
+ require('./chunk-TZTWH53O.js');
137
137
  require('./chunk-OG64RBAC.js');
138
138
 
139
139
 
@@ -2115,7 +2115,7 @@ function resolveField(key, command) {
2115
2115
  function printSettings(result, json, name) {
2116
2116
  result = { ...result, settings: parsePlaySettings(result.settings) };
2117
2117
  const selected = fields.filter(([key]) => !name || key === name);
2118
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
2118
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2119
2119
  {
2120
2120
  ...result,
2121
2121
  settings: Object.fromEntries(
@@ -2159,7 +2159,7 @@ function registerPlaySettingsCommands(plays) {
2159
2159
  valueSyntax: field.cli.valueSyntax,
2160
2160
  examples: field.cli.examples
2161
2161
  }));
2162
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
2162
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2163
2163
  {
2164
2164
  fields: descriptions,
2165
2165
  render: {
@@ -2184,7 +2184,7 @@ function registerPlaySettingsCommands(plays) {
2184
2184
  async (options, command) => {
2185
2185
  if (options.name !== void 0) resolveField(options.name, command);
2186
2186
  printSettings(
2187
- await new (0, _chunk7JEN3FX4js.DeeplineClient)().getPlaySettings(options.play),
2187
+ await new (0, _chunkLRWDZDBSjs.DeeplineClient)().getPlaySettings(options.play),
2188
2188
  options.json,
2189
2189
  options.name
2190
2190
  );
@@ -2215,7 +2215,7 @@ function registerPlaySettingsCommands(plays) {
2215
2215
  );
2216
2216
  }
2217
2217
  if (options.dryRun) {
2218
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
2218
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2219
2219
  {
2220
2220
  dryRun: true,
2221
2221
  play,
@@ -2236,7 +2236,7 @@ function registerPlaySettingsCommands(plays) {
2236
2236
  return;
2237
2237
  }
2238
2238
  printSettings(
2239
- await new (0, _chunk7JEN3FX4js.DeeplineClient)().updatePlaySettings(play, patch),
2239
+ await new (0, _chunkLRWDZDBSjs.DeeplineClient)().updatePlaySettings(play, patch),
2240
2240
  options.json
2241
2241
  );
2242
2242
  };
@@ -2262,13 +2262,13 @@ function registerPlaySettingsCommands(plays) {
2262
2262
  "--root must be person or team; --limit must be 1\u2013100.",
2263
2263
  { exitCode: 2 }
2264
2264
  );
2265
- const page = await new (0, _chunk7JEN3FX4js.DeeplineClient)().listPlaySettingsPaths({
2265
+ const page = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().listPlaySettingsPaths({
2266
2266
  root: options.root,
2267
2267
  limit,
2268
2268
  cursor: options.cursor
2269
2269
  });
2270
2270
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2271
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
2271
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2272
2272
  {
2273
2273
  ...page,
2274
2274
  nextCommand,
@@ -2319,7 +2319,7 @@ function registerPlaySettingsCommands(plays) {
2319
2319
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
2320
2320
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
2321
2321
  };
2322
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
2322
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
2323
2323
  const paths = [];
2324
2324
  let cursor;
2325
2325
  do {
@@ -2381,7 +2381,7 @@ function registerPlaySettingsCommands(plays) {
2381
2381
  moved.push(move.playName);
2382
2382
  }
2383
2383
  }
2384
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
2384
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2385
2385
  {
2386
2386
  dryRun: Boolean(options.dryRun),
2387
2387
  from: options.from,
@@ -2509,7 +2509,7 @@ function triggerLines(view) {
2509
2509
  return lines;
2510
2510
  }
2511
2511
  function printView(view, json) {
2512
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
2512
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2513
2513
  {
2514
2514
  ...view,
2515
2515
  render: {
@@ -2522,7 +2522,7 @@ function printView(view, json) {
2522
2522
  );
2523
2523
  }
2524
2524
  function printResult(result, json) {
2525
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
2525
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2526
2526
  {
2527
2527
  ...result,
2528
2528
  render: {
@@ -2552,7 +2552,7 @@ async function mutate(command, options, build) {
2552
2552
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2553
2553
  }
2554
2554
  if (options.dryRun) {
2555
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
2555
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2556
2556
  {
2557
2557
  dryRun: true,
2558
2558
  play: options.play,
@@ -2571,7 +2571,7 @@ async function mutate(command, options, build) {
2571
2571
  return;
2572
2572
  }
2573
2573
  printResult(
2574
- await new (0, _chunk7JEN3FX4js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2574
+ await new (0, _chunkLRWDZDBSjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2575
2575
  options.json
2576
2576
  );
2577
2577
  }
@@ -2604,7 +2604,7 @@ function registerPlayTriggerConfigCommands(plays) {
2604
2604
  }).addHelpText("after", help2);
2605
2605
  trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
2606
2606
  printView(
2607
- await new (0, _chunk7JEN3FX4js.DeeplineClient)().getPlayTriggerConfig(options.play),
2607
+ await new (0, _chunkLRWDZDBSjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2608
2608
  options.json
2609
2609
  );
2610
2610
  });
@@ -2648,7 +2648,7 @@ function registerPlayTriggerConfigCommands(plays) {
2648
2648
  if (options.auth === void 0) {
2649
2649
  if (secrets.length || options.header || options.signaturePrefix)
2650
2650
  usage(setWebhook, "--secret/--header need --auth.");
2651
- const current = await new (0, _chunk7JEN3FX4js.DeeplineClient)().getPlayTriggerConfig(
2651
+ const current = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().getPlayTriggerConfig(
2652
2652
  options.play
2653
2653
  );
2654
2654
  return {
@@ -2725,7 +2725,7 @@ var KIND_DESCRIPTIONS = {
2725
2725
  "receipt.skipped": "Saved work result: skipped.",
2726
2726
  "runtime.event": "Other event."
2727
2727
  };
2728
- var RUN_LOGS_KIND_HELP = _chunk4MF44THRjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2728
+ var RUN_LOGS_KIND_HELP = _chunkV7KUBDEBjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2729
2729
  kind,
2730
2730
  description: KIND_DESCRIPTIONS[kind]
2731
2731
  }));
@@ -2862,9 +2862,9 @@ function configureRunQueryCommandErrors(command, resource) {
2862
2862
  const args = program.args;
2863
2863
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2864
2864
  error.exitCode = 2;
2865
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2866
- _chunkDRDZBRXVjs.printJsonError.call(void 0,
2867
- Object.assign(new (0, _chunk4MF44THRjs.RunEventQueryInputError)(error.message), {
2865
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2866
+ _chunkGTGJBZVHjs.printJsonError.call(void 0,
2867
+ Object.assign(new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(error.message), {
2868
2868
  exitCode: 2,
2869
2869
  retryable: false
2870
2870
  })
@@ -2908,14 +2908,14 @@ function parseQuery(args, resource) {
2908
2908
  if (VALUE_FLAGS.has(flag)) {
2909
2909
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2910
2910
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2911
- throw new (0, _chunk4MF44THRjs.RunEventQueryInputError)(
2911
+ throw new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2912
2912
  `${flag} requires a value. Use ${flag} <value>.`
2913
2913
  );
2914
2914
  }
2915
2915
  if (flag === "--sum") sums.push(value);
2916
2916
  else {
2917
2917
  if (values[flag] !== void 0) {
2918
- throw new (0, _chunk4MF44THRjs.RunEventQueryInputError)(
2918
+ throw new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2919
2919
  `${flag} may only be supplied once.`
2920
2920
  );
2921
2921
  }
@@ -2929,12 +2929,12 @@ function parseQuery(args, resource) {
2929
2929
  }
2930
2930
  if (arg.startsWith("-")) {
2931
2931
  const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
2932
- throw new (0, _chunk4MF44THRjs.RunEventQueryInputError)(
2932
+ throw new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2933
2933
  `Unsupported query flag ${flag}. ${correction}`
2934
2934
  );
2935
2935
  }
2936
2936
  if (runId !== void 0) {
2937
- throw new (0, _chunk4MF44THRjs.RunEventQueryInputError)(
2937
+ throw new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2938
2938
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2939
2939
  );
2940
2940
  }
@@ -2942,7 +2942,7 @@ function parseQuery(args, resource) {
2942
2942
  }
2943
2943
  if (switches.has("--fields")) {
2944
2944
  if (runId !== void 0) {
2945
- throw new (0, _chunk4MF44THRjs.RunEventQueryInputError)(
2945
+ throw new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2946
2946
  "--fields does not use a run ID. Omit the positional run ID."
2947
2947
  );
2948
2948
  }
@@ -2955,18 +2955,18 @@ function parseQuery(args, resource) {
2955
2955
  )
2956
2956
  ];
2957
2957
  if (incompatible.length) {
2958
- throw new (0, _chunk4MF44THRjs.RunEventQueryInputError)(
2958
+ throw new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2959
2959
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2960
2960
  );
2961
2961
  }
2962
2962
  }
2963
2963
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2964
- throw new (0, _chunk4MF44THRjs.RunEventQueryInputError)(
2964
+ throw new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2965
2965
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2966
2966
  );
2967
2967
  }
2968
2968
  if (sums.length && switches.has("--count")) {
2969
- throw new (0, _chunk4MF44THRjs.RunEventQueryInputError)(
2969
+ throw new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2970
2970
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2971
2971
  );
2972
2972
  }
@@ -2974,7 +2974,7 @@ function parseQuery(args, resource) {
2974
2974
  if (operation === "count") {
2975
2975
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2976
2976
  if (values[flag] !== void 0 || switches.has(flag)) {
2977
- throw new (0, _chunk4MF44THRjs.RunEventQueryInputError)(
2977
+ throw new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2978
2978
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2979
2979
  );
2980
2980
  }
@@ -3009,16 +3009,16 @@ function parseQuery(args, resource) {
3009
3009
  ];
3010
3010
  }
3011
3011
  }
3012
- const request = _chunk4MF44THRjs.normalizeRunEventOperationRequest.call(void 0, body);
3012
+ const request = _chunkV7KUBDEBjs.normalizeRunEventOperationRequest.call(void 0, body);
3013
3013
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
3014
3014
  const backend = values["--runtime-backend"];
3015
3015
  if (backend && backend !== "daytona" && backend !== "modal") {
3016
- throw new (0, _chunk4MF44THRjs.RunEventQueryInputError)(
3016
+ throw new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(
3017
3017
  "--runtime-backend must be daytona or modal."
3018
3018
  );
3019
3019
  }
3020
3020
  if (backend && !namespace) {
3021
- throw new (0, _chunk4MF44THRjs.RunEventQueryInputError)(
3021
+ throw new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(
3022
3022
  "--runtime-backend requires --runtime-namespace."
3023
3023
  );
3024
3024
  }
@@ -3065,12 +3065,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3065
3065
  const failure = error instanceof Error ? error : new Error(String(error));
3066
3066
  const record3 = failure;
3067
3067
  const status = record3.statusCode;
3068
- const exitCode = error instanceof _chunk4MF44THRjs.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;
3068
+ const exitCode = error instanceof _chunkV7KUBDEBjs.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;
3069
3069
  const diagnostic = Object.assign(failure, {
3070
3070
  exitCode,
3071
3071
  retryable: exitCode === 5
3072
3072
  });
3073
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) _chunkDRDZBRXVjs.printJsonError.call(void 0, diagnostic);
3073
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) _chunkGTGJBZVHjs.printJsonError.call(void 0, diagnostic);
3074
3074
  else console.error(`Error: ${diagnostic.message}`);
3075
3075
  return exitCode;
3076
3076
  }
@@ -3085,7 +3085,7 @@ async function executeRunEventQuery(args, resource) {
3085
3085
  ...criteria
3086
3086
  } = request;
3087
3087
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3088
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
3088
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
3089
3089
  let result;
3090
3090
  if (request.operation === "fields") {
3091
3091
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3151,13 +3151,13 @@ async function executeRunEventQuery(args, resource) {
3151
3151
  lines.push(`Next page: ${nextPage}`);
3152
3152
  }
3153
3153
  }
3154
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
3154
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
3155
3155
  {
3156
3156
  ...result,
3157
3157
  ...nextPage ? { next: { page: nextPage } } : {},
3158
3158
  render: { sections: [{ title: `run ${resource}`, lines }] }
3159
3159
  },
3160
- { json: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3160
+ { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3161
3161
  ` }
3162
3162
  );
3163
3163
  return 0;
@@ -4076,7 +4076,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4076
4076
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4077
4077
  );
4078
4078
  }
4079
- const response = await new (0, _chunk7JEN3FX4js.DeeplineClient)().runs.getReceipts(runId, {
4079
+ const response = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().runs.getReceipts(runId, {
4080
4080
  keys
4081
4081
  });
4082
4082
  const failed = response.receipts.filter(
@@ -4088,7 +4088,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4088
4088
  JSON.stringify(response, null, 2) + "\n",
4089
4089
  { flag: "wx", mode: 384 }
4090
4090
  );
4091
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
4091
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
4092
4092
  {
4093
4093
  runId,
4094
4094
  out: options.out,
@@ -4098,7 +4098,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4098
4098
  { json: true }
4099
4099
  );
4100
4100
  } else {
4101
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4101
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4102
4102
  }
4103
4103
  if (failed)
4104
4104
  process.exitCode = response.receipts.some(
@@ -4137,7 +4137,7 @@ includes nextCommand when another page is available.
4137
4137
  { exitCode: 2 }
4138
4138
  );
4139
4139
  }
4140
- const page = await new (0, _chunk7JEN3FX4js.DeeplineClient)().runs.children(parentRunId, {
4140
+ const page = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().runs.children(parentRunId, {
4141
4141
  launchKey: options.launchKey,
4142
4142
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4143
4143
  limit
@@ -4152,7 +4152,7 @@ includes nextCommand when another page is available.
4152
4152
  "--limit",
4153
4153
  String(limit)
4154
4154
  ].join(" ") : null;
4155
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
4155
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
4156
4156
  {
4157
4157
  parentRunId,
4158
4158
  launchKey: options.launchKey,
@@ -4188,7 +4188,7 @@ async function handleRunsHistory(options) {
4188
4188
  throw new Error("--limit must be a positive integer.");
4189
4189
  }
4190
4190
  }
4191
- const page = await new (0, _chunk7JEN3FX4js.DeeplineClient)().runs.history({
4191
+ const page = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().runs.history({
4192
4192
  cursor: options.cursor,
4193
4193
  orgId: options.org,
4194
4194
  search: options.search,
@@ -4204,7 +4204,7 @@ async function handleRunsHistory(options) {
4204
4204
  );
4205
4205
  }
4206
4206
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4207
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
4207
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
4208
4208
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4209
4209
  options.json ? { json: true } : {}
4210
4210
  );
@@ -4257,12 +4257,12 @@ async function runRunsRerunCommand(runId, options) {
4257
4257
  }
4258
4258
  }
4259
4259
  if (options.notice) console.error(options.notice);
4260
- const result = await new (0, _chunk7JEN3FX4js.DeeplineClient)().runs.rerun(runId, {
4260
+ const result = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().runs.rerun(runId, {
4261
4261
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4262
4262
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4263
4263
  });
4264
- if (_chunkDRDZBRXVjs.shouldEmitJson.call(void 0, options.json)) {
4265
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, result, { json: true });
4264
+ if (_chunkGTGJBZVHjs.shouldEmitJson.call(void 0, options.json)) {
4265
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, result, { json: true });
4266
4266
  } else if (result.rateLimited) {
4267
4267
  console.log(`
4268
4268
  ${result.rateLimited.message}`);
@@ -4286,7 +4286,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
4286
4286
  // src/cli/operations/runs-resume.ts
4287
4287
  async function runRunsResumeCommand(runId) {
4288
4288
  try {
4289
- const result = await new (0, _chunk7JEN3FX4js.DeeplineClient)().runs.resume(runId);
4289
+ const result = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().runs.resume(runId);
4290
4290
  if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
4291
4291
  throw new Error(
4292
4292
  "Invalid resume receipt: expected the requested run and a new positive epoch."
@@ -5120,13 +5120,13 @@ var RunDataset = class _RunDataset {
5120
5120
  const absolutePath = _path.resolve.call(void 0, outPath);
5121
5121
  _fs.writeFileSync.call(void 0,
5122
5122
  absolutePath,
5123
- `${JSON.stringify(_chunk5H22VJPEjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
5123
+ `${JSON.stringify(_chunkYXVYPYIPjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
5124
5124
  `,
5125
5125
  "utf-8"
5126
5126
  );
5127
5127
  return absolutePath;
5128
5128
  }
5129
- return _chunk5H22VJPEjs.writeRunDatasetCsv.call(void 0, {
5129
+ return _chunkYXVYPYIPjs.writeRunDatasetCsv.call(void 0, {
5130
5130
  rows: this.rows,
5131
5131
  columns: this.#info.columns,
5132
5132
  outPath
@@ -6631,7 +6631,7 @@ function renderOutcome(outcome) {
6631
6631
  function printResult2(input) {
6632
6632
  const failed = input.status === "failed" || input.status === "cancelled";
6633
6633
  if (failed) process.exitCode = 1;
6634
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
6634
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
6635
6635
  {
6636
6636
  deployment: { ...input.deployment, status: input.status },
6637
6637
  plays: input.outcomes,
@@ -6656,7 +6656,7 @@ async function handlePlaysDeploy(directory, options) {
6656
6656
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6657
6657
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6658
6658
  });
6659
- const { http, config } = _chunkDRDZBRXVjs.getAuthedHttpClient.call(void 0, );
6659
+ const { http, config } = _chunkGTGJBZVHjs.getAuthedHttpClient.call(void 0, );
6660
6660
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6661
6661
  const startDeployment = () => http.post("/api/v2/deployments", {
6662
6662
  deliveryId,
@@ -6683,7 +6683,7 @@ async function handlePlaysDeploy(directory, options) {
6683
6683
  },
6684
6684
  {
6685
6685
  bundle: bundleDeployPlayFile,
6686
- fetchImpl: _chunkDLDWAPA5js.fetchWithDeploymentProtection,
6686
+ fetchImpl: _chunkOCT4SUJAjs.fetchWithDeploymentProtection,
6687
6687
  // The plays are already here: "opening" the source is naming it.
6688
6688
  openSource: async () => ({
6689
6689
  open: async () => ({ repoRoot: root })
@@ -6809,7 +6809,7 @@ async function checkLocalPlayGraph(input) {
6809
6809
  // src/cli/renderers/local-play-execution.ts
6810
6810
  function renderLocalPlayExecutionPlan(plan, options = {}) {
6811
6811
  if (options.dryRun) {
6812
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6812
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6813
6813
  return;
6814
6814
  }
6815
6815
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -6981,7 +6981,7 @@ function traceCliSync(phase, fields2, run) {
6981
6981
  const startedAt = Date.now();
6982
6982
  try {
6983
6983
  const result = run();
6984
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
6984
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
6985
6985
  phase,
6986
6986
  ms: Date.now() - startedAt,
6987
6987
  ok: true,
@@ -6989,7 +6989,7 @@ function traceCliSync(phase, fields2, run) {
6989
6989
  });
6990
6990
  return result;
6991
6991
  } catch (error) {
6992
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
6992
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
6993
6993
  phase,
6994
6994
  ms: Date.now() - startedAt,
6995
6995
  ok: false,
@@ -7788,7 +7788,7 @@ function playStatusErrorText(status) {
7788
7788
  function isRetryablePendingStartFailure(status) {
7789
7789
  if (status.status !== "failed") return false;
7790
7790
  if (status.runId && status.runId !== "pending") return false;
7791
- return _chunk4MF44THRjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7791
+ return _chunkV7KUBDEBjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7792
7792
  }
7793
7793
  function isAmbiguousPlayStartOutcomeError(error) {
7794
7794
  if (error instanceof _chunkSQWET4SLjs.DeeplineError && typeof error.statusCode === "number") {
@@ -7838,13 +7838,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkSQWET4SLjs.Deep
7838
7838
  }, _class);
7839
7839
  function watchSurfaceReaches(state, provenance, level) {
7840
7840
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
7841
- if (!_chunk4MF44THRjs.logLevelReaches.call(void 0, level, minimumLevel)) {
7841
+ if (!_chunkV7KUBDEBjs.logLevelReaches.call(void 0, level, minimumLevel)) {
7842
7842
  return false;
7843
7843
  }
7844
- if (_chunk4MF44THRjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
7844
+ if (_chunkV7KUBDEBjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
7845
7845
  return true;
7846
7846
  }
7847
- return state.verbose === true && _chunk4MF44THRjs.logProvenanceReaches.call(void 0, provenance, "debug");
7847
+ return state.verbose === true && _chunkV7KUBDEBjs.logProvenanceReaches.call(void 0, provenance, "debug");
7848
7848
  }
7849
7849
  function getEventPayload(event) {
7850
7850
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -8354,7 +8354,7 @@ function resolvePlayRunUrl(input) {
8354
8354
  }
8355
8355
  function openPlayDashboard(url, open2) {
8356
8356
  if (open2 && url) {
8357
- _chunkDRDZBRXVjs.openInBrowser.call(void 0, url);
8357
+ _chunkGTGJBZVHjs.openInBrowser.call(void 0, url);
8358
8358
  }
8359
8359
  }
8360
8360
  function printPlayLogLines(input) {
@@ -8435,7 +8435,7 @@ async function waitForPlayCompletionByWatch(input) {
8435
8435
  ...input.fullJson === void 0 ? {} : { full: input.fullJson }
8436
8436
  });
8437
8437
  } catch (error) {
8438
- if (_chunk4MF44THRjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8438
+ if (_chunkV7KUBDEBjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8439
8439
  return null;
8440
8440
  }
8441
8441
  throw error;
@@ -8516,9 +8516,9 @@ async function waitForPlayCompletionByWatch(input) {
8516
8516
  signal: controller.signal,
8517
8517
  deferLogs: !input.emitLogs,
8518
8518
  omitTerminalLogs: !input.emitLogs,
8519
- ..._chunkDNJJ3ULJjs.isCliTraceEnabled.call(void 0, ) ? {
8519
+ ..._chunkANKD3AIRjs.isCliTraceEnabled.call(void 0, ) ? {
8520
8520
  onPoll: (observation) => {
8521
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
8521
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8522
8522
  phase: "play_watch_poll",
8523
8523
  workflowId: input.workflowId,
8524
8524
  ms: observation.durationMs,
@@ -8532,7 +8532,7 @@ async function waitForPlayCompletionByWatch(input) {
8532
8532
  full: input.fullJson,
8533
8533
  billing: false,
8534
8534
  onStatus: async (status) => {
8535
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
8535
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8536
8536
  phase: "play_watch_terminal_status",
8537
8537
  workflowId: input.workflowId,
8538
8538
  full: input.fullJson === true
@@ -8621,7 +8621,7 @@ async function startAndWaitForPlayCompletion(input) {
8621
8621
  signal: controller.signal,
8622
8622
  cliAdmission: useCliAdmission
8623
8623
  });
8624
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
8624
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8625
8625
  phase: "cli.play_start_admission_attempt",
8626
8626
  ms: Date.now() - postStartedAt,
8627
8627
  ok: true,
@@ -8633,7 +8633,7 @@ async function startAndWaitForPlayCompletion(input) {
8633
8633
  });
8634
8634
  break;
8635
8635
  } catch (error) {
8636
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
8636
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8637
8637
  phase: "cli.play_start_admission_attempt",
8638
8638
  ms: Date.now() - postStartedAt,
8639
8639
  ok: false,
@@ -8684,7 +8684,7 @@ async function startAndWaitForPlayCompletion(input) {
8684
8684
  prepared.workflowId
8685
8685
  );
8686
8686
  }
8687
- await _chunk534YYHIFjs.checkPlayRunCompatibility.call(void 0,
8687
+ await _chunkHTYT2OHBjs.checkPlayRunCompatibility.call(void 0,
8688
8688
  input.client.baseUrl,
8689
8689
  input.maintenancePolicy
8690
8690
  );
@@ -8702,7 +8702,7 @@ async function startAndWaitForPlayCompletion(input) {
8702
8702
  `[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
8703
8703
  );
8704
8704
  }
8705
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
8705
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8706
8706
  phase: "cli.play_start_json_retry",
8707
8707
  ms: 0,
8708
8708
  ok: true,
@@ -8782,7 +8782,7 @@ async function startAndWaitForPlayCompletion(input) {
8782
8782
  _nullishCoalesce(input.open, () => ( false))
8783
8783
  );
8784
8784
  input.progress.phase("running");
8785
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
8785
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8786
8786
  phase: "cli.play_start_admitted",
8787
8787
  ms: Date.now() - startedAt,
8788
8788
  ok: true,
@@ -8800,7 +8800,7 @@ async function startAndWaitForPlayCompletion(input) {
8800
8800
  startedAt,
8801
8801
  waitTimeoutMs: input.waitTimeoutMs
8802
8802
  });
8803
- const initialStatus = _chunk4MF44THRjs.normalizePlayStatus.call(void 0, initialTerminal);
8803
+ const initialStatus = _chunkV7KUBDEBjs.normalizePlayStatus.call(void 0, initialTerminal);
8804
8804
  const status2 = await resolvePlayRunOutputStatus({
8805
8805
  client: input.client,
8806
8806
  status: initialStatus,
@@ -8808,7 +8808,7 @@ async function startAndWaitForPlayCompletion(input) {
8808
8808
  jsonOutput: input.jsonOutput,
8809
8809
  fromDurableStatus: true
8810
8810
  });
8811
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
8811
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8812
8812
  phase: "play_watch_terminal_status",
8813
8813
  workflowId,
8814
8814
  full: true,
@@ -8913,7 +8913,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8913
8913
  });
8914
8914
  }
8915
8915
  if (error instanceof _chunk2KHUFWTKjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
8916
- await _chunk534YYHIFjs.checkPlayRunCompatibility.call(void 0,
8916
+ await _chunkHTYT2OHBjs.checkPlayRunCompatibility.call(void 0,
8917
8917
  input.client.baseUrl,
8918
8918
  input.maintenancePolicy,
8919
8919
  admissionDeadline.signal
@@ -8954,7 +8954,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8954
8954
  `[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
8955
8955
  );
8956
8956
  }
8957
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
8957
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8958
8958
  phase: "cli.play_start_stream_retry",
8959
8959
  ms: 0,
8960
8960
  ok: true,
@@ -8975,7 +8975,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8975
8975
  `[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
8976
8976
  );
8977
8977
  }
8978
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
8978
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8979
8979
  phase: "cli.play_start_stream_retry",
8980
8980
  ms: 0,
8981
8981
  ok: true,
@@ -9032,7 +9032,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9032
9032
  if (launchConfirmed || !runId || runId === "pending") return;
9033
9033
  launchConfirmed = true;
9034
9034
  await _optionalChain([input, 'access', _313 => _313.onRunAdmitted, 'optionalCall', _314 => _314(runId)]);
9035
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
9035
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9036
9036
  phase: "cli.play_start_admitted",
9037
9037
  ms: Date.now() - startedAt,
9038
9038
  ok: true,
@@ -9066,7 +9066,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9066
9066
  full: input.fullJson
9067
9067
  });
9068
9068
  } catch (error) {
9069
- if (_chunk4MF44THRjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9069
+ if (_chunkV7KUBDEBjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9070
9070
  return null;
9071
9071
  }
9072
9072
  throw error;
@@ -9237,7 +9237,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9237
9237
  };
9238
9238
  }
9239
9239
  if (!canonicalTerminal) {
9240
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
9240
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9241
9241
  phase: "cli.play_start_stream_stale_terminal_ignored",
9242
9242
  ms: Date.now() - startedAt,
9243
9243
  ok: true,
@@ -9258,14 +9258,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9258
9258
  fromDurableStatus
9259
9259
  }) : canonicalTerminal;
9260
9260
  if (input.fullJson === true) {
9261
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
9261
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9262
9262
  phase: "play_watch_terminal_status",
9263
9263
  workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
9264
9264
  full: true,
9265
9265
  source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
9266
9266
  });
9267
9267
  }
9268
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
9268
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9269
9269
  phase: "cli.play_start_stream_terminal",
9270
9270
  ms: Date.now() - startedAt,
9271
9271
  ok: true,
@@ -9285,7 +9285,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9285
9285
  clearTimeout(timeout);
9286
9286
  }
9287
9287
  controller.abort();
9288
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
9288
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9289
9289
  phase: "cli.play_start_stream_handoff_to_tail",
9290
9290
  ms: Date.now() - startedAt,
9291
9291
  ok: true,
@@ -9316,7 +9316,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9316
9316
  if (timedOut) {
9317
9317
  const terminal = await fetchKnownTerminalStatus();
9318
9318
  if (terminal) {
9319
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
9319
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9320
9320
  phase: "cli.play_start_stream_timeout_status_reconcile",
9321
9321
  ms: Date.now() - startedAt,
9322
9322
  ok: true,
@@ -9336,7 +9336,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9336
9336
  lastPhase
9337
9337
  });
9338
9338
  }
9339
- if (lastKnownWorkflowId && (terminalWindowExpired || _chunk4MF44THRjs.isTransientPlayRunReadError.call(void 0, error))) {
9339
+ if (lastKnownWorkflowId && (terminalWindowExpired || _chunkV7KUBDEBjs.isTransientPlayRunReadError.call(void 0, error))) {
9340
9340
  if (timeout) {
9341
9341
  clearTimeout(timeout);
9342
9342
  }
@@ -9347,7 +9347,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9347
9347
  `
9348
9348
  );
9349
9349
  }
9350
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
9350
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9351
9351
  phase: "cli.play_start_stream_reconnect",
9352
9352
  ms: Date.now() - startedAt,
9353
9353
  ok: true,
@@ -9374,7 +9374,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9374
9374
  });
9375
9375
  }
9376
9376
  if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
9377
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
9377
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9378
9378
  phase: "cli.play_start_stream_transient_failure",
9379
9379
  ms: Date.now() - startedAt,
9380
9380
  ok: false,
@@ -9402,7 +9402,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9402
9402
  `[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
9403
9403
  );
9404
9404
  }
9405
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
9405
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9406
9406
  phase: "cli.play_start_stream_reconnect",
9407
9407
  ms: Date.now() - startedAt,
9408
9408
  ok: true,
@@ -9482,7 +9482,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
9482
9482
  "logs"
9483
9483
  ]);
9484
9484
  function formatPlayLogLine(rawLine, state) {
9485
- const classified = _chunk4MF44THRjs.classifyLogLine.call(void 0, rawLine);
9485
+ const classified = _chunkV7KUBDEBjs.classifyLogLine.call(void 0, rawLine);
9486
9486
  const line = classified.line;
9487
9487
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
9488
9488
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _336 => _336[1]]) ? new Date(timestampMatch[1]) : null;
@@ -9497,14 +9497,14 @@ function formatPlayLogLine(rawLine, state) {
9497
9497
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
9498
9498
  const providerWait = formatProviderCapacityWaitLogLine(line);
9499
9499
  if (providerWait && !state.verbose) {
9500
- return _chunk4MF44THRjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9500
+ return _chunkV7KUBDEBjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9501
9501
  }
9502
9502
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
9503
9503
  if (mapProgress && !state.verbose) {
9504
- return _chunk4MF44THRjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9504
+ return _chunkV7KUBDEBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9505
9505
  }
9506
9506
  if (/\[worker\] picked up run\b/.test(message)) {
9507
- if (!_chunk4MF44THRjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9507
+ if (!_chunkV7KUBDEBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9508
9508
  return null;
9509
9509
  }
9510
9510
  if (state.emittedRunnerStarted) {
@@ -9517,7 +9517,7 @@ function formatPlayLogLine(rawLine, state) {
9517
9517
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
9518
9518
  );
9519
9519
  if (mapStart) {
9520
- if (!_chunk4MF44THRjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9520
+ if (!_chunkV7KUBDEBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9521
9521
  return null;
9522
9522
  }
9523
9523
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -9527,7 +9527,7 @@ function formatPlayLogLine(rawLine, state) {
9527
9527
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
9528
9528
  );
9529
9529
  if (mapDone) {
9530
- if (!_chunk4MF44THRjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9530
+ if (!_chunkV7KUBDEBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9531
9531
  return null;
9532
9532
  }
9533
9533
  const [, results, executed, cached] = mapDone;
@@ -10827,7 +10827,7 @@ function formatRecentRunLogLines(value) {
10827
10827
  (line) => typeof line === "string"
10828
10828
  );
10829
10829
  if (tail.length === 0) return [];
10830
- const shown = tail.map((line) => _chunk4MF44THRjs.classifyLogLine.call(void 0, line)).filter(
10830
+ const shown = tail.map((line) => _chunkV7KUBDEBjs.classifyLogLine.call(void 0, line)).filter(
10831
10831
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
10832
10832
  ).slice(-8);
10833
10833
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11125,11 +11125,11 @@ function buildPlayCompletionTextLines(status) {
11125
11125
  }
11126
11126
  function writePlayResult(status, jsonOutput, options) {
11127
11127
  const packaged = getPlayRunPackage(status);
11128
- if (status.package) _chunk5H22VJPEjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11128
+ if (status.package) _chunkYXVYPYIPjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11129
11129
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
11130
11130
  if (jsonOutput) {
11131
11131
  const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11132
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
11132
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
11133
11133
  hits ? { ...payload2, hits } : payload2,
11134
11134
  { json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
11135
11135
  );
@@ -11145,7 +11145,7 @@ function writePlayResult(status, jsonOutput, options) {
11145
11145
  ...buildPlayCompletionTextLines(status),
11146
11146
  ...formatRunHitsLines(hits)
11147
11147
  ];
11148
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, displayPackage, {
11148
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, displayPackage, {
11149
11149
  json: false,
11150
11150
  text: `${lines2.join("\n")}
11151
11151
  `
@@ -11196,7 +11196,7 @@ function writePlayResult(status, jsonOutput, options) {
11196
11196
  lines.push(...buildBillingRollupTextLines(status));
11197
11197
  const compact = compactPlayStatus(status);
11198
11198
  const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
11199
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
11199
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
11200
11200
  {
11201
11201
  ...payload,
11202
11202
  render: {
@@ -11420,7 +11420,7 @@ async function fetchBackingDatasetRows(input) {
11420
11420
  }
11421
11421
  offset += page.rows.length;
11422
11422
  }
11423
- const withError = _chunk5H22VJPEjs.tableExportHasFailedRows.call(void 0,
11423
+ const withError = _chunkYXVYPYIPjs.tableExportHasFailedRows.call(void 0,
11424
11424
  sheetRows.filter(
11425
11425
  (row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
11426
11426
  )
@@ -11436,7 +11436,7 @@ async function fetchBackingDatasetRows(input) {
11436
11436
  return [
11437
11437
  withError ? {
11438
11438
  ...exported,
11439
- [_chunk5H22VJPEjs.TABLE_EXPORT_ERROR_COLUMN]: _chunk5H22VJPEjs.tableExportErrorCell.call(void 0,
11439
+ [_chunkYXVYPYIPjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkYXVYPYIPjs.tableExportErrorCell.call(void 0,
11440
11440
  row
11441
11441
  )
11442
11442
  } : exported
@@ -11971,7 +11971,7 @@ function renderServerResultView(value) {
11971
11971
  function writeStartedPlayRun(input) {
11972
11972
  if (input.package && isPlayRunPackageValue(input.package)) {
11973
11973
  const run = input.package.run;
11974
- _chunk5H22VJPEjs.recordPlayTermination.call(void 0, {
11974
+ _chunkYXVYPYIPjs.recordPlayTermination.call(void 0, {
11975
11975
  id: run.id,
11976
11976
  status: run.status,
11977
11977
  finishedAt: run.finishedAt
@@ -11984,7 +11984,7 @@ function writeStartedPlayRun(input) {
11984
11984
  dashboardUrl: input.dashboardUrl,
11985
11985
  package: input.package
11986
11986
  };
11987
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
11987
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
11988
11988
  json: true,
11989
11989
  fields: input.jsonFields
11990
11990
  });
@@ -12006,7 +12006,7 @@ function writeStartedPlayRun(input) {
12006
12006
  input.progress.writeLine(output2, process.stdout);
12007
12007
  return;
12008
12008
  }
12009
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, input.package, {
12009
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, input.package, {
12010
12010
  json: false,
12011
12011
  text: `${output2}
12012
12012
  `
@@ -12041,7 +12041,7 @@ function writeStartedPlayRun(input) {
12041
12041
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12042
12042
  ];
12043
12043
  if (input.jsonOutput) {
12044
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12044
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12045
12045
  return;
12046
12046
  }
12047
12047
  const output = lines.join("\n");
@@ -12049,7 +12049,7 @@ function writeStartedPlayRun(input) {
12049
12049
  input.progress.writeLine(output, process.stdout);
12050
12050
  return;
12051
12051
  }
12052
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
12052
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
12053
12053
  {
12054
12054
  ...payload,
12055
12055
  render: { sections: [{ title: "play run", lines }] }
@@ -12059,7 +12059,7 @@ function writeStartedPlayRun(input) {
12059
12059
  );
12060
12060
  }
12061
12061
  function parsePlayCheckOptions(args) {
12062
- const selection = _chunkDRDZBRXVjs.parseJsonFields.call(void 0, args, "check");
12062
+ const selection = _chunkGTGJBZVHjs.parseJsonFields.call(void 0, args, "check");
12063
12063
  args = selection.args;
12064
12064
  const target = args[0];
12065
12065
  if (!target || target.startsWith("-")) {
@@ -12071,7 +12071,7 @@ function parsePlayCheckOptions(args) {
12071
12071
  if (arg !== "--json" && arg !== "--full")
12072
12072
  throw new Error(`Unknown plays check option: ${arg}`);
12073
12073
  }
12074
- const jsonOutput = _chunkDRDZBRXVjs.argsWantJson.call(void 0, args);
12074
+ const jsonOutput = _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
12075
12075
  return {
12076
12076
  target,
12077
12077
  jsonOutput,
@@ -12147,7 +12147,7 @@ ${PLAY_PUBLISH_USAGE}`
12147
12147
  useLatest,
12148
12148
  expectedArtifactHash,
12149
12149
  dryRun,
12150
- jsonOutput: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args)
12150
+ jsonOutput: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args)
12151
12151
  };
12152
12152
  }
12153
12153
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12188,7 +12188,7 @@ ${PLAY_SAVE_USAGE}`);
12188
12188
  target,
12189
12189
  expectedArtifactHash,
12190
12190
  dryRun,
12191
- jsonOutput: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args)
12191
+ jsonOutput: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args)
12192
12192
  };
12193
12193
  }
12194
12194
  function printScheduledPlayCapacity(capacity) {
@@ -12399,7 +12399,7 @@ function printBundledRuntimeWarning(bundle) {
12399
12399
  async function handlePlayCheck(args) {
12400
12400
  const options = parsePlayCheckOptions(args);
12401
12401
  if (!isFileTarget(options.target)) {
12402
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
12402
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
12403
12403
  try {
12404
12404
  await assertCanonicalNamedPlayReference(client, options.target, {
12405
12405
  command: "check"
@@ -12428,7 +12428,7 @@ async function handlePlayCheck(args) {
12428
12428
  },
12429
12429
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12430
12430
  };
12431
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, result, {
12431
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, result, {
12432
12432
  json: options.jsonOutput,
12433
12433
  fields: options.jsonFields,
12434
12434
  text: renderPlayCheckOutput(result) + "\n"
@@ -12438,7 +12438,7 @@ async function handlePlayCheck(args) {
12438
12438
  const resolved = _path.resolve.call(void 0, options.target);
12439
12439
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12440
12440
  if (options.jsonOutput) {
12441
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
12441
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
12442
12442
  {
12443
12443
  kind: "play_check",
12444
12444
  checked: "named_contract",
@@ -12469,7 +12469,7 @@ async function handlePlayCheck(args) {
12469
12469
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
12470
12470
  publishCommand: _optionalChain([primary, 'optionalAccess', _478 => _478.result, 'access', _479 => _479.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
12471
12471
  });
12472
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, output, {
12472
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, output, {
12473
12473
  json: options.jsonOutput,
12474
12474
  fields: options.jsonFields,
12475
12475
  text: renderPlayCheckOutput(output) + "\n"
@@ -12537,7 +12537,7 @@ async function checkOneExportedPlay(input) {
12537
12537
  }
12538
12538
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
12539
12539
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
12540
- const client = _nullishCoalesce(input.client, () => ( new (0, _chunk7JEN3FX4js.DeeplineClient)()));
12540
+ const client = _nullishCoalesce(input.client, () => ( new (0, _chunkLRWDZDBSjs.DeeplineClient)()));
12541
12541
  const integrationMode = resolveEvalIntegrationMode();
12542
12542
  const checked = await checkLocalPlayGraph({
12543
12543
  client,
@@ -12593,8 +12593,8 @@ async function handleFileBackedRun(options, hooks) {
12593
12593
  let prefetchClient;
12594
12594
  let admissionCapability;
12595
12595
  let cancelAdmissionCapability;
12596
- let cliAdmission = _chunk534YYHIFjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12597
- const progress = _nullishCoalesce(_chunkXT25FX6Tjs.getActiveCliProgress.call(void 0, ), () => ( _chunkXT25FX6Tjs.createCliProgress.call(void 0, !options.jsonOutput)));
12596
+ let cliAdmission = _chunkHTYT2OHBjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12597
+ const progress = _nullishCoalesce(_chunkBXVYVIMBjs.getActiveCliProgress.call(void 0, ), () => ( _chunkBXVYVIMBjs.createCliProgress.call(void 0, !options.jsonOutput)));
12598
12598
  const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _488 => _488.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
12599
12599
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
12600
12600
  progress.phase("compiling play");
@@ -12611,11 +12611,11 @@ async function handleFileBackedRun(options, hooks) {
12611
12611
  return 1;
12612
12612
  }
12613
12613
  if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
12614
- const clientForPrefetch = new (0, _chunk7JEN3FX4js.DeeplineClient)(playRunClientOptions(options));
12614
+ const clientForPrefetch = new (0, _chunkLRWDZDBSjs.DeeplineClient)(playRunClientOptions(options));
12615
12615
  prefetchClient = clientForPrefetch;
12616
12616
  const capabilityController = new AbortController();
12617
12617
  cancelAdmissionCapability = () => capabilityController.abort();
12618
- admissionCapability = _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
12618
+ admissionCapability = _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12619
12619
  "cli.play_admission_capability_prefetch",
12620
12620
  { targetKind: "file" },
12621
12621
  () => clientForPrefetch.prefetchPlayRunAdmissionCapability({
@@ -12626,7 +12626,7 @@ async function handleFileBackedRun(options, hooks) {
12626
12626
  }
12627
12627
  let graph;
12628
12628
  try {
12629
- graph = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
12629
+ graph = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12630
12630
  "cli.play_file_bundle_graph",
12631
12631
  { targetKind: "file" },
12632
12632
  () => collectBundledPlayGraph(
@@ -12639,7 +12639,7 @@ async function handleFileBackedRun(options, hooks) {
12639
12639
  assertPlayGraphAuthoring(graph);
12640
12640
  if (options.dryRun) {
12641
12641
  progress.complete();
12642
- const plan = _chunkBZY335JPjs.planLocalPlayExecution.call(void 0, graph, {
12642
+ const plan = _chunk7E6B7VMSjs.planLocalPlayExecution.call(void 0, graph, {
12643
12643
  runIdFile: options.runIdFile
12644
12644
  });
12645
12645
  if (_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
@@ -12650,9 +12650,9 @@ async function handleFileBackedRun(options, hooks) {
12650
12650
  });
12651
12651
  return 0;
12652
12652
  }
12653
- client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunk7JEN3FX4js.DeeplineClient)(playRunClientOptions(options))));
12653
+ client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkLRWDZDBSjs.DeeplineClient)(playRunClientOptions(options))));
12654
12654
  if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
12655
- await _chunk534YYHIFjs.checkPlayRunCompatibility.call(void 0,
12655
+ await _chunkHTYT2OHBjs.checkPlayRunCompatibility.call(void 0,
12656
12656
  client.baseUrl,
12657
12657
  options.maintenancePolicy
12658
12658
  );
@@ -12665,7 +12665,7 @@ async function handleFileBackedRun(options, hooks) {
12665
12665
  });
12666
12666
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
12667
12667
  if (canDeferCompilerManifest) {
12668
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
12668
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
12669
12669
  phase: "cli.play_file_compile_manifests",
12670
12670
  ms: 0,
12671
12671
  ok: true,
@@ -12674,7 +12674,7 @@ async function handleFileBackedRun(options, hooks) {
12674
12674
  reason: "validated_by_run_route"
12675
12675
  });
12676
12676
  } else {
12677
- await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
12677
+ await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12678
12678
  "cli.play_file_compile_manifests",
12679
12679
  { targetKind: "file", skipped: false },
12680
12680
  () => compileBundledPlayGraphManifests(client, graph)
@@ -12682,7 +12682,7 @@ async function handleFileBackedRun(options, hooks) {
12682
12682
  }
12683
12683
  progress.phase("compiled play");
12684
12684
  } catch (error) {
12685
- if (error instanceof _chunk5H22VJPEjs.ExecutionOutputError) throw error;
12685
+ if (error instanceof _chunkYXVYPYIPjs.ExecutionOutputError) throw error;
12686
12686
  progress.fail();
12687
12687
  reportError(normalizePlayValidationError(error));
12688
12688
  return 1;
@@ -12693,13 +12693,13 @@ async function handleFileBackedRun(options, hooks) {
12693
12693
  if (bundleResult.importedPlayDependencies.length > 0) {
12694
12694
  try {
12695
12695
  renderLocalPlayExecutionPlan(
12696
- _chunkBZY335JPjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12696
+ _chunk7E6B7VMSjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12697
12697
  );
12698
12698
  progress.phase("pinning imported plays");
12699
- graph = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
12699
+ graph = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12700
12700
  "cli.play_file_pin_imports",
12701
12701
  { targetKind: "file" },
12702
- () => _chunkBZY335JPjs.pinLocalPlayImports.call(void 0, client, graph)
12702
+ () => _chunk7E6B7VMSjs.pinLocalPlayImports.call(void 0, client, graph)
12703
12703
  );
12704
12704
  bundleResult = graph.root;
12705
12705
  } catch (error) {
@@ -12716,7 +12716,7 @@ async function handleFileBackedRun(options, hooks) {
12716
12716
  inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _490 => _490.authoringContract, 'optionalAccess', _491 => _491.inputSchema]),
12717
12717
  staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _492 => _492.staticPipeline])
12718
12718
  });
12719
- const stagedFileInputs = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
12719
+ const stagedFileInputs = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12720
12720
  "cli.play_stage_inputs",
12721
12721
  {
12722
12722
  targetKind: "file",
@@ -12763,7 +12763,7 @@ async function handleFileBackedRun(options, hooks) {
12763
12763
  };
12764
12764
  if (options.watch) {
12765
12765
  progress.phase("starting run");
12766
- const finalStatus = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
12766
+ const finalStatus = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12767
12767
  "cli.play_start_watch",
12768
12768
  { targetKind: "file", playName },
12769
12769
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -12825,7 +12825,7 @@ async function handleFileBackedRun(options, hooks) {
12825
12825
  return outputStatus.status === "completed" ? 0 : 1;
12826
12826
  }
12827
12827
  progress.phase("starting run");
12828
- const started = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
12828
+ const started = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12829
12829
  "cli.play_start_unwatched",
12830
12830
  { targetKind: "file", playName },
12831
12831
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _499 => _499.onSubmission]) }).catch(async (error) => {
@@ -12891,9 +12891,9 @@ async function handleNamedRun(options, hooks) {
12891
12891
  if (options.target.kind !== "name") {
12892
12892
  throw new Error("Expected a named play run target.");
12893
12893
  }
12894
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)(playRunClientOptions(options));
12895
- let cliAdmission = _chunk534YYHIFjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12896
- const progress = _nullishCoalesce(_chunkXT25FX6Tjs.getActiveCliProgress.call(void 0, ), () => ( _chunkXT25FX6Tjs.createCliProgress.call(void 0, !options.jsonOutput)));
12894
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)(playRunClientOptions(options));
12895
+ let cliAdmission = _chunkHTYT2OHBjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12896
+ const progress = _nullishCoalesce(_chunkBXVYVIMBjs.getActiveCliProgress.call(void 0, ), () => ( _chunkBXVYVIMBjs.createCliProgress.call(void 0, !options.jsonOutput)));
12897
12897
  const playName = options.target.name;
12898
12898
  const runtimeInput = options.input ? { ...options.input } : {};
12899
12899
  try {
@@ -12911,7 +12911,7 @@ async function handleNamedRun(options, hooks) {
12911
12911
  if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
12912
12912
  const capabilityController = new AbortController();
12913
12913
  cancelAdmissionCapability = () => capabilityController.abort();
12914
- admissionCapability = _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
12914
+ admissionCapability = _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12915
12915
  "cli.play_admission_capability_prefetch",
12916
12916
  { targetKind: "name", playName },
12917
12917
  () => client.prefetchPlayRunAdmissionCapability({
@@ -12922,14 +12922,14 @@ async function handleNamedRun(options, hooks) {
12922
12922
  }
12923
12923
  const playDetail = needsPlayDefinition ? await (async () => {
12924
12924
  progress.phase("loading play definition");
12925
- return _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
12925
+ return _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12926
12926
  "cli.play_load_definition",
12927
12927
  { targetKind: "name", playName, skipped: false },
12928
12928
  () => assertCanonicalNamedPlayReference(client, playName, {
12929
12929
  command: "run"
12930
12930
  })
12931
12931
  );
12932
- })() : (_chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
12932
+ })() : (_chunkANKD3AIRjs.recordCliTrace.call(void 0, {
12933
12933
  phase: "cli.play_load_definition",
12934
12934
  ms: 0,
12935
12935
  ok: true,
@@ -12938,7 +12938,7 @@ async function handleNamedRun(options, hooks) {
12938
12938
  skipped: true
12939
12939
  }), null);
12940
12940
  progress.phase("selecting revision");
12941
- const selectedRevisionId = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
12941
+ const selectedRevisionId = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12942
12942
  "cli.play_select_revision",
12943
12943
  {
12944
12944
  targetKind: "name",
@@ -12963,10 +12963,10 @@ async function handleNamedRun(options, hooks) {
12963
12963
  ..._chunk2KHUFWTKjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
12964
12964
  ] : [];
12965
12965
  if (cliAdmission && fileInputBindings.length > 0) {
12966
- await _chunk534YYHIFjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
12966
+ await _chunkHTYT2OHBjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
12967
12967
  cliAdmission = false;
12968
12968
  }
12969
- const stagedFileInputs = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
12969
+ const stagedFileInputs = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12970
12970
  "cli.play_stage_inputs",
12971
12971
  {
12972
12972
  targetKind: "name",
@@ -13010,7 +13010,7 @@ async function handleNamedRun(options, hooks) {
13010
13010
  });
13011
13011
  if (options.watch) {
13012
13012
  progress.phase("starting run");
13013
- const finalStatus = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
13013
+ const finalStatus = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
13014
13014
  "cli.play_start_watch",
13015
13015
  { targetKind: "name", playName },
13016
13016
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -13075,7 +13075,7 @@ async function handleNamedRun(options, hooks) {
13075
13075
  return outputStatus.status === "completed" ? 0 : 1;
13076
13076
  }
13077
13077
  progress.phase("starting run");
13078
- const started = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
13078
+ const started = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
13079
13079
  "cli.play_start_unwatched",
13080
13080
  { targetKind: "name", playName },
13081
13081
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _512 => _512.onSubmission]) }).catch(async (error) => {
@@ -13135,7 +13135,7 @@ async function writePlayRunReceipt(client, status, output) {
13135
13135
  const next = { status: `deepline runs get ${status.runId}` };
13136
13136
  const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _520 => _520.exec, 'call', _521 => _521(status.runId), 'optionalAccess', _522 => _522[1]]), () => ( extractRunPlayName(status))), () => ( null));
13137
13137
  if (!terminal) {
13138
- _chunk5H22VJPEjs.writeExecutionOutput.call(void 0,
13138
+ _chunkYXVYPYIPjs.writeExecutionOutput.call(void 0,
13139
13139
  {
13140
13140
  id: status.runId,
13141
13141
  status: status.status,
@@ -13215,10 +13215,10 @@ async function writePlayRunReceipt(client, status, output) {
13215
13215
  };
13216
13216
  }
13217
13217
  const byRows = new Map(collections.map((c) => [c.rows, c]));
13218
- const allCollections = _chunk5H22VJPEjs.outputCollections.call(void 0, data).map(
13218
+ const allCollections = _chunkYXVYPYIPjs.outputCollections.call(void 0, data).map(
13219
13219
  (collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
13220
13220
  );
13221
- _chunk5H22VJPEjs.writeExecutionOutput.call(void 0,
13221
+ _chunkYXVYPYIPjs.writeExecutionOutput.call(void 0,
13222
13222
  {
13223
13223
  id: status.runId,
13224
13224
  status: status.status,
@@ -13239,7 +13239,7 @@ async function writePlayRunReceipt(client, status, output) {
13239
13239
  }
13240
13240
  var TOOL_EXECUTION_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
13241
13241
  async function handlePlayRun(args, hooks) {
13242
- const parsedOptions = Array.isArray(args) ? _chunk4DFWDA2Qjs.parsePlayRunOptions.call(void 0, args) : args;
13242
+ const parsedOptions = Array.isArray(args) ? _chunkATATJNJ6js.parsePlayRunOptions.call(void 0, args) : args;
13243
13243
  const options = parsedOptions.runIdFile ? {
13244
13244
  ...parsedOptions,
13245
13245
  runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
@@ -13256,7 +13256,7 @@ async function handlePlayRun(args, hooks) {
13256
13256
  JSON.stringify({
13257
13257
  version: 1,
13258
13258
  admissionState: "submitted_unknown",
13259
- baseUrl: new (0, _chunk7JEN3FX4js.DeeplineClient)().baseUrl,
13259
+ baseUrl: new (0, _chunkLRWDZDBSjs.DeeplineClient)().baseUrl,
13260
13260
  ...intent
13261
13261
  })
13262
13262
  );
@@ -13490,7 +13490,7 @@ function renderRunOverviewText(overview, extras = {}) {
13490
13490
  );
13491
13491
  return `${lines.join("\n")}
13492
13492
 
13493
- ${_chunkDRDZBRXVjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13493
+ ${_chunkGTGJBZVHjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13494
13494
  }
13495
13495
  var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
13496
13496
  async function withRunReadTiming(command, stage, enabled, action) {
@@ -13514,7 +13514,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
13514
13514
  }
13515
13515
  }
13516
13516
  async function handleRunGet(args) {
13517
- const selection = _chunkDRDZBRXVjs.parseJsonFields.call(void 0,
13517
+ const selection = _chunkGTGJBZVHjs.parseJsonFields.call(void 0,
13518
13518
  args,
13519
13519
  args.includes("--config") ? "config" : "get"
13520
13520
  );
@@ -13527,7 +13527,7 @@ async function handleRunGet(args) {
13527
13527
  console.error(error instanceof Error ? error.message : usage2);
13528
13528
  return 1;
13529
13529
  }
13530
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
13530
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
13531
13531
  const timing = args.includes("--timing");
13532
13532
  const web = args.includes("--web");
13533
13533
  if (web || args.includes("--web-url")) {
@@ -13545,8 +13545,8 @@ async function handleRunGet(args) {
13545
13545
  const dashboardUrl2 = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
13546
13546
  const runUrl2 = _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
13547
13547
  if (web) {
13548
- const opened = _chunkDRDZBRXVjs.openInBrowser.call(void 0, runUrl2);
13549
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
13548
+ const opened = _chunkGTGJBZVHjs.openInBrowser.call(void 0, runUrl2);
13549
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13550
13550
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
13551
13551
  {
13552
13552
  json: args.includes("--json"),
@@ -13557,7 +13557,7 @@ async function handleRunGet(args) {
13557
13557
  );
13558
13558
  return 0;
13559
13559
  }
13560
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
13560
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13561
13561
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
13562
13562
  { json: args.includes("--json"), text: `${runUrl2}
13563
13563
  ` }
@@ -13582,7 +13582,7 @@ async function handleRunGet(args) {
13582
13582
  "This server does not support recorded configuration reads."
13583
13583
  );
13584
13584
  }
13585
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
13585
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13586
13586
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13587
13587
  { json: true, fields: selection.fields }
13588
13588
  );
@@ -13595,7 +13595,7 @@ async function handleRunGet(args) {
13595
13595
  timing,
13596
13596
  () => client.getRunInput(runId)
13597
13597
  );
13598
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, input, { json: true });
13598
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, input, { json: true });
13599
13599
  return 0;
13600
13600
  }
13601
13601
  const full = args.includes("--full");
@@ -13608,7 +13608,7 @@ async function handleRunGet(args) {
13608
13608
  failedLogs: args.includes("--log-failed")
13609
13609
  })
13610
13610
  );
13611
- if (status.package) _chunk5H22VJPEjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13611
+ if (status.package) _chunkYXVYPYIPjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13612
13612
  if (!status.package) {
13613
13613
  const legacyStatus = full ? await withRunReadTiming(
13614
13614
  "runs get",
@@ -13622,8 +13622,8 @@ async function handleRunGet(args) {
13622
13622
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
13623
13623
  const legacyDashboardUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
13624
13624
  const legacyRunUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
13625
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
13626
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
13625
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
13626
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13627
13627
  {
13628
13628
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
13629
13629
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
@@ -13634,7 +13634,7 @@ async function handleRunGet(args) {
13634
13634
  } else {
13635
13635
  writePlayResult(legacyStatus, false, { fullJson: full });
13636
13636
  if (legacyRunUrl)
13637
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
13637
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13638
13638
  { dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
13639
13639
  { json: false, text: `run page: ${legacyRunUrl}
13640
13640
  ` }
@@ -13664,11 +13664,11 @@ async function handleRunGet(args) {
13664
13664
  )
13665
13665
  ]);
13666
13666
  const hitLines = formatRunHitsLines(hits);
13667
- const json = _chunkDRDZBRXVjs.argsWantJson.call(void 0, args);
13667
+ const json = _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
13668
13668
  const playName = resolveRunPlayName(status, runId);
13669
13669
  const dashboardUrl = playName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
13670
13670
  const runUrl = playName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
13671
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
13671
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13672
13672
  {
13673
13673
  ...overview,
13674
13674
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -13773,9 +13773,9 @@ async function handleRunLifecycleStatus(args) {
13773
13773
  console.error(error instanceof Error ? error.message : usage2);
13774
13774
  return 1;
13775
13775
  }
13776
- const status = await new (0, _chunk7JEN3FX4js.DeeplineClient)().runs.status(runId);
13777
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
13778
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, status, { json: true });
13776
+ const status = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().runs.status(runId);
13777
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
13778
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, status, { json: true });
13779
13779
  return 0;
13780
13780
  }
13781
13781
  if (!status.available) {
@@ -13806,6 +13806,29 @@ async function handleRunLifecycleStatus(args) {
13806
13806
  }
13807
13807
  return 0;
13808
13808
  }
13809
+ var FROM_RUN_RERUN_FLAGS = {
13810
+ "--idempotency-key": "idempotencyKey",
13811
+ "--input-overrides": "inputOverrides"
13812
+ };
13813
+ function takeFromRunRerunArgs(args) {
13814
+ const taken = {};
13815
+ const rest = [];
13816
+ for (let index = 0; index < args.length; index += 1) {
13817
+ const arg = args[index];
13818
+ const equals = arg.indexOf("=");
13819
+ const flag = equals > 0 ? arg.slice(0, equals) : arg;
13820
+ if (!Object.hasOwn(FROM_RUN_RERUN_FLAGS, flag)) {
13821
+ rest.push(arg);
13822
+ continue;
13823
+ }
13824
+ const field = FROM_RUN_RERUN_FLAGS[flag];
13825
+ if (taken[field] !== void 0) {
13826
+ return { ok: false, error: `${flag} may be given only once.` };
13827
+ }
13828
+ taken[field] = equals > 0 ? arg.slice(equals + 1) : _nullishCoalesce(args[++index], () => ( ""));
13829
+ }
13830
+ return { ok: true, ...taken, rest };
13831
+ }
13809
13832
  function runsRerunRenameNotice(runId) {
13810
13833
  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
13834
  }
@@ -13818,7 +13841,7 @@ async function handleRunsRerun(args) {
13818
13841
  console.error(error instanceof Error ? error.message : usage2);
13819
13842
  return 1;
13820
13843
  }
13821
- const options = { json: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args) };
13844
+ const options = { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) };
13822
13845
  for (let index = 0; index < args.length; index += 1) {
13823
13846
  if (args[index] === "--idempotency-key") {
13824
13847
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -13884,8 +13907,8 @@ ${usage2}
13884
13907
  Discover Plays: ${next.discover}
13885
13908
  Active runs: ${next.running}`
13886
13909
  );
13887
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
13888
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
13910
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
13911
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13889
13912
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
13890
13913
  { json: true }
13891
13914
  );
@@ -13900,7 +13923,7 @@ Active runs: ${next.running}`
13900
13923
  console.error("--offset requires --play.");
13901
13924
  return 1;
13902
13925
  }
13903
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
13926
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
13904
13927
  const page = await withRunReadTiming(
13905
13928
  "runs list",
13906
13929
  "run inventory",
@@ -13967,14 +13990,14 @@ Active runs: ${next.running}`
13967
13990
  return lines2.join("\n");
13968
13991
  });
13969
13992
  const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
13970
- const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkDRDZBRXVjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
13993
+ const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkGTGJBZVHjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
13971
13994
  if (page.hasMore) {
13972
13995
  lines.push("List truncated \u2014 more runs match this filter.");
13973
13996
  lines.push(
13974
13997
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
13975
13998
  );
13976
13999
  }
13977
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
14000
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13978
14001
  {
13979
14002
  runs,
13980
14003
  count: runs.length,
@@ -13988,7 +14011,7 @@ Active runs: ${next.running}`
13988
14011
  },
13989
14012
  render: { sections: [{ title: "runs", lines }] }
13990
14013
  },
13991
- { json: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args) }
14014
+ { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) }
13992
14015
  );
13993
14016
  return 0;
13994
14017
  }
@@ -14018,7 +14041,7 @@ async function handleRunTail(args) {
14018
14041
  console.error("--log-level requires one of: debug, info, warn, error.");
14019
14042
  return 1;
14020
14043
  }
14021
- const parsed = _chunk4MF44THRjs.parseLogLevel.call(void 0, value);
14044
+ const parsed = _chunkV7KUBDEBjs.parseLogLevel.call(void 0, value);
14022
14045
  if (!parsed) {
14023
14046
  console.error(
14024
14047
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14056,9 +14079,9 @@ async function handleRunTail(args) {
14056
14079
  );
14057
14080
  return 1;
14058
14081
  }
14059
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
14082
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14060
14083
  const jsonLines = args.includes("--jsonl");
14061
- const jsonOutput = !jsonLines && _chunkDRDZBRXVjs.argsWantJson.call(void 0, args);
14084
+ const jsonOutput = !jsonLines && _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
14062
14085
  const compact = args.includes("--compact");
14063
14086
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14064
14087
  const compactState = {
@@ -14139,7 +14162,7 @@ async function handleRunLogs(args) {
14139
14162
  ]);
14140
14163
  const cursorIndex = args.indexOf("--cursor");
14141
14164
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14142
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk4MF44THRjs.isRunLogsCursor.call(void 0, cursorValue));
14165
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkV7KUBDEBjs.isRunLogsCursor.call(void 0, cursorValue));
14143
14166
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14144
14167
  return handleRunEventSearch(args);
14145
14168
  }
@@ -14173,7 +14196,7 @@ async function handleRunLogs(args) {
14173
14196
  console.error("--log-level requires one of: debug, info, warn, error.");
14174
14197
  return 1;
14175
14198
  }
14176
- const parsed = _chunk4MF44THRjs.parseLogLevel.call(void 0, value);
14199
+ const parsed = _chunkV7KUBDEBjs.parseLogLevel.call(void 0, value);
14177
14200
  if (!parsed) {
14178
14201
  console.error(
14179
14202
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14220,12 +14243,12 @@ async function handleRunLogs(args) {
14220
14243
  );
14221
14244
  return 1;
14222
14245
  }
14223
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
14246
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14224
14247
  if (outPath) {
14225
14248
  const result2 = await client.runs.logs(runId, { all: true });
14226
- const logs = result2.entries.filter((line) => _chunk4MF44THRjs.logLevelReaches.call(void 0, _chunk4MF44THRjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk4MF44THRjs.classifyLogLine.call(void 0, line).line);
14249
+ const logs = result2.entries.filter((line) => _chunkV7KUBDEBjs.logLevelReaches.call(void 0, _chunkV7KUBDEBjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkV7KUBDEBjs.classifyLogLine.call(void 0, line).line);
14227
14250
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14228
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
14251
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14229
14252
  {
14230
14253
  runId: result2.runId,
14231
14254
  log_path: outPath,
@@ -14248,7 +14271,7 @@ async function handleRunLogs(args) {
14248
14271
  ]
14249
14272
  }
14250
14273
  },
14251
- { json: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args) }
14274
+ { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) }
14252
14275
  );
14253
14276
  return 0;
14254
14277
  }
@@ -14279,7 +14302,7 @@ async function handleRunLogs(args) {
14279
14302
  }
14280
14303
  };
14281
14304
  const text = buildRunLogsText(filteredResult);
14282
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
14305
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14283
14306
  {
14284
14307
  runId: result.runId,
14285
14308
  totalCount: result.totalCount,
@@ -14303,7 +14326,7 @@ async function handleRunLogs(args) {
14303
14326
  render: { sections: [{ title: "run logs", lines: entries }] }
14304
14327
  },
14305
14328
  {
14306
- json: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args),
14329
+ json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args),
14307
14330
  text
14308
14331
  }
14309
14332
  );
@@ -14327,7 +14350,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14327
14350
  );
14328
14351
  }
14329
14352
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14330
- (entry) => _chunk4MF44THRjs.logLevelReaches.call(void 0, _chunk4MF44THRjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14353
+ (entry) => _chunkV7KUBDEBjs.logLevelReaches.call(void 0, _chunkV7KUBDEBjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14331
14354
  );
14332
14355
  const selected = matching.slice(-limit);
14333
14356
  const olderMatchesExist = matching.length > selected.length;
@@ -14337,7 +14360,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14337
14360
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _555 => _555.at, 'call', _556 => _556(-1), 'optionalAccess', _557 => _557.seq]), () => ( null)),
14338
14361
  truncated: result.truncated || olderMatchesExist,
14339
14362
  hasMore: olderMatchesExist,
14340
- nextCursor: olderMatchesExist ? _chunk4MF44THRjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14363
+ nextCursor: olderMatchesExist ? _chunkV7KUBDEBjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14341
14364
  };
14342
14365
  }
14343
14366
  async function handleRunEventSearch(args) {
@@ -14404,7 +14427,7 @@ ${usage2}`);
14404
14427
  namespace,
14405
14428
  ...backend ? { backend } : {}
14406
14429
  } : void 0;
14407
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
14430
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14408
14431
  const result = await client.runs.searchEvents({
14409
14432
  ...runId ? { runId } : {},
14410
14433
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14476,7 +14499,7 @@ ${renderedDetails}` : ""}`;
14476
14499
  "--limit",
14477
14500
  String(limit)
14478
14501
  ].join(" ") : null;
14479
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
14502
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14480
14503
  {
14481
14504
  events,
14482
14505
  nextCursor: result.nextCursor,
@@ -14487,14 +14510,14 @@ ${renderedDetails}` : ""}`;
14487
14510
  render: { sections: [{ title: "runtime events", lines }] }
14488
14511
  },
14489
14512
  {
14490
- json: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args),
14513
+ json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args),
14491
14514
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14492
14515
  }
14493
14516
  );
14494
14517
  return 0;
14495
14518
  }
14496
14519
  function buildRunLogsText(result) {
14497
- const lines = result.entries.map((line) => _chunk4MF44THRjs.classifyLogLine.call(void 0, line).line);
14520
+ const lines = result.entries.map((line) => _chunkV7KUBDEBjs.classifyLogLine.call(void 0, line).line);
14498
14521
  if (result.warning) {
14499
14522
  if (lines.length > 0) lines.push("");
14500
14523
  lines.push(`warning: ${result.warning}`);
@@ -14528,7 +14551,7 @@ async function handleRunStop(args) {
14528
14551
  reason = args[++index];
14529
14552
  }
14530
14553
  }
14531
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
14554
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14532
14555
  const result = await client.runs.stop(runId, { reason });
14533
14556
  const state = resolveRunStopState(result);
14534
14557
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14543,7 +14566,7 @@ async function handleRunStop(args) {
14543
14566
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14544
14567
  `inspect: deepline runs get ${runId} --full`
14545
14568
  ];
14546
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
14569
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14547
14570
  {
14548
14571
  ...cancelling,
14549
14572
  state,
@@ -14558,7 +14581,7 @@ async function handleRunStop(args) {
14558
14581
  ]
14559
14582
  }
14560
14583
  },
14561
- { json: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args) }
14584
+ { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) }
14562
14585
  );
14563
14586
  return 0;
14564
14587
  }
@@ -14575,7 +14598,7 @@ async function handleRunStop(args) {
14575
14598
  ];
14576
14599
  process.stderr.write(`${lines2.join("\n")}
14577
14600
  `);
14578
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
14601
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14579
14602
  {
14580
14603
  ...result,
14581
14604
  render: {
@@ -14590,7 +14613,7 @@ async function handleRunStop(args) {
14590
14613
  ]
14591
14614
  }
14592
14615
  },
14593
- { json: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args) }
14616
+ { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) }
14594
14617
  );
14595
14618
  return 1;
14596
14619
  }
@@ -14601,12 +14624,12 @@ async function handleRunStop(args) {
14601
14624
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14602
14625
  ] : []
14603
14626
  ];
14604
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
14627
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14605
14628
  {
14606
14629
  ...result,
14607
14630
  render: { sections: [{ title: "run stop", lines }] }
14608
14631
  },
14609
- { json: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args) }
14632
+ { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) }
14610
14633
  );
14611
14634
  return 0;
14612
14635
  }
@@ -14656,18 +14679,18 @@ async function handleRunStopAll(args) {
14656
14679
  reason = args[++index];
14657
14680
  }
14658
14681
  }
14659
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
14682
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14660
14683
  if (dryRun) {
14661
14684
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14662
14685
  const lines2 = buildStopAllDryRunTextLines(result2);
14663
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
14686
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14664
14687
  {
14665
14688
  ...result2,
14666
14689
  render: {
14667
14690
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14668
14691
  }
14669
14692
  },
14670
- { json: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14693
+ { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14671
14694
  ` }
14672
14695
  );
14673
14696
  return 0;
@@ -14680,17 +14703,17 @@ async function handleRunStopAll(args) {
14680
14703
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14681
14704
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14682
14705
  ];
14683
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
14706
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14684
14707
  {
14685
14708
  ...result,
14686
14709
  render: { sections: [{ title: "workspace stop-all", lines }] }
14687
14710
  },
14688
- { json: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args) }
14711
+ { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) }
14689
14712
  );
14690
14713
  return result.failed > 0 || result.partial ? 1 : 0;
14691
14714
  }
14692
14715
  async function handleRunExport(args) {
14693
- const selection = _chunkDRDZBRXVjs.parseJsonFields.call(void 0, args, "export");
14716
+ const selection = _chunkGTGJBZVHjs.parseJsonFields.call(void 0, args, "export");
14694
14717
  args = selection.args;
14695
14718
  const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--summary full|counts] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
14696
14719
  let runId;
@@ -14761,17 +14784,17 @@ async function handleRunExport(args) {
14761
14784
  "INVALID_ARGUMENT"
14762
14785
  );
14763
14786
  }
14764
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
14787
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14765
14788
  let status = await client.getPlayStatus(runId, { full: true });
14766
14789
  assertRunExportStatusIdentity(status, runId);
14767
14790
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14768
- const progress = _chunkXT25FX6Tjs.createCliProgress.call(void 0, !_chunkDRDZBRXVjs.argsWantJson.call(void 0, args));
14791
+ const progress = _chunkBXVYVIMBjs.createCliProgress.call(void 0, !_chunkGTGJBZVHjs.argsWantJson.call(void 0, args));
14769
14792
  try {
14770
14793
  await waitForPlayCompletionByWatch({
14771
14794
  client,
14772
14795
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14773
14796
  workflowId: runId,
14774
- jsonOutput: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args),
14797
+ jsonOutput: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args),
14775
14798
  emitLogs: false,
14776
14799
  waitTimeoutMs,
14777
14800
  startedAt: Date.now(),
@@ -14839,7 +14862,7 @@ async function handleRunExport(args) {
14839
14862
  rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.totalRows]), () => ( null)),
14840
14863
  ...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
14841
14864
  ...rowFailures ? { rowFailures } : {},
14842
- columns: _chunk5H22VJPEjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _573 => _573.rowsInfo, 'access', _574 => _574.columns]), () => ( []))),
14865
+ columns: _chunkYXVYPYIPjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _573 => _573.rowsInfo, 'access', _574 => _574.columns]), () => ( []))),
14843
14866
  ...currentTableNotice ? { notice: currentTableNotice } : {},
14844
14867
  ...metadataOutPath ? { metadata_path: metadataOutPath } : {},
14845
14868
  ...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
@@ -14873,8 +14896,8 @@ async function handleRunExport(args) {
14873
14896
  "utf-8"
14874
14897
  );
14875
14898
  }
14876
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, payload, {
14877
- json: _chunkDRDZBRXVjs.argsWantJson.call(void 0, args),
14899
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, payload, {
14900
+ json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args),
14878
14901
  fields: selection.fields,
14879
14902
  text: `${lines.join("\n")}
14880
14903
  `
@@ -14908,10 +14931,10 @@ async function handlePlayGet(args) {
14908
14931
  );
14909
14932
  return 2;
14910
14933
  }
14911
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
14934
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14912
14935
  const explicitJson = args.includes("--json");
14913
14936
  const sourceOutput = args.includes("--source");
14914
- const jsonOutput = sourceOutput ? explicitJson : _chunkDRDZBRXVjs.argsWantJson.call(void 0, args);
14937
+ const jsonOutput = sourceOutput ? explicitJson : _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
14915
14938
  const requestedRevisionFlags = [
14916
14939
  args.includes("--working"),
14917
14940
  args.includes("--live"),
@@ -14974,7 +14997,7 @@ async function handlePlayGet(args) {
14974
14997
  }
14975
14998
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
14976
14999
  if (jsonOutput) {
14977
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, {
15000
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, {
14978
15001
  ...detail,
14979
15002
  ...materializedFile ? {
14980
15003
  message: loadedMessage,
@@ -15066,8 +15089,8 @@ async function handlePlayVersions(args) {
15066
15089
  console.error("Usage: deepline plays versions --name <name> [--json]");
15067
15090
  return 1;
15068
15091
  }
15069
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
15070
- const jsonOutput = _chunkDRDZBRXVjs.argsWantJson.call(void 0, args);
15092
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15093
+ const jsonOutput = _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
15071
15094
  await assertCanonicalNamedPlayReference(client, playName, {
15072
15095
  command: "versions"
15073
15096
  });
@@ -15075,7 +15098,7 @@ async function handlePlayVersions(args) {
15075
15098
  parseReferencedPlayTarget(playName).playName
15076
15099
  );
15077
15100
  if (jsonOutput) {
15078
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, { versions });
15101
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, { versions });
15079
15102
  return 0;
15080
15103
  }
15081
15104
  if (versions.length === 0) {
@@ -15118,8 +15141,8 @@ async function handlePlayCost(args) {
15118
15141
  console.error("Usage: deepline plays cost <play> [--json]");
15119
15142
  return 2;
15120
15143
  }
15121
- const result = await new (0, _chunk7JEN3FX4js.DeeplineClient)().getPlayCostEstimate(name);
15122
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15144
+ const result = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().getPlayCostEstimate(name);
15145
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15123
15146
  else
15124
15147
  console.log(
15125
15148
  `${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
@@ -15127,9 +15150,9 @@ async function handlePlayCost(args) {
15127
15150
  return 0;
15128
15151
  }
15129
15152
  async function handlePlayList(args) {
15130
- const jsonOutput = _chunkDRDZBRXVjs.argsWantJson.call(void 0, args);
15153
+ const jsonOutput = _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
15131
15154
  const showCost = args.includes("--show-cost");
15132
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
15155
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15133
15156
  const categoriesIndex = args.indexOf("--categories");
15134
15157
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _594 => _594[categoriesIndex + 1], 'optionalAccess', _595 => _595.trim, 'call', _596 => _596()]) : void 0;
15135
15158
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15227,7 +15250,7 @@ async function handlePlayList(args) {
15227
15250
  lines.push("List truncated \u2014 more plays are available.");
15228
15251
  lines.push(`Next page: ${nextPage}`);
15229
15252
  }
15230
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
15253
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
15231
15254
  {
15232
15255
  plays,
15233
15256
  count: plays.length,
@@ -15245,7 +15268,7 @@ async function handlePlayList(args) {
15245
15268
  }
15246
15269
  async function handlePlayPin(args, pinned) {
15247
15270
  const target = _optionalChain([args, 'access', _605 => _605.find, 'call', _606 => _606((arg) => !arg.startsWith("-")), 'optionalAccess', _607 => _607.trim, 'call', _608 => _608()]);
15248
- const jsonOutput = _chunkDRDZBRXVjs.argsWantJson.call(void 0, args);
15271
+ const jsonOutput = _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
15249
15272
  const dryRun = args.includes("--dry-run");
15250
15273
  if (!target) {
15251
15274
  console.error(
@@ -15263,11 +15286,11 @@ async function handlePlayPin(args, pinned) {
15263
15286
  const name = parsedTarget.playName;
15264
15287
  const plan = { name, pinned, dryRun };
15265
15288
  if (dryRun) {
15266
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, plan);
15289
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, plan);
15267
15290
  return 0;
15268
15291
  }
15269
- const result = await new (0, _chunk7JEN3FX4js.DeeplineClient)().setPlayPinned(name, pinned);
15270
- if (jsonOutput) _chunkDRDZBRXVjs.printCompactJson.call(void 0, result);
15292
+ const result = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().setPlayPinned(name, pinned);
15293
+ if (jsonOutput) _chunkGTGJBZVHjs.printCompactJson.call(void 0, result);
15271
15294
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15272
15295
  return 0;
15273
15296
  }
@@ -15393,12 +15416,12 @@ async function handlePlayGrep(args) {
15393
15416
  console.error("Usage: deepline plays grep <query> [--json]");
15394
15417
  return 1;
15395
15418
  }
15396
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
15419
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15397
15420
  const results = (await client.listPlays({ grep: query })).map(
15398
15421
  summarizePlayGrepResult
15399
15422
  );
15400
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
15401
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, {
15423
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
15424
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, {
15402
15425
  plays: results,
15403
15426
  count: results.length,
15404
15427
  query,
@@ -15421,7 +15444,7 @@ async function handlePlayGrep(args) {
15421
15444
  return 0;
15422
15445
  }
15423
15446
  async function handlePlayDescribe(args) {
15424
- const selection = _chunkDRDZBRXVjs.parseJsonFields.call(void 0, args, "describe");
15447
+ const selection = _chunkGTGJBZVHjs.parseJsonFields.call(void 0, args, "describe");
15425
15448
  args = selection.args;
15426
15449
  const playName = args[0];
15427
15450
  if (!playName) {
@@ -15455,8 +15478,8 @@ async function handlePlayDescribe(args) {
15455
15478
  `deepline plays check ${playName}`,
15456
15479
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15457
15480
  ];
15458
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
15459
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, {
15481
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
15482
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, {
15460
15483
  ok: false,
15461
15484
  error: { message },
15462
15485
  next
@@ -15470,7 +15493,7 @@ async function handlePlayDescribe(args) {
15470
15493
  }
15471
15494
  return 2;
15472
15495
  }
15473
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
15496
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15474
15497
  await assertCanonicalNamedPlayReference(client, playName, {
15475
15498
  command: "describe"
15476
15499
  });
@@ -15480,9 +15503,9 @@ async function handlePlayDescribe(args) {
15480
15503
  compact: args.includes("--compact")
15481
15504
  }
15482
15505
  );
15483
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
15484
- if (selection.fields) _chunkDRDZBRXVjs.printJson.call(void 0, play, selection.fields);
15485
- else _chunkDRDZBRXVjs.printCompactJson.call(void 0, play);
15506
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
15507
+ if (selection.fields) _chunkGTGJBZVHjs.printJson.call(void 0, play, selection.fields);
15508
+ else _chunkGTGJBZVHjs.printCompactJson.call(void 0, play);
15486
15509
  return 0;
15487
15510
  }
15488
15511
  printPlayDescription(play);
@@ -15504,7 +15527,7 @@ async function handlePlaySave(args) {
15504
15527
  }
15505
15528
  let graph;
15506
15529
  try {
15507
- graph = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
15530
+ graph = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15508
15531
  "cli.play_save_bundle_graph",
15509
15532
  { targetKind: "file" },
15510
15533
  () => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
@@ -15526,7 +15549,7 @@ async function handlePlaySave(args) {
15526
15549
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15527
15550
  };
15528
15551
  if (options.jsonOutput) {
15529
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, result);
15552
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, result);
15530
15553
  } else {
15531
15554
  console.error(result.message);
15532
15555
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15548,7 +15571,7 @@ async function handlePlaySave(args) {
15548
15571
  };
15549
15572
  if (options.dryRun) {
15550
15573
  if (options.jsonOutput) {
15551
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, dryRun);
15574
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, dryRun);
15552
15575
  } else {
15553
15576
  console.log(`Dry run: ${playName}`);
15554
15577
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15557,14 +15580,14 @@ async function handlePlaySave(args) {
15557
15580
  }
15558
15581
  return 0;
15559
15582
  }
15560
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
15583
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15561
15584
  try {
15562
- await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
15585
+ await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15563
15586
  "cli.play_save_compile_manifests",
15564
15587
  { targetKind: "file", nodeCount: graph.nodes.size },
15565
15588
  () => compileBundledPlayGraphManifests(client, graph)
15566
15589
  );
15567
- const saved = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
15590
+ const saved = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15568
15591
  "cli.play_save_register_draft",
15569
15592
  { targetKind: "file", playName, artifactHash },
15570
15593
  () => client.registerPlayArtifact({
@@ -15593,7 +15616,7 @@ async function handlePlaySave(args) {
15593
15616
  }
15594
15617
  };
15595
15618
  if (options.jsonOutput) {
15596
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, result);
15619
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, result);
15597
15620
  } else {
15598
15621
  console.log(
15599
15622
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15619,7 +15642,7 @@ async function handlePlayPublish(args) {
15619
15642
  }
15620
15643
  const { target: playName, useLatest } = options;
15621
15644
  let revisionId = options.revisionId;
15622
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
15645
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15623
15646
  if (isFileTarget(playName)) {
15624
15647
  if (revisionId || useLatest) {
15625
15648
  console.error(
@@ -15629,7 +15652,7 @@ async function handlePlayPublish(args) {
15629
15652
  }
15630
15653
  let graph;
15631
15654
  try {
15632
- graph = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
15655
+ graph = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15633
15656
  "cli.play_publish_bundle_graph",
15634
15657
  { targetKind: "file" },
15635
15658
  () => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
@@ -15651,7 +15674,7 @@ async function handlePlayPublish(args) {
15651
15674
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15652
15675
  };
15653
15676
  if (options.jsonOutput) {
15654
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, result3);
15677
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, result3);
15655
15678
  } else {
15656
15679
  console.error(result3.message);
15657
15680
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15674,7 +15697,7 @@ async function handlePlayPublish(args) {
15674
15697
  };
15675
15698
  if (options.dryRun) {
15676
15699
  if (options.jsonOutput) {
15677
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, dryRun);
15700
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, dryRun);
15678
15701
  } else {
15679
15702
  console.log(`Dry run: ${rootPlayName}`);
15680
15703
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15693,12 +15716,12 @@ async function handlePlayPublish(args) {
15693
15716
  }
15694
15717
  }
15695
15718
  try {
15696
- await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
15719
+ await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15697
15720
  "cli.play_publish_compile_manifests",
15698
15721
  { targetKind: "file", nodeCount: graph.nodes.size },
15699
15722
  () => compileBundledPlayGraphManifests(client, graph)
15700
15723
  );
15701
- await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
15724
+ await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15702
15725
  "cli.play_publish_imports",
15703
15726
  { targetKind: "file", nodeCount: graph.nodes.size },
15704
15727
  () => publishImportedPlayDependencies(client, graph)
@@ -15707,7 +15730,7 @@ async function handlePlayPublish(args) {
15707
15730
  console.error(error instanceof Error ? error.message : String(error));
15708
15731
  return 1;
15709
15732
  }
15710
- const published = await _chunkDNJJ3ULJjs.traceCliSpan.call(void 0,
15733
+ const published = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15711
15734
  "cli.play_publish_register_root",
15712
15735
  {
15713
15736
  targetKind: "file",
@@ -15742,7 +15765,7 @@ async function handlePlayPublish(args) {
15742
15765
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15743
15766
  };
15744
15767
  if (options.jsonOutput) {
15745
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, result2);
15768
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, result2);
15746
15769
  } else {
15747
15770
  printPublishReceipt({
15748
15771
  name: rootPlayName,
@@ -15773,7 +15796,7 @@ async function handlePlayPublish(args) {
15773
15796
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15774
15797
  latest: useLatest
15775
15798
  };
15776
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, result2);
15799
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, result2);
15777
15800
  return 0;
15778
15801
  }
15779
15802
  const resolvedName = parseReferencedPlayTarget(playName).playName;
@@ -15797,7 +15820,7 @@ async function handlePlayPublish(args) {
15797
15820
  revisionId ? { revisionId } : {}
15798
15821
  );
15799
15822
  if (options.jsonOutput) {
15800
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, result);
15823
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, result);
15801
15824
  } else {
15802
15825
  printPublishReceipt({
15803
15826
  name: result.name,
@@ -15837,7 +15860,7 @@ async function handlePlayDelete(args) {
15837
15860
  );
15838
15861
  return 2;
15839
15862
  }
15840
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
15863
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15841
15864
  let detail;
15842
15865
  try {
15843
15866
  detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
@@ -15861,8 +15884,8 @@ async function handlePlayDelete(args) {
15861
15884
  name: resolvedName,
15862
15885
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
15863
15886
  };
15864
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
15865
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, result2);
15887
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
15888
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, result2);
15866
15889
  } else {
15867
15890
  process.stdout.write(
15868
15891
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -15872,8 +15895,8 @@ async function handlePlayDelete(args) {
15872
15895
  return 0;
15873
15896
  }
15874
15897
  const result = await client.deletePlay(resolvedName);
15875
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
15876
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, result);
15898
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
15899
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, result);
15877
15900
  return result.archived || result.alreadyArchived ? 0 : 4;
15878
15901
  }
15879
15902
  if (result.alreadyArchived) {
@@ -15912,13 +15935,13 @@ async function handlePlayRestore(args) {
15912
15935
  );
15913
15936
  return 2;
15914
15937
  }
15915
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
15938
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15916
15939
  try {
15917
15940
  const result = await client.restorePlay(
15918
15941
  parseReferencedPlayTarget(playName).playName
15919
15942
  );
15920
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
15921
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, result);
15943
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
15944
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, result);
15922
15945
  return result.restored || result.alreadyActive ? 0 : 4;
15923
15946
  }
15924
15947
  if (result.alreadyActive) {
@@ -16045,21 +16068,21 @@ Common commands:
16045
16068
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16046
16069
  }
16047
16070
  };
16048
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, result2, {
16071
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, result2, {
16049
16072
  json: options.json,
16050
16073
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16051
16074
  `
16052
16075
  });
16053
16076
  return;
16054
16077
  }
16055
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
16078
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
16056
16079
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16057
16080
  throw new Error(
16058
16081
  "The submission belongs to a different API origin. Select its original host before recovery."
16059
16082
  );
16060
16083
  }
16061
16084
  const result = await client.startPlayRun(saved.request);
16062
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
16085
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
16063
16086
  { ...result },
16064
16087
  {
16065
16088
  json: options.json,
@@ -16095,7 +16118,7 @@ Examples:
16095
16118
  ).action(async (target, options) => {
16096
16119
  process.exitCode = await handlePlayCheck([
16097
16120
  target,
16098
- ..._chunkDRDZBRXVjs.jsonFieldArgs.call(void 0, options.json),
16121
+ ..._chunkGTGJBZVHjs.jsonFieldArgs.call(void 0, options.json),
16099
16122
  ...options.full ? ["--full"] : []
16100
16123
  ]);
16101
16124
  });
@@ -16136,12 +16159,16 @@ Notes:
16136
16159
  from --from-start. (Formerly --force-tool-refresh.)
16137
16160
  --from-run <run-id> starts a new run of the same Play with that run's
16138
16161
  retained input and pinned revision, and returns once it starts. It accepts
16139
- only --json.
16162
+ only --json, --idempotency-key <key> and --input-overrides <json>, which
16163
+ behave exactly as on runs rerun. A key deduplicates only the exact same
16164
+ rerun intent (source run, resulting input, pinned revision); the same key
16165
+ with a changed input is refused with a 409 conflict. Use one stable key per
16166
+ exact intent. Without a key, each invocation starts a new run.
16140
16167
  --max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
16141
- resident-work ceiling. Default: ${_chunk4DFWDA2Qjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunk4DFWDA2Qjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16168
+ resident-work ceiling. Default: ${_chunkATATJNJ6js.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkATATJNJ6js.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16142
16169
  Provider pacing and sandbox memory limits still apply.
16143
16170
  --max-concurrent-rows sets the run-wide default and ceiling for live map row
16144
- resolvers. Accepted range: 1-${_chunk4DFWDA2Qjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16171
+ resolvers. Accepted range: 1-${_chunkATATJNJ6js.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16145
16172
  may lower it when source-row size exceeds the active-row memory budget.
16146
16173
  --max-credits replaces the play's billing.maxCreditsPerRun for this run.
16147
16174
  Tool calls that would exceed it are denied.
@@ -16266,10 +16293,10 @@ Examples:
16266
16293
  ).hideHelp()
16267
16294
  ).option(
16268
16295
  "--max-concurrent-external-calls <count>",
16269
- `Concurrent provider-tool and deepline.fetch executions (${_chunk4DFWDA2Qjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunk4DFWDA2Qjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16296
+ `Concurrent provider-tool and deepline.fetch executions (${_chunkATATJNJ6js.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkATATJNJ6js.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16270
16297
  ).option(
16271
16298
  "--max-concurrent-rows <count>",
16272
- `Run-wide dataset map row resolver ceiling (max ${_chunk4DFWDA2Qjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16299
+ `Run-wide dataset map row resolver ceiling (max ${_chunkATATJNJ6js.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16273
16300
  ).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
16274
16301
  "--debug-map-latency",
16275
16302
  "Internal diagnostics: emit one aggregate latency profile per dataset map"
@@ -16330,7 +16357,14 @@ JSON field selection:
16330
16357
  ).map(
16331
16358
  ([key]) => `--${key.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)}`
16332
16359
  );
16333
- if (target !== void 0 || command.args.length > 0) {
16360
+ const rerunArgs = takeFromRunRerunArgs(
16361
+ target !== void 0 && command.args[0] !== target ? [target, ...command.args] : [...command.args]
16362
+ );
16363
+ if (!rerunArgs.ok) {
16364
+ console.error(rerunArgs.error);
16365
+ return 1;
16366
+ }
16367
+ if (rerunArgs.rest.length > 0) {
16334
16368
  conflicting.unshift("a play target or input");
16335
16369
  }
16336
16370
  if (conflicting.length > 0) {
@@ -16340,7 +16374,9 @@ JSON field selection:
16340
16374
  return 1;
16341
16375
  }
16342
16376
  return runRunsRerunCommand(runId, {
16343
- ...options.json === void 0 ? {} : { json: Boolean(options.json) }
16377
+ ...options.json === void 0 ? {} : { json: Boolean(options.json) },
16378
+ ...rerunArgs.idempotencyKey === void 0 ? {} : { idempotencyKey: rerunArgs.idempotencyKey },
16379
+ ...rerunArgs.inputOverrides === void 0 ? {} : { inputOverrides: rerunArgs.inputOverrides }
16344
16380
  });
16345
16381
  }
16346
16382
  async function runPlayCommand(target, options, command) {
@@ -16355,14 +16391,14 @@ JSON field selection:
16355
16391
  passthroughArgs.shift();
16356
16392
  }
16357
16393
  const exitCode = await handlePlayRun(
16358
- _chunk4DFWDA2Qjs.resolvePlayRunCliOptions.call(void 0,
16394
+ _chunkATATJNJ6js.resolvePlayRunCliOptions.call(void 0,
16359
16395
  _nullishCoalesce(effectiveTarget, () => ( void 0)),
16360
16396
  options,
16361
16397
  passthroughArgs,
16362
- _chunkDNJJ3ULJjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16398
+ _chunkANKD3AIRjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16363
16399
  )
16364
16400
  );
16365
- _chunkDNJJ3ULJjs.recordCliTrace.call(void 0, {
16401
+ _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
16366
16402
  phase: "cli.play_command_exit",
16367
16403
  exitCode
16368
16404
  });
@@ -16411,9 +16447,9 @@ Examples:
16411
16447
  const limit = Number(options.historyLimit);
16412
16448
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16413
16449
  throw new Error("--history-limit must be an integer from 1 to 30.");
16414
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
16450
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
16415
16451
  if (options.binding) {
16416
- _chunkDRDZBRXVjs.printCompactJson.call(void 0,
16452
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0,
16417
16453
  await client.getPlayTriggerHistory(options.binding, { limit })
16418
16454
  );
16419
16455
  return;
@@ -16421,7 +16457,7 @@ Examples:
16421
16457
  const result = await client.listPlayTriggerInventory({
16422
16458
  cursor: options.cursor
16423
16459
  });
16424
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, {
16460
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, {
16425
16461
  ...result,
16426
16462
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16427
16463
  });
@@ -16480,7 +16516,7 @@ Examples:
16480
16516
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16481
16517
  throw new Error("--group-by must be kind or trigger_source.");
16482
16518
  }
16483
- const result = await new (0, _chunk7JEN3FX4js.DeeplineClient)().getPlaysActivity({
16519
+ const result = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().getPlaysActivity({
16484
16520
  timeZone: options.timeZone,
16485
16521
  days,
16486
16522
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16494,7 +16530,7 @@ Examples:
16494
16530
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16495
16531
  );
16496
16532
  }
16497
- _chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
16533
+ _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
16498
16534
  { ...result },
16499
16535
  {
16500
16536
  json: Boolean(options.json),
@@ -16523,7 +16559,7 @@ Examples:
16523
16559
  false
16524
16560
  );
16525
16561
  });
16526
- _chunkGVKW3LCAjs.registerDeprecatedSearchCommand.call(void 0,
16562
+ _chunk7QM6DNR4js.registerDeprecatedSearchCommand.call(void 0,
16527
16563
  play,
16528
16564
  (options) => options.all ? ["plays"] : ["prebuilts"]
16529
16565
  );
@@ -16564,9 +16600,9 @@ Examples:
16564
16600
  "--json [fields]",
16565
16601
  "JSON output; optionally select comma-separated dotted paths"
16566
16602
  );
16567
- _chunk5H22VJPEjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16603
+ _chunkYXVYPYIPjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16568
16604
  async (target, options) => {
16569
- const ownView = () => handlePlayDescribe(_chunkDRDZBRXVjs.describeArgs.call(void 0, target, options));
16605
+ const ownView = () => handlePlayDescribe(_chunkGTGJBZVHjs.describeArgs.call(void 0, target, options));
16570
16606
  const [flagText] = [options.json].filter(
16571
16607
  (value) => typeof value === "string"
16572
16608
  );
@@ -16577,7 +16613,7 @@ Examples:
16577
16613
  process.exitCode = await ownView();
16578
16614
  return;
16579
16615
  }
16580
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-EB336DAO.js")));
16616
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-5G5NXO5E.js")));
16581
16617
  process.exitCode = await describeAnything(
16582
16618
  name,
16583
16619
  {
@@ -16695,7 +16731,7 @@ Examples:
16695
16731
  deepline plays deployments <deployment-id>
16696
16732
  `
16697
16733
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16698
- async (id, options) => id ? _chunkF5D623KOjs.handleDeploymentGet.call(void 0, id, options) : _chunkF5D623KOjs.handleDeploymentsList.call(void 0, options)
16734
+ async (id, options) => id ? _chunkWOEPDSO3js.handleDeploymentGet.call(void 0, id, options) : _chunkWOEPDSO3js.handleDeploymentsList.call(void 0, options)
16699
16735
  );
16700
16736
  addPublishHelp(
16701
16737
  play.command("publish <target>").description(
@@ -16830,14 +16866,14 @@ Examples:
16830
16866
  const limit = Number(options.limit);
16831
16867
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
16832
16868
  throw new Error("--limit must be an integer from 1 to 1000.");
16833
- const result = await new (0, _chunk7JEN3FX4js.DeeplineClient)().runs.rowHistory({
16869
+ const result = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().runs.rowHistory({
16834
16870
  playName: options.play,
16835
16871
  runId,
16836
16872
  tableNamespace: options.dataset,
16837
16873
  limit,
16838
16874
  cursor: options.cursor
16839
16875
  });
16840
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, {
16876
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, {
16841
16877
  ...result,
16842
16878
  ...result.nextCursor ? {
16843
16879
  next: `deepline runs rows-history ${_chunkAID3OYVJjs.shellQuote.call(void 0, runId)} --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, result.nextCursor)} --json`
@@ -16915,7 +16951,7 @@ Examples:
16915
16951
  new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
16916
16952
  ).action(async (runId, options) => {
16917
16953
  if (TOOL_EXECUTION_ID.test(runId)) {
16918
- const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-ROUMCB7B.js")));
16954
+ const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-RZJV4X3J.js")));
16919
16955
  process.exitCode = await getToolExecutionReceipt(runId, {
16920
16956
  receiptJson: options.json !== void 0
16921
16957
  });
@@ -16923,7 +16959,7 @@ Examples:
16923
16959
  }
16924
16960
  process.exitCode = await handleRunGet([
16925
16961
  runId,
16926
- ..._chunkDRDZBRXVjs.jsonFieldArgs.call(void 0, options.json),
16962
+ ..._chunkGTGJBZVHjs.jsonFieldArgs.call(void 0, options.json),
16927
16963
  ...options.web ? ["--web"] : [],
16928
16964
  ...options.webUrl ? ["--web-url"] : [],
16929
16965
  ...options.full ? ["--full"] : [],
@@ -16948,9 +16984,12 @@ Notes:
16948
16984
  side effect.
16949
16985
  Every call sends an Idempotency-Key. Pass --idempotency-key to reuse the
16950
16986
  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.
16987
+ lost response). A key deduplicates only the exact same rerun intent: the
16988
+ same source run, the same --input-overrides (the resulting input) and the
16989
+ same pinned revision return the one rerun that key started, and the JSON
16990
+ result reports deduplicated: true. The same key with a changed input is
16991
+ refused with a 409 conflict and starts nothing. Use one stable key per
16992
+ exact intent; a different key intentionally starts another rerun.
16954
16993
 
16955
16994
  Examples:
16956
16995
  deepline runs rerun play/my-play/webhook/abc
@@ -17240,7 +17279,7 @@ Examples:
17240
17279
  ...options.allowEmpty ? ["--allow-empty"] : [],
17241
17280
  ...options.wait ? ["--wait"] : [],
17242
17281
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17243
- ..._chunkDRDZBRXVjs.jsonFieldArgs.call(void 0, options.json)
17282
+ ..._chunkGTGJBZVHjs.jsonFieldArgs.call(void 0, options.json)
17244
17283
  ]);
17245
17284
  });
17246
17285
  const share = play.command("share").description(
@@ -17406,10 +17445,10 @@ async function handlePlayShareStatus(args) {
17406
17445
  return 2;
17407
17446
  }
17408
17447
  const name = parseReferencedPlayTarget(target).playName;
17409
- const status = await new (0, _chunk7JEN3FX4js.DeeplineClient)().getSharePage(name);
17448
+ const status = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().getSharePage(name);
17410
17449
  const outputStatus = shareStatusForOutput(status);
17411
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
17412
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, outputStatus);
17450
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
17451
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, outputStatus);
17413
17452
  return 0;
17414
17453
  }
17415
17454
  if (!outputStatus.share) {
@@ -17448,7 +17487,7 @@ async function handlePlaySharePublish(args) {
17448
17487
  return 2;
17449
17488
  }
17450
17489
  const name = parseReferencedPlayTarget(target).playName;
17451
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
17490
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
17452
17491
  let revisionId = shareFlagValue(args, "--revision-id");
17453
17492
  let resolvedVersion;
17454
17493
  if (!revisionId) {
@@ -17479,8 +17518,8 @@ async function handlePlaySharePublish(args) {
17479
17518
  );
17480
17519
  if (!hasCompleted) {
17481
17520
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17482
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
17483
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, {
17521
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
17522
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, {
17484
17523
  ok: false,
17485
17524
  code: "NO_SUCCESSFUL_RUN",
17486
17525
  message,
@@ -17504,8 +17543,8 @@ async function handlePlaySharePublish(args) {
17504
17543
  };
17505
17544
  if (args.includes("--dry-run")) {
17506
17545
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17507
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
17508
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, plan);
17546
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
17547
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, plan);
17509
17548
  } else {
17510
17549
  console.log(
17511
17550
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17515,8 +17554,8 @@ async function handlePlaySharePublish(args) {
17515
17554
  }
17516
17555
  const status = await client.publishSharePage(name, request);
17517
17556
  const outputStatus = shareStatusForOutput(status);
17518
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
17519
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, outputStatus);
17557
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
17558
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, outputStatus);
17520
17559
  return 0;
17521
17560
  }
17522
17561
  const urls = shareUrlFields(outputStatus);
@@ -17547,9 +17586,9 @@ async function handlePlayShareUpdate(args) {
17547
17586
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17548
17587
  ...seoIndexing ? { seoIndexing } : {}
17549
17588
  };
17550
- const status = await new (0, _chunk7JEN3FX4js.DeeplineClient)().updateSharePage(name, request);
17551
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
17552
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, status);
17589
+ const status = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().updateSharePage(name, request);
17590
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
17591
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, status);
17553
17592
  return 0;
17554
17593
  }
17555
17594
  console.log(`Updated ${name} share settings.`);
@@ -17564,7 +17603,7 @@ async function handlePlayShareRegenerate(args) {
17564
17603
  return 2;
17565
17604
  }
17566
17605
  const name = parseReferencedPlayTarget(target).playName;
17567
- const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
17606
+ const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
17568
17607
  let revisionId = shareFlagValue(args, "--revision-id");
17569
17608
  const versionFlag = shareFlagValue(args, "--version");
17570
17609
  if (!revisionId && versionFlag) {
@@ -17581,8 +17620,8 @@ async function handlePlayShareRegenerate(args) {
17581
17620
  revisionId ? { revisionId } : {}
17582
17621
  );
17583
17622
  const outputStatus = shareStatusForOutput(status);
17584
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
17585
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, outputStatus);
17623
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
17624
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, outputStatus);
17586
17625
  return 0;
17587
17626
  }
17588
17627
  const urls = shareUrlFields(outputStatus);
@@ -17607,9 +17646,9 @@ async function handlePlayShareUnpublish(args) {
17607
17646
  return 2;
17608
17647
  }
17609
17648
  const name = parseReferencedPlayTarget(target).playName;
17610
- const status = await new (0, _chunk7JEN3FX4js.DeeplineClient)().unpublishSharePage(name);
17611
- if (_chunkDRDZBRXVjs.argsWantJson.call(void 0, args)) {
17612
- _chunkDRDZBRXVjs.printCompactJson.call(void 0, status);
17649
+ const status = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().unpublishSharePage(name);
17650
+ if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
17651
+ _chunkGTGJBZVHjs.printCompactJson.call(void 0, status);
17613
17652
  return 0;
17614
17653
  }
17615
17654
  console.log(`Unpublished ${name}; the public page has been removed.`);
@@ -17686,4 +17725,5 @@ async function handlePlayShareUnpublish(args) {
17686
17725
 
17687
17726
 
17688
17727
 
17689
- exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunk4DFWDA2Qjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunk4DFWDA2Qjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
17728
+
17729
+ exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkATATJNJ6js.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkATATJNJ6js.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.takeFromRunRerunArgs = takeFromRunRerunArgs; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;