deepline 0.3.491 → 0.3.493

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 (184) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +11 -5
  2. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +6 -0
  5. package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +25 -9
  6. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  7. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  8. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +54 -0
  9. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +5 -4
  10. package/dist/bundling-sources/shared_libs/play-runtime/crustdata-company-identify-batching.ts +162 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +19 -3
  12. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +5 -3
  13. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/receipt-sql.ts +17 -23
  15. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +28 -1
  16. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +293 -110
  17. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +75 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +20 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +412 -59
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +38 -10
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +19 -11
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +165 -12
  23. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
  24. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +104 -2
  25. package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +7 -2
  26. package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +4 -0
  27. package/dist/bundling-sources/shared_libs/product-notifications/content.ts +13 -0
  28. package/dist/bundling-sources/shared_libs/product-notifications/email.ts +49 -10
  29. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +22 -0
  30. package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +6 -1
  31. package/dist/cli/{auth-FXAC472Y.mjs → auth-3NAY3AST.mjs} +5 -5
  32. package/dist/cli/auth-KYQLDI6V.js +43 -0
  33. package/dist/cli/{billing-PDOA3KZ3.js → billing-FSB4BBBO.js} +80 -80
  34. package/dist/cli/{billing-UM4LE33K.mjs → billing-SBWQCC7B.mjs} +7 -7
  35. package/dist/cli/{chunk-HSJK6EMU.mjs → chunk-2BRTYIAH.mjs} +23 -9
  36. package/dist/cli/{chunk-B2TXKEED.js → chunk-2H4OFVR5.js} +5 -5
  37. package/dist/cli/{chunk-BCKIBVEJ.js → chunk-2I7VN65H.js} +10 -10
  38. package/dist/cli/{chunk-LMG7O6XJ.mjs → chunk-2IHGVAGT.mjs} +2 -2
  39. package/dist/cli/{chunk-5KMGKG4B.js → chunk-2NGIBJM2.js} +8 -8
  40. package/dist/cli/{chunk-2MW6TGNZ.mjs → chunk-3QGUWB6E.mjs} +4 -4
  41. package/dist/cli/{chunk-ORKLMANE.mjs → chunk-4IJFQV3O.mjs} +1 -1
  42. package/dist/cli/{chunk-PIPEPCRL.mjs → chunk-4NIGNT7X.mjs} +1 -1
  43. package/dist/cli/{chunk-H6UIS36S.mjs → chunk-5DIZ2G74.mjs} +2 -2
  44. package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
  45. package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-5WOPBX3H.mjs} +1 -1
  46. package/dist/cli/{chunk-KGJVDR4Q.mjs → chunk-67ZG7XZV.mjs} +3 -3
  47. package/dist/cli/{chunk-DUFRH43S.js → chunk-7HABWOMB.js} +261 -261
  48. package/dist/cli/{chunk-MN6DCV63.js → chunk-AGTXL6LZ.js} +5 -5
  49. package/dist/cli/{chunk-Q7G7CU4W.js → chunk-AWMCZAUR.js} +3 -3
  50. package/dist/cli/{chunk-HHTVRICE.js → chunk-C2MRDPA5.js} +17 -17
  51. package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
  52. package/dist/cli/{chunk-O3K22ZC7.js → chunk-DWJ4RXSA.js} +34 -11
  53. package/dist/cli/{chunk-MAM6ZOVS.mjs → chunk-DYP27IWC.mjs} +99 -24
  54. package/dist/cli/{chunk-NUOKAKZW.mjs → chunk-E5ILCMKQ.mjs} +1 -1
  55. package/dist/cli/{chunk-OLHWZM4A.mjs → chunk-EBAS3UT2.mjs} +6 -6
  56. package/dist/cli/{chunk-74H5OTRM.js → chunk-EFO5GVYS.js} +1 -1
  57. package/dist/cli/{chunk-X7YOVJBC.js → chunk-EYG336YV.js} +132 -57
  58. package/dist/cli/{chunk-YV4DP6KQ.mjs → chunk-GSC35TPZ.mjs} +2 -2
  59. package/dist/cli/{chunk-EPD7NSDJ.mjs → chunk-HLM2UFQ5.mjs} +13 -5
  60. package/dist/cli/{chunk-IG3GSBBE.js → chunk-HTUSTPP4.js} +32 -32
  61. package/dist/cli/{chunk-CFPFTS3A.mjs → chunk-IJJ6D5WL.mjs} +12 -12
  62. package/dist/cli/{chunk-TH7JLR5D.js → chunk-IJOHWGPF.js} +6 -6
  63. package/dist/cli/{chunk-RFSXXDH7.js → chunk-IOBPR2VO.js} +17 -17
  64. package/dist/cli/{chunk-HNG2U3IG.js → chunk-IOMEJKGK.js} +2 -2
  65. package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-IRDYBMA7.mjs} +34 -11
  66. package/dist/cli/{chunk-ZEZ3CZ3X.js → chunk-JO2JZUBR.js} +3 -3
  67. package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
  68. package/dist/cli/{chunk-SJOHQ2WW.js → chunk-KCDZWS2B.js} +56 -56
  69. package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-KGDDQMI7.mjs} +2 -2
  70. package/dist/cli/{chunk-OYJTLEB4.mjs → chunk-KKSKYZO4.mjs} +1 -1
  71. package/dist/cli/{chunk-TMAS3WH3.js → chunk-LGTZYI5B.js} +21 -21
  72. package/dist/cli/{chunk-SUMKWA53.js → chunk-MLEUOTEQ.js} +73 -59
  73. package/dist/cli/{chunk-3WRWPNHE.mjs → chunk-NALJJTPS.mjs} +5 -5
  74. package/dist/cli/{chunk-27MRSV6O.js → chunk-NPNAEPY4.js} +26 -26
  75. package/dist/cli/{chunk-AEKJZJ4R.js → chunk-NWIDPT7H.js} +4 -4
  76. package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
  77. package/dist/cli/{chunk-3FMU6F6E.js → chunk-QTPS5RLG.js} +15 -15
  78. package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
  79. package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
  80. package/dist/cli/{chunk-S4CYM4EC.mjs → chunk-SXD2EYAH.mjs} +6 -6
  81. package/dist/cli/{chunk-YNWET57Z.js → chunk-TIFRRLZT.js} +7 -7
  82. package/dist/cli/{chunk-6PMM7VJN.mjs → chunk-TNQOR6XQ.mjs} +1 -1
  83. package/dist/cli/{chunk-6UARNRXT.js → chunk-UCMY2SO2.js} +23 -15
  84. package/dist/cli/{chunk-X75ONMDJ.mjs → chunk-VFHIYWMC.mjs} +5 -5
  85. package/dist/cli/{chunk-ZX2FXZJN.js → chunk-WCZFCOMZ.js} +7 -7
  86. package/dist/cli/{chunk-IIO7UOVW.mjs → chunk-WTFI7BVH.mjs} +3 -3
  87. package/dist/cli/{chunk-I64PYCTB.js → chunk-XLE7KXE7.js} +2 -2
  88. package/dist/cli/{chunk-CRBBGKRH.js → chunk-XQX476QK.js} +14 -14
  89. package/dist/cli/{chunk-WCWVXN3R.mjs → chunk-Y3NN2UAF.mjs} +2 -2
  90. package/dist/cli/{chunk-3K4IAV7I.mjs → chunk-ZQH4TXM2.mjs} +2 -2
  91. package/dist/cli/{chunk-VC3SH4QW.mjs → chunk-ZVW7EWTC.mjs} +7 -7
  92. package/dist/cli/{chunk-QBOE5LEH.mjs → chunk-ZVXB7OU7.mjs} +1 -1
  93. package/dist/cli/command-docs.js +2 -2
  94. package/dist/cli/command-docs.mjs +1 -1
  95. package/dist/cli/{csv-IGPAPAES.js → csv-DKYZE2KM.js} +13 -13
  96. package/dist/cli/{csv-RNMQHECI.mjs → csv-XR22YQXT.mjs} +4 -4
  97. package/dist/cli/{db-CKMVVGXJ.mjs → db-EOKG36YN.mjs} +7 -7
  98. package/dist/cli/{db-32OXM3TO.js → db-RNYRTCMV.js} +28 -28
  99. package/dist/cli/describe-ICFXOQBW.mjs +50 -0
  100. package/dist/cli/describe-RS75I33X.js +50 -0
  101. package/dist/cli/describe-core.d.mts +2 -2
  102. package/dist/cli/describe-core.d.ts +2 -2
  103. package/dist/cli/describe-core.js +4 -4
  104. package/dist/cli/describe-core.mjs +3 -3
  105. package/dist/cli/{executions-S4M4JMCU.mjs → executions-3RAOACNS.mjs} +7 -7
  106. package/dist/cli/{executions-PCZS7B2M.js → executions-OBWPSWH7.js} +9 -9
  107. package/dist/cli/{feedback-FGUJVCBS.mjs → feedback-6EQRVBKF.mjs} +4 -4
  108. package/dist/cli/{feedback-6EGKPZ3U.js → feedback-6GPEUBLF.js} +8 -8
  109. package/dist/cli/getting-started.d.mts +12 -10
  110. package/dist/cli/getting-started.d.ts +12 -10
  111. package/dist/cli/getting-started.js +4 -2
  112. package/dist/cli/getting-started.mjs +3 -1
  113. package/dist/cli/{git-LR4ARG5H.mjs → git-CVQ24DTR.mjs} +5 -5
  114. package/dist/cli/git-DEFE4SSB.js +25 -0
  115. package/dist/cli/index.js +143 -143
  116. package/dist/cli/index.mjs +43 -43
  117. package/dist/cli/{legacy-noops-S37PJ7OJ.mjs → legacy-noops-QULJZYNH.mjs} +5 -5
  118. package/dist/cli/{legacy-noops-VX4JEQR6.js → legacy-noops-XPOATG5V.js} +8 -8
  119. package/dist/cli/{monitors-H3AX6CZG.mjs → monitors-AFT5YJPZ.mjs} +49 -9
  120. package/dist/cli/{monitors-ADASJI72.js → monitors-OJ4CMREE.js} +169 -129
  121. package/dist/cli/{org-ZRJ3C56J.js → org-RKT52CSL.js} +73 -73
  122. package/dist/cli/{org-D3F5LUDW.mjs → org-WHKNXANG.mjs} +7 -7
  123. package/dist/cli/{pages-PSHU366M.mjs → pages-EEAQFGVD.mjs} +7 -7
  124. package/dist/cli/{pages-5TKO3644.js → pages-SOE3R667.js} +18 -18
  125. package/dist/cli/{play-AUDDK7XB.mjs → play-LXFWHUBP.mjs} +147 -52
  126. package/dist/cli/{play-VDAETQDI.js → play-OTJJ4E4T.js} +661 -566
  127. package/dist/cli/{providers-IURPWRWD.js → providers-RU4HIAT3.js} +10 -10
  128. package/dist/cli/{providers-X7YMZSKQ.mjs → providers-U3CPKTMM.mjs} +7 -7
  129. package/dist/cli/{quickstart-6AGWVFNX.mjs → quickstart-75AO2AJC.mjs} +5 -5
  130. package/dist/cli/{quickstart-Y6GFXLDV.js → quickstart-N72IVA2Y.js} +13 -13
  131. package/dist/cli/{run-TG7J45NS.mjs → run-IGWFL6WH.mjs} +29 -28
  132. package/dist/cli/{run-TQFGOXNT.js → run-MMYES3IW.js} +44 -43
  133. package/dist/cli/search-EQURI7SZ.js +32 -0
  134. package/dist/cli/{search-3G4J2GC6.mjs → search-FIYESBLZ.mjs} +8 -8
  135. package/dist/cli/{search-output-NPZICK5C.js → search-output-2FXN4ZWD.js} +9 -6
  136. package/dist/cli/{search-output-ZGNHDCLL.mjs → search-output-3I5KSW36.mjs} +7 -4
  137. package/dist/cli/{secrets-KTTHT4ZG.js → secrets-HCZQ6JNP.js} +16 -16
  138. package/dist/cli/{secrets-EAWJBRUD.mjs → secrets-O7IUQ3VT.mjs} +7 -7
  139. package/dist/cli/{sessions-S4YVBPAW.js → sessions-5AYTT4IW.js} +6 -6
  140. package/dist/cli/{sessions-D4Q3LCEQ.mjs → sessions-KY7A3EZO.mjs} +5 -5
  141. package/dist/cli/{settings-BAK3VOWW.js → settings-P4VFYWJK.js} +80 -80
  142. package/dist/cli/{settings-JUORW6NL.mjs → settings-WSMRR2GS.mjs} +13 -13
  143. package/dist/cli/{setup-NJPHTW32.js → setup-J7CA3EJL.js} +57 -57
  144. package/dist/cli/{setup-AXFGCXJE.mjs → setup-YTVKVQC7.mjs} +13 -13
  145. package/dist/cli/skills-KKPEGLAR.js +36 -0
  146. package/dist/cli/{skills-SKJVDJEF.mjs → skills-W5WY764N.mjs} +10 -10
  147. package/dist/cli/tools-65Y4QTW6.js +57 -0
  148. package/dist/cli/{tools-63THJVJZ.mjs → tools-YECI6N3N.mjs} +20 -20
  149. package/dist/cli/{update-KSID5F74.mjs → update-BIFBIEII.mjs} +10 -10
  150. package/dist/cli/update-WDG7VFOW.js +34 -0
  151. package/dist/cli/{workflow-BLSMWBKW.js → workflow-D2TUFFH6.js} +18 -18
  152. package/dist/cli/{workflow-C4B54X2Z.mjs → workflow-XZVDNARC.mjs} +8 -8
  153. package/dist/{client-CQgGFxAH.d.ts → client-BDB_VbE4.d.ts} +1 -1
  154. package/dist/{client-B4R1scm2.d.mts → client-CNzJ1LTF.d.mts} +1 -1
  155. package/dist/{client-core-DMvHWjub.d.mts → client-core-CSv3DlPD.d.mts} +76 -5
  156. package/dist/{client-core-BUNjKBKq.d.ts → client-core-xEa9x3pl.d.ts} +76 -5
  157. package/dist/index.d.mts +3 -3
  158. package/dist/index.d.ts +3 -3
  159. package/dist/index.js +10 -10
  160. package/dist/index.mjs +7 -7
  161. package/dist/install-integrity.json +115 -114
  162. package/dist/plays/play-description.d.mts +1 -1
  163. package/dist/plays/play-description.d.ts +1 -1
  164. package/dist/plays/run-request.d.mts +1 -1
  165. package/dist/plays/run-request.d.ts +1 -1
  166. package/dist/plays/run-request.js +2 -2
  167. package/dist/plays/run-request.mjs +1 -1
  168. package/dist/release.d.mts +1 -1
  169. package/dist/release.d.ts +1 -1
  170. package/dist/release.js +2 -2
  171. package/dist/release.mjs +1 -1
  172. package/dist/server.d.mts +2 -2
  173. package/dist/server.d.ts +2 -2
  174. package/dist/server.js +6 -6
  175. package/dist/server.mjs +4 -4
  176. package/package.json +1 -1
  177. package/dist/cli/auth-QIDL3YCW.js +0 -43
  178. package/dist/cli/describe-67GMIEIO.js +0 -50
  179. package/dist/cli/describe-QR7I3VOF.mjs +0 -50
  180. package/dist/cli/git-PIH5Z5LN.js +0 -25
  181. package/dist/cli/search-VC43NUY7.js +0 -32
  182. package/dist/cli/skills-4NQZISNK.js +0 -36
  183. package/dist/cli/tools-BAHK33FQ.js +0 -57
  184. package/dist/cli/update-EMIGRGJ7.js +0 -34
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkCRBBGKRHjs = require('./chunk-CRBBGKRH.js');
8
+ var _chunkXQX476QKjs = require('./chunk-XQX476QK.js');
9
9
 
10
10
 
11
11
 
@@ -17,18 +17,19 @@ var _chunkCRBBGKRHjs = require('./chunk-CRBBGKRH.js');
17
17
 
18
18
 
19
19
 
20
- var _chunk6UARNRXTjs = require('./chunk-6UARNRXT.js');
20
+ var _chunkUCMY2SO2js = require('./chunk-UCMY2SO2.js');
21
21
 
22
22
 
23
- var _chunkZX2FXZJNjs = require('./chunk-ZX2FXZJN.js');
23
+ var _chunkWCZFCOMZjs = require('./chunk-WCZFCOMZ.js');
24
24
  require('./chunk-D3BCSAN7.js');
25
25
 
26
26
 
27
27
 
28
- var _chunk27MRSV6Ojs = require('./chunk-27MRSV6O.js');
28
+ var _chunkNPNAEPY4js = require('./chunk-NPNAEPY4.js');
29
29
 
30
30
 
31
- var _chunk4IP5MLWUjs = require('./chunk-4IP5MLWU.js');
31
+
32
+ var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
32
33
 
33
34
 
34
35
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
@@ -57,10 +58,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
57
58
 
58
59
 
59
60
 
60
- var _chunkMN6DCV63js = require('./chunk-MN6DCV63.js');
61
+ var _chunkAGTXL6LZjs = require('./chunk-AGTXL6LZ.js');
61
62
 
62
63
 
63
- var _chunkB2TXKEEDjs = require('./chunk-B2TXKEED.js');
64
+ var _chunk2H4OFVR5js = require('./chunk-2H4OFVR5.js');
64
65
 
65
66
 
66
67
 
@@ -73,7 +74,7 @@ var _chunkB2TXKEEDjs = require('./chunk-B2TXKEED.js');
73
74
 
74
75
 
75
76
 
76
- var _chunkIG3GSBBEjs = require('./chunk-IG3GSBBE.js');
77
+ var _chunkHTUSTPP4js = require('./chunk-HTUSTPP4.js');
77
78
  require('./chunk-E4CABWXL.js');
78
79
 
79
80
 
@@ -86,7 +87,7 @@ require('./chunk-E4CABWXL.js');
86
87
 
87
88
 
88
89
 
89
- var _chunkAUQQVDABjs = require('./chunk-AUQQVDAB.js');
90
+ var _chunkPKV5CD3Wjs = require('./chunk-PKV5CD3W.js');
90
91
 
91
92
 
92
93
 
@@ -95,18 +96,18 @@ require('./chunk-XDVT3GOM.js');
95
96
 
96
97
 
97
98
 
98
- var _chunkTH7JLR5Djs = require('./chunk-TH7JLR5D.js');
99
+ var _chunkIJOHWGPFjs = require('./chunk-IJOHWGPF.js');
99
100
 
100
101
 
101
102
 
102
103
 
103
104
 
104
- var _chunkHNG2U3IGjs = require('./chunk-HNG2U3IG.js');
105
- require('./chunk-SJOHQ2WW.js');
105
+ var _chunkIOMEJKGKjs = require('./chunk-IOMEJKGK.js');
106
+ require('./chunk-KCDZWS2B.js');
106
107
 
107
108
 
108
109
 
109
- var _chunkQ7G7CU4Wjs = require('./chunk-Q7G7CU4W.js');
110
+ var _chunkAWMCZAURjs = require('./chunk-AWMCZAUR.js');
110
111
 
111
112
 
112
113
 
@@ -120,17 +121,17 @@ var _chunkQ7G7CU4Wjs = require('./chunk-Q7G7CU4W.js');
120
121
 
121
122
 
122
123
 
123
- var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
124
- require('./chunk-ZEZ3CZ3X.js');
124
+ var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
125
+ require('./chunk-JO2JZUBR.js');
125
126
 
126
127
 
127
- var _chunkAEKJZJ4Rjs = require('./chunk-AEKJZJ4R.js');
128
+ var _chunkNWIDPT7Hjs = require('./chunk-NWIDPT7H.js');
128
129
  require('./chunk-ALJJRZNJ.js');
129
130
  require('./chunk-XNYIZMNQ.js');
130
131
 
131
132
 
132
133
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
133
- require('./chunk-74H5OTRM.js');
134
+ require('./chunk-EFO5GVYS.js');
134
135
  require('./chunk-OG64RBAC.js');
135
136
 
136
137
 
@@ -2112,7 +2113,7 @@ function resolveField(key, command) {
2112
2113
  function printSettings(result, json, name) {
2113
2114
  result = { ...result, settings: parsePlaySettings(result.settings) };
2114
2115
  const selected = fields.filter(([key]) => !name || key === name);
2115
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
2116
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
2116
2117
  {
2117
2118
  ...result,
2118
2119
  settings: Object.fromEntries(
@@ -2156,7 +2157,7 @@ function registerPlaySettingsCommands(plays) {
2156
2157
  valueSyntax: field.cli.valueSyntax,
2157
2158
  examples: field.cli.examples
2158
2159
  }));
2159
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
2160
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
2160
2161
  {
2161
2162
  fields: descriptions,
2162
2163
  render: {
@@ -2181,7 +2182,7 @@ function registerPlaySettingsCommands(plays) {
2181
2182
  async (options, command) => {
2182
2183
  if (options.name !== void 0) resolveField(options.name, command);
2183
2184
  printSettings(
2184
- await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getPlaySettings(options.play),
2185
+ await new (0, _chunk2H4OFVR5js.DeeplineClient)().getPlaySettings(options.play),
2185
2186
  options.json,
2186
2187
  options.name
2187
2188
  );
@@ -2212,7 +2213,7 @@ function registerPlaySettingsCommands(plays) {
2212
2213
  );
2213
2214
  }
2214
2215
  if (options.dryRun) {
2215
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
2216
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
2216
2217
  {
2217
2218
  dryRun: true,
2218
2219
  play,
@@ -2233,7 +2234,7 @@ function registerPlaySettingsCommands(plays) {
2233
2234
  return;
2234
2235
  }
2235
2236
  printSettings(
2236
- await new (0, _chunkB2TXKEEDjs.DeeplineClient)().updatePlaySettings(play, patch),
2237
+ await new (0, _chunk2H4OFVR5js.DeeplineClient)().updatePlaySettings(play, patch),
2237
2238
  options.json
2238
2239
  );
2239
2240
  };
@@ -2259,13 +2260,13 @@ function registerPlaySettingsCommands(plays) {
2259
2260
  "--root must be person or team; --limit must be 1\u2013100.",
2260
2261
  { exitCode: 2 }
2261
2262
  );
2262
- const page = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().listPlaySettingsPaths({
2263
+ const page = await new (0, _chunk2H4OFVR5js.DeeplineClient)().listPlaySettingsPaths({
2263
2264
  root: options.root,
2264
2265
  limit,
2265
2266
  cursor: options.cursor
2266
2267
  });
2267
2268
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2268
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
2269
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
2269
2270
  {
2270
2271
  ...page,
2271
2272
  nextCommand,
@@ -2316,7 +2317,7 @@ function registerPlaySettingsCommands(plays) {
2316
2317
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
2317
2318
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
2318
2319
  };
2319
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
2320
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
2320
2321
  const paths = [];
2321
2322
  let cursor;
2322
2323
  do {
@@ -2378,7 +2379,7 @@ function registerPlaySettingsCommands(plays) {
2378
2379
  moved.push(move.playName);
2379
2380
  }
2380
2381
  }
2381
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
2382
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
2382
2383
  {
2383
2384
  dryRun: Boolean(options.dryRun),
2384
2385
  from: options.from,
@@ -2506,7 +2507,7 @@ function triggerLines(view) {
2506
2507
  return lines;
2507
2508
  }
2508
2509
  function printView(view, json) {
2509
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
2510
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
2510
2511
  {
2511
2512
  ...view,
2512
2513
  render: {
@@ -2519,7 +2520,7 @@ function printView(view, json) {
2519
2520
  );
2520
2521
  }
2521
2522
  function printResult(result, json) {
2522
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
2523
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
2523
2524
  {
2524
2525
  ...result,
2525
2526
  render: {
@@ -2549,7 +2550,7 @@ async function mutate(command, options, build) {
2549
2550
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2550
2551
  }
2551
2552
  if (options.dryRun) {
2552
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
2553
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
2553
2554
  {
2554
2555
  dryRun: true,
2555
2556
  play: options.play,
@@ -2568,7 +2569,7 @@ async function mutate(command, options, build) {
2568
2569
  return;
2569
2570
  }
2570
2571
  printResult(
2571
- await new (0, _chunkB2TXKEEDjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2572
+ await new (0, _chunk2H4OFVR5js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2572
2573
  options.json
2573
2574
  );
2574
2575
  }
@@ -2601,7 +2602,7 @@ function registerPlayTriggerConfigCommands(plays) {
2601
2602
  }).addHelpText("after", help2);
2602
2603
  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) => {
2603
2604
  printView(
2604
- await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2605
+ await new (0, _chunk2H4OFVR5js.DeeplineClient)().getPlayTriggerConfig(options.play),
2605
2606
  options.json
2606
2607
  );
2607
2608
  });
@@ -2645,7 +2646,7 @@ function registerPlayTriggerConfigCommands(plays) {
2645
2646
  if (options.auth === void 0) {
2646
2647
  if (secrets.length || options.header || options.signaturePrefix)
2647
2648
  usage(setWebhook, "--secret/--header need --auth.");
2648
- const current = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getPlayTriggerConfig(
2649
+ const current = await new (0, _chunk2H4OFVR5js.DeeplineClient)().getPlayTriggerConfig(
2649
2650
  options.play
2650
2651
  );
2651
2652
  return {
@@ -2722,7 +2723,7 @@ var KIND_DESCRIPTIONS = {
2722
2723
  "receipt.skipped": "Saved work result: skipped.",
2723
2724
  "runtime.event": "Other event."
2724
2725
  };
2725
- var RUN_LOGS_KIND_HELP = _chunkIG3GSBBEjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2726
+ var RUN_LOGS_KIND_HELP = _chunkHTUSTPP4js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2726
2727
  kind,
2727
2728
  description: KIND_DESCRIPTIONS[kind]
2728
2729
  }));
@@ -2859,9 +2860,9 @@ function configureRunQueryCommandErrors(command, resource) {
2859
2860
  const args = program.args;
2860
2861
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2861
2862
  error.exitCode = 2;
2862
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2863
- _chunkBCKIBVEJjs.printJsonError.call(void 0,
2864
- Object.assign(new (0, _chunkIG3GSBBEjs.RunEventQueryInputError)(error.message), {
2863
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2864
+ _chunk2I7VN65Hjs.printJsonError.call(void 0,
2865
+ Object.assign(new (0, _chunkHTUSTPP4js.RunEventQueryInputError)(error.message), {
2865
2866
  exitCode: 2,
2866
2867
  retryable: false
2867
2868
  })
@@ -2905,14 +2906,14 @@ function parseQuery(args, resource) {
2905
2906
  if (VALUE_FLAGS.has(flag)) {
2906
2907
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2907
2908
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2908
- throw new (0, _chunkIG3GSBBEjs.RunEventQueryInputError)(
2909
+ throw new (0, _chunkHTUSTPP4js.RunEventQueryInputError)(
2909
2910
  `${flag} requires a value. Use ${flag} <value>.`
2910
2911
  );
2911
2912
  }
2912
2913
  if (flag === "--sum") sums.push(value);
2913
2914
  else {
2914
2915
  if (values[flag] !== void 0) {
2915
- throw new (0, _chunkIG3GSBBEjs.RunEventQueryInputError)(
2916
+ throw new (0, _chunkHTUSTPP4js.RunEventQueryInputError)(
2916
2917
  `${flag} may only be supplied once.`
2917
2918
  );
2918
2919
  }
@@ -2926,12 +2927,12 @@ function parseQuery(args, resource) {
2926
2927
  }
2927
2928
  if (arg.startsWith("-")) {
2928
2929
  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.";
2929
- throw new (0, _chunkIG3GSBBEjs.RunEventQueryInputError)(
2930
+ throw new (0, _chunkHTUSTPP4js.RunEventQueryInputError)(
2930
2931
  `Unsupported query flag ${flag}. ${correction}`
2931
2932
  );
2932
2933
  }
2933
2934
  if (runId !== void 0) {
2934
- throw new (0, _chunkIG3GSBBEjs.RunEventQueryInputError)(
2935
+ throw new (0, _chunkHTUSTPP4js.RunEventQueryInputError)(
2935
2936
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2936
2937
  );
2937
2938
  }
@@ -2939,7 +2940,7 @@ function parseQuery(args, resource) {
2939
2940
  }
2940
2941
  if (switches.has("--fields")) {
2941
2942
  if (runId !== void 0) {
2942
- throw new (0, _chunkIG3GSBBEjs.RunEventQueryInputError)(
2943
+ throw new (0, _chunkHTUSTPP4js.RunEventQueryInputError)(
2943
2944
  "--fields does not use a run ID. Omit the positional run ID."
2944
2945
  );
2945
2946
  }
@@ -2952,18 +2953,18 @@ function parseQuery(args, resource) {
2952
2953
  )
2953
2954
  ];
2954
2955
  if (incompatible.length) {
2955
- throw new (0, _chunkIG3GSBBEjs.RunEventQueryInputError)(
2956
+ throw new (0, _chunkHTUSTPP4js.RunEventQueryInputError)(
2956
2957
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2957
2958
  );
2958
2959
  }
2959
2960
  }
2960
2961
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2961
- throw new (0, _chunkIG3GSBBEjs.RunEventQueryInputError)(
2962
+ throw new (0, _chunkHTUSTPP4js.RunEventQueryInputError)(
2962
2963
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2963
2964
  );
2964
2965
  }
2965
2966
  if (sums.length && switches.has("--count")) {
2966
- throw new (0, _chunkIG3GSBBEjs.RunEventQueryInputError)(
2967
+ throw new (0, _chunkHTUSTPP4js.RunEventQueryInputError)(
2967
2968
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2968
2969
  );
2969
2970
  }
@@ -2971,7 +2972,7 @@ function parseQuery(args, resource) {
2971
2972
  if (operation === "count") {
2972
2973
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2973
2974
  if (values[flag] !== void 0 || switches.has(flag)) {
2974
- throw new (0, _chunkIG3GSBBEjs.RunEventQueryInputError)(
2975
+ throw new (0, _chunkHTUSTPP4js.RunEventQueryInputError)(
2975
2976
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2976
2977
  );
2977
2978
  }
@@ -3006,16 +3007,16 @@ function parseQuery(args, resource) {
3006
3007
  ];
3007
3008
  }
3008
3009
  }
3009
- const request = _chunkIG3GSBBEjs.normalizeRunEventOperationRequest.call(void 0, body);
3010
+ const request = _chunkHTUSTPP4js.normalizeRunEventOperationRequest.call(void 0, body);
3010
3011
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
3011
3012
  const backend = values["--runtime-backend"];
3012
3013
  if (backend && backend !== "daytona" && backend !== "modal") {
3013
- throw new (0, _chunkIG3GSBBEjs.RunEventQueryInputError)(
3014
+ throw new (0, _chunkHTUSTPP4js.RunEventQueryInputError)(
3014
3015
  "--runtime-backend must be daytona or modal."
3015
3016
  );
3016
3017
  }
3017
3018
  if (backend && !namespace) {
3018
- throw new (0, _chunkIG3GSBBEjs.RunEventQueryInputError)(
3019
+ throw new (0, _chunkHTUSTPP4js.RunEventQueryInputError)(
3019
3020
  "--runtime-backend requires --runtime-namespace."
3020
3021
  );
3021
3022
  }
@@ -3062,12 +3063,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3062
3063
  const failure = error instanceof Error ? error : new Error(String(error));
3063
3064
  const record3 = failure;
3064
3065
  const status = record3.statusCode;
3065
- const exitCode = error instanceof _chunkIG3GSBBEjs.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 exitCode = error instanceof _chunkHTUSTPP4js.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
3067
  const diagnostic = Object.assign(failure, {
3067
3068
  exitCode,
3068
3069
  retryable: exitCode === 5
3069
3070
  });
3070
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) _chunkBCKIBVEJjs.printJsonError.call(void 0, diagnostic);
3071
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) _chunk2I7VN65Hjs.printJsonError.call(void 0, diagnostic);
3071
3072
  else console.error(`Error: ${diagnostic.message}`);
3072
3073
  return exitCode;
3073
3074
  }
@@ -3082,7 +3083,7 @@ async function executeRunEventQuery(args, resource) {
3082
3083
  ...criteria
3083
3084
  } = request;
3084
3085
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3085
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
3086
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
3086
3087
  let result;
3087
3088
  if (request.operation === "fields") {
3088
3089
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3148,13 +3149,13 @@ async function executeRunEventQuery(args, resource) {
3148
3149
  lines.push(`Next page: ${nextPage}`);
3149
3150
  }
3150
3151
  }
3151
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
3152
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
3152
3153
  {
3153
3154
  ...result,
3154
3155
  ...nextPage ? { next: { page: nextPage } } : {},
3155
3156
  render: { sections: [{ title: `run ${resource}`, lines }] }
3156
3157
  },
3157
- { json: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3158
+ { json: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3158
3159
  ` }
3159
3160
  );
3160
3161
  return 0;
@@ -3225,7 +3226,7 @@ function rowCountsFrom(input) {
3225
3226
  return { completed: c, failed: f, total: known };
3226
3227
  }
3227
3228
  function decodeRunStatus(status) {
3228
- return _chunkAUQQVDABjs.decodePlayRunPublicStatus.call(void 0, status);
3229
+ return _chunkPKV5CD3Wjs.decodePlayRunPublicStatus.call(void 0, status);
3229
3230
  }
3230
3231
  function deriveRunExecutionState(input) {
3231
3232
  const status = decodeRunStatus(input.status);
@@ -4073,7 +4074,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4073
4074
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4074
4075
  );
4075
4076
  }
4076
- const response = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().runs.getReceipts(runId, {
4077
+ const response = await new (0, _chunk2H4OFVR5js.DeeplineClient)().runs.getReceipts(runId, {
4077
4078
  keys
4078
4079
  });
4079
4080
  const failed = response.receipts.filter(
@@ -4085,7 +4086,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4085
4086
  JSON.stringify(response, null, 2) + "\n",
4086
4087
  { flag: "wx", mode: 384 }
4087
4088
  );
4088
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
4089
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
4089
4090
  {
4090
4091
  runId,
4091
4092
  out: options.out,
@@ -4095,7 +4096,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4095
4096
  { json: true }
4096
4097
  );
4097
4098
  } else {
4098
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4099
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4099
4100
  }
4100
4101
  if (failed)
4101
4102
  process.exitCode = response.receipts.some(
@@ -4134,7 +4135,7 @@ includes nextCommand when another page is available.
4134
4135
  { exitCode: 2 }
4135
4136
  );
4136
4137
  }
4137
- const page = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().runs.children(parentRunId, {
4138
+ const page = await new (0, _chunk2H4OFVR5js.DeeplineClient)().runs.children(parentRunId, {
4138
4139
  launchKey: options.launchKey,
4139
4140
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4140
4141
  limit
@@ -4149,7 +4150,7 @@ includes nextCommand when another page is available.
4149
4150
  "--limit",
4150
4151
  String(limit)
4151
4152
  ].join(" ") : null;
4152
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
4153
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
4153
4154
  {
4154
4155
  parentRunId,
4155
4156
  launchKey: options.launchKey,
@@ -4185,7 +4186,7 @@ async function handleRunsHistory(options) {
4185
4186
  throw new Error("--limit must be a positive integer.");
4186
4187
  }
4187
4188
  }
4188
- const page = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().runs.history({
4189
+ const page = await new (0, _chunk2H4OFVR5js.DeeplineClient)().runs.history({
4189
4190
  cursor: options.cursor,
4190
4191
  orgId: options.org,
4191
4192
  search: options.search,
@@ -4201,7 +4202,7 @@ async function handleRunsHistory(options) {
4201
4202
  );
4202
4203
  }
4203
4204
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4204
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
4205
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
4205
4206
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4206
4207
  options.json ? { json: true } : {}
4207
4208
  );
@@ -4253,12 +4254,12 @@ async function runRunsRerunCommand(runId, options) {
4253
4254
  return 1;
4254
4255
  }
4255
4256
  }
4256
- const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().runs.rerun(runId, {
4257
+ const result = await new (0, _chunk2H4OFVR5js.DeeplineClient)().runs.rerun(runId, {
4257
4258
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4258
4259
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4259
4260
  });
4260
- if (_chunkBCKIBVEJjs.shouldEmitJson.call(void 0, options.json)) {
4261
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, result, { json: true });
4261
+ if (_chunk2I7VN65Hjs.shouldEmitJson.call(void 0, options.json)) {
4262
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, result, { json: true });
4262
4263
  } else if (result.rateLimited) {
4263
4264
  console.log(`
4264
4265
  ${result.rateLimited.message}`);
@@ -5082,13 +5083,13 @@ var RunDataset = class _RunDataset {
5082
5083
  const absolutePath = _path.resolve.call(void 0, outPath);
5083
5084
  _fs.writeFileSync.call(void 0,
5084
5085
  absolutePath,
5085
- `${JSON.stringify(_chunk6UARNRXTjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
5086
+ `${JSON.stringify(_chunkUCMY2SO2js.orderRunExportJson.call(void 0, this.rows), null, 2)}
5086
5087
  `,
5087
5088
  "utf-8"
5088
5089
  );
5089
5090
  return absolutePath;
5090
5091
  }
5091
- return _chunk6UARNRXTjs.writeRunDatasetCsv.call(void 0, {
5092
+ return _chunkUCMY2SO2js.writeRunDatasetCsv.call(void 0, {
5092
5093
  rows: this.rows,
5093
5094
  columns: this.#info.columns,
5094
5095
  outPath
@@ -6785,7 +6786,7 @@ function renderOutcome(outcome) {
6785
6786
  function printResult2(input) {
6786
6787
  const failed = input.status === "failed" || input.status === "cancelled";
6787
6788
  if (failed) process.exitCode = 1;
6788
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
6789
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
6789
6790
  {
6790
6791
  deployment: { ...input.deployment, status: input.status },
6791
6792
  plays: input.outcomes,
@@ -6810,7 +6811,7 @@ async function handlePlaysDeploy(directory, options) {
6810
6811
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6811
6812
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6812
6813
  });
6813
- const { http, config } = _chunkBCKIBVEJjs.getAuthedHttpClient.call(void 0, );
6814
+ const { http, config } = _chunk2I7VN65Hjs.getAuthedHttpClient.call(void 0, );
6814
6815
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6815
6816
  const startDeployment = () => http.post("/api/v2/deployments", {
6816
6817
  deliveryId,
@@ -6837,7 +6838,7 @@ async function handlePlaysDeploy(directory, options) {
6837
6838
  },
6838
6839
  {
6839
6840
  bundle: bundleDeployPlayFile,
6840
- fetchImpl: _chunkAEKJZJ4Rjs.fetchWithDeploymentProtection,
6841
+ fetchImpl: _chunkNWIDPT7Hjs.fetchWithDeploymentProtection,
6841
6842
  // The plays are already here: "opening" the source is naming it.
6842
6843
  openSource: async () => ({
6843
6844
  open: async () => ({ repoRoot: root })
@@ -6963,7 +6964,7 @@ async function checkLocalPlayGraph(input) {
6963
6964
  // src/cli/renderers/local-play-execution.ts
6964
6965
  function renderLocalPlayExecutionPlan(plan, options = {}) {
6965
6966
  if (options.dryRun) {
6966
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6967
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6967
6968
  return;
6968
6969
  }
6969
6970
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -7135,7 +7136,7 @@ function traceCliSync(phase, fields2, run) {
7135
7136
  const startedAt = Date.now();
7136
7137
  try {
7137
7138
  const result = run();
7138
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
7139
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
7139
7140
  phase,
7140
7141
  ms: Date.now() - startedAt,
7141
7142
  ok: true,
@@ -7143,7 +7144,7 @@ function traceCliSync(phase, fields2, run) {
7143
7144
  });
7144
7145
  return result;
7145
7146
  } catch (error) {
7146
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
7147
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
7147
7148
  phase,
7148
7149
  ms: Date.now() - startedAt,
7149
7150
  ok: false,
@@ -7621,7 +7622,7 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
7621
7622
  if (!trimmed || isUrlValue(trimmed)) {
7622
7623
  return;
7623
7624
  }
7624
- const keyIsCsvData = key === _chunkAUQQVDABjs.CSV_DATA_INPUT_KEY;
7625
+ const keyIsCsvData = key === _chunkPKV5CD3Wjs.CSV_DATA_INPUT_KEY;
7625
7626
  const endsWithCsv = /\.csv$/i.test(trimmed);
7626
7627
  const looksLikeFile = /\.[a-z0-9]{1,8}$/i.test(trimmed);
7627
7628
  if (keyIsCsvData) {
@@ -7652,14 +7653,14 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
7652
7653
  }
7653
7654
  }
7654
7655
  function preflightLocalFileInputs(runtimeInput) {
7655
- if (_chunkAUQQVDABjs.CSV_DATA_INPUT_KEY in runtimeInput) {
7656
- const csvValue = runtimeInput[_chunkAUQQVDABjs.CSV_DATA_INPUT_KEY];
7656
+ if (_chunkPKV5CD3Wjs.CSV_DATA_INPUT_KEY in runtimeInput) {
7657
+ const csvValue = runtimeInput[_chunkPKV5CD3Wjs.CSV_DATA_INPUT_KEY];
7657
7658
  if (typeof csvValue === "string" && csvValue.trim().length === 0) {
7658
7659
  throw new (0, _chunkDIAWYWT5js.DeeplineError)(
7659
- `Input ${_chunkAUQQVDABjs.CSV_DATA_INPUT_KEY} is an empty string. Provide a path to a CSV file (or a CSV URL). No run was created.`,
7660
+ `Input ${_chunkPKV5CD3Wjs.CSV_DATA_INPUT_KEY} is an empty string. Provide a path to a CSV file (or a CSV URL). No run was created.`,
7660
7661
  void 0,
7661
7662
  "PLAY_INPUT_FILE_PREFLIGHT",
7662
- { inputPath: _chunkAUQQVDABjs.CSV_DATA_INPUT_KEY, reason: "csv_empty_string" }
7663
+ { inputPath: _chunkPKV5CD3Wjs.CSV_DATA_INPUT_KEY, reason: "csv_empty_string" }
7663
7664
  );
7664
7665
  }
7665
7666
  }
@@ -7726,7 +7727,7 @@ var NODE_STAGED_FILE_CODEC = {
7726
7727
  )
7727
7728
  };
7728
7729
  async function stageFileInputArgs(input) {
7729
- return _chunkAUQQVDABjs.stageFileInputs.call(void 0, {
7730
+ return _chunkPKV5CD3Wjs.stageFileInputs.call(void 0, {
7730
7731
  stage: (files) => input.client.stagePlayFiles(files),
7731
7732
  runtimeInput: input.runtimeInput,
7732
7733
  bindings: input.bindings,
@@ -7750,7 +7751,7 @@ function stageFile(logicalPath, absolutePath) {
7750
7751
  logicalPath,
7751
7752
  contentBase64: buffer.toString("base64"),
7752
7753
  contentHash: _crypto.createHash.call(void 0, "sha256").update(buffer).digest("hex"),
7753
- contentType: _chunkAUQQVDABjs.stagedFileContentType.call(void 0, absolutePath),
7754
+ contentType: _chunkPKV5CD3Wjs.stagedFileContentType.call(void 0, absolutePath),
7754
7755
  bytes: buffer.byteLength
7755
7756
  };
7756
7757
  }
@@ -7949,7 +7950,7 @@ function playStatusErrorText(status) {
7949
7950
  function isRetryablePendingStartFailure(status) {
7950
7951
  if (status.status !== "failed") return false;
7951
7952
  if (status.runId && status.runId !== "pending") return false;
7952
- return _chunkIG3GSBBEjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7953
+ return _chunkHTUSTPP4js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7953
7954
  }
7954
7955
  function isAmbiguousPlayStartOutcomeError(error) {
7955
7956
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
@@ -7999,13 +8000,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
7999
8000
  }, _class);
8000
8001
  function watchSurfaceReaches(state, provenance, level) {
8001
8002
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
8002
- if (!_chunkIG3GSBBEjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8003
+ if (!_chunkHTUSTPP4js.logLevelReaches.call(void 0, level, minimumLevel)) {
8003
8004
  return false;
8004
8005
  }
8005
- if (_chunkIG3GSBBEjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8006
+ if (_chunkHTUSTPP4js.logProvenanceReaches.call(void 0, provenance, "watch")) {
8006
8007
  return true;
8007
8008
  }
8008
- return state.verbose === true && _chunkIG3GSBBEjs.logProvenanceReaches.call(void 0, provenance, "debug");
8009
+ return state.verbose === true && _chunkHTUSTPP4js.logProvenanceReaches.call(void 0, provenance, "debug");
8009
8010
  }
8010
8011
  function getEventPayload(event) {
8011
8012
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -8505,9 +8506,17 @@ function resolveRunPlayName(status, runId) {
8505
8506
  if (typeof packaged === "string" && packaged.trim()) return packaged.trim();
8506
8507
  return _nullishCoalesce(_nullishCoalesce(extractRunPlayName(status), () => ( _optionalChain([/^play\/(.+)\/(?:run|webhook)\//, 'access', _296 => _296.exec, 'call', _297 => _297(runId), 'optionalAccess', _298 => _298[1]]))), () => ( null));
8507
8508
  }
8508
- function openPlayDashboard(dashboardUrl, open2) {
8509
- if (open2 && dashboardUrl) {
8510
- _chunkBCKIBVEJjs.openInBrowser.call(void 0, dashboardUrl);
8509
+ function resolvePlayRunUrl(input) {
8510
+ if (input.runUrl) return input.runUrl;
8511
+ const runId = _optionalChain([input, 'access', _299 => _299.runId, 'optionalAccess', _300 => _300.trim, 'call', _301 => _301()]);
8512
+ if (!input.dashboardUrl || !runId || runId === "pending") return void 0;
8513
+ const url = new URL(input.dashboardUrl);
8514
+ url.searchParams.set("runId", runId);
8515
+ return url.toString();
8516
+ }
8517
+ function openPlayDashboard(url, open2) {
8518
+ if (open2 && url) {
8519
+ _chunk2I7VN65Hjs.openInBrowser.call(void 0, url);
8511
8520
  }
8512
8521
  }
8513
8522
  function printPlayLogLines(input) {
@@ -8560,7 +8569,7 @@ async function waitForPlayCompletionByWatch(input) {
8560
8569
  const confirmAdmission = async () => {
8561
8570
  if (admissionConfirmed) return;
8562
8571
  admissionConfirmed = true;
8563
- await _optionalChain([input, 'access', _299 => _299.onRunAdmitted, 'optionalCall', _300 => _300(input.workflowId)]);
8572
+ await _optionalChain([input, 'access', _302 => _302.onRunAdmitted, 'optionalCall', _303 => _303(input.workflowId)]);
8564
8573
  };
8565
8574
  const withDashboardUrl = (status) => carryFullDurableTerminalStatus(
8566
8575
  status,
@@ -8588,7 +8597,7 @@ async function waitForPlayCompletionByWatch(input) {
8588
8597
  ...input.fullJson === void 0 ? {} : { full: input.fullJson }
8589
8598
  });
8590
8599
  } catch (error) {
8591
- if (_chunkIG3GSBBEjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8600
+ if (_chunkHTUSTPP4js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8592
8601
  return null;
8593
8602
  }
8594
8603
  throw error;
@@ -8669,9 +8678,9 @@ async function waitForPlayCompletionByWatch(input) {
8669
8678
  signal: controller.signal,
8670
8679
  deferLogs: !input.emitLogs,
8671
8680
  omitTerminalLogs: !input.emitLogs,
8672
- ..._chunkHNG2U3IGjs.isCliTraceEnabled.call(void 0, ) ? {
8681
+ ..._chunkIOMEJKGKjs.isCliTraceEnabled.call(void 0, ) ? {
8673
8682
  onPoll: (observation) => {
8674
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
8683
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
8675
8684
  phase: "play_watch_poll",
8676
8685
  workflowId: input.workflowId,
8677
8686
  ms: observation.durationMs,
@@ -8685,7 +8694,7 @@ async function waitForPlayCompletionByWatch(input) {
8685
8694
  full: input.fullJson,
8686
8695
  billing: false,
8687
8696
  onStatus: async (status) => {
8688
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
8697
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
8689
8698
  phase: "play_watch_terminal_status",
8690
8699
  workflowId: input.workflowId,
8691
8700
  full: input.fullJson === true
@@ -8774,7 +8783,7 @@ async function startAndWaitForPlayCompletion(input) {
8774
8783
  signal: controller.signal,
8775
8784
  cliAdmission: useCliAdmission
8776
8785
  });
8777
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
8786
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
8778
8787
  phase: "cli.play_start_admission_attempt",
8779
8788
  ms: Date.now() - postStartedAt,
8780
8789
  ok: true,
@@ -8786,7 +8795,7 @@ async function startAndWaitForPlayCompletion(input) {
8786
8795
  });
8787
8796
  break;
8788
8797
  } catch (error) {
8789
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
8798
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
8790
8799
  phase: "cli.play_start_admission_attempt",
8791
8800
  ms: Date.now() - postStartedAt,
8792
8801
  ok: false,
@@ -8808,7 +8817,7 @@ async function startAndWaitForPlayCompletion(input) {
8808
8817
  prepared.workflowId
8809
8818
  );
8810
8819
  }
8811
- if (callerIntentV2 && error instanceof _chunkAUQQVDABjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
8820
+ if (callerIntentV2 && error instanceof _chunkPKV5CD3Wjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
8812
8821
  if (currentAttempt > 1) {
8813
8822
  throw new PlayStartOutcomeUnknownError(
8814
8823
  input.playName,
@@ -8829,7 +8838,7 @@ async function startAndWaitForPlayCompletion(input) {
8829
8838
  waitTimeoutMs: remaining === null ? null : Math.max(1, remaining)
8830
8839
  });
8831
8840
  }
8832
- if (useCliAdmission && error instanceof _chunkAUQQVDABjs.CliPlayAdmissionUnsupportedError) {
8841
+ if (useCliAdmission && error instanceof _chunkPKV5CD3Wjs.CliPlayAdmissionUnsupportedError) {
8833
8842
  if (currentAttempt > 1) {
8834
8843
  throw new PlayStartOutcomeUnknownError(
8835
8844
  input.playName,
@@ -8837,7 +8846,7 @@ async function startAndWaitForPlayCompletion(input) {
8837
8846
  prepared.workflowId
8838
8847
  );
8839
8848
  }
8840
- await _chunkTH7JLR5Djs.checkPlayRunCompatibility.call(void 0,
8849
+ await _chunkIJOHWGPFjs.checkPlayRunCompatibility.call(void 0,
8841
8850
  input.client.baseUrl,
8842
8851
  input.maintenancePolicy
8843
8852
  );
@@ -8855,7 +8864,7 @@ async function startAndWaitForPlayCompletion(input) {
8855
8864
  `[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
8856
8865
  );
8857
8866
  }
8858
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
8867
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
8859
8868
  phase: "cli.play_start_json_retry",
8860
8869
  ms: 0,
8861
8870
  ok: true,
@@ -8911,9 +8920,9 @@ async function startAndWaitForPlayCompletion(input) {
8911
8920
  "PLAY_START_MISSING_RUN_ID"
8912
8921
  );
8913
8922
  }
8914
- await _optionalChain([input, 'access', _301 => _301.onRunStarted, 'optionalCall', _302 => _302(workflowId)]);
8915
- await _optionalChain([input, 'access', _303 => _303.onRunAdmitted, 'optionalCall', _304 => _304(workflowId)]);
8916
- const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => ( _chunk4IP5MLWUjs.buildPlayDashboardUrl.call(void 0, input.client.baseUrl, input.playName)));
8923
+ await _optionalChain([input, 'access', _304 => _304.onRunStarted, 'optionalCall', _305 => _305(workflowId)]);
8924
+ await _optionalChain([input, 'access', _306 => _306.onRunAdmitted, 'optionalCall', _307 => _307(workflowId)]);
8925
+ const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => ( _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, input.client.baseUrl, input.playName)));
8917
8926
  const rateLimited = _nullishCoalesce(started.rateLimited, () => ( null));
8918
8927
  if (!input.jsonOutput) {
8919
8928
  writeStartedPlayRun({
@@ -8926,9 +8935,16 @@ async function startAndWaitForPlayCompletion(input) {
8926
8935
  progress: input.progress
8927
8936
  });
8928
8937
  }
8929
- openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
8938
+ openPlayDashboard(
8939
+ resolvePlayRunUrl({
8940
+ runId: workflowId,
8941
+ runUrl: started.runUrl,
8942
+ dashboardUrl
8943
+ }),
8944
+ _nullishCoalesce(input.open, () => ( false))
8945
+ );
8930
8946
  input.progress.phase("running");
8931
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
8947
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
8932
8948
  phase: "cli.play_start_admitted",
8933
8949
  ms: Date.now() - startedAt,
8934
8950
  ok: true,
@@ -8938,15 +8954,15 @@ async function startAndWaitForPlayCompletion(input) {
8938
8954
  inlineCompatibility
8939
8955
  });
8940
8956
  const initialTerminal = readRecord(started.finalStatus);
8941
- const initialPackage = _nullishCoalesce(readRecord(_optionalChain([initialTerminal, 'optionalAccess', _305 => _305.package])), () => ( initialTerminal));
8942
- const initialRun = readRecord(_optionalChain([initialPackage, 'optionalAccess', _306 => _306.run]));
8943
- if (initialTerminal && _optionalChain([initialRun, 'optionalAccess', _307 => _307.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") {
8957
+ const initialPackage = _nullishCoalesce(readRecord(_optionalChain([initialTerminal, 'optionalAccess', _308 => _308.package])), () => ( initialTerminal));
8958
+ const initialRun = readRecord(_optionalChain([initialPackage, 'optionalAccess', _309 => _309.run]));
8959
+ if (initialTerminal && _optionalChain([initialRun, 'optionalAccess', _310 => _310.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") {
8944
8960
  assertPlayWaitNotTimedOut({
8945
8961
  workflowId,
8946
8962
  startedAt,
8947
8963
  waitTimeoutMs: input.waitTimeoutMs
8948
8964
  });
8949
- const initialStatus = _chunkIG3GSBBEjs.normalizePlayStatus.call(void 0, initialTerminal);
8965
+ const initialStatus = _chunkHTUSTPP4js.normalizePlayStatus.call(void 0, initialTerminal);
8950
8966
  const status2 = await resolvePlayRunOutputStatus({
8951
8967
  client: input.client,
8952
8968
  status: initialStatus,
@@ -8954,7 +8970,7 @@ async function startAndWaitForPlayCompletion(input) {
8954
8970
  jsonOutput: input.jsonOutput,
8955
8971
  fromDurableStatus: true
8956
8972
  });
8957
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
8973
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
8958
8974
  phase: "play_watch_terminal_status",
8959
8975
  workflowId,
8960
8976
  full: true,
@@ -8993,7 +9009,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8993
9009
  () => {
8994
9010
  admissionTimedOut = true;
8995
9011
  admissionDeadline.abort();
8996
- _optionalChain([input, 'access', _308 => _308.cancelAdmissionCapability, 'optionalCall', _309 => _309()]);
9012
+ _optionalChain([input, 'access', _311 => _311.cancelAdmissionCapability, 'optionalCall', _312 => _312()]);
8997
9013
  },
8998
9014
  Math.max(1, input.waitTimeoutMs)
8999
9015
  );
@@ -9045,7 +9061,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9045
9061
  notice.value
9046
9062
  );
9047
9063
  } catch (error) {
9048
- if (callerIntentV2 && error instanceof _chunkAUQQVDABjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
9064
+ if (callerIntentV2 && error instanceof _chunkPKV5CD3Wjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
9049
9065
  const remaining = input.waitTimeoutMs === null ? null : input.waitTimeoutMs - (Date.now() - admissionStartedAt);
9050
9066
  assertPlayWaitNotTimedOut({
9051
9067
  workflowId: "",
@@ -9058,8 +9074,8 @@ async function startAndWaitForPlayCompletionByStream(input) {
9058
9074
  waitTimeoutMs: remaining === null ? null : Math.max(1, remaining)
9059
9075
  });
9060
9076
  }
9061
- if (error instanceof _chunkAUQQVDABjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
9062
- await _chunkTH7JLR5Djs.checkPlayRunCompatibility.call(void 0,
9077
+ if (error instanceof _chunkPKV5CD3Wjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
9078
+ await _chunkIJOHWGPFjs.checkPlayRunCompatibility.call(void 0,
9063
9079
  input.client.baseUrl,
9064
9080
  input.maintenancePolicy,
9065
9081
  admissionDeadline.signal
@@ -9100,7 +9116,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9100
9116
  `[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
9101
9117
  );
9102
9118
  }
9103
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
9119
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
9104
9120
  phase: "cli.play_start_stream_retry",
9105
9121
  ms: 0,
9106
9122
  ok: true,
@@ -9121,7 +9137,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9121
9137
  `[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
9122
9138
  );
9123
9139
  }
9124
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
9140
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
9125
9141
  phase: "cli.play_start_stream_retry",
9126
9142
  ms: 0,
9127
9143
  ok: true,
@@ -9139,7 +9155,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9139
9155
  } catch (error) {
9140
9156
  if (admissionTimedOut || admissionDeadlineAt !== void 0 && Date.now() >= admissionDeadlineAt) {
9141
9157
  assertPlayWaitNotTimedOut({
9142
- workflowId: _nullishCoalesce(_optionalChain([prepared, 'optionalAccess', _310 => _310.workflowId]), () => ( "")),
9158
+ workflowId: _nullishCoalesce(_optionalChain([prepared, 'optionalAccess', _313 => _313.workflowId]), () => ( "")),
9143
9159
  startedAt: admissionStartedAt,
9144
9160
  waitTimeoutMs: input.waitTimeoutMs
9145
9161
  });
@@ -9151,7 +9167,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9151
9167
  }
9152
9168
  async function startAndWaitForPlayCompletionByStreamOnce(input) {
9153
9169
  const startedAt = Date.now();
9154
- const dashboardUrl = _chunk4IP5MLWUjs.buildPlayDashboardUrl.call(void 0,
9170
+ const dashboardUrl = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0,
9155
9171
  input.client.baseUrl,
9156
9172
  input.playName
9157
9173
  );
@@ -9167,7 +9183,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9167
9183
  let timedOut = false;
9168
9184
  let emittedDashboardUrl = false;
9169
9185
  let lastKnownWorkflowId = "";
9170
- let launchedRevisionId = _optionalChain([input, 'access', _311 => _311.request, 'access', _312 => _312.revisionId, 'optionalAccess', _313 => _313.trim, 'call', _314 => _314()]) || null;
9186
+ let launchedRevisionId = _optionalChain([input, 'access', _314 => _314.request, 'access', _315 => _315.revisionId, 'optionalAccess', _316 => _316.trim, 'call', _317 => _317()]) || null;
9171
9187
  let eventCount = 0;
9172
9188
  let firstRunIdMs = null;
9173
9189
  let launchConfirmed = false;
@@ -9177,8 +9193,8 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9177
9193
  const confirmAdmission = async (runId) => {
9178
9194
  if (launchConfirmed || !runId || runId === "pending") return;
9179
9195
  launchConfirmed = true;
9180
- await _optionalChain([input, 'access', _315 => _315.onRunAdmitted, 'optionalCall', _316 => _316(runId)]);
9181
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
9196
+ await _optionalChain([input, 'access', _318 => _318.onRunAdmitted, 'optionalCall', _319 => _319(runId)]);
9197
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
9182
9198
  phase: "cli.play_start_admitted",
9183
9199
  ms: Date.now() - startedAt,
9184
9200
  ok: true,
@@ -9212,7 +9228,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9212
9228
  full: input.fullJson
9213
9229
  });
9214
9230
  } catch (error) {
9215
- if (_chunkIG3GSBBEjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9231
+ if (_chunkHTUSTPP4js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9216
9232
  return null;
9217
9233
  }
9218
9234
  throw error;
@@ -9231,9 +9247,9 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9231
9247
  signal: controller.signal
9232
9248
  })) {
9233
9249
  eventCount += 1;
9234
- const expectedFullRunId = _optionalChain([input, 'access', _317 => _317.request, 'access', _318 => _318.workflowId, 'optionalAccess', _319 => _319.trim, 'call', _320 => _320()]) || lastKnownWorkflowId;
9250
+ const expectedFullRunId = _optionalChain([input, 'access', _320 => _320.request, 'access', _321 => _321.workflowId, 'optionalAccess', _322 => _322.trim, 'call', _323 => _323()]) || lastKnownWorkflowId;
9235
9251
  const eventRunId = getRunIdFromLiveEvent(event);
9236
- const pinnedRunId = input.fullJson === true && input.request.terminalStatus === "full" ? _optionalChain([input, 'access', _321 => _321.request, 'access', _322 => _322.workflowId, 'optionalAccess', _323 => _323.trim, 'call', _324 => _324()]) : void 0;
9252
+ const pinnedRunId = input.fullJson === true && input.request.terminalStatus === "full" ? _optionalChain([input, 'access', _324 => _324.request, 'access', _325 => _325.workflowId, 'optionalAccess', _326 => _326.trim, 'call', _327 => _327()]) : void 0;
9237
9253
  if (pinnedRunId && eventRunId && eventRunId !== "pending" && eventRunId !== pinnedRunId)
9238
9254
  continue;
9239
9255
  const eventRevisionId = getStringField(
@@ -9243,7 +9259,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9243
9259
  if (eventRevisionId) {
9244
9260
  launchedRevisionId = eventRevisionId;
9245
9261
  }
9246
- const eventRateLimited = _optionalChain([getEventPayload, 'call', _325 => _325(event), 'optionalAccess', _326 => _326.rateLimited]);
9262
+ const eventRateLimited = _optionalChain([getEventPayload, 'call', _328 => _328(event), 'optionalAccess', _329 => _329.rateLimited]);
9247
9263
  if (eventRateLimited && typeof eventRateLimited === "object") {
9248
9264
  notice.value = eventRateLimited;
9249
9265
  }
@@ -9252,7 +9268,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9252
9268
  lastKnownWorkflowId = eventRunId;
9253
9269
  firstRunIdMs ??= Date.now() - startedAt;
9254
9270
  if (runStartedNow) {
9255
- await _optionalChain([input, 'access', _327 => _327.onRunStarted, 'optionalCall', _328 => _328(eventRunId)]);
9271
+ await _optionalChain([input, 'access', _330 => _330.onRunStarted, 'optionalCall', _331 => _331(eventRunId)]);
9256
9272
  }
9257
9273
  }
9258
9274
  if (!launchConfirmed && eventConfirmsPlayRunLaunch(event) && eventRunId === lastKnownWorkflowId) {
@@ -9271,7 +9287,10 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9271
9287
  progress: input.progress
9272
9288
  });
9273
9289
  }
9274
- openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
9290
+ openPlayDashboard(
9291
+ resolvePlayRunUrl({ runId: workflowId, dashboardUrl }),
9292
+ _nullishCoalesce(input.open, () => ( false))
9293
+ );
9275
9294
  input.progress.phase("running");
9276
9295
  emittedDashboardUrl = true;
9277
9296
  }
@@ -9342,16 +9361,16 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9342
9361
  };
9343
9362
  }
9344
9363
  const fullPackage = getPlayRunPackage(finalStatus);
9345
- const fullRun = readRecord(_optionalChain([fullPackage, 'optionalAccess', _329 => _329.run]));
9346
- const fullSteps = _optionalChain([fullPackage, 'optionalAccess', _330 => _330.steps]);
9364
+ const fullRun = readRecord(_optionalChain([fullPackage, 'optionalAccess', _332 => _332.run]));
9365
+ const fullSteps = _optionalChain([fullPackage, 'optionalAccess', _333 => _333.steps]);
9347
9366
  const scalarStep = Array.isArray(fullSteps) ? readRecord(fullSteps[0]) : null;
9348
- const scalarExecution = readRecord(_optionalChain([scalarStep, 'optionalAccess', _331 => _331.execution]));
9349
- const completeScalarSteps = Array.isArray(fullSteps) && (_optionalChain([fullPackage, 'optionalAccess', _332 => _332.stepsExpected]) === false && fullSteps.length === 0 || _optionalChain([fullPackage, 'optionalAccess', _333 => _333.stepsExpected]) !== false && fullSteps.length === 1 && typeof _optionalChain([scalarStep, 'optionalAccess', _334 => _334.id]) === "string" && scalarStep.id.trim().length > 0 && scalarStep.kind === "step" && scalarStep.status === "completed" && _optionalChain([scalarExecution, 'optionalAccess', _335 => _335.kind]) === "completed" && scalarExecution.rows === null);
9350
- const reuseFullTerminal = input.jsonOutput && input.fullJson === true && input.request.terminalStatus === "full" && expectedFullRunId !== "" && finalStatus.runId === expectedFullRunId && _optionalChain([fullRun, 'optionalAccess', _336 => _336.id]) === expectedFullRunId && finalStatus.status === "completed" && fullRun.status === "completed" && finalStatus.finalStatusView === "full" && _optionalChain([fullPackage, 'optionalAccess', _337 => _337.resultState]) === "available" && Object.hasOwn(fullPackage, "result") && completeScalarSteps && Array.isArray(fullPackage.datasets) && fullPackage.datasets.length === 0;
9367
+ const scalarExecution = readRecord(_optionalChain([scalarStep, 'optionalAccess', _334 => _334.execution]));
9368
+ const completeScalarSteps = Array.isArray(fullSteps) && (_optionalChain([fullPackage, 'optionalAccess', _335 => _335.stepsExpected]) === false && fullSteps.length === 0 || _optionalChain([fullPackage, 'optionalAccess', _336 => _336.stepsExpected]) !== false && fullSteps.length === 1 && typeof _optionalChain([scalarStep, 'optionalAccess', _337 => _337.id]) === "string" && scalarStep.id.trim().length > 0 && scalarStep.kind === "step" && scalarStep.status === "completed" && _optionalChain([scalarExecution, 'optionalAccess', _338 => _338.kind]) === "completed" && scalarExecution.rows === null);
9369
+ const reuseFullTerminal = input.jsonOutput && input.fullJson === true && input.request.terminalStatus === "full" && expectedFullRunId !== "" && finalStatus.runId === expectedFullRunId && _optionalChain([fullRun, 'optionalAccess', _339 => _339.id]) === expectedFullRunId && finalStatus.status === "completed" && fullRun.status === "completed" && finalStatus.finalStatusView === "full" && _optionalChain([fullPackage, 'optionalAccess', _340 => _340.resultState]) === "available" && Object.hasOwn(fullPackage, "result") && completeScalarSteps && Array.isArray(fullPackage.datasets) && fullPackage.datasets.length === 0;
9351
9370
  let fromDurableStatus = reuseFullTerminal;
9352
9371
  let canonicalTerminal;
9353
9372
  const streamedTerminalPackage = getPlayRunPackage(finalStatus);
9354
- const streamedTerminalPlayRunPackage = _chunkAUQQVDABjs.isPlayRunPackage.call(void 0,
9373
+ const streamedTerminalPlayRunPackage = _chunkPKV5CD3Wjs.isPlayRunPackage.call(void 0,
9355
9374
  streamedTerminalPackage
9356
9375
  ) ? streamedTerminalPackage : null;
9357
9376
  const terminalEnvelopeIsComplete = finalStatus.status === "completed" && (event.type === "play.run.snapshot" || event.type === "play.run.final_status") && getEventPayload(event).replayed !== true && finalStatus.runId === lastKnownWorkflowId && !playRunPackageTextLedgerIncomplete(streamedTerminalPackage);
@@ -9380,7 +9399,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9380
9399
  };
9381
9400
  }
9382
9401
  if (!canonicalTerminal) {
9383
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
9402
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
9384
9403
  phase: "cli.play_start_stream_stale_terminal_ignored",
9385
9404
  ms: Date.now() - startedAt,
9386
9405
  ok: true,
@@ -9401,14 +9420,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9401
9420
  fromDurableStatus
9402
9421
  }) : canonicalTerminal;
9403
9422
  if (input.fullJson === true) {
9404
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
9423
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
9405
9424
  phase: "play_watch_terminal_status",
9406
9425
  workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
9407
9426
  full: true,
9408
9427
  source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
9409
9428
  });
9410
9429
  }
9411
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
9430
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
9412
9431
  phase: "cli.play_start_stream_terminal",
9413
9432
  ms: Date.now() - startedAt,
9414
9433
  ok: true,
@@ -9428,7 +9447,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9428
9447
  clearTimeout(timeout);
9429
9448
  }
9430
9449
  controller.abort();
9431
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
9450
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
9432
9451
  phase: "cli.play_start_stream_handoff_to_tail",
9433
9452
  ms: Date.now() - startedAt,
9434
9453
  ok: true,
@@ -9459,7 +9478,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9459
9478
  if (timedOut) {
9460
9479
  const terminal = await fetchKnownTerminalStatus();
9461
9480
  if (terminal) {
9462
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
9481
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
9463
9482
  phase: "cli.play_start_stream_timeout_status_reconcile",
9464
9483
  ms: Date.now() - startedAt,
9465
9484
  ok: true,
@@ -9479,7 +9498,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9479
9498
  lastPhase
9480
9499
  });
9481
9500
  }
9482
- if (lastKnownWorkflowId && (terminalWindowExpired || _chunkIG3GSBBEjs.isTransientPlayRunReadError.call(void 0, error))) {
9501
+ if (lastKnownWorkflowId && (terminalWindowExpired || _chunkHTUSTPP4js.isTransientPlayRunReadError.call(void 0, error))) {
9483
9502
  if (timeout) {
9484
9503
  clearTimeout(timeout);
9485
9504
  }
@@ -9490,7 +9509,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9490
9509
  `
9491
9510
  );
9492
9511
  }
9493
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
9512
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
9494
9513
  phase: "cli.play_start_stream_reconnect",
9495
9514
  ms: Date.now() - startedAt,
9496
9515
  ok: true,
@@ -9517,7 +9536,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9517
9536
  });
9518
9537
  }
9519
9538
  if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
9520
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
9539
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
9521
9540
  phase: "cli.play_start_stream_transient_failure",
9522
9541
  ms: Date.now() - startedAt,
9523
9542
  ok: false,
@@ -9545,7 +9564,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9545
9564
  `[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
9546
9565
  );
9547
9566
  }
9548
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
9567
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
9549
9568
  phase: "cli.play_start_stream_reconnect",
9550
9569
  ms: Date.now() - startedAt,
9551
9570
  ok: true,
@@ -9625,29 +9644,29 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
9625
9644
  "logs"
9626
9645
  ]);
9627
9646
  function formatPlayLogLine(rawLine, state) {
9628
- const classified = _chunkIG3GSBBEjs.classifyLogLine.call(void 0, rawLine);
9647
+ const classified = _chunkHTUSTPP4js.classifyLogLine.call(void 0, rawLine);
9629
9648
  const line = classified.line;
9630
9649
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
9631
- const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _338 => _338[1]]) ? new Date(timestampMatch[1]) : null;
9650
+ const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _341 => _341[1]]) ? new Date(timestampMatch[1]) : null;
9632
9651
  const timestamp = parsedTimestamp && !Number.isNaN(parsedTimestamp.getTime()) ? parsedTimestamp.toLocaleTimeString("en-US", {
9633
9652
  hour12: false,
9634
9653
  hour: "2-digit",
9635
9654
  minute: "2-digit",
9636
9655
  second: "2-digit"
9637
9656
  }) : null;
9638
- const message = _nullishCoalesce(_optionalChain([timestampMatch, 'optionalAccess', _339 => _339[2]]), () => ( line));
9657
+ const message = _nullishCoalesce(_optionalChain([timestampMatch, 'optionalAccess', _342 => _342[2]]), () => ( line));
9639
9658
  const prefix = timestamp ? `${timestamp} ` : "";
9640
9659
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
9641
9660
  const providerWait = formatProviderCapacityWaitLogLine(line);
9642
9661
  if (providerWait && !state.verbose) {
9643
- return _chunkIG3GSBBEjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9662
+ return _chunkHTUSTPP4js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9644
9663
  }
9645
9664
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
9646
9665
  if (mapProgress && !state.verbose) {
9647
- return _chunkIG3GSBBEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9666
+ return _chunkHTUSTPP4js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9648
9667
  }
9649
9668
  if (/\[worker\] picked up run\b/.test(message)) {
9650
- if (!_chunkIG3GSBBEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9669
+ if (!_chunkHTUSTPP4js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9651
9670
  return null;
9652
9671
  }
9653
9672
  if (state.emittedRunnerStarted) {
@@ -9660,7 +9679,7 @@ function formatPlayLogLine(rawLine, state) {
9660
9679
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
9661
9680
  );
9662
9681
  if (mapStart) {
9663
- if (!_chunkIG3GSBBEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9682
+ if (!_chunkHTUSTPP4js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9664
9683
  return null;
9665
9684
  }
9666
9685
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -9670,7 +9689,7 @@ function formatPlayLogLine(rawLine, state) {
9670
9689
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
9671
9690
  );
9672
9691
  if (mapDone) {
9673
- if (!_chunkIG3GSBBEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9692
+ if (!_chunkHTUSTPP4js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9674
9693
  return null;
9675
9694
  }
9676
9695
  const [, results, executed, cached] = mapDone;
@@ -9852,20 +9871,20 @@ function collectDatasetHandleLines(value, path = "result") {
9852
9871
  function buildRunWarnings(status, rowsInfo) {
9853
9872
  const rowOutcomes = readRowOutcomeSummary(status);
9854
9873
  const result = readRecord(status.result);
9855
- const metadata = readRecord(_optionalChain([result, 'optionalAccess', _340 => _340._metadata]));
9856
- const outputWarnings = Array.isArray(_optionalChain([metadata, 'optionalAccess', _341 => _341.outputWarnings])) ? metadata.outputWarnings.map((warning) => readRecord(warning)).filter((warning) => {
9874
+ const metadata = readRecord(_optionalChain([result, 'optionalAccess', _343 => _343._metadata]));
9875
+ const outputWarnings = Array.isArray(_optionalChain([metadata, 'optionalAccess', _344 => _344.outputWarnings])) ? metadata.outputWarnings.map((warning) => readRecord(warning)).filter((warning) => {
9857
9876
  if (!warning) return false;
9858
9877
  return !(rowsInfo && !rowsInfo.complete && warning.reason === "array_preview_limit" && warning.originalItems === rowsInfo.totalRows && warning.retainedItems === rowsInfo.rows.length);
9859
- }).map((warning) => _optionalChain([warning, 'optionalAccess', _342 => _342.message])).filter(
9878
+ }).map((warning) => _optionalChain([warning, 'optionalAccess', _345 => _345.message])).filter(
9860
9879
  (message) => typeof message === "string" && message.trim().length > 0
9861
9880
  ).slice(0, 16) : [];
9862
- const rowOutcomeWarnings = _optionalChain([rowOutcomes, 'optionalAccess', _343 => _343.hasRowFailures]) ? [
9881
+ const rowOutcomeWarnings = _optionalChain([rowOutcomes, 'optionalAccess', _346 => _346.hasRowFailures]) ? [
9863
9882
  `${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.`
9864
9883
  ] : [];
9865
- const supersededRowNotices = (_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _344 => _344.supersededRows]), () => ( 0))) > 0 ? [
9884
+ const supersededRowNotices = (_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _347 => _347.supersededRows]), () => ( 0))) > 0 ? [
9866
9885
  `Latest-write-wins: ${formatSupersededRowsNotice(_nullishCoalesce(rowOutcomes.supersededRows, () => ( 0)))}; the newer write still owns that Runtime Sheet row.`
9867
9886
  ] : [];
9868
- if (status.status === "completed" && _optionalChain([rowsInfo, 'optionalAccess', _345 => _345.totalRows]) === 0) {
9887
+ if (status.status === "completed" && _optionalChain([rowsInfo, 'optionalAccess', _348 => _348.totalRows]) === 0) {
9869
9888
  return [
9870
9889
  ...rowOutcomeWarnings,
9871
9890
  ...supersededRowNotices,
@@ -9884,7 +9903,7 @@ function buildRunWarnings(status, rowsInfo) {
9884
9903
  return [...rowOutcomeWarnings, ...supersededRowNotices, ...outputWarnings];
9885
9904
  }
9886
9905
  function buildRunNextCommands(status) {
9887
- const runId = _optionalChain([status, 'access', _346 => _346.runId, 'optionalAccess', _347 => _347.trim, 'call', _348 => _348()]);
9906
+ const runId = _optionalChain([status, 'access', _349 => _349.runId, 'optionalAccess', _350 => _350.trim, 'call', _351 => _351()]);
9888
9907
  if (!runId) {
9889
9908
  const playName = extractRunPlayName(status);
9890
9909
  return playName ? {
@@ -9910,8 +9929,9 @@ function buildRunNextCommands(status) {
9910
9929
  commands.failedLogs = `deepline runs logs ${runId} --failed`;
9911
9930
  if (status.rerunCommand) commands.run = status.rerunCommand;
9912
9931
  }
9913
- if (status.dashboardUrl) {
9914
- commands.open = `Open ${status.dashboardUrl} to see results.`;
9932
+ const runUrl = playStatusRunUrl(status);
9933
+ if (runUrl) {
9934
+ commands.open = `Open ${runUrl} to see results.`;
9915
9935
  }
9916
9936
  return commands;
9917
9937
  }
@@ -10035,14 +10055,14 @@ function extractToolIdFromErrorText(text) {
10035
10055
  return null;
10036
10056
  }
10037
10057
  const lowerToolMatch = /\btool\s+([A-Za-z0-9_.:-]+)\s+\d{3}\b/.exec(text);
10038
- if (_optionalChain([lowerToolMatch, 'optionalAccess', _349 => _349[1]])) {
10058
+ if (_optionalChain([lowerToolMatch, 'optionalAccess', _352 => _352[1]])) {
10039
10059
  return lowerToolMatch[1];
10040
10060
  }
10041
10061
  const upperToolMatch = /\bTool\s+([A-Za-z0-9_.:-]+)\s+failed\b/.exec(text);
10042
- return _nullishCoalesce(_optionalChain([upperToolMatch, 'optionalAccess', _350 => _350[1]]), () => ( null));
10062
+ return _nullishCoalesce(_optionalChain([upperToolMatch, 'optionalAccess', _353 => _353[1]]), () => ( null));
10043
10063
  }
10044
10064
  function isInsufficientCreditsBilling(billing) {
10045
- return _optionalChain([billing, 'optionalAccess', _351 => _351.kind]) === "insufficient_credits";
10065
+ return _optionalChain([billing, 'optionalAccess', _354 => _354.kind]) === "insufficient_credits";
10046
10066
  }
10047
10067
  function extractBillingForStatus(status, error) {
10048
10068
  const errorBilling = getObjectField(status, "errorBilling");
@@ -10084,8 +10104,8 @@ function formatInsufficientCreditsMessage(input) {
10084
10104
  function buildInsufficientCreditsSummaryLines(input) {
10085
10105
  const progress = input.status.progress;
10086
10106
  const rowsInfo = extractCanonicalRowsInfo(input.status);
10087
- const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "completed"), () => ( getNumericField(progress, "completedRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _352 => _352.rows, 'access', _353 => _353.length]))), () => ( null));
10088
- const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "total"), () => ( getNumericField(progress, "totalRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _354 => _354.totalRows]))), () => ( null));
10107
+ const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "completed"), () => ( getNumericField(progress, "completedRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _355 => _355.rows, 'access', _356 => _356.length]))), () => ( null));
10108
+ const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "total"), () => ( getNumericField(progress, "totalRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _357 => _357.totalRows]))), () => ( null));
10089
10109
  const lines = [
10090
10110
  " status: stopped_insufficient_credits",
10091
10111
  completed === null ? " completed rows: unknown" : ` completed rows: ${formatInteger(completed)}${total !== null ? ` of ${formatInteger(total)}` : ""}`,
@@ -10104,7 +10124,7 @@ function buildInsufficientCreditsSummaryLines(input) {
10104
10124
  lines.push(" ask user: ask whether they want to add Deepline credits");
10105
10125
  lines.push(` top up after approval: ${recovery.topUp}`);
10106
10126
  lines.push(` checkout fallback: ${recovery.checkout}`);
10107
- const runId = _optionalChain([input, 'access', _355 => _355.status, 'access', _356 => _356.runId, 'optionalAccess', _357 => _357.trim, 'call', _358 => _358()]);
10127
+ const runId = _optionalChain([input, 'access', _358 => _358.status, 'access', _359 => _359.runId, 'optionalAccess', _360 => _360.trim, 'call', _361 => _361()]);
10108
10128
  if (runId) {
10109
10129
  lines.push(` inspect: deepline runs get ${runId}`);
10110
10130
  lines.push(
@@ -10186,10 +10206,10 @@ function normalizeRunStatusForEnvelope(status) {
10186
10206
  function normalizeProgressForEnvelope(status, rowsInfo) {
10187
10207
  const progress = status.progress;
10188
10208
  const rowOutcomes = readRowOutcomeSummary(status);
10189
- const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _359 => _359.totalRows]), () => ( getNumericField(progress, "totalRows"))), () => ( getNumericField(progress, "total"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _360 => _360.totalRows]))), () => ( null));
10190
- const failed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _361 => _361.failedRows]), () => ( getNumericField(progress, "failed"))), () => ( getNumericField(progress, "failedRows"))), () => ( null));
10191
- const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _362 => _362.completedRows]), () => ( getNumericField(progress, "completed"))), () => ( getNumericField(progress, "completedRows"))), () => ( (status.status === "completed" ? total : null)));
10192
- const supersededRows = _nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _363 => _363.supersededRows]), () => ( getNumericField(progress, "supersededRows")));
10209
+ const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _362 => _362.totalRows]), () => ( getNumericField(progress, "totalRows"))), () => ( getNumericField(progress, "total"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _363 => _363.totalRows]))), () => ( null));
10210
+ const failed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _364 => _364.failedRows]), () => ( getNumericField(progress, "failed"))), () => ( getNumericField(progress, "failedRows"))), () => ( null));
10211
+ const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _365 => _365.completedRows]), () => ( getNumericField(progress, "completed"))), () => ( getNumericField(progress, "completedRows"))), () => ( (status.status === "completed" ? total : null)));
10212
+ const supersededRows = _nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _366 => _366.supersededRows]), () => ( getNumericField(progress, "supersededRows")));
10193
10213
  const supersededOffset = _nullishCoalesce(supersededRows, () => ( 0));
10194
10214
  const progressPending = getNumericField(progress, "pending");
10195
10215
  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)));
@@ -10259,7 +10279,7 @@ function normalizeErrorsForEnvelope(status, error) {
10259
10279
  ];
10260
10280
  }
10261
10281
  function normalizeLogsForEnvelope(status) {
10262
- const logs = Array.isArray(_optionalChain([status, 'access', _364 => _364.progress, 'optionalAccess', _365 => _365.logs])) ? status.progress.logs : [];
10282
+ const logs = Array.isArray(_optionalChain([status, 'access', _367 => _367.progress, 'optionalAccess', _368 => _368.logs])) ? status.progress.logs : [];
10263
10283
  const totalCount = logs.length;
10264
10284
  const entries = logs.slice(Math.max(0, logs.length - RUN_LOG_PREVIEW_LIMIT));
10265
10285
  const firstSequence = entries.length === 0 ? null : logs.length - entries.length + 1;
@@ -10301,6 +10321,15 @@ function getPlayRunPackage(status) {
10301
10321
  const packaged = status.package;
10302
10322
  return isPlayRunPackageValue(packaged) ? packaged : null;
10303
10323
  }
10324
+ function playStatusRunUrl(status) {
10325
+ const run = readRecord(_optionalChain([getPlayRunPackage, 'call', _369 => _369(status), 'optionalAccess', _370 => _370.run]));
10326
+ const text = (value) => typeof value === "string" && value ? value : void 0;
10327
+ return resolvePlayRunUrl({
10328
+ runId: _nullishCoalesce(text(_optionalChain([run, 'optionalAccess', _371 => _371.id])), () => ( status.runId)),
10329
+ runUrl: _nullishCoalesce(status.runUrl, () => ( text(_optionalChain([run, 'optionalAccess', _372 => _372.runUrl])))),
10330
+ dashboardUrl: _nullishCoalesce(status.dashboardUrl, () => ( text(_optionalChain([run, 'optionalAccess', _373 => _373.dashboardUrl]))))
10331
+ });
10332
+ }
10304
10333
  function withTerminalPlayIdentity(status, playName) {
10305
10334
  if (!playName.trim() || getPlayRunPackage(status)) {
10306
10335
  return status;
@@ -10316,7 +10345,7 @@ function compactPlayStatus(status) {
10316
10345
  const packaged = getPlayRunPackage(status);
10317
10346
  if (packaged) {
10318
10347
  const packagedRun = readRecord(packaged.run);
10319
- const packagedError = typeof _optionalChain([packagedRun, 'optionalAccess', _366 => _366.error]) === "string" ? packagedRun.error : null;
10348
+ const packagedError = typeof _optionalChain([packagedRun, 'optionalAccess', _374 => _374.error]) === "string" ? packagedRun.error : null;
10320
10349
  const error2 = _nullishCoalesce(selectRunErrorForDisplay(status), () => ( (typeof status.error === "string" ? String(status.error) : packagedError)));
10321
10350
  const compactError = error2 ? compactRunErrorForEnvelope(error2, status.runId) : null;
10322
10351
  const rowOutcomes2 = readRowOutcomeSummary(status);
@@ -10386,6 +10415,7 @@ function compactPlayStatus(status) {
10386
10415
  ...typeof status.name === "string" ? { name: status.name } : {},
10387
10416
  ...typeof status.playName === "string" ? { playName: status.playName } : {},
10388
10417
  ...status.dashboardUrl ? { dashboardUrl: status.dashboardUrl } : {},
10418
+ ...playStatusRunUrl(status) ? { runUrl: playStatusRunUrl(status) } : {},
10389
10419
  status: status.status,
10390
10420
  run: normalizeRunStatusForEnvelope(status),
10391
10421
  progress: normalizeProgressForEnvelope(status, rowsInfo),
@@ -10467,7 +10497,7 @@ function formatTopValuesPart(value) {
10467
10497
  }
10468
10498
  function formatPackageDatasetSummaryLines(summary, indent = " ") {
10469
10499
  const record3 = readRecord(summary);
10470
- const columnStats = readRecord(_optionalChain([record3, 'optionalAccess', _367 => _367.columnStats]));
10500
+ const columnStats = readRecord(_optionalChain([record3, 'optionalAccess', _375 => _375.columnStats]));
10471
10501
  if (!record3 || !columnStats) {
10472
10502
  return [];
10473
10503
  }
@@ -10555,7 +10585,7 @@ function packageDatasetRecords(packaged) {
10555
10585
  if (catalog.length > 0) return catalog;
10556
10586
  return readRecordArray(packaged.steps).flatMap((step) => {
10557
10587
  const output = readRecord(step.output);
10558
- return _optionalChain([output, 'optionalAccess', _368 => _368.kind]) === "dataset" ? [output] : [];
10588
+ return _optionalChain([output, 'optionalAccess', _376 => _376.kind]) === "dataset" ? [output] : [];
10559
10589
  });
10560
10590
  }
10561
10591
  function packageReturnedDatasetIdentity(packaged) {
@@ -10564,7 +10594,7 @@ function packageReturnedDatasetIdentity(packaged) {
10564
10594
  const outputs = _nullishCoalesce(readRecord(packaged.outputs), () => ( {}));
10565
10595
  for (const outputValue of Object.values(outputs)) {
10566
10596
  const output = readRecord(outputValue);
10567
- if (_optionalChain([output, 'optionalAccess', _369 => _369.kind]) !== "dataset") continue;
10597
+ if (_optionalChain([output, 'optionalAccess', _377 => _377.kind]) !== "dataset") continue;
10568
10598
  if (typeof output.datasetId === "string" && output.datasetId.trim()) {
10569
10599
  datasetIds.add(output.datasetId.trim());
10570
10600
  }
@@ -10600,7 +10630,7 @@ function formatRunStepProgress(progress, includeRowOutcomes = false) {
10600
10630
  }
10601
10631
  function formatPackageDatasetActionLines(packaged, options) {
10602
10632
  const returned = packageReturnedDatasetIdentity(packaged);
10603
- const includeSummary = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _370 => _370.includeSummary]), () => ( true));
10633
+ const includeSummary = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _378 => _378.includeSummary]), () => ( true));
10604
10634
  const lines = [];
10605
10635
  const steps = readRecordArray(packaged.steps);
10606
10636
  const stepsByDatasetId = /* @__PURE__ */ new Map();
@@ -10609,10 +10639,10 @@ function formatPackageDatasetActionLines(packaged, options) {
10609
10639
  for (const step of steps) {
10610
10640
  if (step.kind !== "dataset") continue;
10611
10641
  const output = readRecord(step.output);
10612
- if (typeof _optionalChain([output, 'optionalAccess', _371 => _371.datasetId]) === "string") {
10642
+ if (typeof _optionalChain([output, 'optionalAccess', _379 => _379.datasetId]) === "string") {
10613
10643
  stepsByDatasetId.set(output.datasetId, step);
10614
10644
  }
10615
- if (typeof _optionalChain([output, 'optionalAccess', _372 => _372.path]) === "string") {
10645
+ if (typeof _optionalChain([output, 'optionalAccess', _380 => _380.path]) === "string") {
10616
10646
  stepsByPath.set(output.path, step);
10617
10647
  }
10618
10648
  if (typeof step.id === "string") {
@@ -10626,8 +10656,8 @@ function formatPackageDatasetActionLines(packaged, options) {
10626
10656
  const category = isReturned ? "returned" : dataset.recovered === true ? "recovered" : "persisted";
10627
10657
  const rowCount = typeof dataset.rowCount === "number" && Number.isFinite(dataset.rowCount) ? Math.max(0, Math.trunc(dataset.rowCount)) : null;
10628
10658
  const lifecycle = readRecord(dataset.lifecycle);
10629
- const countUnconfirmed = _optionalChain([lifecycle, 'optionalAccess', _373 => _373.complete]) === false;
10630
- const persistedLowerBound = typeof _optionalChain([lifecycle, 'optionalAccess', _374 => _374.persistedRowsAtLeast]) === "number" && Number.isFinite(lifecycle.persistedRowsAtLeast) ? Math.max(0, Math.trunc(lifecycle.persistedRowsAtLeast)) : 0;
10659
+ const countUnconfirmed = _optionalChain([lifecycle, 'optionalAccess', _381 => _381.complete]) === false;
10660
+ const persistedLowerBound = typeof _optionalChain([lifecycle, 'optionalAccess', _382 => _382.persistedRowsAtLeast]) === "number" && Number.isFinite(lifecycle.persistedRowsAtLeast) ? Math.max(0, Math.trunc(lifecycle.persistedRowsAtLeast)) : 0;
10631
10661
  const actions2 = _nullishCoalesce(readRecord(dataset.actions), () => ( {}));
10632
10662
  if (countUnconfirmed) {
10633
10663
  lines.push(
@@ -10645,7 +10675,7 @@ function formatPackageDatasetActionLines(packaged, options) {
10645
10675
  }
10646
10676
  }
10647
10677
  const step = _nullishCoalesce(_nullishCoalesce((datasetId ? stepsByDatasetId.get(datasetId) : void 0), () => ( stepsByPath.get(path))), () => ( (typeof dataset.tableNamespace === "string" ? stepsByNamespace.get(dataset.tableNamespace) : void 0)));
10648
- const progress = readRecord(_optionalChain([step, 'optionalAccess', _375 => _375.progress]));
10678
+ const progress = readRecord(_optionalChain([step, 'optionalAccess', _383 => _383.progress]));
10649
10679
  if (progress) {
10650
10680
  lines.push(` progress: ${formatRunStepProgress(progress)}`);
10651
10681
  }
@@ -10659,10 +10689,10 @@ function formatPackageDatasetActionLines(packaged, options) {
10659
10689
  }
10660
10690
  const exportAction = readRecord(actions2.exportCsv);
10661
10691
  const exportCommand = actionToCommand(exportAction);
10662
- const exportScope = readRecord(_optionalChain([exportAction, 'optionalAccess', _376 => _376.scope]));
10692
+ const exportScope = readRecord(_optionalChain([exportAction, 'optionalAccess', _384 => _384.scope]));
10663
10693
  const queryAction = readRecord(actions2.query);
10664
- const queryScope = readRecord(_optionalChain([queryAction, 'optionalAccess', _377 => _377.scope]));
10665
- const runQueryCommand = _optionalChain([queryScope, 'optionalAccess', _378 => _378.kind]) === "run" ? actionToCommand(queryAction) : null;
10694
+ const queryScope = readRecord(_optionalChain([queryAction, 'optionalAccess', _385 => _385.scope]));
10695
+ const runQueryCommand = _optionalChain([queryScope, 'optionalAccess', _386 => _386.kind]) === "run" ? actionToCommand(queryAction) : null;
10666
10696
  const currentQueryCommand = actionToCommand(actions2.queryCurrentTable);
10667
10697
  const legacyQueryCommand = actionToCommand(actions2.query);
10668
10698
  if (runQueryCommand) {
@@ -10674,11 +10704,11 @@ function formatPackageDatasetActionLines(packaged, options) {
10674
10704
  }
10675
10705
  if (exportCommand) {
10676
10706
  lines.push(
10677
- _optionalChain([exportScope, 'optionalAccess', _379 => _379.kind]) === "database" ? ` export current table (may include other runs): ${exportCommand}` : ` export this run: ${exportCommand}`
10707
+ _optionalChain([exportScope, 'optionalAccess', _387 => _387.kind]) === "database" ? ` export current table (may include other runs): ${exportCommand}` : ` export this run: ${exportCommand}`
10678
10708
  );
10679
10709
  }
10680
10710
  const unavailable = readRecord(dataset.exportUnavailable);
10681
- if (typeof _optionalChain([unavailable, 'optionalAccess', _380 => _380.reason]) === "string" && typeof unavailable.message === "string") {
10711
+ if (typeof _optionalChain([unavailable, 'optionalAccess', _388 => _388.reason]) === "string" && typeof unavailable.message === "string") {
10682
10712
  lines.push(
10683
10713
  ` export unavailable (${unavailable.reason}): ${unavailable.message}`
10684
10714
  );
@@ -10695,7 +10725,7 @@ function packageSavedRowCount(packaged) {
10695
10725
  }
10696
10726
  function runtimeLimitWindowLabel(runtimeLimitFailure) {
10697
10727
  const message = _nullishCoalesce(getStringField(runtimeLimitFailure, "message"), () => ( ""));
10698
- const configuredSeconds = _optionalChain([/\bconfigured\s+(\d+)\s+second(?:s)?\s+runtime limit\b/i, 'access', _381 => _381.exec, 'call', _382 => _382(message), 'optionalAccess', _383 => _383[1]]);
10728
+ const configuredSeconds = _optionalChain([/\bconfigured\s+(\d+)\s+second(?:s)?\s+runtime limit\b/i, 'access', _389 => _389.exec, 'call', _390 => _390(message), 'optionalAccess', _391 => _391[1]]);
10699
10729
  if (configuredSeconds) {
10700
10730
  const seconds = Number(configuredSeconds);
10701
10731
  if (Number.isSafeInteger(seconds) && seconds > 0) {
@@ -10742,7 +10772,7 @@ function formatPackageValueOutputLines(packaged) {
10742
10772
  if (!outputs) return [];
10743
10773
  const returned = Object.entries(outputs).filter(([, output]) => {
10744
10774
  const record3 = readRecord(output);
10745
- return _optionalChain([record3, 'optionalAccess', _384 => _384.kind]) === "dataset" || _optionalChain([record3, 'optionalAccess', _385 => _385.kind]) === "value" && Object.prototype.hasOwnProperty.call(record3, "value");
10775
+ return _optionalChain([record3, 'optionalAccess', _392 => _392.kind]) === "dataset" || _optionalChain([record3, 'optionalAccess', _393 => _393.kind]) === "value" && Object.prototype.hasOwnProperty.call(record3, "value");
10746
10776
  });
10747
10777
  if (returned.length === 0) return [];
10748
10778
  const datasets = packageDatasetRecords(packaged);
@@ -10762,10 +10792,10 @@ function formatPackageValueOutputLines(packaged) {
10762
10792
  (candidate) => typeof output.datasetId === "string" && candidate.datasetId === output.datasetId || candidate.path === path
10763
10793
  );
10764
10794
  const stepOutput = datasetSteps.map((step) => readRecord(step.output)).find(
10765
- (candidate) => typeof output.datasetId === "string" && _optionalChain([candidate, 'optionalAccess', _386 => _386.datasetId]) === output.datasetId || _optionalChain([candidate, 'optionalAccess', _387 => _387.path]) === path
10795
+ (candidate) => typeof output.datasetId === "string" && _optionalChain([candidate, 'optionalAccess', _394 => _394.datasetId]) === output.datasetId || _optionalChain([candidate, 'optionalAccess', _395 => _395.path]) === path
10766
10796
  );
10767
- const preview = readRecord(_nullishCoalesce(_optionalChain([stepOutput, 'optionalAccess', _388 => _388.preview]), () => ( _optionalChain([dataset, 'optionalAccess', _389 => _389.preview]))));
10768
- const rows = Array.isArray(_optionalChain([preview, 'optionalAccess', _390 => _390.rows])) ? preview.rows.slice(0, 2) : [];
10797
+ const preview = readRecord(_nullishCoalesce(_optionalChain([stepOutput, 'optionalAccess', _396 => _396.preview]), () => ( _optionalChain([dataset, 'optionalAccess', _397 => _397.preview]))));
10798
+ const rows = Array.isArray(_optionalChain([preview, 'optionalAccess', _398 => _398.rows])) ? preview.rows.slice(0, 2) : [];
10769
10799
  if (rows.length > 0) {
10770
10800
  lines.push(` sample rows (${rows.length}):`);
10771
10801
  lines.push(
@@ -10791,7 +10821,7 @@ function formatPackageValueOutputLines(packaged) {
10791
10821
  return lines;
10792
10822
  }
10793
10823
  function authoredPackageStackFrames(packaged) {
10794
- const stack = readRecordArray(packaged.errors).map((entry) => typeof entry.stack === "string" ? entry.stack : null).find((candidate) => Boolean(_optionalChain([candidate, 'optionalAccess', _391 => _391.trim, 'call', _392 => _392()])));
10824
+ const stack = readRecordArray(packaged.errors).map((entry) => typeof entry.stack === "string" ? entry.stack : null).find((candidate) => Boolean(_optionalChain([candidate, 'optionalAccess', _399 => _399.trim, 'call', _400 => _400()])));
10795
10825
  if (!stack) return [];
10796
10826
  return stack.split("\n").map((line) => line.trim()).filter((line) => line.startsWith("at ")).filter(
10797
10827
  (line) => !line.includes("/virtual/deepline-plays/") && !line.includes("/apps/play-runner/") && !line.includes("/shared_libs/play-runtime/") && !line.includes("node:internal")
@@ -10823,9 +10853,9 @@ function activityIsoTimestamp(value) {
10823
10853
  }
10824
10854
  function buildRunActivityTextLines(run) {
10825
10855
  const activity = readRecord(run.activity);
10826
- const observation = readRecord(_optionalChain([activity, 'optionalAccess', _393 => _393.observation]));
10827
- const state = readRecord(_optionalChain([observation, 'optionalAccess', _394 => _394.state]));
10828
- const target = readRecord(_optionalChain([observation, 'optionalAccess', _395 => _395.target]));
10856
+ const observation = readRecord(_optionalChain([activity, 'optionalAccess', _401 => _401.observation]));
10857
+ const state = readRecord(_optionalChain([observation, 'optionalAccess', _402 => _402.state]));
10858
+ const target = readRecord(_optionalChain([observation, 'optionalAccess', _403 => _403.target]));
10829
10859
  if (!activity || !observation || !state) return [];
10830
10860
  const kind = typeof state.kind === "string" ? state.kind : "unknown";
10831
10861
  if (kind === "completed") return [];
@@ -10870,11 +10900,11 @@ function buildRunActivityTextLines(run) {
10870
10900
  }
10871
10901
  function formatObservedRunCounter(value) {
10872
10902
  const counter = readRecord(value);
10873
- const count2 = _optionalChain([counter, 'optionalAccess', _396 => _396.value]);
10903
+ const count2 = _optionalChain([counter, 'optionalAccess', _404 => _404.value]);
10874
10904
  if (typeof count2 !== "number" || !Number.isSafeInteger(count2) || count2 < 0) {
10875
10905
  return "unknown";
10876
10906
  }
10877
- return _optionalChain([counter, 'optionalAccess', _397 => _397.confirmed]) === true ? formatInteger(count2) : `${formatInteger(count2)} observed`;
10907
+ return _optionalChain([counter, 'optionalAccess', _405 => _405.confirmed]) === true ? formatInteger(count2) : `${formatInteger(count2)} observed`;
10878
10908
  }
10879
10909
  function buildRunStatusEvidenceTextLines(packaged) {
10880
10910
  const evidence = readRecord(packaged.runStatus);
@@ -10887,13 +10917,13 @@ function buildRunStatusEvidenceTextLines(packaged) {
10887
10917
  );
10888
10918
  }
10889
10919
  const source = readRecord(evidence.source);
10890
- if (_optionalChain([source, 'optionalAccess', _398 => _398.aligned]) === false) {
10920
+ if (_optionalChain([source, 'optionalAccess', _406 => _406.aligned]) === false) {
10891
10921
  lines.push(
10892
10922
  ` consistency: run snapshot event ${String(source.runSnapshotLedgerNextSeq)} and progress event ${String(source.ledgerNextSeq)} differ; retry this read to align them`
10893
10923
  );
10894
10924
  }
10895
10925
  const focus = readRecord(evidence.focusStep);
10896
- const rows = readRecord(_optionalChain([focus, 'optionalAccess', _399 => _399.rows]));
10926
+ const rows = readRecord(_optionalChain([focus, 'optionalAccess', _407 => _407.rows]));
10897
10927
  if (focus) {
10898
10928
  const id = typeof focus.id === "string" && focus.id.trim() ? focus.id.trim() : "unknown step";
10899
10929
  const label = typeof focus.label === "string" && focus.label.trim() ? ` (${focus.label.trim()})` : "";
@@ -10901,7 +10931,7 @@ function buildRunStatusEvidenceTextLines(packaged) {
10901
10931
  const known = readRecordArray(packaged.steps).find(
10902
10932
  (step) => typeof step.id === "string" && (id === step.id || id.endsWith(`:${step.id}`)) && typeof step.label === "string"
10903
10933
  );
10904
- const state = typeof _optionalChain([known, 'optionalAccess', _400 => _400.label]) === "string" ? known.label : typeof focus.status === "string" && focus.status.trim() ? formatNodeExecutionState(
10934
+ const state = typeof _optionalChain([known, 'optionalAccess', _408 => _408.label]) === "string" ? known.label : typeof focus.status === "string" && focus.status.trim() ? formatNodeExecutionState(
10905
10935
  deriveNodeExecutionState({
10906
10936
  reported: {
10907
10937
  status: focus.status.trim(),
@@ -10911,7 +10941,7 @@ function buildRunStatusEvidenceTextLines(packaged) {
10911
10941
  total: rows.total
10912
10942
  } : null
10913
10943
  },
10914
- runStatus: _optionalChain([run, 'optionalAccess', _401 => _401.status])
10944
+ runStatus: _optionalChain([run, 'optionalAccess', _409 => _409.status])
10915
10945
  })
10916
10946
  ) : null;
10917
10947
  lines.push(` current step: ${id}${label}${state ? `: ${state}` : ""}`);
@@ -10959,7 +10989,7 @@ function formatRecentRunLogLines(value) {
10959
10989
  (line) => typeof line === "string"
10960
10990
  );
10961
10991
  if (tail.length === 0) return [];
10962
- const shown = tail.map((line) => _chunkIG3GSBBEjs.classifyLogLine.call(void 0, line)).filter(
10992
+ const shown = tail.map((line) => _chunkHTUSTPP4js.classifyLogLine.call(void 0, line)).filter(
10963
10993
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
10964
10994
  ).slice(-8);
10965
10995
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11003,7 +11033,7 @@ function buildRunPackageTextLines(packaged) {
11003
11033
  lines.push(` recovery: ${mode}${sourceRunId}`);
11004
11034
  }
11005
11035
  const runError = typeof run.error === "string" && run.error.trim() ? run.error.trim() : null;
11006
- const structuredRuntimeLimitMessage = typeof _optionalChain([runtimeLimitFailure, 'optionalAccess', _402 => _402.message]) === "string" && runtimeLimitFailure.message.trim() ? `${typeof runtimeLimitFailure.code === "string" ? runtimeLimitFailure.code : "RUNTIME_LIMIT_EXCEEDED"}: ${runtimeLimitFailure.message.trim()}` : null;
11036
+ const structuredRuntimeLimitMessage = typeof _optionalChain([runtimeLimitFailure, 'optionalAccess', _410 => _410.message]) === "string" && runtimeLimitFailure.message.trim() ? `${typeof runtimeLimitFailure.code === "string" ? runtimeLimitFailure.code : "RUNTIME_LIMIT_EXCEEDED"}: ${runtimeLimitFailure.message.trim()}` : null;
11007
11037
  const displayRunError = _nullishCoalesce(structuredRuntimeLimitMessage, () => ( runError));
11008
11038
  if (!isRuntimeLimitCheckpoint && displayRunError && (status === "failed" || status === "cancelled")) {
11009
11039
  lines.push(` error: ${truncateErrorForDisplay(displayRunError, runId)}`);
@@ -11014,11 +11044,11 @@ function buildRunPackageTextLines(packaged) {
11014
11044
  }
11015
11045
  }
11016
11046
  const failedLogs = readRecord(packaged.failedLogs);
11017
- const failedLogEntries = Array.isArray(_optionalChain([failedLogs, 'optionalAccess', _403 => _403.entries])) ? failedLogs.entries.filter(
11047
+ const failedLogEntries = Array.isArray(_optionalChain([failedLogs, 'optionalAccess', _411 => _411.entries])) ? failedLogs.entries.filter(
11018
11048
  (entry) => typeof entry === "string"
11019
11049
  ) : [];
11020
- const failedLogAssociation = typeof _optionalChain([failedLogs, 'optionalAccess', _404 => _404.association]) === "string" ? failedLogs.association : null;
11021
- const failedLogWarning = typeof _optionalChain([failedLogs, 'optionalAccess', _405 => _405.warning]) === "string" && failedLogs.warning.trim() ? failedLogs.warning.trim() : null;
11050
+ const failedLogAssociation = typeof _optionalChain([failedLogs, 'optionalAccess', _412 => _412.association]) === "string" ? failedLogs.association : null;
11051
+ const failedLogWarning = typeof _optionalChain([failedLogs, 'optionalAccess', _413 => _413.warning]) === "string" && failedLogs.warning.trim() ? failedLogs.warning.trim() : null;
11022
11052
  if (failedLogEntries.length > 0) {
11023
11053
  lines.push(" failed logs:");
11024
11054
  lines.push(...failedLogEntries.map((entry) => ` ${entry}`));
@@ -11037,8 +11067,8 @@ function buildRunPackageTextLines(packaged) {
11037
11067
  )
11038
11068
  ).slice(0, 16) : [];
11039
11069
  lines.push(...packageWarnings.map((warning) => ` warning: ${warning}`));
11040
- const failedLogNext = readRecord(_optionalChain([failedLogs, 'optionalAccess', _406 => _406.next]));
11041
- if (failedLogWarning && typeof _optionalChain([failedLogNext, 'optionalAccess', _407 => _407.logs]) === "string") {
11070
+ const failedLogNext = readRecord(_optionalChain([failedLogs, 'optionalAccess', _414 => _414.next]));
11071
+ if (failedLogWarning && typeof _optionalChain([failedLogNext, 'optionalAccess', _415 => _415.logs]) === "string") {
11042
11072
  lines.push(
11043
11073
  failedLogAssociation === "retained_before_truncation" ? ` retained logs: ${failedLogNext.logs}` : ` retry failed logs: ${failedLogNext.logs}`
11044
11074
  );
@@ -11066,20 +11096,20 @@ function buildRunPackageTextLines(packaged) {
11066
11096
  const stepStatus = typeof step.status === "string" ? step.status : status;
11067
11097
  const output = step.output && typeof step.output === "object" && !Array.isArray(step.output) ? step.output : null;
11068
11098
  const rowCount = output && typeof output.rowCount === "number" ? ` rows=${formatInteger(output.rowCount)}` : "";
11069
- const preview = _optionalChain([output, 'optionalAccess', _408 => _408.preview]) && typeof output.preview === "object" && !Array.isArray(output.preview) ? output.preview : null;
11070
- const previewRows = Array.isArray(_optionalChain([preview, 'optionalAccess', _409 => _409.rows])) ? preview.rows.length : null;
11099
+ const preview = _optionalChain([output, 'optionalAccess', _416 => _416.preview]) && typeof output.preview === "object" && !Array.isArray(output.preview) ? output.preview : null;
11100
+ const previewRows = Array.isArray(_optionalChain([preview, 'optionalAccess', _417 => _417.rows])) ? preview.rows.length : null;
11071
11101
  lines.push(` ${kind} ${id}: ${stepStatus}${rowCount}`);
11072
- lines.push(...formatPackageDatasetSummaryLines(_optionalChain([output, 'optionalAccess', _410 => _410.summary])));
11102
+ lines.push(...formatPackageDatasetSummaryLines(_optionalChain([output, 'optionalAccess', _418 => _418.summary])));
11073
11103
  if (previewRows !== null) {
11074
11104
  lines.push(
11075
- ` preview=${previewRows}${_optionalChain([preview, 'optionalAccess', _411 => _411.truncated]) ? " truncated" : ""}`
11105
+ ` preview=${previewRows}${_optionalChain([preview, 'optionalAccess', _419 => _419.truncated]) ? " truncated" : ""}`
11076
11106
  );
11077
11107
  }
11078
11108
  }
11079
11109
  const inspectCommand = actionToCommand(next.inspect);
11080
11110
  const fullResultCommand = actionToCommand(next.full);
11081
11111
  const hasCatalogExportAction = packageDatasetRecords(packaged).some(
11082
- (dataset) => Boolean(actionToCommand(_optionalChain([readRecord, 'call', _412 => _412(dataset.actions), 'optionalAccess', _413 => _413.exportCsv])))
11112
+ (dataset) => Boolean(actionToCommand(_optionalChain([readRecord, 'call', _420 => _420(dataset.actions), 'optionalAccess', _421 => _421.exportCsv])))
11083
11113
  );
11084
11114
  const legacyExportCommand = hasCatalogExportAction ? null : actionToCommand(next.export);
11085
11115
  const runAgainCommand = typeof next.run === "string" && next.run.trim() ? next.run.trim() : null;
@@ -11144,7 +11174,7 @@ function withOrdinaryRunAgainCommand(status, options, resolvedRevisionId) {
11144
11174
  }
11145
11175
  function buildBillingRollupTextLines(status) {
11146
11176
  const billing = status.billing;
11147
- const rollup = _optionalChain([billing, 'optionalAccess', _414 => _414.rollup]);
11177
+ const rollup = _optionalChain([billing, 'optionalAccess', _422 => _422.rollup]);
11148
11178
  if (!rollup) return [];
11149
11179
  const total = formatCreditAmount2(rollup.totalCreditsRollup);
11150
11180
  if (rollup.childCredits > 0 && rollup.descendantRunCount > 0) {
@@ -11163,7 +11193,7 @@ function buildBillingRollupTextLines(status) {
11163
11193
  return [` cost: ${total} credits`];
11164
11194
  }
11165
11195
  function playRunRateLimitedNotice(status) {
11166
- const notice = _nullishCoalesce(_optionalChain([getPlayRunPackage, 'call', _415 => _415(status), 'optionalAccess', _416 => _416.rateLimited]), () => ( status.rateLimited));
11196
+ const notice = _nullishCoalesce(_optionalChain([getPlayRunPackage, 'call', _423 => _423(status), 'optionalAccess', _424 => _424.rateLimited]), () => ( status.rateLimited));
11167
11197
  return notice && typeof notice === "object" ? notice : null;
11168
11198
  }
11169
11199
  function withRateLimitedNotice(status, notice) {
@@ -11184,6 +11214,7 @@ function buildRunLaunch(status) {
11184
11214
  "apiVersion",
11185
11215
  "rateLimited",
11186
11216
  "dashboardUrl",
11217
+ "runUrl",
11187
11218
  "progress",
11188
11219
  "rowOutcomes",
11189
11220
  "errors",
@@ -11203,13 +11234,15 @@ function buildPlayCompletionTextLines(status) {
11203
11234
  const overview = buildRunOverview(status);
11204
11235
  const { run } = overview;
11205
11236
  const failed = run.status === "failed";
11206
- const label = run.status === "completed" ? _optionalChain([overview, 'access', _417 => _417.rowOutcomes, 'optionalAccess', _418 => _418.hasRowFailures]) ? "Completed with row failures" : "Completed" : failed ? "Failed" : run.status;
11237
+ const label = run.status === "completed" ? _optionalChain([overview, 'access', _425 => _425.rowOutcomes, 'optionalAccess', _426 => _426.hasRowFailures]) ? "Completed with row failures" : "Completed" : failed ? "Failed" : run.status;
11207
11238
  const rateLimited = playRunRateLimitedNotice(status);
11208
11239
  const lines = [
11209
11240
  ...rateLimited ? [rateLimited.message] : [],
11210
11241
  `${label} ${_nullishCoalesce(_nullishCoalesce(run.playName, () => ( status.playName)), () => ( "Play"))}`,
11211
11242
  `Run: ${run.id}`
11212
11243
  ];
11244
+ const runUrl = playStatusRunUrl(status);
11245
+ if (runUrl) lines.push(`Run page: ${runUrl}`);
11213
11246
  for (const failure of overview.failures.steps) {
11214
11247
  lines.push(
11215
11248
  `Failed step: ${failure.stepId}${failure.message ? ` \u2014 ${failure.message}` : ""}`
@@ -11225,7 +11258,7 @@ function buildPlayCompletionTextLines(status) {
11225
11258
  ...formatJsonPreview(compactReturnValue(overview.result))
11226
11259
  );
11227
11260
  }
11228
- if (_optionalChain([overview, 'access', _419 => _419.rowOutcomes, 'optionalAccess', _420 => _420.hasRowFailures])) {
11261
+ if (_optionalChain([overview, 'access', _427 => _427.rowOutcomes, 'optionalAccess', _428 => _428.hasRowFailures])) {
11229
11262
  lines.push(
11230
11263
  `Rows: ${overview.rowOutcomes.completedRows} completed, ${overview.rowOutcomes.failedRows} failed`
11231
11264
  );
@@ -11254,17 +11287,17 @@ function buildPlayCompletionTextLines(status) {
11254
11287
  }
11255
11288
  function writePlayResult(status, jsonOutput, options) {
11256
11289
  const packaged = getPlayRunPackage(status);
11257
- if (status.package) _chunk6UARNRXTjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11258
- const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _421 => _421.hits]), () => ( null));
11290
+ if (status.package) _chunkUCMY2SO2js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11291
+ const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _429 => _429.hits]), () => ( null));
11259
11292
  if (jsonOutput) {
11260
- const payload2 = _optionalChain([options, 'optionalAccess', _422 => _422.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11261
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
11293
+ const payload2 = _optionalChain([options, 'optionalAccess', _430 => _430.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11294
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
11262
11295
  hits ? { ...payload2, hits } : payload2,
11263
- { json: true, fields: _optionalChain([options, 'optionalAccess', _423 => _423.jsonFields]) }
11296
+ { json: true, fields: _optionalChain([options, 'optionalAccess', _431 => _431.jsonFields]) }
11264
11297
  );
11265
11298
  return;
11266
11299
  }
11267
- if (packaged && !_optionalChain([options, 'optionalAccess', _424 => _424.fullJson])) {
11300
+ if (packaged && !_optionalChain([options, 'optionalAccess', _432 => _432.fullJson])) {
11268
11301
  const {
11269
11302
  logs: _logs,
11270
11303
  failedLogs: _failedLogs,
@@ -11274,7 +11307,7 @@ function writePlayResult(status, jsonOutput, options) {
11274
11307
  ...buildPlayCompletionTextLines(status),
11275
11308
  ...formatRunHitsLines(hits)
11276
11309
  ];
11277
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, displayPackage, {
11310
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, displayPackage, {
11278
11311
  json: false,
11279
11312
  text: `${lines2.join("\n")}
11280
11313
  `
@@ -11324,8 +11357,8 @@ function writePlayResult(status, jsonOutput, options) {
11324
11357
  lines.push(...renderedServerView.actions);
11325
11358
  lines.push(...buildBillingRollupTextLines(status));
11326
11359
  const compact = compactPlayStatus(status);
11327
- const payload = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status : compact;
11328
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
11360
+ const payload = _optionalChain([options, 'optionalAccess', _433 => _433.fullJson]) ? status : compact;
11361
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
11329
11362
  {
11330
11363
  ...payload,
11331
11364
  render: {
@@ -11386,7 +11419,7 @@ async function resolvePlayRunOutputStatus(input) {
11386
11419
  const fromDurableStatus = input.fromDurableStatus === true || fullDurableTerminalStatuses.has(input.status);
11387
11420
  const refreshForFullJson = input.fullJson && !fromDurableStatus;
11388
11421
  const streamedTextPackageIncomplete = input.status.status === "completed" && playRunPackageTextLedgerIncomplete(streamedPackage);
11389
- const refreshFailedTerminal = input.status.status === "failed" && (!fromDurableStatus || _optionalChain([readRecord, 'call', _426 => _426(_optionalChain([streamedPackage, 'optionalAccess', _427 => _427.run])), 'optionalAccess', _428 => _428.status]) !== "failed");
11422
+ const refreshFailedTerminal = input.status.status === "failed" && (!fromDurableStatus || _optionalChain([readRecord, 'call', _434 => _434(_optionalChain([streamedPackage, 'optionalAccess', _435 => _435.run])), 'optionalAccess', _436 => _436.status]) !== "failed");
11390
11423
  if (!refreshForFullJson && !streamedTextPackageIncomplete && !refreshFailedTerminal) {
11391
11424
  if (input.fullJson && fromDurableStatus && TERMINAL_PLAY_STATUSES.has(input.status.status)) {
11392
11425
  fullDurableTerminalStatuses.add(input.status);
@@ -11493,14 +11526,14 @@ function mergeExportColumns(preferredColumns, rows) {
11493
11526
  return columns;
11494
11527
  }
11495
11528
  function sqlSafeExportColumnName(id) {
11496
- const prefix = _nullishCoalesce(_optionalChain([id, 'access', _429 => _429.trim, 'call', _430 => _430(), 'access', _431 => _431.match, 'call', _432 => _432(/^_+/), 'optionalAccess', _433 => _433[0]]), () => ( ""));
11529
+ const prefix = _nullishCoalesce(_optionalChain([id, 'access', _437 => _437.trim, 'call', _438 => _438(), 'access', _439 => _439.match, 'call', _440 => _440(/^_+/), 'optionalAccess', _441 => _441[0]]), () => ( ""));
11497
11530
  const normalized = id.trim().replace(/\.+/g, "__").replace(/[^A-Za-z0-9_]+/g, "_").replace(/^_+|_+$/g, "").toLowerCase();
11498
11531
  const safe = `${prefix}${normalized || "column"}`;
11499
11532
  return /^[A-Za-z_]/.test(safe) ? safe : `c_${safe}`;
11500
11533
  }
11501
11534
  async function fetchBackingDatasetRows(input) {
11502
11535
  const playName = extractRunPlayName(input.status);
11503
- const tableNamespace = _optionalChain([input, 'access', _434 => _434.rowsInfo, 'access', _435 => _435.tableNamespace, 'optionalAccess', _436 => _436.trim, 'call', _437 => _437()]);
11536
+ const tableNamespace = _optionalChain([input, 'access', _442 => _442.rowsInfo, 'access', _443 => _443.tableNamespace, 'optionalAccess', _444 => _444.trim, 'call', _445 => _445()]);
11504
11537
  if (!playName || !tableNamespace) {
11505
11538
  return null;
11506
11539
  }
@@ -11540,7 +11573,7 @@ async function fetchBackingDatasetRows(input) {
11540
11573
  seenEnvelopeKeys.add(key);
11541
11574
  }
11542
11575
  sheetRows.push(...page.rows);
11543
- const summaryTotal = _optionalChain([page, 'access', _438 => _438.summary, 'optionalAccess', _439 => _439.stats, 'optionalAccess', _440 => _440.total]);
11576
+ const summaryTotal = _optionalChain([page, 'access', _446 => _446.summary, 'optionalAccess', _447 => _447.stats, 'optionalAccess', _448 => _448.total]);
11544
11577
  if (typeof summaryTotal === "number" && Number.isFinite(summaryTotal)) {
11545
11578
  settledTotal = Math.max(_nullishCoalesce(settledTotal, () => ( 0)), Math.trunc(summaryTotal));
11546
11579
  }
@@ -11549,7 +11582,7 @@ async function fetchBackingDatasetRows(input) {
11549
11582
  }
11550
11583
  offset += page.rows.length;
11551
11584
  }
11552
- const withError = _chunk6UARNRXTjs.tableExportHasFailedRows.call(void 0,
11585
+ const withError = _chunkUCMY2SO2js.tableExportHasFailedRows.call(void 0,
11553
11586
  sheetRows.filter(
11554
11587
  (row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
11555
11588
  )
@@ -11565,7 +11598,7 @@ async function fetchBackingDatasetRows(input) {
11565
11598
  return [
11566
11599
  withError ? {
11567
11600
  ...exported,
11568
- [_chunk6UARNRXTjs.TABLE_EXPORT_ERROR_COLUMN]: _chunk6UARNRXTjs.tableExportErrorCell.call(void 0,
11601
+ [_chunkUCMY2SO2js.TABLE_EXPORT_ERROR_COLUMN]: _chunkUCMY2SO2js.tableExportErrorCell.call(void 0,
11569
11602
  row
11570
11603
  )
11571
11604
  } : exported
@@ -11634,7 +11667,7 @@ function assertDatasetHasExportableRows(input) {
11634
11667
  const rowOutcomes = _nullishCoalesce(readRowOutcomeSummary(input.status), () => ( readRowOutcomeSummary(
11635
11668
  getRecordField(getRecordField(input.status, "result"), "_metadata")
11636
11669
  )));
11637
- 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', _441 => _441.failedRows]) === 0 && !rowOutcomes.hasRowFailures) {
11670
+ 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', _449 => _449.failedRows]) === 0 && !rowOutcomes.hasRowFailures) {
11638
11671
  return input.rowsInfo;
11639
11672
  }
11640
11673
  const datasetLabel = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(input.datasetPath, () => ( input.rowsInfo.tableNamespace)), () => ( input.rowsInfo.source)), () => ( "result.rows"));
@@ -11706,8 +11739,8 @@ async function exportPlayStatusRows(client, status, outPath, options = {}) {
11706
11739
  path: dataset.exportFile(outPath, options),
11707
11740
  rowsInfo: dataset.info(),
11708
11741
  currentTable: false,
11709
- datasetPath: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _442 => _442.source]), () => ( null)),
11710
- datasetInfo: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _443 => _443.info, 'call', _444 => _444()]), () => ( null))
11742
+ datasetPath: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _450 => _450.source]), () => ( null)),
11743
+ datasetInfo: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _451 => _451.info, 'call', _452 => _452()]), () => ( null))
11711
11744
  };
11712
11745
  };
11713
11746
  const run = Run.open({
@@ -11719,7 +11752,7 @@ async function exportPlayStatusRows(client, status, outPath, options = {}) {
11719
11752
  const returnedRows = datasets.returned().map((dataset) => dataset.info());
11720
11753
  const recoveredRows = datasets.recovered().map((dataset) => dataset.info());
11721
11754
  const selectedDataset = run.dataset(options.datasetPath);
11722
- const rowsInfo = _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _445 => _445.info, 'call', _446 => _446()]), () => ( null));
11755
+ const rowsInfo = _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _453 => _453.info, 'call', _454 => _454()]), () => ( null));
11723
11756
  if (!selectedDataset && options.datasetPath) {
11724
11757
  const available = availableRows.map((info) => info.source).filter((source) => typeof source === "string");
11725
11758
  const commands = datasetChoiceLines({
@@ -11832,7 +11865,7 @@ ${commands.join("\n")}`,
11832
11865
  throw error;
11833
11866
  }
11834
11867
  }
11835
- if (_optionalChain([fetchedRowsInfo, 'optionalAccess', _447 => _447.complete])) {
11868
+ if (_optionalChain([fetchedRowsInfo, 'optionalAccess', _455 => _455.complete])) {
11836
11869
  const guarded2 = assertDatasetHasExportableRows({
11837
11870
  rowsInfo: fetchedRowsInfo,
11838
11871
  status,
@@ -11897,7 +11930,7 @@ function extractActiveRunsFromError(error) {
11897
11930
  if (!(error instanceof _chunkDIAWYWT5js.DeeplineError)) {
11898
11931
  return [];
11899
11932
  }
11900
- const response = _optionalChain([error, 'access', _448 => _448.details, 'optionalAccess', _449 => _449.response]);
11933
+ const response = _optionalChain([error, 'access', _456 => _456.details, 'optionalAccess', _457 => _457.response]);
11901
11934
  if (!response || typeof response !== "object" || Array.isArray(response)) {
11902
11935
  return [];
11903
11936
  }
@@ -12014,8 +12047,8 @@ function renderServerResultView(value) {
12014
12047
  return { lines: [], actions: [] };
12015
12048
  }
12016
12049
  const view = value;
12017
- const renderedSections = Array.isArray(_optionalChain([view, 'access', _450 => _450.render, 'optionalAccess', _451 => _451.sections])) ? view.render.sections : [];
12018
- const renderedActions = Array.isArray(_optionalChain([view, 'access', _452 => _452.render, 'optionalAccess', _453 => _453.actions])) ? view.render.actions : [];
12050
+ const renderedSections = Array.isArray(_optionalChain([view, 'access', _458 => _458.render, 'optionalAccess', _459 => _459.sections])) ? view.render.sections : [];
12051
+ const renderedActions = Array.isArray(_optionalChain([view, 'access', _460 => _460.render, 'optionalAccess', _461 => _461.actions])) ? view.render.actions : [];
12019
12052
  if (renderedSections.length > 0 || renderedActions.length > 0) {
12020
12053
  const lines2 = [];
12021
12054
  for (const section of renderedSections) {
@@ -12053,7 +12086,7 @@ function renderServerResultView(value) {
12053
12086
  }
12054
12087
  const tables = Array.isArray(view.tables) ? view.tables : [];
12055
12088
  const topLevelOutputTable = view.topLevelOutputTable && typeof view.topLevelOutputTable === "object" && !Array.isArray(view.topLevelOutputTable) ? view.topLevelOutputTable : null;
12056
- if (typeof _optionalChain([topLevelOutputTable, 'optionalAccess', _454 => _454.queryCommand]) === "string") {
12089
+ if (typeof _optionalChain([topLevelOutputTable, 'optionalAccess', _462 => _462.queryCommand]) === "string") {
12057
12090
  lines.push(` top-level outputs: ${topLevelOutputTable.queryCommand}`);
12058
12091
  }
12059
12092
  if (tables.length > 0) {
@@ -12100,7 +12133,7 @@ function renderServerResultView(value) {
12100
12133
  function writeStartedPlayRun(input) {
12101
12134
  if (input.package && isPlayRunPackageValue(input.package)) {
12102
12135
  const run = input.package.run;
12103
- _chunk6UARNRXTjs.recordPlayTermination.call(void 0, {
12136
+ _chunkUCMY2SO2js.recordPlayTermination.call(void 0, {
12104
12137
  id: run.id,
12105
12138
  status: run.status,
12106
12139
  finishedAt: run.finishedAt
@@ -12113,7 +12146,7 @@ function writeStartedPlayRun(input) {
12113
12146
  dashboardUrl: input.dashboardUrl,
12114
12147
  package: input.package
12115
12148
  };
12116
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12149
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12117
12150
  json: true,
12118
12151
  fields: input.jsonFields
12119
12152
  });
@@ -12135,13 +12168,17 @@ function writeStartedPlayRun(input) {
12135
12168
  input.progress.writeLine(output2, process.stdout);
12136
12169
  return;
12137
12170
  }
12138
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, input.package, {
12171
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, input.package, {
12139
12172
  json: false,
12140
12173
  text: `${output2}
12141
12174
  `
12142
12175
  });
12143
12176
  return;
12144
12177
  }
12178
+ const runUrl = resolvePlayRunUrl({
12179
+ runId: input.runId,
12180
+ dashboardUrl: input.dashboardUrl
12181
+ });
12145
12182
  const payload = {
12146
12183
  ...buildRunNavigation({
12147
12184
  runId: input.runId,
@@ -12149,6 +12186,7 @@ function writeStartedPlayRun(input) {
12149
12186
  status: _nullishCoalesce(input.status, () => ( "started"))
12150
12187
  }),
12151
12188
  dashboardUrl: input.dashboardUrl,
12189
+ ...runUrl ? { runUrl } : {},
12152
12190
  execution: {
12153
12191
  revision: _nullishCoalesce(input.revisionLabel, () => ( "resolved by Deepline")),
12154
12192
  input_field_count: _nullishCoalesce(input.inputFieldCount, () => ( 0)),
@@ -12158,24 +12196,22 @@ function writeStartedPlayRun(input) {
12158
12196
  const lines = [
12159
12197
  input.rateLimited ? input.rateLimited.message : `Started ${input.playName}`,
12160
12198
  `Run: ${input.runId}`,
12199
+ ...runUrl ? [`Run page: ${runUrl}`] : [],
12161
12200
  `Logs: deepline runs logs ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`,
12162
12201
  ...["started", "queued", "running", "waiting"].includes(
12163
12202
  _nullishCoalesce(input.status, () => ( "started"))
12164
12203
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12165
12204
  ];
12166
12205
  if (input.jsonOutput) {
12167
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12206
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12168
12207
  return;
12169
12208
  }
12170
- if (input.dashboardUrl) {
12171
- lines.push(` play page: ${input.dashboardUrl}`);
12172
- }
12173
12209
  const output = lines.join("\n");
12174
12210
  if (input.progress) {
12175
12211
  input.progress.writeLine(output, process.stdout);
12176
12212
  return;
12177
12213
  }
12178
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
12214
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
12179
12215
  {
12180
12216
  ...payload,
12181
12217
  render: { sections: [{ title: "play run", lines }] }
@@ -12185,7 +12221,7 @@ function writeStartedPlayRun(input) {
12185
12221
  );
12186
12222
  }
12187
12223
  function parsePlayCheckOptions(args) {
12188
- const selection = _chunkBCKIBVEJjs.parseJsonFields.call(void 0, args, "check");
12224
+ const selection = _chunk2I7VN65Hjs.parseJsonFields.call(void 0, args, "check");
12189
12225
  args = selection.args;
12190
12226
  const target = args[0];
12191
12227
  if (!target || target.startsWith("-")) {
@@ -12197,7 +12233,7 @@ function parsePlayCheckOptions(args) {
12197
12233
  if (arg !== "--json" && arg !== "--full")
12198
12234
  throw new Error(`Unknown plays check option: ${arg}`);
12199
12235
  }
12200
- const jsonOutput = _chunkBCKIBVEJjs.argsWantJson.call(void 0, args);
12236
+ const jsonOutput = _chunk2I7VN65Hjs.argsWantJson.call(void 0, args);
12201
12237
  return {
12202
12238
  target,
12203
12239
  jsonOutput,
@@ -12273,7 +12309,7 @@ ${PLAY_PUBLISH_USAGE}`
12273
12309
  useLatest,
12274
12310
  expectedArtifactHash,
12275
12311
  dryRun,
12276
- jsonOutput: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args)
12312
+ jsonOutput: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args)
12277
12313
  };
12278
12314
  }
12279
12315
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12314,7 +12350,7 @@ ${PLAY_SAVE_USAGE}`);
12314
12350
  target,
12315
12351
  expectedArtifactHash,
12316
12352
  dryRun,
12317
- jsonOutput: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args)
12353
+ jsonOutput: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args)
12318
12354
  };
12319
12355
  }
12320
12356
  function printScheduledPlayCapacity(capacity) {
@@ -12367,7 +12403,7 @@ function checkHintExpression(value) {
12367
12403
  return stringValue2(value).replace(/^toolExecutionResult\./, "result.");
12368
12404
  }
12369
12405
  function checkHintRawPath(value) {
12370
- return _optionalChain([value, 'optionalAccess', _455 => _455.startsWith, 'call', _456 => _456("toolResponse.rawV2")]) ? value.replace(/^toolResponse\./, "result.toolResponse.") : void 0;
12406
+ return _optionalChain([value, 'optionalAccess', _463 => _463.startsWith, 'call', _464 => _464("toolResponse.rawV2")]) ? value.replace(/^toolResponse\./, "result.toolResponse.") : void 0;
12371
12407
  }
12372
12408
  function collectStaticPipelineToolIds(staticPipeline) {
12373
12409
  const seen = /* @__PURE__ */ new Set();
@@ -12442,30 +12478,30 @@ function cronExecutionLabel(status) {
12442
12478
  }
12443
12479
  function readLiveCronMetadata(play) {
12444
12480
  const record3 = readRecord(play);
12445
- const metadata = readRecord(_optionalChain([record3, 'optionalAccess', _457 => _457.triggerMetadata]));
12481
+ const metadata = readRecord(_optionalChain([record3, 'optionalAccess', _465 => _465.triggerMetadata]));
12446
12482
  return {
12447
- schedule: typeof _optionalChain([metadata, 'optionalAccess', _458 => _458.cronSchedule]) === "string" ? metadata.cronSchedule : null,
12448
- timezone: typeof _optionalChain([metadata, 'optionalAccess', _459 => _459.cronTimezone]) === "string" ? metadata.cronTimezone : null,
12449
- nextScheduledAt: typeof _optionalChain([metadata, 'optionalAccess', _460 => _460.nextScheduledAt]) === "number" ? metadata.nextScheduledAt : null,
12450
- blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _461 => _461.blockedAt]) === "number" ? metadata.blockedAt : null,
12451
- blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _462 => _462.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null
12483
+ schedule: typeof _optionalChain([metadata, 'optionalAccess', _466 => _466.cronSchedule]) === "string" ? metadata.cronSchedule : null,
12484
+ timezone: typeof _optionalChain([metadata, 'optionalAccess', _467 => _467.cronTimezone]) === "string" ? metadata.cronTimezone : null,
12485
+ nextScheduledAt: typeof _optionalChain([metadata, 'optionalAccess', _468 => _468.nextScheduledAt]) === "number" ? metadata.nextScheduledAt : null,
12486
+ blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _469 => _469.blockedAt]) === "number" ? metadata.blockedAt : null,
12487
+ blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _470 => _470.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null
12452
12488
  };
12453
12489
  }
12454
12490
  function liveTriggerStatusLines(status, play) {
12455
12491
  const cron = readLiveCronMetadata(play);
12456
- if (!_optionalChain([status, 'optionalAccess', _463 => _463.cron]) && !cron.schedule && !_optionalChain([status, 'optionalAccess', _464 => _464.webhook])) return [];
12492
+ if (!_optionalChain([status, 'optionalAccess', _471 => _471.cron]) && !cron.schedule && !_optionalChain([status, 'optionalAccess', _472 => _472.webhook])) return [];
12457
12493
  const lines = [];
12458
- if (_optionalChain([status, 'optionalAccess', _465 => _465.cron]) || cron.schedule) {
12494
+ if (_optionalChain([status, 'optionalAccess', _473 => _473.cron]) || cron.schedule) {
12459
12495
  const timezone = cron.timezone ? ` (${cron.timezone})` : "";
12460
12496
  lines.push(
12461
- ` Scheduled execution: ${cronExecutionLabel(_nullishCoalesce(_optionalChain([status, 'optionalAccess', _466 => _466.cron]), () => ( null)))}${cron.schedule ? ` \u2014 ${cron.schedule}${timezone}` : ""}`
12497
+ ` Scheduled execution: ${cronExecutionLabel(_nullishCoalesce(_optionalChain([status, 'optionalAccess', _474 => _474.cron]), () => ( null)))}${cron.schedule ? ` \u2014 ${cron.schedule}${timezone}` : ""}`
12462
12498
  );
12463
- if (cron.nextScheduledAt !== null && _optionalChain([status, 'optionalAccess', _467 => _467.cron]) === "active") {
12499
+ if (cron.nextScheduledAt !== null && _optionalChain([status, 'optionalAccess', _475 => _475.cron]) === "active") {
12464
12500
  lines.push(
12465
12501
  ` Next scheduled run: ${formatTimestamp(cron.nextScheduledAt)}`
12466
12502
  );
12467
12503
  }
12468
- if (_optionalChain([status, 'optionalAccess', _468 => _468.blockedReason])) {
12504
+ if (_optionalChain([status, 'optionalAccess', _476 => _476.blockedReason])) {
12469
12505
  lines.push(` Schedule issue: ${status.blockedReason}`);
12470
12506
  if (status.blockedReasonCode || cron.blockedReasonCode) {
12471
12507
  lines.push(
@@ -12481,7 +12517,7 @@ function liveTriggerStatusLines(status, play) {
12481
12517
  );
12482
12518
  }
12483
12519
  }
12484
- if (_optionalChain([status, 'optionalAccess', _469 => _469.webhook])) {
12520
+ if (_optionalChain([status, 'optionalAccess', _477 => _477.webhook])) {
12485
12521
  lines.push(` Webhook: ${status.webhook}`);
12486
12522
  }
12487
12523
  return lines;
@@ -12489,11 +12525,11 @@ function liveTriggerStatusLines(status, play) {
12489
12525
  function triggerStatusFromMetadata(value) {
12490
12526
  const metadata = readRecord(value);
12491
12527
  return {
12492
- cron: typeof _optionalChain([metadata, 'optionalAccess', _470 => _470.cronStatus]) === "string" ? metadata.cronStatus : null,
12493
- webhook: typeof _optionalChain([metadata, 'optionalAccess', _471 => _471.webhookStatus]) === "string" ? metadata.webhookStatus : null,
12494
- blockedReason: typeof _optionalChain([metadata, 'optionalAccess', _472 => _472.blockedReason]) === "string" ? metadata.blockedReason : null,
12495
- blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _473 => _473.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null,
12496
- blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _474 => _474.blockedAt]) === "number" ? metadata.blockedAt : null
12528
+ cron: typeof _optionalChain([metadata, 'optionalAccess', _478 => _478.cronStatus]) === "string" ? metadata.cronStatus : null,
12529
+ webhook: typeof _optionalChain([metadata, 'optionalAccess', _479 => _479.webhookStatus]) === "string" ? metadata.webhookStatus : null,
12530
+ blockedReason: typeof _optionalChain([metadata, 'optionalAccess', _480 => _480.blockedReason]) === "string" ? metadata.blockedReason : null,
12531
+ blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _481 => _481.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null,
12532
+ blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _482 => _482.blockedAt]) === "number" ? metadata.blockedAt : null
12497
12533
  };
12498
12534
  }
12499
12535
  function printPublishReceipt(input) {
@@ -12525,7 +12561,7 @@ function printBundledRuntimeWarning(bundle) {
12525
12561
  async function handlePlayCheck(args) {
12526
12562
  const options = parsePlayCheckOptions(args);
12527
12563
  if (!isFileTarget(options.target)) {
12528
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
12564
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
12529
12565
  try {
12530
12566
  await assertCanonicalNamedPlayReference(client, options.target, {
12531
12567
  command: "check"
@@ -12554,7 +12590,7 @@ async function handlePlayCheck(args) {
12554
12590
  },
12555
12591
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12556
12592
  };
12557
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, result, {
12593
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, result, {
12558
12594
  json: options.jsonOutput,
12559
12595
  fields: options.jsonFields,
12560
12596
  text: renderPlayCheckOutput(result) + "\n"
@@ -12564,7 +12600,7 @@ async function handlePlayCheck(args) {
12564
12600
  const resolved = _path.resolve.call(void 0, options.target);
12565
12601
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12566
12602
  if (options.jsonOutput) {
12567
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
12603
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
12568
12604
  {
12569
12605
  kind: "play_check",
12570
12606
  checked: "named_contract",
@@ -12604,9 +12640,9 @@ async function handlePlayCheck(args) {
12604
12640
  target: options.target,
12605
12641
  full: options.full,
12606
12642
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
12607
- publishCommand: _optionalChain([primary, 'optionalAccess', _475 => _475.result, 'access', _476 => _476.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
12643
+ publishCommand: _optionalChain([primary, 'optionalAccess', _483 => _483.result, 'access', _484 => _484.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
12608
12644
  });
12609
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, output, {
12645
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, output, {
12610
12646
  json: options.jsonOutput,
12611
12647
  fields: options.jsonFields,
12612
12648
  text: renderPlayCheckOutput(output) + "\n"
@@ -12619,7 +12655,7 @@ function resolvePlayCheckExportNames(sourceCode) {
12619
12655
  return exports.map((entry) => entry.name);
12620
12656
  }
12621
12657
  function artifactForProductionCompatibilityCheck(artifact) {
12622
- const rawEdition = _optionalChain([process, 'access', _477 => _477.env, 'access', _478 => _478.DEEPLINE_PROD_CHECK_AUTHORING_CONTRACT_EDITION, 'optionalAccess', _479 => _479.trim, 'call', _480 => _480()]);
12658
+ const rawEdition = _optionalChain([process, 'access', _485 => _485.env, 'access', _486 => _486.DEEPLINE_PROD_CHECK_AUTHORING_CONTRACT_EDITION, 'optionalAccess', _487 => _487.trim, 'call', _488 => _488()]);
12623
12659
  if (!rawEdition) return artifact;
12624
12660
  if (!/^\d+$/.test(rawEdition)) {
12625
12661
  throw new Error(
@@ -12660,7 +12696,7 @@ async function checkOneExportedPlay(input) {
12660
12696
  }
12661
12697
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
12662
12698
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
12663
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
12699
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
12664
12700
  const integrationMode = resolveEvalIntegrationMode();
12665
12701
  const checked = await checkLocalPlayGraph({
12666
12702
  client,
@@ -12670,7 +12706,7 @@ async function checkOneExportedPlay(input) {
12670
12706
  integrationMode,
12671
12707
  prepareArtifact: artifactForProductionCompatibilityCheck
12672
12708
  });
12673
- const importedPlayName = _optionalChain([checked, 'access', _481 => _481.failedChild, 'optionalAccess', _482 => _482.playName]);
12709
+ const importedPlayName = _optionalChain([checked, 'access', _489 => _489.failedChild, 'optionalAccess', _490 => _490.playName]);
12674
12710
  const diagnosticPrefix = importedPlayName ? `Imported Play ${importedPlayName}: ` : "";
12675
12711
  const valid = checked.result.valid && !checked.failedChild && authoringErrors.length === 0;
12676
12712
  const errors = [
@@ -12686,7 +12722,7 @@ async function checkOneExportedPlay(input) {
12686
12722
  valid,
12687
12723
  errors: valid ? checked.result.errors : addPlayCheckRepairHints({
12688
12724
  errors,
12689
- sourceCode: _nullishCoalesce(_optionalChain([checked, 'access', _483 => _483.failedChild, 'optionalAccess', _484 => _484.sourceCode]), () => ( graph.root.sourceCode))
12725
+ sourceCode: _nullishCoalesce(_optionalChain([checked, 'access', _491 => _491.failedChild, 'optionalAccess', _492 => _492.sourceCode]), () => ( graph.root.sourceCode))
12690
12726
  }),
12691
12727
  ...checked.failedChild && checked.result.issues ? {
12692
12728
  issues: checked.result.issues.map((issue) => ({
@@ -12716,8 +12752,8 @@ async function handleFileBackedRun(options, hooks) {
12716
12752
  let prefetchClient;
12717
12753
  let admissionCapability;
12718
12754
  let cancelAdmissionCapability;
12719
- let cliAdmission = _chunkTH7JLR5Djs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12720
- const progress = _nullishCoalesce(_chunkQ7G7CU4Wjs.getActiveCliProgress.call(void 0, ), () => ( _chunkQ7G7CU4Wjs.createCliProgress.call(void 0, !options.jsonOutput)));
12755
+ let cliAdmission = _chunkIJOHWGPFjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12756
+ const progress = _nullishCoalesce(_chunkAWMCZAURjs.getActiveCliProgress.call(void 0, ), () => ( _chunkAWMCZAURjs.createCliProgress.call(void 0, !options.jsonOutput)));
12721
12757
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
12722
12758
  progress.phase("compiling play");
12723
12759
  const sourceCode = traceCliSync(
@@ -12733,11 +12769,11 @@ async function handleFileBackedRun(options, hooks) {
12733
12769
  return 1;
12734
12770
  }
12735
12771
  if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
12736
- const clientForPrefetch = new (0, _chunkB2TXKEEDjs.DeeplineClient)(playRunClientOptions(options));
12772
+ const clientForPrefetch = new (0, _chunk2H4OFVR5js.DeeplineClient)(playRunClientOptions(options));
12737
12773
  prefetchClient = clientForPrefetch;
12738
12774
  const capabilityController = new AbortController();
12739
12775
  cancelAdmissionCapability = () => capabilityController.abort();
12740
- admissionCapability = _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
12776
+ admissionCapability = _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
12741
12777
  "cli.play_admission_capability_prefetch",
12742
12778
  { targetKind: "file" },
12743
12779
  () => clientForPrefetch.prefetchPlayRunAdmissionCapability({
@@ -12748,7 +12784,7 @@ async function handleFileBackedRun(options, hooks) {
12748
12784
  }
12749
12785
  let graph;
12750
12786
  try {
12751
- graph = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
12787
+ graph = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
12752
12788
  "cli.play_file_bundle_graph",
12753
12789
  { targetKind: "file" },
12754
12790
  () => collectBundledPlayGraph(
@@ -12762,14 +12798,14 @@ async function handleFileBackedRun(options, hooks) {
12762
12798
  if (options.dryRun) {
12763
12799
  progress.complete();
12764
12800
  renderLocalPlayExecutionPlan(
12765
- _chunkMN6DCV63js.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile }),
12801
+ _chunkAGTXL6LZjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile }),
12766
12802
  { dryRun: true, json: options.jsonOutput }
12767
12803
  );
12768
12804
  return 0;
12769
12805
  }
12770
- client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkB2TXKEEDjs.DeeplineClient)(playRunClientOptions(options))));
12806
+ client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunk2H4OFVR5js.DeeplineClient)(playRunClientOptions(options))));
12771
12807
  if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
12772
- await _chunkTH7JLR5Djs.checkPlayRunCompatibility.call(void 0,
12808
+ await _chunkIJOHWGPFjs.checkPlayRunCompatibility.call(void 0,
12773
12809
  client.baseUrl,
12774
12810
  options.maintenancePolicy
12775
12811
  );
@@ -12782,7 +12818,7 @@ async function handleFileBackedRun(options, hooks) {
12782
12818
  });
12783
12819
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
12784
12820
  if (canDeferCompilerManifest) {
12785
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
12821
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
12786
12822
  phase: "cli.play_file_compile_manifests",
12787
12823
  ms: 0,
12788
12824
  ok: true,
@@ -12791,7 +12827,7 @@ async function handleFileBackedRun(options, hooks) {
12791
12827
  reason: "validated_by_run_route"
12792
12828
  });
12793
12829
  } else {
12794
- await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
12830
+ await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
12795
12831
  "cli.play_file_compile_manifests",
12796
12832
  { targetKind: "file", skipped: false },
12797
12833
  () => compileBundledPlayGraphManifests(client, graph)
@@ -12812,13 +12848,13 @@ async function handleFileBackedRun(options, hooks) {
12812
12848
  if (bundleResult.importedPlayDependencies.length > 0) {
12813
12849
  try {
12814
12850
  renderLocalPlayExecutionPlan(
12815
- _chunkMN6DCV63js.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12851
+ _chunkAGTXL6LZjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12816
12852
  );
12817
12853
  progress.phase("pinning imported plays");
12818
- graph = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
12854
+ graph = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
12819
12855
  "cli.play_file_pin_imports",
12820
12856
  { targetKind: "file" },
12821
- () => _chunkMN6DCV63js.pinLocalPlayImports.call(void 0, client, graph)
12857
+ () => _chunkAGTXL6LZjs.pinLocalPlayImports.call(void 0, client, graph)
12822
12858
  );
12823
12859
  bundleResult = graph.root;
12824
12860
  } catch (error) {
@@ -12831,10 +12867,10 @@ async function handleFileBackedRun(options, hooks) {
12831
12867
  (file) => stageFile(file.logicalPath, file.absolutePath)
12832
12868
  );
12833
12869
  const compilerManifest = _nullishCoalesce(bundleResult.compilerManifest, () => ( null));
12834
- const fileInputBindings = _chunkAUQQVDABjs.fileInputBindingsFromStaticPipeline.call(void 0,
12835
- _optionalChain([compilerManifest, 'optionalAccess', _485 => _485.staticPipeline])
12870
+ const fileInputBindings = _chunkPKV5CD3Wjs.fileInputBindingsFromStaticPipeline.call(void 0,
12871
+ _optionalChain([compilerManifest, 'optionalAccess', _493 => _493.staticPipeline])
12836
12872
  );
12837
- const stagedFileInputs = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
12873
+ const stagedFileInputs = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
12838
12874
  "cli.play_stage_inputs",
12839
12875
  {
12840
12876
  targetKind: "file",
@@ -12881,7 +12917,7 @@ async function handleFileBackedRun(options, hooks) {
12881
12917
  };
12882
12918
  if (options.watch) {
12883
12919
  progress.phase("starting run");
12884
- const finalStatus = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
12920
+ const finalStatus = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
12885
12921
  "cli.play_start_watch",
12886
12922
  { targetKind: "file", playName },
12887
12923
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -12895,9 +12931,9 @@ async function handleFileBackedRun(options, hooks) {
12895
12931
  waitTimeoutMs: options.waitTimeoutMs,
12896
12932
  open: options.open,
12897
12933
  progress,
12898
- onRunStarted: _optionalChain([hooks, 'optionalAccess', _486 => _486.onRunStarted]),
12899
- onSubmission: _optionalChain([hooks, 'optionalAccess', _487 => _487.onSubmission]),
12900
- onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _488 => _488.onRunAdmitted]),
12934
+ onRunStarted: _optionalChain([hooks, 'optionalAccess', _494 => _494.onRunStarted]),
12935
+ onSubmission: _optionalChain([hooks, 'optionalAccess', _495 => _495.onSubmission]),
12936
+ onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _496 => _496.onRunAdmitted]),
12901
12937
  maintenancePolicy: options.maintenancePolicy,
12902
12938
  ...!options.runIdFile || options.fullJson ? { fullJson: options.fullJson } : {},
12903
12939
  ...cliAdmission ? {
@@ -12927,8 +12963,8 @@ async function handleFileBackedRun(options, hooks) {
12927
12963
  ),
12928
12964
  options
12929
12965
  );
12930
- _optionalChain([hooks, 'optionalAccess', _489 => _489.onTerminalStatus, 'optionalCall', _490 => _490(outputStatus)]);
12931
- if (_optionalChain([hooks, 'optionalAccess', _491 => _491.writeResult])) {
12966
+ _optionalChain([hooks, 'optionalAccess', _497 => _497.onTerminalStatus, 'optionalCall', _498 => _498(outputStatus)]);
12967
+ if (_optionalChain([hooks, 'optionalAccess', _499 => _499.writeResult])) {
12932
12968
  await hooks.writeResult(client, outputStatus);
12933
12969
  return outputStatus.status === "completed" ? 0 : 1;
12934
12970
  }
@@ -12943,21 +12979,36 @@ async function handleFileBackedRun(options, hooks) {
12943
12979
  return outputStatus.status === "completed" ? 0 : 1;
12944
12980
  }
12945
12981
  progress.phase("starting run");
12946
- const started = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
12982
+ const started = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
12947
12983
  "cli.play_start_unwatched",
12948
12984
  { targetKind: "file", playName },
12949
- () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _492 => _492.onSubmission]) }).catch(async (error) => {
12985
+ () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _500 => _500.onSubmission]) }).catch(async (error) => {
12950
12986
  throw await normalizePlayStartError(client, error, playName);
12951
12987
  })
12952
12988
  );
12953
- await _optionalChain([hooks, 'optionalAccess', _493 => _493.onRunStarted, 'optionalCall', _494 => _494(started.workflowId)]);
12954
- await _optionalChain([hooks, 'optionalAccess', _495 => _495.onRunAdmitted, 'optionalCall', _496 => _496(started.workflowId)]);
12955
- const resolvedDashboardUrl = _chunk4IP5MLWUjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
12956
- openPlayDashboard(resolvedDashboardUrl, options.open);
12989
+ await _optionalChain([hooks, 'optionalAccess', _501 => _501.onRunStarted, 'optionalCall', _502 => _502(started.workflowId)]);
12990
+ await _optionalChain([hooks, 'optionalAccess', _503 => _503.onRunAdmitted, 'optionalCall', _504 => _504(started.workflowId)]);
12991
+ const resolvedDashboardUrl = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
12992
+ openPlayDashboard(
12993
+ resolvePlayRunUrl({
12994
+ runId: started.workflowId,
12995
+ runUrl: started.runUrl,
12996
+ dashboardUrl: resolvedDashboardUrl
12997
+ }),
12998
+ options.open
12999
+ );
12957
13000
  progress.phase("started run");
12958
13001
  progress.complete();
12959
- if (_optionalChain([hooks, 'optionalAccess', _497 => _497.writeStarted])) {
12960
- hooks.writeStarted(started.workflowId, _nullishCoalesce(started.status, () => ( "started")));
13002
+ if (_optionalChain([hooks, 'optionalAccess', _505 => _505.writeStarted])) {
13003
+ hooks.writeStarted(
13004
+ started.workflowId,
13005
+ _nullishCoalesce(started.status, () => ( "started")),
13006
+ resolvePlayRunUrl({
13007
+ runId: started.workflowId,
13008
+ runUrl: started.runUrl,
13009
+ dashboardUrl: resolvedDashboardUrl
13010
+ })
13011
+ );
12961
13012
  return 0;
12962
13013
  }
12963
13014
  writeStartedPlayRun({
@@ -12983,7 +13034,7 @@ async function resolveNamedRunRevisionId(input) {
12983
13034
  if (input.selector === "latest") {
12984
13035
  const versions = await input.client.listPlayVersions(input.playName);
12985
13036
  const latest = versions[0];
12986
- if (!_optionalChain([latest, 'optionalAccess', _498 => _498._id])) {
13037
+ if (!_optionalChain([latest, 'optionalAccess', _506 => _506._id])) {
12987
13038
  throw new Error(`No saved revisions found for ${input.playName}.`);
12988
13039
  }
12989
13040
  return latest._id;
@@ -12994,9 +13045,9 @@ async function handleNamedRun(options, hooks) {
12994
13045
  if (options.target.kind !== "name") {
12995
13046
  throw new Error("Expected a named play run target.");
12996
13047
  }
12997
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)(playRunClientOptions(options));
12998
- let cliAdmission = _chunkTH7JLR5Djs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12999
- const progress = _nullishCoalesce(_chunkQ7G7CU4Wjs.getActiveCliProgress.call(void 0, ), () => ( _chunkQ7G7CU4Wjs.createCliProgress.call(void 0, !options.jsonOutput)));
13048
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)(playRunClientOptions(options));
13049
+ let cliAdmission = _chunkIJOHWGPFjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
13050
+ const progress = _nullishCoalesce(_chunkAWMCZAURjs.getActiveCliProgress.call(void 0, ), () => ( _chunkAWMCZAURjs.createCliProgress.call(void 0, !options.jsonOutput)));
13000
13051
  const playName = options.target.name;
13001
13052
  const runtimeInput = options.input ? { ...options.input } : {};
13002
13053
  try {
@@ -13014,7 +13065,7 @@ async function handleNamedRun(options, hooks) {
13014
13065
  if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
13015
13066
  const capabilityController = new AbortController();
13016
13067
  cancelAdmissionCapability = () => capabilityController.abort();
13017
- admissionCapability = _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
13068
+ admissionCapability = _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
13018
13069
  "cli.play_admission_capability_prefetch",
13019
13070
  { targetKind: "name", playName },
13020
13071
  () => client.prefetchPlayRunAdmissionCapability({
@@ -13025,14 +13076,14 @@ async function handleNamedRun(options, hooks) {
13025
13076
  }
13026
13077
  const playDetail = needsPlayDefinition ? await (async () => {
13027
13078
  progress.phase("loading play definition");
13028
- return _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
13079
+ return _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
13029
13080
  "cli.play_load_definition",
13030
13081
  { targetKind: "name", playName, skipped: false },
13031
13082
  () => assertCanonicalNamedPlayReference(client, playName, {
13032
13083
  command: "run"
13033
13084
  })
13034
13085
  );
13035
- })() : (_chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
13086
+ })() : (_chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
13036
13087
  phase: "cli.play_load_definition",
13037
13088
  ms: 0,
13038
13089
  ok: true,
@@ -13041,7 +13092,7 @@ async function handleNamedRun(options, hooks) {
13041
13092
  skipped: true
13042
13093
  }), null);
13043
13094
  progress.phase("selecting revision");
13044
- const selectedRevisionId = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
13095
+ const selectedRevisionId = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
13045
13096
  "cli.play_select_revision",
13046
13097
  {
13047
13098
  targetKind: "name",
@@ -13062,14 +13113,14 @@ async function handleNamedRun(options, hooks) {
13062
13113
  maxTotalCredits: options.maxTotalCredits
13063
13114
  });
13064
13115
  const fileInputBindings = playDetail ? [
13065
- ..._chunkAUQQVDABjs.fileInputBindingsFromPlaySchema.call(void 0, playDetail.play.inputSchema),
13066
- ..._chunkAUQQVDABjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
13116
+ ..._chunkPKV5CD3Wjs.fileInputBindingsFromPlaySchema.call(void 0, playDetail.play.inputSchema),
13117
+ ..._chunkPKV5CD3Wjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
13067
13118
  ] : [];
13068
13119
  if (cliAdmission && fileInputBindings.length > 0) {
13069
- await _chunkTH7JLR5Djs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13120
+ await _chunkIJOHWGPFjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13070
13121
  cliAdmission = false;
13071
13122
  }
13072
- const stagedFileInputs = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
13123
+ const stagedFileInputs = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
13073
13124
  "cli.play_stage_inputs",
13074
13125
  {
13075
13126
  targetKind: "name",
@@ -13092,7 +13143,7 @@ async function handleNamedRun(options, hooks) {
13092
13143
  const testPolicyOverrides = {
13093
13144
  ...options.debugMapLatency ? { mapLatencyProfile: true } : {}
13094
13145
  };
13095
- const startRequest = _chunkAUQQVDABjs.buildNamedPlayRunRequest.call(void 0, {
13146
+ const startRequest = _chunkPKV5CD3Wjs.buildNamedPlayRunRequest.call(void 0, {
13096
13147
  name: playName,
13097
13148
  revisionId: selectedRevisionId,
13098
13149
  runtimeInput,
@@ -13113,7 +13164,7 @@ async function handleNamedRun(options, hooks) {
13113
13164
  });
13114
13165
  if (options.watch) {
13115
13166
  progress.phase("starting run");
13116
- const finalStatus = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
13167
+ const finalStatus = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
13117
13168
  "cli.play_start_watch",
13118
13169
  { targetKind: "name", playName },
13119
13170
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -13127,9 +13178,9 @@ async function handleNamedRun(options, hooks) {
13127
13178
  waitTimeoutMs: options.waitTimeoutMs,
13128
13179
  open: options.open,
13129
13180
  progress,
13130
- onRunStarted: _optionalChain([hooks, 'optionalAccess', _499 => _499.onRunStarted]),
13131
- onSubmission: _optionalChain([hooks, 'optionalAccess', _500 => _500.onSubmission]),
13132
- onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _501 => _501.onRunAdmitted]),
13181
+ onRunStarted: _optionalChain([hooks, 'optionalAccess', _507 => _507.onRunStarted]),
13182
+ onSubmission: _optionalChain([hooks, 'optionalAccess', _508 => _508.onSubmission]),
13183
+ onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _509 => _509.onRunAdmitted]),
13133
13184
  maintenancePolicy: options.maintenancePolicy,
13134
13185
  ...!options.runIdFile || options.fullJson ? { fullJson: options.fullJson } : {},
13135
13186
  ...cliAdmission ? {
@@ -13162,8 +13213,8 @@ async function handleNamedRun(options, hooks) {
13162
13213
  options,
13163
13214
  _nullishCoalesce(finalStatus.revisionId, () => ( selectedRevisionId))
13164
13215
  );
13165
- _optionalChain([hooks, 'optionalAccess', _502 => _502.onTerminalStatus, 'optionalCall', _503 => _503(outputStatus)]);
13166
- if (_optionalChain([hooks, 'optionalAccess', _504 => _504.writeResult])) {
13216
+ _optionalChain([hooks, 'optionalAccess', _510 => _510.onTerminalStatus, 'optionalCall', _511 => _511(outputStatus)]);
13217
+ if (_optionalChain([hooks, 'optionalAccess', _512 => _512.writeResult])) {
13167
13218
  await hooks.writeResult(client, outputStatus);
13168
13219
  return outputStatus.status === "completed" ? 0 : 1;
13169
13220
  }
@@ -13178,23 +13229,38 @@ async function handleNamedRun(options, hooks) {
13178
13229
  return outputStatus.status === "completed" ? 0 : 1;
13179
13230
  }
13180
13231
  progress.phase("starting run");
13181
- const started = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
13232
+ const started = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
13182
13233
  "cli.play_start_unwatched",
13183
13234
  { targetKind: "name", playName },
13184
- () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _505 => _505.onSubmission]) }).catch(async (error) => {
13235
+ () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _513 => _513.onSubmission]) }).catch(async (error) => {
13185
13236
  throw await normalizePlayStartError(client, error, playName, {
13186
13237
  suggestMissingPlay: true
13187
13238
  });
13188
13239
  })
13189
13240
  );
13190
- await _optionalChain([hooks, 'optionalAccess', _506 => _506.onRunStarted, 'optionalCall', _507 => _507(started.workflowId)]);
13191
- await _optionalChain([hooks, 'optionalAccess', _508 => _508.onRunAdmitted, 'optionalCall', _509 => _509(started.workflowId)]);
13192
- const resolvedDashboardUrl = _chunk4IP5MLWUjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
13193
- openPlayDashboard(resolvedDashboardUrl, options.open);
13241
+ await _optionalChain([hooks, 'optionalAccess', _514 => _514.onRunStarted, 'optionalCall', _515 => _515(started.workflowId)]);
13242
+ await _optionalChain([hooks, 'optionalAccess', _516 => _516.onRunAdmitted, 'optionalCall', _517 => _517(started.workflowId)]);
13243
+ const resolvedDashboardUrl = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
13244
+ openPlayDashboard(
13245
+ resolvePlayRunUrl({
13246
+ runId: started.workflowId,
13247
+ runUrl: started.runUrl,
13248
+ dashboardUrl: resolvedDashboardUrl
13249
+ }),
13250
+ options.open
13251
+ );
13194
13252
  progress.phase("started run");
13195
13253
  progress.complete();
13196
- if (_optionalChain([hooks, 'optionalAccess', _510 => _510.writeStarted])) {
13197
- hooks.writeStarted(started.workflowId, _nullishCoalesce(started.status, () => ( "started")));
13254
+ if (_optionalChain([hooks, 'optionalAccess', _518 => _518.writeStarted])) {
13255
+ hooks.writeStarted(
13256
+ started.workflowId,
13257
+ _nullishCoalesce(started.status, () => ( "started")),
13258
+ resolvePlayRunUrl({
13259
+ runId: started.workflowId,
13260
+ runUrl: started.runUrl,
13261
+ dashboardUrl: resolvedDashboardUrl
13262
+ })
13263
+ );
13198
13264
  return 0;
13199
13265
  }
13200
13266
  writeStartedPlayRun({
@@ -13218,13 +13284,18 @@ async function writePlayRunReceipt(client, status, output) {
13218
13284
  const compact = compactPlayStatus(status);
13219
13285
  const errors = Array.isArray(compact.errors) ? compact.errors : [];
13220
13286
  const error = status.status === "failed" ? _nullishCoalesce(errors[0], () => ( {
13221
- message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access', _511 => _511.progress, 'optionalAccess', _512 => _512.error]))), () => ( "Play failed. Inspect the run for details."))
13287
+ message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access', _519 => _519.progress, 'optionalAccess', _520 => _520.error]))), () => ( "Play failed. Inspect the run for details."))
13222
13288
  })) : null;
13223
13289
  const next = { status: `deepline runs get ${status.runId}` };
13224
- const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _513 => _513.exec, 'call', _514 => _514(status.runId), 'optionalAccess', _515 => _515[1]]), () => ( extractRunPlayName(status))), () => ( null));
13290
+ const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _521 => _521.exec, 'call', _522 => _522(status.runId), 'optionalAccess', _523 => _523[1]]), () => ( extractRunPlayName(status))), () => ( null));
13225
13291
  if (!terminal) {
13226
- _chunk6UARNRXTjs.writeExecutionOutput.call(void 0,
13227
- { id: status.runId, status: status.status, next },
13292
+ _chunkUCMY2SO2js.writeExecutionOutput.call(void 0,
13293
+ {
13294
+ id: status.runId,
13295
+ status: status.status,
13296
+ ...playName ? { page: _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
13297
+ next
13298
+ },
13228
13299
  output
13229
13300
  );
13230
13301
  return;
@@ -13282,11 +13353,11 @@ async function writePlayRunReceipt(client, status, output) {
13282
13353
  Object.entries(handle).filter(([key]) => source !== "result" || key !== "_metadata").map(([key, child]) => [key, materialize(child, `${source}.${key}`)])
13283
13354
  );
13284
13355
  };
13285
- const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call', _516 => _516(status), 'optionalAccess', _517 => _517.outputs]));
13356
+ const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call', _524 => _524(status), 'optionalAccess', _525 => _525.outputs]));
13286
13357
  const returned = status.result !== void 0 ? status.result : packagedOutputs ? Object.fromEntries(
13287
13358
  Object.entries(packagedOutputs).map(([key, value]) => [
13288
13359
  key,
13289
- _optionalChain([readRecord, 'call', _518 => _518(value), 'optionalAccess', _519 => _519.kind]) === "value" ? _optionalChain([readRecord, 'call', _520 => _520(value), 'optionalAccess', _521 => _521.value]) : value
13360
+ _optionalChain([readRecord, 'call', _526 => _526(value), 'optionalAccess', _527 => _527.kind]) === "value" ? _optionalChain([readRecord, 'call', _528 => _528(value), 'optionalAccess', _529 => _529.value]) : value
13290
13361
  ])
13291
13362
  ) : null;
13292
13363
  let data = materialize(returned);
@@ -13298,10 +13369,10 @@ async function writePlayRunReceipt(client, status, output) {
13298
13369
  };
13299
13370
  }
13300
13371
  const byRows = new Map(collections.map((c) => [c.rows, c]));
13301
- const allCollections = _chunk6UARNRXTjs.outputCollections.call(void 0, data).map(
13372
+ const allCollections = _chunkUCMY2SO2js.outputCollections.call(void 0, data).map(
13302
13373
  (collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
13303
13374
  );
13304
- _chunk6UARNRXTjs.writeExecutionOutput.call(void 0,
13375
+ _chunkUCMY2SO2js.writeExecutionOutput.call(void 0,
13305
13376
  {
13306
13377
  id: status.runId,
13307
13378
  status: status.status,
@@ -13309,8 +13380,8 @@ async function writePlayRunReceipt(client, status, output) {
13309
13380
  ...allCollections.length ? { collections: allCollections } : {},
13310
13381
  complete: allCollections.every((c) => c.complete === true) ? true : allCollections.some((c) => c.complete === false) ? false : null,
13311
13382
  error,
13312
- credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _522 => _522.billing, 'optionalAccess', _523 => _523.totalCredits]))), () => ( null)),
13313
- ...playName ? { page: _chunk4IP5MLWUjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) } : {},
13383
+ credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _530 => _530.billing, 'optionalAccess', _531 => _531.totalCredits]))), () => ( null)),
13384
+ ...playName ? { page: _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
13314
13385
  warnings: [
13315
13386
  ...buildRunWarnings(status, null),
13316
13387
  ...status.status === "completed" && collections.length && collections.every((collection) => collection.rows.length === 0) ? ["Run completed with 0 output rows."] : []
@@ -13322,7 +13393,7 @@ async function writePlayRunReceipt(client, status, output) {
13322
13393
  }
13323
13394
  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;
13324
13395
  async function handlePlayRun(args, hooks) {
13325
- const parsedOptions = Array.isArray(args) ? _chunkCRBBGKRHjs.parsePlayRunOptions.call(void 0, args) : args;
13396
+ const parsedOptions = Array.isArray(args) ? _chunkXQX476QKjs.parsePlayRunOptions.call(void 0, args) : args;
13326
13397
  const options = parsedOptions.runIdFile ? {
13327
13398
  ...parsedOptions,
13328
13399
  runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
@@ -13339,7 +13410,7 @@ async function handlePlayRun(args, hooks) {
13339
13410
  JSON.stringify({
13340
13411
  version: 1,
13341
13412
  admissionState: "submitted_unknown",
13342
- baseUrl: new (0, _chunkB2TXKEEDjs.DeeplineClient)().baseUrl,
13413
+ baseUrl: new (0, _chunk2H4OFVR5js.DeeplineClient)().baseUrl,
13343
13414
  ...intent
13344
13415
  })
13345
13416
  );
@@ -13351,7 +13422,7 @@ async function handlePlayRun(args, hooks) {
13351
13422
  } finally {
13352
13423
  await removeRunIdTempFile(tempPath);
13353
13424
  }
13354
- await _optionalChain([hooks, 'optionalAccess', _524 => _524.onSubmission, 'optionalCall', _525 => _525(intent)]);
13425
+ await _optionalChain([hooks, 'optionalAccess', _532 => _532.onSubmission, 'optionalCall', _533 => _533(intent)]);
13355
13426
  },
13356
13427
  onRunStarted: async (runId) => {
13357
13428
  try {
@@ -13362,7 +13433,7 @@ async function handlePlayRun(args, hooks) {
13362
13433
  { cause: error }
13363
13434
  );
13364
13435
  }
13365
- await _optionalChain([hooks, 'optionalAccess', _526 => _526.onRunStarted, 'optionalCall', _527 => _527(runId)]);
13436
+ await _optionalChain([hooks, 'optionalAccess', _534 => _534.onRunStarted, 'optionalCall', _535 => _535(runId)]);
13366
13437
  },
13367
13438
  onRunAdmitted: async (runId) => {
13368
13439
  try {
@@ -13375,7 +13446,7 @@ async function handlePlayRun(args, hooks) {
13375
13446
  { cause: error }
13376
13447
  );
13377
13448
  }
13378
- await _optionalChain([hooks, 'optionalAccess', _528 => _528.onRunAdmitted, 'optionalCall', _529 => _529(runId)]);
13449
+ await _optionalChain([hooks, 'optionalAccess', _536 => _536.onRunAdmitted, 'optionalCall', _537 => _537(runId)]);
13379
13450
  }
13380
13451
  } : hooks;
13381
13452
  if (options.target.kind === "file") {
@@ -13448,16 +13519,16 @@ function renderRunOverviewText(overview, extras = {}) {
13448
13519
  const lines = [
13449
13520
  `${runGlyph} ${runLabel.word} ${run.id}`,
13450
13521
  ` play: ${run.playName}`,
13451
- ...extras.dashboardUrl ? [` play page: ${extras.dashboardUrl}`] : [],
13522
+ ...extras.runUrl ? [` run page: ${extras.runUrl}`] : [],
13452
13523
  ...extras.credits ? [` credits: ${formatRunCreditsLine(extras.credits)}`] : [],
13453
13524
  ...formatRunTimingTextLines(run),
13454
13525
  ...buildRunActivityTextLines(run),
13455
13526
  ...buildRunStatusEvidenceTextLines(overview)
13456
13527
  ];
13457
- if (_optionalChain([overview, 'access', _530 => _530.runStatus, 'optionalAccess', _531 => _531.available]) === false)
13528
+ if (_optionalChain([overview, 'access', _538 => _538.runStatus, 'optionalAccess', _539 => _539.available]) === false)
13458
13529
  lines.push(` call progress: unavailable (${overview.runStatus.reason})`);
13459
- const work = readRecord(_optionalChain([readRecord, 'call', _532 => _532(run), 'optionalAccess', _533 => _533.work]));
13460
- if (work && !_optionalChain([overview, 'access', _534 => _534.runStatus, 'optionalAccess', _535 => _535.available]))
13530
+ const work = readRecord(_optionalChain([readRecord, 'call', _540 => _540(run), 'optionalAccess', _541 => _541.work]));
13531
+ if (work && !_optionalChain([overview, 'access', _542 => _542.runStatus, 'optionalAccess', _543 => _543.available]))
13461
13532
  lines.push(
13462
13533
  ` calls (${_nullishCoalesce(work.scope, () => ( "attempt scope unknown"))}): ${formatObservedRunCounter({ value: work.logicalCalls, confirmed: true })} logical, ${formatObservedRunCounter({ value: work.providerRequests, confirmed: true })} provider requests`
13463
13534
  );
@@ -13508,7 +13579,7 @@ function renderRunOverviewText(overview, extras = {}) {
13508
13579
  ...overview.failedLogs.warning ? [`warning: ${overview.failedLogs.warning}`] : [],
13509
13580
  ...overview.failedLogs.logsTruncated ? ["Older log bodies were not retained."] : [],
13510
13581
  ...overview.failedLogs.entries,
13511
- ..._optionalChain([overview, 'access', _536 => _536.failedLogs, 'access', _537 => _537.next, 'optionalAccess', _538 => _538.logs]) ? [`More logs: ${overview.failedLogs.next.logs}`] : []
13582
+ ..._optionalChain([overview, 'access', _544 => _544.failedLogs, 'access', _545 => _545.next, 'optionalAccess', _546 => _546.logs]) ? [`More logs: ${overview.failedLogs.next.logs}`] : []
13512
13583
  ]
13513
13584
  });
13514
13585
  sections.push({
@@ -13568,7 +13639,7 @@ function renderRunOverviewText(overview, extras = {}) {
13568
13639
  );
13569
13640
  return `${lines.join("\n")}
13570
13641
 
13571
- ${_chunkBCKIBVEJjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13642
+ ${_chunk2I7VN65Hjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13572
13643
  }
13573
13644
  var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
13574
13645
  async function withRunReadTiming(command, stage, enabled, action) {
@@ -13579,7 +13650,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
13579
13650
  const progressTimer = setInterval(() => {
13580
13651
  console.error(`[${command}] ${stage} still running after ${elapsedMs()}ms`);
13581
13652
  }, RUN_READ_TIMING_PROGRESS_INTERVAL_MS);
13582
- _optionalChain([progressTimer, 'access', _539 => _539.unref, 'optionalCall', _540 => _540()]);
13653
+ _optionalChain([progressTimer, 'access', _547 => _547.unref, 'optionalCall', _548 => _548()]);
13583
13654
  try {
13584
13655
  const result = await action();
13585
13656
  console.error(`[${command}] ${stage} completed in ${elapsedMs()}ms`);
@@ -13592,12 +13663,12 @@ async function withRunReadTiming(command, stage, enabled, action) {
13592
13663
  }
13593
13664
  }
13594
13665
  async function handleRunGet(args) {
13595
- const selection = _chunkBCKIBVEJjs.parseJsonFields.call(void 0,
13666
+ const selection = _chunk2I7VN65Hjs.parseJsonFields.call(void 0,
13596
13667
  args,
13597
13668
  args.includes("--config") ? "config" : "get"
13598
13669
  );
13599
13670
  args = selection.args;
13600
- const usage2 = "Usage: deepline runs get <run-id> [--json] [--full] [--input] [--config] [--web-url] [--timing]";
13671
+ const usage2 = "Usage: deepline runs get <run-id> [--json] [--full] [--input] [--config] [--web] [--web-url] [--timing]";
13601
13672
  let runId;
13602
13673
  try {
13603
13674
  runId = parseRunIdPositional(args, usage2);
@@ -13605,9 +13676,10 @@ async function handleRunGet(args) {
13605
13676
  console.error(error instanceof Error ? error.message : usage2);
13606
13677
  return 1;
13607
13678
  }
13608
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
13679
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
13609
13680
  const timing = args.includes("--timing");
13610
- if (args.includes("--web-url")) {
13681
+ const web = args.includes("--web");
13682
+ if (web || args.includes("--web-url")) {
13611
13683
  const status2 = await withRunReadTiming(
13612
13684
  "runs get",
13613
13685
  "status",
@@ -13616,13 +13688,27 @@ async function handleRunGet(args) {
13616
13688
  );
13617
13689
  const playName2 = resolveRunPlayName(status2, runId);
13618
13690
  if (!playName2) {
13619
- console.error(`Run ${runId} does not name its play; no play page URL.`);
13691
+ console.error(`Run ${runId} does not name its play; no run page URL.`);
13620
13692
  return 1;
13621
13693
  }
13622
- const dashboardUrl2 = _chunk4IP5MLWUjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
13623
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
13624
- { dashboardUrl: dashboardUrl2 },
13625
- { json: args.includes("--json"), text: `${dashboardUrl2}
13694
+ const dashboardUrl2 = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
13695
+ const runUrl2 = _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
13696
+ if (web) {
13697
+ const opened = _chunk2I7VN65Hjs.openInBrowser.call(void 0, runUrl2);
13698
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
13699
+ { dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
13700
+ {
13701
+ json: args.includes("--json"),
13702
+ text: opened === "opened" ? `Opening ${runUrl2} in your browser.
13703
+ ` : `${runUrl2}
13704
+ `
13705
+ }
13706
+ );
13707
+ return 0;
13708
+ }
13709
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
13710
+ { dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
13711
+ { json: args.includes("--json"), text: `${runUrl2}
13626
13712
  ` }
13627
13713
  );
13628
13714
  return 0;
@@ -13645,7 +13731,7 @@ async function handleRunGet(args) {
13645
13731
  "This server does not support recorded configuration reads."
13646
13732
  );
13647
13733
  }
13648
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
13734
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
13649
13735
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13650
13736
  { json: true, fields: selection.fields }
13651
13737
  );
@@ -13658,7 +13744,7 @@ async function handleRunGet(args) {
13658
13744
  timing,
13659
13745
  () => client.getRunInput(runId)
13660
13746
  );
13661
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, input, { json: true });
13747
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, input, { json: true });
13662
13748
  return 0;
13663
13749
  }
13664
13750
  const full = args.includes("--full");
@@ -13671,7 +13757,7 @@ async function handleRunGet(args) {
13671
13757
  failedLogs: args.includes("--log-failed")
13672
13758
  })
13673
13759
  );
13674
- if (status.package) _chunk6UARNRXTjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13760
+ if (status.package) _chunkUCMY2SO2js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13675
13761
  if (!status.package) {
13676
13762
  const legacyStatus = full ? await withRunReadTiming(
13677
13763
  "runs get",
@@ -13683,21 +13769,23 @@ async function handleRunGet(args) {
13683
13769
  })
13684
13770
  ) : status;
13685
13771
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
13686
- const legacyDashboardUrl = legacyPlayName ? _chunk4IP5MLWUjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
13687
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
13688
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
13772
+ const legacyDashboardUrl = legacyPlayName ? _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
13773
+ const legacyRunUrl = legacyPlayName ? _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
13774
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
13775
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
13689
13776
  {
13690
13777
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
13691
- ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
13778
+ ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
13779
+ ...legacyRunUrl ? { runUrl: legacyRunUrl } : {}
13692
13780
  },
13693
13781
  { json: true, fields: selection.fields }
13694
13782
  );
13695
13783
  } else {
13696
13784
  writePlayResult(legacyStatus, false, { fullJson: full });
13697
- if (legacyDashboardUrl)
13698
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
13699
- { dashboardUrl: legacyDashboardUrl },
13700
- { json: false, text: `play page: ${legacyDashboardUrl}
13785
+ if (legacyRunUrl)
13786
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
13787
+ { dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
13788
+ { json: false, text: `run page: ${legacyRunUrl}
13701
13789
  ` }
13702
13790
  );
13703
13791
  }
@@ -13725,20 +13813,22 @@ async function handleRunGet(args) {
13725
13813
  )
13726
13814
  ]);
13727
13815
  const hitLines = formatRunHitsLines(hits);
13728
- const json = _chunkBCKIBVEJjs.argsWantJson.call(void 0, args);
13816
+ const json = _chunk2I7VN65Hjs.argsWantJson.call(void 0, args);
13729
13817
  const playName = resolveRunPlayName(status, runId);
13730
- const dashboardUrl = playName ? _chunk4IP5MLWUjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
13731
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
13818
+ const dashboardUrl = playName ? _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
13819
+ const runUrl = playName ? _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
13820
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
13732
13821
  {
13733
13822
  ...overview,
13734
13823
  ...dashboardUrl ? { dashboardUrl } : {},
13824
+ ...runUrl ? { runUrl } : {},
13735
13825
  credits,
13736
13826
  ...hits ? { hits } : {}
13737
13827
  },
13738
13828
  {
13739
13829
  json,
13740
13830
  ...json ? {} : {
13741
- text: `${renderRunOverviewText(overview, { credits, dashboardUrl })}${hitLines.length > 0 ? `${hitLines.join("\n")}
13831
+ text: `${renderRunOverviewText(overview, { credits, runUrl })}${hitLines.length > 0 ? `${hitLines.join("\n")}
13742
13832
  ` : ""}`
13743
13833
  },
13744
13834
  fields: selection.fields
@@ -13832,9 +13922,9 @@ async function handleRunLifecycleStatus(args) {
13832
13922
  console.error(error instanceof Error ? error.message : usage2);
13833
13923
  return 1;
13834
13924
  }
13835
- const status = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().runs.status(runId);
13836
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
13837
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, status, { json: true });
13925
+ const status = await new (0, _chunk2H4OFVR5js.DeeplineClient)().runs.status(runId);
13926
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
13927
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, status, { json: true });
13838
13928
  return 0;
13839
13929
  }
13840
13930
  if (!status.available) {
@@ -13874,7 +13964,7 @@ async function handleRunsRerun(args) {
13874
13964
  console.error(error instanceof Error ? error.message : usage2);
13875
13965
  return 1;
13876
13966
  }
13877
- const options = { json: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args) };
13967
+ const options = { json: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args) };
13878
13968
  for (let index = 0; index < args.length; index += 1) {
13879
13969
  if (args[index] === "--idempotency-key") {
13880
13970
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -13940,8 +14030,8 @@ ${usage2}
13940
14030
  Discover Plays: ${next.discover}
13941
14031
  Active runs: ${next.running}`
13942
14032
  );
13943
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
13944
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
14033
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
14034
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
13945
14035
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
13946
14036
  { json: true }
13947
14037
  );
@@ -13956,7 +14046,7 @@ Active runs: ${next.running}`
13956
14046
  console.error("--offset requires --play.");
13957
14047
  return 1;
13958
14048
  }
13959
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
14049
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
13960
14050
  const page = await withRunReadTiming(
13961
14051
  "runs list",
13962
14052
  "run inventory",
@@ -13991,7 +14081,7 @@ Active runs: ${next.running}`
13991
14081
  executionTime: run.executionTime,
13992
14082
  billingTotalCredits: run.billingTotalCredits,
13993
14083
  billingMaxCreditsPerRun: run.billingMaxCreditsPerRun,
13994
- playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access', _541 => _541.memo, 'optionalAccess', _542 => _542.playName]))), () => ( playName)), () => ( null)),
14084
+ playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access', _549 => _549.memo, 'optionalAccess', _550 => _550.playName]))), () => ( playName)), () => ( null)),
13995
14085
  ...nodeId ? { nodeObservation: _nullishCoalesce(run.nodeObservation, () => ( null)) } : {}
13996
14086
  }));
13997
14087
  const lines = runs.length === 0 ? [
@@ -14023,14 +14113,14 @@ Active runs: ${next.running}`
14023
14113
  return lines2.join("\n");
14024
14114
  });
14025
14115
  const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
14026
- 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}${_chunkBCKIBVEJjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14116
+ 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}${_chunk2I7VN65Hjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14027
14117
  if (page.hasMore) {
14028
14118
  lines.push("List truncated \u2014 more runs match this filter.");
14029
14119
  lines.push(
14030
14120
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14031
14121
  );
14032
14122
  }
14033
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
14123
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
14034
14124
  {
14035
14125
  runs,
14036
14126
  count: runs.length,
@@ -14040,11 +14130,11 @@ Active runs: ${next.running}`
14040
14130
  ...page.hasMore !== void 0 ? { has_more: page.hasMore, is_truncated: page.hasMore } : {},
14041
14131
  next: {
14042
14132
  page: nextPage,
14043
- get: _optionalChain([runs, 'access', _543 => _543[0], 'optionalAccess', _544 => _544.id]) ? `deepline runs get ${runs[0].id}` : null
14133
+ get: _optionalChain([runs, 'access', _551 => _551[0], 'optionalAccess', _552 => _552.id]) ? `deepline runs get ${runs[0].id}` : null
14044
14134
  },
14045
14135
  render: { sections: [{ title: "runs", lines }] }
14046
14136
  },
14047
- { json: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args) }
14137
+ { json: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args) }
14048
14138
  );
14049
14139
  return 0;
14050
14140
  }
@@ -14074,7 +14164,7 @@ async function handleRunTail(args) {
14074
14164
  console.error("--log-level requires one of: debug, info, warn, error.");
14075
14165
  return 1;
14076
14166
  }
14077
- const parsed = _chunkIG3GSBBEjs.parseLogLevel.call(void 0, value);
14167
+ const parsed = _chunkHTUSTPP4js.parseLogLevel.call(void 0, value);
14078
14168
  if (!parsed) {
14079
14169
  console.error(
14080
14170
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14112,9 +14202,9 @@ async function handleRunTail(args) {
14112
14202
  );
14113
14203
  return 1;
14114
14204
  }
14115
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
14205
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
14116
14206
  const jsonLines = args.includes("--jsonl");
14117
- const jsonOutput = !jsonLines && _chunkBCKIBVEJjs.argsWantJson.call(void 0, args);
14207
+ const jsonOutput = !jsonLines && _chunk2I7VN65Hjs.argsWantJson.call(void 0, args);
14118
14208
  const compact = args.includes("--compact");
14119
14209
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14120
14210
  const compactState = {
@@ -14195,7 +14285,7 @@ async function handleRunLogs(args) {
14195
14285
  ]);
14196
14286
  const cursorIndex = args.indexOf("--cursor");
14197
14287
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14198
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkIG3GSBBEjs.isRunLogsCursor.call(void 0, cursorValue));
14288
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkHTUSTPP4js.isRunLogsCursor.call(void 0, cursorValue));
14199
14289
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14200
14290
  return handleRunEventSearch(args);
14201
14291
  }
@@ -14229,7 +14319,7 @@ async function handleRunLogs(args) {
14229
14319
  console.error("--log-level requires one of: debug, info, warn, error.");
14230
14320
  return 1;
14231
14321
  }
14232
- const parsed = _chunkIG3GSBBEjs.parseLogLevel.call(void 0, value);
14322
+ const parsed = _chunkHTUSTPP4js.parseLogLevel.call(void 0, value);
14233
14323
  if (!parsed) {
14234
14324
  console.error(
14235
14325
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14276,12 +14366,12 @@ async function handleRunLogs(args) {
14276
14366
  );
14277
14367
  return 1;
14278
14368
  }
14279
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
14369
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
14280
14370
  if (outPath) {
14281
14371
  const result2 = await client.runs.logs(runId, { all: true });
14282
- const logs = result2.entries.filter((line) => _chunkIG3GSBBEjs.logLevelReaches.call(void 0, _chunkIG3GSBBEjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkIG3GSBBEjs.classifyLogLine.call(void 0, line).line);
14372
+ const logs = result2.entries.filter((line) => _chunkHTUSTPP4js.logLevelReaches.call(void 0, _chunkHTUSTPP4js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkHTUSTPP4js.classifyLogLine.call(void 0, line).line);
14283
14373
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14284
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
14374
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
14285
14375
  {
14286
14376
  runId: result2.runId,
14287
14377
  log_path: outPath,
@@ -14304,7 +14394,7 @@ async function handleRunLogs(args) {
14304
14394
  ]
14305
14395
  }
14306
14396
  },
14307
- { json: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args) }
14397
+ { json: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args) }
14308
14398
  );
14309
14399
  return 0;
14310
14400
  }
@@ -14335,7 +14425,7 @@ async function handleRunLogs(args) {
14335
14425
  }
14336
14426
  };
14337
14427
  const text = buildRunLogsText(filteredResult);
14338
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
14428
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
14339
14429
  {
14340
14430
  runId: result.runId,
14341
14431
  totalCount: result.totalCount,
@@ -14359,7 +14449,7 @@ async function handleRunLogs(args) {
14359
14449
  render: { sections: [{ title: "run logs", lines: entries }] }
14360
14450
  },
14361
14451
  {
14362
- json: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args),
14452
+ json: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args),
14363
14453
  text
14364
14454
  }
14365
14455
  );
@@ -14383,17 +14473,17 @@ function selectRunLogTailPage(result, logLevel, limit) {
14383
14473
  );
14384
14474
  }
14385
14475
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14386
- (entry) => _chunkIG3GSBBEjs.logLevelReaches.call(void 0, _chunkIG3GSBBEjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14476
+ (entry) => _chunkHTUSTPP4js.logLevelReaches.call(void 0, _chunkHTUSTPP4js.classifyLogLine.call(void 0, entry.line).level, logLevel)
14387
14477
  );
14388
14478
  const selected = matching.slice(-limit);
14389
14479
  const olderMatchesExist = matching.length > selected.length;
14390
14480
  return {
14391
14481
  entries: selected.map((entry) => entry.line),
14392
- firstSequence: _nullishCoalesce(_optionalChain([selected, 'access', _545 => _545[0], 'optionalAccess', _546 => _546.seq]), () => ( null)),
14393
- lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _547 => _547.at, 'call', _548 => _548(-1), 'optionalAccess', _549 => _549.seq]), () => ( null)),
14482
+ firstSequence: _nullishCoalesce(_optionalChain([selected, 'access', _553 => _553[0], 'optionalAccess', _554 => _554.seq]), () => ( null)),
14483
+ lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _555 => _555.at, 'call', _556 => _556(-1), 'optionalAccess', _557 => _557.seq]), () => ( null)),
14394
14484
  truncated: result.truncated || olderMatchesExist,
14395
14485
  hasMore: olderMatchesExist,
14396
- nextCursor: olderMatchesExist ? _chunkIG3GSBBEjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14486
+ nextCursor: olderMatchesExist ? _chunkHTUSTPP4js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14397
14487
  };
14398
14488
  }
14399
14489
  async function handleRunEventSearch(args) {
@@ -14460,7 +14550,7 @@ ${usage2}`);
14460
14550
  namespace,
14461
14551
  ...backend ? { backend } : {}
14462
14552
  } : void 0;
14463
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
14553
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
14464
14554
  const result = await client.runs.searchEvents({
14465
14555
  ...runId ? { runId } : {},
14466
14556
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14532,7 +14622,7 @@ ${renderedDetails}` : ""}`;
14532
14622
  "--limit",
14533
14623
  String(limit)
14534
14624
  ].join(" ") : null;
14535
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
14625
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
14536
14626
  {
14537
14627
  events,
14538
14628
  nextCursor: result.nextCursor,
@@ -14543,19 +14633,19 @@ ${renderedDetails}` : ""}`;
14543
14633
  render: { sections: [{ title: "runtime events", lines }] }
14544
14634
  },
14545
14635
  {
14546
- json: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args),
14636
+ json: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args),
14547
14637
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14548
14638
  }
14549
14639
  );
14550
14640
  return 0;
14551
14641
  }
14552
14642
  function buildRunLogsText(result) {
14553
- const lines = result.entries.map((line) => _chunkIG3GSBBEjs.classifyLogLine.call(void 0, line).line);
14643
+ const lines = result.entries.map((line) => _chunkHTUSTPP4js.classifyLogLine.call(void 0, line).line);
14554
14644
  if (result.warning) {
14555
14645
  if (lines.length > 0) lines.push("");
14556
14646
  lines.push(`warning: ${result.warning}`);
14557
14647
  lines.push(
14558
- `retained logs: ${_nullishCoalesce(_optionalChain([result, 'access', _550 => _550.next, 'optionalAccess', _551 => _551.logs]), () => ( `deepline runs logs ${result.runId} --out run.log`))}`
14648
+ `retained logs: ${_nullishCoalesce(_optionalChain([result, 'access', _558 => _558.next, 'optionalAccess', _559 => _559.logs]), () => ( `deepline runs logs ${result.runId} --out run.log`))}`
14559
14649
  );
14560
14650
  }
14561
14651
  return `${lines.join("\n")}${lines.length > 0 ? "\n" : ""}`;
@@ -14584,7 +14674,7 @@ async function handleRunStop(args) {
14584
14674
  reason = args[++index];
14585
14675
  }
14586
14676
  }
14587
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
14677
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
14588
14678
  const result = await client.runs.stop(runId, { reason });
14589
14679
  const state = resolveRunStopState(result);
14590
14680
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14599,7 +14689,7 @@ async function handleRunStop(args) {
14599
14689
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14600
14690
  `inspect: deepline runs get ${runId} --full`
14601
14691
  ];
14602
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
14692
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
14603
14693
  {
14604
14694
  ...cancelling,
14605
14695
  state,
@@ -14614,7 +14704,7 @@ async function handleRunStop(args) {
14614
14704
  ]
14615
14705
  }
14616
14706
  },
14617
- { json: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args) }
14707
+ { json: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args) }
14618
14708
  );
14619
14709
  return 0;
14620
14710
  }
@@ -14631,7 +14721,7 @@ async function handleRunStop(args) {
14631
14721
  ];
14632
14722
  process.stderr.write(`${lines2.join("\n")}
14633
14723
  `);
14634
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
14724
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
14635
14725
  {
14636
14726
  ...result,
14637
14727
  render: {
@@ -14646,7 +14736,7 @@ async function handleRunStop(args) {
14646
14736
  ]
14647
14737
  }
14648
14738
  },
14649
- { json: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args) }
14739
+ { json: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args) }
14650
14740
  );
14651
14741
  return 1;
14652
14742
  }
@@ -14657,12 +14747,12 @@ async function handleRunStop(args) {
14657
14747
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14658
14748
  ] : []
14659
14749
  ];
14660
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
14750
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
14661
14751
  {
14662
14752
  ...result,
14663
14753
  render: { sections: [{ title: "run stop", lines }] }
14664
14754
  },
14665
- { json: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args) }
14755
+ { json: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args) }
14666
14756
  );
14667
14757
  return 0;
14668
14758
  }
@@ -14712,18 +14802,18 @@ async function handleRunStopAll(args) {
14712
14802
  reason = args[++index];
14713
14803
  }
14714
14804
  }
14715
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
14805
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
14716
14806
  if (dryRun) {
14717
14807
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14718
14808
  const lines2 = buildStopAllDryRunTextLines(result2);
14719
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
14809
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
14720
14810
  {
14721
14811
  ...result2,
14722
14812
  render: {
14723
14813
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14724
14814
  }
14725
14815
  },
14726
- { json: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14816
+ { json: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14727
14817
  ` }
14728
14818
  );
14729
14819
  return 0;
@@ -14736,17 +14826,17 @@ async function handleRunStopAll(args) {
14736
14826
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14737
14827
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14738
14828
  ];
14739
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
14829
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
14740
14830
  {
14741
14831
  ...result,
14742
14832
  render: { sections: [{ title: "workspace stop-all", lines }] }
14743
14833
  },
14744
- { json: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args) }
14834
+ { json: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args) }
14745
14835
  );
14746
14836
  return result.failed > 0 || result.partial ? 1 : 0;
14747
14837
  }
14748
14838
  async function handleRunExport(args) {
14749
- const selection = _chunkBCKIBVEJjs.parseJsonFields.call(void 0, args, "export");
14839
+ const selection = _chunk2I7VN65Hjs.parseJsonFields.call(void 0, args, "export");
14750
14840
  args = selection.args;
14751
14841
  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]";
14752
14842
  let runId;
@@ -14817,17 +14907,17 @@ async function handleRunExport(args) {
14817
14907
  "INVALID_ARGUMENT"
14818
14908
  );
14819
14909
  }
14820
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
14910
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
14821
14911
  let status = await client.getPlayStatus(runId, { full: true });
14822
14912
  assertRunExportStatusIdentity(status, runId);
14823
14913
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14824
- const progress = _chunkQ7G7CU4Wjs.createCliProgress.call(void 0, !_chunkBCKIBVEJjs.argsWantJson.call(void 0, args));
14914
+ const progress = _chunkAWMCZAURjs.createCliProgress.call(void 0, !_chunk2I7VN65Hjs.argsWantJson.call(void 0, args));
14825
14915
  try {
14826
14916
  await waitForPlayCompletionByWatch({
14827
14917
  client,
14828
14918
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14829
14919
  workflowId: runId,
14830
- jsonOutput: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args),
14920
+ jsonOutput: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args),
14831
14921
  emitLogs: false,
14832
14922
  waitTimeoutMs,
14833
14923
  startedAt: Date.now(),
@@ -14853,26 +14943,26 @@ async function handleRunExport(args) {
14853
14943
  format,
14854
14944
  summary
14855
14945
  });
14856
- const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _552 => _552.rowsInfo, 'access', _553 => _553.source]), () => ( datasetPath)), () => ( null));
14857
- const currentTableNotice = _optionalChain([exportResult, 'optionalAccess', _554 => _554.currentTable]) ? {
14946
+ const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _560 => _560.rowsInfo, 'access', _561 => _561.source]), () => ( datasetPath)), () => ( null));
14947
+ const currentTableNotice = _optionalChain([exportResult, 'optionalAccess', _562 => _562.currentTable]) ? {
14858
14948
  code: "CURRENT_SHARED_DATASET",
14859
14949
  message: "This export is the current shared dataset and may include writes from another run.",
14860
14950
  full_run_output_command: `deepline runs get ${status.runId} --full`
14861
14951
  } : null;
14862
14952
  const navigation = buildRunNavigation(status);
14863
- const resolved = _optionalChain([exportResult, 'optionalAccess', _555 => _555.datasetInfo]);
14953
+ const resolved = _optionalChain([exportResult, 'optionalAccess', _563 => _563.datasetInfo]);
14864
14954
  const identity = navigation.datasets.find(
14865
- (dataset) => _optionalChain([resolved, 'optionalAccess', _556 => _556.datasetId]) ? dataset.datasetId === resolved.datasetId : dataset.name === _optionalChain([resolved, 'optionalAccess', _557 => _557.tableNamespace])
14955
+ (dataset) => _optionalChain([resolved, 'optionalAccess', _564 => _564.datasetId]) ? dataset.datasetId === resolved.datasetId : dataset.name === _optionalChain([resolved, 'optionalAccess', _565 => _565.tableNamespace])
14866
14956
  );
14867
14957
  const unambiguousName = identity && !identity.exportUnavailable && navigation.datasets.filter((dataset) => dataset.name === identity.name).length === 1 ? identity.name : void 0;
14868
14958
  const exportCommand = runExportRetryCommand(
14869
14959
  status.runId,
14870
14960
  outPath,
14871
- _nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess', _558 => _558.datasetPath]))),
14961
+ _nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess', _566 => _566.datasetPath]))),
14872
14962
  { format, summary }
14873
14963
  ) + (args.includes("--allow-empty") ? " --allow-empty" : "");
14874
- const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _559 => _559.path]), () => ( null)) } : { csv_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _560 => _560.path]), () => ( null)) };
14875
- const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess', _561 => _561.rowsInfo, 'access', _562 => _562.exportedRowOutcomes]);
14964
+ const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _567 => _567.path]), () => ( null)) } : { csv_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _568 => _568.path]), () => ( null)) };
14965
+ const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess', _569 => _569.rowsInfo, 'access', _570 => _570.exportedRowOutcomes]);
14876
14966
  const rowFailures = exportedRowOutcomes && exportedRowOutcomes.failed > 0 ? {
14877
14967
  count: exportedRowOutcomes.failed,
14878
14968
  message: "Failed rows can retain values from stages that completed earlier; those values do not prove the row succeeded.",
@@ -14892,17 +14982,17 @@ async function handleRunExport(args) {
14892
14982
  ...fileLocation,
14893
14983
  format,
14894
14984
  source,
14895
- rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _563 => _563.rowsInfo, 'access', _564 => _564.totalRows]), () => ( null)),
14985
+ rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.totalRows]), () => ( null)),
14896
14986
  ...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
14897
14987
  ...rowFailures ? { rowFailures } : {},
14898
- columns: _chunk6UARNRXTjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _565 => _565.rowsInfo, 'access', _566 => _566.columns]), () => ( []))),
14988
+ columns: _chunkUCMY2SO2js.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _573 => _573.rowsInfo, 'access', _574 => _574.columns]), () => ( []))),
14899
14989
  ...currentTableNotice ? { notice: currentTableNotice } : {},
14900
14990
  ...metadataOutPath ? { metadata_path: metadataOutPath } : {},
14901
14991
  ...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
14902
14992
  };
14903
14993
  const lines = withRunNavigationLines(
14904
14994
  [
14905
- `Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _567 => _567.path]), () => ( outPath))}`,
14995
+ `Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _575 => _575.path]), () => ( outPath))}`,
14906
14996
  ...!TERMINAL_PLAY_STATUSES.has(status.status) ? [
14907
14997
  `Partial export: run is ${status.status}; more rows may be saved.`,
14908
14998
  `Export after completion: ${exportCommand} --wait`
@@ -14929,8 +15019,8 @@ async function handleRunExport(args) {
14929
15019
  "utf-8"
14930
15020
  );
14931
15021
  }
14932
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, payload, {
14933
- json: _chunkBCKIBVEJjs.argsWantJson.call(void 0, args),
15022
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, payload, {
15023
+ json: _chunk2I7VN65Hjs.argsWantJson.call(void 0, args),
14934
15024
  fields: selection.fields,
14935
15025
  text: `${lines.join("\n")}
14936
15026
  `
@@ -14964,10 +15054,10 @@ async function handlePlayGet(args) {
14964
15054
  );
14965
15055
  return 2;
14966
15056
  }
14967
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
15057
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
14968
15058
  const explicitJson = args.includes("--json");
14969
15059
  const sourceOutput = args.includes("--source");
14970
- const jsonOutput = sourceOutput ? explicitJson : _chunkBCKIBVEJjs.argsWantJson.call(void 0, args);
15060
+ const jsonOutput = sourceOutput ? explicitJson : _chunk2I7VN65Hjs.argsWantJson.call(void 0, args);
14971
15061
  const requestedRevisionFlags = [
14972
15062
  args.includes("--working"),
14973
15063
  args.includes("--live"),
@@ -15020,7 +15110,7 @@ async function handlePlayGet(args) {
15020
15110
  ...includeSource ? { source: sourceSelector } : {}
15021
15111
  });
15022
15112
  const source = detail.source;
15023
- const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess', _568 => _568.files, 'access', _569 => _569[source.entryFile]]), () => ( ""));
15113
+ const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess', _576 => _576.files, 'access', _577 => _577[source.entryFile]]), () => ( ""));
15024
15114
  let materializedFile = null;
15025
15115
  try {
15026
15116
  materializedFile = outPath && source ? materializeRemotePlaySource({ target, playName, source, outPath }) : null;
@@ -15030,7 +15120,7 @@ async function handlePlayGet(args) {
15030
15120
  }
15031
15121
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15032
15122
  if (jsonOutput) {
15033
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, {
15123
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, {
15034
15124
  ...detail,
15035
15125
  ...materializedFile ? {
15036
15126
  message: loadedMessage,
@@ -15071,16 +15161,16 @@ async function handlePlayGet(args) {
15071
15161
  }
15072
15162
  console.log(`Play: ${formatPlayReference(detail.play)}`);
15073
15163
  console.log(
15074
- `Working version: ${_nullishCoalesce(_optionalChain([detail, 'access', _570 => _570.play, 'access', _571 => _571.workingRevision, 'optionalAccess', _572 => _572.version]), () => ( "\u2014"))}`
15164
+ `Working version: ${_nullishCoalesce(_optionalChain([detail, 'access', _578 => _578.play, 'access', _579 => _579.workingRevision, 'optionalAccess', _580 => _580.version]), () => ( "\u2014"))}`
15075
15165
  );
15076
- console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access', _573 => _573.play, 'access', _574 => _574.liveRevision, 'optionalAccess', _575 => _575.version]), () => ( "\u2014"))}`);
15166
+ console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access', _581 => _581.play, 'access', _582 => _582.liveRevision, 'optionalAccess', _583 => _583.version]), () => ( "\u2014"))}`);
15077
15167
  if (detail.play.liveRevision) {
15078
15168
  console.log(
15079
15169
  `Live max credits per run: ${liveMaxCreditsPerRun(detail.play.liveRevision.sourceCode)}`
15080
15170
  );
15081
15171
  }
15082
15172
  console.log(`Draft dirty: ${detail.play.isDraftDirty ? "yes" : "no"}`);
15083
- if (detail.play.isDraftDirty && _optionalChain([detail, 'access', _576 => _576.play, 'access', _577 => _577.liveRevision, 'optionalAccess', _578 => _578.version])) {
15173
+ if (detail.play.isDraftDirty && _optionalChain([detail, 'access', _584 => _584.play, 'access', _585 => _585.liveRevision, 'optionalAccess', _586 => _586.version])) {
15084
15174
  console.log(
15085
15175
  ` Scheduled and named runs continue to use live v${detail.play.liveRevision.version}.`
15086
15176
  );
@@ -15092,7 +15182,7 @@ async function handlePlayGet(args) {
15092
15182
  console.log(line);
15093
15183
  }
15094
15184
  console.log(`Updated: ${formatTimestamp(detail.play.updatedAt)}`);
15095
- console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access', _579 => _579.sheetSummary, 'optionalAccess', _580 => _580.stats, 'optionalAccess', _581 => _581.total]), () => ( 0))}`);
15185
+ console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access', _587 => _587.sheetSummary, 'optionalAccess', _588 => _588.stats, 'optionalAccess', _589 => _589.total]), () => ( 0))}`);
15096
15186
  if (detail.customerDbUrl) {
15097
15187
  console.log(`Customer DB: ${detail.customerDbUrl}`);
15098
15188
  }
@@ -15108,7 +15198,7 @@ async function handlePlayGet(args) {
15108
15198
  return 0;
15109
15199
  }
15110
15200
  function formatVersionLine(version) {
15111
- const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access', _582 => _582.artifactHash, 'optionalAccess', _583 => _583.slice, 'call', _584 => _584(0, 12)]), () => ( "unknown-revision"));
15201
+ const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access', _590 => _590.artifactHash, 'optionalAccess', _591 => _591.slice, 'call', _592 => _592(0, 12)]), () => ( "unknown-revision"));
15112
15202
  const state = [
15113
15203
  version.isLive ? "live" : null,
15114
15204
  version.isWorking ? "working" : null
@@ -15122,8 +15212,8 @@ async function handlePlayVersions(args) {
15122
15212
  console.error("Usage: deepline plays versions --name <name> [--json]");
15123
15213
  return 1;
15124
15214
  }
15125
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
15126
- const jsonOutput = _chunkBCKIBVEJjs.argsWantJson.call(void 0, args);
15215
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
15216
+ const jsonOutput = _chunk2I7VN65Hjs.argsWantJson.call(void 0, args);
15127
15217
  await assertCanonicalNamedPlayReference(client, playName, {
15128
15218
  command: "versions"
15129
15219
  });
@@ -15131,7 +15221,7 @@ async function handlePlayVersions(args) {
15131
15221
  parseReferencedPlayTarget(playName).playName
15132
15222
  );
15133
15223
  if (jsonOutput) {
15134
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, { versions });
15224
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, { versions });
15135
15225
  return 0;
15136
15226
  }
15137
15227
  if (versions.length === 0) {
@@ -15144,7 +15234,7 @@ async function handlePlayVersions(args) {
15144
15234
  return 0;
15145
15235
  }
15146
15236
  function formatPlayCostEstimate(estimate) {
15147
- const computeSummary = _optionalChain([estimate, 'optionalAccess', _585 => _585.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)` : "";
15237
+ 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)` : "";
15148
15238
  if (!estimate || estimate.status === "unavailable") {
15149
15239
  return `unavailable${estimate ? `: ${estimate.message}${computeSummary}` : ""}`;
15150
15240
  }
@@ -15174,8 +15264,8 @@ async function handlePlayCost(args) {
15174
15264
  console.error("Usage: deepline plays cost <play> [--json]");
15175
15265
  return 2;
15176
15266
  }
15177
- const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getPlayCostEstimate(name);
15178
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15267
+ const result = await new (0, _chunk2H4OFVR5js.DeeplineClient)().getPlayCostEstimate(name);
15268
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15179
15269
  else
15180
15270
  console.log(
15181
15271
  `${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
@@ -15183,11 +15273,11 @@ async function handlePlayCost(args) {
15183
15273
  return 0;
15184
15274
  }
15185
15275
  async function handlePlayList(args) {
15186
- const jsonOutput = _chunkBCKIBVEJjs.argsWantJson.call(void 0, args);
15276
+ const jsonOutput = _chunk2I7VN65Hjs.argsWantJson.call(void 0, args);
15187
15277
  const showCost = args.includes("--show-cost");
15188
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
15278
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
15189
15279
  const categoriesIndex = args.indexOf("--categories");
15190
- const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _586 => _586[categoriesIndex + 1], 'optionalAccess', _587 => _587.trim, 'call', _588 => _588()]) : void 0;
15280
+ const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _594 => _594[categoriesIndex + 1], 'optionalAccess', _595 => _595.trim, 'call', _596 => _596()]) : void 0;
15191
15281
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
15192
15282
  if (args.includes("--tag") && tags.length === 0) {
15193
15283
  console.error(
@@ -15208,7 +15298,7 @@ async function handlePlayList(args) {
15208
15298
  const cursorIndex = args.indexOf("--cursor");
15209
15299
  const limit = limitIndex >= 0 ? Number(args[limitIndex + 1]) : void 0;
15210
15300
  const cursor = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
15211
- if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess', _589 => _589.trim, 'call', _590 => _590()])) {
15301
+ if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess', _597 => _597.trim, 'call', _598 => _598()])) {
15212
15302
  console.error("Pass a positive --limit and a non-empty --cursor.");
15213
15303
  return 2;
15214
15304
  }
@@ -15249,7 +15339,7 @@ async function handlePlayList(args) {
15249
15339
  if (play.inputSchema || play.hasInputSchema) {
15250
15340
  lines.push(" inputSchema: yes");
15251
15341
  }
15252
- if (_optionalChain([play, 'access', _591 => _591.triggerStatus, 'optionalAccess', _592 => _592.cron])) {
15342
+ if (_optionalChain([play, 'access', _599 => _599.triggerStatus, 'optionalAccess', _600 => _600.cron])) {
15253
15343
  lines.push(
15254
15344
  ` scheduled execution: ${cronExecutionLabel(play.triggerStatus.cron)}`
15255
15345
  );
@@ -15269,12 +15359,12 @@ async function handlePlayList(args) {
15269
15359
  } else {
15270
15360
  lines.push(" scheduled execution: not configured");
15271
15361
  }
15272
- if (_optionalChain([play, 'access', _593 => _593.triggerStatus, 'optionalAccess', _594 => _594.webhook])) {
15362
+ if (_optionalChain([play, 'access', _601 => _601.triggerStatus, 'optionalAccess', _602 => _602.webhook])) {
15273
15363
  lines.push(` webhook: ${play.triggerStatus.webhook}`);
15274
15364
  }
15275
15365
  if (showCost) {
15276
15366
  lines.push(
15277
- ` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access', _595 => _595.observedCost, 'optionalAccess', _596 => _596.displayText]), () => ( formatPlayCostEstimate(play.costEstimate)))}`
15367
+ ` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access', _603 => _603.observedCost, 'optionalAccess', _604 => _604.displayText]), () => ( formatPlayCostEstimate(play.costEstimate)))}`
15278
15368
  );
15279
15369
  }
15280
15370
  lines.push(` run: deepline run ${reference}`);
@@ -15283,7 +15373,7 @@ async function handlePlayList(args) {
15283
15373
  lines.push("List truncated \u2014 more plays are available.");
15284
15374
  lines.push(`Next page: ${nextPage}`);
15285
15375
  }
15286
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
15376
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
15287
15377
  {
15288
15378
  plays,
15289
15379
  count: plays.length,
@@ -15300,8 +15390,8 @@ async function handlePlayList(args) {
15300
15390
  return 0;
15301
15391
  }
15302
15392
  async function handlePlayPin(args, pinned) {
15303
- const target = _optionalChain([args, 'access', _597 => _597.find, 'call', _598 => _598((arg) => !arg.startsWith("-")), 'optionalAccess', _599 => _599.trim, 'call', _600 => _600()]);
15304
- const jsonOutput = _chunkBCKIBVEJjs.argsWantJson.call(void 0, args);
15393
+ const target = _optionalChain([args, 'access', _605 => _605.find, 'call', _606 => _606((arg) => !arg.startsWith("-")), 'optionalAccess', _607 => _607.trim, 'call', _608 => _608()]);
15394
+ const jsonOutput = _chunk2I7VN65Hjs.argsWantJson.call(void 0, args);
15305
15395
  const dryRun = args.includes("--dry-run");
15306
15396
  if (!target) {
15307
15397
  console.error(
@@ -15319,11 +15409,11 @@ async function handlePlayPin(args, pinned) {
15319
15409
  const name = parsedTarget.playName;
15320
15410
  const plan = { name, pinned, dryRun };
15321
15411
  if (dryRun) {
15322
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, plan);
15412
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, plan);
15323
15413
  return 0;
15324
15414
  }
15325
- const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().setPlayPinned(name, pinned);
15326
- if (jsonOutput) _chunkBCKIBVEJjs.printCompactJson.call(void 0, result);
15415
+ const result = await new (0, _chunk2H4OFVR5js.DeeplineClient)().setPlayPinned(name, pinned);
15416
+ if (jsonOutput) _chunk2I7VN65Hjs.printCompactJson.call(void 0, result);
15327
15417
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15328
15418
  return 0;
15329
15419
  }
@@ -15371,7 +15461,7 @@ function printPlayDescription(play) {
15371
15461
  console.log(` ${line}`);
15372
15462
  }
15373
15463
  }
15374
- if (_optionalChain([play, 'access', _601 => _601.toolCategories, 'optionalAccess', _602 => _602.length])) {
15464
+ if (_optionalChain([play, 'access', _609 => _609.toolCategories, 'optionalAccess', _610 => _610.length])) {
15375
15465
  console.log(` Tool categories: ${play.toolCategories.join(", ")}`);
15376
15466
  }
15377
15467
  if (play.aliases.length > 0) {
@@ -15416,7 +15506,7 @@ function printPlayDescription(play) {
15416
15506
  const runtimeLimit = formatPlayRuntimeLimit(play.runtimeLimit);
15417
15507
  if (runtimeLimit) {
15418
15508
  console.log(
15419
- ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _603 => _603.runtimeLimit, 'optionalAccess', _604 => _604.source]), () => ( "live"))})`
15509
+ ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _611 => _611.runtimeLimit, 'optionalAccess', _612 => _612.source]), () => ( "live"))})`
15420
15510
  );
15421
15511
  }
15422
15512
  printScheduledPlayCapacity(play.activeScheduledPlays);
@@ -15444,17 +15534,17 @@ function formatPlayGrepMatches(matches) {
15444
15534
  return matches.map((match) => `${match.field}: ${match.terms.join(", ")}`).join("; ");
15445
15535
  }
15446
15536
  async function handlePlayGrep(args) {
15447
- const query = _optionalChain([args, 'access', _605 => _605[0], 'optionalAccess', _606 => _606.trim, 'call', _607 => _607()]);
15537
+ const query = _optionalChain([args, 'access', _613 => _613[0], 'optionalAccess', _614 => _614.trim, 'call', _615 => _615()]);
15448
15538
  if (!query) {
15449
15539
  console.error("Usage: deepline plays grep <query> [--json]");
15450
15540
  return 1;
15451
15541
  }
15452
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
15542
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
15453
15543
  const results = (await client.listPlays({ grep: query })).map(
15454
15544
  summarizePlayGrepResult
15455
15545
  );
15456
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
15457
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, {
15546
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
15547
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, {
15458
15548
  plays: results,
15459
15549
  count: results.length,
15460
15550
  query,
@@ -15468,7 +15558,7 @@ async function handlePlayGrep(args) {
15468
15558
  `
15469
15559
  );
15470
15560
  for (const result of results) {
15471
- console.log(_optionalChain([result, 'access', _608 => _608.displayName, 'optionalAccess', _609 => _609.trim, 'call', _610 => _610()]) || result.name);
15561
+ console.log(_optionalChain([result, 'access', _616 => _616.displayName, 'optionalAccess', _617 => _617.trim, 'call', _618 => _618()]) || result.name);
15472
15562
  const matches = formatPlayGrepMatches(result.matches);
15473
15563
  if (matches) console.log(` Matched: ${matches}`);
15474
15564
  console.log(` Describe: ${result.describe}`);
@@ -15477,7 +15567,7 @@ async function handlePlayGrep(args) {
15477
15567
  return 0;
15478
15568
  }
15479
15569
  async function handlePlayDescribe(args) {
15480
- const selection = _chunkBCKIBVEJjs.parseJsonFields.call(void 0, args, "describe");
15570
+ const selection = _chunk2I7VN65Hjs.parseJsonFields.call(void 0, args, "describe");
15481
15571
  args = selection.args;
15482
15572
  const playName = args[0];
15483
15573
  if (!playName) {
@@ -15511,8 +15601,8 @@ async function handlePlayDescribe(args) {
15511
15601
  `deepline plays check ${playName}`,
15512
15602
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15513
15603
  ];
15514
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
15515
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, {
15604
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
15605
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, {
15516
15606
  ok: false,
15517
15607
  error: { message },
15518
15608
  next
@@ -15526,7 +15616,7 @@ async function handlePlayDescribe(args) {
15526
15616
  }
15527
15617
  return 2;
15528
15618
  }
15529
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
15619
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
15530
15620
  await assertCanonicalNamedPlayReference(client, playName, {
15531
15621
  command: "describe"
15532
15622
  });
@@ -15536,9 +15626,9 @@ async function handlePlayDescribe(args) {
15536
15626
  compact: args.includes("--compact")
15537
15627
  }
15538
15628
  );
15539
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
15540
- if (selection.fields) _chunkBCKIBVEJjs.printJson.call(void 0, play, selection.fields);
15541
- else _chunkBCKIBVEJjs.printCompactJson.call(void 0, play);
15629
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
15630
+ if (selection.fields) _chunk2I7VN65Hjs.printJson.call(void 0, play, selection.fields);
15631
+ else _chunk2I7VN65Hjs.printCompactJson.call(void 0, play);
15542
15632
  return 0;
15543
15633
  }
15544
15634
  printPlayDescription(play);
@@ -15560,7 +15650,7 @@ async function handlePlaySave(args) {
15560
15650
  }
15561
15651
  let graph;
15562
15652
  try {
15563
- graph = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
15653
+ graph = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
15564
15654
  "cli.play_save_bundle_graph",
15565
15655
  { targetKind: "file" },
15566
15656
  () => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
@@ -15582,7 +15672,7 @@ async function handlePlaySave(args) {
15582
15672
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15583
15673
  };
15584
15674
  if (options.jsonOutput) {
15585
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, result);
15675
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, result);
15586
15676
  } else {
15587
15677
  console.error(result.message);
15588
15678
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15604,7 +15694,7 @@ async function handlePlaySave(args) {
15604
15694
  };
15605
15695
  if (options.dryRun) {
15606
15696
  if (options.jsonOutput) {
15607
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, dryRun);
15697
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, dryRun);
15608
15698
  } else {
15609
15699
  console.log(`Dry run: ${playName}`);
15610
15700
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15613,14 +15703,14 @@ async function handlePlaySave(args) {
15613
15703
  }
15614
15704
  return 0;
15615
15705
  }
15616
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
15706
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
15617
15707
  try {
15618
- await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
15708
+ await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
15619
15709
  "cli.play_save_compile_manifests",
15620
15710
  { targetKind: "file", nodeCount: graph.nodes.size },
15621
15711
  () => compileBundledPlayGraphManifests(client, graph)
15622
15712
  );
15623
- const saved = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
15713
+ const saved = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
15624
15714
  "cli.play_save_register_draft",
15625
15715
  { targetKind: "file", playName, artifactHash },
15626
15716
  () => client.registerPlayArtifact({
@@ -15649,7 +15739,7 @@ async function handlePlaySave(args) {
15649
15739
  }
15650
15740
  };
15651
15741
  if (options.jsonOutput) {
15652
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, result);
15742
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, result);
15653
15743
  } else {
15654
15744
  console.log(
15655
15745
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15675,7 +15765,7 @@ async function handlePlayPublish(args) {
15675
15765
  }
15676
15766
  const { target: playName, useLatest } = options;
15677
15767
  let revisionId = options.revisionId;
15678
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
15768
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
15679
15769
  if (isFileTarget(playName)) {
15680
15770
  if (revisionId || useLatest) {
15681
15771
  console.error(
@@ -15685,7 +15775,7 @@ async function handlePlayPublish(args) {
15685
15775
  }
15686
15776
  let graph;
15687
15777
  try {
15688
- graph = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
15778
+ graph = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
15689
15779
  "cli.play_publish_bundle_graph",
15690
15780
  { targetKind: "file" },
15691
15781
  () => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
@@ -15707,7 +15797,7 @@ async function handlePlayPublish(args) {
15707
15797
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15708
15798
  };
15709
15799
  if (options.jsonOutput) {
15710
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, result3);
15800
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, result3);
15711
15801
  } else {
15712
15802
  console.error(result3.message);
15713
15803
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15730,7 +15820,7 @@ async function handlePlayPublish(args) {
15730
15820
  };
15731
15821
  if (options.dryRun) {
15732
15822
  if (options.jsonOutput) {
15733
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, dryRun);
15823
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, dryRun);
15734
15824
  } else {
15735
15825
  console.log(`Dry run: ${rootPlayName}`);
15736
15826
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15749,12 +15839,12 @@ async function handlePlayPublish(args) {
15749
15839
  }
15750
15840
  }
15751
15841
  try {
15752
- await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
15842
+ await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
15753
15843
  "cli.play_publish_compile_manifests",
15754
15844
  { targetKind: "file", nodeCount: graph.nodes.size },
15755
15845
  () => compileBundledPlayGraphManifests(client, graph)
15756
15846
  );
15757
- await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
15847
+ await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
15758
15848
  "cli.play_publish_imports",
15759
15849
  { targetKind: "file", nodeCount: graph.nodes.size },
15760
15850
  () => publishImportedPlayDependencies(client, graph)
@@ -15763,7 +15853,7 @@ async function handlePlayPublish(args) {
15763
15853
  console.error(error instanceof Error ? error.message : String(error));
15764
15854
  return 1;
15765
15855
  }
15766
- const published = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
15856
+ const published = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
15767
15857
  "cli.play_publish_register_root",
15768
15858
  {
15769
15859
  targetKind: "file",
@@ -15788,17 +15878,17 @@ async function handlePlayPublish(args) {
15788
15878
  artifactHash,
15789
15879
  liveVersion: _nullishCoalesce(published.version, () => ( null)),
15790
15880
  revisionId: _nullishCoalesce(published.revisionId, () => ( null)),
15791
- previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _611 => _611.version]), () => ( null)),
15792
- previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _612 => _612.artifactHash]), () => ( null)),
15881
+ previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _619 => _619.version]), () => ( null)),
15882
+ previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _620 => _620.artifactHash]), () => ( null)),
15793
15883
  sourceBytes: {
15794
- before: _optionalChain([previousLive, 'optionalAccess', _613 => _613.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15884
+ before: _optionalChain([previousLive, 'optionalAccess', _621 => _621.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15795
15885
  after: Buffer.byteLength(graph.root.sourceCode, "utf8")
15796
15886
  },
15797
15887
  triggerMetadata: _nullishCoalesce(published.triggerMetadata, () => ( null)),
15798
15888
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15799
15889
  };
15800
15890
  if (options.jsonOutput) {
15801
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, result2);
15891
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, result2);
15802
15892
  } else {
15803
15893
  printPublishReceipt({
15804
15894
  name: rootPlayName,
@@ -15829,14 +15919,14 @@ async function handlePlayPublish(args) {
15829
15919
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15830
15920
  latest: useLatest
15831
15921
  };
15832
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, result2);
15922
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, result2);
15833
15923
  return 0;
15834
15924
  }
15835
15925
  const resolvedName = parseReferencedPlayTarget(playName).playName;
15836
15926
  if (useLatest) {
15837
15927
  const versions = await client.listPlayVersions(resolvedName);
15838
15928
  const latest = versions[0];
15839
- if (!_optionalChain([latest, 'optionalAccess', _614 => _614._id])) {
15929
+ if (!_optionalChain([latest, 'optionalAccess', _622 => _622._id])) {
15840
15930
  console.error(`No saved revisions found for ${resolvedName}.`);
15841
15931
  return 1;
15842
15932
  }
@@ -15853,7 +15943,7 @@ async function handlePlayPublish(args) {
15853
15943
  revisionId ? { revisionId } : {}
15854
15944
  );
15855
15945
  if (options.jsonOutput) {
15856
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, result);
15946
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, result);
15857
15947
  } else {
15858
15948
  printPublishReceipt({
15859
15949
  name: result.name,
@@ -15893,7 +15983,7 @@ async function handlePlayDelete(args) {
15893
15983
  );
15894
15984
  return 2;
15895
15985
  }
15896
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
15986
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
15897
15987
  let detail;
15898
15988
  try {
15899
15989
  detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
@@ -15917,8 +16007,8 @@ async function handlePlayDelete(args) {
15917
16007
  name: resolvedName,
15918
16008
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
15919
16009
  };
15920
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
15921
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, result2);
16010
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
16011
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, result2);
15922
16012
  } else {
15923
16013
  process.stdout.write(
15924
16014
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -15928,8 +16018,8 @@ async function handlePlayDelete(args) {
15928
16018
  return 0;
15929
16019
  }
15930
16020
  const result = await client.deletePlay(resolvedName);
15931
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
15932
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, result);
16021
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
16022
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, result);
15933
16023
  return result.archived || result.alreadyArchived ? 0 : 4;
15934
16024
  }
15935
16025
  if (result.alreadyArchived) {
@@ -15968,13 +16058,13 @@ async function handlePlayRestore(args) {
15968
16058
  );
15969
16059
  return 2;
15970
16060
  }
15971
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
16061
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
15972
16062
  try {
15973
16063
  const result = await client.restorePlay(
15974
16064
  parseReferencedPlayTarget(playName).playName
15975
16065
  );
15976
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
15977
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, result);
16066
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
16067
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, result);
15978
16068
  return result.restored || result.alreadyActive ? 0 : 4;
15979
16069
  }
15980
16070
  if (result.alreadyActive) {
@@ -16101,21 +16191,21 @@ Common commands:
16101
16191
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16102
16192
  }
16103
16193
  };
16104
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, result2, {
16194
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, result2, {
16105
16195
  json: options.json,
16106
16196
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16107
16197
  `
16108
16198
  });
16109
16199
  return;
16110
16200
  }
16111
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
16201
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
16112
16202
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16113
16203
  throw new Error(
16114
16204
  "The submission belongs to a different API origin. Select its original host before recovery."
16115
16205
  );
16116
16206
  }
16117
16207
  const result = await client.startPlayRun(saved.request);
16118
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
16208
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
16119
16209
  { ...result },
16120
16210
  {
16121
16211
  json: options.json,
@@ -16151,7 +16241,7 @@ Examples:
16151
16241
  ).action(async (target, options) => {
16152
16242
  process.exitCode = await handlePlayCheck([
16153
16243
  target,
16154
- ..._chunkBCKIBVEJjs.jsonFieldArgs.call(void 0, options.json),
16244
+ ..._chunk2I7VN65Hjs.jsonFieldArgs.call(void 0, options.json),
16155
16245
  ...options.full ? ["--full"] : []
16156
16246
  ]);
16157
16247
  });
@@ -16183,17 +16273,17 @@ Notes:
16183
16273
  a fire-and-forget run id.
16184
16274
  --run-id-file writes the durable run id to a versioned JSON file as soon as
16185
16275
  the server accepts the run. The destination must not already exist.
16186
- The play page URL is printed when the run starts. Pass --open to open it in a browser.
16276
+ The run page URL is printed when the run starts. Pass --open to open it in a browser.
16187
16277
  Concurrent runs for the same play are allowed.
16188
16278
  --force starts a fresh run graph without refreshing completed provider calls.
16189
16279
  It does not cancel active sibling runs.
16190
16280
  --force-tool-refresh re-executes completed tool receipts and may repeat billed
16191
16281
  provider calls. It is independent from --force.
16192
16282
  --max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
16193
- resident-work ceiling. Default: ${_chunkCRBBGKRHjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkCRBBGKRHjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16283
+ resident-work ceiling. Default: ${_chunkXQX476QKjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkXQX476QKjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16194
16284
  Provider pacing and sandbox memory limits still apply.
16195
16285
  --max-concurrent-rows sets the run-wide default and ceiling for live map row
16196
- resolvers. Accepted range: 1-${_chunkCRBBGKRHjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16286
+ resolvers. Accepted range: 1-${_chunkXQX476QKjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16197
16287
  may lower it when source-row size exceeds the active-row memory budget.
16198
16288
  --max-credits replaces the play's billing.maxCreditsPerRun for this run.
16199
16289
  Tool calls that would exceed it are denied.
@@ -16307,11 +16397,11 @@ Examples:
16307
16397
  "Refresh completed tool receipts; may repeat billed provider calls"
16308
16398
  ).option(
16309
16399
  "--max-concurrent-external-calls <count>",
16310
- `Concurrent provider-tool and deepline.fetch executions (${_chunkCRBBGKRHjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkCRBBGKRHjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16400
+ `Concurrent provider-tool and deepline.fetch executions (${_chunkXQX476QKjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkXQX476QKjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16311
16401
  ).option(
16312
16402
  "--max-concurrent-rows <count>",
16313
- `Run-wide dataset map row resolver ceiling (max ${_chunkCRBBGKRHjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16314
- ).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the play page in a browser after the run starts").option(
16403
+ `Run-wide dataset map row resolver ceiling (max ${_chunkXQX476QKjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16404
+ ).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
16315
16405
  "--debug-map-latency",
16316
16406
  "Internal diagnostics: emit one aggregate latency profile per dataset map"
16317
16407
  ).option(
@@ -16355,14 +16445,14 @@ JSON field selection:
16355
16445
  passthroughArgs.shift();
16356
16446
  }
16357
16447
  const exitCode = await handlePlayRun(
16358
- _chunkCRBBGKRHjs.resolvePlayRunCliOptions.call(void 0,
16448
+ _chunkXQX476QKjs.resolvePlayRunCliOptions.call(void 0,
16359
16449
  _nullishCoalesce(effectiveTarget, () => ( void 0)),
16360
16450
  options,
16361
16451
  passthroughArgs,
16362
- _chunkHNG2U3IGjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16452
+ _chunkIOMEJKGKjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16363
16453
  )
16364
16454
  );
16365
- _chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
16455
+ _chunkIOMEJKGKjs.recordCliTrace.call(void 0, {
16366
16456
  phase: "cli.play_command_exit",
16367
16457
  exitCode
16368
16458
  });
@@ -16411,9 +16501,9 @@ Examples:
16411
16501
  const limit = Number(options.historyLimit);
16412
16502
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16413
16503
  throw new Error("--history-limit must be an integer from 1 to 30.");
16414
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
16504
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
16415
16505
  if (options.binding) {
16416
- _chunkBCKIBVEJjs.printCompactJson.call(void 0,
16506
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0,
16417
16507
  await client.getPlayTriggerHistory(options.binding, { limit })
16418
16508
  );
16419
16509
  return;
@@ -16421,7 +16511,7 @@ Examples:
16421
16511
  const result = await client.listPlayTriggerInventory({
16422
16512
  cursor: options.cursor
16423
16513
  });
16424
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, {
16514
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, {
16425
16515
  ...result,
16426
16516
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16427
16517
  });
@@ -16480,7 +16570,7 @@ Examples:
16480
16570
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16481
16571
  throw new Error("--group-by must be kind or trigger_source.");
16482
16572
  }
16483
- const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getPlaysActivity({
16573
+ const result = await new (0, _chunk2H4OFVR5js.DeeplineClient)().getPlaysActivity({
16484
16574
  timeZone: options.timeZone,
16485
16575
  days,
16486
16576
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16494,7 +16584,7 @@ Examples:
16494
16584
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16495
16585
  );
16496
16586
  }
16497
- _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
16587
+ _chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
16498
16588
  { ...result },
16499
16589
  {
16500
16590
  json: Boolean(options.json),
@@ -16523,7 +16613,7 @@ Examples:
16523
16613
  false
16524
16614
  );
16525
16615
  });
16526
- _chunkZX2FXZJNjs.registerDeprecatedSearchCommand.call(void 0,
16616
+ _chunkWCZFCOMZjs.registerDeprecatedSearchCommand.call(void 0,
16527
16617
  play,
16528
16618
  (options) => options.all ? ["plays"] : ["prebuilts"]
16529
16619
  );
@@ -16564,9 +16654,9 @@ Examples:
16564
16654
  "--json [fields]",
16565
16655
  "JSON output; optionally select comma-separated dotted paths"
16566
16656
  );
16567
- _chunk6UARNRXTjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16657
+ _chunkUCMY2SO2js.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16568
16658
  async (target, options) => {
16569
- const ownView = () => handlePlayDescribe(_chunkBCKIBVEJjs.describeArgs.call(void 0, target, options));
16659
+ const ownView = () => handlePlayDescribe(_chunk2I7VN65Hjs.describeArgs.call(void 0, target, options));
16570
16660
  const [flagText] = [options.json].filter(
16571
16661
  (value) => typeof value === "string"
16572
16662
  );
@@ -16577,7 +16667,7 @@ Examples:
16577
16667
  process.exitCode = await ownView();
16578
16668
  return;
16579
16669
  }
16580
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-67GMIEIO.js")));
16670
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-RS75I33X.js")));
16581
16671
  process.exitCode = await describeAnything(
16582
16672
  name,
16583
16673
  {
@@ -16695,7 +16785,7 @@ Examples:
16695
16785
  deepline plays deployments <deployment-id>
16696
16786
  `
16697
16787
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16698
- async (id, options) => id ? _chunk27MRSV6Ojs.handleDeploymentGet.call(void 0, id, options) : _chunk27MRSV6Ojs.handleDeploymentsList.call(void 0, options)
16788
+ async (id, options) => id ? _chunkNPNAEPY4js.handleDeploymentGet.call(void 0, id, options) : _chunkNPNAEPY4js.handleDeploymentsList.call(void 0, options)
16699
16789
  );
16700
16790
  addPublishHelp(
16701
16791
  play.command("publish <target>").description(
@@ -16830,14 +16920,14 @@ Examples:
16830
16920
  const limit = Number(options.limit);
16831
16921
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
16832
16922
  throw new Error("--limit must be an integer from 1 to 1000.");
16833
- const result = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().runs.rowHistory({
16923
+ const result = await new (0, _chunk2H4OFVR5js.DeeplineClient)().runs.rowHistory({
16834
16924
  playName: options.play,
16835
16925
  runId,
16836
16926
  tableNamespace: options.dataset,
16837
16927
  limit,
16838
16928
  cursor: options.cursor
16839
16929
  });
16840
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, {
16930
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, {
16841
16931
  ...result,
16842
16932
  ...result.nextCursor ? {
16843
16933
  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`
@@ -16876,8 +16966,10 @@ Notes:
16876
16966
  are omitted; array positions are preserved. --json diagnostics needs --full.
16877
16967
  --timing writes each read phase and periodic long-read updates to stderr;
16878
16968
  JSON stdout stays unchanged.
16879
- dashboardUrl (text: "play page:") links the run's play page; link it in a
16880
- final answer. --web-url prints only that URL (with --json: {"dashboardUrl"}).
16969
+ runUrl (text: "run page:") is the Play page with this run selected; link it
16970
+ in a final answer. dashboardUrl is the Play page itself. --web opens the run
16971
+ page in a browser; --web-url prints only its URL (with --json:
16972
+ {"dashboardUrl","runUrl"}).
16881
16973
 
16882
16974
  A tool call's id is the key deepline run gave it; runs get prints that
16883
16975
  call's receipt again, from its saved result, for 24 hours. It takes --json
@@ -16886,6 +16978,7 @@ Notes:
16886
16978
  Examples:
16887
16979
  deepline runs get play/my-play/run/20260501t000000-000
16888
16980
  deepline runs get play/my-play/run/20260501t000000-000
16981
+ deepline runs get play/my-play/run/20260501t000000-000 --web
16889
16982
  deepline runs get play/my-play/run/20260501t000000-000 --web-url
16890
16983
  deepline runs get 0b8f6a52-4f1e-4f43-9a63-1f0c5d2e8a71
16891
16984
  deepline runs logs play/my-play/run/20260501t000000-000 --failed
@@ -16905,14 +16998,14 @@ Examples:
16905
16998
  ).option(
16906
16999
  "--config",
16907
17000
  "Explicitly print the recorded configuration, without full results"
16908
- ).option("--web-url", "Print only the run's play page URL").option(
17001
+ ).option("--web", "Open the run's page in a browser").option("--web-url", "Print only the run's page URL").option(
16909
17002
  "--timing",
16910
17003
  "Report read phases and periodic long-read updates to stderr"
16911
17004
  ).addOption(
16912
17005
  new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
16913
17006
  ).action(async (runId, options) => {
16914
17007
  if (TOOL_EXECUTION_ID.test(runId)) {
16915
- const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-BAHK33FQ.js")));
17008
+ const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-65Y4QTW6.js")));
16916
17009
  process.exitCode = await getToolExecutionReceipt(runId, {
16917
17010
  receiptJson: options.json !== void 0
16918
17011
  });
@@ -16920,7 +17013,8 @@ Examples:
16920
17013
  }
16921
17014
  process.exitCode = await handleRunGet([
16922
17015
  runId,
16923
- ..._chunkBCKIBVEJjs.jsonFieldArgs.call(void 0, options.json),
17016
+ ..._chunk2I7VN65Hjs.jsonFieldArgs.call(void 0, options.json),
17017
+ ...options.web ? ["--web"] : [],
16924
17018
  ...options.webUrl ? ["--web-url"] : [],
16925
17019
  ...options.full ? ["--full"] : [],
16926
17020
  ...options.input ? ["--input"] : [],
@@ -17210,7 +17304,7 @@ Examples:
17210
17304
  ...options.allowEmpty ? ["--allow-empty"] : [],
17211
17305
  ...options.wait ? ["--wait"] : [],
17212
17306
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17213
- ..._chunkBCKIBVEJjs.jsonFieldArgs.call(void 0, options.json)
17307
+ ..._chunk2I7VN65Hjs.jsonFieldArgs.call(void 0, options.json)
17214
17308
  ]);
17215
17309
  });
17216
17310
  const share = play.command("share").description(
@@ -17351,8 +17445,8 @@ function absolutePublicPlayUrl(path) {
17351
17445
  }
17352
17446
  function shareUrlFields(status) {
17353
17447
  return {
17354
- publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _615 => _615.share, 'optionalAccess', _616 => _616.publicPath])),
17355
- canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _617 => _617.share, 'optionalAccess', _618 => _618.canonicalPath]))
17448
+ publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _623 => _623.share, 'optionalAccess', _624 => _624.publicPath])),
17449
+ canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _625 => _625.share, 'optionalAccess', _626 => _626.canonicalPath]))
17356
17450
  };
17357
17451
  }
17358
17452
  function shareStatusForOutput(status) {
@@ -17376,10 +17470,10 @@ async function handlePlayShareStatus(args) {
17376
17470
  return 2;
17377
17471
  }
17378
17472
  const name = parseReferencedPlayTarget(target).playName;
17379
- const status = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().getSharePage(name);
17473
+ const status = await new (0, _chunk2H4OFVR5js.DeeplineClient)().getSharePage(name);
17380
17474
  const outputStatus = shareStatusForOutput(status);
17381
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
17382
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, outputStatus);
17475
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
17476
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, outputStatus);
17383
17477
  return 0;
17384
17478
  }
17385
17479
  if (!outputStatus.share) {
@@ -17418,7 +17512,7 @@ async function handlePlaySharePublish(args) {
17418
17512
  return 2;
17419
17513
  }
17420
17514
  const name = parseReferencedPlayTarget(target).playName;
17421
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
17515
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
17422
17516
  let revisionId = shareFlagValue(args, "--revision-id");
17423
17517
  let resolvedVersion;
17424
17518
  if (!revisionId) {
@@ -17449,8 +17543,8 @@ async function handlePlaySharePublish(args) {
17449
17543
  );
17450
17544
  if (!hasCompleted) {
17451
17545
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17452
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
17453
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, {
17546
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
17547
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, {
17454
17548
  ok: false,
17455
17549
  code: "NO_SUCCESSFUL_RUN",
17456
17550
  message,
@@ -17474,8 +17568,8 @@ async function handlePlaySharePublish(args) {
17474
17568
  };
17475
17569
  if (args.includes("--dry-run")) {
17476
17570
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17477
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
17478
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, plan);
17571
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
17572
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, plan);
17479
17573
  } else {
17480
17574
  console.log(
17481
17575
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17485,13 +17579,13 @@ async function handlePlaySharePublish(args) {
17485
17579
  }
17486
17580
  const status = await client.publishSharePage(name, request);
17487
17581
  const outputStatus = shareStatusForOutput(status);
17488
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
17489
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, outputStatus);
17582
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
17583
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, outputStatus);
17490
17584
  return 0;
17491
17585
  }
17492
17586
  const urls = shareUrlFields(outputStatus);
17493
17587
  console.log(
17494
- `Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _619 => _619.share, 'optionalAccess', _620 => _620.publicPath]))), () => ( ""))}`
17588
+ `Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _627 => _627.share, 'optionalAccess', _628 => _628.publicPath]))), () => ( ""))}`
17495
17589
  );
17496
17590
  if (urls.canonicalUrl && urls.canonicalUrl !== urls.publicUrl) {
17497
17591
  console.log(`Version URL: ${urls.canonicalUrl}`);
@@ -17517,9 +17611,9 @@ async function handlePlayShareUpdate(args) {
17517
17611
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17518
17612
  ...seoIndexing ? { seoIndexing } : {}
17519
17613
  };
17520
- const status = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().updateSharePage(name, request);
17521
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
17522
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, status);
17614
+ const status = await new (0, _chunk2H4OFVR5js.DeeplineClient)().updateSharePage(name, request);
17615
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
17616
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, status);
17523
17617
  return 0;
17524
17618
  }
17525
17619
  console.log(`Updated ${name} share settings.`);
@@ -17534,13 +17628,13 @@ async function handlePlayShareRegenerate(args) {
17534
17628
  return 2;
17535
17629
  }
17536
17630
  const name = parseReferencedPlayTarget(target).playName;
17537
- const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
17631
+ const client = new (0, _chunk2H4OFVR5js.DeeplineClient)();
17538
17632
  let revisionId = shareFlagValue(args, "--revision-id");
17539
17633
  const versionFlag = shareFlagValue(args, "--version");
17540
17634
  if (!revisionId && versionFlag) {
17541
17635
  const versions = await client.listPlayVersions(name);
17542
17636
  const chosen = versions.find((r) => r.version === Number(versionFlag));
17543
- if (!_optionalChain([chosen, 'optionalAccess', _621 => _621._id])) {
17637
+ if (!_optionalChain([chosen, 'optionalAccess', _629 => _629._id])) {
17544
17638
  console.error(`Version ${versionFlag} not found for ${name}.`);
17545
17639
  return 4;
17546
17640
  }
@@ -17551,12 +17645,12 @@ async function handlePlayShareRegenerate(args) {
17551
17645
  revisionId ? { revisionId } : {}
17552
17646
  );
17553
17647
  const outputStatus = shareStatusForOutput(status);
17554
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
17555
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, outputStatus);
17648
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
17649
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, outputStatus);
17556
17650
  return 0;
17557
17651
  }
17558
17652
  const urls = shareUrlFields(outputStatus);
17559
- const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _622 => _622.share, 'optionalAccess', _623 => _623.publishedRevisionId]) === revisionId;
17653
+ const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _630 => _630.share, 'optionalAccess', _631 => _631.publishedRevisionId]) === revisionId;
17560
17654
  console.log(
17561
17655
  `Regenerated public copy for ${name}${regeneratedPublishedRevision && urls.publicUrl ? `: ${urls.publicUrl}` : "."}`
17562
17656
  );
@@ -17577,9 +17671,9 @@ async function handlePlayShareUnpublish(args) {
17577
17671
  return 2;
17578
17672
  }
17579
17673
  const name = parseReferencedPlayTarget(target).playName;
17580
- const status = await new (0, _chunkB2TXKEEDjs.DeeplineClient)().unpublishSharePage(name);
17581
- if (_chunkBCKIBVEJjs.argsWantJson.call(void 0, args)) {
17582
- _chunkBCKIBVEJjs.printCompactJson.call(void 0, status);
17674
+ const status = await new (0, _chunk2H4OFVR5js.DeeplineClient)().unpublishSharePage(name);
17675
+ if (_chunk2I7VN65Hjs.argsWantJson.call(void 0, args)) {
17676
+ _chunk2I7VN65Hjs.printCompactJson.call(void 0, status);
17583
17677
  return 0;
17584
17678
  }
17585
17679
  console.log(`Unpublished ${name}; the public page has been removed.`);
@@ -17654,4 +17748,5 @@ async function handlePlayShareUnpublish(args) {
17654
17748
 
17655
17749
 
17656
17750
 
17657
- 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.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 = _chunkCRBBGKRHjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkCRBBGKRHjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
17751
+
17752
+ 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.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 = _chunkXQX476QKjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkXQX476QKjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;