deepline 0.3.524 → 0.3.526

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/agent-runtime.ts +98 -0
  2. package/dist/bundling-sources/sdk/src/client-core.ts +8 -0
  3. package/dist/bundling-sources/sdk/src/http-core.ts +14 -0
  4. package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -0
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/types.ts +10 -0
  7. package/dist/bundling-sources/shared_libs/observability/dlq.ts +33 -5
  8. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  9. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +38 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +94 -9
  12. package/dist/bundling-sources/shared_libs/play-runtime/run-failure-class.ts +98 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/run-retry-summary.ts +202 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +60 -8
  15. package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +112 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +39 -1
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +2 -2
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +52 -5
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +10 -1
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-retry-facts.ts +62 -0
  21. package/dist/cli/{auth-QXJMVLPN.mjs → auth-JATW5XZE.mjs} +5 -5
  22. package/dist/cli/auth-L2POG3LL.js +43 -0
  23. package/dist/cli/{billing-N5R4HTHT.js → billing-TSHBJIJS.js} +83 -83
  24. package/dist/cli/{billing-SNSIFM4B.mjs → billing-UT5LIESH.mjs} +8 -8
  25. package/dist/cli/{chunk-PFKWKWUJ.mjs → chunk-26ULNPQ7.mjs} +2 -2
  26. package/dist/cli/{chunk-OQ5G7RFQ.mjs → chunk-2GJW4RAQ.mjs} +70 -3
  27. package/dist/cli/{chunk-HLAFGQPV.mjs → chunk-2JNX3MDG.mjs} +5 -2
  28. package/dist/cli/{chunk-V7KUBDEB.js → chunk-3MYI3IXW.js} +144 -141
  29. package/dist/cli/{chunk-WOEPDSO3.js → chunk-3ZEV5BS5.js} +26 -26
  30. package/dist/cli/{chunk-ATATJNJ6.js → chunk-46HEYGLY.js} +9 -9
  31. package/dist/cli/{chunk-I75VRGQG.js → chunk-477PXM65.js} +22 -22
  32. package/dist/cli/{chunk-RVHUW4TN.js → chunk-5YAJGRWB.js} +17 -17
  33. package/dist/cli/{chunk-T43FF5PF.mjs → chunk-6COGHW7B.mjs} +2 -2
  34. package/dist/cli/{chunk-V4RJ57MA.js → chunk-6DHEV6IA.js} +2 -2
  35. package/dist/cli/{chunk-VHTVXS5A.js → chunk-6H56LKJB.js} +16 -16
  36. package/dist/cli/{chunk-YKFW3NNA.mjs → chunk-6JMWATX5.mjs} +5 -5
  37. package/dist/cli/{chunk-II3BJKCH.mjs → chunk-77RAGJIZ.mjs} +2 -2
  38. package/dist/cli/{chunk-ITJ7NB2D.mjs → chunk-7AOFSZJM.mjs} +3 -1
  39. package/dist/cli/{chunk-OCT4SUJA.js → chunk-7COEN3IR.js} +146 -79
  40. package/dist/cli/{chunk-XURWFEXM.mjs → chunk-7FCD34YS.mjs} +31 -17
  41. package/dist/cli/{chunk-BXVYVIMB.js → chunk-B33J4YCC.js} +3 -3
  42. package/dist/cli/{chunk-RTDX5NNN.mjs → chunk-BFH3DJYV.mjs} +84 -57
  43. package/dist/cli/{chunk-GJYLC4JB.mjs → chunk-BNH4Y35W.mjs} +2 -2
  44. package/dist/cli/{chunk-GMO3JDZA.mjs → chunk-BVITYMBK.mjs} +2 -2
  45. package/dist/cli/{chunk-7QM6DNR4.js → chunk-BYEF4RBX.js} +11 -11
  46. package/dist/cli/{chunk-536TGWR6.mjs → chunk-C3EW6I65.mjs} +2 -2
  47. package/dist/cli/{chunk-HTYT2OHB.js → chunk-CDP3LMDT.js} +6 -6
  48. package/dist/cli/{chunk-YXVYPYIP.js → chunk-CYN2AHR6.js} +10 -10
  49. package/dist/cli/{chunk-CH7JVSA7.mjs → chunk-D2XMFXFM.mjs} +8 -8
  50. package/dist/cli/{chunk-2ZWNIS54.js → chunk-D5OEUPPM.js} +269 -269
  51. package/dist/cli/{chunk-FXTV5B3D.mjs → chunk-DY2AT3JQ.mjs} +12 -12
  52. package/dist/cli/{chunk-Z4MOEQSY.js → chunk-ED2N4NRI.js} +21 -21
  53. package/dist/cli/{chunk-RIX26ZJD.mjs → chunk-EEYZLTXX.mjs} +1 -1
  54. package/dist/cli/{chunk-7E6B7VMS.js → chunk-F5KFGF45.js} +5 -5
  55. package/dist/cli/{chunk-TZTWH53O.js → chunk-FMPGWAIR.js} +1 -1
  56. package/dist/cli/{chunk-R2VZVHJP.mjs → chunk-GESIFFQX.mjs} +1 -1
  57. package/dist/cli/{chunk-YCIXY66B.mjs → chunk-HPACLONQ.mjs} +2 -2
  58. package/dist/cli/{chunk-WCVIPZWX.mjs → chunk-IMP7WR22.mjs} +5 -5
  59. package/dist/cli/{chunk-KSQXBLRW.mjs → chunk-IWLDJQGV.mjs} +3 -3
  60. package/dist/cli/{chunk-EQNAQENZ.js → chunk-J5OXJ4JI.js} +2 -2
  61. package/dist/cli/{chunk-NUC7ZVDG.mjs → chunk-MQB25LMV.mjs} +5 -5
  62. package/dist/cli/{chunk-RUULUCBP.js → chunk-O7WUATQC.js} +97 -70
  63. package/dist/cli/{chunk-NMU3VR5U.js → chunk-PMH4GLMD.js} +1 -0
  64. package/dist/cli/{chunk-S3A4IXBQ.mjs → chunk-PSX3WHIH.mjs} +1 -0
  65. package/dist/cli/{chunk-LRWDZDBS.js → chunk-RZJWHL7L.js} +5 -5
  66. package/dist/cli/{chunk-66N76YZG.js → chunk-SCLRGDF4.js} +44 -44
  67. package/dist/cli/{chunk-SMWFOGUT.js → chunk-SJ6KUCGM.js} +53 -53
  68. package/dist/cli/{chunk-PFKKZVFK.js → chunk-TBQC2XS3.js} +41 -41
  69. package/dist/cli/{chunk-2ZX7XSAQ.mjs → chunk-TCLJXJAG.mjs} +4 -4
  70. package/dist/cli/{chunk-YGOI5ZE5.mjs → chunk-TVHDWS5U.mjs} +1 -1
  71. package/dist/cli/{chunk-MW3YMPD2.mjs → chunk-TXJW6RIM.mjs} +1 -1
  72. package/dist/cli/{chunk-KKPBCB6D.mjs → chunk-U6OUX47C.mjs} +2 -2
  73. package/dist/cli/{chunk-GTGJBZVH.js → chunk-UTCGCES2.js} +7 -7
  74. package/dist/cli/{chunk-V2YIBBVT.mjs → chunk-UUIC2JFZ.mjs} +1 -1
  75. package/dist/cli/{chunk-JDIQBZ6O.js → chunk-UWCEBS7F.js} +14 -14
  76. package/dist/cli/{chunk-ANKD3AIR.js → chunk-WBY3R55B.js} +2 -2
  77. package/dist/cli/{chunk-SF4QJVBE.js → chunk-WITNIMLE.js} +3 -3
  78. package/dist/cli/{chunk-7OQGZBDG.js → chunk-WL6GAZBD.js} +31 -17
  79. package/dist/cli/{chunk-R457IMHJ.mjs → chunk-WOLY6SU4.mjs} +1 -1
  80. package/dist/cli/{chunk-3WWTBQHC.mjs → chunk-XVIMOB2U.mjs} +2 -2
  81. package/dist/cli/{chunk-NTLBZUHD.js → chunk-XYIECA7M.js} +4 -2
  82. package/dist/cli/{chunk-BXIQD2IY.mjs → chunk-Y47OCS5V.mjs} +1 -1
  83. package/dist/cli/{chunk-EO55Y4QW.mjs → chunk-YNFPZVII.mjs} +5 -5
  84. package/dist/cli/{chunk-BN5VKY4X.js → chunk-ZS2WHWWL.js} +7 -7
  85. package/dist/cli/command-docs.js +2 -2
  86. package/dist/cli/command-docs.mjs +1 -1
  87. package/dist/cli/{csv-HT2JBCW2.mjs → csv-4BLFRED6.mjs} +4 -4
  88. package/dist/cli/{csv-Q2LWKXAV.js → csv-KSJB5Z3M.js} +13 -13
  89. package/dist/cli/{db-XEV4WEE4.js → db-G7Z5CKO2.js} +28 -28
  90. package/dist/cli/{db-CS3XQ2LX.mjs → db-OVW6C3DV.mjs} +7 -7
  91. package/dist/cli/describe-KMYR2JBC.js +50 -0
  92. package/dist/cli/describe-OEFTD7WQ.mjs +50 -0
  93. package/dist/cli/describe-core.d.mts +4 -2
  94. package/dist/cli/describe-core.d.ts +4 -2
  95. package/dist/cli/describe-core.js +5 -5
  96. package/dist/cli/describe-core.mjs +4 -4
  97. package/dist/cli/{executions-L6XFG5MP.mjs → executions-7ZKQ4ZU3.mjs} +7 -7
  98. package/dist/cli/{executions-JCC34WAD.js → executions-O7USCBCW.js} +9 -9
  99. package/dist/cli/{feedback-AWBDO5I6.mjs → feedback-KUBL5E3I.mjs} +61 -13
  100. package/dist/cli/{feedback-HV2M2G7N.js → feedback-Y55WCRIQ.js} +65 -17
  101. package/dist/cli/{git-S4LRXTRX.mjs → git-C6ZAU5JA.mjs} +5 -5
  102. package/dist/cli/git-NBVQ3VGW.js +25 -0
  103. package/dist/cli/index.js +145 -145
  104. package/dist/cli/index.mjs +44 -44
  105. package/dist/cli/{legacy-noops-7MOKBL4O.mjs → legacy-noops-MUXD4HRC.mjs} +6 -6
  106. package/dist/cli/{legacy-noops-RGSZUD6V.js → legacy-noops-OVWX4KB3.js} +9 -9
  107. package/dist/cli/{monitors-XQNXDZPQ.mjs → monitors-2ZSGBY52.mjs} +8 -8
  108. package/dist/cli/{monitors-JEFM2C5W.js → monitors-3QVYGYWA.js} +101 -101
  109. package/dist/cli/{org-KTMJZGTN.mjs → org-RDSPE5FB.mjs} +7 -7
  110. package/dist/cli/{org-GYLA5V32.js → org-S6Z3SDLI.js} +87 -87
  111. package/dist/cli/{pages-WOMU2T2O.mjs → pages-K5DSMHLJ.mjs} +7 -7
  112. package/dist/cli/{pages-RY4U7OCL.js → pages-VUWF2OR7.js} +19 -19
  113. package/dist/cli/{play-KOYGGNYS.mjs → play-PZLXOYEX.mjs} +151 -102
  114. package/dist/cli/{play-2Q6MWJ3D.js → play-SQOJTUFC.js} +756 -707
  115. package/dist/cli/{providers-7YKDITJC.mjs → providers-AMIGP3D4.mjs} +7 -7
  116. package/dist/cli/{providers-HOIRHMN2.js → providers-FZBEPUOI.js} +10 -10
  117. package/dist/cli/{quickstart-RDXHSMVX.mjs → quickstart-HNOQKGOF.mjs} +4 -4
  118. package/dist/cli/{quickstart-OWCJOSQA.js → quickstart-QIHZDBGM.js} +6 -6
  119. package/dist/cli/{run-MT2ABKO5.js → run-IQGM3TO2.js} +46 -46
  120. package/dist/cli/{run-RT73NDP5.mjs → run-JDW6BDNT.mjs} +27 -27
  121. package/dist/cli/search-BNWRL3YY.js +33 -0
  122. package/dist/cli/{search-CJPKIGSA.mjs → search-DMVUKJ23.mjs} +9 -9
  123. package/dist/cli/{search-output-AREMA544.mjs → search-output-5UAPUUHH.mjs} +4 -4
  124. package/dist/cli/{search-output-OSBZ7WK6.js → search-output-UUW6UNHF.js} +6 -6
  125. package/dist/cli/{secrets-BTIY2FEJ.mjs → secrets-46KSTPFN.mjs} +7 -7
  126. package/dist/cli/{secrets-OV6KH633.js → secrets-U532KN24.js} +16 -16
  127. package/dist/cli/sessions-JZUONXH4.js +22 -0
  128. package/dist/cli/sessions-RUNWYHYX.mjs +22 -0
  129. package/dist/cli/{settings-7BQIC7QN.mjs → settings-56L3WHCY.mjs} +14 -14
  130. package/dist/cli/{settings-LBIECYDB.js → settings-O2A37FFA.js} +87 -87
  131. package/dist/cli/{setup-QZE7QR3F.js → setup-ETFSMSCH.js} +50 -50
  132. package/dist/cli/{setup-XPTSNNES.mjs → setup-Q27X6JZY.mjs} +10 -10
  133. package/dist/cli/skills-IKDJ5JDN.js +37 -0
  134. package/dist/cli/{skills-TGGKIQLT.mjs → skills-WFQRZL4D.mjs} +8 -8
  135. package/dist/cli/tools-B735AA67.js +57 -0
  136. package/dist/cli/{tools-MKIFX2TQ.mjs → tools-EV6CKJOX.mjs} +20 -20
  137. package/dist/cli/update-CNNURAM3.js +35 -0
  138. package/dist/cli/{update-5R3D3WNH.mjs → update-KIPPFVCH.mjs} +10 -10
  139. package/dist/cli/{views-VPWEINIA.js → views-DNZ2HFTA.js} +19 -19
  140. package/dist/cli/{views-VHKDHHUP.mjs → views-LMJXWD4N.mjs} +7 -7
  141. package/dist/cli/{workflow-D5DF65N6.mjs → workflow-3XKUQ73U.mjs} +8 -8
  142. package/dist/cli/{workflow-7K2VEQ4V.js → workflow-ZUDTIOK6.js} +18 -18
  143. package/dist/{client-C5_6W8yd.d.mts → client-Bd2meveV.d.mts} +1 -1
  144. package/dist/{client-iXW4TOat.d.ts → client-CBCVhL8U.d.ts} +1 -1
  145. package/dist/{client-core-Dob428Z4.d.mts → client-core-CGj8V9mw.d.mts} +67 -0
  146. package/dist/{client-core-B-GPfmaC.d.ts → client-core-CsRRWCFy.d.ts} +67 -0
  147. package/dist/index.d.mts +3 -3
  148. package/dist/index.d.ts +3 -3
  149. package/dist/index.js +10 -10
  150. package/dist/index.mjs +7 -7
  151. package/dist/install-integrity.json +121 -118
  152. package/dist/plays/play-description.d.mts +1 -1
  153. package/dist/plays/play-description.d.ts +1 -1
  154. package/dist/plays/play-description.js +2 -2
  155. package/dist/plays/play-description.mjs +1 -1
  156. package/dist/plays/run-request.d.mts +1 -1
  157. package/dist/plays/run-request.d.ts +1 -1
  158. package/dist/release.d.mts +1 -1
  159. package/dist/release.d.ts +1 -1
  160. package/dist/release.js +2 -2
  161. package/dist/release.mjs +1 -1
  162. package/dist/server.d.mts +2 -2
  163. package/dist/server.d.ts +2 -2
  164. package/dist/server.js +6 -6
  165. package/dist/server.mjs +4 -4
  166. package/package.json +1 -1
  167. package/dist/cli/auth-OKPHHMMP.js +0 -43
  168. package/dist/cli/describe-5G5NXO5E.js +0 -50
  169. package/dist/cli/describe-OUTXLDGZ.mjs +0 -50
  170. package/dist/cli/git-GDPTG52F.js +0 -25
  171. package/dist/cli/search-7VBA6IGS.js +0 -33
  172. package/dist/cli/sessions-3CO3ZFOD.mjs +0 -18
  173. package/dist/cli/sessions-B3WNEWRW.js +0 -18
  174. package/dist/cli/skills-TXBRTWEV.js +0 -37
  175. package/dist/cli/tools-RZJV4X3J.js +0 -57
  176. package/dist/cli/update-YWGGPWUA.js +0 -35
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkATATJNJ6js = require('./chunk-ATATJNJ6.js');
8
+ var _chunk46HEYGLYjs = require('./chunk-46HEYGLY.js');
9
9
 
10
10
 
11
11
 
@@ -18,19 +18,19 @@ var _chunkATATJNJ6js = require('./chunk-ATATJNJ6.js');
18
18
 
19
19
 
20
20
 
21
- var _chunkYXVYPYIPjs = require('./chunk-YXVYPYIP.js');
21
+ var _chunkCYN2AHR6js = require('./chunk-CYN2AHR6.js');
22
22
 
23
23
 
24
- var _chunk7QM6DNR4js = require('./chunk-7QM6DNR4.js');
24
+ var _chunkBYEF4RBXjs = require('./chunk-BYEF4RBX.js');
25
25
  require('./chunk-D3BCSAN7.js');
26
26
 
27
27
 
28
28
 
29
- var _chunkWOEPDSO3js = require('./chunk-WOEPDSO3.js');
29
+ var _chunk3ZEV5BS5js = require('./chunk-3ZEV5BS5.js');
30
30
 
31
31
 
32
32
 
33
- var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
33
+ var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
34
34
 
35
35
 
36
36
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
@@ -51,10 +51,10 @@ var _chunkNRO3NTVOjs = require('./chunk-NRO3NTVO.js');
51
51
 
52
52
 
53
53
 
54
- var _chunk7E6B7VMSjs = require('./chunk-7E6B7VMS.js');
54
+ var _chunkF5KFGF45js = require('./chunk-F5KFGF45.js');
55
55
 
56
56
 
57
- var _chunkLRWDZDBSjs = require('./chunk-LRWDZDBS.js');
57
+ var _chunkRZJWHL7Ljs = require('./chunk-RZJWHL7L.js');
58
58
 
59
59
 
60
60
 
@@ -67,7 +67,7 @@ var _chunkLRWDZDBSjs = require('./chunk-LRWDZDBS.js');
67
67
 
68
68
 
69
69
 
70
- var _chunkV7KUBDEBjs = require('./chunk-V7KUBDEB.js');
70
+ var _chunk3MYI3IXWjs = require('./chunk-3MYI3IXW.js');
71
71
  require('./chunk-E4CABWXL.js');
72
72
 
73
73
 
@@ -86,24 +86,24 @@ var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
86
86
 
87
87
 
88
88
 
89
- var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
89
+ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
90
90
  require('./chunk-XDVT3GOM.js');
91
91
 
92
92
 
93
93
 
94
- var _chunkHTYT2OHBjs = require('./chunk-HTYT2OHB.js');
94
+ var _chunkCDP3LMDTjs = require('./chunk-CDP3LMDT.js');
95
95
 
96
96
 
97
97
 
98
98
 
99
99
 
100
- var _chunkANKD3AIRjs = require('./chunk-ANKD3AIR.js');
101
- require('./chunk-66N76YZG.js');
100
+ var _chunkWBY3R55Bjs = require('./chunk-WBY3R55B.js');
101
+ require('./chunk-SCLRGDF4.js');
102
102
 
103
103
 
104
104
 
105
- var _chunkBXVYVIMBjs = require('./chunk-BXVYVIMB.js');
106
- require('./chunk-JDIQBZ6O.js');
105
+ var _chunkB33J4YCCjs = require('./chunk-B33J4YCC.js');
106
+ require('./chunk-UWCEBS7F.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 _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
127
- require('./chunk-SF4QJVBE.js');
126
+ var _chunkUTCGCES2js = require('./chunk-UTCGCES2.js');
127
+ require('./chunk-WITNIMLE.js');
128
128
 
129
129
 
130
- var _chunkOCT4SUJAjs = require('./chunk-OCT4SUJA.js');
130
+ var _chunk7COEN3IRjs = require('./chunk-7COEN3IR.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-TZTWH53O.js');
136
+ require('./chunk-FMPGWAIR.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
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2118
+ _chunkUTCGCES2js.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
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2162
+ _chunkUTCGCES2js.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, _chunkLRWDZDBSjs.DeeplineClient)().getPlaySettings(options.play),
2187
+ await new (0, _chunkRZJWHL7Ljs.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
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2218
+ _chunkUTCGCES2js.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, _chunkLRWDZDBSjs.DeeplineClient)().updatePlaySettings(play, patch),
2239
+ await new (0, _chunkRZJWHL7Ljs.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, _chunkLRWDZDBSjs.DeeplineClient)().listPlaySettingsPaths({
2265
+ const page = await new (0, _chunkRZJWHL7Ljs.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
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2271
+ _chunkUTCGCES2js.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, _chunkLRWDZDBSjs.DeeplineClient)();
2322
+ const client = new (0, _chunkRZJWHL7Ljs.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
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2384
+ _chunkUTCGCES2js.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
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2512
+ _chunkUTCGCES2js.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
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2525
+ _chunkUTCGCES2js.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
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
2555
+ _chunkUTCGCES2js.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, _chunkLRWDZDBSjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2574
+ await new (0, _chunkRZJWHL7Ljs.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, _chunkLRWDZDBSjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2607
+ await new (0, _chunkRZJWHL7Ljs.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, _chunkLRWDZDBSjs.DeeplineClient)().getPlayTriggerConfig(
2651
+ const current = await new (0, _chunkRZJWHL7Ljs.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 = _chunkV7KUBDEBjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2728
+ var RUN_LOGS_KIND_HELP = _chunk3MYI3IXWjs.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 (_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), {
2865
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2866
+ _chunkUTCGCES2js.printJsonError.call(void 0,
2867
+ Object.assign(new (0, _chunk3MYI3IXWjs.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, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2911
+ throw new (0, _chunk3MYI3IXWjs.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, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2918
+ throw new (0, _chunk3MYI3IXWjs.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, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2932
+ throw new (0, _chunk3MYI3IXWjs.RunEventQueryInputError)(
2933
2933
  `Unsupported query flag ${flag}. ${correction}`
2934
2934
  );
2935
2935
  }
2936
2936
  if (runId !== void 0) {
2937
- throw new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2937
+ throw new (0, _chunk3MYI3IXWjs.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, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2945
+ throw new (0, _chunk3MYI3IXWjs.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, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2958
+ throw new (0, _chunk3MYI3IXWjs.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, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2964
+ throw new (0, _chunk3MYI3IXWjs.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, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2969
+ throw new (0, _chunk3MYI3IXWjs.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, _chunkV7KUBDEBjs.RunEventQueryInputError)(
2977
+ throw new (0, _chunk3MYI3IXWjs.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 = _chunkV7KUBDEBjs.normalizeRunEventOperationRequest.call(void 0, body);
3012
+ const request = _chunk3MYI3IXWjs.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, _chunkV7KUBDEBjs.RunEventQueryInputError)(
3016
+ throw new (0, _chunk3MYI3IXWjs.RunEventQueryInputError)(
3017
3017
  "--runtime-backend must be daytona or modal."
3018
3018
  );
3019
3019
  }
3020
3020
  if (backend && !namespace) {
3021
- throw new (0, _chunkV7KUBDEBjs.RunEventQueryInputError)(
3021
+ throw new (0, _chunk3MYI3IXWjs.RunEventQueryInputError)(
3022
3022
  "--runtime-backend requires --runtime-namespace."
3023
3023
  );
3024
3024
  }
@@ -3063,14 +3063,14 @@ async function handleRunEventQuery(args, resource = "logs") {
3063
3063
  return await executeRunEventQuery(args, resource);
3064
3064
  } catch (error) {
3065
3065
  const failure = error instanceof Error ? error : new Error(String(error));
3066
- const record3 = failure;
3067
- const status = record3.statusCode;
3068
- const exitCode = error instanceof _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;
3066
+ const record4 = failure;
3067
+ const status = record4.statusCode;
3068
+ const exitCode = error instanceof _chunk3MYI3IXWjs.RunEventQueryInputError || status === 400 || status === 422 || record4.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record4.code === "CONFIG_ERROR" || record4.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3069
3069
  const diagnostic = Object.assign(failure, {
3070
3070
  exitCode,
3071
3071
  retryable: exitCode === 5
3072
3072
  });
3073
- if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) _chunkGTGJBZVHjs.printJsonError.call(void 0, diagnostic);
3073
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) _chunkUTCGCES2js.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, _chunkLRWDZDBSjs.DeeplineClient)();
3088
+ const client = new (0, _chunkRZJWHL7Ljs.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
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
3154
+ _chunkUTCGCES2js.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: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3160
+ { json: _chunkUTCGCES2js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3161
3161
  ` }
3162
3162
  );
3163
3163
  return 0;
@@ -3895,13 +3895,56 @@ function buildRunNavigation(status) {
3895
3895
  };
3896
3896
  }
3897
3897
 
3898
+ // ../play-runtime/run-retry-summary.ts
3899
+ var RUN_RETRY_RECOVERY_OUTCOMES = [
3900
+ "none",
3901
+ "recovering",
3902
+ "recovered",
3903
+ "exhausted"
3904
+ ];
3905
+ function record2(value) {
3906
+ return value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
3907
+ }
3908
+ var MISSING = Symbol("missing");
3909
+ var MALFORMED_STORED_JSON = Symbol("malformed-stored-json");
3910
+ function normalizeRunRetrySummary(value) {
3911
+ const source = record2(value);
3912
+ const recoveries = record2(_optionalChain([source, 'optionalAccess', _93 => _93.platformRecoveries]));
3913
+ const count2 = (field) => Number.isSafeInteger(field) && field >= 0;
3914
+ if (!source || !recoveries || source.scope !== "current_epoch" || !count2(source.resumeEpoch) || !count2(recoveries.preCode) || !count2(recoveries.postCode) || !RUN_RETRY_RECOVERY_OUTCOMES.includes(
3915
+ source.recoveryOutcome
3916
+ )) {
3917
+ return void 0;
3918
+ }
3919
+ return {
3920
+ scope: "current_epoch",
3921
+ resumeEpoch: source.resumeEpoch,
3922
+ platformRecoveries: {
3923
+ preCode: recoveries.preCode,
3924
+ postCode: recoveries.postCode
3925
+ },
3926
+ recoveryOutcome: source.recoveryOutcome
3927
+ };
3928
+ }
3929
+ function formatRunRetrySummary(summary) {
3930
+ const { preCode, postCode } = summary.platformRecoveries;
3931
+ const parts = [
3932
+ preCode + postCode > 0 || summary.recoveryOutcome !== "none" ? `platform recoveries ${preCode} before code, ${postCode} after code (${summary.recoveryOutcome})` : "no platform recovery"
3933
+ ];
3934
+ if (summary.resumeEpoch > 0)
3935
+ parts.push(
3936
+ `resumed ${summary.resumeEpoch} ${summary.resumeEpoch === 1 ? "time" : "times"}; counts are since the last resume`
3937
+ );
3938
+ return parts.join(" \xB7 ");
3939
+ }
3940
+
3898
3941
  // src/cli/play-check-output.ts
3899
- var record2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
3942
+ var record3 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
3900
3943
  function projectCheckedPlay(outcome, full = false) {
3901
3944
  const { result } = outcome;
3902
3945
  const raw = result;
3903
- const contract = record2(raw.authoringContract);
3904
- const pipeline = record2(_nullishCoalesce(result.staticPipeline, () => ( _optionalChain([contract, 'optionalAccess', _93 => _93.staticPipeline]))));
3946
+ const contract = record3(raw.authoringContract);
3947
+ const pipeline = record3(_nullishCoalesce(result.staticPipeline, () => ( _optionalChain([contract, 'optionalAccess', _94 => _94.staticPipeline]))));
3905
3948
  const { inputs, outputs, triggers, tools, ...recognized } = _nullishCoalesce(result.recognized, () => ( {}));
3906
3949
  const issues = [..._nullishCoalesce(result.issues, () => ( []))];
3907
3950
  for (const [severity, messages] of [
@@ -3910,7 +3953,7 @@ function projectCheckedPlay(outcome, full = false) {
3910
3953
  ]) {
3911
3954
  for (const message of messages) {
3912
3955
  if (!issues.some(
3913
- (issue) => issue.severity === severity && (issue.message.trim() === message.trim() || [issue.message.trim(), _optionalChain([issue, 'access', _94 => _94.hint, 'optionalAccess', _95 => _95.trim, 'call', _96 => _96()])].filter(Boolean).join(" ") === message.trim())
3956
+ (issue) => issue.severity === severity && (issue.message.trim() === message.trim() || [issue.message.trim(), _optionalChain([issue, 'access', _95 => _95.hint, 'optionalAccess', _96 => _96.trim, 'call', _97 => _97()])].filter(Boolean).join(" ") === message.trim())
3914
3957
  )) {
3915
3958
  issues.push({ severity, message, code: "check_diagnostic" });
3916
3959
  }
@@ -3952,18 +3995,18 @@ function projectCheckedPlay(outcome, full = false) {
3952
3995
  valid: result.valid,
3953
3996
  ...outcome.stage ? { stage: outcome.stage } : {},
3954
3997
  issues,
3955
- ..._optionalChain([contract, 'optionalAccess', _97 => _97.inputSchema]) ? { inputSchema: contract.inputSchema } : {},
3998
+ ..._optionalChain([contract, 'optionalAccess', _98 => _98.inputSchema]) ? { inputSchema: contract.inputSchema } : {},
3956
3999
  recognized: {
3957
4000
  ...recognized,
3958
4001
  ...inputs ? { rowInputs: inputs } : {},
3959
- ..._optionalChain([pipeline, 'optionalAccess', _98 => _98.returnFields]) ? { outputs: pipeline.returnFields } : outputs ? { outputs } : {},
4002
+ ..._optionalChain([pipeline, 'optionalAccess', _99 => _99.returnFields]) ? { outputs: pipeline.returnFields } : outputs ? { outputs } : {},
3960
4003
  tools: { names: _nullishCoalesce(tools, () => ( [])), coverage: "statically_recognized_only" }
3961
4004
  },
3962
4005
  ..._nullishCoalesce(result.triggers, () => ( triggers)) ? { triggers: _nullishCoalesce(result.triggers, () => ( triggers)) } : {},
3963
4006
  ...result.runtimeLimit ? { runtimeLimit: result.runtimeLimit } : {},
3964
4007
  ...result.limits ? { limits: result.limits } : {},
3965
- ..._optionalChain([result, 'access', _99 => _99.featureFlags, 'optionalAccess', _100 => _100.length]) ? { featureFlags: result.featureFlags } : {},
3966
- ..._optionalChain([result, 'access', _101 => _101.toolGetterHints, 'optionalAccess', _102 => _102.length]) ? { toolGetterHints: result.toolGetterHints } : {},
4008
+ ..._optionalChain([result, 'access', _100 => _100.featureFlags, 'optionalAccess', _101 => _101.length]) ? { featureFlags: result.featureFlags } : {},
4009
+ ..._optionalChain([result, 'access', _102 => _102.toolGetterHints, 'optionalAccess', _103 => _103.length]) ? { toolGetterHints: result.toolGetterHints } : {},
3967
4010
  ...result.sourceHash ? { sourceHash: result.sourceHash } : {},
3968
4011
  ...result.artifactHash ? { artifactHash: result.artifactHash } : {},
3969
4012
  ...result.graphHash ? { graphHash: result.graphHash } : {},
@@ -3972,12 +4015,12 @@ function projectCheckedPlay(outcome, full = false) {
3972
4015
  }
3973
4016
  function checkedRunExample(plays, target) {
3974
4017
  const play = plays.find((item) => item.exportName === "default");
3975
- const schema = record2(_optionalChain([play, 'optionalAccess', _103 => _103.inputSchema]));
3976
- if (!_optionalChain([play, 'optionalAccess', _104 => _104.valid]) || !schema) return void 0;
4018
+ const schema = record3(_optionalChain([play, 'optionalAccess', _104 => _104.inputSchema]));
4019
+ if (!_optionalChain([play, 'optionalAccess', _105 => _105.valid]) || !schema) return void 0;
3977
4020
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3978
4021
  const base = `deepline run ${quote(target)}`;
3979
4022
  return {
3980
- command: `${base}${_chunkNMU3VR5Ujs.playInputExampleArgs.call(void 0, schema)}`,
4023
+ command: `${base}${_chunkPMH4GLMDjs.playInputExampleArgs.call(void 0, schema)}`,
3981
4024
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema."
3982
4025
  };
3983
4026
  }
@@ -4076,7 +4119,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4076
4119
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4077
4120
  );
4078
4121
  }
4079
- const response = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().runs.getReceipts(runId, {
4122
+ const response = await new (0, _chunkRZJWHL7Ljs.DeeplineClient)().runs.getReceipts(runId, {
4080
4123
  keys
4081
4124
  });
4082
4125
  const failed = response.receipts.filter(
@@ -4088,7 +4131,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4088
4131
  JSON.stringify(response, null, 2) + "\n",
4089
4132
  { flag: "wx", mode: 384 }
4090
4133
  );
4091
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
4134
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
4092
4135
  {
4093
4136
  runId,
4094
4137
  out: options.out,
@@ -4098,7 +4141,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4098
4141
  { json: true }
4099
4142
  );
4100
4143
  } else {
4101
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4144
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4102
4145
  }
4103
4146
  if (failed)
4104
4147
  process.exitCode = response.receipts.some(
@@ -4137,7 +4180,7 @@ includes nextCommand when another page is available.
4137
4180
  { exitCode: 2 }
4138
4181
  );
4139
4182
  }
4140
- const page = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().runs.children(parentRunId, {
4183
+ const page = await new (0, _chunkRZJWHL7Ljs.DeeplineClient)().runs.children(parentRunId, {
4141
4184
  launchKey: options.launchKey,
4142
4185
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4143
4186
  limit
@@ -4152,7 +4195,7 @@ includes nextCommand when another page is available.
4152
4195
  "--limit",
4153
4196
  String(limit)
4154
4197
  ].join(" ") : null;
4155
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
4198
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
4156
4199
  {
4157
4200
  parentRunId,
4158
4201
  launchKey: options.launchKey,
@@ -4188,7 +4231,7 @@ async function handleRunsHistory(options) {
4188
4231
  throw new Error("--limit must be a positive integer.");
4189
4232
  }
4190
4233
  }
4191
- const page = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().runs.history({
4234
+ const page = await new (0, _chunkRZJWHL7Ljs.DeeplineClient)().runs.history({
4192
4235
  cursor: options.cursor,
4193
4236
  orgId: options.org,
4194
4237
  search: options.search,
@@ -4204,7 +4247,7 @@ async function handleRunsHistory(options) {
4204
4247
  );
4205
4248
  }
4206
4249
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4207
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
4250
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
4208
4251
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4209
4252
  options.json ? { json: true } : {}
4210
4253
  );
@@ -4230,7 +4273,7 @@ function registerRunHistoryCommand(runs) {
4230
4273
 
4231
4274
  // src/cli/operations/runs-rerun.ts
4232
4275
  async function runRunsRerunCommand(runId, options) {
4233
- const idempotencyKey = _optionalChain([options, 'access', _105 => _105.idempotencyKey, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]);
4276
+ const idempotencyKey = _optionalChain([options, 'access', _106 => _106.idempotencyKey, 'optionalAccess', _107 => _107.trim, 'call', _108 => _108()]);
4234
4277
  if (options.idempotencyKey !== void 0 && (!idempotencyKey || options.idempotencyKey.startsWith("--"))) {
4235
4278
  console.error("--idempotency-key requires a non-empty value.");
4236
4279
  return 1;
@@ -4257,12 +4300,12 @@ async function runRunsRerunCommand(runId, options) {
4257
4300
  }
4258
4301
  }
4259
4302
  if (options.notice) console.error(options.notice);
4260
- const result = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().runs.rerun(runId, {
4303
+ const result = await new (0, _chunkRZJWHL7Ljs.DeeplineClient)().runs.rerun(runId, {
4261
4304
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4262
4305
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4263
4306
  });
4264
- if (_chunkGTGJBZVHjs.shouldEmitJson.call(void 0, options.json)) {
4265
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, result, { json: true });
4307
+ if (_chunkUTCGCES2js.shouldEmitJson.call(void 0, options.json)) {
4308
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, result, { json: true });
4266
4309
  } else if (result.rateLimited) {
4267
4310
  console.log(`
4268
4311
  ${result.rateLimited.message}`);
@@ -4286,7 +4329,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
4286
4329
  // src/cli/operations/runs-resume.ts
4287
4330
  async function runRunsResumeCommand(runId) {
4288
4331
  try {
4289
- const result = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().runs.resume(runId);
4332
+ const result = await new (0, _chunkRZJWHL7Ljs.DeeplineClient)().runs.resume(runId);
4290
4333
  if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
4291
4334
  throw new Error(
4292
4335
  "Invalid resume receipt: expected the requested run and a new positive epoch."
@@ -4383,8 +4426,8 @@ function formatHitShare(count2, total) {
4383
4426
 
4384
4427
  // src/cli/run-hit-counts.ts
4385
4428
  function runTableHitCounts(tableNamespace, summary) {
4386
- const rows = _nullishCoalesce(_optionalChain([summary, 'optionalAccess', _108 => _108.stats, 'optionalAccess', _109 => _109.total]), () => ( 0));
4387
- const filled = _optionalChain([summary, 'optionalAccess', _110 => _110.filled]);
4429
+ const rows = _nullishCoalesce(_optionalChain([summary, 'optionalAccess', _109 => _109.stats, 'optionalAccess', _110 => _110.total]), () => ( 0));
4430
+ const filled = _optionalChain([summary, 'optionalAccess', _111 => _111.filled]);
4388
4431
  if (!filled || rows <= 0) return null;
4389
4432
  const legColumns = new Set(
4390
4433
  Object.values(_nullishCoalesce(summary.cascades, () => ( {}))).flatMap((cascade) => cascade.legs)
@@ -4478,7 +4521,7 @@ function mergeCanonicalRowsInfo(left, right) {
4478
4521
  ...currentTable ? { currentTable: true } : {},
4479
4522
  ...exportUnavailableReason ? {
4480
4523
  exportUnavailableReason,
4481
- ..._optionalChain([unavailableSource, 'optionalAccess', _111 => _111.exportUnavailableMessage]) ? {
4524
+ ..._optionalChain([unavailableSource, 'optionalAccess', _112 => _112.exportUnavailableMessage]) ? {
4482
4525
  exportUnavailableMessage: unavailableSource.exportUnavailableMessage
4483
4526
  } : {}
4484
4527
  } : {}
@@ -4650,7 +4693,7 @@ function totalRowsForDataset(result, datasetPath) {
4650
4693
  const metadata = isRecord(result._metadata) ? result._metadata : null;
4651
4694
  const parentPath = datasetPath.split(".").slice(0, -1).join(".");
4652
4695
  const parent = parentPath ? valueAtPath({ result }, parentPath) : result;
4653
- return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _112 => _112.totalRows]), () => ( _optionalChain([metadata, 'optionalAccess', _113 => _113.rowCount]))), () => ( _optionalChain([metadata, 'optionalAccess', _114 => _114.count]))), () => ( (isRecord(parent) ? _nullishCoalesce(_nullishCoalesce(parent.totalRows, () => ( parent.rowCount)), () => ( parent.count)) : void 0))), () => ( result.totalRows)), () => ( result.rowCount)), () => ( result.count));
4696
+ return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _113 => _113.totalRows]), () => ( _optionalChain([metadata, 'optionalAccess', _114 => _114.rowCount]))), () => ( _optionalChain([metadata, 'optionalAccess', _115 => _115.count]))), () => ( (isRecord(parent) ? _nullishCoalesce(_nullishCoalesce(parent.totalRows, () => ( parent.rowCount)), () => ( parent.count)) : void 0))), () => ( result.totalRows)), () => ( result.rowCount)), () => ( result.count));
4654
4697
  }
4655
4698
  function rowArray(value) {
4656
4699
  if (!Array.isArray(value)) {
@@ -4712,8 +4755,8 @@ function canonicalRowsInfoFromCandidate(input) {
4712
4755
  };
4713
4756
  }
4714
4757
  if (isPackagedDatasetOutput(candidate.value)) {
4715
- const rawRows = _nullishCoalesce(rowArray(_optionalChain([candidate, 'access', _115 => _115.value, 'access', _116 => _116.preview, 'optionalAccess', _117 => _117.rows])), () => ( []));
4716
- const totalRows2 = _nullishCoalesce(_nullishCoalesce(readNumber(candidate.value.rowCount), () => ( readNumber(_optionalChain([candidate, 'access', _118 => _118.value, 'access', _119 => _119.preview, 'optionalAccess', _120 => _120.totalRows])))), () => ( rawRows.length));
4758
+ const rawRows = _nullishCoalesce(rowArray(_optionalChain([candidate, 'access', _116 => _116.value, 'access', _117 => _117.preview, 'optionalAccess', _118 => _118.rows])), () => ( []));
4759
+ const totalRows2 = _nullishCoalesce(_nullishCoalesce(readNumber(candidate.value.rowCount), () => ( readNumber(_optionalChain([candidate, 'access', _119 => _119.value, 'access', _120 => _120.preview, 'optionalAccess', _121 => _121.totalRows])))), () => ( rawRows.length));
4717
4760
  const explicitColumns = Array.isArray(candidate.value.columns) ? candidate.value.columns.filter(
4718
4761
  (column) => typeof column === "string"
4719
4762
  ) : [];
@@ -4809,12 +4852,12 @@ function collectDatasetCandidates(input) {
4809
4852
  }
4810
4853
  function collectCanonicalRowsInfos(statusOrResult) {
4811
4854
  const root = isRecord(statusOrResult) ? statusOrResult : null;
4812
- const result = isRecord(_optionalChain([root, 'optionalAccess', _121 => _121.result])) ? root.result : root;
4855
+ const result = isRecord(_optionalChain([root, 'optionalAccess', _122 => _122.result])) ? root.result : root;
4813
4856
  if (!result) {
4814
4857
  return [];
4815
4858
  }
4816
4859
  const metadata = isRecord(result._metadata) ? result._metadata : null;
4817
- const totalFromMetadata = _nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _122 => _122.totalRows]), () => ( _optionalChain([metadata, 'optionalAccess', _123 => _123.rowCount]))), () => ( _optionalChain([metadata, 'optionalAccess', _124 => _124.count])));
4860
+ const totalFromMetadata = _nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _123 => _123.totalRows]), () => ( _optionalChain([metadata, 'optionalAccess', _124 => _124.rowCount]))), () => ( _optionalChain([metadata, 'optionalAccess', _125 => _125.count])));
4818
4861
  const candidates = [
4819
4862
  {
4820
4863
  source: "result.contacts",
@@ -4839,7 +4882,7 @@ function collectCanonicalRowsInfos(statusOrResult) {
4839
4882
  ];
4840
4883
  if (isRecord(result.output)) {
4841
4884
  const outputMetadata = isRecord(result.output._metadata) ? result.output._metadata : null;
4842
- const outputTotalFromMetadata = _nullishCoalesce(_nullishCoalesce(_optionalChain([outputMetadata, 'optionalAccess', _125 => _125.totalRows]), () => ( _optionalChain([outputMetadata, 'optionalAccess', _126 => _126.rowCount]))), () => ( _optionalChain([outputMetadata, 'optionalAccess', _127 => _127.count])));
4885
+ const outputTotalFromMetadata = _nullishCoalesce(_nullishCoalesce(_optionalChain([outputMetadata, 'optionalAccess', _126 => _126.totalRows]), () => ( _optionalChain([outputMetadata, 'optionalAccess', _127 => _127.rowCount]))), () => ( _optionalChain([outputMetadata, 'optionalAccess', _128 => _128.count])));
4843
4886
  candidates.push(
4844
4887
  {
4845
4888
  source: "result.output.contacts",
@@ -4928,14 +4971,14 @@ function collectPackagedStepDatasetCandidates(statusOrResult) {
4928
4971
  {
4929
4972
  source,
4930
4973
  value: step.output,
4931
- total: _nullishCoalesce(_nullishCoalesce(step.output.rowCount, () => ( _optionalChain([step, 'access', _128 => _128.output, 'access', _129 => _129.preview, 'optionalAccess', _130 => _130.totalRows]))), () => ( void 0))
4974
+ total: _nullishCoalesce(_nullishCoalesce(step.output.rowCount, () => ( _optionalChain([step, 'access', _129 => _129.output, 'access', _130 => _130.preview, 'optionalAccess', _131 => _131.totalRows]))), () => ( void 0))
4932
4975
  }
4933
4976
  ] : [];
4934
4977
  });
4935
4978
  }
4936
4979
  function collectSerializedDatasetRowsInfos(statusOrResult) {
4937
4980
  const root = isRecord(statusOrResult) ? statusOrResult : null;
4938
- const result = root && "result" in root ? isRecord(root.result) ? root.result : null : _optionalChain([root, 'optionalAccess', _131 => _131.kind]) === "play_run" || isRecord(_optionalChain([root, 'optionalAccess', _132 => _132.package])) ? null : root;
4981
+ const result = root && "result" in root ? isRecord(root.result) ? root.result : null : _optionalChain([root, 'optionalAccess', _132 => _132.kind]) === "play_run" || isRecord(_optionalChain([root, 'optionalAccess', _133 => _133.package])) ? null : root;
4939
4982
  const candidates = [];
4940
4983
  if (result) {
4941
4984
  collectDatasetCandidates({
@@ -5048,7 +5091,7 @@ var RunDatasetCatalog = class _RunDatasetCatalog {
5048
5091
  * a Run returns its sole returned Dataset, or its sole recovered Dataset.
5049
5092
  */
5050
5093
  choose(path) {
5051
- const requested = _optionalChain([path, 'optionalAccess', _133 => _133.trim, 'call', _134 => _134()]);
5094
+ const requested = _optionalChain([path, 'optionalAccess', _134 => _134.trim, 'call', _135 => _135()]);
5052
5095
  if (requested) {
5053
5096
  const info = uniqueDatasetMatch(
5054
5097
  this.#available.filter((dataset) => dataset.matches(requested)).map((dataset) => dataset.info()),
@@ -5056,7 +5099,7 @@ var RunDatasetCatalog = class _RunDatasetCatalog {
5056
5099
  );
5057
5100
  return info ? RunDataset.from({
5058
5101
  ...info,
5059
- source: _optionalChain([info, 'access', _135 => _135.sourceAliases, 'optionalAccess', _136 => _136.includes, 'call', _137 => _137(requested)]) ? requested : info.source
5102
+ source: _optionalChain([info, 'access', _136 => _136.sourceAliases, 'optionalAccess', _137 => _137.includes, 'call', _138 => _138(requested)]) ? requested : info.source
5060
5103
  }) : null;
5061
5104
  }
5062
5105
  if (this.#returned.length === 1) return this.#returned[0];
@@ -5099,7 +5142,7 @@ var RunDataset = class _RunDataset {
5099
5142
  return this.#info.exportUnavailableMessage;
5100
5143
  }
5101
5144
  matches(path) {
5102
- return this.source === path || _optionalChain([this, 'access', _138 => _138.#info, 'access', _139 => _139.sourceAliases, 'optionalAccess', _140 => _140.includes, 'call', _141 => _141(path)]) === true || this.#info.name === path || this.datasetId === path || this.tableNamespace === path || _optionalChain([this, 'access', _142 => _142.#info, 'access', _143 => _143.recoveredReturnPaths, 'optionalAccess', _144 => _144.includes, 'call', _145 => _145(path)]) === true;
5145
+ return this.source === path || _optionalChain([this, 'access', _139 => _139.#info, 'access', _140 => _140.sourceAliases, 'optionalAccess', _141 => _141.includes, 'call', _142 => _142(path)]) === true || this.#info.name === path || this.datasetId === path || this.tableNamespace === path || _optionalChain([this, 'access', _143 => _143.#info, 'access', _144 => _144.recoveredReturnPaths, 'optionalAccess', _145 => _145.includes, 'call', _146 => _146(path)]) === true;
5103
5146
  }
5104
5147
  /** Return a new Handle when its preview has been replaced by fetched rows. */
5105
5148
  withRows(info) {
@@ -5120,13 +5163,13 @@ var RunDataset = class _RunDataset {
5120
5163
  const absolutePath = _path.resolve.call(void 0, outPath);
5121
5164
  _fs.writeFileSync.call(void 0,
5122
5165
  absolutePath,
5123
- `${JSON.stringify(_chunkYXVYPYIPjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
5166
+ `${JSON.stringify(_chunkCYN2AHR6js.orderRunExportJson.call(void 0, this.rows), null, 2)}
5124
5167
  `,
5125
5168
  "utf-8"
5126
5169
  );
5127
5170
  return absolutePath;
5128
5171
  }
5129
- return _chunkYXVYPYIPjs.writeRunDatasetCsv.call(void 0, {
5172
+ return _chunkCYN2AHR6js.writeRunDatasetCsv.call(void 0, {
5130
5173
  rows: this.rows,
5131
5174
  columns: this.#info.columns,
5132
5175
  outPath
@@ -5138,7 +5181,7 @@ var RunDataset = class _RunDataset {
5138
5181
  }
5139
5182
  };
5140
5183
  function resolveDatasetByName(available, datasetPath) {
5141
- return _nullishCoalesce(_optionalChain([RunDatasetCatalog, 'access', _146 => _146.from, 'call', _147 => _147({ runPackage: null, datasets: available }), 'access', _148 => _148.choose, 'call', _149 => _149(datasetPath), 'optionalAccess', _150 => _150.info, 'call', _151 => _151()]), () => ( null));
5184
+ return _nullishCoalesce(_optionalChain([RunDatasetCatalog, 'access', _147 => _147.from, 'call', _148 => _148({ runPackage: null, datasets: available }), 'access', _149 => _149.choose, 'call', _150 => _150(datasetPath), 'optionalAccess', _151 => _151.info, 'call', _152 => _152()]), () => ( null));
5142
5185
  }
5143
5186
  function uniqueDatasetMatch(infos, selector) {
5144
5187
  const matches = distinctCanonicalRowsInfos(infos);
@@ -5162,11 +5205,11 @@ function uniqueDatasetMatch(infos, selector) {
5162
5205
  function packageForDatasetSelection(runPackage) {
5163
5206
  const root = recordValue(runPackage);
5164
5207
  const nested = recordValue(root.package);
5165
- if (_optionalChain([nested, 'optionalAccess', _152 => _152.kind]) === "play_run") return nested;
5208
+ if (_optionalChain([nested, 'optionalAccess', _153 => _153.kind]) === "play_run") return nested;
5166
5209
  return root.kind === "play_run" ? root : null;
5167
5210
  }
5168
5211
  function withReturnedDatasetAliases(runPackage, available) {
5169
- const outputs = recordValue(_optionalChain([packageForDatasetSelection, 'call', _153 => _153(runPackage), 'optionalAccess', _154 => _154.outputs]));
5212
+ const outputs = recordValue(_optionalChain([packageForDatasetSelection, 'call', _154 => _154(runPackage), 'optionalAccess', _155 => _155.outputs]));
5170
5213
  if (Object.keys(outputs).length === 0) return available;
5171
5214
  const expanded = [...available];
5172
5215
  for (const outputValue of Object.values(outputs)) {
@@ -5180,7 +5223,7 @@ function withReturnedDatasetAliases(runPackage, available) {
5180
5223
  return expanded;
5181
5224
  }
5182
5225
  function returnedRunDatasets(runPackage, available) {
5183
- const rawOutputs = _optionalChain([packageForDatasetSelection, 'call', _155 => _155(runPackage), 'optionalAccess', _156 => _156.outputs]);
5226
+ const rawOutputs = _optionalChain([packageForDatasetSelection, 'call', _156 => _156(runPackage), 'optionalAccess', _157 => _157.outputs]);
5184
5227
  const outputs = recordValue(rawOutputs);
5185
5228
  if (rawOutputs && typeof rawOutputs === "object" && !Array.isArray(rawOutputs)) {
5186
5229
  const selected = [];
@@ -5199,7 +5242,7 @@ function returnedRunDatasets(runPackage, available) {
5199
5242
  return distinctCanonicalRowsInfos(
5200
5243
  available.filter(
5201
5244
  (info) => info.returned || [info.source, ..._nullishCoalesce(info.sourceAliases, () => ( []))].some(
5202
- (path) => _optionalChain([path, 'optionalAccess', _157 => _157.startsWith, 'call', _158 => _158("result.")])
5245
+ (path) => _optionalChain([path, 'optionalAccess', _158 => _158.startsWith, 'call', _159 => _159("result.")])
5203
5246
  ) && !info.recovered
5204
5247
  )
5205
5248
  );
@@ -5229,7 +5272,7 @@ function resolveReturnedDataset(output, available) {
5229
5272
  }
5230
5273
  const legacy = path ? uniqueDatasetMatch(
5231
5274
  available.filter(
5232
- (info) => info.source === path || _optionalChain([info, 'access', _159 => _159.sourceAliases, 'optionalAccess', _160 => _160.includes, 'call', _161 => _161(path)])
5275
+ (info) => info.source === path || _optionalChain([info, 'access', _160 => _160.sourceAliases, 'optionalAccess', _161 => _161.includes, 'call', _162 => _162(path)])
5233
5276
  ),
5234
5277
  path
5235
5278
  ) : null;
@@ -5259,7 +5302,7 @@ var RUN_PLAY_SIGNATURE_HINT = "Deepline hint: deepline.runPlay uses a stable key
5259
5302
  var MAP_BACKED_CHILD_HINT = "Deepline hint: dataset-backed child plays own durable table state and cannot be called from another play. Run that play directly, export its dataset, then pass the CSV to the next play.";
5260
5303
  function sourceLineForError(sourceCode, error) {
5261
5304
  const match = error.match(/:(\d+):(\d+)\s/);
5262
- const lineNumber = _optionalChain([match, 'optionalAccess', _162 => _162[1]]) ? Number(match[1]) : NaN;
5305
+ const lineNumber = _optionalChain([match, 'optionalAccess', _163 => _163[1]]) ? Number(match[1]) : NaN;
5263
5306
  if (!Number.isInteger(lineNumber) || lineNumber < 1) return "";
5264
5307
  return _nullishCoalesce(sourceCode.split(/\r?\n/)[lineNumber - 1], () => ( ""));
5265
5308
  }
@@ -5393,11 +5436,11 @@ var DeployApiClient = class {
5393
5436
  parsed = text;
5394
5437
  }
5395
5438
  if (!response.ok) {
5396
- const record3 = _nullishCoalesce(parsed, () => ( {}));
5439
+ const record4 = _nullishCoalesce(parsed, () => ( {}));
5397
5440
  throw new DeployApiError({
5398
- message: typeof record3.error === "string" ? record3.error : `Deploy API ${input.path} failed (${response.status}).`,
5441
+ message: typeof record4.error === "string" ? record4.error : `Deploy API ${input.path} failed (${response.status}).`,
5399
5442
  status: response.status,
5400
- code: typeof record3.code === "string" ? record3.code : null,
5443
+ code: typeof record4.code === "string" ? record4.code : null,
5401
5444
  body: parsed
5402
5445
  });
5403
5446
  }
@@ -5566,10 +5609,10 @@ function parseDeeplineManifest(raw) {
5566
5609
  if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
5567
5610
  throw new DeeplineManifestError("deepline.json must be a JSON object.");
5568
5611
  }
5569
- const record3 = parsed;
5570
- const plays = record3.plays === void 0 ? DEFAULT_PLAY_GLOBS : readGlobs(record3.plays, "plays");
5571
- const monitors = record3.monitors === void 0 ? DEFAULT_MONITOR_GLOBS : readGlobs(record3.monitors, "monitors");
5572
- const org = typeof record3.org === "string" && record3.org.trim() ? record3.org.trim() : void 0;
5612
+ const record4 = parsed;
5613
+ const plays = record4.plays === void 0 ? DEFAULT_PLAY_GLOBS : readGlobs(record4.plays, "plays");
5614
+ const monitors = record4.monitors === void 0 ? DEFAULT_MONITOR_GLOBS : readGlobs(record4.monitors, "monitors");
5615
+ const org = typeof record4.org === "string" && record4.org.trim() ? record4.org.trim() : void 0;
5573
5616
  return {
5574
5617
  plays,
5575
5618
  monitors,
@@ -5629,7 +5672,7 @@ async function discoverDeploymentFiles(input) {
5629
5672
  }
5630
5673
  }
5631
5674
  const rootStat = await _promises.stat.call(void 0, input.projectRoot).catch(() => null);
5632
- if (!_optionalChain([rootStat, 'optionalAccess', _163 => _163.isDirectory, 'call', _164 => _164()])) {
5675
+ if (!_optionalChain([rootStat, 'optionalAccess', _164 => _164.isDirectory, 'call', _165 => _165()])) {
5633
5676
  throw new DeeplineManifestError(
5634
5677
  `Project root directory does not exist in the repo: ${input.projectRoot}`
5635
5678
  );
@@ -5731,7 +5774,7 @@ function resolveOwnedPlayReferenceName(reference, ownerSlug) {
5731
5774
  if (parsed.kind !== "org") {
5732
5775
  return null;
5733
5776
  }
5734
- const normalizedOwnerSlug = _nullishCoalesce(_optionalChain([ownerSlug, 'optionalAccess', _165 => _165.trim, 'call', _166 => _166(), 'access', _167 => _167.toLowerCase, 'call', _168 => _168()]), () => ( ""));
5777
+ const normalizedOwnerSlug = _nullishCoalesce(_optionalChain([ownerSlug, 'optionalAccess', _166 => _166.trim, 'call', _167 => _167(), 'access', _168 => _168.toLowerCase, 'call', _169 => _169()]), () => ( ""));
5735
5778
  return normalizedOwnerSlug && parsed.ownerSlug.trim().toLowerCase() === normalizedOwnerSlug ? parsed.name : null;
5736
5779
  }
5737
5780
 
@@ -5746,7 +5789,7 @@ function stringLiteralValue(node) {
5746
5789
  return node.value;
5747
5790
  }
5748
5791
  if (node.type === "TemplateLiteral" && Array.isArray(node.expressions) && node.expressions.length === 0 && Array.isArray(node.quasis) && node.quasis.length === 1) {
5749
- const cooked = _optionalChain([node, 'access', _169 => _169.quasis, 'access', _170 => _170[0], 'access', _171 => _171.value, 'optionalAccess', _172 => _172.cooked]);
5792
+ const cooked = _optionalChain([node, 'access', _170 => _170.quasis, 'access', _171 => _171[0], 'access', _172 => _172.value, 'optionalAccess', _173 => _173.cooked]);
5750
5793
  return typeof cooked === "string" ? cooked : null;
5751
5794
  }
5752
5795
  return null;
@@ -5870,7 +5913,7 @@ async function runDeployment(params, hooks) {
5870
5913
  `Deployment ${params.deploymentId} has no linked repository and no target directory was given.`
5871
5914
  );
5872
5915
  }
5873
- const checkRunName = _optionalChain([state, 'access', _173 => _173.checkRunName, 'optionalAccess', _174 => _174.trim, 'call', _175 => _175()]) || void 0;
5916
+ const checkRunName = _optionalChain([state, 'access', _174 => _174.checkRunName, 'optionalAccess', _175 => _175.trim, 'call', _176 => _176()]) || void 0;
5874
5917
  let mergedPullRequestNumber = null;
5875
5918
  let promoted = false;
5876
5919
  const setStatus = (input) => client.setStatus({
@@ -5941,7 +5984,7 @@ async function runDeployment(params, hooks) {
5941
5984
  finalStatus,
5942
5985
  outcomes,
5943
5986
  ...monitorRunResult(),
5944
- checkRunId: _optionalChain([checkRun, 'optionalAccess', _176 => _176.checkRunId])
5987
+ checkRunId: _optionalChain([checkRun, 'optionalAccess', _177 => _177.checkRunId])
5945
5988
  };
5946
5989
  };
5947
5990
  await _promises.mkdir.call(void 0, hooks.workRoot, { recursive: true });
@@ -5967,7 +6010,7 @@ async function runDeployment(params, hooks) {
5967
6010
  const source = await hooks.openSource({ client, deployment });
5968
6011
  if (deployment.isProduction) {
5969
6012
  try {
5970
- mergedPullRequestNumber = await _asyncNullishCoalesce(await _optionalChain([source, 'access', _177 => _177.findMergedPullRequest, 'optionalCall', _178 => _178()]), async () => ( null));
6013
+ mergedPullRequestNumber = await _asyncNullishCoalesce(await _optionalChain([source, 'access', _178 => _178.findMergedPullRequest, 'optionalCall', _179 => _179()]), async () => ( null));
5971
6014
  } catch (error) {
5972
6015
  console.warn("[deploy-worker] merged PR lookup failed", {
5973
6016
  deploymentId: params.deploymentId,
@@ -6037,15 +6080,15 @@ async function runDeployment(params, hooks) {
6037
6080
  return finishFailed({
6038
6081
  error: input.error,
6039
6082
  outcomes: input.outcomes,
6040
- checkRunId: _optionalChain([checkRun2, 'optionalAccess', _179 => _179.checkRunId])
6083
+ checkRunId: _optionalChain([checkRun2, 'optionalAccess', _180 => _180.checkRunId])
6041
6084
  });
6042
6085
  };
6043
6086
  postFailureCheck = async (summary) => await _asyncOptionalChain([(await postCheckOrNull({
6044
6087
  conclusion: "failure",
6045
6088
  title: "Deploy failed",
6046
6089
  summary
6047
- })), 'optionalAccess', async _180 => _180.checkRunId]);
6048
- const deploymentBranch = _optionalChain([deployment, 'access', _181 => _181.ref, 'optionalAccess', _182 => _182.startsWith, 'call', _183 => _183("refs/heads/")]) ? deployment.ref.slice("refs/heads/".length) : _nullishCoalesce(_optionalChain([project, 'optionalAccess', _184 => _184.productionBranch]), () => ( null));
6090
+ })), 'optionalAccess', async _181 => _181.checkRunId]);
6091
+ const deploymentBranch = _optionalChain([deployment, 'access', _182 => _182.ref, 'optionalAccess', _183 => _183.startsWith, 'call', _184 => _184("refs/heads/")]) ? deployment.ref.slice("refs/heads/".length) : _nullishCoalesce(_optionalChain([project, 'optionalAccess', _185 => _185.productionBranch]), () => ( null));
6049
6092
  const supersedeIfHeadMoved = async () => {
6050
6093
  if (!deployment.isProduction || !source.branchHead || !deploymentBranch) {
6051
6094
  return null;
@@ -6059,7 +6102,7 @@ async function runDeployment(params, hooks) {
6059
6102
  });
6060
6103
  await setStatus({
6061
6104
  status: "superseded",
6062
- error: `Branch ${deploymentBranch} is now at ${_nullishCoalesce(_optionalChain([head, 'optionalAccess', _185 => _185.slice, 'call', _186 => _186(0, 12)]), () => ( "<deleted>"))}; this deployment's commit is no longer the head.`,
6105
+ error: `Branch ${deploymentBranch} is now at ${_nullishCoalesce(_optionalChain([head, 'optionalAccess', _186 => _186.slice, 'call', _187 => _187(0, 12)]), () => ( "<deleted>"))}; this deployment's commit is no longer the head.`,
6063
6106
  buildSeconds: buildSeconds(),
6064
6107
  ...monitorOutcomes.length > 0 ? { results: monitorResults() } : {},
6065
6108
  ...head ? { observedHeadSha: head } : {}
@@ -6175,7 +6218,7 @@ async function runDeployment(params, hooks) {
6175
6218
  failPlay(file, repoRelativeFile, message);
6176
6219
  continue;
6177
6220
  }
6178
- const name = _nullishCoalesce(_optionalChain([result, 'access', _187 => _187.playName, 'optionalAccess', _188 => _188.trim, 'call', _189 => _189()]), () => ( ""));
6221
+ const name = _nullishCoalesce(_optionalChain([result, 'access', _188 => _188.playName, 'optionalAccess', _189 => _189.trim, 'call', _190 => _190()]), () => ( ""));
6179
6222
  if (!name) {
6180
6223
  failPlay(
6181
6224
  file,
@@ -6194,7 +6237,7 @@ async function runDeployment(params, hooks) {
6194
6237
  continue;
6195
6238
  }
6196
6239
  seenNames.set(name, file);
6197
- const disallowed = (_nullishCoalesce(_optionalChain([result, 'access', _190 => _190.artifact, 'access', _191 => _191.importPolicy, 'optionalAccess', _192 => _192.packages]), () => ( []))).map(
6240
+ const disallowed = (_nullishCoalesce(_optionalChain([result, 'access', _191 => _191.artifact, 'access', _192 => _192.importPolicy, 'optionalAccess', _193 => _193.packages]), () => ( []))).map(
6198
6241
  (pkg) => typeof pkg === "string" ? pkg : _nullishCoalesce(pkg.name, () => ( ""))
6199
6242
  ).filter((pkgName) => pkgName && pkgName !== "deepline");
6200
6243
  if (disallowed.length > 0) {
@@ -6278,7 +6321,7 @@ async function runDeployment(params, hooks) {
6278
6321
  const conflicts = [];
6279
6322
  for (const play of ordered) {
6280
6323
  const owner = stateByName.get(play.name);
6281
- if (!project || !_optionalChain([owner, 'optionalAccess', _193 => _193.playProjectRepo]) || owner.playProjectRepo === _optionalChain([project, 'optionalAccess', _194 => _194.repoFullName]) || owner.playProjectDisabled) {
6324
+ if (!project || !_optionalChain([owner, 'optionalAccess', _194 => _194.playProjectRepo]) || owner.playProjectRepo === _optionalChain([project, 'optionalAccess', _195 => _195.repoFullName]) || owner.playProjectDisabled) {
6282
6325
  continue;
6283
6326
  }
6284
6327
  const message = `The play name "${play.name}" is already deployed from ${owner.playProjectRepo}. A play name belongs to one repository at a time. Rename it here, or disable that deployment target first.`;
@@ -6301,16 +6344,16 @@ async function runDeployment(params, hooks) {
6301
6344
  }
6302
6345
  const playByName = new Map(ordered.map((play) => [play.name, play]));
6303
6346
  const sdkUpdated = (name) => {
6304
- const artifact = _optionalChain([playByName, 'access', _195 => _195.get, 'call', _196 => _196(name), 'optionalAccess', _197 => _197.result, 'access', _198 => _198.artifact]);
6305
- const live = _nullishCoalesce(_optionalChain([stateByName, 'access', _199 => _199.get, 'call', _200 => _200(name), 'optionalAccess', _201 => _201.liveRevision]), () => ( null));
6347
+ const artifact = _optionalChain([playByName, 'access', _196 => _196.get, 'call', _197 => _197(name), 'optionalAccess', _198 => _198.result, 'access', _199 => _199.artifact]);
6348
+ const live = _nullishCoalesce(_optionalChain([stateByName, 'access', _200 => _200.get, 'call', _201 => _201(name), 'optionalAccess', _202 => _202.liveRevision]), () => ( null));
6306
6349
  return artifact && isSdkUpdated(live, artifact) ? { sdkUpdated: true } : {};
6307
6350
  };
6308
6351
  const outcomes = [];
6309
6352
  const toRegister = [];
6310
6353
  const toPromote = [];
6311
6354
  const takeoverWarning = (state2) => {
6312
- const owner = _optionalChain([state2, 'optionalAccess', _202 => _202.playProjectRepo]);
6313
- if (!owner || owner === _optionalChain([project, 'optionalAccess', _203 => _203.repoFullName])) return void 0;
6355
+ const owner = _optionalChain([state2, 'optionalAccess', _203 => _203.playProjectRepo]);
6356
+ if (!owner || owner === _optionalChain([project, 'optionalAccess', _204 => _204.repoFullName])) return void 0;
6314
6357
  if (!project) {
6315
6358
  return `This play is deployed from ${owner}. This directory deploy made a different revision live, so it is marked drifted from ${owner} until that repository deploys again. If you are done with ${owner}, unlink it (deepline git unlink <id>) and this play is released from it.`;
6316
6359
  }
@@ -6322,8 +6365,8 @@ async function runDeployment(params, hooks) {
6322
6365
  const artifact = play.result.artifact;
6323
6366
  const importsOtherPlays = (_nullishCoalesce(play.result.importedPlayDependencies, () => ( []))).length > 0;
6324
6367
  const matches = (revision) => !importsOtherPlays && carriesArtifact(revision, artifact);
6325
- if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess', _204 => _204.liveRevision]), () => ( null)))) {
6326
- if (deployment.isProduction && project && (_optionalChain([playState, 'optionalAccess', _205 => _205.playProjectId]) !== project.id || _optionalChain([playState, 'optionalAccess', _206 => _206.driftFromGit]))) {
6368
+ if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess', _205 => _205.liveRevision]), () => ( null)))) {
6369
+ if (deployment.isProduction && project && (_optionalChain([playState, 'optionalAccess', _206 => _206.playProjectId]) !== project.id || _optionalChain([playState, 'optionalAccess', _207 => _207.driftFromGit]))) {
6327
6370
  toPromote.push({
6328
6371
  name: play.name,
6329
6372
  revisionId: playState.liveRevision.revisionId
@@ -6334,12 +6377,12 @@ async function runDeployment(params, hooks) {
6334
6377
  name: play.name,
6335
6378
  file: play.file,
6336
6379
  status: "unchanged",
6337
- version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess', _207 => _207.liveRevision, 'optionalAccess', _208 => _208.version]), () => ( void 0)),
6380
+ version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess', _208 => _208.liveRevision, 'optionalAccess', _209 => _209.version]), () => ( void 0)),
6338
6381
  ...warning ? { warning } : {}
6339
6382
  });
6340
6383
  continue;
6341
6384
  }
6342
- if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess', _209 => _209.workingRevision]), () => ( null)))) {
6385
+ if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess', _210 => _210.workingRevision]), () => ( null)))) {
6343
6386
  if (deployment.isProduction) {
6344
6387
  toPromote.push({
6345
6388
  name: play.name,
@@ -6350,7 +6393,7 @@ async function runDeployment(params, hooks) {
6350
6393
  name: play.name,
6351
6394
  file: play.file,
6352
6395
  status: "registered",
6353
- version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess', _210 => _210.workingRevision, 'optionalAccess', _211 => _211.version]), () => ( void 0)),
6396
+ version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess', _211 => _211.workingRevision, 'optionalAccess', _212 => _212.version]), () => ( void 0)),
6354
6397
  ...sdkUpdated(play.name),
6355
6398
  ...warning ? { warning } : {}
6356
6399
  });
@@ -6477,11 +6520,11 @@ async function runDeployment(params, hooks) {
6477
6520
  const promotion = await client.promote(toPromote);
6478
6521
  promoted = true;
6479
6522
  for (const outcome of promotion.outcomes) {
6480
- const previousVersion = _nullishCoalesce(_optionalChain([stateByName, 'access', _212 => _212.get, 'call', _213 => _213(outcome.name), 'optionalAccess', _214 => _214.liveRevision, 'optionalAccess', _215 => _215.version]), () => ( null));
6523
+ const previousVersion = _nullishCoalesce(_optionalChain([stateByName, 'access', _213 => _213.get, 'call', _214 => _214(outcome.name), 'optionalAccess', _215 => _215.liveRevision, 'optionalAccess', _216 => _216.version]), () => ( null));
6481
6524
  const warning = takeoverWarning(stateByName.get(outcome.name));
6482
6525
  outcomes.push({
6483
6526
  name: outcome.name,
6484
- file: _nullishCoalesce(_optionalChain([playByName, 'access', _216 => _216.get, 'call', _217 => _217(outcome.name), 'optionalAccess', _218 => _218.file]), () => ( outcome.name)),
6527
+ file: _nullishCoalesce(_optionalChain([playByName, 'access', _217 => _217.get, 'call', _218 => _218(outcome.name), 'optionalAccess', _219 => _219.file]), () => ( outcome.name)),
6485
6528
  status: outcome.status === "promoted" ? "promoted" : "failed",
6486
6529
  version: outcome.version,
6487
6530
  ...outcome.status === "promoted" && typeof previousVersion === "number" && previousVersion !== outcome.version ? { previousVersion } : {},
@@ -6493,7 +6536,7 @@ async function runDeployment(params, hooks) {
6493
6536
  } catch (error) {
6494
6537
  if (revokedFinalStatus(error)) throw error;
6495
6538
  const body = error instanceof DeployApiError ? error.body : null;
6496
- const errorText = _nullishCoalesce(_optionalChain([body, 'optionalAccess', _219 => _219.error]), () => ( (error instanceof Error ? error.message : String(error))));
6539
+ const errorText = _nullishCoalesce(_optionalChain([body, 'optionalAccess', _220 => _220.error]), () => ( (error instanceof Error ? error.message : String(error))));
6497
6540
  if (/PLAY_DEPLOYMENT_NOT_ACTIVE/.test(errorText)) {
6498
6541
  console.info("[deploy-worker] cancelled at promote", {
6499
6542
  deploymentId: params.deploymentId
@@ -6517,9 +6560,9 @@ async function runDeployment(params, hooks) {
6517
6560
  error: errorText,
6518
6561
  outcomes: [
6519
6562
  ...outcomes,
6520
- ...(_nullishCoalesce(_optionalChain([body, 'optionalAccess', _220 => _220.outcomes]), () => ( toPromote))).map((entry) => ({
6563
+ ...(_nullishCoalesce(_optionalChain([body, 'optionalAccess', _221 => _221.outcomes]), () => ( toPromote))).map((entry) => ({
6521
6564
  name: entry.name,
6522
- file: _nullishCoalesce(_optionalChain([playByName, 'access', _221 => _221.get, 'call', _222 => _222(entry.name), 'optionalAccess', _223 => _223.file]), () => ( entry.name)),
6565
+ file: _nullishCoalesce(_optionalChain([playByName, 'access', _222 => _222.get, 'call', _223 => _223(entry.name), 'optionalAccess', _224 => _224.file]), () => ( entry.name)),
6523
6566
  status: "failed",
6524
6567
  error: _nullishCoalesce(("error" in entry ? entry.error : void 0), () => ( errorText))
6525
6568
  }))
@@ -6563,7 +6606,7 @@ async function runDeployment(params, hooks) {
6563
6606
  });
6564
6607
  let checkRunId;
6565
6608
  try {
6566
- checkRunId = await _optionalChain([postFailureCheck, 'optionalCall', _224 => _224(message.slice(0, 2e3))]);
6609
+ checkRunId = await _optionalChain([postFailureCheck, 'optionalCall', _225 => _225(message.slice(0, 2e3))]);
6567
6610
  } catch (checkError) {
6568
6611
  const revokedAtCheck = revokedFinalStatus(checkError);
6569
6612
  if (revokedAtCheck) {
@@ -6631,7 +6674,7 @@ function renderOutcome(outcome) {
6631
6674
  function printResult2(input) {
6632
6675
  const failed = input.status === "failed" || input.status === "cancelled";
6633
6676
  if (failed) process.exitCode = 1;
6634
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
6677
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
6635
6678
  {
6636
6679
  deployment: { ...input.deployment, status: input.status },
6637
6680
  plays: input.outcomes,
@@ -6656,7 +6699,7 @@ async function handlePlaysDeploy(directory, options) {
6656
6699
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6657
6700
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6658
6701
  });
6659
- const { http, config } = _chunkGTGJBZVHjs.getAuthedHttpClient.call(void 0, );
6702
+ const { http, config } = _chunkUTCGCES2js.getAuthedHttpClient.call(void 0, );
6660
6703
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6661
6704
  const startDeployment = () => http.post("/api/v2/deployments", {
6662
6705
  deliveryId,
@@ -6683,14 +6726,14 @@ async function handlePlaysDeploy(directory, options) {
6683
6726
  },
6684
6727
  {
6685
6728
  bundle: bundleDeployPlayFile,
6686
- fetchImpl: _chunkOCT4SUJAjs.fetchWithDeploymentProtection,
6729
+ fetchImpl: _chunk7COEN3IRjs.fetchWithDeploymentProtection,
6687
6730
  // The plays are already here: "opening" the source is naming it.
6688
6731
  openSource: async () => ({
6689
6732
  open: async () => ({ repoRoot: root })
6690
6733
  }),
6691
6734
  target: {
6692
6735
  rootDirectory: "",
6693
- manifestPath: _nullishCoalesce(_optionalChain([options, 'access', _225 => _225.manifest, 'optionalAccess', _226 => _226.trim, 'call', _227 => _227()]), () => ( ""))
6736
+ manifestPath: _nullishCoalesce(_optionalChain([options, 'access', _226 => _226.manifest, 'optionalAccess', _227 => _227.trim, 'call', _228 => _228()]), () => ( ""))
6694
6737
  },
6695
6738
  workRoot
6696
6739
  }
@@ -6774,7 +6817,7 @@ async function checkLocalPlayGraph(input) {
6774
6817
  sourceCode: node.sourceCode,
6775
6818
  sourceFiles: node.sourceFiles,
6776
6819
  description: _nullishCoalesce(node.playDescription, () => ( void 0)),
6777
- artifact: _nullishCoalesce(_optionalChain([input, 'access', _228 => _228.prepareArtifact, 'optionalCall', _229 => _229(node.artifact)]), () => ( node.artifact)),
6820
+ artifact: _nullishCoalesce(_optionalChain([input, 'access', _229 => _229.prepareArtifact, 'optionalCall', _230 => _230(node.artifact)]), () => ( node.artifact)),
6778
6821
  ...exportName === "default" ? {} : { exportName },
6779
6822
  ...importedPlays.length ? { importedPlays } : {},
6780
6823
  ...input.integrationMode ? { integrationMode: input.integrationMode } : {}
@@ -6809,7 +6852,7 @@ async function checkLocalPlayGraph(input) {
6809
6852
  // src/cli/renderers/local-play-execution.ts
6810
6853
  function renderLocalPlayExecutionPlan(plan, options = {}) {
6811
6854
  if (options.dryRun) {
6812
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6855
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6813
6856
  return;
6814
6857
  }
6815
6858
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -6901,7 +6944,7 @@ async function preflightRunIdFile(path) {
6901
6944
  `Cannot write --run-id-file destination ${destination}: ${error instanceof Error ? error.message : String(error)}`
6902
6945
  );
6903
6946
  } finally {
6904
- await _optionalChain([handle, 'optionalAccess', _230 => _230.close, 'call', _231 => _231()]);
6947
+ await _optionalChain([handle, 'optionalAccess', _231 => _231.close, 'call', _232 => _232()]);
6905
6948
  await removeRunIdTempFile(tempPath);
6906
6949
  }
6907
6950
  return destination;
@@ -6955,9 +6998,9 @@ async function writePlayRunIdFile(destination, runId, options = {}) {
6955
6998
  } catch (error) {
6956
6999
  if (error.code !== "EEXIST") throw error;
6957
7000
  const raced = await readRunIdFile(destination);
6958
- if (_optionalChain([raced, 'optionalAccess', _232 => _232.runId]) !== runId) {
7001
+ if (_optionalChain([raced, 'optionalAccess', _233 => _233.runId]) !== runId) {
6959
7002
  throw new Error(
6960
- `--run-id-file destination already records run ${_nullishCoalesce(_optionalChain([raced, 'optionalAccess', _233 => _233.runId]), () => ( "<invalid>"))}; refusing to replace it with ${runId}: ${destination}`
7003
+ `--run-id-file destination already records run ${_nullishCoalesce(_optionalChain([raced, 'optionalAccess', _234 => _234.runId]), () => ( "<invalid>"))}; refusing to replace it with ${runId}: ${destination}`
6961
7004
  );
6962
7005
  }
6963
7006
  if (!options.launchConfirmed || raced.launchConfirmed) return;
@@ -6973,7 +7016,7 @@ async function writePlayRunIdFile(destination, runId, options = {}) {
6973
7016
  }
6974
7017
  }
6975
7018
  } finally {
6976
- await _optionalChain([handle, 'optionalAccess', _234 => _234.close, 'call', _235 => _235()]);
7019
+ await _optionalChain([handle, 'optionalAccess', _235 => _235.close, 'call', _236 => _236()]);
6977
7020
  await removeRunIdTempFile(tempPath);
6978
7021
  }
6979
7022
  }
@@ -6981,7 +7024,7 @@ function traceCliSync(phase, fields2, run) {
6981
7024
  const startedAt = Date.now();
6982
7025
  try {
6983
7026
  const result = run();
6984
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
7027
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
6985
7028
  phase,
6986
7029
  ms: Date.now() - startedAt,
6987
7030
  ok: true,
@@ -6989,7 +7032,7 @@ function traceCliSync(phase, fields2, run) {
6989
7032
  });
6990
7033
  return result;
6991
7034
  } catch (error) {
6992
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
7035
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
6993
7036
  phase,
6994
7037
  ms: Date.now() - startedAt,
6995
7038
  ok: false,
@@ -7060,10 +7103,10 @@ function playReferenceMatchTokens(value) {
7060
7103
  return normalizePlayReferenceForMatch(value).split("-").filter((token) => token.length > 1 && token !== "to" && token !== "and");
7061
7104
  }
7062
7105
  function playSuggestionReference(play) {
7063
- if (_optionalChain([play, 'access', _236 => _236.reference, 'optionalAccess', _237 => _237.trim, 'call', _238 => _238()])) {
7106
+ if (_optionalChain([play, 'access', _237 => _237.reference, 'optionalAccess', _238 => _238.trim, 'call', _239 => _239()])) {
7064
7107
  return play.reference.trim();
7065
7108
  }
7066
- const ownerSlug = _optionalChain([play, 'access', _239 => _239.ownerSlug, 'optionalAccess', _240 => _240.trim, 'call', _241 => _241()]);
7109
+ const ownerSlug = _optionalChain([play, 'access', _240 => _240.ownerSlug, 'optionalAccess', _241 => _241.trim, 'call', _242 => _242()]);
7067
7110
  return ownerSlug ? `${ownerSlug}/${play.name}` : play.name;
7068
7111
  }
7069
7112
  function scorePlayReferenceSuggestion(requested, play) {
@@ -7079,8 +7122,8 @@ function scorePlayReferenceSuggestion(requested, play) {
7079
7122
  const reference = playSuggestionReference(play);
7080
7123
  const referenceNorm = normalizePlayReferenceForMatch(reference);
7081
7124
  const nameNorm = normalizePlayReferenceForMatch(play.name);
7082
- const candidateNamespace = reference.includes("/") ? _optionalChain([reference, 'access', _242 => _242.split, 'call', _243 => _243("/"), 'access', _244 => _244[0], 'optionalAccess', _245 => _245.toLowerCase, 'call', _246 => _246()]) : null;
7083
- const requestedNamespace = _nullishCoalesce(_optionalChain([parsed, 'access', _247 => _247.ownerSlug, 'optionalAccess', _248 => _248.toLowerCase, 'call', _249 => _249()]), () => ( null));
7125
+ const candidateNamespace = reference.includes("/") ? _optionalChain([reference, 'access', _243 => _243.split, 'call', _244 => _244("/"), 'access', _245 => _245[0], 'optionalAccess', _246 => _246.toLowerCase, 'call', _247 => _247()]) : null;
7126
+ const requestedNamespace = _nullishCoalesce(_optionalChain([parsed, 'access', _248 => _248.ownerSlug, 'optionalAccess', _249 => _249.toLowerCase, 'call', _250 => _250()]), () => ( null));
7084
7127
  const aliases = (_nullishCoalesce(play.aliases, () => ( []))).map(normalizePlayReferenceForMatch);
7085
7128
  const searchable = [referenceNorm, nameNorm, ...aliases].filter(Boolean);
7086
7129
  const requestedTokens = playReferenceMatchTokens(requestedName);
@@ -7197,16 +7240,16 @@ async function buildPlayReferenceNotFoundError(input) {
7197
7240
  suggestions = [];
7198
7241
  }
7199
7242
  const sourceError = input.sourceError instanceof _chunkSQWET4SLjs.DeeplineError ? input.sourceError : null;
7200
- const code = _optionalChain([sourceError, 'optionalAccess', _250 => _250.code]) && sourceError.code !== "API_ERROR" ? sourceError.code : "PLAY_NOT_FOUND";
7243
+ const code = _optionalChain([sourceError, 'optionalAccess', _251 => _251.code]) && sourceError.code !== "API_ERROR" ? sourceError.code : "PLAY_NOT_FOUND";
7201
7244
  return new (0, _chunkSQWET4SLjs.DeeplineError)(
7202
7245
  buildPlayReferenceNotFoundMessage({
7203
7246
  requested: input.target,
7204
7247
  command: input.command,
7205
7248
  suggestions
7206
7249
  }),
7207
- _nullishCoalesce(_optionalChain([sourceError, 'optionalAccess', _251 => _251.statusCode]), () => ( 404)),
7250
+ _nullishCoalesce(_optionalChain([sourceError, 'optionalAccess', _252 => _252.statusCode]), () => ( 404)),
7208
7251
  code,
7209
- _optionalChain([sourceError, 'optionalAccess', _252 => _252.details])
7252
+ _optionalChain([sourceError, 'optionalAccess', _253 => _253.details])
7210
7253
  );
7211
7254
  }
7212
7255
  async function isMissingRunPlayReferenceError(input) {
@@ -7258,7 +7301,7 @@ function formatPlayReference(play) {
7258
7301
  if (play.reference) {
7259
7302
  return play.reference;
7260
7303
  }
7261
- const ownerSlug = _optionalChain([play, 'access', _253 => _253.ownerSlug, 'optionalAccess', _254 => _254.trim, 'call', _255 => _255()]) || "org";
7304
+ const ownerSlug = _optionalChain([play, 'access', _254 => _254.ownerSlug, 'optionalAccess', _255 => _255.trim, 'call', _256 => _256()]) || "org";
7262
7305
  return `${ownerSlug}/${play.name}`;
7263
7306
  }
7264
7307
  function formatPlayListReference(play) {
@@ -7288,7 +7331,7 @@ function materializeRemotePlaySource(input) {
7288
7331
  return null;
7289
7332
  }
7290
7333
  const entrySource = input.source.files[input.source.entryFile];
7291
- if (!_optionalChain([entrySource, 'optionalAccess', _256 => _256.trim, 'call', _257 => _257()])) {
7334
+ if (!_optionalChain([entrySource, 'optionalAccess', _257 => _257.trim, 'call', _258 => _258()])) {
7292
7335
  return null;
7293
7336
  }
7294
7337
  const files = Object.entries(input.source.files);
@@ -7458,8 +7501,8 @@ function looksLikeStagedFileRef(value) {
7458
7501
  if (!value || typeof value !== "object" || Array.isArray(value)) {
7459
7502
  return false;
7460
7503
  }
7461
- const record3 = value;
7462
- return typeof record3.contentHash === "string" || typeof record3.contentBase64 === "string" || typeof record3.logicalPath === "string" && typeof record3.bytes === "number";
7504
+ const record4 = value;
7505
+ return typeof record4.contentHash === "string" || typeof record4.contentBase64 === "string" || typeof record4.logicalPath === "string" && typeof record4.bytes === "number";
7463
7506
  }
7464
7507
  function collectLocalFileInputRefs(value, inputPath, key, out) {
7465
7508
  if (typeof value === "string") {
@@ -7675,7 +7718,7 @@ async function compileBundledPlayGraphManifests(client, graph) {
7675
7718
  const child = graph.nodes.get(
7676
7719
  normalizePlayPath(dependency.filePath)
7677
7720
  );
7678
- if (!_optionalChain([child, 'optionalAccess', _258 => _258.compilerManifest])) {
7721
+ if (!_optionalChain([child, 'optionalAccess', _259 => _259.compilerManifest])) {
7679
7722
  throw new Error(
7680
7723
  `Missing compiler manifest for imported dependency ${dependency.filePath}.`
7681
7724
  );
@@ -7754,7 +7797,7 @@ function formatTimestamp(value) {
7754
7797
  return date.toISOString();
7755
7798
  }
7756
7799
  function isoTimestamp(value) {
7757
- return _nullishCoalesce(_optionalChain([timestampDate, 'call', _259 => _259(value), 'optionalAccess', _260 => _260.toISOString, 'call', _261 => _261()]), () => ( null));
7800
+ return _nullishCoalesce(_optionalChain([timestampDate, 'call', _260 => _260(value), 'optionalAccess', _261 => _261.toISOString, 'call', _262 => _262()]), () => ( null));
7758
7801
  }
7759
7802
  function formatRunLine(run) {
7760
7803
  const credits = typeof run.billingTotalCredits === "number" && Number.isFinite(run.billingTotalCredits) ? `${formatCreditAmount2(run.billingTotalCredits)} credits` : "\u2014";
@@ -7762,7 +7805,7 @@ function formatRunLine(run) {
7762
7805
  }
7763
7806
  function playStatusErrorText(status) {
7764
7807
  const chunks = [];
7765
- const progressError = _optionalChain([status, 'access', _262 => _262.progress, 'optionalAccess', _263 => _263.error]);
7808
+ const progressError = _optionalChain([status, 'access', _263 => _263.progress, 'optionalAccess', _264 => _264.error]);
7766
7809
  if (typeof progressError === "string" && progressError.trim()) {
7767
7810
  chunks.push(progressError.trim());
7768
7811
  }
@@ -7788,7 +7831,7 @@ function playStatusErrorText(status) {
7788
7831
  function isRetryablePendingStartFailure(status) {
7789
7832
  if (status.status !== "failed") return false;
7790
7833
  if (status.runId && status.runId !== "pending") return false;
7791
- return _chunkV7KUBDEBjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7834
+ return _chunk3MYI3IXWjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7792
7835
  }
7793
7836
  function isAmbiguousPlayStartOutcomeError(error) {
7794
7837
  if (error instanceof _chunkSQWET4SLjs.DeeplineError && typeof error.statusCode === "number") {
@@ -7838,13 +7881,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkSQWET4SLjs.Deep
7838
7881
  }, _class);
7839
7882
  function watchSurfaceReaches(state, provenance, level) {
7840
7883
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
7841
- if (!_chunkV7KUBDEBjs.logLevelReaches.call(void 0, level, minimumLevel)) {
7884
+ if (!_chunk3MYI3IXWjs.logLevelReaches.call(void 0, level, minimumLevel)) {
7842
7885
  return false;
7843
7886
  }
7844
- if (_chunkV7KUBDEBjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
7887
+ if (_chunk3MYI3IXWjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
7845
7888
  return true;
7846
7889
  }
7847
- return state.verbose === true && _chunkV7KUBDEBjs.logProvenanceReaches.call(void 0, provenance, "debug");
7890
+ return state.verbose === true && _chunk3MYI3IXWjs.logProvenanceReaches.call(void 0, provenance, "debug");
7848
7891
  }
7849
7892
  function getEventPayload(event) {
7850
7893
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -7867,7 +7910,7 @@ function getRunIdFromLiveEvent(event) {
7867
7910
  if (typeof directRunId === "string" && directRunId.trim()) {
7868
7911
  return directRunId;
7869
7912
  }
7870
- const packageRunId = _optionalChain([getRunRecordFromPackage, 'call', _264 => _264(payload), 'optionalAccess', _265 => _265.id]);
7913
+ const packageRunId = _optionalChain([getRunRecordFromPackage, 'call', _265 => _265(payload), 'optionalAccess', _266 => _266.id]);
7871
7914
  return typeof packageRunId === "string" && packageRunId.trim() ? packageRunId : null;
7872
7915
  }
7873
7916
  function eventConfirmsPlayRunLaunch(event) {
@@ -7888,23 +7931,23 @@ function getStatusFromLiveEvent(event) {
7888
7931
  return null;
7889
7932
  }
7890
7933
  const payload = getEventPayload(event);
7891
- return _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([getRunRecordFromPackage, 'call', _266 => _266(payload), 'optionalAccess', _267 => _267.status]))));
7934
+ return _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([getRunRecordFromPackage, 'call', _267 => _267(payload), 'optionalAccess', _268 => _268.status]))));
7892
7935
  }
7893
7936
  function readLiveRunField(event, field) {
7894
7937
  const payload = getEventPayload(event);
7895
7938
  if (field === "waitKind") {
7896
- const wait = _nullishCoalesce(payload.wait, () => ( _optionalChain([getRunRecordFromPackage, 'call', _268 => _268(payload), 'optionalAccess', _269 => _269.wait])));
7939
+ const wait = _nullishCoalesce(payload.wait, () => ( _optionalChain([getRunRecordFromPackage, 'call', _269 => _269(payload), 'optionalAccess', _270 => _270.wait])));
7897
7940
  if (wait && typeof wait === "object" && !Array.isArray(wait)) {
7898
7941
  const kind = wait.kind;
7899
7942
  if (typeof kind === "string" && kind.trim()) return kind.trim();
7900
7943
  }
7901
7944
  }
7902
7945
  const run = getRunRecordFromPackage(payload);
7903
- const records = [payload, payload.progress, run, _optionalChain([run, 'optionalAccess', _270 => _270.progress])].filter(
7946
+ const records = [payload, payload.progress, run, _optionalChain([run, 'optionalAccess', _271 => _271.progress])].filter(
7904
7947
  (value) => Boolean(value && typeof value === "object" && !Array.isArray(value))
7905
7948
  );
7906
- for (const record3 of records) {
7907
- if (record3[field] !== void 0) return record3[field];
7949
+ for (const record4 of records) {
7950
+ if (record4[field] !== void 0) return record4[field];
7908
7951
  }
7909
7952
  return void 0;
7910
7953
  }
@@ -7915,7 +7958,7 @@ function getLiveRunStringField(event, field) {
7915
7958
  function getLiveRunActivity(event) {
7916
7959
  const payload = getEventPayload(event);
7917
7960
  const run = getRunRecordFromPackage(payload);
7918
- const candidates = [payload.activity, _optionalChain([run, 'optionalAccess', _271 => _271.activity])];
7961
+ const candidates = [payload.activity, _optionalChain([run, 'optionalAccess', _272 => _272.activity])];
7919
7962
  for (const candidate of candidates) {
7920
7963
  if (candidate && typeof candidate === "object" && !Array.isArray(candidate) && typeof candidate.summary === "string" && candidate.observation && typeof candidate.observation === "object") {
7921
7964
  return candidate;
@@ -7930,9 +7973,9 @@ function getRunLifecycleHint(input) {
7930
7973
  return null;
7931
7974
  }
7932
7975
  const activity = getLiveRunActivity(input.event);
7933
- const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess', _272 => _272.observation, 'access', _273 => _273.state, 'access', _274 => _274.kind]) === "active" && activity.observation.target.kind !== "runner";
7976
+ const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess', _273 => _273.observation, 'access', _274 => _274.state, 'access', _275 => _275.kind]) === "active" && activity.observation.target.kind !== "runner";
7934
7977
  const inspect = `'deepline runs get ${runId} --full'`;
7935
- const sleepState = _optionalChain([activity, 'optionalAccess', _275 => _275.observation, 'access', _276 => _276.state, 'access', _277 => _277.kind]) === "scheduled" && activity.observation.state.reason === "sleep" ? activity.observation.state : null;
7978
+ const sleepState = _optionalChain([activity, 'optionalAccess', _276 => _276.observation, 'access', _277 => _277.state, 'access', _278 => _278.kind]) === "scheduled" && activity.observation.state.reason === "sleep" ? activity.observation.state : null;
7936
7979
  if (status === "waiting" && (sleepState !== null || getLiveRunStringField(input.event, "waitKind") === "sleep")) {
7937
7980
  const recordedWake = readLiveRunField(input.event, "waitUntil");
7938
7981
  const projectedWake = sleepState && sleepState.resumeAt > activity.observation.observedAt ? sleepState.resumeAt : null;
@@ -7943,7 +7986,7 @@ function getRunLifecycleHint(input) {
7943
7986
  };
7944
7987
  }
7945
7988
  const typedEventWaitKind = getLiveRunStringField(input.event, "waitKind");
7946
- const activityEventWait = _optionalChain([activity, 'optionalAccess', _278 => _278.observation, 'access', _279 => _279.state, 'access', _280 => _280.kind]) === "waiting" && activity.observation.state.reason.kind === "external_event";
7989
+ const activityEventWait = _optionalChain([activity, 'optionalAccess', _279 => _279.observation, 'access', _280 => _280.state, 'access', _281 => _281.kind]) === "waiting" && activity.observation.state.reason.kind === "external_event";
7947
7990
  if (status === "waiting" && (typedEventWaitKind === "integration_event" || typedEventWaitKind === "integration_event_batch" || activityEventWait)) {
7948
7991
  return {
7949
7992
  signature: [
@@ -8016,12 +8059,12 @@ function getFinalStatusFromLiveEvent(event) {
8016
8059
  }
8017
8060
  const payload = getEventPayload(event);
8018
8061
  const packageRun = getRunRecordFromPackage(payload);
8019
- const status = _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([packageRun, 'optionalAccess', _281 => _281.status]))));
8062
+ const status = _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([packageRun, 'optionalAccess', _282 => _282.status]))));
8020
8063
  if (status !== "completed" && status !== "failed" && status !== "cancelled") {
8021
8064
  return null;
8022
8065
  }
8023
- const runId = typeof payload.runId === "string" ? payload.runId : typeof _optionalChain([packageRun, 'optionalAccess', _282 => _282.id]) === "string" ? packageRun.id : "";
8024
- const error = typeof payload.error === "string" ? payload.error : typeof _optionalChain([packageRun, 'optionalAccess', _283 => _283.error]) === "string" ? packageRun.error : void 0;
8066
+ const runId = typeof payload.runId === "string" ? payload.runId : typeof _optionalChain([packageRun, 'optionalAccess', _283 => _283.id]) === "string" ? packageRun.id : "";
8067
+ const error = typeof payload.error === "string" ? payload.error : typeof _optionalChain([packageRun, 'optionalAccess', _284 => _284.error]) === "string" ? packageRun.error : void 0;
8025
8068
  return {
8026
8069
  ...payload,
8027
8070
  runId,
@@ -8229,8 +8272,8 @@ function getProgressLinesFromLiveEvent(event) {
8229
8272
  if (!state || typeof state !== "object" || Array.isArray(state)) {
8230
8273
  continue;
8231
8274
  }
8232
- const record3 = state;
8233
- const progress = record3.progress && typeof record3.progress === "object" && !Array.isArray(record3.progress) ? record3.progress : null;
8275
+ const record4 = state;
8276
+ const progress = record4.progress && typeof record4.progress === "object" && !Array.isArray(record4.progress) ? record4.progress : null;
8234
8277
  if (!progress) {
8235
8278
  continue;
8236
8279
  }
@@ -8247,7 +8290,7 @@ function getProgressLinesFromLiveEvent(event) {
8247
8290
  completed: progress.completed
8248
8291
  });
8249
8292
  lines.push(
8250
- `progress ${formatProgressLabel(_nullishCoalesce(record3.nodeId, () => ( progress.artifactTableNamespace)))}: ${counts}${messageSuffix}`
8293
+ `progress ${formatProgressLabel(_nullishCoalesce(record4.nodeId, () => ( progress.artifactTableNamespace)))}: ${counts}${messageSuffix}`
8251
8294
  );
8252
8295
  }
8253
8296
  const calls = readRecord(payload.calls);
@@ -8256,7 +8299,7 @@ function getProgressLinesFromLiveEvent(event) {
8256
8299
  (count2) => typeof count2 === "number" && Number.isSafeInteger(count2) && count2 >= 0
8257
8300
  )) {
8258
8301
  lines.push(
8259
- `progress calls: ${formatInteger(callCounts[0])} logical, ${formatInteger(callCounts[1])} provider requests, ${formatInteger(callCounts[2])} provider 429s${_optionalChain([calls, 'optionalAccess', _284 => _284.confirmed]) === true ? "" : " (observed)"}`
8302
+ `progress calls: ${formatInteger(callCounts[0])} logical, ${formatInteger(callCounts[1])} provider requests, ${formatInteger(callCounts[2])} provider 429s${_optionalChain([calls, 'optionalAccess', _285 => _285.confirmed]) === true ? "" : " (observed)"}`
8260
8303
  );
8261
8304
  }
8262
8305
  const rowOutcomes = readRowOutcomeSummary({
@@ -8307,7 +8350,7 @@ function getRunningHeartbeatLine(input) {
8307
8350
  return null;
8308
8351
  }
8309
8352
  const activity = getLiveRunActivity(input.event);
8310
- const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess', _285 => _285.observation, 'access', _286 => _286.state, 'access', _287 => _287.kind]) === "active" && activity.observation.target.kind !== "runner";
8353
+ const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess', _286 => _286.observation, 'access', _287 => _287.state, 'access', _288 => _288.kind]) === "active" && activity.observation.target.kind !== "runner";
8311
8354
  if (activity && activity.classified !== false && !activityConflictsWithDurableWait) {
8312
8355
  return `activity ${input.playName}: ${activity.summary}`;
8313
8356
  }
@@ -8340,13 +8383,13 @@ function printPlayStatusHeartbeat(input) {
8340
8383
  input.progress.writeLine(line);
8341
8384
  }
8342
8385
  function resolveRunPlayName(status, runId) {
8343
- const packaged = _optionalChain([status, 'access', _288 => _288.package, 'optionalAccess', _289 => _289.run, 'optionalAccess', _290 => _290.playName]);
8386
+ const packaged = _optionalChain([status, 'access', _289 => _289.package, 'optionalAccess', _290 => _290.run, 'optionalAccess', _291 => _291.playName]);
8344
8387
  if (typeof packaged === "string" && packaged.trim()) return packaged.trim();
8345
- return _nullishCoalesce(_nullishCoalesce(extractRunPlayName(status), () => ( _optionalChain([/^play\/(.+)\/(?:run|webhook)\//, 'access', _291 => _291.exec, 'call', _292 => _292(runId), 'optionalAccess', _293 => _293[1]]))), () => ( null));
8388
+ return _nullishCoalesce(_nullishCoalesce(extractRunPlayName(status), () => ( _optionalChain([/^play\/(.+)\/(?:run|webhook)\//, 'access', _292 => _292.exec, 'call', _293 => _293(runId), 'optionalAccess', _294 => _294[1]]))), () => ( null));
8346
8389
  }
8347
8390
  function resolvePlayRunUrl(input) {
8348
8391
  if (input.runUrl) return input.runUrl;
8349
- const runId = _optionalChain([input, 'access', _294 => _294.runId, 'optionalAccess', _295 => _295.trim, 'call', _296 => _296()]);
8392
+ const runId = _optionalChain([input, 'access', _295 => _295.runId, 'optionalAccess', _296 => _296.trim, 'call', _297 => _297()]);
8350
8393
  if (!input.dashboardUrl || !runId || runId === "pending") return void 0;
8351
8394
  const url = new URL(input.dashboardUrl);
8352
8395
  url.searchParams.set("runId", runId);
@@ -8354,7 +8397,7 @@ function resolvePlayRunUrl(input) {
8354
8397
  }
8355
8398
  function openPlayDashboard(url, open2) {
8356
8399
  if (open2 && url) {
8357
- _chunkGTGJBZVHjs.openInBrowser.call(void 0, url);
8400
+ _chunkUTCGCES2js.openInBrowser.call(void 0, url);
8358
8401
  }
8359
8402
  }
8360
8403
  function printPlayLogLines(input) {
@@ -8407,7 +8450,7 @@ async function waitForPlayCompletionByWatch(input) {
8407
8450
  const confirmAdmission = async () => {
8408
8451
  if (admissionConfirmed) return;
8409
8452
  admissionConfirmed = true;
8410
- await _optionalChain([input, 'access', _297 => _297.onRunAdmitted, 'optionalCall', _298 => _298(input.workflowId)]);
8453
+ await _optionalChain([input, 'access', _298 => _298.onRunAdmitted, 'optionalCall', _299 => _299(input.workflowId)]);
8411
8454
  };
8412
8455
  const withDashboardUrl = (status) => carryFullDurableTerminalStatus(
8413
8456
  status,
@@ -8435,7 +8478,7 @@ async function waitForPlayCompletionByWatch(input) {
8435
8478
  ...input.fullJson === void 0 ? {} : { full: input.fullJson }
8436
8479
  });
8437
8480
  } catch (error) {
8438
- if (_chunkV7KUBDEBjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8481
+ if (_chunk3MYI3IXWjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8439
8482
  return null;
8440
8483
  }
8441
8484
  throw error;
@@ -8516,9 +8559,9 @@ async function waitForPlayCompletionByWatch(input) {
8516
8559
  signal: controller.signal,
8517
8560
  deferLogs: !input.emitLogs,
8518
8561
  omitTerminalLogs: !input.emitLogs,
8519
- ..._chunkANKD3AIRjs.isCliTraceEnabled.call(void 0, ) ? {
8562
+ ..._chunkWBY3R55Bjs.isCliTraceEnabled.call(void 0, ) ? {
8520
8563
  onPoll: (observation) => {
8521
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8564
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
8522
8565
  phase: "play_watch_poll",
8523
8566
  workflowId: input.workflowId,
8524
8567
  ms: observation.durationMs,
@@ -8532,7 +8575,7 @@ async function waitForPlayCompletionByWatch(input) {
8532
8575
  full: input.fullJson,
8533
8576
  billing: false,
8534
8577
  onStatus: async (status) => {
8535
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8578
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
8536
8579
  phase: "play_watch_terminal_status",
8537
8580
  workflowId: input.workflowId,
8538
8581
  full: input.fullJson === true
@@ -8621,7 +8664,7 @@ async function startAndWaitForPlayCompletion(input) {
8621
8664
  signal: controller.signal,
8622
8665
  cliAdmission: useCliAdmission
8623
8666
  });
8624
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8667
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
8625
8668
  phase: "cli.play_start_admission_attempt",
8626
8669
  ms: Date.now() - postStartedAt,
8627
8670
  ok: true,
@@ -8633,7 +8676,7 @@ async function startAndWaitForPlayCompletion(input) {
8633
8676
  });
8634
8677
  break;
8635
8678
  } catch (error) {
8636
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8679
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
8637
8680
  phase: "cli.play_start_admission_attempt",
8638
8681
  ms: Date.now() - postStartedAt,
8639
8682
  ok: false,
@@ -8684,7 +8727,7 @@ async function startAndWaitForPlayCompletion(input) {
8684
8727
  prepared.workflowId
8685
8728
  );
8686
8729
  }
8687
- await _chunkHTYT2OHBjs.checkPlayRunCompatibility.call(void 0,
8730
+ await _chunkCDP3LMDTjs.checkPlayRunCompatibility.call(void 0,
8688
8731
  input.client.baseUrl,
8689
8732
  input.maintenancePolicy
8690
8733
  );
@@ -8702,7 +8745,7 @@ async function startAndWaitForPlayCompletion(input) {
8702
8745
  `[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
8703
8746
  );
8704
8747
  }
8705
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8748
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
8706
8749
  phase: "cli.play_start_json_retry",
8707
8750
  ms: 0,
8708
8751
  ok: true,
@@ -8758,9 +8801,9 @@ async function startAndWaitForPlayCompletion(input) {
8758
8801
  "PLAY_START_MISSING_RUN_ID"
8759
8802
  );
8760
8803
  }
8761
- await _optionalChain([input, 'access', _299 => _299.onRunStarted, 'optionalCall', _300 => _300(workflowId)]);
8762
- await _optionalChain([input, 'access', _301 => _301.onRunAdmitted, 'optionalCall', _302 => _302(workflowId)]);
8763
- const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => ( _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, input.client.baseUrl, input.playName)));
8804
+ await _optionalChain([input, 'access', _300 => _300.onRunStarted, 'optionalCall', _301 => _301(workflowId)]);
8805
+ await _optionalChain([input, 'access', _302 => _302.onRunAdmitted, 'optionalCall', _303 => _303(workflowId)]);
8806
+ const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => ( _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, input.client.baseUrl, input.playName)));
8764
8807
  const rateLimited = _nullishCoalesce(started.rateLimited, () => ( null));
8765
8808
  if (!input.jsonOutput) {
8766
8809
  writeStartedPlayRun({
@@ -8782,7 +8825,7 @@ async function startAndWaitForPlayCompletion(input) {
8782
8825
  _nullishCoalesce(input.open, () => ( false))
8783
8826
  );
8784
8827
  input.progress.phase("running");
8785
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8828
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
8786
8829
  phase: "cli.play_start_admitted",
8787
8830
  ms: Date.now() - startedAt,
8788
8831
  ok: true,
@@ -8792,15 +8835,15 @@ async function startAndWaitForPlayCompletion(input) {
8792
8835
  inlineCompatibility
8793
8836
  });
8794
8837
  const initialTerminal = readRecord(started.finalStatus);
8795
- const initialPackage = _nullishCoalesce(readRecord(_optionalChain([initialTerminal, 'optionalAccess', _303 => _303.package])), () => ( initialTerminal));
8796
- const initialRun = readRecord(_optionalChain([initialPackage, 'optionalAccess', _304 => _304.run]));
8797
- if (initialTerminal && _optionalChain([initialRun, 'optionalAccess', _305 => _305.id]) === workflowId && initialRun.status === "completed" && (initialTerminal.runId === void 0 || initialTerminal.runId === workflowId) && (initialTerminal.status === void 0 || initialTerminal.status === "completed") && input.fullJson === true && started.finalStatusView === "full") {
8838
+ const initialPackage = _nullishCoalesce(readRecord(_optionalChain([initialTerminal, 'optionalAccess', _304 => _304.package])), () => ( initialTerminal));
8839
+ const initialRun = readRecord(_optionalChain([initialPackage, 'optionalAccess', _305 => _305.run]));
8840
+ if (initialTerminal && _optionalChain([initialRun, 'optionalAccess', _306 => _306.id]) === workflowId && initialRun.status === "completed" && (initialTerminal.runId === void 0 || initialTerminal.runId === workflowId) && (initialTerminal.status === void 0 || initialTerminal.status === "completed") && input.fullJson === true && started.finalStatusView === "full") {
8798
8841
  assertPlayWaitNotTimedOut({
8799
8842
  workflowId,
8800
8843
  startedAt,
8801
8844
  waitTimeoutMs: input.waitTimeoutMs
8802
8845
  });
8803
- const initialStatus = _chunkV7KUBDEBjs.normalizePlayStatus.call(void 0, initialTerminal);
8846
+ const initialStatus = _chunk3MYI3IXWjs.normalizePlayStatus.call(void 0, initialTerminal);
8804
8847
  const status2 = await resolvePlayRunOutputStatus({
8805
8848
  client: input.client,
8806
8849
  status: initialStatus,
@@ -8808,7 +8851,7 @@ async function startAndWaitForPlayCompletion(input) {
8808
8851
  jsonOutput: input.jsonOutput,
8809
8852
  fromDurableStatus: true
8810
8853
  });
8811
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
8854
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
8812
8855
  phase: "play_watch_terminal_status",
8813
8856
  workflowId,
8814
8857
  full: true,
@@ -8847,7 +8890,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8847
8890
  () => {
8848
8891
  admissionTimedOut = true;
8849
8892
  admissionDeadline.abort();
8850
- _optionalChain([input, 'access', _306 => _306.cancelAdmissionCapability, 'optionalCall', _307 => _307()]);
8893
+ _optionalChain([input, 'access', _307 => _307.cancelAdmissionCapability, 'optionalCall', _308 => _308()]);
8851
8894
  },
8852
8895
  Math.max(1, input.waitTimeoutMs)
8853
8896
  );
@@ -8913,7 +8956,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8913
8956
  });
8914
8957
  }
8915
8958
  if (error instanceof _chunk2KHUFWTKjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
8916
- await _chunkHTYT2OHBjs.checkPlayRunCompatibility.call(void 0,
8959
+ await _chunkCDP3LMDTjs.checkPlayRunCompatibility.call(void 0,
8917
8960
  input.client.baseUrl,
8918
8961
  input.maintenancePolicy,
8919
8962
  admissionDeadline.signal
@@ -8954,7 +8997,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8954
8997
  `[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
8955
8998
  );
8956
8999
  }
8957
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9000
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
8958
9001
  phase: "cli.play_start_stream_retry",
8959
9002
  ms: 0,
8960
9003
  ok: true,
@@ -8975,7 +9018,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8975
9018
  `[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
8976
9019
  );
8977
9020
  }
8978
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9021
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
8979
9022
  phase: "cli.play_start_stream_retry",
8980
9023
  ms: 0,
8981
9024
  ok: true,
@@ -8993,7 +9036,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8993
9036
  } catch (error) {
8994
9037
  if (admissionTimedOut || admissionDeadlineAt !== void 0 && Date.now() >= admissionDeadlineAt) {
8995
9038
  assertPlayWaitNotTimedOut({
8996
- workflowId: _nullishCoalesce(_optionalChain([prepared, 'optionalAccess', _308 => _308.workflowId]), () => ( "")),
9039
+ workflowId: _nullishCoalesce(_optionalChain([prepared, 'optionalAccess', _309 => _309.workflowId]), () => ( "")),
8997
9040
  startedAt: admissionStartedAt,
8998
9041
  waitTimeoutMs: input.waitTimeoutMs
8999
9042
  });
@@ -9005,7 +9048,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9005
9048
  }
9006
9049
  async function startAndWaitForPlayCompletionByStreamOnce(input) {
9007
9050
  const startedAt = Date.now();
9008
- const dashboardUrl = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0,
9051
+ const dashboardUrl = _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0,
9009
9052
  input.client.baseUrl,
9010
9053
  input.playName
9011
9054
  );
@@ -9021,7 +9064,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9021
9064
  let timedOut = false;
9022
9065
  let emittedDashboardUrl = false;
9023
9066
  let lastKnownWorkflowId = "";
9024
- let launchedRevisionId = _optionalChain([input, 'access', _309 => _309.request, 'access', _310 => _310.revisionId, 'optionalAccess', _311 => _311.trim, 'call', _312 => _312()]) || null;
9067
+ let launchedRevisionId = _optionalChain([input, 'access', _310 => _310.request, 'access', _311 => _311.revisionId, 'optionalAccess', _312 => _312.trim, 'call', _313 => _313()]) || null;
9025
9068
  let eventCount = 0;
9026
9069
  let firstRunIdMs = null;
9027
9070
  let launchConfirmed = false;
@@ -9031,8 +9074,8 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9031
9074
  const confirmAdmission = async (runId) => {
9032
9075
  if (launchConfirmed || !runId || runId === "pending") return;
9033
9076
  launchConfirmed = true;
9034
- await _optionalChain([input, 'access', _313 => _313.onRunAdmitted, 'optionalCall', _314 => _314(runId)]);
9035
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9077
+ await _optionalChain([input, 'access', _314 => _314.onRunAdmitted, 'optionalCall', _315 => _315(runId)]);
9078
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
9036
9079
  phase: "cli.play_start_admitted",
9037
9080
  ms: Date.now() - startedAt,
9038
9081
  ok: true,
@@ -9066,7 +9109,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9066
9109
  full: input.fullJson
9067
9110
  });
9068
9111
  } catch (error) {
9069
- if (_chunkV7KUBDEBjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9112
+ if (_chunk3MYI3IXWjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9070
9113
  return null;
9071
9114
  }
9072
9115
  throw error;
@@ -9085,9 +9128,9 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9085
9128
  signal: controller.signal
9086
9129
  })) {
9087
9130
  eventCount += 1;
9088
- const expectedFullRunId = _optionalChain([input, 'access', _315 => _315.request, 'access', _316 => _316.workflowId, 'optionalAccess', _317 => _317.trim, 'call', _318 => _318()]) || lastKnownWorkflowId;
9131
+ const expectedFullRunId = _optionalChain([input, 'access', _316 => _316.request, 'access', _317 => _317.workflowId, 'optionalAccess', _318 => _318.trim, 'call', _319 => _319()]) || lastKnownWorkflowId;
9089
9132
  const eventRunId = getRunIdFromLiveEvent(event);
9090
- const pinnedRunId = input.fullJson === true && input.request.terminalStatus === "full" ? _optionalChain([input, 'access', _319 => _319.request, 'access', _320 => _320.workflowId, 'optionalAccess', _321 => _321.trim, 'call', _322 => _322()]) : void 0;
9133
+ const pinnedRunId = input.fullJson === true && input.request.terminalStatus === "full" ? _optionalChain([input, 'access', _320 => _320.request, 'access', _321 => _321.workflowId, 'optionalAccess', _322 => _322.trim, 'call', _323 => _323()]) : void 0;
9091
9134
  if (pinnedRunId && eventRunId && eventRunId !== "pending" && eventRunId !== pinnedRunId)
9092
9135
  continue;
9093
9136
  const eventRevisionId = getStringField(
@@ -9097,7 +9140,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9097
9140
  if (eventRevisionId) {
9098
9141
  launchedRevisionId = eventRevisionId;
9099
9142
  }
9100
- const eventRateLimited = _optionalChain([getEventPayload, 'call', _323 => _323(event), 'optionalAccess', _324 => _324.rateLimited]);
9143
+ const eventRateLimited = _optionalChain([getEventPayload, 'call', _324 => _324(event), 'optionalAccess', _325 => _325.rateLimited]);
9101
9144
  if (eventRateLimited && typeof eventRateLimited === "object") {
9102
9145
  notice.value = eventRateLimited;
9103
9146
  }
@@ -9106,7 +9149,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9106
9149
  lastKnownWorkflowId = eventRunId;
9107
9150
  firstRunIdMs ??= Date.now() - startedAt;
9108
9151
  if (runStartedNow) {
9109
- await _optionalChain([input, 'access', _325 => _325.onRunStarted, 'optionalCall', _326 => _326(eventRunId)]);
9152
+ await _optionalChain([input, 'access', _326 => _326.onRunStarted, 'optionalCall', _327 => _327(eventRunId)]);
9110
9153
  }
9111
9154
  }
9112
9155
  if (!launchConfirmed && eventConfirmsPlayRunLaunch(event) && eventRunId === lastKnownWorkflowId) {
@@ -9199,12 +9242,12 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9199
9242
  };
9200
9243
  }
9201
9244
  const fullPackage = getPlayRunPackage(finalStatus);
9202
- const fullRun = readRecord(_optionalChain([fullPackage, 'optionalAccess', _327 => _327.run]));
9203
- const fullSteps = _optionalChain([fullPackage, 'optionalAccess', _328 => _328.steps]);
9245
+ const fullRun = readRecord(_optionalChain([fullPackage, 'optionalAccess', _328 => _328.run]));
9246
+ const fullSteps = _optionalChain([fullPackage, 'optionalAccess', _329 => _329.steps]);
9204
9247
  const scalarStep = Array.isArray(fullSteps) ? readRecord(fullSteps[0]) : null;
9205
- const scalarExecution = readRecord(_optionalChain([scalarStep, 'optionalAccess', _329 => _329.execution]));
9206
- const completeScalarSteps = Array.isArray(fullSteps) && (_optionalChain([fullPackage, 'optionalAccess', _330 => _330.stepsExpected]) === false && fullSteps.length === 0 || _optionalChain([fullPackage, 'optionalAccess', _331 => _331.stepsExpected]) !== false && fullSteps.length === 1 && typeof _optionalChain([scalarStep, 'optionalAccess', _332 => _332.id]) === "string" && scalarStep.id.trim().length > 0 && scalarStep.kind === "step" && scalarStep.status === "completed" && _optionalChain([scalarExecution, 'optionalAccess', _333 => _333.kind]) === "completed" && scalarExecution.rows === null);
9207
- const reuseFullTerminal = input.jsonOutput && input.fullJson === true && input.request.terminalStatus === "full" && expectedFullRunId !== "" && finalStatus.runId === expectedFullRunId && _optionalChain([fullRun, 'optionalAccess', _334 => _334.id]) === expectedFullRunId && finalStatus.status === "completed" && fullRun.status === "completed" && finalStatus.finalStatusView === "full" && _optionalChain([fullPackage, 'optionalAccess', _335 => _335.resultState]) === "available" && Object.hasOwn(fullPackage, "result") && completeScalarSteps && Array.isArray(fullPackage.datasets) && fullPackage.datasets.length === 0;
9248
+ const scalarExecution = readRecord(_optionalChain([scalarStep, 'optionalAccess', _330 => _330.execution]));
9249
+ const completeScalarSteps = Array.isArray(fullSteps) && (_optionalChain([fullPackage, 'optionalAccess', _331 => _331.stepsExpected]) === false && fullSteps.length === 0 || _optionalChain([fullPackage, 'optionalAccess', _332 => _332.stepsExpected]) !== false && fullSteps.length === 1 && typeof _optionalChain([scalarStep, 'optionalAccess', _333 => _333.id]) === "string" && scalarStep.id.trim().length > 0 && scalarStep.kind === "step" && scalarStep.status === "completed" && _optionalChain([scalarExecution, 'optionalAccess', _334 => _334.kind]) === "completed" && scalarExecution.rows === null);
9250
+ const reuseFullTerminal = input.jsonOutput && input.fullJson === true && input.request.terminalStatus === "full" && expectedFullRunId !== "" && finalStatus.runId === expectedFullRunId && _optionalChain([fullRun, 'optionalAccess', _335 => _335.id]) === expectedFullRunId && finalStatus.status === "completed" && fullRun.status === "completed" && finalStatus.finalStatusView === "full" && _optionalChain([fullPackage, 'optionalAccess', _336 => _336.resultState]) === "available" && Object.hasOwn(fullPackage, "result") && completeScalarSteps && Array.isArray(fullPackage.datasets) && fullPackage.datasets.length === 0;
9208
9251
  let fromDurableStatus = reuseFullTerminal;
9209
9252
  let canonicalTerminal;
9210
9253
  const streamedTerminalPackage = getPlayRunPackage(finalStatus);
@@ -9237,7 +9280,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9237
9280
  };
9238
9281
  }
9239
9282
  if (!canonicalTerminal) {
9240
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9283
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
9241
9284
  phase: "cli.play_start_stream_stale_terminal_ignored",
9242
9285
  ms: Date.now() - startedAt,
9243
9286
  ok: true,
@@ -9258,14 +9301,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9258
9301
  fromDurableStatus
9259
9302
  }) : canonicalTerminal;
9260
9303
  if (input.fullJson === true) {
9261
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9304
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
9262
9305
  phase: "play_watch_terminal_status",
9263
9306
  workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
9264
9307
  full: true,
9265
9308
  source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
9266
9309
  });
9267
9310
  }
9268
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9311
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
9269
9312
  phase: "cli.play_start_stream_terminal",
9270
9313
  ms: Date.now() - startedAt,
9271
9314
  ok: true,
@@ -9285,7 +9328,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9285
9328
  clearTimeout(timeout);
9286
9329
  }
9287
9330
  controller.abort();
9288
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9331
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
9289
9332
  phase: "cli.play_start_stream_handoff_to_tail",
9290
9333
  ms: Date.now() - startedAt,
9291
9334
  ok: true,
@@ -9316,7 +9359,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9316
9359
  if (timedOut) {
9317
9360
  const terminal = await fetchKnownTerminalStatus();
9318
9361
  if (terminal) {
9319
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9362
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
9320
9363
  phase: "cli.play_start_stream_timeout_status_reconcile",
9321
9364
  ms: Date.now() - startedAt,
9322
9365
  ok: true,
@@ -9336,7 +9379,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9336
9379
  lastPhase
9337
9380
  });
9338
9381
  }
9339
- if (lastKnownWorkflowId && (terminalWindowExpired || _chunkV7KUBDEBjs.isTransientPlayRunReadError.call(void 0, error))) {
9382
+ if (lastKnownWorkflowId && (terminalWindowExpired || _chunk3MYI3IXWjs.isTransientPlayRunReadError.call(void 0, error))) {
9340
9383
  if (timeout) {
9341
9384
  clearTimeout(timeout);
9342
9385
  }
@@ -9347,7 +9390,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9347
9390
  `
9348
9391
  );
9349
9392
  }
9350
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9393
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
9351
9394
  phase: "cli.play_start_stream_reconnect",
9352
9395
  ms: Date.now() - startedAt,
9353
9396
  ok: true,
@@ -9374,7 +9417,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9374
9417
  });
9375
9418
  }
9376
9419
  if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
9377
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9420
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
9378
9421
  phase: "cli.play_start_stream_transient_failure",
9379
9422
  ms: Date.now() - startedAt,
9380
9423
  ok: false,
@@ -9402,7 +9445,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9402
9445
  `[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
9403
9446
  );
9404
9447
  }
9405
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
9448
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
9406
9449
  phase: "cli.play_start_stream_reconnect",
9407
9450
  ms: Date.now() - startedAt,
9408
9451
  ok: true,
@@ -9482,29 +9525,29 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
9482
9525
  "logs"
9483
9526
  ]);
9484
9527
  function formatPlayLogLine(rawLine, state) {
9485
- const classified = _chunkV7KUBDEBjs.classifyLogLine.call(void 0, rawLine);
9528
+ const classified = _chunk3MYI3IXWjs.classifyLogLine.call(void 0, rawLine);
9486
9529
  const line = classified.line;
9487
9530
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
9488
- const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _336 => _336[1]]) ? new Date(timestampMatch[1]) : null;
9531
+ const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _337 => _337[1]]) ? new Date(timestampMatch[1]) : null;
9489
9532
  const timestamp = parsedTimestamp && !Number.isNaN(parsedTimestamp.getTime()) ? parsedTimestamp.toLocaleTimeString("en-US", {
9490
9533
  hour12: false,
9491
9534
  hour: "2-digit",
9492
9535
  minute: "2-digit",
9493
9536
  second: "2-digit"
9494
9537
  }) : null;
9495
- const message = _nullishCoalesce(_optionalChain([timestampMatch, 'optionalAccess', _337 => _337[2]]), () => ( line));
9538
+ const message = _nullishCoalesce(_optionalChain([timestampMatch, 'optionalAccess', _338 => _338[2]]), () => ( line));
9496
9539
  const prefix = timestamp ? `${timestamp} ` : "";
9497
9540
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
9498
9541
  const providerWait = formatProviderCapacityWaitLogLine(line);
9499
9542
  if (providerWait && !state.verbose) {
9500
- return _chunkV7KUBDEBjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9543
+ return _chunk3MYI3IXWjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9501
9544
  }
9502
9545
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
9503
9546
  if (mapProgress && !state.verbose) {
9504
- return _chunkV7KUBDEBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9547
+ return _chunk3MYI3IXWjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9505
9548
  }
9506
9549
  if (/\[worker\] picked up run\b/.test(message)) {
9507
- if (!_chunkV7KUBDEBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9550
+ if (!_chunk3MYI3IXWjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9508
9551
  return null;
9509
9552
  }
9510
9553
  if (state.emittedRunnerStarted) {
@@ -9517,7 +9560,7 @@ function formatPlayLogLine(rawLine, state) {
9517
9560
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
9518
9561
  );
9519
9562
  if (mapStart) {
9520
- if (!_chunkV7KUBDEBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9563
+ if (!_chunk3MYI3IXWjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9521
9564
  return null;
9522
9565
  }
9523
9566
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -9527,7 +9570,7 @@ function formatPlayLogLine(rawLine, state) {
9527
9570
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
9528
9571
  );
9529
9572
  if (mapDone) {
9530
- if (!_chunkV7KUBDEBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9573
+ if (!_chunk3MYI3IXWjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9531
9574
  return null;
9532
9575
  }
9533
9576
  const [, results, executed, cached] = mapDone;
@@ -9554,9 +9597,9 @@ function formatProviderCapacityWaitLogLine(line) {
9554
9597
  let details;
9555
9598
  try {
9556
9599
  const parsed = JSON.parse(match[2]);
9557
- const record3 = readRecord(parsed);
9558
- if (!record3) return null;
9559
- details = record3;
9600
+ const record4 = readRecord(parsed);
9601
+ if (!record4) return null;
9602
+ details = record4;
9560
9603
  } catch (e10) {
9561
9604
  return null;
9562
9605
  }
@@ -9574,9 +9617,9 @@ function formatMapProgressDiagnosticLogLine(line) {
9574
9617
  let details;
9575
9618
  try {
9576
9619
  const parsed = JSON.parse(match[2]);
9577
- const record3 = readRecord(parsed);
9578
- if (!record3) return null;
9579
- details = record3;
9620
+ const record4 = readRecord(parsed);
9621
+ if (!record4) return null;
9622
+ details = record4;
9580
9623
  } catch (e11) {
9581
9624
  return null;
9582
9625
  }
@@ -9683,17 +9726,17 @@ function collectDatasetHandleLines(value, path = "result") {
9683
9726
  return [];
9684
9727
  }
9685
9728
  if (isDatasetHandle(value)) {
9686
- const record3 = value;
9687
- const count2 = typeof record3.count === "number" ? record3.count : typeof record3.rowCount === "number" ? record3.rowCount : null;
9688
- const preview = Array.isArray(record3.preview) ? record3.preview : [];
9729
+ const record4 = value;
9730
+ const count2 = typeof record4.count === "number" ? record4.count : typeof record4.rowCount === "number" ? record4.rowCount : null;
9731
+ const preview = Array.isArray(record4.preview) ? record4.preview : [];
9689
9732
  const lines2 = [
9690
- ` dataset ${typeof record3.path === "string" ? record3.path : path}: rows=${count2 === null ? "-" : formatInteger(count2)} preview=${formatInteger(preview.length)}`
9733
+ ` dataset ${typeof record4.path === "string" ? record4.path : path}: rows=${count2 === null ? "-" : formatInteger(count2)} preview=${formatInteger(preview.length)}`
9691
9734
  ];
9692
- if (typeof record3.queryDatasetCommand === "string") {
9693
- lines2.push(` query dataset: ${record3.queryDatasetCommand}`);
9735
+ if (typeof record4.queryDatasetCommand === "string") {
9736
+ lines2.push(` query dataset: ${record4.queryDatasetCommand}`);
9694
9737
  }
9695
- if (typeof record3.slowExportAsCsvCommand === "string") {
9696
- lines2.push(` export CSV: ${record3.slowExportAsCsvCommand}`);
9738
+ if (typeof record4.slowExportAsCsvCommand === "string") {
9739
+ lines2.push(` export CSV: ${record4.slowExportAsCsvCommand}`);
9697
9740
  }
9698
9741
  return lines2;
9699
9742
  }
@@ -9709,20 +9752,20 @@ function collectDatasetHandleLines(value, path = "result") {
9709
9752
  function buildRunWarnings(status, rowsInfo) {
9710
9753
  const rowOutcomes = readRowOutcomeSummary(status);
9711
9754
  const result = readRecord(status.result);
9712
- const metadata = readRecord(_optionalChain([result, 'optionalAccess', _338 => _338._metadata]));
9713
- const outputWarnings = Array.isArray(_optionalChain([metadata, 'optionalAccess', _339 => _339.outputWarnings])) ? metadata.outputWarnings.map((warning) => readRecord(warning)).filter((warning) => {
9755
+ const metadata = readRecord(_optionalChain([result, 'optionalAccess', _339 => _339._metadata]));
9756
+ const outputWarnings = Array.isArray(_optionalChain([metadata, 'optionalAccess', _340 => _340.outputWarnings])) ? metadata.outputWarnings.map((warning) => readRecord(warning)).filter((warning) => {
9714
9757
  if (!warning) return false;
9715
9758
  return !(rowsInfo && !rowsInfo.complete && warning.reason === "array_preview_limit" && warning.originalItems === rowsInfo.totalRows && warning.retainedItems === rowsInfo.rows.length);
9716
- }).map((warning) => _optionalChain([warning, 'optionalAccess', _340 => _340.message])).filter(
9759
+ }).map((warning) => _optionalChain([warning, 'optionalAccess', _341 => _341.message])).filter(
9717
9760
  (message) => typeof message === "string" && message.trim().length > 0
9718
9761
  ).slice(0, 16) : [];
9719
- const rowOutcomeWarnings = _optionalChain([rowOutcomes, 'optionalAccess', _341 => _341.hasRowFailures]) ? [
9762
+ const rowOutcomeWarnings = _optionalChain([rowOutcomes, 'optionalAccess', _342 => _342.hasRowFailures]) ? [
9720
9763
  `${status.status === "completed" ? "Run completed" : "Run ended"} with ${formatInteger(rowOutcomes.failedRows)} failed row(s); inspect the persisted failed rows before treating the output as complete.`
9721
9764
  ] : [];
9722
- const supersededRowNotices = (_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _342 => _342.supersededRows]), () => ( 0))) > 0 ? [
9765
+ const supersededRowNotices = (_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _343 => _343.supersededRows]), () => ( 0))) > 0 ? [
9723
9766
  `Latest-write-wins: ${formatSupersededRowsNotice(_nullishCoalesce(rowOutcomes.supersededRows, () => ( 0)))}; the newer write still owns that Runtime Sheet row.`
9724
9767
  ] : [];
9725
- if (status.status === "completed" && _optionalChain([rowsInfo, 'optionalAccess', _343 => _343.totalRows]) === 0) {
9768
+ if (status.status === "completed" && _optionalChain([rowsInfo, 'optionalAccess', _344 => _344.totalRows]) === 0) {
9726
9769
  return [
9727
9770
  ...rowOutcomeWarnings,
9728
9771
  ...supersededRowNotices,
@@ -9741,7 +9784,7 @@ function buildRunWarnings(status, rowsInfo) {
9741
9784
  return [...rowOutcomeWarnings, ...supersededRowNotices, ...outputWarnings];
9742
9785
  }
9743
9786
  function buildRunNextCommands(status) {
9744
- const runId = _optionalChain([status, 'access', _344 => _344.runId, 'optionalAccess', _345 => _345.trim, 'call', _346 => _346()]);
9787
+ const runId = _optionalChain([status, 'access', _345 => _345.runId, 'optionalAccess', _346 => _346.trim, 'call', _347 => _347()]);
9745
9788
  if (!runId) {
9746
9789
  const playName = extractRunPlayName(status);
9747
9790
  return playName ? {
@@ -9785,16 +9828,16 @@ function formatSupersededRowsNotice(count2) {
9785
9828
  return `${formatInteger(count2)} row${count2 === 1 ? "" : "s"} skipped because a newer Runtime Sheet write took precedence`;
9786
9829
  }
9787
9830
  function readRowOutcomeSummary(value) {
9788
- const record3 = getRecordField(value, "rowOutcomes");
9789
- if (!record3) return null;
9790
- const completedRows = getNumericField(record3, "completedRows");
9791
- const failedRows = getNumericField(record3, "failedRows");
9792
- const totalRows = getNumericField(record3, "totalRows");
9831
+ const record4 = getRecordField(value, "rowOutcomes");
9832
+ if (!record4) return null;
9833
+ const completedRows = getNumericField(record4, "completedRows");
9834
+ const failedRows = getNumericField(record4, "failedRows");
9835
+ const totalRows = getNumericField(record4, "totalRows");
9793
9836
  if (completedRows === null || failedRows === null || totalRows === null) {
9794
9837
  return null;
9795
9838
  }
9796
- const explicitHasFailures = getRecordField(record3, "hasRowFailures");
9797
- const supersededRows = getNumericField(record3, "supersededRows");
9839
+ const explicitHasFailures = getRecordField(record4, "hasRowFailures");
9840
+ const supersededRows = getNumericField(record4, "supersededRows");
9798
9841
  return {
9799
9842
  completedRows,
9800
9843
  failedRows,
@@ -9893,14 +9936,14 @@ function extractToolIdFromErrorText(text) {
9893
9936
  return null;
9894
9937
  }
9895
9938
  const lowerToolMatch = /\btool\s+([A-Za-z0-9_.:-]+)\s+\d{3}\b/.exec(text);
9896
- if (_optionalChain([lowerToolMatch, 'optionalAccess', _347 => _347[1]])) {
9939
+ if (_optionalChain([lowerToolMatch, 'optionalAccess', _348 => _348[1]])) {
9897
9940
  return lowerToolMatch[1];
9898
9941
  }
9899
9942
  const upperToolMatch = /\bTool\s+([A-Za-z0-9_.:-]+)\s+failed\b/.exec(text);
9900
- return _nullishCoalesce(_optionalChain([upperToolMatch, 'optionalAccess', _348 => _348[1]]), () => ( null));
9943
+ return _nullishCoalesce(_optionalChain([upperToolMatch, 'optionalAccess', _349 => _349[1]]), () => ( null));
9901
9944
  }
9902
9945
  function isInsufficientCreditsBilling(billing) {
9903
- return _optionalChain([billing, 'optionalAccess', _349 => _349.kind]) === "insufficient_credits";
9946
+ return _optionalChain([billing, 'optionalAccess', _350 => _350.kind]) === "insufficient_credits";
9904
9947
  }
9905
9948
  function extractBillingForStatus(status, error) {
9906
9949
  const errorBilling = getObjectField(status, "errorBilling");
@@ -9942,8 +9985,8 @@ function formatInsufficientCreditsMessage(input) {
9942
9985
  function buildInsufficientCreditsSummaryLines(input) {
9943
9986
  const progress = input.status.progress;
9944
9987
  const rowsInfo = extractCanonicalRowsInfo(input.status);
9945
- const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "completed"), () => ( getNumericField(progress, "completedRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _350 => _350.rows, 'access', _351 => _351.length]))), () => ( null));
9946
- const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "total"), () => ( getNumericField(progress, "totalRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _352 => _352.totalRows]))), () => ( null));
9988
+ const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "completed"), () => ( getNumericField(progress, "completedRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _351 => _351.rows, 'access', _352 => _352.length]))), () => ( null));
9989
+ const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "total"), () => ( getNumericField(progress, "totalRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _353 => _353.totalRows]))), () => ( null));
9947
9990
  const lines = [
9948
9991
  " status: stopped_insufficient_credits",
9949
9992
  completed === null ? " completed rows: unknown" : ` completed rows: ${formatInteger(completed)}${total !== null ? ` of ${formatInteger(total)}` : ""}`,
@@ -9962,7 +10005,7 @@ function buildInsufficientCreditsSummaryLines(input) {
9962
10005
  lines.push(" ask user: ask whether they want to add Deepline credits");
9963
10006
  lines.push(` top up after approval: ${recovery.topUp}`);
9964
10007
  lines.push(` checkout fallback: ${recovery.checkout}`);
9965
- const runId = _optionalChain([input, 'access', _353 => _353.status, 'access', _354 => _354.runId, 'optionalAccess', _355 => _355.trim, 'call', _356 => _356()]);
10008
+ const runId = _optionalChain([input, 'access', _354 => _354.status, 'access', _355 => _355.runId, 'optionalAccess', _356 => _356.trim, 'call', _357 => _357()]);
9966
10009
  if (runId) {
9967
10010
  lines.push(` inspect: deepline runs get ${runId}`);
9968
10011
  lines.push(
@@ -10044,10 +10087,10 @@ function normalizeRunStatusForEnvelope(status) {
10044
10087
  function normalizeProgressForEnvelope(status, rowsInfo) {
10045
10088
  const progress = status.progress;
10046
10089
  const rowOutcomes = readRowOutcomeSummary(status);
10047
- const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _357 => _357.totalRows]), () => ( getNumericField(progress, "totalRows"))), () => ( getNumericField(progress, "total"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _358 => _358.totalRows]))), () => ( null));
10048
- const failed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _359 => _359.failedRows]), () => ( getNumericField(progress, "failed"))), () => ( getNumericField(progress, "failedRows"))), () => ( null));
10049
- const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _360 => _360.completedRows]), () => ( getNumericField(progress, "completed"))), () => ( getNumericField(progress, "completedRows"))), () => ( (status.status === "completed" ? total : null)));
10050
- const supersededRows = _nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _361 => _361.supersededRows]), () => ( getNumericField(progress, "supersededRows")));
10090
+ const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _358 => _358.totalRows]), () => ( getNumericField(progress, "totalRows"))), () => ( getNumericField(progress, "total"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _359 => _359.totalRows]))), () => ( null));
10091
+ const failed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _360 => _360.failedRows]), () => ( getNumericField(progress, "failed"))), () => ( getNumericField(progress, "failedRows"))), () => ( null));
10092
+ const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _361 => _361.completedRows]), () => ( getNumericField(progress, "completed"))), () => ( getNumericField(progress, "completedRows"))), () => ( (status.status === "completed" ? total : null)));
10093
+ const supersededRows = _nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _362 => _362.supersededRows]), () => ( getNumericField(progress, "supersededRows")));
10051
10094
  const supersededOffset = _nullishCoalesce(supersededRows, () => ( 0));
10052
10095
  const progressPending = getNumericField(progress, "pending");
10053
10096
  const pending = _nullishCoalesce((progressPending !== null ? Math.max(0, progressPending - supersededOffset) : null), () => ( (typeof total === "number" && typeof completed === "number" && typeof failed === "number" ? Math.max(0, total - completed - failed - supersededOffset) : null)));
@@ -10117,7 +10160,7 @@ function normalizeErrorsForEnvelope(status, error) {
10117
10160
  ];
10118
10161
  }
10119
10162
  function normalizeLogsForEnvelope(status) {
10120
- const logs = Array.isArray(_optionalChain([status, 'access', _362 => _362.progress, 'optionalAccess', _363 => _363.logs])) ? status.progress.logs : [];
10163
+ const logs = Array.isArray(_optionalChain([status, 'access', _363 => _363.progress, 'optionalAccess', _364 => _364.logs])) ? status.progress.logs : [];
10121
10164
  const totalCount = logs.length;
10122
10165
  const entries = logs.slice(Math.max(0, logs.length - RUN_LOG_PREVIEW_LIMIT));
10123
10166
  const firstSequence = entries.length === 0 ? null : logs.length - entries.length + 1;
@@ -10160,20 +10203,20 @@ function getPlayRunPackage(status) {
10160
10203
  return isPlayRunPackageValue(packaged) ? packaged : null;
10161
10204
  }
10162
10205
  function playStatusRunUrl(status) {
10163
- const run = readRecord(_optionalChain([getPlayRunPackage, 'call', _364 => _364(status), 'optionalAccess', _365 => _365.run]));
10206
+ const run = readRecord(_optionalChain([getPlayRunPackage, 'call', _365 => _365(status), 'optionalAccess', _366 => _366.run]));
10164
10207
  const text = (value) => typeof value === "string" && value ? value : void 0;
10165
10208
  return resolvePlayRunUrl({
10166
- runId: _nullishCoalesce(text(_optionalChain([run, 'optionalAccess', _366 => _366.id])), () => ( status.runId)),
10167
- runUrl: _nullishCoalesce(status.runUrl, () => ( text(_optionalChain([run, 'optionalAccess', _367 => _367.runUrl])))),
10168
- dashboardUrl: _nullishCoalesce(status.dashboardUrl, () => ( text(_optionalChain([run, 'optionalAccess', _368 => _368.dashboardUrl]))))
10209
+ runId: _nullishCoalesce(text(_optionalChain([run, 'optionalAccess', _367 => _367.id])), () => ( status.runId)),
10210
+ runUrl: _nullishCoalesce(status.runUrl, () => ( text(_optionalChain([run, 'optionalAccess', _368 => _368.runUrl])))),
10211
+ dashboardUrl: _nullishCoalesce(status.dashboardUrl, () => ( text(_optionalChain([run, 'optionalAccess', _369 => _369.dashboardUrl]))))
10169
10212
  });
10170
10213
  }
10171
10214
  function withTerminalPlayIdentity(status, playName) {
10172
10215
  if (!playName.trim() || getPlayRunPackage(status)) {
10173
10216
  return status;
10174
10217
  }
10175
- const record3 = status;
10176
- const hasIdentity = typeof record3.playName === "string" && record3.playName.trim().length > 0 || typeof record3.name === "string" && record3.name.trim().length > 0 || Boolean(getStringField(record3.run, "playName"));
10218
+ const record4 = status;
10219
+ const hasIdentity = typeof record4.playName === "string" && record4.playName.trim().length > 0 || typeof record4.name === "string" && record4.name.trim().length > 0 || Boolean(getStringField(record4.run, "playName"));
10177
10220
  if (hasIdentity) {
10178
10221
  return status;
10179
10222
  }
@@ -10183,7 +10226,7 @@ function compactPlayStatus(status) {
10183
10226
  const packaged = getPlayRunPackage(status);
10184
10227
  if (packaged) {
10185
10228
  const packagedRun = readRecord(packaged.run);
10186
- const packagedError = typeof _optionalChain([packagedRun, 'optionalAccess', _369 => _369.error]) === "string" ? packagedRun.error : null;
10229
+ const packagedError = typeof _optionalChain([packagedRun, 'optionalAccess', _370 => _370.error]) === "string" ? packagedRun.error : null;
10187
10230
  const error2 = _nullishCoalesce(selectRunErrorForDisplay(status), () => ( (typeof status.error === "string" ? String(status.error) : packagedError)));
10188
10231
  const compactError = error2 ? compactRunErrorForEnvelope(error2, status.runId) : null;
10189
10232
  const rowOutcomes2 = readRowOutcomeSummary(status);
@@ -10305,9 +10348,9 @@ function formatSummaryScalar(value) {
10305
10348
  }
10306
10349
  return null;
10307
10350
  }
10308
- function formatSummaryScalarParts(record3, skipKeys = /* @__PURE__ */ new Set()) {
10351
+ function formatSummaryScalarParts(record4, skipKeys = /* @__PURE__ */ new Set()) {
10309
10352
  const parts = [];
10310
- for (const [key, value] of Object.entries(record3)) {
10353
+ for (const [key, value] of Object.entries(record4)) {
10311
10354
  if (skipKeys.has(key)) {
10312
10355
  continue;
10313
10356
  }
@@ -10334,13 +10377,13 @@ function formatTopValuesPart(value) {
10334
10377
  return `top_values=${entries.map(([topValue, count2]) => `${topValue}=${String(count2)}`).join(", ")}`;
10335
10378
  }
10336
10379
  function formatPackageDatasetSummaryLines(summary, indent = " ") {
10337
- const record3 = readRecord(summary);
10338
- const columnStats = readRecord(_optionalChain([record3, 'optionalAccess', _370 => _370.columnStats]));
10339
- if (!record3 || !columnStats) {
10380
+ const record4 = readRecord(summary);
10381
+ const columnStats = readRecord(_optionalChain([record4, 'optionalAccess', _371 => _371.columnStats]));
10382
+ if (!record4 || !columnStats) {
10340
10383
  return [];
10341
10384
  }
10342
10385
  const lines = [];
10343
- const rowCounts = readRecord(record3.rowCounts);
10386
+ const rowCounts = readRecord(record4.rowCounts);
10344
10387
  if (rowCounts) {
10345
10388
  const persisted = readNonNegativeInteger(rowCounts.persisted);
10346
10389
  const succeeded = readNonNegativeInteger(rowCounts.succeeded);
@@ -10356,7 +10399,7 @@ function formatPackageDatasetSummaryLines(summary, indent = " ") {
10356
10399
  }
10357
10400
  }
10358
10401
  const parts = formatSummaryScalarParts(
10359
- record3,
10402
+ record4,
10360
10403
  /* @__PURE__ */ new Set(["columnStats", "rowCounts"])
10361
10404
  );
10362
10405
  if (parts.length > 0) {
@@ -10386,35 +10429,35 @@ function actionToCommand(action) {
10386
10429
  if (!action || typeof action !== "object" || Array.isArray(action)) {
10387
10430
  return null;
10388
10431
  }
10389
- const record3 = action;
10390
- if (typeof record3.command === "string" && record3.command.trim()) {
10391
- return record3.command.trim();
10432
+ const record4 = action;
10433
+ if (typeof record4.command === "string" && record4.command.trim()) {
10434
+ return record4.command.trim();
10392
10435
  }
10393
- if (record3.kind === "deepline_run_inspect" && typeof record3.runId === "string") {
10394
- return `deepline runs get ${record3.runId}`;
10436
+ if (record4.kind === "deepline_run_inspect" && typeof record4.runId === "string") {
10437
+ return `deepline runs get ${record4.runId}`;
10395
10438
  }
10396
- if (record3.kind === "deepline_run_full" && typeof record3.runId === "string") {
10397
- return `deepline runs get ${record3.runId} --full`;
10439
+ if (record4.kind === "deepline_run_full" && typeof record4.runId === "string") {
10440
+ return `deepline runs get ${record4.runId} --full`;
10398
10441
  }
10399
- if (record3.kind === "deepline_run_billing" && typeof record3.runId === "string") {
10400
- return `deepline billing usage --run-id ${record3.runId}`;
10442
+ if (record4.kind === "deepline_run_billing" && typeof record4.runId === "string") {
10443
+ return `deepline billing usage --run-id ${record4.runId}`;
10401
10444
  }
10402
- if (record3.kind === "deepline_run_export" && typeof record3.runId === "string" && typeof record3.datasetPath === "string") {
10403
- return `deepline runs export ${record3.runId} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0,
10404
- record3.datasetPath
10405
- )} --out ${_chunkAID3OYVJjs.shellQuote.call(void 0, `${record3.datasetPath.split(".").pop() || "dataset"}.csv`)}`;
10445
+ if (record4.kind === "deepline_run_export" && typeof record4.runId === "string" && typeof record4.datasetPath === "string") {
10446
+ return `deepline runs export ${record4.runId} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0,
10447
+ record4.datasetPath
10448
+ )} --out ${_chunkAID3OYVJjs.shellQuote.call(void 0, `${record4.datasetPath.split(".").pop() || "dataset"}.csv`)}`;
10406
10449
  }
10407
- if (record3.kind === "deepline_run_logs") {
10408
- if (typeof record3.command === "string" && record3.command.trim()) {
10409
- return record3.command;
10450
+ if (record4.kind === "deepline_run_logs") {
10451
+ if (typeof record4.command === "string" && record4.command.trim()) {
10452
+ return record4.command;
10410
10453
  }
10411
- if (typeof record3.runId === "string") {
10412
- return record3.view === "failed" ? `deepline runs logs ${record3.runId} --failed` : `deepline runs logs ${record3.runId}`;
10454
+ if (typeof record4.runId === "string") {
10455
+ return record4.view === "failed" ? `deepline runs logs ${record4.runId} --failed` : `deepline runs logs ${record4.runId}`;
10413
10456
  }
10414
10457
  }
10415
- if (record3.kind === "deepline_db_query" && typeof record3.sql === "string") {
10416
- const maxRows = typeof record3.maxRows === "number" && Number.isFinite(record3.maxRows) ? Math.trunc(record3.maxRows) : 20;
10417
- return `deepline db query --sql ${_chunkAID3OYVJjs.shellQuote.call(void 0, record3.sql)} --max-rows ${maxRows}`;
10458
+ if (record4.kind === "deepline_db_query" && typeof record4.sql === "string") {
10459
+ const maxRows = typeof record4.maxRows === "number" && Number.isFinite(record4.maxRows) ? Math.trunc(record4.maxRows) : 20;
10460
+ return `deepline db query --sql ${_chunkAID3OYVJjs.shellQuote.call(void 0, record4.sql)} --max-rows ${maxRows}`;
10418
10461
  }
10419
10462
  return null;
10420
10463
  }
@@ -10423,7 +10466,7 @@ function packageDatasetRecords(packaged) {
10423
10466
  if (catalog.length > 0) return catalog;
10424
10467
  return readRecordArray(packaged.steps).flatMap((step) => {
10425
10468
  const output = readRecord(step.output);
10426
- return _optionalChain([output, 'optionalAccess', _371 => _371.kind]) === "dataset" ? [output] : [];
10469
+ return _optionalChain([output, 'optionalAccess', _372 => _372.kind]) === "dataset" ? [output] : [];
10427
10470
  });
10428
10471
  }
10429
10472
  function packageReturnedDatasetIdentity(packaged) {
@@ -10432,7 +10475,7 @@ function packageReturnedDatasetIdentity(packaged) {
10432
10475
  const outputs = _nullishCoalesce(readRecord(packaged.outputs), () => ( {}));
10433
10476
  for (const outputValue of Object.values(outputs)) {
10434
10477
  const output = readRecord(outputValue);
10435
- if (_optionalChain([output, 'optionalAccess', _372 => _372.kind]) !== "dataset") continue;
10478
+ if (_optionalChain([output, 'optionalAccess', _373 => _373.kind]) !== "dataset") continue;
10436
10479
  if (typeof output.datasetId === "string" && output.datasetId.trim()) {
10437
10480
  datasetIds.add(output.datasetId.trim());
10438
10481
  }
@@ -10468,7 +10511,7 @@ function formatRunStepProgress(progress, includeRowOutcomes = false) {
10468
10511
  }
10469
10512
  function formatPackageDatasetActionLines(packaged, options) {
10470
10513
  const returned = packageReturnedDatasetIdentity(packaged);
10471
- const includeSummary = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _373 => _373.includeSummary]), () => ( true));
10514
+ const includeSummary = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _374 => _374.includeSummary]), () => ( true));
10472
10515
  const lines = [];
10473
10516
  const steps = readRecordArray(packaged.steps);
10474
10517
  const stepsByDatasetId = /* @__PURE__ */ new Map();
@@ -10477,10 +10520,10 @@ function formatPackageDatasetActionLines(packaged, options) {
10477
10520
  for (const step of steps) {
10478
10521
  if (step.kind !== "dataset") continue;
10479
10522
  const output = readRecord(step.output);
10480
- if (typeof _optionalChain([output, 'optionalAccess', _374 => _374.datasetId]) === "string") {
10523
+ if (typeof _optionalChain([output, 'optionalAccess', _375 => _375.datasetId]) === "string") {
10481
10524
  stepsByDatasetId.set(output.datasetId, step);
10482
10525
  }
10483
- if (typeof _optionalChain([output, 'optionalAccess', _375 => _375.path]) === "string") {
10526
+ if (typeof _optionalChain([output, 'optionalAccess', _376 => _376.path]) === "string") {
10484
10527
  stepsByPath.set(output.path, step);
10485
10528
  }
10486
10529
  if (typeof step.id === "string") {
@@ -10494,8 +10537,8 @@ function formatPackageDatasetActionLines(packaged, options) {
10494
10537
  const category = isReturned ? "returned" : dataset.recovered === true ? "recovered" : "persisted";
10495
10538
  const rowCount = typeof dataset.rowCount === "number" && Number.isFinite(dataset.rowCount) ? Math.max(0, Math.trunc(dataset.rowCount)) : null;
10496
10539
  const lifecycle = readRecord(dataset.lifecycle);
10497
- const countUnconfirmed = _optionalChain([lifecycle, 'optionalAccess', _376 => _376.complete]) === false;
10498
- const persistedLowerBound = typeof _optionalChain([lifecycle, 'optionalAccess', _377 => _377.persistedRowsAtLeast]) === "number" && Number.isFinite(lifecycle.persistedRowsAtLeast) ? Math.max(0, Math.trunc(lifecycle.persistedRowsAtLeast)) : 0;
10540
+ const countUnconfirmed = _optionalChain([lifecycle, 'optionalAccess', _377 => _377.complete]) === false;
10541
+ const persistedLowerBound = typeof _optionalChain([lifecycle, 'optionalAccess', _378 => _378.persistedRowsAtLeast]) === "number" && Number.isFinite(lifecycle.persistedRowsAtLeast) ? Math.max(0, Math.trunc(lifecycle.persistedRowsAtLeast)) : 0;
10499
10542
  const actions2 = _nullishCoalesce(readRecord(dataset.actions), () => ( {}));
10500
10543
  if (countUnconfirmed) {
10501
10544
  lines.push(
@@ -10513,7 +10556,7 @@ function formatPackageDatasetActionLines(packaged, options) {
10513
10556
  }
10514
10557
  }
10515
10558
  const step = _nullishCoalesce(_nullishCoalesce((datasetId ? stepsByDatasetId.get(datasetId) : void 0), () => ( stepsByPath.get(path))), () => ( (typeof dataset.tableNamespace === "string" ? stepsByNamespace.get(dataset.tableNamespace) : void 0)));
10516
- const progress = readRecord(_optionalChain([step, 'optionalAccess', _378 => _378.progress]));
10559
+ const progress = readRecord(_optionalChain([step, 'optionalAccess', _379 => _379.progress]));
10517
10560
  if (progress) {
10518
10561
  lines.push(` progress: ${formatRunStepProgress(progress)}`);
10519
10562
  }
@@ -10527,10 +10570,10 @@ function formatPackageDatasetActionLines(packaged, options) {
10527
10570
  }
10528
10571
  const exportAction = readRecord(actions2.exportCsv);
10529
10572
  const exportCommand = actionToCommand(exportAction);
10530
- const exportScope = readRecord(_optionalChain([exportAction, 'optionalAccess', _379 => _379.scope]));
10573
+ const exportScope = readRecord(_optionalChain([exportAction, 'optionalAccess', _380 => _380.scope]));
10531
10574
  const queryAction = readRecord(actions2.query);
10532
- const queryScope = readRecord(_optionalChain([queryAction, 'optionalAccess', _380 => _380.scope]));
10533
- const runQueryCommand = _optionalChain([queryScope, 'optionalAccess', _381 => _381.kind]) === "run" ? actionToCommand(queryAction) : null;
10575
+ const queryScope = readRecord(_optionalChain([queryAction, 'optionalAccess', _381 => _381.scope]));
10576
+ const runQueryCommand = _optionalChain([queryScope, 'optionalAccess', _382 => _382.kind]) === "run" ? actionToCommand(queryAction) : null;
10534
10577
  const currentQueryCommand = actionToCommand(actions2.queryCurrentTable);
10535
10578
  const legacyQueryCommand = actionToCommand(actions2.query);
10536
10579
  if (runQueryCommand) {
@@ -10542,11 +10585,11 @@ function formatPackageDatasetActionLines(packaged, options) {
10542
10585
  }
10543
10586
  if (exportCommand) {
10544
10587
  lines.push(
10545
- _optionalChain([exportScope, 'optionalAccess', _382 => _382.kind]) === "database" ? ` export current table (may include other runs): ${exportCommand}` : ` export this run: ${exportCommand}`
10588
+ _optionalChain([exportScope, 'optionalAccess', _383 => _383.kind]) === "database" ? ` export current table (may include other runs): ${exportCommand}` : ` export this run: ${exportCommand}`
10546
10589
  );
10547
10590
  }
10548
10591
  const unavailable = readRecord(dataset.exportUnavailable);
10549
- if (typeof _optionalChain([unavailable, 'optionalAccess', _383 => _383.reason]) === "string" && typeof unavailable.message === "string") {
10592
+ if (typeof _optionalChain([unavailable, 'optionalAccess', _384 => _384.reason]) === "string" && typeof unavailable.message === "string") {
10550
10593
  lines.push(
10551
10594
  ` export unavailable (${unavailable.reason}): ${unavailable.message}`
10552
10595
  );
@@ -10563,7 +10606,7 @@ function packageSavedRowCount(packaged) {
10563
10606
  }
10564
10607
  function runtimeLimitWindowLabel(runtimeLimitFailure) {
10565
10608
  const message = _nullishCoalesce(getStringField(runtimeLimitFailure, "message"), () => ( ""));
10566
- const configuredSeconds = _optionalChain([/\bconfigured\s+(\d+)\s+second(?:s)?\s+runtime limit\b/i, 'access', _384 => _384.exec, 'call', _385 => _385(message), 'optionalAccess', _386 => _386[1]]);
10609
+ const configuredSeconds = _optionalChain([/\bconfigured\s+(\d+)\s+second(?:s)?\s+runtime limit\b/i, 'access', _385 => _385.exec, 'call', _386 => _386(message), 'optionalAccess', _387 => _387[1]]);
10567
10610
  if (configuredSeconds) {
10568
10611
  const seconds = Number(configuredSeconds);
10569
10612
  if (Number.isSafeInteger(seconds) && seconds > 0) {
@@ -10609,8 +10652,8 @@ function formatPackageValueOutputLines(packaged) {
10609
10652
  const outputs = packaged.outputs && typeof packaged.outputs === "object" && !Array.isArray(packaged.outputs) ? packaged.outputs : null;
10610
10653
  if (!outputs) return [];
10611
10654
  const returned = Object.entries(outputs).filter(([, output]) => {
10612
- const record3 = readRecord(output);
10613
- return _optionalChain([record3, 'optionalAccess', _387 => _387.kind]) === "dataset" || _optionalChain([record3, 'optionalAccess', _388 => _388.kind]) === "value" && Object.prototype.hasOwnProperty.call(record3, "value");
10655
+ const record4 = readRecord(output);
10656
+ return _optionalChain([record4, 'optionalAccess', _388 => _388.kind]) === "dataset" || _optionalChain([record4, 'optionalAccess', _389 => _389.kind]) === "value" && Object.prototype.hasOwnProperty.call(record4, "value");
10614
10657
  });
10615
10658
  if (returned.length === 0) return [];
10616
10659
  const datasets = packageDatasetRecords(packaged);
@@ -10630,10 +10673,10 @@ function formatPackageValueOutputLines(packaged) {
10630
10673
  (candidate) => typeof output.datasetId === "string" && candidate.datasetId === output.datasetId || candidate.path === path
10631
10674
  );
10632
10675
  const stepOutput = datasetSteps.map((step) => readRecord(step.output)).find(
10633
- (candidate) => typeof output.datasetId === "string" && _optionalChain([candidate, 'optionalAccess', _389 => _389.datasetId]) === output.datasetId || _optionalChain([candidate, 'optionalAccess', _390 => _390.path]) === path
10676
+ (candidate) => typeof output.datasetId === "string" && _optionalChain([candidate, 'optionalAccess', _390 => _390.datasetId]) === output.datasetId || _optionalChain([candidate, 'optionalAccess', _391 => _391.path]) === path
10634
10677
  );
10635
- const preview = readRecord(_nullishCoalesce(_optionalChain([stepOutput, 'optionalAccess', _391 => _391.preview]), () => ( _optionalChain([dataset, 'optionalAccess', _392 => _392.preview]))));
10636
- const rows = Array.isArray(_optionalChain([preview, 'optionalAccess', _393 => _393.rows])) ? preview.rows.slice(0, 2) : [];
10678
+ const preview = readRecord(_nullishCoalesce(_optionalChain([stepOutput, 'optionalAccess', _392 => _392.preview]), () => ( _optionalChain([dataset, 'optionalAccess', _393 => _393.preview]))));
10679
+ const rows = Array.isArray(_optionalChain([preview, 'optionalAccess', _394 => _394.rows])) ? preview.rows.slice(0, 2) : [];
10637
10680
  if (rows.length > 0) {
10638
10681
  lines.push(` sample rows (${rows.length}):`);
10639
10682
  lines.push(
@@ -10659,7 +10702,7 @@ function formatPackageValueOutputLines(packaged) {
10659
10702
  return lines;
10660
10703
  }
10661
10704
  function authoredPackageStackFrames(packaged) {
10662
- const stack = readRecordArray(packaged.errors).map((entry) => typeof entry.stack === "string" ? entry.stack : null).find((candidate) => Boolean(_optionalChain([candidate, 'optionalAccess', _394 => _394.trim, 'call', _395 => _395()])));
10705
+ const stack = readRecordArray(packaged.errors).map((entry) => typeof entry.stack === "string" ? entry.stack : null).find((candidate) => Boolean(_optionalChain([candidate, 'optionalAccess', _395 => _395.trim, 'call', _396 => _396()])));
10663
10706
  if (!stack) return [];
10664
10707
  return stack.split("\n").map((line) => line.trim()).filter((line) => line.startsWith("at ")).filter(
10665
10708
  (line) => !line.includes("/virtual/deepline-plays/") && !line.includes("/apps/play-runner/") && !line.includes("/shared_libs/play-runtime/") && !line.includes("node:internal")
@@ -10691,9 +10734,9 @@ function activityIsoTimestamp(value) {
10691
10734
  }
10692
10735
  function buildRunActivityTextLines(run) {
10693
10736
  const activity = readRecord(run.activity);
10694
- const observation = readRecord(_optionalChain([activity, 'optionalAccess', _396 => _396.observation]));
10695
- const state = readRecord(_optionalChain([observation, 'optionalAccess', _397 => _397.state]));
10696
- const target = readRecord(_optionalChain([observation, 'optionalAccess', _398 => _398.target]));
10737
+ const observation = readRecord(_optionalChain([activity, 'optionalAccess', _397 => _397.observation]));
10738
+ const state = readRecord(_optionalChain([observation, 'optionalAccess', _398 => _398.state]));
10739
+ const target = readRecord(_optionalChain([observation, 'optionalAccess', _399 => _399.target]));
10697
10740
  if (!activity || !observation || !state) return [];
10698
10741
  const kind = typeof state.kind === "string" ? state.kind : "unknown";
10699
10742
  if (kind === "completed") return [];
@@ -10738,11 +10781,11 @@ function buildRunActivityTextLines(run) {
10738
10781
  }
10739
10782
  function formatObservedRunCounter(value) {
10740
10783
  const counter = readRecord(value);
10741
- const count2 = _optionalChain([counter, 'optionalAccess', _399 => _399.value]);
10784
+ const count2 = _optionalChain([counter, 'optionalAccess', _400 => _400.value]);
10742
10785
  if (typeof count2 !== "number" || !Number.isSafeInteger(count2) || count2 < 0) {
10743
10786
  return "unknown";
10744
10787
  }
10745
- return _optionalChain([counter, 'optionalAccess', _400 => _400.confirmed]) === true ? formatInteger(count2) : `${formatInteger(count2)} observed`;
10788
+ return _optionalChain([counter, 'optionalAccess', _401 => _401.confirmed]) === true ? formatInteger(count2) : `${formatInteger(count2)} observed`;
10746
10789
  }
10747
10790
  function buildRunStatusEvidenceTextLines(packaged) {
10748
10791
  const evidence = readRecord(packaged.runStatus);
@@ -10755,13 +10798,13 @@ function buildRunStatusEvidenceTextLines(packaged) {
10755
10798
  );
10756
10799
  }
10757
10800
  const source = readRecord(evidence.source);
10758
- if (_optionalChain([source, 'optionalAccess', _401 => _401.aligned]) === false) {
10801
+ if (_optionalChain([source, 'optionalAccess', _402 => _402.aligned]) === false) {
10759
10802
  lines.push(
10760
10803
  ` consistency: run snapshot event ${String(source.runSnapshotLedgerNextSeq)} and progress event ${String(source.ledgerNextSeq)} differ; retry this read to align them`
10761
10804
  );
10762
10805
  }
10763
10806
  const focus = readRecord(evidence.focusStep);
10764
- const rows = readRecord(_optionalChain([focus, 'optionalAccess', _402 => _402.rows]));
10807
+ const rows = readRecord(_optionalChain([focus, 'optionalAccess', _403 => _403.rows]));
10765
10808
  if (focus) {
10766
10809
  const id = typeof focus.id === "string" && focus.id.trim() ? focus.id.trim() : "unknown step";
10767
10810
  const label = typeof focus.label === "string" && focus.label.trim() ? ` (${focus.label.trim()})` : "";
@@ -10769,7 +10812,7 @@ function buildRunStatusEvidenceTextLines(packaged) {
10769
10812
  const known = readRecordArray(packaged.steps).find(
10770
10813
  (step) => typeof step.id === "string" && (id === step.id || id.endsWith(`:${step.id}`)) && typeof step.label === "string"
10771
10814
  );
10772
- const state = typeof _optionalChain([known, 'optionalAccess', _403 => _403.label]) === "string" ? known.label : typeof focus.status === "string" && focus.status.trim() ? formatNodeExecutionState(
10815
+ const state = typeof _optionalChain([known, 'optionalAccess', _404 => _404.label]) === "string" ? known.label : typeof focus.status === "string" && focus.status.trim() ? formatNodeExecutionState(
10773
10816
  deriveNodeExecutionState({
10774
10817
  reported: {
10775
10818
  status: focus.status.trim(),
@@ -10779,7 +10822,7 @@ function buildRunStatusEvidenceTextLines(packaged) {
10779
10822
  total: rows.total
10780
10823
  } : null
10781
10824
  },
10782
- runStatus: _optionalChain([run, 'optionalAccess', _404 => _404.status])
10825
+ runStatus: _optionalChain([run, 'optionalAccess', _405 => _405.status])
10783
10826
  })
10784
10827
  ) : null;
10785
10828
  lines.push(` current step: ${id}${label}${state ? `: ${state}` : ""}`);
@@ -10827,7 +10870,7 @@ function formatRecentRunLogLines(value) {
10827
10870
  (line) => typeof line === "string"
10828
10871
  );
10829
10872
  if (tail.length === 0) return [];
10830
- const shown = tail.map((line) => _chunkV7KUBDEBjs.classifyLogLine.call(void 0, line)).filter(
10873
+ const shown = tail.map((line) => _chunk3MYI3IXWjs.classifyLogLine.call(void 0, line)).filter(
10831
10874
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
10832
10875
  ).slice(-8);
10833
10876
  const total = readNonNegativeInteger(logs.totalCount);
@@ -10871,7 +10914,7 @@ function buildRunPackageTextLines(packaged) {
10871
10914
  lines.push(` recovery: ${mode}${sourceRunId}`);
10872
10915
  }
10873
10916
  const runError = typeof run.error === "string" && run.error.trim() ? run.error.trim() : null;
10874
- const structuredRuntimeLimitMessage = typeof _optionalChain([runtimeLimitFailure, 'optionalAccess', _405 => _405.message]) === "string" && runtimeLimitFailure.message.trim() ? `${typeof runtimeLimitFailure.code === "string" ? runtimeLimitFailure.code : "RUNTIME_LIMIT_EXCEEDED"}: ${runtimeLimitFailure.message.trim()}` : null;
10917
+ const structuredRuntimeLimitMessage = typeof _optionalChain([runtimeLimitFailure, 'optionalAccess', _406 => _406.message]) === "string" && runtimeLimitFailure.message.trim() ? `${typeof runtimeLimitFailure.code === "string" ? runtimeLimitFailure.code : "RUNTIME_LIMIT_EXCEEDED"}: ${runtimeLimitFailure.message.trim()}` : null;
10875
10918
  const displayRunError = _nullishCoalesce(structuredRuntimeLimitMessage, () => ( runError));
10876
10919
  if (!isRuntimeLimitCheckpoint && displayRunError && (status === "failed" || status === "cancelled")) {
10877
10920
  lines.push(` error: ${truncateErrorForDisplay(displayRunError, runId)}`);
@@ -10882,11 +10925,11 @@ function buildRunPackageTextLines(packaged) {
10882
10925
  }
10883
10926
  }
10884
10927
  const failedLogs = readRecord(packaged.failedLogs);
10885
- const failedLogEntries = Array.isArray(_optionalChain([failedLogs, 'optionalAccess', _406 => _406.entries])) ? failedLogs.entries.filter(
10928
+ const failedLogEntries = Array.isArray(_optionalChain([failedLogs, 'optionalAccess', _407 => _407.entries])) ? failedLogs.entries.filter(
10886
10929
  (entry) => typeof entry === "string"
10887
10930
  ) : [];
10888
- const failedLogAssociation = typeof _optionalChain([failedLogs, 'optionalAccess', _407 => _407.association]) === "string" ? failedLogs.association : null;
10889
- const failedLogWarning = typeof _optionalChain([failedLogs, 'optionalAccess', _408 => _408.warning]) === "string" && failedLogs.warning.trim() ? failedLogs.warning.trim() : null;
10931
+ const failedLogAssociation = typeof _optionalChain([failedLogs, 'optionalAccess', _408 => _408.association]) === "string" ? failedLogs.association : null;
10932
+ const failedLogWarning = typeof _optionalChain([failedLogs, 'optionalAccess', _409 => _409.warning]) === "string" && failedLogs.warning.trim() ? failedLogs.warning.trim() : null;
10890
10933
  if (failedLogEntries.length > 0) {
10891
10934
  lines.push(" failed logs:");
10892
10935
  lines.push(...failedLogEntries.map((entry) => ` ${entry}`));
@@ -10905,8 +10948,8 @@ function buildRunPackageTextLines(packaged) {
10905
10948
  )
10906
10949
  ).slice(0, 16) : [];
10907
10950
  lines.push(...packageWarnings.map((warning) => ` warning: ${warning}`));
10908
- const failedLogNext = readRecord(_optionalChain([failedLogs, 'optionalAccess', _409 => _409.next]));
10909
- if (failedLogWarning && typeof _optionalChain([failedLogNext, 'optionalAccess', _410 => _410.logs]) === "string") {
10951
+ const failedLogNext = readRecord(_optionalChain([failedLogs, 'optionalAccess', _410 => _410.next]));
10952
+ if (failedLogWarning && typeof _optionalChain([failedLogNext, 'optionalAccess', _411 => _411.logs]) === "string") {
10910
10953
  lines.push(
10911
10954
  failedLogAssociation === "retained_before_truncation" ? ` retained logs: ${failedLogNext.logs}` : ` retry failed logs: ${failedLogNext.logs}`
10912
10955
  );
@@ -10934,20 +10977,20 @@ function buildRunPackageTextLines(packaged) {
10934
10977
  const stepStatus = typeof step.status === "string" ? step.status : status;
10935
10978
  const output = step.output && typeof step.output === "object" && !Array.isArray(step.output) ? step.output : null;
10936
10979
  const rowCount = output && typeof output.rowCount === "number" ? ` rows=${formatInteger(output.rowCount)}` : "";
10937
- const preview = _optionalChain([output, 'optionalAccess', _411 => _411.preview]) && typeof output.preview === "object" && !Array.isArray(output.preview) ? output.preview : null;
10938
- const previewRows = Array.isArray(_optionalChain([preview, 'optionalAccess', _412 => _412.rows])) ? preview.rows.length : null;
10980
+ const preview = _optionalChain([output, 'optionalAccess', _412 => _412.preview]) && typeof output.preview === "object" && !Array.isArray(output.preview) ? output.preview : null;
10981
+ const previewRows = Array.isArray(_optionalChain([preview, 'optionalAccess', _413 => _413.rows])) ? preview.rows.length : null;
10939
10982
  lines.push(` ${kind} ${id}: ${stepStatus}${rowCount}`);
10940
- lines.push(...formatPackageDatasetSummaryLines(_optionalChain([output, 'optionalAccess', _413 => _413.summary])));
10983
+ lines.push(...formatPackageDatasetSummaryLines(_optionalChain([output, 'optionalAccess', _414 => _414.summary])));
10941
10984
  if (previewRows !== null) {
10942
10985
  lines.push(
10943
- ` preview=${previewRows}${_optionalChain([preview, 'optionalAccess', _414 => _414.truncated]) ? " truncated" : ""}`
10986
+ ` preview=${previewRows}${_optionalChain([preview, 'optionalAccess', _415 => _415.truncated]) ? " truncated" : ""}`
10944
10987
  );
10945
10988
  }
10946
10989
  }
10947
10990
  const inspectCommand = actionToCommand(next.inspect);
10948
10991
  const fullResultCommand = actionToCommand(next.full);
10949
10992
  const hasCatalogExportAction = packageDatasetRecords(packaged).some(
10950
- (dataset) => Boolean(actionToCommand(_optionalChain([readRecord, 'call', _415 => _415(dataset.actions), 'optionalAccess', _416 => _416.exportCsv])))
10993
+ (dataset) => Boolean(actionToCommand(_optionalChain([readRecord, 'call', _416 => _416(dataset.actions), 'optionalAccess', _417 => _417.exportCsv])))
10951
10994
  );
10952
10995
  const legacyExportCommand = hasCatalogExportAction ? null : actionToCommand(next.export);
10953
10996
  const runAgainCommand = typeof next.run === "string" && next.run.trim() ? next.run.trim() : null;
@@ -11012,7 +11055,7 @@ function withOrdinaryRunAgainCommand(status, options, resolvedRevisionId) {
11012
11055
  }
11013
11056
  function buildBillingRollupTextLines(status) {
11014
11057
  const billing = status.billing;
11015
- const rollup = _optionalChain([billing, 'optionalAccess', _417 => _417.rollup]);
11058
+ const rollup = _optionalChain([billing, 'optionalAccess', _418 => _418.rollup]);
11016
11059
  if (!rollup) return [];
11017
11060
  const total = formatCreditAmount2(rollup.totalCreditsRollup);
11018
11061
  if (rollup.childCredits > 0 && rollup.descendantRunCount > 0) {
@@ -11031,7 +11074,7 @@ function buildBillingRollupTextLines(status) {
11031
11074
  return [` cost: ${total} credits`];
11032
11075
  }
11033
11076
  function playRunRateLimitedNotice(status) {
11034
- const notice = _nullishCoalesce(_optionalChain([getPlayRunPackage, 'call', _418 => _418(status), 'optionalAccess', _419 => _419.rateLimited]), () => ( status.rateLimited));
11077
+ const notice = _nullishCoalesce(_optionalChain([getPlayRunPackage, 'call', _419 => _419(status), 'optionalAccess', _420 => _420.rateLimited]), () => ( status.rateLimited));
11035
11078
  return notice && typeof notice === "object" ? notice : null;
11036
11079
  }
11037
11080
  function withRateLimitedNotice(status, notice) {
@@ -11072,7 +11115,7 @@ function buildPlayCompletionTextLines(status) {
11072
11115
  const overview = buildRunOverview(status);
11073
11116
  const { run } = overview;
11074
11117
  const failed = run.status === "failed";
11075
- const label = run.status === "completed" ? _optionalChain([overview, 'access', _420 => _420.rowOutcomes, 'optionalAccess', _421 => _421.hasRowFailures]) ? "Completed with row failures" : "Completed" : failed ? "Failed" : run.status;
11118
+ const label = run.status === "completed" ? _optionalChain([overview, 'access', _421 => _421.rowOutcomes, 'optionalAccess', _422 => _422.hasRowFailures]) ? "Completed with row failures" : "Completed" : failed ? "Failed" : run.status;
11076
11119
  const rateLimited = playRunRateLimitedNotice(status);
11077
11120
  const lines = [
11078
11121
  ...rateLimited ? [rateLimited.message] : [],
@@ -11096,7 +11139,7 @@ function buildPlayCompletionTextLines(status) {
11096
11139
  ...formatJsonPreview(compactReturnValue(overview.result))
11097
11140
  );
11098
11141
  }
11099
- if (_optionalChain([overview, 'access', _422 => _422.rowOutcomes, 'optionalAccess', _423 => _423.hasRowFailures])) {
11142
+ if (_optionalChain([overview, 'access', _423 => _423.rowOutcomes, 'optionalAccess', _424 => _424.hasRowFailures])) {
11100
11143
  lines.push(
11101
11144
  `Rows: ${overview.rowOutcomes.completedRows} completed, ${overview.rowOutcomes.failedRows} failed`
11102
11145
  );
@@ -11125,17 +11168,17 @@ function buildPlayCompletionTextLines(status) {
11125
11168
  }
11126
11169
  function writePlayResult(status, jsonOutput, options) {
11127
11170
  const packaged = getPlayRunPackage(status);
11128
- if (status.package) _chunkYXVYPYIPjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11129
- const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
11171
+ if (status.package) _chunkCYN2AHR6js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11172
+ const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _425 => _425.hits]), () => ( null));
11130
11173
  if (jsonOutput) {
11131
- const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11132
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
11174
+ const payload2 = _optionalChain([options, 'optionalAccess', _426 => _426.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11175
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
11133
11176
  hits ? { ...payload2, hits } : payload2,
11134
- { json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
11177
+ { json: true, fields: _optionalChain([options, 'optionalAccess', _427 => _427.jsonFields]) }
11135
11178
  );
11136
11179
  return;
11137
11180
  }
11138
- if (packaged && !_optionalChain([options, 'optionalAccess', _427 => _427.fullJson])) {
11181
+ if (packaged && !_optionalChain([options, 'optionalAccess', _428 => _428.fullJson])) {
11139
11182
  const {
11140
11183
  logs: _logs,
11141
11184
  failedLogs: _failedLogs,
@@ -11145,7 +11188,7 @@ function writePlayResult(status, jsonOutput, options) {
11145
11188
  ...buildPlayCompletionTextLines(status),
11146
11189
  ...formatRunHitsLines(hits)
11147
11190
  ];
11148
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, displayPackage, {
11191
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, displayPackage, {
11149
11192
  json: false,
11150
11193
  text: `${lines2.join("\n")}
11151
11194
  `
@@ -11195,8 +11238,8 @@ function writePlayResult(status, jsonOutput, options) {
11195
11238
  lines.push(...renderedServerView.actions);
11196
11239
  lines.push(...buildBillingRollupTextLines(status));
11197
11240
  const compact = compactPlayStatus(status);
11198
- const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
11199
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
11241
+ const payload = _optionalChain([options, 'optionalAccess', _429 => _429.fullJson]) ? status : compact;
11242
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
11200
11243
  {
11201
11244
  ...payload,
11202
11245
  render: {
@@ -11257,7 +11300,7 @@ async function resolvePlayRunOutputStatus(input) {
11257
11300
  const fromDurableStatus = input.fromDurableStatus === true || fullDurableTerminalStatuses.has(input.status);
11258
11301
  const refreshForFullJson = input.fullJson && !fromDurableStatus;
11259
11302
  const streamedTextPackageIncomplete = input.status.status === "completed" && playRunPackageTextLedgerIncomplete(streamedPackage);
11260
- const refreshFailedTerminal = input.status.status === "failed" && (!fromDurableStatus || _optionalChain([readRecord, 'call', _429 => _429(_optionalChain([streamedPackage, 'optionalAccess', _430 => _430.run])), 'optionalAccess', _431 => _431.status]) !== "failed");
11303
+ const refreshFailedTerminal = input.status.status === "failed" && (!fromDurableStatus || _optionalChain([readRecord, 'call', _430 => _430(_optionalChain([streamedPackage, 'optionalAccess', _431 => _431.run])), 'optionalAccess', _432 => _432.status]) !== "failed");
11261
11304
  if (!refreshForFullJson && !streamedTextPackageIncomplete && !refreshFailedTerminal) {
11262
11305
  if (input.fullJson && fromDurableStatus && TERMINAL_PLAY_STATUSES.has(input.status.status)) {
11263
11306
  fullDurableTerminalStatuses.add(input.status);
@@ -11311,12 +11354,12 @@ function exportableSheetRow(row) {
11311
11354
  if (!row || typeof row !== "object" || Array.isArray(row)) {
11312
11355
  return null;
11313
11356
  }
11314
- const record3 = row;
11315
- const data = record3.data;
11357
+ const record4 = row;
11358
+ const data = record4.data;
11316
11359
  if (data && typeof data === "object" && !Array.isArray(data)) {
11317
11360
  return data;
11318
11361
  }
11319
- const fallback = { ...record3 };
11362
+ const fallback = { ...record4 };
11320
11363
  for (const key of [
11321
11364
  "key",
11322
11365
  "status",
@@ -11364,14 +11407,14 @@ function mergeExportColumns(preferredColumns, rows) {
11364
11407
  return columns;
11365
11408
  }
11366
11409
  function sqlSafeExportColumnName(id) {
11367
- const prefix = _nullishCoalesce(_optionalChain([id, 'access', _432 => _432.trim, 'call', _433 => _433(), 'access', _434 => _434.match, 'call', _435 => _435(/^_+/), 'optionalAccess', _436 => _436[0]]), () => ( ""));
11410
+ const prefix = _nullishCoalesce(_optionalChain([id, 'access', _433 => _433.trim, 'call', _434 => _434(), 'access', _435 => _435.match, 'call', _436 => _436(/^_+/), 'optionalAccess', _437 => _437[0]]), () => ( ""));
11368
11411
  const normalized = id.trim().replace(/\.+/g, "__").replace(/[^A-Za-z0-9_]+/g, "_").replace(/^_+|_+$/g, "").toLowerCase();
11369
11412
  const safe = `${prefix}${normalized || "column"}`;
11370
11413
  return /^[A-Za-z_]/.test(safe) ? safe : `c_${safe}`;
11371
11414
  }
11372
11415
  async function fetchBackingDatasetRows(input) {
11373
11416
  const playName = extractRunPlayName(input.status);
11374
- const tableNamespace = _optionalChain([input, 'access', _437 => _437.rowsInfo, 'access', _438 => _438.tableNamespace, 'optionalAccess', _439 => _439.trim, 'call', _440 => _440()]);
11417
+ const tableNamespace = _optionalChain([input, 'access', _438 => _438.rowsInfo, 'access', _439 => _439.tableNamespace, 'optionalAccess', _440 => _440.trim, 'call', _441 => _441()]);
11375
11418
  if (!playName || !tableNamespace) {
11376
11419
  return null;
11377
11420
  }
@@ -11411,7 +11454,7 @@ async function fetchBackingDatasetRows(input) {
11411
11454
  seenEnvelopeKeys.add(key);
11412
11455
  }
11413
11456
  sheetRows.push(...page.rows);
11414
- const summaryTotal = _optionalChain([page, 'access', _441 => _441.summary, 'optionalAccess', _442 => _442.stats, 'optionalAccess', _443 => _443.total]);
11457
+ const summaryTotal = _optionalChain([page, 'access', _442 => _442.summary, 'optionalAccess', _443 => _443.stats, 'optionalAccess', _444 => _444.total]);
11415
11458
  if (typeof summaryTotal === "number" && Number.isFinite(summaryTotal)) {
11416
11459
  settledTotal = Math.max(_nullishCoalesce(settledTotal, () => ( 0)), Math.trunc(summaryTotal));
11417
11460
  }
@@ -11420,7 +11463,7 @@ async function fetchBackingDatasetRows(input) {
11420
11463
  }
11421
11464
  offset += page.rows.length;
11422
11465
  }
11423
- const withError = _chunkYXVYPYIPjs.tableExportHasFailedRows.call(void 0,
11466
+ const withError = _chunkCYN2AHR6js.tableExportHasFailedRows.call(void 0,
11424
11467
  sheetRows.filter(
11425
11468
  (row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
11426
11469
  )
@@ -11436,7 +11479,7 @@ async function fetchBackingDatasetRows(input) {
11436
11479
  return [
11437
11480
  withError ? {
11438
11481
  ...exported,
11439
- [_chunkYXVYPYIPjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkYXVYPYIPjs.tableExportErrorCell.call(void 0,
11482
+ [_chunkCYN2AHR6js.TABLE_EXPORT_ERROR_COLUMN]: _chunkCYN2AHR6js.tableExportErrorCell.call(void 0,
11440
11483
  row
11441
11484
  )
11442
11485
  } : exported
@@ -11505,7 +11548,7 @@ function assertDatasetHasExportableRows(input) {
11505
11548
  const rowOutcomes = _nullishCoalesce(readRowOutcomeSummary(input.status), () => ( readRowOutcomeSummary(
11506
11549
  getRecordField(getRecordField(input.status, "result"), "_metadata")
11507
11550
  )));
11508
- if (input.allowEmpty === true && input.status.status === "completed" && !getRecordField(input.status, "error") && !getRecordField(input.status.progress, "error") && structuredErrorsForStatus(input.status).length === 0 && input.rowsInfo.complete && input.rowsInfo.totalRows === 0 && _optionalChain([rowOutcomes, 'optionalAccess', _444 => _444.failedRows]) === 0 && !rowOutcomes.hasRowFailures) {
11551
+ if (input.allowEmpty === true && input.status.status === "completed" && !getRecordField(input.status, "error") && !getRecordField(input.status.progress, "error") && structuredErrorsForStatus(input.status).length === 0 && input.rowsInfo.complete && input.rowsInfo.totalRows === 0 && _optionalChain([rowOutcomes, 'optionalAccess', _445 => _445.failedRows]) === 0 && !rowOutcomes.hasRowFailures) {
11509
11552
  return input.rowsInfo;
11510
11553
  }
11511
11554
  const datasetLabel = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(input.datasetPath, () => ( input.rowsInfo.tableNamespace)), () => ( input.rowsInfo.source)), () => ( "result.rows"));
@@ -11577,8 +11620,8 @@ async function exportPlayStatusRows(client, status, outPath, options = {}) {
11577
11620
  path: dataset.exportFile(outPath, options),
11578
11621
  rowsInfo: dataset.info(),
11579
11622
  currentTable: false,
11580
- datasetPath: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _445 => _445.source]), () => ( null)),
11581
- datasetInfo: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _446 => _446.info, 'call', _447 => _447()]), () => ( null))
11623
+ datasetPath: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _446 => _446.source]), () => ( null)),
11624
+ datasetInfo: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _447 => _447.info, 'call', _448 => _448()]), () => ( null))
11582
11625
  };
11583
11626
  };
11584
11627
  const run = Run.open({
@@ -11590,7 +11633,7 @@ async function exportPlayStatusRows(client, status, outPath, options = {}) {
11590
11633
  const returnedRows = datasets.returned().map((dataset) => dataset.info());
11591
11634
  const recoveredRows = datasets.recovered().map((dataset) => dataset.info());
11592
11635
  const selectedDataset = run.dataset(options.datasetPath);
11593
- const rowsInfo = _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _448 => _448.info, 'call', _449 => _449()]), () => ( null));
11636
+ const rowsInfo = _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _449 => _449.info, 'call', _450 => _450()]), () => ( null));
11594
11637
  if (!selectedDataset && options.datasetPath) {
11595
11638
  const available = availableRows.map((info) => info.source).filter((source) => typeof source === "string");
11596
11639
  const commands = datasetChoiceLines({
@@ -11703,7 +11746,7 @@ ${commands.join("\n")}`,
11703
11746
  throw error;
11704
11747
  }
11705
11748
  }
11706
- if (_optionalChain([fetchedRowsInfo, 'optionalAccess', _450 => _450.complete])) {
11749
+ if (_optionalChain([fetchedRowsInfo, 'optionalAccess', _451 => _451.complete])) {
11707
11750
  const guarded2 = assertDatasetHasExportableRows({
11708
11751
  rowsInfo: fetchedRowsInfo,
11709
11752
  status,
@@ -11768,7 +11811,7 @@ function extractActiveRunsFromError(error) {
11768
11811
  if (!(error instanceof _chunkSQWET4SLjs.DeeplineError)) {
11769
11812
  return [];
11770
11813
  }
11771
- const response = _optionalChain([error, 'access', _451 => _451.details, 'optionalAccess', _452 => _452.response]);
11814
+ const response = _optionalChain([error, 'access', _452 => _452.details, 'optionalAccess', _453 => _453.response]);
11772
11815
  if (!response || typeof response !== "object" || Array.isArray(response)) {
11773
11816
  return [];
11774
11817
  }
@@ -11808,8 +11851,8 @@ var PLAY_SYNTAX_MIGRATION_ERROR_MARKERS = [
11808
11851
  "ctx.map(...) has been replaced by ctx.dataset(...)",
11809
11852
  "Dataset .step(...) has been replaced by .withColumn(...)"
11810
11853
  ];
11811
- function stringArrayField(record3, key) {
11812
- const value = record3[key];
11854
+ function stringArrayField(record4, key) {
11855
+ const value = record4[key];
11813
11856
  if (!Array.isArray(value)) return [];
11814
11857
  return value.filter((entry) => typeof entry === "string");
11815
11858
  }
@@ -11885,8 +11928,8 @@ function renderServerResultView(value) {
11885
11928
  return { lines: [], actions: [] };
11886
11929
  }
11887
11930
  const view = value;
11888
- const renderedSections = Array.isArray(_optionalChain([view, 'access', _453 => _453.render, 'optionalAccess', _454 => _454.sections])) ? view.render.sections : [];
11889
- const renderedActions = Array.isArray(_optionalChain([view, 'access', _455 => _455.render, 'optionalAccess', _456 => _456.actions])) ? view.render.actions : [];
11931
+ const renderedSections = Array.isArray(_optionalChain([view, 'access', _454 => _454.render, 'optionalAccess', _455 => _455.sections])) ? view.render.sections : [];
11932
+ const renderedActions = Array.isArray(_optionalChain([view, 'access', _456 => _456.render, 'optionalAccess', _457 => _457.actions])) ? view.render.actions : [];
11890
11933
  if (renderedSections.length > 0 || renderedActions.length > 0) {
11891
11934
  const lines2 = [];
11892
11935
  for (const section of renderedSections) {
@@ -11924,7 +11967,7 @@ function renderServerResultView(value) {
11924
11967
  }
11925
11968
  const tables = Array.isArray(view.tables) ? view.tables : [];
11926
11969
  const topLevelOutputTable = view.topLevelOutputTable && typeof view.topLevelOutputTable === "object" && !Array.isArray(view.topLevelOutputTable) ? view.topLevelOutputTable : null;
11927
- if (typeof _optionalChain([topLevelOutputTable, 'optionalAccess', _457 => _457.queryCommand]) === "string") {
11970
+ if (typeof _optionalChain([topLevelOutputTable, 'optionalAccess', _458 => _458.queryCommand]) === "string") {
11928
11971
  lines.push(` top-level outputs: ${topLevelOutputTable.queryCommand}`);
11929
11972
  }
11930
11973
  if (tables.length > 0) {
@@ -11971,7 +12014,7 @@ function renderServerResultView(value) {
11971
12014
  function writeStartedPlayRun(input) {
11972
12015
  if (input.package && isPlayRunPackageValue(input.package)) {
11973
12016
  const run = input.package.run;
11974
- _chunkYXVYPYIPjs.recordPlayTermination.call(void 0, {
12017
+ _chunkCYN2AHR6js.recordPlayTermination.call(void 0, {
11975
12018
  id: run.id,
11976
12019
  status: run.status,
11977
12020
  finishedAt: run.finishedAt
@@ -11984,7 +12027,7 @@ function writeStartedPlayRun(input) {
11984
12027
  dashboardUrl: input.dashboardUrl,
11985
12028
  package: input.package
11986
12029
  };
11987
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12030
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
11988
12031
  json: true,
11989
12032
  fields: input.jsonFields
11990
12033
  });
@@ -12006,7 +12049,7 @@ function writeStartedPlayRun(input) {
12006
12049
  input.progress.writeLine(output2, process.stdout);
12007
12050
  return;
12008
12051
  }
12009
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, input.package, {
12052
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, input.package, {
12010
12053
  json: false,
12011
12054
  text: `${output2}
12012
12055
  `
@@ -12041,7 +12084,7 @@ function writeStartedPlayRun(input) {
12041
12084
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12042
12085
  ];
12043
12086
  if (input.jsonOutput) {
12044
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12087
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12045
12088
  return;
12046
12089
  }
12047
12090
  const output = lines.join("\n");
@@ -12049,7 +12092,7 @@ function writeStartedPlayRun(input) {
12049
12092
  input.progress.writeLine(output, process.stdout);
12050
12093
  return;
12051
12094
  }
12052
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
12095
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
12053
12096
  {
12054
12097
  ...payload,
12055
12098
  render: { sections: [{ title: "play run", lines }] }
@@ -12059,7 +12102,7 @@ function writeStartedPlayRun(input) {
12059
12102
  );
12060
12103
  }
12061
12104
  function parsePlayCheckOptions(args) {
12062
- const selection = _chunkGTGJBZVHjs.parseJsonFields.call(void 0, args, "check");
12105
+ const selection = _chunkUTCGCES2js.parseJsonFields.call(void 0, args, "check");
12063
12106
  args = selection.args;
12064
12107
  const target = args[0];
12065
12108
  if (!target || target.startsWith("-")) {
@@ -12071,7 +12114,7 @@ function parsePlayCheckOptions(args) {
12071
12114
  if (arg !== "--json" && arg !== "--full")
12072
12115
  throw new Error(`Unknown plays check option: ${arg}`);
12073
12116
  }
12074
- const jsonOutput = _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
12117
+ const jsonOutput = _chunkUTCGCES2js.argsWantJson.call(void 0, args);
12075
12118
  return {
12076
12119
  target,
12077
12120
  jsonOutput,
@@ -12147,7 +12190,7 @@ ${PLAY_PUBLISH_USAGE}`
12147
12190
  useLatest,
12148
12191
  expectedArtifactHash,
12149
12192
  dryRun,
12150
- jsonOutput: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args)
12193
+ jsonOutput: _chunkUTCGCES2js.argsWantJson.call(void 0, args)
12151
12194
  };
12152
12195
  }
12153
12196
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12188,7 +12231,7 @@ ${PLAY_SAVE_USAGE}`);
12188
12231
  target,
12189
12232
  expectedArtifactHash,
12190
12233
  dryRun,
12191
- jsonOutput: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args)
12234
+ jsonOutput: _chunkUTCGCES2js.argsWantJson.call(void 0, args)
12192
12235
  };
12193
12236
  }
12194
12237
  function printScheduledPlayCapacity(capacity) {
@@ -12241,7 +12284,7 @@ function checkHintExpression(value) {
12241
12284
  return stringValue2(value).replace(/^toolExecutionResult\./, "result.");
12242
12285
  }
12243
12286
  function checkHintRawPath(value) {
12244
- return _optionalChain([value, 'optionalAccess', _458 => _458.startsWith, 'call', _459 => _459("toolResponse.rawV2")]) ? value.replace(/^toolResponse\./, "result.toolResponse.") : void 0;
12287
+ return _optionalChain([value, 'optionalAccess', _459 => _459.startsWith, 'call', _460 => _460("toolResponse.rawV2")]) ? value.replace(/^toolResponse\./, "result.toolResponse.") : void 0;
12245
12288
  }
12246
12289
  function collectStaticPipelineToolIds(staticPipeline) {
12247
12290
  const seen = /* @__PURE__ */ new Set();
@@ -12315,31 +12358,31 @@ function cronExecutionLabel(status) {
12315
12358
  return status;
12316
12359
  }
12317
12360
  function readLiveCronMetadata(play) {
12318
- const record3 = readRecord(play);
12319
- const metadata = readRecord(_optionalChain([record3, 'optionalAccess', _460 => _460.triggerMetadata]));
12361
+ const record4 = readRecord(play);
12362
+ const metadata = readRecord(_optionalChain([record4, 'optionalAccess', _461 => _461.triggerMetadata]));
12320
12363
  return {
12321
- schedule: typeof _optionalChain([metadata, 'optionalAccess', _461 => _461.cronSchedule]) === "string" ? metadata.cronSchedule : null,
12322
- timezone: typeof _optionalChain([metadata, 'optionalAccess', _462 => _462.cronTimezone]) === "string" ? metadata.cronTimezone : null,
12323
- nextScheduledAt: typeof _optionalChain([metadata, 'optionalAccess', _463 => _463.nextScheduledAt]) === "number" ? metadata.nextScheduledAt : null,
12324
- blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _464 => _464.blockedAt]) === "number" ? metadata.blockedAt : null,
12325
- blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _465 => _465.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null
12364
+ schedule: typeof _optionalChain([metadata, 'optionalAccess', _462 => _462.cronSchedule]) === "string" ? metadata.cronSchedule : null,
12365
+ timezone: typeof _optionalChain([metadata, 'optionalAccess', _463 => _463.cronTimezone]) === "string" ? metadata.cronTimezone : null,
12366
+ nextScheduledAt: typeof _optionalChain([metadata, 'optionalAccess', _464 => _464.nextScheduledAt]) === "number" ? metadata.nextScheduledAt : null,
12367
+ blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _465 => _465.blockedAt]) === "number" ? metadata.blockedAt : null,
12368
+ blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _466 => _466.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null
12326
12369
  };
12327
12370
  }
12328
12371
  function liveTriggerStatusLines(status, play) {
12329
12372
  const cron = readLiveCronMetadata(play);
12330
- if (!_optionalChain([status, 'optionalAccess', _466 => _466.cron]) && !cron.schedule && !_optionalChain([status, 'optionalAccess', _467 => _467.webhook])) return [];
12373
+ if (!_optionalChain([status, 'optionalAccess', _467 => _467.cron]) && !cron.schedule && !_optionalChain([status, 'optionalAccess', _468 => _468.webhook])) return [];
12331
12374
  const lines = [];
12332
- if (_optionalChain([status, 'optionalAccess', _468 => _468.cron]) || cron.schedule) {
12375
+ if (_optionalChain([status, 'optionalAccess', _469 => _469.cron]) || cron.schedule) {
12333
12376
  const timezone = cron.timezone ? ` (${cron.timezone})` : "";
12334
12377
  lines.push(
12335
- ` Scheduled execution: ${cronExecutionLabel(_nullishCoalesce(_optionalChain([status, 'optionalAccess', _469 => _469.cron]), () => ( null)))}${cron.schedule ? ` \u2014 ${cron.schedule}${timezone}` : ""}`
12378
+ ` Scheduled execution: ${cronExecutionLabel(_nullishCoalesce(_optionalChain([status, 'optionalAccess', _470 => _470.cron]), () => ( null)))}${cron.schedule ? ` \u2014 ${cron.schedule}${timezone}` : ""}`
12336
12379
  );
12337
- if (cron.nextScheduledAt !== null && _optionalChain([status, 'optionalAccess', _470 => _470.cron]) === "active") {
12380
+ if (cron.nextScheduledAt !== null && _optionalChain([status, 'optionalAccess', _471 => _471.cron]) === "active") {
12338
12381
  lines.push(
12339
12382
  ` Next scheduled run: ${formatTimestamp(cron.nextScheduledAt)}`
12340
12383
  );
12341
12384
  }
12342
- if (_optionalChain([status, 'optionalAccess', _471 => _471.blockedReason])) {
12385
+ if (_optionalChain([status, 'optionalAccess', _472 => _472.blockedReason])) {
12343
12386
  lines.push(` Schedule issue: ${status.blockedReason}`);
12344
12387
  if (status.blockedReasonCode || cron.blockedReasonCode) {
12345
12388
  lines.push(
@@ -12355,7 +12398,7 @@ function liveTriggerStatusLines(status, play) {
12355
12398
  );
12356
12399
  }
12357
12400
  }
12358
- if (_optionalChain([status, 'optionalAccess', _472 => _472.webhook])) {
12401
+ if (_optionalChain([status, 'optionalAccess', _473 => _473.webhook])) {
12359
12402
  lines.push(` Webhook: ${status.webhook}`);
12360
12403
  }
12361
12404
  return lines;
@@ -12363,11 +12406,11 @@ function liveTriggerStatusLines(status, play) {
12363
12406
  function triggerStatusFromMetadata(value) {
12364
12407
  const metadata = readRecord(value);
12365
12408
  return {
12366
- cron: typeof _optionalChain([metadata, 'optionalAccess', _473 => _473.cronStatus]) === "string" ? metadata.cronStatus : null,
12367
- webhook: typeof _optionalChain([metadata, 'optionalAccess', _474 => _474.webhookStatus]) === "string" ? metadata.webhookStatus : null,
12368
- blockedReason: typeof _optionalChain([metadata, 'optionalAccess', _475 => _475.blockedReason]) === "string" ? metadata.blockedReason : null,
12369
- blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _476 => _476.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null,
12370
- blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _477 => _477.blockedAt]) === "number" ? metadata.blockedAt : null
12409
+ cron: typeof _optionalChain([metadata, 'optionalAccess', _474 => _474.cronStatus]) === "string" ? metadata.cronStatus : null,
12410
+ webhook: typeof _optionalChain([metadata, 'optionalAccess', _475 => _475.webhookStatus]) === "string" ? metadata.webhookStatus : null,
12411
+ blockedReason: typeof _optionalChain([metadata, 'optionalAccess', _476 => _476.blockedReason]) === "string" ? metadata.blockedReason : null,
12412
+ blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _477 => _477.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null,
12413
+ blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _478 => _478.blockedAt]) === "number" ? metadata.blockedAt : null
12371
12414
  };
12372
12415
  }
12373
12416
  function printPublishReceipt(input) {
@@ -12399,7 +12442,7 @@ function printBundledRuntimeWarning(bundle) {
12399
12442
  async function handlePlayCheck(args) {
12400
12443
  const options = parsePlayCheckOptions(args);
12401
12444
  if (!isFileTarget(options.target)) {
12402
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
12445
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
12403
12446
  try {
12404
12447
  await assertCanonicalNamedPlayReference(client, options.target, {
12405
12448
  command: "check"
@@ -12428,7 +12471,7 @@ async function handlePlayCheck(args) {
12428
12471
  },
12429
12472
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12430
12473
  };
12431
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, result, {
12474
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, result, {
12432
12475
  json: options.jsonOutput,
12433
12476
  fields: options.jsonFields,
12434
12477
  text: renderPlayCheckOutput(result) + "\n"
@@ -12438,7 +12481,7 @@ async function handlePlayCheck(args) {
12438
12481
  const resolved = _path.resolve.call(void 0, options.target);
12439
12482
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12440
12483
  if (options.jsonOutput) {
12441
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
12484
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
12442
12485
  {
12443
12486
  kind: "play_check",
12444
12487
  checked: "named_contract",
@@ -12467,9 +12510,9 @@ async function handlePlayCheck(args) {
12467
12510
  target: options.target,
12468
12511
  full: options.full,
12469
12512
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
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
12513
+ publishCommand: _optionalChain([primary, 'optionalAccess', _479 => _479.result, 'access', _480 => _480.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
12471
12514
  });
12472
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, output, {
12515
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, output, {
12473
12516
  json: options.jsonOutput,
12474
12517
  fields: options.jsonFields,
12475
12518
  text: renderPlayCheckOutput(output) + "\n"
@@ -12482,7 +12525,7 @@ function resolvePlayCheckExportNames(sourceCode) {
12482
12525
  return exports.map((entry) => entry.name);
12483
12526
  }
12484
12527
  function artifactForProductionCompatibilityCheck(artifact) {
12485
- const rawEdition = _optionalChain([process, 'access', _480 => _480.env, 'access', _481 => _481.DEEPLINE_PROD_CHECK_AUTHORING_CONTRACT_EDITION, 'optionalAccess', _482 => _482.trim, 'call', _483 => _483()]);
12528
+ const rawEdition = _optionalChain([process, 'access', _481 => _481.env, 'access', _482 => _482.DEEPLINE_PROD_CHECK_AUTHORING_CONTRACT_EDITION, 'optionalAccess', _483 => _483.trim, 'call', _484 => _484()]);
12486
12529
  if (!rawEdition) return artifact;
12487
12530
  if (!/^\d+$/.test(rawEdition)) {
12488
12531
  throw new Error(
@@ -12537,7 +12580,7 @@ async function checkOneExportedPlay(input) {
12537
12580
  }
12538
12581
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
12539
12582
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
12540
- const client = _nullishCoalesce(input.client, () => ( new (0, _chunkLRWDZDBSjs.DeeplineClient)()));
12583
+ const client = _nullishCoalesce(input.client, () => ( new (0, _chunkRZJWHL7Ljs.DeeplineClient)()));
12541
12584
  const integrationMode = resolveEvalIntegrationMode();
12542
12585
  const checked = await checkLocalPlayGraph({
12543
12586
  client,
@@ -12547,7 +12590,7 @@ async function checkOneExportedPlay(input) {
12547
12590
  integrationMode,
12548
12591
  prepareArtifact: artifactForProductionCompatibilityCheck
12549
12592
  });
12550
- const importedPlayName = _optionalChain([checked, 'access', _484 => _484.failedChild, 'optionalAccess', _485 => _485.playName]);
12593
+ const importedPlayName = _optionalChain([checked, 'access', _485 => _485.failedChild, 'optionalAccess', _486 => _486.playName]);
12551
12594
  const diagnosticPrefix = importedPlayName ? `Imported Play ${importedPlayName}: ` : "";
12552
12595
  const valid = checked.result.valid && !checked.failedChild && authoringErrors.length === 0;
12553
12596
  const errors = [
@@ -12563,7 +12606,7 @@ async function checkOneExportedPlay(input) {
12563
12606
  valid,
12564
12607
  errors: valid ? checked.result.errors : addPlayCheckRepairHints({
12565
12608
  errors,
12566
- sourceCode: _nullishCoalesce(_optionalChain([checked, 'access', _486 => _486.failedChild, 'optionalAccess', _487 => _487.sourceCode]), () => ( graph.root.sourceCode))
12609
+ sourceCode: _nullishCoalesce(_optionalChain([checked, 'access', _487 => _487.failedChild, 'optionalAccess', _488 => _488.sourceCode]), () => ( graph.root.sourceCode))
12567
12610
  }),
12568
12611
  ...checked.failedChild && checked.result.issues ? {
12569
12612
  issues: checked.result.issues.map((issue) => ({
@@ -12593,9 +12636,9 @@ async function handleFileBackedRun(options, hooks) {
12593
12636
  let prefetchClient;
12594
12637
  let admissionCapability;
12595
12638
  let cancelAdmissionCapability;
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
- const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _488 => _488.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
12639
+ let cliAdmission = _chunkCDP3LMDTjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12640
+ const progress = _nullishCoalesce(_chunkB33J4YCCjs.getActiveCliProgress.call(void 0, ), () => ( _chunkB33J4YCCjs.createCliProgress.call(void 0, !options.jsonOutput)));
12641
+ const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
12599
12642
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
12600
12643
  progress.phase("compiling play");
12601
12644
  const sourceCode = traceCliSync(
@@ -12611,11 +12654,11 @@ async function handleFileBackedRun(options, hooks) {
12611
12654
  return 1;
12612
12655
  }
12613
12656
  if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
12614
- const clientForPrefetch = new (0, _chunkLRWDZDBSjs.DeeplineClient)(playRunClientOptions(options));
12657
+ const clientForPrefetch = new (0, _chunkRZJWHL7Ljs.DeeplineClient)(playRunClientOptions(options));
12615
12658
  prefetchClient = clientForPrefetch;
12616
12659
  const capabilityController = new AbortController();
12617
12660
  cancelAdmissionCapability = () => capabilityController.abort();
12618
- admissionCapability = _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12661
+ admissionCapability = _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
12619
12662
  "cli.play_admission_capability_prefetch",
12620
12663
  { targetKind: "file" },
12621
12664
  () => clientForPrefetch.prefetchPlayRunAdmissionCapability({
@@ -12626,7 +12669,7 @@ async function handleFileBackedRun(options, hooks) {
12626
12669
  }
12627
12670
  let graph;
12628
12671
  try {
12629
- graph = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12672
+ graph = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
12630
12673
  "cli.play_file_bundle_graph",
12631
12674
  { targetKind: "file" },
12632
12675
  () => collectBundledPlayGraph(
@@ -12639,10 +12682,10 @@ async function handleFileBackedRun(options, hooks) {
12639
12682
  assertPlayGraphAuthoring(graph);
12640
12683
  if (options.dryRun) {
12641
12684
  progress.complete();
12642
- const plan = _chunk7E6B7VMSjs.planLocalPlayExecution.call(void 0, graph, {
12685
+ const plan = _chunkF5KFGF45js.planLocalPlayExecution.call(void 0, graph, {
12643
12686
  runIdFile: options.runIdFile
12644
12687
  });
12645
- if (_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
12688
+ if (_optionalChain([hooks, 'optionalAccess', _490 => _490.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
12646
12689
  else
12647
12690
  renderLocalPlayExecutionPlan(plan, {
12648
12691
  dryRun: true,
@@ -12650,9 +12693,9 @@ async function handleFileBackedRun(options, hooks) {
12650
12693
  });
12651
12694
  return 0;
12652
12695
  }
12653
- client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkLRWDZDBSjs.DeeplineClient)(playRunClientOptions(options))));
12696
+ client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkRZJWHL7Ljs.DeeplineClient)(playRunClientOptions(options))));
12654
12697
  if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
12655
- await _chunkHTYT2OHBjs.checkPlayRunCompatibility.call(void 0,
12698
+ await _chunkCDP3LMDTjs.checkPlayRunCompatibility.call(void 0,
12656
12699
  client.baseUrl,
12657
12700
  options.maintenancePolicy
12658
12701
  );
@@ -12665,7 +12708,7 @@ async function handleFileBackedRun(options, hooks) {
12665
12708
  });
12666
12709
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
12667
12710
  if (canDeferCompilerManifest) {
12668
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
12711
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
12669
12712
  phase: "cli.play_file_compile_manifests",
12670
12713
  ms: 0,
12671
12714
  ok: true,
@@ -12674,7 +12717,7 @@ async function handleFileBackedRun(options, hooks) {
12674
12717
  reason: "validated_by_run_route"
12675
12718
  });
12676
12719
  } else {
12677
- await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12720
+ await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
12678
12721
  "cli.play_file_compile_manifests",
12679
12722
  { targetKind: "file", skipped: false },
12680
12723
  () => compileBundledPlayGraphManifests(client, graph)
@@ -12682,7 +12725,7 @@ async function handleFileBackedRun(options, hooks) {
12682
12725
  }
12683
12726
  progress.phase("compiled play");
12684
12727
  } catch (error) {
12685
- if (error instanceof _chunkYXVYPYIPjs.ExecutionOutputError) throw error;
12728
+ if (error instanceof _chunkCYN2AHR6js.ExecutionOutputError) throw error;
12686
12729
  progress.fail();
12687
12730
  reportError(normalizePlayValidationError(error));
12688
12731
  return 1;
@@ -12693,13 +12736,13 @@ async function handleFileBackedRun(options, hooks) {
12693
12736
  if (bundleResult.importedPlayDependencies.length > 0) {
12694
12737
  try {
12695
12738
  renderLocalPlayExecutionPlan(
12696
- _chunk7E6B7VMSjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12739
+ _chunkF5KFGF45js.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12697
12740
  );
12698
12741
  progress.phase("pinning imported plays");
12699
- graph = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12742
+ graph = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
12700
12743
  "cli.play_file_pin_imports",
12701
12744
  { targetKind: "file" },
12702
- () => _chunk7E6B7VMSjs.pinLocalPlayImports.call(void 0, client, graph)
12745
+ () => _chunkF5KFGF45js.pinLocalPlayImports.call(void 0, client, graph)
12703
12746
  );
12704
12747
  bundleResult = graph.root;
12705
12748
  } catch (error) {
@@ -12713,10 +12756,10 @@ async function handleFileBackedRun(options, hooks) {
12713
12756
  );
12714
12757
  const compilerManifest = _nullishCoalesce(bundleResult.compilerManifest, () => ( null));
12715
12758
  const fileInputBindings = _chunk2KHUFWTKjs.playRunFileInputBindings.call(void 0, {
12716
- inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _490 => _490.authoringContract, 'optionalAccess', _491 => _491.inputSchema]),
12717
- staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _492 => _492.staticPipeline])
12759
+ inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _491 => _491.authoringContract, 'optionalAccess', _492 => _492.inputSchema]),
12760
+ staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _493 => _493.staticPipeline])
12718
12761
  });
12719
- const stagedFileInputs = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12762
+ const stagedFileInputs = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
12720
12763
  "cli.play_stage_inputs",
12721
12764
  {
12722
12765
  targetKind: "file",
@@ -12763,7 +12806,7 @@ async function handleFileBackedRun(options, hooks) {
12763
12806
  };
12764
12807
  if (options.watch) {
12765
12808
  progress.phase("starting run");
12766
- const finalStatus = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12809
+ const finalStatus = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
12767
12810
  "cli.play_start_watch",
12768
12811
  { targetKind: "file", playName },
12769
12812
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -12777,9 +12820,9 @@ async function handleFileBackedRun(options, hooks) {
12777
12820
  waitTimeoutMs: options.waitTimeoutMs,
12778
12821
  open: options.open,
12779
12822
  progress,
12780
- onRunStarted: _optionalChain([hooks, 'optionalAccess', _493 => _493.onRunStarted]),
12781
- onSubmission: _optionalChain([hooks, 'optionalAccess', _494 => _494.onSubmission]),
12782
- onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _495 => _495.onRunAdmitted]),
12823
+ onRunStarted: _optionalChain([hooks, 'optionalAccess', _494 => _494.onRunStarted]),
12824
+ onSubmission: _optionalChain([hooks, 'optionalAccess', _495 => _495.onSubmission]),
12825
+ onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _496 => _496.onRunAdmitted]),
12783
12826
  maintenancePolicy: options.maintenancePolicy,
12784
12827
  ...!options.runIdFile || options.fullJson ? { fullJson: options.fullJson } : {},
12785
12828
  ...cliAdmission ? {
@@ -12809,8 +12852,8 @@ async function handleFileBackedRun(options, hooks) {
12809
12852
  ),
12810
12853
  options
12811
12854
  );
12812
- _optionalChain([hooks, 'optionalAccess', _496 => _496.onTerminalStatus, 'optionalCall', _497 => _497(outputStatus)]);
12813
- if (_optionalChain([hooks, 'optionalAccess', _498 => _498.writeResult])) {
12855
+ _optionalChain([hooks, 'optionalAccess', _497 => _497.onTerminalStatus, 'optionalCall', _498 => _498(outputStatus)]);
12856
+ if (_optionalChain([hooks, 'optionalAccess', _499 => _499.writeResult])) {
12814
12857
  await hooks.writeResult(client, outputStatus);
12815
12858
  return outputStatus.status === "completed" ? 0 : 1;
12816
12859
  }
@@ -12825,16 +12868,16 @@ async function handleFileBackedRun(options, hooks) {
12825
12868
  return outputStatus.status === "completed" ? 0 : 1;
12826
12869
  }
12827
12870
  progress.phase("starting run");
12828
- const started = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12871
+ const started = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
12829
12872
  "cli.play_start_unwatched",
12830
12873
  { targetKind: "file", playName },
12831
- () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _499 => _499.onSubmission]) }).catch(async (error) => {
12874
+ () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _500 => _500.onSubmission]) }).catch(async (error) => {
12832
12875
  throw await normalizePlayStartError(client, error, playName);
12833
12876
  })
12834
12877
  );
12835
- await _optionalChain([hooks, 'optionalAccess', _500 => _500.onRunStarted, 'optionalCall', _501 => _501(started.workflowId)]);
12836
- await _optionalChain([hooks, 'optionalAccess', _502 => _502.onRunAdmitted, 'optionalCall', _503 => _503(started.workflowId)]);
12837
- const resolvedDashboardUrl = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
12878
+ await _optionalChain([hooks, 'optionalAccess', _501 => _501.onRunStarted, 'optionalCall', _502 => _502(started.workflowId)]);
12879
+ await _optionalChain([hooks, 'optionalAccess', _503 => _503.onRunAdmitted, 'optionalCall', _504 => _504(started.workflowId)]);
12880
+ const resolvedDashboardUrl = _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
12838
12881
  openPlayDashboard(
12839
12882
  resolvePlayRunUrl({
12840
12883
  runId: started.workflowId,
@@ -12845,7 +12888,7 @@ async function handleFileBackedRun(options, hooks) {
12845
12888
  );
12846
12889
  progress.phase("started run");
12847
12890
  progress.complete();
12848
- if (_optionalChain([hooks, 'optionalAccess', _504 => _504.writeStarted])) {
12891
+ if (_optionalChain([hooks, 'optionalAccess', _505 => _505.writeStarted])) {
12849
12892
  hooks.writeStarted(
12850
12893
  started.workflowId,
12851
12894
  _nullishCoalesce(started.status, () => ( "started")),
@@ -12880,7 +12923,7 @@ async function resolveNamedRunRevisionId(input) {
12880
12923
  if (input.selector === "latest") {
12881
12924
  const versions = await input.client.listPlayVersions(input.playName);
12882
12925
  const latest = versions[0];
12883
- if (!_optionalChain([latest, 'optionalAccess', _505 => _505._id])) {
12926
+ if (!_optionalChain([latest, 'optionalAccess', _506 => _506._id])) {
12884
12927
  throw new Error(`No saved revisions found for ${input.playName}.`);
12885
12928
  }
12886
12929
  return latest._id;
@@ -12891,9 +12934,9 @@ async function handleNamedRun(options, hooks) {
12891
12934
  if (options.target.kind !== "name") {
12892
12935
  throw new Error("Expected a named play run target.");
12893
12936
  }
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)));
12937
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)(playRunClientOptions(options));
12938
+ let cliAdmission = _chunkCDP3LMDTjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12939
+ const progress = _nullishCoalesce(_chunkB33J4YCCjs.getActiveCliProgress.call(void 0, ), () => ( _chunkB33J4YCCjs.createCliProgress.call(void 0, !options.jsonOutput)));
12897
12940
  const playName = options.target.name;
12898
12941
  const runtimeInput = options.input ? { ...options.input } : {};
12899
12942
  try {
@@ -12911,7 +12954,7 @@ async function handleNamedRun(options, hooks) {
12911
12954
  if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
12912
12955
  const capabilityController = new AbortController();
12913
12956
  cancelAdmissionCapability = () => capabilityController.abort();
12914
- admissionCapability = _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12957
+ admissionCapability = _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
12915
12958
  "cli.play_admission_capability_prefetch",
12916
12959
  { targetKind: "name", playName },
12917
12960
  () => client.prefetchPlayRunAdmissionCapability({
@@ -12922,14 +12965,14 @@ async function handleNamedRun(options, hooks) {
12922
12965
  }
12923
12966
  const playDetail = needsPlayDefinition ? await (async () => {
12924
12967
  progress.phase("loading play definition");
12925
- return _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12968
+ return _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
12926
12969
  "cli.play_load_definition",
12927
12970
  { targetKind: "name", playName, skipped: false },
12928
12971
  () => assertCanonicalNamedPlayReference(client, playName, {
12929
12972
  command: "run"
12930
12973
  })
12931
12974
  );
12932
- })() : (_chunkANKD3AIRjs.recordCliTrace.call(void 0, {
12975
+ })() : (_chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
12933
12976
  phase: "cli.play_load_definition",
12934
12977
  ms: 0,
12935
12978
  ok: true,
@@ -12938,7 +12981,7 @@ async function handleNamedRun(options, hooks) {
12938
12981
  skipped: true
12939
12982
  }), null);
12940
12983
  progress.phase("selecting revision");
12941
- const selectedRevisionId = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
12984
+ const selectedRevisionId = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
12942
12985
  "cli.play_select_revision",
12943
12986
  {
12944
12987
  targetKind: "name",
@@ -12963,10 +13006,10 @@ async function handleNamedRun(options, hooks) {
12963
13006
  ..._chunk2KHUFWTKjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
12964
13007
  ] : [];
12965
13008
  if (cliAdmission && fileInputBindings.length > 0) {
12966
- await _chunkHTYT2OHBjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13009
+ await _chunkCDP3LMDTjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
12967
13010
  cliAdmission = false;
12968
13011
  }
12969
- const stagedFileInputs = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
13012
+ const stagedFileInputs = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
12970
13013
  "cli.play_stage_inputs",
12971
13014
  {
12972
13015
  targetKind: "name",
@@ -13010,7 +13053,7 @@ async function handleNamedRun(options, hooks) {
13010
13053
  });
13011
13054
  if (options.watch) {
13012
13055
  progress.phase("starting run");
13013
- const finalStatus = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
13056
+ const finalStatus = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
13014
13057
  "cli.play_start_watch",
13015
13058
  { targetKind: "name", playName },
13016
13059
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -13024,9 +13067,9 @@ async function handleNamedRun(options, hooks) {
13024
13067
  waitTimeoutMs: options.waitTimeoutMs,
13025
13068
  open: options.open,
13026
13069
  progress,
13027
- onRunStarted: _optionalChain([hooks, 'optionalAccess', _506 => _506.onRunStarted]),
13028
- onSubmission: _optionalChain([hooks, 'optionalAccess', _507 => _507.onSubmission]),
13029
- onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _508 => _508.onRunAdmitted]),
13070
+ onRunStarted: _optionalChain([hooks, 'optionalAccess', _507 => _507.onRunStarted]),
13071
+ onSubmission: _optionalChain([hooks, 'optionalAccess', _508 => _508.onSubmission]),
13072
+ onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _509 => _509.onRunAdmitted]),
13030
13073
  maintenancePolicy: options.maintenancePolicy,
13031
13074
  ...!options.runIdFile || options.fullJson ? { fullJson: options.fullJson } : {},
13032
13075
  ...cliAdmission ? {
@@ -13059,8 +13102,8 @@ async function handleNamedRun(options, hooks) {
13059
13102
  options,
13060
13103
  _nullishCoalesce(finalStatus.revisionId, () => ( selectedRevisionId))
13061
13104
  );
13062
- _optionalChain([hooks, 'optionalAccess', _509 => _509.onTerminalStatus, 'optionalCall', _510 => _510(outputStatus)]);
13063
- if (_optionalChain([hooks, 'optionalAccess', _511 => _511.writeResult])) {
13105
+ _optionalChain([hooks, 'optionalAccess', _510 => _510.onTerminalStatus, 'optionalCall', _511 => _511(outputStatus)]);
13106
+ if (_optionalChain([hooks, 'optionalAccess', _512 => _512.writeResult])) {
13064
13107
  await hooks.writeResult(client, outputStatus);
13065
13108
  return outputStatus.status === "completed" ? 0 : 1;
13066
13109
  }
@@ -13075,18 +13118,18 @@ async function handleNamedRun(options, hooks) {
13075
13118
  return outputStatus.status === "completed" ? 0 : 1;
13076
13119
  }
13077
13120
  progress.phase("starting run");
13078
- const started = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
13121
+ const started = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
13079
13122
  "cli.play_start_unwatched",
13080
13123
  { targetKind: "name", playName },
13081
- () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _512 => _512.onSubmission]) }).catch(async (error) => {
13124
+ () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _513 => _513.onSubmission]) }).catch(async (error) => {
13082
13125
  throw await normalizePlayStartError(client, error, playName, {
13083
13126
  suggestMissingPlay: true
13084
13127
  });
13085
13128
  })
13086
13129
  );
13087
- await _optionalChain([hooks, 'optionalAccess', _513 => _513.onRunStarted, 'optionalCall', _514 => _514(started.workflowId)]);
13088
- await _optionalChain([hooks, 'optionalAccess', _515 => _515.onRunAdmitted, 'optionalCall', _516 => _516(started.workflowId)]);
13089
- const resolvedDashboardUrl = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
13130
+ await _optionalChain([hooks, 'optionalAccess', _514 => _514.onRunStarted, 'optionalCall', _515 => _515(started.workflowId)]);
13131
+ await _optionalChain([hooks, 'optionalAccess', _516 => _516.onRunAdmitted, 'optionalCall', _517 => _517(started.workflowId)]);
13132
+ const resolvedDashboardUrl = _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
13090
13133
  openPlayDashboard(
13091
13134
  resolvePlayRunUrl({
13092
13135
  runId: started.workflowId,
@@ -13097,7 +13140,7 @@ async function handleNamedRun(options, hooks) {
13097
13140
  );
13098
13141
  progress.phase("started run");
13099
13142
  progress.complete();
13100
- if (_optionalChain([hooks, 'optionalAccess', _517 => _517.writeStarted])) {
13143
+ if (_optionalChain([hooks, 'optionalAccess', _518 => _518.writeStarted])) {
13101
13144
  hooks.writeStarted(
13102
13145
  started.workflowId,
13103
13146
  _nullishCoalesce(started.status, () => ( "started")),
@@ -13130,16 +13173,16 @@ async function writePlayRunReceipt(client, status, output) {
13130
13173
  const compact = compactPlayStatus(status);
13131
13174
  const errors = Array.isArray(compact.errors) ? compact.errors : [];
13132
13175
  const error = status.status === "failed" ? _nullishCoalesce(errors[0], () => ( {
13133
- message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access', _518 => _518.progress, 'optionalAccess', _519 => _519.error]))), () => ( "Play failed. Inspect the run for details."))
13176
+ message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access', _519 => _519.progress, 'optionalAccess', _520 => _520.error]))), () => ( "Play failed. Inspect the run for details."))
13134
13177
  })) : null;
13135
13178
  const next = { status: `deepline runs get ${status.runId}` };
13136
- const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _520 => _520.exec, 'call', _521 => _521(status.runId), 'optionalAccess', _522 => _522[1]]), () => ( extractRunPlayName(status))), () => ( null));
13179
+ const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _521 => _521.exec, 'call', _522 => _522(status.runId), 'optionalAccess', _523 => _523[1]]), () => ( extractRunPlayName(status))), () => ( null));
13137
13180
  if (!terminal) {
13138
- _chunkYXVYPYIPjs.writeExecutionOutput.call(void 0,
13181
+ _chunkCYN2AHR6js.writeExecutionOutput.call(void 0,
13139
13182
  {
13140
13183
  id: status.runId,
13141
13184
  status: status.status,
13142
- ...playName ? { page: _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
13185
+ ...playName ? { page: _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
13143
13186
  next
13144
13187
  },
13145
13188
  output
@@ -13199,11 +13242,11 @@ async function writePlayRunReceipt(client, status, output) {
13199
13242
  Object.entries(handle).filter(([key]) => source !== "result" || key !== "_metadata").map(([key, child]) => [key, materialize(child, `${source}.${key}`)])
13200
13243
  );
13201
13244
  };
13202
- const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call', _523 => _523(status), 'optionalAccess', _524 => _524.outputs]));
13245
+ const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call', _524 => _524(status), 'optionalAccess', _525 => _525.outputs]));
13203
13246
  const returned = status.result !== void 0 ? status.result : packagedOutputs ? Object.fromEntries(
13204
13247
  Object.entries(packagedOutputs).map(([key, value]) => [
13205
13248
  key,
13206
- _optionalChain([readRecord, 'call', _525 => _525(value), 'optionalAccess', _526 => _526.kind]) === "value" ? _optionalChain([readRecord, 'call', _527 => _527(value), 'optionalAccess', _528 => _528.value]) : value
13249
+ _optionalChain([readRecord, 'call', _526 => _526(value), 'optionalAccess', _527 => _527.kind]) === "value" ? _optionalChain([readRecord, 'call', _528 => _528(value), 'optionalAccess', _529 => _529.value]) : value
13207
13250
  ])
13208
13251
  ) : null;
13209
13252
  let data = materialize(returned);
@@ -13215,10 +13258,10 @@ async function writePlayRunReceipt(client, status, output) {
13215
13258
  };
13216
13259
  }
13217
13260
  const byRows = new Map(collections.map((c) => [c.rows, c]));
13218
- const allCollections = _chunkYXVYPYIPjs.outputCollections.call(void 0, data).map(
13261
+ const allCollections = _chunkCYN2AHR6js.outputCollections.call(void 0, data).map(
13219
13262
  (collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
13220
13263
  );
13221
- _chunkYXVYPYIPjs.writeExecutionOutput.call(void 0,
13264
+ _chunkCYN2AHR6js.writeExecutionOutput.call(void 0,
13222
13265
  {
13223
13266
  id: status.runId,
13224
13267
  status: status.status,
@@ -13226,8 +13269,8 @@ async function writePlayRunReceipt(client, status, output) {
13226
13269
  ...allCollections.length ? { collections: allCollections } : {},
13227
13270
  complete: allCollections.every((c) => c.complete === true) ? true : allCollections.some((c) => c.complete === false) ? false : null,
13228
13271
  error,
13229
- credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _529 => _529.billing, 'optionalAccess', _530 => _530.totalCredits]))), () => ( null)),
13230
- ...playName ? { page: _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
13272
+ credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _530 => _530.billing, 'optionalAccess', _531 => _531.totalCredits]))), () => ( null)),
13273
+ ...playName ? { page: _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
13231
13274
  warnings: [
13232
13275
  ...buildRunWarnings(status, null),
13233
13276
  ...status.status === "completed" && collections.length && collections.every((collection) => collection.rows.length === 0) ? ["Run completed with 0 output rows."] : []
@@ -13239,7 +13282,7 @@ async function writePlayRunReceipt(client, status, output) {
13239
13282
  }
13240
13283
  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
13284
  async function handlePlayRun(args, hooks) {
13242
- const parsedOptions = Array.isArray(args) ? _chunkATATJNJ6js.parsePlayRunOptions.call(void 0, args) : args;
13285
+ const parsedOptions = Array.isArray(args) ? _chunk46HEYGLYjs.parsePlayRunOptions.call(void 0, args) : args;
13243
13286
  const options = parsedOptions.runIdFile ? {
13244
13287
  ...parsedOptions,
13245
13288
  runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
@@ -13256,7 +13299,7 @@ async function handlePlayRun(args, hooks) {
13256
13299
  JSON.stringify({
13257
13300
  version: 1,
13258
13301
  admissionState: "submitted_unknown",
13259
- baseUrl: new (0, _chunkLRWDZDBSjs.DeeplineClient)().baseUrl,
13302
+ baseUrl: new (0, _chunkRZJWHL7Ljs.DeeplineClient)().baseUrl,
13260
13303
  ...intent
13261
13304
  })
13262
13305
  );
@@ -13268,7 +13311,7 @@ async function handlePlayRun(args, hooks) {
13268
13311
  } finally {
13269
13312
  await removeRunIdTempFile(tempPath);
13270
13313
  }
13271
- await _optionalChain([hooks, 'optionalAccess', _531 => _531.onSubmission, 'optionalCall', _532 => _532(intent)]);
13314
+ await _optionalChain([hooks, 'optionalAccess', _532 => _532.onSubmission, 'optionalCall', _533 => _533(intent)]);
13272
13315
  },
13273
13316
  onRunStarted: async (runId) => {
13274
13317
  try {
@@ -13279,7 +13322,7 @@ async function handlePlayRun(args, hooks) {
13279
13322
  { cause: error }
13280
13323
  );
13281
13324
  }
13282
- await _optionalChain([hooks, 'optionalAccess', _533 => _533.onRunStarted, 'optionalCall', _534 => _534(runId)]);
13325
+ await _optionalChain([hooks, 'optionalAccess', _534 => _534.onRunStarted, 'optionalCall', _535 => _535(runId)]);
13283
13326
  },
13284
13327
  onRunAdmitted: async (runId) => {
13285
13328
  try {
@@ -13292,7 +13335,7 @@ async function handlePlayRun(args, hooks) {
13292
13335
  { cause: error }
13293
13336
  );
13294
13337
  }
13295
- await _optionalChain([hooks, 'optionalAccess', _535 => _535.onRunAdmitted, 'optionalCall', _536 => _536(runId)]);
13338
+ await _optionalChain([hooks, 'optionalAccess', _536 => _536.onRunAdmitted, 'optionalCall', _537 => _537(runId)]);
13296
13339
  }
13297
13340
  } : hooks;
13298
13341
  if (options.target.kind === "file") {
@@ -13301,7 +13344,7 @@ async function handlePlayRun(args, hooks) {
13301
13344
  }
13302
13345
  const resolved = _path.resolve.call(void 0, options.target.path);
13303
13346
  const message = `File not found: ${resolved}`;
13304
- if (_optionalChain([runHooks, 'optionalAccess', _537 => _537.writeDryRunError])) {
13347
+ if (_optionalChain([runHooks, 'optionalAccess', _538 => _538.writeDryRunError])) {
13305
13348
  runHooks.writeDryRunError(message);
13306
13349
  return 1;
13307
13350
  }
@@ -13376,10 +13419,10 @@ function renderRunOverviewText(overview, extras = {}) {
13376
13419
  ...buildRunActivityTextLines(run),
13377
13420
  ...buildRunStatusEvidenceTextLines(overview)
13378
13421
  ];
13379
- if (_optionalChain([overview, 'access', _538 => _538.runStatus, 'optionalAccess', _539 => _539.available]) === false)
13422
+ if (_optionalChain([overview, 'access', _539 => _539.runStatus, 'optionalAccess', _540 => _540.available]) === false)
13380
13423
  lines.push(` call progress: unavailable (${overview.runStatus.reason})`);
13381
- const work = readRecord(_optionalChain([readRecord, 'call', _540 => _540(run), 'optionalAccess', _541 => _541.work]));
13382
- if (work && !_optionalChain([overview, 'access', _542 => _542.runStatus, 'optionalAccess', _543 => _543.available]))
13424
+ const work = readRecord(_optionalChain([readRecord, 'call', _541 => _541(run), 'optionalAccess', _542 => _542.work]));
13425
+ if (work && !_optionalChain([overview, 'access', _543 => _543.runStatus, 'optionalAccess', _544 => _544.available]))
13383
13426
  lines.push(
13384
13427
  ` calls (${_nullishCoalesce(work.scope, () => ( "attempt scope unknown"))}): ${formatObservedRunCounter({ value: work.logicalCalls, confirmed: true })} logical, ${formatObservedRunCounter({ value: work.providerRequests, confirmed: true })} provider requests`
13385
13428
  );
@@ -13387,6 +13430,10 @@ function renderRunOverviewText(overview, extras = {}) {
13387
13430
  lines.push(
13388
13431
  ` recovery: ${run.recovery.mode}${run.recovery.sourceRunId ? ` from ${run.recovery.sourceRunId}` : ""}`
13389
13432
  );
13433
+ const retries = normalizeRunRetrySummary(run.retries);
13434
+ if (retries) lines.push(` retries: ${formatRunRetrySummary(retries)}`);
13435
+ else if (run.retriesUnavailableReason)
13436
+ lines.push(` retries: unavailable (${run.retriesUnavailableReason})`);
13390
13437
  if (run.error) lines.push(` error: ${run.error}`);
13391
13438
  for (const warning of overview.warnings) lines.push(` warning: ${warning}`);
13392
13439
  const sections = [];
@@ -13430,7 +13477,7 @@ function renderRunOverviewText(overview, extras = {}) {
13430
13477
  ...overview.failedLogs.warning ? [`warning: ${overview.failedLogs.warning}`] : [],
13431
13478
  ...overview.failedLogs.logsTruncated ? ["Older log bodies were not retained."] : [],
13432
13479
  ...overview.failedLogs.entries,
13433
- ..._optionalChain([overview, 'access', _544 => _544.failedLogs, 'access', _545 => _545.next, 'optionalAccess', _546 => _546.logs]) ? [`More logs: ${overview.failedLogs.next.logs}`] : []
13480
+ ..._optionalChain([overview, 'access', _545 => _545.failedLogs, 'access', _546 => _546.next, 'optionalAccess', _547 => _547.logs]) ? [`More logs: ${overview.failedLogs.next.logs}`] : []
13434
13481
  ]
13435
13482
  });
13436
13483
  sections.push({
@@ -13490,7 +13537,7 @@ function renderRunOverviewText(overview, extras = {}) {
13490
13537
  );
13491
13538
  return `${lines.join("\n")}
13492
13539
 
13493
- ${_chunkGTGJBZVHjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13540
+ ${_chunkUTCGCES2js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13494
13541
  }
13495
13542
  var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
13496
13543
  async function withRunReadTiming(command, stage, enabled, action) {
@@ -13501,7 +13548,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
13501
13548
  const progressTimer = setInterval(() => {
13502
13549
  console.error(`[${command}] ${stage} still running after ${elapsedMs()}ms`);
13503
13550
  }, RUN_READ_TIMING_PROGRESS_INTERVAL_MS);
13504
- _optionalChain([progressTimer, 'access', _547 => _547.unref, 'optionalCall', _548 => _548()]);
13551
+ _optionalChain([progressTimer, 'access', _548 => _548.unref, 'optionalCall', _549 => _549()]);
13505
13552
  try {
13506
13553
  const result = await action();
13507
13554
  console.error(`[${command}] ${stage} completed in ${elapsedMs()}ms`);
@@ -13514,7 +13561,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
13514
13561
  }
13515
13562
  }
13516
13563
  async function handleRunGet(args) {
13517
- const selection = _chunkGTGJBZVHjs.parseJsonFields.call(void 0,
13564
+ const selection = _chunkUTCGCES2js.parseJsonFields.call(void 0,
13518
13565
  args,
13519
13566
  args.includes("--config") ? "config" : "get"
13520
13567
  );
@@ -13527,7 +13574,7 @@ async function handleRunGet(args) {
13527
13574
  console.error(error instanceof Error ? error.message : usage2);
13528
13575
  return 1;
13529
13576
  }
13530
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
13577
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
13531
13578
  const timing = args.includes("--timing");
13532
13579
  const web = args.includes("--web");
13533
13580
  if (web || args.includes("--web-url")) {
@@ -13542,11 +13589,11 @@ async function handleRunGet(args) {
13542
13589
  console.error(`Run ${runId} does not name its play; no run page URL.`);
13543
13590
  return 1;
13544
13591
  }
13545
- const dashboardUrl2 = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
13546
- const runUrl2 = _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
13592
+ const dashboardUrl2 = _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
13593
+ const runUrl2 = _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
13547
13594
  if (web) {
13548
- const opened = _chunkGTGJBZVHjs.openInBrowser.call(void 0, runUrl2);
13549
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13595
+ const opened = _chunkUTCGCES2js.openInBrowser.call(void 0, runUrl2);
13596
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
13550
13597
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
13551
13598
  {
13552
13599
  json: args.includes("--json"),
@@ -13557,7 +13604,7 @@ async function handleRunGet(args) {
13557
13604
  );
13558
13605
  return 0;
13559
13606
  }
13560
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13607
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
13561
13608
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
13562
13609
  { json: args.includes("--json"), text: `${runUrl2}
13563
13610
  ` }
@@ -13582,7 +13629,7 @@ async function handleRunGet(args) {
13582
13629
  "This server does not support recorded configuration reads."
13583
13630
  );
13584
13631
  }
13585
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13632
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
13586
13633
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13587
13634
  { json: true, fields: selection.fields }
13588
13635
  );
@@ -13595,7 +13642,7 @@ async function handleRunGet(args) {
13595
13642
  timing,
13596
13643
  () => client.getRunInput(runId)
13597
13644
  );
13598
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, input, { json: true });
13645
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, input, { json: true });
13599
13646
  return 0;
13600
13647
  }
13601
13648
  const full = args.includes("--full");
@@ -13605,10 +13652,12 @@ async function handleRunGet(args) {
13605
13652
  timing,
13606
13653
  () => client.runs.get(runId, {
13607
13654
  full: false,
13655
+ // With --full the full read below carries retries; ask only once.
13656
+ retries: !full,
13608
13657
  failedLogs: args.includes("--log-failed")
13609
13658
  })
13610
13659
  );
13611
- if (status.package) _chunkYXVYPYIPjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13660
+ if (status.package) _chunkCYN2AHR6js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13612
13661
  if (!status.package) {
13613
13662
  const legacyStatus = full ? await withRunReadTiming(
13614
13663
  "runs get",
@@ -13620,10 +13669,10 @@ async function handleRunGet(args) {
13620
13669
  })
13621
13670
  ) : status;
13622
13671
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
13623
- const legacyDashboardUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
13624
- const legacyRunUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
13625
- if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
13626
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13672
+ const legacyDashboardUrl = legacyPlayName ? _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
13673
+ const legacyRunUrl = legacyPlayName ? _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
13674
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
13675
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
13627
13676
  {
13628
13677
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
13629
13678
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
@@ -13634,7 +13683,7 @@ async function handleRunGet(args) {
13634
13683
  } else {
13635
13684
  writePlayResult(legacyStatus, false, { fullJson: full });
13636
13685
  if (legacyRunUrl)
13637
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13686
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
13638
13687
  { dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
13639
13688
  { json: false, text: `run page: ${legacyRunUrl}
13640
13689
  ` }
@@ -13646,7 +13695,7 @@ async function handleRunGet(args) {
13646
13695
  "runs get",
13647
13696
  "full result",
13648
13697
  timing,
13649
- () => client.runs.get(runId, { full: true })
13698
+ () => client.runs.get(runId, { full: true, retries: true })
13650
13699
  ) : void 0;
13651
13700
  const overview = buildRunOverview(status, fullStatus);
13652
13701
  const [hits, credits] = await Promise.all([
@@ -13664,11 +13713,11 @@ async function handleRunGet(args) {
13664
13713
  )
13665
13714
  ]);
13666
13715
  const hitLines = formatRunHitsLines(hits);
13667
- const json = _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
13716
+ const json = _chunkUTCGCES2js.argsWantJson.call(void 0, args);
13668
13717
  const playName = resolveRunPlayName(status, runId);
13669
- const dashboardUrl = playName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
13670
- const runUrl = playName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
13671
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13718
+ const dashboardUrl = playName ? _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
13719
+ const runUrl = playName ? _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
13720
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
13672
13721
  {
13673
13722
  ...overview,
13674
13723
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -13773,9 +13822,9 @@ async function handleRunLifecycleStatus(args) {
13773
13822
  console.error(error instanceof Error ? error.message : usage2);
13774
13823
  return 1;
13775
13824
  }
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 });
13825
+ const status = await new (0, _chunkRZJWHL7Ljs.DeeplineClient)().runs.status(runId);
13826
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
13827
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, status, { json: true });
13779
13828
  return 0;
13780
13829
  }
13781
13830
  if (!status.available) {
@@ -13841,7 +13890,7 @@ async function handleRunsRerun(args) {
13841
13890
  console.error(error instanceof Error ? error.message : usage2);
13842
13891
  return 1;
13843
13892
  }
13844
- const options = { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) };
13893
+ const options = { json: _chunkUTCGCES2js.argsWantJson.call(void 0, args) };
13845
13894
  for (let index = 0; index < args.length; index += 1) {
13846
13895
  if (args[index] === "--idempotency-key") {
13847
13896
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -13907,8 +13956,8 @@ ${usage2}
13907
13956
  Discover Plays: ${next.discover}
13908
13957
  Active runs: ${next.running}`
13909
13958
  );
13910
- if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
13911
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
13959
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
13960
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
13912
13961
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
13913
13962
  { json: true }
13914
13963
  );
@@ -13923,7 +13972,7 @@ Active runs: ${next.running}`
13923
13972
  console.error("--offset requires --play.");
13924
13973
  return 1;
13925
13974
  }
13926
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
13975
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
13927
13976
  const page = await withRunReadTiming(
13928
13977
  "runs list",
13929
13978
  "run inventory",
@@ -13958,7 +14007,7 @@ Active runs: ${next.running}`
13958
14007
  executionTime: run.executionTime,
13959
14008
  billingTotalCredits: run.billingTotalCredits,
13960
14009
  billingMaxCreditsPerRun: run.billingMaxCreditsPerRun,
13961
- playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access', _549 => _549.memo, 'optionalAccess', _550 => _550.playName]))), () => ( playName)), () => ( null)),
14010
+ playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access', _550 => _550.memo, 'optionalAccess', _551 => _551.playName]))), () => ( playName)), () => ( null)),
13962
14011
  ...nodeId ? { nodeObservation: _nullishCoalesce(run.nodeObservation, () => ( null)) } : {}
13963
14012
  }));
13964
14013
  const lines = runs.length === 0 ? [
@@ -13990,14 +14039,14 @@ Active runs: ${next.running}`
13990
14039
  return lines2.join("\n");
13991
14040
  });
13992
14041
  const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
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;
14042
+ 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}${_chunkUTCGCES2js.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
13994
14043
  if (page.hasMore) {
13995
14044
  lines.push("List truncated \u2014 more runs match this filter.");
13996
14045
  lines.push(
13997
14046
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
13998
14047
  );
13999
14048
  }
14000
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14049
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
14001
14050
  {
14002
14051
  runs,
14003
14052
  count: runs.length,
@@ -14007,11 +14056,11 @@ Active runs: ${next.running}`
14007
14056
  ...page.hasMore !== void 0 ? { has_more: page.hasMore, is_truncated: page.hasMore } : {},
14008
14057
  next: {
14009
14058
  page: nextPage,
14010
- get: _optionalChain([runs, 'access', _551 => _551[0], 'optionalAccess', _552 => _552.id]) ? `deepline runs get ${runs[0].id}` : null
14059
+ get: _optionalChain([runs, 'access', _552 => _552[0], 'optionalAccess', _553 => _553.id]) ? `deepline runs get ${runs[0].id}` : null
14011
14060
  },
14012
14061
  render: { sections: [{ title: "runs", lines }] }
14013
14062
  },
14014
- { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) }
14063
+ { json: _chunkUTCGCES2js.argsWantJson.call(void 0, args) }
14015
14064
  );
14016
14065
  return 0;
14017
14066
  }
@@ -14041,7 +14090,7 @@ async function handleRunTail(args) {
14041
14090
  console.error("--log-level requires one of: debug, info, warn, error.");
14042
14091
  return 1;
14043
14092
  }
14044
- const parsed = _chunkV7KUBDEBjs.parseLogLevel.call(void 0, value);
14093
+ const parsed = _chunk3MYI3IXWjs.parseLogLevel.call(void 0, value);
14045
14094
  if (!parsed) {
14046
14095
  console.error(
14047
14096
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14079,9 +14128,9 @@ async function handleRunTail(args) {
14079
14128
  );
14080
14129
  return 1;
14081
14130
  }
14082
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14131
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
14083
14132
  const jsonLines = args.includes("--jsonl");
14084
- const jsonOutput = !jsonLines && _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
14133
+ const jsonOutput = !jsonLines && _chunkUTCGCES2js.argsWantJson.call(void 0, args);
14085
14134
  const compact = args.includes("--compact");
14086
14135
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14087
14136
  const compactState = {
@@ -14162,7 +14211,7 @@ async function handleRunLogs(args) {
14162
14211
  ]);
14163
14212
  const cursorIndex = args.indexOf("--cursor");
14164
14213
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14165
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkV7KUBDEBjs.isRunLogsCursor.call(void 0, cursorValue));
14214
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk3MYI3IXWjs.isRunLogsCursor.call(void 0, cursorValue));
14166
14215
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14167
14216
  return handleRunEventSearch(args);
14168
14217
  }
@@ -14196,7 +14245,7 @@ async function handleRunLogs(args) {
14196
14245
  console.error("--log-level requires one of: debug, info, warn, error.");
14197
14246
  return 1;
14198
14247
  }
14199
- const parsed = _chunkV7KUBDEBjs.parseLogLevel.call(void 0, value);
14248
+ const parsed = _chunk3MYI3IXWjs.parseLogLevel.call(void 0, value);
14200
14249
  if (!parsed) {
14201
14250
  console.error(
14202
14251
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14243,12 +14292,12 @@ async function handleRunLogs(args) {
14243
14292
  );
14244
14293
  return 1;
14245
14294
  }
14246
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14295
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
14247
14296
  if (outPath) {
14248
14297
  const result2 = await client.runs.logs(runId, { all: true });
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);
14298
+ const logs = result2.entries.filter((line) => _chunk3MYI3IXWjs.logLevelReaches.call(void 0, _chunk3MYI3IXWjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk3MYI3IXWjs.classifyLogLine.call(void 0, line).line);
14250
14299
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14251
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14300
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
14252
14301
  {
14253
14302
  runId: result2.runId,
14254
14303
  log_path: outPath,
@@ -14271,7 +14320,7 @@ async function handleRunLogs(args) {
14271
14320
  ]
14272
14321
  }
14273
14322
  },
14274
- { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) }
14323
+ { json: _chunkUTCGCES2js.argsWantJson.call(void 0, args) }
14275
14324
  );
14276
14325
  return 0;
14277
14326
  }
@@ -14302,7 +14351,7 @@ async function handleRunLogs(args) {
14302
14351
  }
14303
14352
  };
14304
14353
  const text = buildRunLogsText(filteredResult);
14305
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14354
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
14306
14355
  {
14307
14356
  runId: result.runId,
14308
14357
  totalCount: result.totalCount,
@@ -14326,7 +14375,7 @@ async function handleRunLogs(args) {
14326
14375
  render: { sections: [{ title: "run logs", lines: entries }] }
14327
14376
  },
14328
14377
  {
14329
- json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args),
14378
+ json: _chunkUTCGCES2js.argsWantJson.call(void 0, args),
14330
14379
  text
14331
14380
  }
14332
14381
  );
@@ -14350,17 +14399,17 @@ function selectRunLogTailPage(result, logLevel, limit) {
14350
14399
  );
14351
14400
  }
14352
14401
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14353
- (entry) => _chunkV7KUBDEBjs.logLevelReaches.call(void 0, _chunkV7KUBDEBjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14402
+ (entry) => _chunk3MYI3IXWjs.logLevelReaches.call(void 0, _chunk3MYI3IXWjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14354
14403
  );
14355
14404
  const selected = matching.slice(-limit);
14356
14405
  const olderMatchesExist = matching.length > selected.length;
14357
14406
  return {
14358
14407
  entries: selected.map((entry) => entry.line),
14359
- firstSequence: _nullishCoalesce(_optionalChain([selected, 'access', _553 => _553[0], 'optionalAccess', _554 => _554.seq]), () => ( null)),
14360
- lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _555 => _555.at, 'call', _556 => _556(-1), 'optionalAccess', _557 => _557.seq]), () => ( null)),
14408
+ firstSequence: _nullishCoalesce(_optionalChain([selected, 'access', _554 => _554[0], 'optionalAccess', _555 => _555.seq]), () => ( null)),
14409
+ lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _556 => _556.at, 'call', _557 => _557(-1), 'optionalAccess', _558 => _558.seq]), () => ( null)),
14361
14410
  truncated: result.truncated || olderMatchesExist,
14362
14411
  hasMore: olderMatchesExist,
14363
- nextCursor: olderMatchesExist ? _chunkV7KUBDEBjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14412
+ nextCursor: olderMatchesExist ? _chunk3MYI3IXWjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14364
14413
  };
14365
14414
  }
14366
14415
  async function handleRunEventSearch(args) {
@@ -14427,7 +14476,7 @@ ${usage2}`);
14427
14476
  namespace,
14428
14477
  ...backend ? { backend } : {}
14429
14478
  } : void 0;
14430
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14479
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
14431
14480
  const result = await client.runs.searchEvents({
14432
14481
  ...runId ? { runId } : {},
14433
14482
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14499,7 +14548,7 @@ ${renderedDetails}` : ""}`;
14499
14548
  "--limit",
14500
14549
  String(limit)
14501
14550
  ].join(" ") : null;
14502
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14551
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
14503
14552
  {
14504
14553
  events,
14505
14554
  nextCursor: result.nextCursor,
@@ -14510,19 +14559,19 @@ ${renderedDetails}` : ""}`;
14510
14559
  render: { sections: [{ title: "runtime events", lines }] }
14511
14560
  },
14512
14561
  {
14513
- json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args),
14562
+ json: _chunkUTCGCES2js.argsWantJson.call(void 0, args),
14514
14563
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14515
14564
  }
14516
14565
  );
14517
14566
  return 0;
14518
14567
  }
14519
14568
  function buildRunLogsText(result) {
14520
- const lines = result.entries.map((line) => _chunkV7KUBDEBjs.classifyLogLine.call(void 0, line).line);
14569
+ const lines = result.entries.map((line) => _chunk3MYI3IXWjs.classifyLogLine.call(void 0, line).line);
14521
14570
  if (result.warning) {
14522
14571
  if (lines.length > 0) lines.push("");
14523
14572
  lines.push(`warning: ${result.warning}`);
14524
14573
  lines.push(
14525
- `retained logs: ${_nullishCoalesce(_optionalChain([result, 'access', _558 => _558.next, 'optionalAccess', _559 => _559.logs]), () => ( `deepline runs logs ${result.runId} --out run.log`))}`
14574
+ `retained logs: ${_nullishCoalesce(_optionalChain([result, 'access', _559 => _559.next, 'optionalAccess', _560 => _560.logs]), () => ( `deepline runs logs ${result.runId} --out run.log`))}`
14526
14575
  );
14527
14576
  }
14528
14577
  return `${lines.join("\n")}${lines.length > 0 ? "\n" : ""}`;
@@ -14551,7 +14600,7 @@ async function handleRunStop(args) {
14551
14600
  reason = args[++index];
14552
14601
  }
14553
14602
  }
14554
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14603
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
14555
14604
  const result = await client.runs.stop(runId, { reason });
14556
14605
  const state = resolveRunStopState(result);
14557
14606
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14566,7 +14615,7 @@ async function handleRunStop(args) {
14566
14615
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14567
14616
  `inspect: deepline runs get ${runId} --full`
14568
14617
  ];
14569
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14618
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
14570
14619
  {
14571
14620
  ...cancelling,
14572
14621
  state,
@@ -14581,7 +14630,7 @@ async function handleRunStop(args) {
14581
14630
  ]
14582
14631
  }
14583
14632
  },
14584
- { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) }
14633
+ { json: _chunkUTCGCES2js.argsWantJson.call(void 0, args) }
14585
14634
  );
14586
14635
  return 0;
14587
14636
  }
@@ -14598,7 +14647,7 @@ async function handleRunStop(args) {
14598
14647
  ];
14599
14648
  process.stderr.write(`${lines2.join("\n")}
14600
14649
  `);
14601
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14650
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
14602
14651
  {
14603
14652
  ...result,
14604
14653
  render: {
@@ -14613,7 +14662,7 @@ async function handleRunStop(args) {
14613
14662
  ]
14614
14663
  }
14615
14664
  },
14616
- { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) }
14665
+ { json: _chunkUTCGCES2js.argsWantJson.call(void 0, args) }
14617
14666
  );
14618
14667
  return 1;
14619
14668
  }
@@ -14624,12 +14673,12 @@ async function handleRunStop(args) {
14624
14673
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14625
14674
  ] : []
14626
14675
  ];
14627
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14676
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
14628
14677
  {
14629
14678
  ...result,
14630
14679
  render: { sections: [{ title: "run stop", lines }] }
14631
14680
  },
14632
- { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) }
14681
+ { json: _chunkUTCGCES2js.argsWantJson.call(void 0, args) }
14633
14682
  );
14634
14683
  return 0;
14635
14684
  }
@@ -14679,18 +14728,18 @@ async function handleRunStopAll(args) {
14679
14728
  reason = args[++index];
14680
14729
  }
14681
14730
  }
14682
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14731
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
14683
14732
  if (dryRun) {
14684
14733
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14685
14734
  const lines2 = buildStopAllDryRunTextLines(result2);
14686
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14735
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
14687
14736
  {
14688
14737
  ...result2,
14689
14738
  render: {
14690
14739
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14691
14740
  }
14692
14741
  },
14693
- { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14742
+ { json: _chunkUTCGCES2js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14694
14743
  ` }
14695
14744
  );
14696
14745
  return 0;
@@ -14703,17 +14752,17 @@ async function handleRunStopAll(args) {
14703
14752
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14704
14753
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14705
14754
  ];
14706
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
14755
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
14707
14756
  {
14708
14757
  ...result,
14709
14758
  render: { sections: [{ title: "workspace stop-all", lines }] }
14710
14759
  },
14711
- { json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args) }
14760
+ { json: _chunkUTCGCES2js.argsWantJson.call(void 0, args) }
14712
14761
  );
14713
14762
  return result.failed > 0 || result.partial ? 1 : 0;
14714
14763
  }
14715
14764
  async function handleRunExport(args) {
14716
- const selection = _chunkGTGJBZVHjs.parseJsonFields.call(void 0, args, "export");
14765
+ const selection = _chunkUTCGCES2js.parseJsonFields.call(void 0, args, "export");
14717
14766
  args = selection.args;
14718
14767
  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]";
14719
14768
  let runId;
@@ -14784,17 +14833,17 @@ async function handleRunExport(args) {
14784
14833
  "INVALID_ARGUMENT"
14785
14834
  );
14786
14835
  }
14787
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14836
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
14788
14837
  let status = await client.getPlayStatus(runId, { full: true });
14789
14838
  assertRunExportStatusIdentity(status, runId);
14790
14839
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14791
- const progress = _chunkBXVYVIMBjs.createCliProgress.call(void 0, !_chunkGTGJBZVHjs.argsWantJson.call(void 0, args));
14840
+ const progress = _chunkB33J4YCCjs.createCliProgress.call(void 0, !_chunkUTCGCES2js.argsWantJson.call(void 0, args));
14792
14841
  try {
14793
14842
  await waitForPlayCompletionByWatch({
14794
14843
  client,
14795
14844
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14796
14845
  workflowId: runId,
14797
- jsonOutput: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args),
14846
+ jsonOutput: _chunkUTCGCES2js.argsWantJson.call(void 0, args),
14798
14847
  emitLogs: false,
14799
14848
  waitTimeoutMs,
14800
14849
  startedAt: Date.now(),
@@ -14820,26 +14869,26 @@ async function handleRunExport(args) {
14820
14869
  format,
14821
14870
  summary
14822
14871
  });
14823
- const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _560 => _560.rowsInfo, 'access', _561 => _561.source]), () => ( datasetPath)), () => ( null));
14824
- const currentTableNotice = _optionalChain([exportResult, 'optionalAccess', _562 => _562.currentTable]) ? {
14872
+ const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _561 => _561.rowsInfo, 'access', _562 => _562.source]), () => ( datasetPath)), () => ( null));
14873
+ const currentTableNotice = _optionalChain([exportResult, 'optionalAccess', _563 => _563.currentTable]) ? {
14825
14874
  code: "CURRENT_SHARED_DATASET",
14826
14875
  message: "This export is the current shared dataset and may include writes from another run.",
14827
14876
  full_run_output_command: `deepline runs get ${status.runId} --full`
14828
14877
  } : null;
14829
14878
  const navigation = buildRunNavigation(status);
14830
- const resolved = _optionalChain([exportResult, 'optionalAccess', _563 => _563.datasetInfo]);
14879
+ const resolved = _optionalChain([exportResult, 'optionalAccess', _564 => _564.datasetInfo]);
14831
14880
  const identity = navigation.datasets.find(
14832
- (dataset) => _optionalChain([resolved, 'optionalAccess', _564 => _564.datasetId]) ? dataset.datasetId === resolved.datasetId : dataset.name === _optionalChain([resolved, 'optionalAccess', _565 => _565.tableNamespace])
14881
+ (dataset) => _optionalChain([resolved, 'optionalAccess', _565 => _565.datasetId]) ? dataset.datasetId === resolved.datasetId : dataset.name === _optionalChain([resolved, 'optionalAccess', _566 => _566.tableNamespace])
14833
14882
  );
14834
14883
  const unambiguousName = identity && !identity.exportUnavailable && navigation.datasets.filter((dataset) => dataset.name === identity.name).length === 1 ? identity.name : void 0;
14835
14884
  const exportCommand = runExportRetryCommand(
14836
14885
  status.runId,
14837
14886
  outPath,
14838
- _nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess', _566 => _566.datasetPath]))),
14887
+ _nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess', _567 => _567.datasetPath]))),
14839
14888
  { format, summary }
14840
14889
  ) + (args.includes("--allow-empty") ? " --allow-empty" : "");
14841
- const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _567 => _567.path]), () => ( null)) } : { csv_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _568 => _568.path]), () => ( null)) };
14842
- const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess', _569 => _569.rowsInfo, 'access', _570 => _570.exportedRowOutcomes]);
14890
+ const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _568 => _568.path]), () => ( null)) } : { csv_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _569 => _569.path]), () => ( null)) };
14891
+ const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess', _570 => _570.rowsInfo, 'access', _571 => _571.exportedRowOutcomes]);
14843
14892
  const rowFailures = exportedRowOutcomes && exportedRowOutcomes.failed > 0 ? {
14844
14893
  count: exportedRowOutcomes.failed,
14845
14894
  message: "Failed rows can retain values from stages that completed earlier; those values do not prove the row succeeded.",
@@ -14859,17 +14908,17 @@ async function handleRunExport(args) {
14859
14908
  ...fileLocation,
14860
14909
  format,
14861
14910
  source,
14862
- rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.totalRows]), () => ( null)),
14911
+ rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _572 => _572.rowsInfo, 'access', _573 => _573.totalRows]), () => ( null)),
14863
14912
  ...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
14864
14913
  ...rowFailures ? { rowFailures } : {},
14865
- columns: _chunkYXVYPYIPjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _573 => _573.rowsInfo, 'access', _574 => _574.columns]), () => ( []))),
14914
+ columns: _chunkCYN2AHR6js.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _574 => _574.rowsInfo, 'access', _575 => _575.columns]), () => ( []))),
14866
14915
  ...currentTableNotice ? { notice: currentTableNotice } : {},
14867
14916
  ...metadataOutPath ? { metadata_path: metadataOutPath } : {},
14868
14917
  ...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
14869
14918
  };
14870
14919
  const lines = withRunNavigationLines(
14871
14920
  [
14872
- `Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _575 => _575.path]), () => ( outPath))}`,
14921
+ `Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _576 => _576.path]), () => ( outPath))}`,
14873
14922
  ...!TERMINAL_PLAY_STATUSES.has(status.status) ? [
14874
14923
  `Partial export: run is ${status.status}; more rows may be saved.`,
14875
14924
  `Export after completion: ${exportCommand} --wait`
@@ -14896,8 +14945,8 @@ async function handleRunExport(args) {
14896
14945
  "utf-8"
14897
14946
  );
14898
14947
  }
14899
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, payload, {
14900
- json: _chunkGTGJBZVHjs.argsWantJson.call(void 0, args),
14948
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, payload, {
14949
+ json: _chunkUTCGCES2js.argsWantJson.call(void 0, args),
14901
14950
  fields: selection.fields,
14902
14951
  text: `${lines.join("\n")}
14903
14952
  `
@@ -14931,10 +14980,10 @@ async function handlePlayGet(args) {
14931
14980
  );
14932
14981
  return 2;
14933
14982
  }
14934
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
14983
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
14935
14984
  const explicitJson = args.includes("--json");
14936
14985
  const sourceOutput = args.includes("--source");
14937
- const jsonOutput = sourceOutput ? explicitJson : _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
14986
+ const jsonOutput = sourceOutput ? explicitJson : _chunkUTCGCES2js.argsWantJson.call(void 0, args);
14938
14987
  const requestedRevisionFlags = [
14939
14988
  args.includes("--working"),
14940
14989
  args.includes("--live"),
@@ -14987,7 +15036,7 @@ async function handlePlayGet(args) {
14987
15036
  ...includeSource ? { source: sourceSelector } : {}
14988
15037
  });
14989
15038
  const source = detail.source;
14990
- const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess', _576 => _576.files, 'access', _577 => _577[source.entryFile]]), () => ( ""));
15039
+ const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess', _577 => _577.files, 'access', _578 => _578[source.entryFile]]), () => ( ""));
14991
15040
  let materializedFile = null;
14992
15041
  try {
14993
15042
  materializedFile = outPath && source ? materializeRemotePlaySource({ target, playName, source, outPath }) : null;
@@ -14997,7 +15046,7 @@ async function handlePlayGet(args) {
14997
15046
  }
14998
15047
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
14999
15048
  if (jsonOutput) {
15000
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, {
15049
+ _chunkUTCGCES2js.printCompactJson.call(void 0, {
15001
15050
  ...detail,
15002
15051
  ...materializedFile ? {
15003
15052
  message: loadedMessage,
@@ -15038,16 +15087,16 @@ async function handlePlayGet(args) {
15038
15087
  }
15039
15088
  console.log(`Play: ${formatPlayReference(detail.play)}`);
15040
15089
  console.log(
15041
- `Working version: ${_nullishCoalesce(_optionalChain([detail, 'access', _578 => _578.play, 'access', _579 => _579.workingRevision, 'optionalAccess', _580 => _580.version]), () => ( "\u2014"))}`
15090
+ `Working version: ${_nullishCoalesce(_optionalChain([detail, 'access', _579 => _579.play, 'access', _580 => _580.workingRevision, 'optionalAccess', _581 => _581.version]), () => ( "\u2014"))}`
15042
15091
  );
15043
- console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access', _581 => _581.play, 'access', _582 => _582.liveRevision, 'optionalAccess', _583 => _583.version]), () => ( "\u2014"))}`);
15092
+ console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access', _582 => _582.play, 'access', _583 => _583.liveRevision, 'optionalAccess', _584 => _584.version]), () => ( "\u2014"))}`);
15044
15093
  if (detail.play.liveRevision) {
15045
15094
  console.log(
15046
15095
  `Live max credits per run: ${liveMaxCreditsPerRun(detail.play.liveRevision.sourceCode)}`
15047
15096
  );
15048
15097
  }
15049
15098
  console.log(`Draft dirty: ${detail.play.isDraftDirty ? "yes" : "no"}`);
15050
- if (detail.play.isDraftDirty && _optionalChain([detail, 'access', _584 => _584.play, 'access', _585 => _585.liveRevision, 'optionalAccess', _586 => _586.version])) {
15099
+ if (detail.play.isDraftDirty && _optionalChain([detail, 'access', _585 => _585.play, 'access', _586 => _586.liveRevision, 'optionalAccess', _587 => _587.version])) {
15051
15100
  console.log(
15052
15101
  ` Scheduled and named runs continue to use live v${detail.play.liveRevision.version}.`
15053
15102
  );
@@ -15059,7 +15108,7 @@ async function handlePlayGet(args) {
15059
15108
  console.log(line);
15060
15109
  }
15061
15110
  console.log(`Updated: ${formatTimestamp(detail.play.updatedAt)}`);
15062
- console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access', _587 => _587.sheetSummary, 'optionalAccess', _588 => _588.stats, 'optionalAccess', _589 => _589.total]), () => ( 0))}`);
15111
+ console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access', _588 => _588.sheetSummary, 'optionalAccess', _589 => _589.stats, 'optionalAccess', _590 => _590.total]), () => ( 0))}`);
15063
15112
  if (detail.customerDbUrl) {
15064
15113
  console.log(`Customer DB: ${detail.customerDbUrl}`);
15065
15114
  }
@@ -15075,7 +15124,7 @@ async function handlePlayGet(args) {
15075
15124
  return 0;
15076
15125
  }
15077
15126
  function formatVersionLine(version) {
15078
- const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access', _590 => _590.artifactHash, 'optionalAccess', _591 => _591.slice, 'call', _592 => _592(0, 12)]), () => ( "unknown-revision"));
15127
+ const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access', _591 => _591.artifactHash, 'optionalAccess', _592 => _592.slice, 'call', _593 => _593(0, 12)]), () => ( "unknown-revision"));
15079
15128
  const state = [
15080
15129
  version.isLive ? "live" : null,
15081
15130
  version.isWorking ? "working" : null
@@ -15089,8 +15138,8 @@ async function handlePlayVersions(args) {
15089
15138
  console.error("Usage: deepline plays versions --name <name> [--json]");
15090
15139
  return 1;
15091
15140
  }
15092
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15093
- const jsonOutput = _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
15141
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
15142
+ const jsonOutput = _chunkUTCGCES2js.argsWantJson.call(void 0, args);
15094
15143
  await assertCanonicalNamedPlayReference(client, playName, {
15095
15144
  command: "versions"
15096
15145
  });
@@ -15098,7 +15147,7 @@ async function handlePlayVersions(args) {
15098
15147
  parseReferencedPlayTarget(playName).playName
15099
15148
  );
15100
15149
  if (jsonOutput) {
15101
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, { versions });
15150
+ _chunkUTCGCES2js.printCompactJson.call(void 0, { versions });
15102
15151
  return 0;
15103
15152
  }
15104
15153
  if (versions.length === 0) {
@@ -15111,7 +15160,7 @@ async function handlePlayVersions(args) {
15111
15160
  return 0;
15112
15161
  }
15113
15162
  function formatPlayCostEstimate(estimate) {
15114
- const computeSummary = _optionalChain([estimate, 'optionalAccess', _593 => _593.compute]) ? `; ${estimate.status === "available" && estimate.source === "observed" ? "observed Deepline total includes usage-based compute; per-session ceiling" : "separate Deepline compute is usage-based; per-session ceiling"} across ${estimate.compute.pricedBackends.map(formatSandboxBackend).join(" and ")}: ${formatCredits(estimate.compute.maximumCredits)} credits (${formatSandboxBackend(estimate.compute.maximumBackend)} is highest; ${formatCredits(estimate.compute.maximumBillingSeconds)}s; total session count unbounded)` : "";
15163
+ const computeSummary = _optionalChain([estimate, 'optionalAccess', _594 => _594.compute]) ? `; ${estimate.status === "available" && estimate.source === "observed" ? "observed Deepline total includes usage-based compute; per-session ceiling" : "separate Deepline compute is usage-based; per-session ceiling"} across ${estimate.compute.pricedBackends.map(formatSandboxBackend).join(" and ")}: ${formatCredits(estimate.compute.maximumCredits)} credits (${formatSandboxBackend(estimate.compute.maximumBackend)} is highest; ${formatCredits(estimate.compute.maximumBillingSeconds)}s; total session count unbounded)` : "";
15115
15164
  if (!estimate || estimate.status === "unavailable") {
15116
15165
  return `unavailable${estimate ? `: ${estimate.message}${computeSummary}` : ""}`;
15117
15166
  }
@@ -15141,8 +15190,8 @@ async function handlePlayCost(args) {
15141
15190
  console.error("Usage: deepline plays cost <play> [--json]");
15142
15191
  return 2;
15143
15192
  }
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));
15193
+ const result = await new (0, _chunkRZJWHL7Ljs.DeeplineClient)().getPlayCostEstimate(name);
15194
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15146
15195
  else
15147
15196
  console.log(
15148
15197
  `${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
@@ -15150,11 +15199,11 @@ async function handlePlayCost(args) {
15150
15199
  return 0;
15151
15200
  }
15152
15201
  async function handlePlayList(args) {
15153
- const jsonOutput = _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
15202
+ const jsonOutput = _chunkUTCGCES2js.argsWantJson.call(void 0, args);
15154
15203
  const showCost = args.includes("--show-cost");
15155
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15204
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
15156
15205
  const categoriesIndex = args.indexOf("--categories");
15157
- const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _594 => _594[categoriesIndex + 1], 'optionalAccess', _595 => _595.trim, 'call', _596 => _596()]) : void 0;
15206
+ const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _595 => _595[categoriesIndex + 1], 'optionalAccess', _596 => _596.trim, 'call', _597 => _597()]) : void 0;
15158
15207
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
15159
15208
  if (args.includes("--tag") && tags.length === 0) {
15160
15209
  console.error(
@@ -15175,7 +15224,7 @@ async function handlePlayList(args) {
15175
15224
  const cursorIndex = args.indexOf("--cursor");
15176
15225
  const limit = limitIndex >= 0 ? Number(args[limitIndex + 1]) : void 0;
15177
15226
  const cursor = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
15178
- if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess', _597 => _597.trim, 'call', _598 => _598()])) {
15227
+ if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess', _598 => _598.trim, 'call', _599 => _599()])) {
15179
15228
  console.error("Pass a positive --limit and a non-empty --cursor.");
15180
15229
  return 2;
15181
15230
  }
@@ -15216,7 +15265,7 @@ async function handlePlayList(args) {
15216
15265
  if (play.inputSchema || play.hasInputSchema) {
15217
15266
  lines.push(" inputSchema: yes");
15218
15267
  }
15219
- if (_optionalChain([play, 'access', _599 => _599.triggerStatus, 'optionalAccess', _600 => _600.cron])) {
15268
+ if (_optionalChain([play, 'access', _600 => _600.triggerStatus, 'optionalAccess', _601 => _601.cron])) {
15220
15269
  lines.push(
15221
15270
  ` scheduled execution: ${cronExecutionLabel(play.triggerStatus.cron)}`
15222
15271
  );
@@ -15236,12 +15285,12 @@ async function handlePlayList(args) {
15236
15285
  } else {
15237
15286
  lines.push(" scheduled execution: not configured");
15238
15287
  }
15239
- if (_optionalChain([play, 'access', _601 => _601.triggerStatus, 'optionalAccess', _602 => _602.webhook])) {
15288
+ if (_optionalChain([play, 'access', _602 => _602.triggerStatus, 'optionalAccess', _603 => _603.webhook])) {
15240
15289
  lines.push(` webhook: ${play.triggerStatus.webhook}`);
15241
15290
  }
15242
15291
  if (showCost) {
15243
15292
  lines.push(
15244
- ` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access', _603 => _603.observedCost, 'optionalAccess', _604 => _604.displayText]), () => ( formatPlayCostEstimate(play.costEstimate)))}`
15293
+ ` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access', _604 => _604.observedCost, 'optionalAccess', _605 => _605.displayText]), () => ( formatPlayCostEstimate(play.costEstimate)))}`
15245
15294
  );
15246
15295
  }
15247
15296
  lines.push(` run: deepline run ${reference}`);
@@ -15250,7 +15299,7 @@ async function handlePlayList(args) {
15250
15299
  lines.push("List truncated \u2014 more plays are available.");
15251
15300
  lines.push(`Next page: ${nextPage}`);
15252
15301
  }
15253
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
15302
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
15254
15303
  {
15255
15304
  plays,
15256
15305
  count: plays.length,
@@ -15267,8 +15316,8 @@ async function handlePlayList(args) {
15267
15316
  return 0;
15268
15317
  }
15269
15318
  async function handlePlayPin(args, pinned) {
15270
- const target = _optionalChain([args, 'access', _605 => _605.find, 'call', _606 => _606((arg) => !arg.startsWith("-")), 'optionalAccess', _607 => _607.trim, 'call', _608 => _608()]);
15271
- const jsonOutput = _chunkGTGJBZVHjs.argsWantJson.call(void 0, args);
15319
+ const target = _optionalChain([args, 'access', _606 => _606.find, 'call', _607 => _607((arg) => !arg.startsWith("-")), 'optionalAccess', _608 => _608.trim, 'call', _609 => _609()]);
15320
+ const jsonOutput = _chunkUTCGCES2js.argsWantJson.call(void 0, args);
15272
15321
  const dryRun = args.includes("--dry-run");
15273
15322
  if (!target) {
15274
15323
  console.error(
@@ -15286,11 +15335,11 @@ async function handlePlayPin(args, pinned) {
15286
15335
  const name = parsedTarget.playName;
15287
15336
  const plan = { name, pinned, dryRun };
15288
15337
  if (dryRun) {
15289
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, plan);
15338
+ _chunkUTCGCES2js.printCompactJson.call(void 0, plan);
15290
15339
  return 0;
15291
15340
  }
15292
- const result = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().setPlayPinned(name, pinned);
15293
- if (jsonOutput) _chunkGTGJBZVHjs.printCompactJson.call(void 0, result);
15341
+ const result = await new (0, _chunkRZJWHL7Ljs.DeeplineClient)().setPlayPinned(name, pinned);
15342
+ if (jsonOutput) _chunkUTCGCES2js.printCompactJson.call(void 0, result);
15294
15343
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15295
15344
  return 0;
15296
15345
  }
@@ -15306,7 +15355,7 @@ function csvColumnLines(csvInput) {
15306
15355
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
15307
15356
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
15308
15357
  }),
15309
- _chunkNMU3VR5Ujs.CSV_HEADER_MATCHING_NOTE
15358
+ _chunkPMH4GLMDjs.CSV_HEADER_MATCHING_NOTE
15310
15359
  ];
15311
15360
  }
15312
15361
  function printPlayDescription(play) {
@@ -15338,7 +15387,7 @@ function printPlayDescription(play) {
15338
15387
  console.log(` ${line}`);
15339
15388
  }
15340
15389
  }
15341
- if (_optionalChain([play, 'access', _609 => _609.toolCategories, 'optionalAccess', _610 => _610.length])) {
15390
+ if (_optionalChain([play, 'access', _610 => _610.toolCategories, 'optionalAccess', _611 => _611.length])) {
15342
15391
  console.log(` Tool categories: ${play.toolCategories.join(", ")}`);
15343
15392
  }
15344
15393
  if (play.aliases.length > 0) {
@@ -15383,7 +15432,7 @@ function printPlayDescription(play) {
15383
15432
  const runtimeLimit = formatPlayRuntimeLimit(play.runtimeLimit);
15384
15433
  if (runtimeLimit) {
15385
15434
  console.log(
15386
- ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _611 => _611.runtimeLimit, 'optionalAccess', _612 => _612.source]), () => ( "live"))})`
15435
+ ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _612 => _612.runtimeLimit, 'optionalAccess', _613 => _613.source]), () => ( "live"))})`
15387
15436
  );
15388
15437
  }
15389
15438
  printScheduledPlayCapacity(play.activeScheduledPlays);
@@ -15411,17 +15460,17 @@ function formatPlayGrepMatches(matches) {
15411
15460
  return matches.map((match) => `${match.field}: ${match.terms.join(", ")}`).join("; ");
15412
15461
  }
15413
15462
  async function handlePlayGrep(args) {
15414
- const query = _optionalChain([args, 'access', _613 => _613[0], 'optionalAccess', _614 => _614.trim, 'call', _615 => _615()]);
15463
+ const query = _optionalChain([args, 'access', _614 => _614[0], 'optionalAccess', _615 => _615.trim, 'call', _616 => _616()]);
15415
15464
  if (!query) {
15416
15465
  console.error("Usage: deepline plays grep <query> [--json]");
15417
15466
  return 1;
15418
15467
  }
15419
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15468
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
15420
15469
  const results = (await client.listPlays({ grep: query })).map(
15421
15470
  summarizePlayGrepResult
15422
15471
  );
15423
- if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
15424
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, {
15472
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
15473
+ _chunkUTCGCES2js.printCompactJson.call(void 0, {
15425
15474
  plays: results,
15426
15475
  count: results.length,
15427
15476
  query,
@@ -15435,7 +15484,7 @@ async function handlePlayGrep(args) {
15435
15484
  `
15436
15485
  );
15437
15486
  for (const result of results) {
15438
- console.log(_optionalChain([result, 'access', _616 => _616.displayName, 'optionalAccess', _617 => _617.trim, 'call', _618 => _618()]) || result.name);
15487
+ console.log(_optionalChain([result, 'access', _617 => _617.displayName, 'optionalAccess', _618 => _618.trim, 'call', _619 => _619()]) || result.name);
15439
15488
  const matches = formatPlayGrepMatches(result.matches);
15440
15489
  if (matches) console.log(` Matched: ${matches}`);
15441
15490
  console.log(` Describe: ${result.describe}`);
@@ -15444,7 +15493,7 @@ async function handlePlayGrep(args) {
15444
15493
  return 0;
15445
15494
  }
15446
15495
  async function handlePlayDescribe(args) {
15447
- const selection = _chunkGTGJBZVHjs.parseJsonFields.call(void 0, args, "describe");
15496
+ const selection = _chunkUTCGCES2js.parseJsonFields.call(void 0, args, "describe");
15448
15497
  args = selection.args;
15449
15498
  const playName = args[0];
15450
15499
  if (!playName) {
@@ -15478,8 +15527,8 @@ async function handlePlayDescribe(args) {
15478
15527
  `deepline plays check ${playName}`,
15479
15528
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15480
15529
  ];
15481
- if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
15482
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, {
15530
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
15531
+ _chunkUTCGCES2js.printCompactJson.call(void 0, {
15483
15532
  ok: false,
15484
15533
  error: { message },
15485
15534
  next
@@ -15493,7 +15542,7 @@ async function handlePlayDescribe(args) {
15493
15542
  }
15494
15543
  return 2;
15495
15544
  }
15496
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15545
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
15497
15546
  await assertCanonicalNamedPlayReference(client, playName, {
15498
15547
  command: "describe"
15499
15548
  });
@@ -15503,9 +15552,9 @@ async function handlePlayDescribe(args) {
15503
15552
  compact: args.includes("--compact")
15504
15553
  }
15505
15554
  );
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);
15555
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
15556
+ if (selection.fields) _chunkUTCGCES2js.printJson.call(void 0, play, selection.fields);
15557
+ else _chunkUTCGCES2js.printCompactJson.call(void 0, play);
15509
15558
  return 0;
15510
15559
  }
15511
15560
  printPlayDescription(play);
@@ -15527,7 +15576,7 @@ async function handlePlaySave(args) {
15527
15576
  }
15528
15577
  let graph;
15529
15578
  try {
15530
- graph = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15579
+ graph = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
15531
15580
  "cli.play_save_bundle_graph",
15532
15581
  { targetKind: "file" },
15533
15582
  () => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
@@ -15549,7 +15598,7 @@ async function handlePlaySave(args) {
15549
15598
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15550
15599
  };
15551
15600
  if (options.jsonOutput) {
15552
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, result);
15601
+ _chunkUTCGCES2js.printCompactJson.call(void 0, result);
15553
15602
  } else {
15554
15603
  console.error(result.message);
15555
15604
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15571,7 +15620,7 @@ async function handlePlaySave(args) {
15571
15620
  };
15572
15621
  if (options.dryRun) {
15573
15622
  if (options.jsonOutput) {
15574
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, dryRun);
15623
+ _chunkUTCGCES2js.printCompactJson.call(void 0, dryRun);
15575
15624
  } else {
15576
15625
  console.log(`Dry run: ${playName}`);
15577
15626
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15580,14 +15629,14 @@ async function handlePlaySave(args) {
15580
15629
  }
15581
15630
  return 0;
15582
15631
  }
15583
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15632
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
15584
15633
  try {
15585
- await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15634
+ await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
15586
15635
  "cli.play_save_compile_manifests",
15587
15636
  { targetKind: "file", nodeCount: graph.nodes.size },
15588
15637
  () => compileBundledPlayGraphManifests(client, graph)
15589
15638
  );
15590
- const saved = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15639
+ const saved = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
15591
15640
  "cli.play_save_register_draft",
15592
15641
  { targetKind: "file", playName, artifactHash },
15593
15642
  () => client.registerPlayArtifact({
@@ -15616,7 +15665,7 @@ async function handlePlaySave(args) {
15616
15665
  }
15617
15666
  };
15618
15667
  if (options.jsonOutput) {
15619
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, result);
15668
+ _chunkUTCGCES2js.printCompactJson.call(void 0, result);
15620
15669
  } else {
15621
15670
  console.log(
15622
15671
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15642,7 +15691,7 @@ async function handlePlayPublish(args) {
15642
15691
  }
15643
15692
  const { target: playName, useLatest } = options;
15644
15693
  let revisionId = options.revisionId;
15645
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15694
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
15646
15695
  if (isFileTarget(playName)) {
15647
15696
  if (revisionId || useLatest) {
15648
15697
  console.error(
@@ -15652,7 +15701,7 @@ async function handlePlayPublish(args) {
15652
15701
  }
15653
15702
  let graph;
15654
15703
  try {
15655
- graph = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15704
+ graph = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
15656
15705
  "cli.play_publish_bundle_graph",
15657
15706
  { targetKind: "file" },
15658
15707
  () => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
@@ -15674,7 +15723,7 @@ async function handlePlayPublish(args) {
15674
15723
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15675
15724
  };
15676
15725
  if (options.jsonOutput) {
15677
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, result3);
15726
+ _chunkUTCGCES2js.printCompactJson.call(void 0, result3);
15678
15727
  } else {
15679
15728
  console.error(result3.message);
15680
15729
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15697,7 +15746,7 @@ async function handlePlayPublish(args) {
15697
15746
  };
15698
15747
  if (options.dryRun) {
15699
15748
  if (options.jsonOutput) {
15700
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, dryRun);
15749
+ _chunkUTCGCES2js.printCompactJson.call(void 0, dryRun);
15701
15750
  } else {
15702
15751
  console.log(`Dry run: ${rootPlayName}`);
15703
15752
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15716,12 +15765,12 @@ async function handlePlayPublish(args) {
15716
15765
  }
15717
15766
  }
15718
15767
  try {
15719
- await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15768
+ await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
15720
15769
  "cli.play_publish_compile_manifests",
15721
15770
  { targetKind: "file", nodeCount: graph.nodes.size },
15722
15771
  () => compileBundledPlayGraphManifests(client, graph)
15723
15772
  );
15724
- await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15773
+ await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
15725
15774
  "cli.play_publish_imports",
15726
15775
  { targetKind: "file", nodeCount: graph.nodes.size },
15727
15776
  () => publishImportedPlayDependencies(client, graph)
@@ -15730,7 +15779,7 @@ async function handlePlayPublish(args) {
15730
15779
  console.error(error instanceof Error ? error.message : String(error));
15731
15780
  return 1;
15732
15781
  }
15733
- const published = await _chunkANKD3AIRjs.traceCliSpan.call(void 0,
15782
+ const published = await _chunkWBY3R55Bjs.traceCliSpan.call(void 0,
15734
15783
  "cli.play_publish_register_root",
15735
15784
  {
15736
15785
  targetKind: "file",
@@ -15755,17 +15804,17 @@ async function handlePlayPublish(args) {
15755
15804
  artifactHash,
15756
15805
  liveVersion: _nullishCoalesce(published.version, () => ( null)),
15757
15806
  revisionId: _nullishCoalesce(published.revisionId, () => ( null)),
15758
- previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _619 => _619.version]), () => ( null)),
15759
- previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _620 => _620.artifactHash]), () => ( null)),
15807
+ previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _620 => _620.version]), () => ( null)),
15808
+ previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _621 => _621.artifactHash]), () => ( null)),
15760
15809
  sourceBytes: {
15761
- before: _optionalChain([previousLive, 'optionalAccess', _621 => _621.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15810
+ before: _optionalChain([previousLive, 'optionalAccess', _622 => _622.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15762
15811
  after: Buffer.byteLength(graph.root.sourceCode, "utf8")
15763
15812
  },
15764
15813
  triggerMetadata: _nullishCoalesce(published.triggerMetadata, () => ( null)),
15765
15814
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15766
15815
  };
15767
15816
  if (options.jsonOutput) {
15768
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, result2);
15817
+ _chunkUTCGCES2js.printCompactJson.call(void 0, result2);
15769
15818
  } else {
15770
15819
  printPublishReceipt({
15771
15820
  name: rootPlayName,
@@ -15796,14 +15845,14 @@ async function handlePlayPublish(args) {
15796
15845
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15797
15846
  latest: useLatest
15798
15847
  };
15799
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, result2);
15848
+ _chunkUTCGCES2js.printCompactJson.call(void 0, result2);
15800
15849
  return 0;
15801
15850
  }
15802
15851
  const resolvedName = parseReferencedPlayTarget(playName).playName;
15803
15852
  if (useLatest) {
15804
15853
  const versions = await client.listPlayVersions(resolvedName);
15805
15854
  const latest = versions[0];
15806
- if (!_optionalChain([latest, 'optionalAccess', _622 => _622._id])) {
15855
+ if (!_optionalChain([latest, 'optionalAccess', _623 => _623._id])) {
15807
15856
  console.error(`No saved revisions found for ${resolvedName}.`);
15808
15857
  return 1;
15809
15858
  }
@@ -15820,7 +15869,7 @@ async function handlePlayPublish(args) {
15820
15869
  revisionId ? { revisionId } : {}
15821
15870
  );
15822
15871
  if (options.jsonOutput) {
15823
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, result);
15872
+ _chunkUTCGCES2js.printCompactJson.call(void 0, result);
15824
15873
  } else {
15825
15874
  printPublishReceipt({
15826
15875
  name: result.name,
@@ -15860,7 +15909,7 @@ async function handlePlayDelete(args) {
15860
15909
  );
15861
15910
  return 2;
15862
15911
  }
15863
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15912
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
15864
15913
  let detail;
15865
15914
  try {
15866
15915
  detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
@@ -15884,8 +15933,8 @@ async function handlePlayDelete(args) {
15884
15933
  name: resolvedName,
15885
15934
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
15886
15935
  };
15887
- if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
15888
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, result2);
15936
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
15937
+ _chunkUTCGCES2js.printCompactJson.call(void 0, result2);
15889
15938
  } else {
15890
15939
  process.stdout.write(
15891
15940
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -15895,8 +15944,8 @@ async function handlePlayDelete(args) {
15895
15944
  return 0;
15896
15945
  }
15897
15946
  const result = await client.deletePlay(resolvedName);
15898
- if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
15899
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, result);
15947
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
15948
+ _chunkUTCGCES2js.printCompactJson.call(void 0, result);
15900
15949
  return result.archived || result.alreadyArchived ? 0 : 4;
15901
15950
  }
15902
15951
  if (result.alreadyArchived) {
@@ -15935,13 +15984,13 @@ async function handlePlayRestore(args) {
15935
15984
  );
15936
15985
  return 2;
15937
15986
  }
15938
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
15987
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
15939
15988
  try {
15940
15989
  const result = await client.restorePlay(
15941
15990
  parseReferencedPlayTarget(playName).playName
15942
15991
  );
15943
- if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
15944
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, result);
15992
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
15993
+ _chunkUTCGCES2js.printCompactJson.call(void 0, result);
15945
15994
  return result.restored || result.alreadyActive ? 0 : 4;
15946
15995
  }
15947
15996
  if (result.alreadyActive) {
@@ -16068,21 +16117,21 @@ Common commands:
16068
16117
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16069
16118
  }
16070
16119
  };
16071
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, result2, {
16120
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0, result2, {
16072
16121
  json: options.json,
16073
16122
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16074
16123
  `
16075
16124
  });
16076
16125
  return;
16077
16126
  }
16078
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
16127
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
16079
16128
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16080
16129
  throw new Error(
16081
16130
  "The submission belongs to a different API origin. Select its original host before recovery."
16082
16131
  );
16083
16132
  }
16084
16133
  const result = await client.startPlayRun(saved.request);
16085
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
16134
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
16086
16135
  { ...result },
16087
16136
  {
16088
16137
  json: options.json,
@@ -16118,7 +16167,7 @@ Examples:
16118
16167
  ).action(async (target, options) => {
16119
16168
  process.exitCode = await handlePlayCheck([
16120
16169
  target,
16121
- ..._chunkGTGJBZVHjs.jsonFieldArgs.call(void 0, options.json),
16170
+ ..._chunkUTCGCES2js.jsonFieldArgs.call(void 0, options.json),
16122
16171
  ...options.full ? ["--full"] : []
16123
16172
  ]);
16124
16173
  });
@@ -16165,10 +16214,10 @@ Notes:
16165
16214
  with a changed input is refused with a 409 conflict. Use one stable key per
16166
16215
  exact intent. Without a key, each invocation starts a new run.
16167
16216
  --max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
16168
- resident-work ceiling. Default: ${_chunkATATJNJ6js.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkATATJNJ6js.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16217
+ resident-work ceiling. Default: ${_chunk46HEYGLYjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunk46HEYGLYjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16169
16218
  Provider pacing and sandbox memory limits still apply.
16170
16219
  --max-concurrent-rows sets the run-wide default and ceiling for live map row
16171
- resolvers. Accepted range: 1-${_chunkATATJNJ6js.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16220
+ resolvers. Accepted range: 1-${_chunk46HEYGLYjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16172
16221
  may lower it when source-row size exceeds the active-row memory budget.
16173
16222
  --max-credits replaces the play's billing.maxCreditsPerRun for this run.
16174
16223
  Tool calls that would exceed it are denied.
@@ -16293,10 +16342,10 @@ Examples:
16293
16342
  ).hideHelp()
16294
16343
  ).option(
16295
16344
  "--max-concurrent-external-calls <count>",
16296
- `Concurrent provider-tool and deepline.fetch executions (${_chunkATATJNJ6js.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkATATJNJ6js.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16345
+ `Concurrent provider-tool and deepline.fetch executions (${_chunk46HEYGLYjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunk46HEYGLYjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16297
16346
  ).option(
16298
16347
  "--max-concurrent-rows <count>",
16299
- `Run-wide dataset map row resolver ceiling (max ${_chunkATATJNJ6js.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16348
+ `Run-wide dataset map row resolver ceiling (max ${_chunk46HEYGLYjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16300
16349
  ).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
16301
16350
  "--debug-map-latency",
16302
16351
  "Internal diagnostics: emit one aggregate latency profile per dataset map"
@@ -16347,7 +16396,7 @@ JSON field selection:
16347
16396
  }
16348
16397
  }
16349
16398
  async function runPlayFromRun(target, options, command) {
16350
- const runId = _optionalChain([options, 'access', _623 => _623.fromRun, 'optionalAccess', _624 => _624.trim, 'call', _625 => _625()]);
16399
+ const runId = _optionalChain([options, 'access', _624 => _624.fromRun, 'optionalAccess', _625 => _625.trim, 'call', _626 => _626()]);
16351
16400
  if (!runId || runId.startsWith("--")) {
16352
16401
  console.error("--from-run requires a run id.");
16353
16402
  return 1;
@@ -16391,14 +16440,14 @@ JSON field selection:
16391
16440
  passthroughArgs.shift();
16392
16441
  }
16393
16442
  const exitCode = await handlePlayRun(
16394
- _chunkATATJNJ6js.resolvePlayRunCliOptions.call(void 0,
16443
+ _chunk46HEYGLYjs.resolvePlayRunCliOptions.call(void 0,
16395
16444
  _nullishCoalesce(effectiveTarget, () => ( void 0)),
16396
16445
  options,
16397
16446
  passthroughArgs,
16398
- _chunkANKD3AIRjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16447
+ _chunkWBY3R55Bjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16399
16448
  )
16400
16449
  );
16401
- _chunkANKD3AIRjs.recordCliTrace.call(void 0, {
16450
+ _chunkWBY3R55Bjs.recordCliTrace.call(void 0, {
16402
16451
  phase: "cli.play_command_exit",
16403
16452
  exitCode
16404
16453
  });
@@ -16447,9 +16496,9 @@ Examples:
16447
16496
  const limit = Number(options.historyLimit);
16448
16497
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16449
16498
  throw new Error("--history-limit must be an integer from 1 to 30.");
16450
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
16499
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
16451
16500
  if (options.binding) {
16452
- _chunkGTGJBZVHjs.printCompactJson.call(void 0,
16501
+ _chunkUTCGCES2js.printCompactJson.call(void 0,
16453
16502
  await client.getPlayTriggerHistory(options.binding, { limit })
16454
16503
  );
16455
16504
  return;
@@ -16457,7 +16506,7 @@ Examples:
16457
16506
  const result = await client.listPlayTriggerInventory({
16458
16507
  cursor: options.cursor
16459
16508
  });
16460
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, {
16509
+ _chunkUTCGCES2js.printCompactJson.call(void 0, {
16461
16510
  ...result,
16462
16511
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16463
16512
  });
@@ -16516,7 +16565,7 @@ Examples:
16516
16565
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16517
16566
  throw new Error("--group-by must be kind or trigger_source.");
16518
16567
  }
16519
- const result = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().getPlaysActivity({
16568
+ const result = await new (0, _chunkRZJWHL7Ljs.DeeplineClient)().getPlaysActivity({
16520
16569
  timeZone: options.timeZone,
16521
16570
  days,
16522
16571
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16530,7 +16579,7 @@ Examples:
16530
16579
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16531
16580
  );
16532
16581
  }
16533
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0,
16582
+ _chunkUTCGCES2js.printCommandEnvelope.call(void 0,
16534
16583
  { ...result },
16535
16584
  {
16536
16585
  json: Boolean(options.json),
@@ -16559,7 +16608,7 @@ Examples:
16559
16608
  false
16560
16609
  );
16561
16610
  });
16562
- _chunk7QM6DNR4js.registerDeprecatedSearchCommand.call(void 0,
16611
+ _chunkBYEF4RBXjs.registerDeprecatedSearchCommand.call(void 0,
16563
16612
  play,
16564
16613
  (options) => options.all ? ["plays"] : ["prebuilts"]
16565
16614
  );
@@ -16600,9 +16649,9 @@ Examples:
16600
16649
  "--json [fields]",
16601
16650
  "JSON output; optionally select comma-separated dotted paths"
16602
16651
  );
16603
- _chunkYXVYPYIPjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16652
+ _chunkCYN2AHR6js.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16604
16653
  async (target, options) => {
16605
- const ownView = () => handlePlayDescribe(_chunkGTGJBZVHjs.describeArgs.call(void 0, target, options));
16654
+ const ownView = () => handlePlayDescribe(_chunkUTCGCES2js.describeArgs.call(void 0, target, options));
16606
16655
  const [flagText] = [options.json].filter(
16607
16656
  (value) => typeof value === "string"
16608
16657
  );
@@ -16613,7 +16662,7 @@ Examples:
16613
16662
  process.exitCode = await ownView();
16614
16663
  return;
16615
16664
  }
16616
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-5G5NXO5E.js")));
16665
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-KMYR2JBC.js")));
16617
16666
  process.exitCode = await describeAnything(
16618
16667
  name,
16619
16668
  {
@@ -16731,7 +16780,7 @@ Examples:
16731
16780
  deepline plays deployments <deployment-id>
16732
16781
  `
16733
16782
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16734
- async (id, options) => id ? _chunkWOEPDSO3js.handleDeploymentGet.call(void 0, id, options) : _chunkWOEPDSO3js.handleDeploymentsList.call(void 0, options)
16783
+ async (id, options) => id ? _chunk3ZEV5BS5js.handleDeploymentGet.call(void 0, id, options) : _chunk3ZEV5BS5js.handleDeploymentsList.call(void 0, options)
16735
16784
  );
16736
16785
  addPublishHelp(
16737
16786
  play.command("publish <target>").description(
@@ -16866,14 +16915,14 @@ Examples:
16866
16915
  const limit = Number(options.limit);
16867
16916
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
16868
16917
  throw new Error("--limit must be an integer from 1 to 1000.");
16869
- const result = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().runs.rowHistory({
16918
+ const result = await new (0, _chunkRZJWHL7Ljs.DeeplineClient)().runs.rowHistory({
16870
16919
  playName: options.play,
16871
16920
  runId,
16872
16921
  tableNamespace: options.dataset,
16873
16922
  limit,
16874
16923
  cursor: options.cursor
16875
16924
  });
16876
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, {
16925
+ _chunkUTCGCES2js.printCompactJson.call(void 0, {
16877
16926
  ...result,
16878
16927
  ...result.nextCursor ? {
16879
16928
  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`
@@ -16951,7 +17000,7 @@ Examples:
16951
17000
  new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
16952
17001
  ).action(async (runId, options) => {
16953
17002
  if (TOOL_EXECUTION_ID.test(runId)) {
16954
- const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-RZJV4X3J.js")));
17003
+ const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-B735AA67.js")));
16955
17004
  process.exitCode = await getToolExecutionReceipt(runId, {
16956
17005
  receiptJson: options.json !== void 0
16957
17006
  });
@@ -16959,7 +17008,7 @@ Examples:
16959
17008
  }
16960
17009
  process.exitCode = await handleRunGet([
16961
17010
  runId,
16962
- ..._chunkGTGJBZVHjs.jsonFieldArgs.call(void 0, options.json),
17011
+ ..._chunkUTCGCES2js.jsonFieldArgs.call(void 0, options.json),
16963
17012
  ...options.web ? ["--web"] : [],
16964
17013
  ...options.webUrl ? ["--web-url"] : [],
16965
17014
  ...options.full ? ["--full"] : [],
@@ -17279,7 +17328,7 @@ Examples:
17279
17328
  ...options.allowEmpty ? ["--allow-empty"] : [],
17280
17329
  ...options.wait ? ["--wait"] : [],
17281
17330
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17282
- ..._chunkGTGJBZVHjs.jsonFieldArgs.call(void 0, options.json)
17331
+ ..._chunkUTCGCES2js.jsonFieldArgs.call(void 0, options.json)
17283
17332
  ]);
17284
17333
  });
17285
17334
  const share = play.command("share").description(
@@ -17420,8 +17469,8 @@ function absolutePublicPlayUrl(path) {
17420
17469
  }
17421
17470
  function shareUrlFields(status) {
17422
17471
  return {
17423
- publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _626 => _626.share, 'optionalAccess', _627 => _627.publicPath])),
17424
- canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _628 => _628.share, 'optionalAccess', _629 => _629.canonicalPath]))
17472
+ publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _627 => _627.share, 'optionalAccess', _628 => _628.publicPath])),
17473
+ canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _629 => _629.share, 'optionalAccess', _630 => _630.canonicalPath]))
17425
17474
  };
17426
17475
  }
17427
17476
  function shareStatusForOutput(status) {
@@ -17445,10 +17494,10 @@ async function handlePlayShareStatus(args) {
17445
17494
  return 2;
17446
17495
  }
17447
17496
  const name = parseReferencedPlayTarget(target).playName;
17448
- const status = await new (0, _chunkLRWDZDBSjs.DeeplineClient)().getSharePage(name);
17497
+ const status = await new (0, _chunkRZJWHL7Ljs.DeeplineClient)().getSharePage(name);
17449
17498
  const outputStatus = shareStatusForOutput(status);
17450
- if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
17451
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, outputStatus);
17499
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
17500
+ _chunkUTCGCES2js.printCompactJson.call(void 0, outputStatus);
17452
17501
  return 0;
17453
17502
  }
17454
17503
  if (!outputStatus.share) {
@@ -17487,7 +17536,7 @@ async function handlePlaySharePublish(args) {
17487
17536
  return 2;
17488
17537
  }
17489
17538
  const name = parseReferencedPlayTarget(target).playName;
17490
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
17539
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
17491
17540
  let revisionId = shareFlagValue(args, "--revision-id");
17492
17541
  let resolvedVersion;
17493
17542
  if (!revisionId) {
@@ -17518,8 +17567,8 @@ async function handlePlaySharePublish(args) {
17518
17567
  );
17519
17568
  if (!hasCompleted) {
17520
17569
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17521
- if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
17522
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, {
17570
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
17571
+ _chunkUTCGCES2js.printCompactJson.call(void 0, {
17523
17572
  ok: false,
17524
17573
  code: "NO_SUCCESSFUL_RUN",
17525
17574
  message,
@@ -17543,8 +17592,8 @@ async function handlePlaySharePublish(args) {
17543
17592
  };
17544
17593
  if (args.includes("--dry-run")) {
17545
17594
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17546
- if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
17547
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, plan);
17595
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
17596
+ _chunkUTCGCES2js.printCompactJson.call(void 0, plan);
17548
17597
  } else {
17549
17598
  console.log(
17550
17599
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17554,13 +17603,13 @@ async function handlePlaySharePublish(args) {
17554
17603
  }
17555
17604
  const status = await client.publishSharePage(name, request);
17556
17605
  const outputStatus = shareStatusForOutput(status);
17557
- if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
17558
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, outputStatus);
17606
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
17607
+ _chunkUTCGCES2js.printCompactJson.call(void 0, outputStatus);
17559
17608
  return 0;
17560
17609
  }
17561
17610
  const urls = shareUrlFields(outputStatus);
17562
17611
  console.log(
17563
- `Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _630 => _630.share, 'optionalAccess', _631 => _631.publicPath]))), () => ( ""))}`
17612
+ `Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _631 => _631.share, 'optionalAccess', _632 => _632.publicPath]))), () => ( ""))}`
17564
17613
  );
17565
17614
  if (urls.canonicalUrl && urls.canonicalUrl !== urls.publicUrl) {
17566
17615
  console.log(`Version URL: ${urls.canonicalUrl}`);
@@ -17586,9 +17635,9 @@ async function handlePlayShareUpdate(args) {
17586
17635
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17587
17636
  ...seoIndexing ? { seoIndexing } : {}
17588
17637
  };
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);
17638
+ const status = await new (0, _chunkRZJWHL7Ljs.DeeplineClient)().updateSharePage(name, request);
17639
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
17640
+ _chunkUTCGCES2js.printCompactJson.call(void 0, status);
17592
17641
  return 0;
17593
17642
  }
17594
17643
  console.log(`Updated ${name} share settings.`);
@@ -17603,13 +17652,13 @@ async function handlePlayShareRegenerate(args) {
17603
17652
  return 2;
17604
17653
  }
17605
17654
  const name = parseReferencedPlayTarget(target).playName;
17606
- const client = new (0, _chunkLRWDZDBSjs.DeeplineClient)();
17655
+ const client = new (0, _chunkRZJWHL7Ljs.DeeplineClient)();
17607
17656
  let revisionId = shareFlagValue(args, "--revision-id");
17608
17657
  const versionFlag = shareFlagValue(args, "--version");
17609
17658
  if (!revisionId && versionFlag) {
17610
17659
  const versions = await client.listPlayVersions(name);
17611
17660
  const chosen = versions.find((r) => r.version === Number(versionFlag));
17612
- if (!_optionalChain([chosen, 'optionalAccess', _632 => _632._id])) {
17661
+ if (!_optionalChain([chosen, 'optionalAccess', _633 => _633._id])) {
17613
17662
  console.error(`Version ${versionFlag} not found for ${name}.`);
17614
17663
  return 4;
17615
17664
  }
@@ -17620,12 +17669,12 @@ async function handlePlayShareRegenerate(args) {
17620
17669
  revisionId ? { revisionId } : {}
17621
17670
  );
17622
17671
  const outputStatus = shareStatusForOutput(status);
17623
- if (_chunkGTGJBZVHjs.argsWantJson.call(void 0, args)) {
17624
- _chunkGTGJBZVHjs.printCompactJson.call(void 0, outputStatus);
17672
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
17673
+ _chunkUTCGCES2js.printCompactJson.call(void 0, outputStatus);
17625
17674
  return 0;
17626
17675
  }
17627
17676
  const urls = shareUrlFields(outputStatus);
17628
- const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _633 => _633.share, 'optionalAccess', _634 => _634.publishedRevisionId]) === revisionId;
17677
+ const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _634 => _634.share, 'optionalAccess', _635 => _635.publishedRevisionId]) === revisionId;
17629
17678
  console.log(
17630
17679
  `Regenerated public copy for ${name}${regeneratedPublishedRevision && urls.publicUrl ? `: ${urls.publicUrl}` : "."}`
17631
17680
  );
@@ -17646,9 +17695,9 @@ async function handlePlayShareUnpublish(args) {
17646
17695
  return 2;
17647
17696
  }
17648
17697
  const name = parseReferencedPlayTarget(target).playName;
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);
17698
+ const status = await new (0, _chunkRZJWHL7Ljs.DeeplineClient)().unpublishSharePage(name);
17699
+ if (_chunkUTCGCES2js.argsWantJson.call(void 0, args)) {
17700
+ _chunkUTCGCES2js.printCompactJson.call(void 0, status);
17652
17701
  return 0;
17653
17702
  }
17654
17703
  console.log(`Unpublished ${name}; the public page has been removed.`);
@@ -17726,4 +17775,4 @@ async function handlePlayShareUnpublish(args) {
17726
17775
 
17727
17776
 
17728
17777
 
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;
17778
+ 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 = _chunk46HEYGLYjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunk46HEYGLYjs.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;