deepline 0.3.534 → 0.3.535

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 (166) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +22 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/call-requeue-state-machine.ts +420 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +658 -25
  5. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +26 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/durable-retry-policy.ts +624 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +51 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +245 -1
  9. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +21 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/provider-no-progress.ts +6 -2
  11. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +10 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +55 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +6 -0
  14. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +101 -0
  15. package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +63 -13
  16. package/dist/cli/auth-VDCU3T6A.js +43 -0
  17. package/dist/cli/{auth-MHQYIMVX.mjs → auth-ZCTMB5RA.mjs} +5 -5
  18. package/dist/cli/{billing-YQLNP4S5.js → billing-GVFKZQH3.js} +82 -82
  19. package/dist/cli/{billing-LX2PSBJ4.mjs → billing-OU2ZHL72.mjs} +7 -7
  20. package/dist/cli/{chunk-MQX363YF.js → chunk-243O3FH5.js} +5 -5
  21. package/dist/cli/{chunk-MYSKWJMA.js → chunk-2D6SWQTK.js} +13 -13
  22. package/dist/cli/{chunk-NDFNBJGL.js → chunk-4NLRWKZB.js} +26 -26
  23. package/dist/cli/{chunk-5LZ5VSOK.mjs → chunk-4QELPWUW.mjs} +2 -2
  24. package/dist/cli/{chunk-GTXSUPCJ.js → chunk-5EKNDNFQ.js} +2 -2
  25. package/dist/cli/{chunk-V7SCRUFQ.js → chunk-6LHX33VN.js} +6 -6
  26. package/dist/cli/{chunk-ENCA6O2D.mjs → chunk-6TYRRNXY.mjs} +2 -2
  27. package/dist/cli/{chunk-AK622KIG.mjs → chunk-7CWSAEYS.mjs} +1 -1
  28. package/dist/cli/{chunk-DZS4JC7I.js → chunk-7PXP2FQK.js} +2 -2
  29. package/dist/cli/{chunk-KJVY7V2X.mjs → chunk-7R5DAANG.mjs} +1 -1
  30. package/dist/cli/{chunk-6IFZPEJE.mjs → chunk-AUEUAPVS.mjs} +1 -1
  31. package/dist/cli/{chunk-XRZJKHUA.mjs → chunk-BF65LB7X.mjs} +3 -3
  32. package/dist/cli/{chunk-B2AS3R5W.js → chunk-CIDATNTY.js} +16 -16
  33. package/dist/cli/{chunk-UWNVFAFN.js → chunk-D4MHCCIR.js} +4 -4
  34. package/dist/cli/{chunk-GVGQ6NZW.js → chunk-DAPKLYST.js} +41 -41
  35. package/dist/cli/{chunk-BDWZBMGV.mjs → chunk-DFJODFMC.mjs} +5 -5
  36. package/dist/cli/{chunk-7GFR5Y4J.mjs → chunk-DWPY6ZID.mjs} +1 -1
  37. package/dist/cli/{chunk-KSA2XE4T.js → chunk-DYIWDUY4.js} +104 -104
  38. package/dist/cli/{chunk-5FXMEEF4.mjs → chunk-E3CLOVG5.mjs} +17 -5
  39. package/dist/cli/{chunk-DGKTHWWH.js → chunk-FGN75ZN6.js} +23 -7
  40. package/dist/cli/{chunk-MG6YL4M7.mjs → chunk-FZKPPB5P.mjs} +17 -1
  41. package/dist/cli/{chunk-2P3NVX65.mjs → chunk-G2DLG32W.mjs} +10 -10
  42. package/dist/cli/{chunk-O53LHONF.mjs → chunk-H6SWS5CG.mjs} +2 -2
  43. package/dist/cli/{chunk-XBK6WCVA.js → chunk-HWPOXCCK.js} +3 -3
  44. package/dist/cli/{chunk-HCD36BP6.js → chunk-HYBZWSSH.js} +44 -44
  45. package/dist/cli/{chunk-BXIUZM5N.mjs → chunk-J75DANZY.mjs} +2 -2
  46. package/dist/cli/{chunk-KXQCUX3X.mjs → chunk-JQQG4QL4.mjs} +3 -3
  47. package/dist/cli/{chunk-62SOZ67Y.mjs → chunk-JWWYLGUT.mjs} +2 -2
  48. package/dist/cli/{chunk-IX45S5VC.js → chunk-K3IPGMGP.js} +11 -11
  49. package/dist/cli/{chunk-OMVVHX4U.mjs → chunk-K53NKWZO.mjs} +5 -5
  50. package/dist/cli/{chunk-WR4WETRU.mjs → chunk-K76AEBFY.mjs} +4 -4
  51. package/dist/cli/{chunk-HPJAE6PP.js → chunk-KA6ZERJL.js} +6 -6
  52. package/dist/cli/{chunk-MQORQ7WL.js → chunk-KOZBZPRM.js} +53 -53
  53. package/dist/cli/{chunk-EGTUOYYG.js → chunk-KWGXHPHL.js} +7 -7
  54. package/dist/cli/{chunk-WDNRPZED.mjs → chunk-LVISZFYO.mjs} +2 -2
  55. package/dist/cli/{chunk-TVINIDHB.js → chunk-OM732MGV.js} +9 -9
  56. package/dist/cli/{chunk-JBBJDFUJ.js → chunk-PHLNYBAA.js} +5 -5
  57. package/dist/cli/{chunk-RH3YRMUY.js → chunk-PI5R65OQ.js} +1 -1
  58. package/dist/cli/{chunk-NNAE7E23.mjs → chunk-QYBAHYP4.mjs} +6 -6
  59. package/dist/cli/{chunk-TQH3533L.mjs → chunk-R2KKEHJN.mjs} +5 -5
  60. package/dist/cli/{chunk-6CEUQYMB.js → chunk-RFQWSH6I.js} +3 -3
  61. package/dist/cli/{chunk-TG2UB3A5.mjs → chunk-RKY4LBX3.mjs} +1 -1
  62. package/dist/cli/{chunk-D3J2Y2BP.js → chunk-T7RBM2WX.js} +14 -14
  63. package/dist/cli/{chunk-DQ5ADV2J.mjs → chunk-TCVCFZP6.mjs} +1 -1
  64. package/dist/cli/{chunk-LGRZCHKC.js → chunk-UUQ2OXMH.js} +16 -16
  65. package/dist/cli/{chunk-E7TP25I2.mjs → chunk-W5YJYU4G.mjs} +1 -1
  66. package/dist/cli/{chunk-VAG5YKP6.mjs → chunk-W6T23EUC.mjs} +1 -1
  67. package/dist/cli/{chunk-EYXUAJAU.mjs → chunk-WAIBM6KX.mjs} +5 -5
  68. package/dist/cli/{chunk-VE7ZPLN2.js → chunk-WNNA4L6Z.js} +22 -22
  69. package/dist/cli/{chunk-SUWTLXCV.js → chunk-XSOTEVOB.js} +17 -5
  70. package/dist/cli/{chunk-6GTGWZJG.mjs → chunk-YFZLZNTH.mjs} +2 -2
  71. package/dist/cli/{chunk-A6HNT4EE.js → chunk-ZUVE63Y7.js} +2 -2
  72. package/dist/cli/command-docs.js +2 -2
  73. package/dist/cli/command-docs.mjs +1 -1
  74. package/dist/cli/{csv-U3M2G76R.js → csv-CD55KEIO.js} +13 -13
  75. package/dist/cli/{csv-4ID4E5W3.mjs → csv-CLPVMIRF.mjs} +4 -4
  76. package/dist/cli/{db-LHX5BBCZ.mjs → db-AU4SMWUN.mjs} +6 -6
  77. package/dist/cli/{db-IHAQIKEQ.js → db-MQKLDAEO.js} +27 -27
  78. package/dist/cli/describe-5BFNHT5V.js +50 -0
  79. package/dist/cli/{describe-CI4MREFF.mjs → describe-AWJUXE2U.mjs} +18 -18
  80. package/dist/cli/describe-core.d.mts +3 -3
  81. package/dist/cli/describe-core.d.ts +3 -3
  82. package/dist/cli/{executions-CJ5LV23G.js → executions-77GOLWRM.js} +8 -8
  83. package/dist/cli/{executions-UJ6JZUL5.mjs → executions-TFIJPUX7.mjs} +6 -6
  84. package/dist/cli/{feedback-YGTPJBRJ.mjs → feedback-2WRSZ5WL.mjs} +6 -6
  85. package/dist/cli/{feedback-TGUBVGRP.js → feedback-OV5YAL3A.js} +14 -14
  86. package/dist/cli/git-HGMX52XU.js +25 -0
  87. package/dist/cli/{git-3DOTQHJO.mjs → git-VNS4ATLZ.mjs} +5 -5
  88. package/dist/cli/index.js +145 -145
  89. package/dist/cli/index.mjs +44 -44
  90. package/dist/cli/{legacy-noops-RBBYRVLG.mjs → legacy-noops-C732QDCY.mjs} +6 -6
  91. package/dist/cli/{legacy-noops-BHEHVFHI.js → legacy-noops-HDOB5C6F.js} +9 -9
  92. package/dist/cli/{monitors-5AJCG6IV.mjs → monitors-2LYEFXOU.mjs} +7 -7
  93. package/dist/cli/{monitors-XECKLAXA.js → monitors-5IUMHH3E.js} +100 -100
  94. package/dist/cli/{org-DOBAIYWG.js → org-ADW2EVAC.js} +86 -86
  95. package/dist/cli/{org-ZAAIEZKB.mjs → org-G4YGZPHS.mjs} +6 -6
  96. package/dist/cli/{pages-FUOSF6BE.mjs → pages-KXKWSCEV.mjs} +6 -6
  97. package/dist/cli/{pages-TLC2N6L7.js → pages-VTJGAI2D.js} +18 -18
  98. package/dist/cli/{play-KLYRMQPF.mjs → play-7GQ56C2D.mjs} +69 -22
  99. package/dist/cli/{play-E74VN6B7.js → play-EHSOSSHT.js} +367 -320
  100. package/dist/cli/{providers-APZ6SOSK.js → providers-PWCF6OOO.js} +9 -9
  101. package/dist/cli/{providers-XTQXV5LB.mjs → providers-WL3YTCSV.mjs} +6 -6
  102. package/dist/cli/{quickstart-X7RHHQCH.mjs → quickstart-323XOPGI.mjs} +4 -4
  103. package/dist/cli/{quickstart-S6WN6NWW.js → quickstart-ZKI5MURA.js} +6 -6
  104. package/dist/cli/{run-3YLIJJ57.js → run-XZPWA6JS.js} +41 -41
  105. package/dist/cli/{run-TZPBBSPX.mjs → run-ZCNZU3K2.mjs} +23 -23
  106. package/dist/cli/{search-VLHE2CMZ.mjs → search-CVLVSFMJ.mjs} +8 -8
  107. package/dist/cli/search-J6EY7DQN.js +33 -0
  108. package/dist/cli/{search-output-73BYB7UE.mjs → search-output-6PY6RN2R.mjs} +4 -4
  109. package/dist/cli/{search-output-GCT7PQIT.js → search-output-7HRSSRBS.js} +6 -6
  110. package/dist/cli/{secrets-RLOTGKQZ.mjs → secrets-6S2ZWDIM.mjs} +6 -6
  111. package/dist/cli/{secrets-J6CEKXKQ.js → secrets-IYD5VKY4.js} +15 -15
  112. package/dist/cli/sessions-7HPIVSQ4.js +22 -0
  113. package/dist/cli/{sessions-7HZ7OZ62.mjs → sessions-GVEX5TUJ.mjs} +6 -6
  114. package/dist/cli/{settings-72K5YCIS.mjs → settings-BN5MJZ3C.mjs} +13 -13
  115. package/dist/cli/{settings-WRV5XEZC.js → settings-CANK4HJQ.js} +86 -86
  116. package/dist/cli/{setup-KQFY6WT4.mjs → setup-JNMSCCU4.mjs} +10 -10
  117. package/dist/cli/{setup-QVXWT2EQ.js → setup-YSGKGLSJ.js} +50 -50
  118. package/dist/cli/{skills-C3K3E473.mjs → skills-QCQN2UM2.mjs} +8 -8
  119. package/dist/cli/skills-WDGSSKJZ.js +37 -0
  120. package/dist/cli/{tools-4A2OH6MB.mjs → tools-CDPOID7V.mjs} +17 -17
  121. package/dist/cli/tools-URNVXSTZ.js +57 -0
  122. package/dist/cli/{update-BS6USKPR.mjs → update-D3ZERUQ3.mjs} +10 -10
  123. package/dist/cli/update-Q6JW32IA.js +35 -0
  124. package/dist/cli/{views-4NZGAXHL.js → views-4NV2KQKA.js} +18 -18
  125. package/dist/cli/{views-WB6GFTRX.mjs → views-RDZRWQBQ.mjs} +6 -6
  126. package/dist/cli/{workflow-2D4WX55R.mjs → workflow-2CG3TVCG.mjs} +7 -7
  127. package/dist/cli/{workflow-L2QTQZYV.js → workflow-RABJCAZC.js} +17 -17
  128. package/dist/{client-DoUVSkqC.d.mts → client-DhSvMO3A.d.mts} +1 -1
  129. package/dist/{client-core-CPlwsC1Q.d.mts → client-core-CVG1Et-4.d.mts} +9 -1
  130. package/dist/{client-core-C7KkUIE_.d.ts → client-core-CdWH6Sii.d.ts} +9 -1
  131. package/dist/{client-DQm56zMs.d.ts → client-oGNJMQFd.d.ts} +1 -1
  132. package/dist/{compiler-manifest-DsxsQP-T.d.mts → compiler-manifest-D2ZlBGxj.d.mts} +44 -0
  133. package/dist/{compiler-manifest-DsxsQP-T.d.ts → compiler-manifest-D2ZlBGxj.d.ts} +44 -0
  134. package/dist/{errors-qdJUVQ3g.d.mts → errors-B-gOQdj-.d.mts} +1 -1
  135. package/dist/{errors-Bk5h1D-C.d.ts → errors-CB0KAmmV.d.ts} +1 -1
  136. package/dist/{index-PaupwX1B.d.mts → index-BbJADro4.d.mts} +1 -1
  137. package/dist/{index-bL66eHYz.d.ts → index-c3nvUGCS.d.ts} +1 -1
  138. package/dist/index.d.mts +7 -7
  139. package/dist/index.d.ts +7 -7
  140. package/dist/index.js +9 -9
  141. package/dist/index.mjs +6 -6
  142. package/dist/install-integrity.json +118 -116
  143. package/dist/plays/bundle-play-file.d.mts +3 -3
  144. package/dist/plays/bundle-play-file.d.ts +3 -3
  145. package/dist/plays/bundle-play-file.mjs +52 -0
  146. package/dist/plays/play-description.d.mts +2 -2
  147. package/dist/plays/play-description.d.ts +2 -2
  148. package/dist/plays/run-request.d.mts +2 -2
  149. package/dist/plays/run-request.d.ts +2 -2
  150. package/dist/release.d.mts +1 -1
  151. package/dist/release.d.ts +1 -1
  152. package/dist/release.js +2 -2
  153. package/dist/release.mjs +1 -1
  154. package/dist/server.d.mts +4 -4
  155. package/dist/server.d.ts +4 -4
  156. package/dist/server.js +5 -5
  157. package/dist/server.mjs +3 -3
  158. package/package.json +1 -1
  159. package/dist/cli/auth-UP2RGPI6.js +0 -43
  160. package/dist/cli/describe-IVTSD7ST.js +0 -50
  161. package/dist/cli/git-R3W25XIF.js +0 -25
  162. package/dist/cli/search-NB5CBALV.js +0 -33
  163. package/dist/cli/sessions-SFCZSB77.js +0 -22
  164. package/dist/cli/skills-WIJEHVLA.js +0 -37
  165. package/dist/cli/tools-VMMERMLO.js +0 -57
  166. package/dist/cli/update-54WZQDTS.js +0 -35
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkTVINIDHBjs = require('./chunk-TVINIDHB.js');
8
+ var _chunkOM732MGVjs = require('./chunk-OM732MGV.js');
9
9
 
10
10
 
11
11
 
@@ -18,15 +18,15 @@ var _chunkTVINIDHBjs = require('./chunk-TVINIDHB.js');
18
18
 
19
19
 
20
20
 
21
- var _chunkV7SCRUFQjs = require('./chunk-V7SCRUFQ.js');
21
+ var _chunk6LHX33VNjs = require('./chunk-6LHX33VN.js');
22
22
 
23
23
 
24
- var _chunkIX45S5VCjs = require('./chunk-IX45S5VC.js');
24
+ var _chunkK3IPGMGPjs = require('./chunk-K3IPGMGP.js');
25
25
  require('./chunk-D3BCSAN7.js');
26
26
 
27
27
 
28
28
 
29
- var _chunkNDFNBJGLjs = require('./chunk-NDFNBJGL.js');
29
+ var _chunk4NLRWKZBjs = require('./chunk-4NLRWKZB.js');
30
30
 
31
31
 
32
32
 
@@ -51,10 +51,10 @@ var _chunkNRO3NTVOjs = require('./chunk-NRO3NTVO.js');
51
51
 
52
52
 
53
53
 
54
- var _chunkJBBJDFUJjs = require('./chunk-JBBJDFUJ.js');
54
+ var _chunkPHLNYBAAjs = require('./chunk-PHLNYBAA.js');
55
55
 
56
56
 
57
- var _chunkMQX363YFjs = require('./chunk-MQX363YF.js');
57
+ var _chunk243O3FH5js = require('./chunk-243O3FH5.js');
58
58
 
59
59
 
60
60
 
@@ -67,7 +67,7 @@ var _chunkMQX363YFjs = require('./chunk-MQX363YF.js');
67
67
 
68
68
 
69
69
 
70
- var _chunkDGKTHWWHjs = require('./chunk-DGKTHWWH.js');
70
+ var _chunkFGN75ZN6js = require('./chunk-FGN75ZN6.js');
71
71
  require('./chunk-E4CABWXL.js');
72
72
 
73
73
 
@@ -91,19 +91,19 @@ require('./chunk-XDVT3GOM.js');
91
91
 
92
92
 
93
93
 
94
- var _chunkHPJAE6PPjs = require('./chunk-HPJAE6PP.js');
94
+ var _chunkKA6ZERJLjs = require('./chunk-KA6ZERJL.js');
95
95
 
96
96
 
97
97
 
98
98
 
99
99
 
100
- var _chunkDZS4JC7Ijs = require('./chunk-DZS4JC7I.js');
101
- require('./chunk-HCD36BP6.js');
100
+ var _chunk7PXP2FQKjs = require('./chunk-7PXP2FQK.js');
101
+ require('./chunk-HYBZWSSH.js');
102
102
 
103
103
 
104
104
 
105
- var _chunk6CEUQYMBjs = require('./chunk-6CEUQYMB.js');
106
- require('./chunk-D3J2Y2BP.js');
105
+ var _chunkRFQWSH6Ijs = require('./chunk-RFQWSH6I.js');
106
+ require('./chunk-T7RBM2WX.js');
107
107
 
108
108
 
109
109
  var _chunkR7J7CJPZjs = require('./chunk-R7J7CJPZ.js');
@@ -123,17 +123,17 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
123
123
 
124
124
 
125
125
 
126
- var _chunkEGTUOYYGjs = require('./chunk-EGTUOYYG.js');
127
- require('./chunk-XBK6WCVA.js');
126
+ var _chunkKWGXHPHLjs = require('./chunk-KWGXHPHL.js');
127
+ require('./chunk-HWPOXCCK.js');
128
128
 
129
129
 
130
- var _chunkUWNVFAFNjs = require('./chunk-UWNVFAFN.js');
130
+ var _chunkD4MHCCIRjs = require('./chunk-D4MHCCIR.js');
131
131
  require('./chunk-T2N3B7IQ.js');
132
132
  require('./chunk-XNYIZMNQ.js');
133
133
 
134
134
 
135
135
  var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
136
- require('./chunk-RH3YRMUY.js');
136
+ require('./chunk-PI5R65OQ.js');
137
137
  require('./chunk-OG64RBAC.js');
138
138
 
139
139
 
@@ -2115,7 +2115,7 @@ function resolveField(key, command) {
2115
2115
  function printSettings(result, json, name) {
2116
2116
  result = { ...result, settings: parsePlaySettings(result.settings) };
2117
2117
  const selected = fields.filter(([key]) => !name || key === name);
2118
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
2118
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
2119
2119
  {
2120
2120
  ...result,
2121
2121
  settings: Object.fromEntries(
@@ -2159,7 +2159,7 @@ function registerPlaySettingsCommands(plays) {
2159
2159
  valueSyntax: field.cli.valueSyntax,
2160
2160
  examples: field.cli.examples
2161
2161
  }));
2162
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
2162
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
2163
2163
  {
2164
2164
  fields: descriptions,
2165
2165
  render: {
@@ -2184,7 +2184,7 @@ function registerPlaySettingsCommands(plays) {
2184
2184
  async (options, command) => {
2185
2185
  if (options.name !== void 0) resolveField(options.name, command);
2186
2186
  printSettings(
2187
- await new (0, _chunkMQX363YFjs.DeeplineClient)().getPlaySettings(options.play),
2187
+ await new (0, _chunk243O3FH5js.DeeplineClient)().getPlaySettings(options.play),
2188
2188
  options.json,
2189
2189
  options.name
2190
2190
  );
@@ -2215,7 +2215,7 @@ function registerPlaySettingsCommands(plays) {
2215
2215
  );
2216
2216
  }
2217
2217
  if (options.dryRun) {
2218
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
2218
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
2219
2219
  {
2220
2220
  dryRun: true,
2221
2221
  play,
@@ -2236,7 +2236,7 @@ function registerPlaySettingsCommands(plays) {
2236
2236
  return;
2237
2237
  }
2238
2238
  printSettings(
2239
- await new (0, _chunkMQX363YFjs.DeeplineClient)().updatePlaySettings(play, patch),
2239
+ await new (0, _chunk243O3FH5js.DeeplineClient)().updatePlaySettings(play, patch),
2240
2240
  options.json
2241
2241
  );
2242
2242
  };
@@ -2262,13 +2262,13 @@ function registerPlaySettingsCommands(plays) {
2262
2262
  "--root must be person or team; --limit must be 1\u2013100.",
2263
2263
  { exitCode: 2 }
2264
2264
  );
2265
- const page = await new (0, _chunkMQX363YFjs.DeeplineClient)().listPlaySettingsPaths({
2265
+ const page = await new (0, _chunk243O3FH5js.DeeplineClient)().listPlaySettingsPaths({
2266
2266
  root: options.root,
2267
2267
  limit,
2268
2268
  cursor: options.cursor
2269
2269
  });
2270
2270
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2271
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
2271
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
2272
2272
  {
2273
2273
  ...page,
2274
2274
  nextCommand,
@@ -2319,7 +2319,7 @@ function registerPlaySettingsCommands(plays) {
2319
2319
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
2320
2320
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
2321
2321
  };
2322
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
2322
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
2323
2323
  const paths = [];
2324
2324
  let cursor;
2325
2325
  do {
@@ -2381,7 +2381,7 @@ function registerPlaySettingsCommands(plays) {
2381
2381
  moved.push(move.playName);
2382
2382
  }
2383
2383
  }
2384
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
2384
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
2385
2385
  {
2386
2386
  dryRun: Boolean(options.dryRun),
2387
2387
  from: options.from,
@@ -2509,7 +2509,7 @@ function triggerLines(view) {
2509
2509
  return lines;
2510
2510
  }
2511
2511
  function printView(view, json) {
2512
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
2512
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
2513
2513
  {
2514
2514
  ...view,
2515
2515
  render: {
@@ -2522,7 +2522,7 @@ function printView(view, json) {
2522
2522
  );
2523
2523
  }
2524
2524
  function printResult(result, json) {
2525
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
2525
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
2526
2526
  {
2527
2527
  ...result,
2528
2528
  render: {
@@ -2552,7 +2552,7 @@ async function mutate(command, options, build) {
2552
2552
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2553
2553
  }
2554
2554
  if (options.dryRun) {
2555
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
2555
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
2556
2556
  {
2557
2557
  dryRun: true,
2558
2558
  play: options.play,
@@ -2571,7 +2571,7 @@ async function mutate(command, options, build) {
2571
2571
  return;
2572
2572
  }
2573
2573
  printResult(
2574
- await new (0, _chunkMQX363YFjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2574
+ await new (0, _chunk243O3FH5js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2575
2575
  options.json
2576
2576
  );
2577
2577
  }
@@ -2604,7 +2604,7 @@ function registerPlayTriggerConfigCommands(plays) {
2604
2604
  }).addHelpText("after", help2);
2605
2605
  trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
2606
2606
  printView(
2607
- await new (0, _chunkMQX363YFjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2607
+ await new (0, _chunk243O3FH5js.DeeplineClient)().getPlayTriggerConfig(options.play),
2608
2608
  options.json
2609
2609
  );
2610
2610
  });
@@ -2648,7 +2648,7 @@ function registerPlayTriggerConfigCommands(plays) {
2648
2648
  if (options.auth === void 0) {
2649
2649
  if (secrets.length || options.header || options.signaturePrefix)
2650
2650
  usage(setWebhook, "--secret/--header need --auth.");
2651
- const current = await new (0, _chunkMQX363YFjs.DeeplineClient)().getPlayTriggerConfig(
2651
+ const current = await new (0, _chunk243O3FH5js.DeeplineClient)().getPlayTriggerConfig(
2652
2652
  options.play
2653
2653
  );
2654
2654
  return {
@@ -2725,7 +2725,7 @@ var KIND_DESCRIPTIONS = {
2725
2725
  "receipt.skipped": "Saved work result: skipped.",
2726
2726
  "runtime.event": "Other event."
2727
2727
  };
2728
- var RUN_LOGS_KIND_HELP = _chunkDGKTHWWHjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2728
+ var RUN_LOGS_KIND_HELP = _chunkFGN75ZN6js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2729
2729
  kind,
2730
2730
  description: KIND_DESCRIPTIONS[kind]
2731
2731
  }));
@@ -2862,9 +2862,9 @@ function configureRunQueryCommandErrors(command, resource) {
2862
2862
  const args = program.args;
2863
2863
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2864
2864
  error.exitCode = 2;
2865
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2866
- _chunkEGTUOYYGjs.printJsonError.call(void 0,
2867
- Object.assign(new (0, _chunkDGKTHWWHjs.RunEventQueryInputError)(error.message), {
2865
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2866
+ _chunkKWGXHPHLjs.printJsonError.call(void 0,
2867
+ Object.assign(new (0, _chunkFGN75ZN6js.RunEventQueryInputError)(error.message), {
2868
2868
  exitCode: 2,
2869
2869
  retryable: false
2870
2870
  })
@@ -2908,14 +2908,14 @@ function parseQuery(args, resource) {
2908
2908
  if (VALUE_FLAGS.has(flag)) {
2909
2909
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2910
2910
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2911
- throw new (0, _chunkDGKTHWWHjs.RunEventQueryInputError)(
2911
+ throw new (0, _chunkFGN75ZN6js.RunEventQueryInputError)(
2912
2912
  `${flag} requires a value. Use ${flag} <value>.`
2913
2913
  );
2914
2914
  }
2915
2915
  if (flag === "--sum") sums.push(value);
2916
2916
  else {
2917
2917
  if (values[flag] !== void 0) {
2918
- throw new (0, _chunkDGKTHWWHjs.RunEventQueryInputError)(
2918
+ throw new (0, _chunkFGN75ZN6js.RunEventQueryInputError)(
2919
2919
  `${flag} may only be supplied once.`
2920
2920
  );
2921
2921
  }
@@ -2929,12 +2929,12 @@ function parseQuery(args, resource) {
2929
2929
  }
2930
2930
  if (arg.startsWith("-")) {
2931
2931
  const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
2932
- throw new (0, _chunkDGKTHWWHjs.RunEventQueryInputError)(
2932
+ throw new (0, _chunkFGN75ZN6js.RunEventQueryInputError)(
2933
2933
  `Unsupported query flag ${flag}. ${correction}`
2934
2934
  );
2935
2935
  }
2936
2936
  if (runId !== void 0) {
2937
- throw new (0, _chunkDGKTHWWHjs.RunEventQueryInputError)(
2937
+ throw new (0, _chunkFGN75ZN6js.RunEventQueryInputError)(
2938
2938
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2939
2939
  );
2940
2940
  }
@@ -2942,7 +2942,7 @@ function parseQuery(args, resource) {
2942
2942
  }
2943
2943
  if (switches.has("--fields")) {
2944
2944
  if (runId !== void 0) {
2945
- throw new (0, _chunkDGKTHWWHjs.RunEventQueryInputError)(
2945
+ throw new (0, _chunkFGN75ZN6js.RunEventQueryInputError)(
2946
2946
  "--fields does not use a run ID. Omit the positional run ID."
2947
2947
  );
2948
2948
  }
@@ -2955,18 +2955,18 @@ function parseQuery(args, resource) {
2955
2955
  )
2956
2956
  ];
2957
2957
  if (incompatible.length) {
2958
- throw new (0, _chunkDGKTHWWHjs.RunEventQueryInputError)(
2958
+ throw new (0, _chunkFGN75ZN6js.RunEventQueryInputError)(
2959
2959
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2960
2960
  );
2961
2961
  }
2962
2962
  }
2963
2963
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2964
- throw new (0, _chunkDGKTHWWHjs.RunEventQueryInputError)(
2964
+ throw new (0, _chunkFGN75ZN6js.RunEventQueryInputError)(
2965
2965
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2966
2966
  );
2967
2967
  }
2968
2968
  if (sums.length && switches.has("--count")) {
2969
- throw new (0, _chunkDGKTHWWHjs.RunEventQueryInputError)(
2969
+ throw new (0, _chunkFGN75ZN6js.RunEventQueryInputError)(
2970
2970
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2971
2971
  );
2972
2972
  }
@@ -2974,7 +2974,7 @@ function parseQuery(args, resource) {
2974
2974
  if (operation === "count") {
2975
2975
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2976
2976
  if (values[flag] !== void 0 || switches.has(flag)) {
2977
- throw new (0, _chunkDGKTHWWHjs.RunEventQueryInputError)(
2977
+ throw new (0, _chunkFGN75ZN6js.RunEventQueryInputError)(
2978
2978
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2979
2979
  );
2980
2980
  }
@@ -3009,16 +3009,16 @@ function parseQuery(args, resource) {
3009
3009
  ];
3010
3010
  }
3011
3011
  }
3012
- const request = _chunkDGKTHWWHjs.normalizeRunEventOperationRequest.call(void 0, body);
3012
+ const request = _chunkFGN75ZN6js.normalizeRunEventOperationRequest.call(void 0, body);
3013
3013
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
3014
3014
  const backend = values["--runtime-backend"];
3015
3015
  if (backend && backend !== "daytona" && backend !== "modal") {
3016
- throw new (0, _chunkDGKTHWWHjs.RunEventQueryInputError)(
3016
+ throw new (0, _chunkFGN75ZN6js.RunEventQueryInputError)(
3017
3017
  "--runtime-backend must be daytona or modal."
3018
3018
  );
3019
3019
  }
3020
3020
  if (backend && !namespace) {
3021
- throw new (0, _chunkDGKTHWWHjs.RunEventQueryInputError)(
3021
+ throw new (0, _chunkFGN75ZN6js.RunEventQueryInputError)(
3022
3022
  "--runtime-backend requires --runtime-namespace."
3023
3023
  );
3024
3024
  }
@@ -3065,12 +3065,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3065
3065
  const failure = error instanceof Error ? error : new Error(String(error));
3066
3066
  const record4 = failure;
3067
3067
  const status = record4.statusCode;
3068
- const exitCode = error instanceof _chunkDGKTHWWHjs.RunEventQueryInputError || status === 400 || status === 422 || record4.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record4.code === "CONFIG_ERROR" || record4.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3068
+ const exitCode = error instanceof _chunkFGN75ZN6js.RunEventQueryInputError || status === 400 || status === 422 || record4.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record4.code === "CONFIG_ERROR" || record4.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3069
3069
  const diagnostic = Object.assign(failure, {
3070
3070
  exitCode,
3071
3071
  retryable: exitCode === 5
3072
3072
  });
3073
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) _chunkEGTUOYYGjs.printJsonError.call(void 0, diagnostic);
3073
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) _chunkKWGXHPHLjs.printJsonError.call(void 0, diagnostic);
3074
3074
  else console.error(`Error: ${diagnostic.message}`);
3075
3075
  return exitCode;
3076
3076
  }
@@ -3085,7 +3085,7 @@ async function executeRunEventQuery(args, resource) {
3085
3085
  ...criteria
3086
3086
  } = request;
3087
3087
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3088
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
3088
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
3089
3089
  let result;
3090
3090
  if (request.operation === "fields") {
3091
3091
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3151,13 +3151,13 @@ async function executeRunEventQuery(args, resource) {
3151
3151
  lines.push(`Next page: ${nextPage}`);
3152
3152
  }
3153
3153
  }
3154
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
3154
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
3155
3155
  {
3156
3156
  ...result,
3157
3157
  ...nextPage ? { next: { page: nextPage } } : {},
3158
3158
  render: { sections: [{ title: `run ${resource}`, lines }] }
3159
3159
  },
3160
- { json: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3160
+ { json: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3161
3161
  ` }
3162
3162
  );
3163
3163
  return 0;
@@ -4119,7 +4119,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4119
4119
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4120
4120
  );
4121
4121
  }
4122
- const response = await new (0, _chunkMQX363YFjs.DeeplineClient)().runs.getReceipts(runId, {
4122
+ const response = await new (0, _chunk243O3FH5js.DeeplineClient)().runs.getReceipts(runId, {
4123
4123
  keys
4124
4124
  });
4125
4125
  const failed = response.receipts.filter(
@@ -4131,7 +4131,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4131
4131
  JSON.stringify(response, null, 2) + "\n",
4132
4132
  { flag: "wx", mode: 384 }
4133
4133
  );
4134
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
4134
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
4135
4135
  {
4136
4136
  runId,
4137
4137
  out: options.out,
@@ -4141,7 +4141,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4141
4141
  { json: true }
4142
4142
  );
4143
4143
  } else {
4144
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4144
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4145
4145
  }
4146
4146
  if (failed)
4147
4147
  process.exitCode = response.receipts.some(
@@ -4180,7 +4180,7 @@ includes nextCommand when another page is available.
4180
4180
  { exitCode: 2 }
4181
4181
  );
4182
4182
  }
4183
- const page = await new (0, _chunkMQX363YFjs.DeeplineClient)().runs.children(parentRunId, {
4183
+ const page = await new (0, _chunk243O3FH5js.DeeplineClient)().runs.children(parentRunId, {
4184
4184
  launchKey: options.launchKey,
4185
4185
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4186
4186
  limit
@@ -4195,7 +4195,7 @@ includes nextCommand when another page is available.
4195
4195
  "--limit",
4196
4196
  String(limit)
4197
4197
  ].join(" ") : null;
4198
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
4198
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
4199
4199
  {
4200
4200
  parentRunId,
4201
4201
  launchKey: options.launchKey,
@@ -4231,7 +4231,7 @@ async function handleRunsHistory(options) {
4231
4231
  throw new Error("--limit must be a positive integer.");
4232
4232
  }
4233
4233
  }
4234
- const page = await new (0, _chunkMQX363YFjs.DeeplineClient)().runs.history({
4234
+ const page = await new (0, _chunk243O3FH5js.DeeplineClient)().runs.history({
4235
4235
  cursor: options.cursor,
4236
4236
  orgId: options.org,
4237
4237
  search: options.search,
@@ -4247,7 +4247,7 @@ async function handleRunsHistory(options) {
4247
4247
  );
4248
4248
  }
4249
4249
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4250
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
4250
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
4251
4251
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4252
4252
  options.json ? { json: true } : {}
4253
4253
  );
@@ -4300,12 +4300,12 @@ async function runRunsRerunCommand(runId, options) {
4300
4300
  }
4301
4301
  }
4302
4302
  if (options.notice) console.error(options.notice);
4303
- const result = await new (0, _chunkMQX363YFjs.DeeplineClient)().runs.rerun(runId, {
4303
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().runs.rerun(runId, {
4304
4304
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4305
4305
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4306
4306
  });
4307
- if (_chunkEGTUOYYGjs.shouldEmitJson.call(void 0, options.json)) {
4308
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, result, { json: true });
4307
+ if (_chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json)) {
4308
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, result, { json: true });
4309
4309
  } else if (result.rateLimited) {
4310
4310
  console.log(`
4311
4311
  ${result.rateLimited.message}`);
@@ -4329,7 +4329,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
4329
4329
  // src/cli/operations/runs-resume.ts
4330
4330
  async function runRunsResumeCommand(runId) {
4331
4331
  try {
4332
- const result = await new (0, _chunkMQX363YFjs.DeeplineClient)().runs.resume(runId);
4332
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().runs.resume(runId);
4333
4333
  if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
4334
4334
  throw new Error(
4335
4335
  "Invalid resume receipt: expected the requested run and a new positive epoch."
@@ -5163,13 +5163,13 @@ var RunDataset = class _RunDataset {
5163
5163
  const absolutePath = _path.resolve.call(void 0, outPath);
5164
5164
  _fs.writeFileSync.call(void 0,
5165
5165
  absolutePath,
5166
- `${JSON.stringify(_chunkV7SCRUFQjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
5166
+ `${JSON.stringify(_chunk6LHX33VNjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
5167
5167
  `,
5168
5168
  "utf-8"
5169
5169
  );
5170
5170
  return absolutePath;
5171
5171
  }
5172
- return _chunkV7SCRUFQjs.writeRunDatasetCsv.call(void 0, {
5172
+ return _chunk6LHX33VNjs.writeRunDatasetCsv.call(void 0, {
5173
5173
  rows: this.rows,
5174
5174
  columns: this.#info.columns,
5175
5175
  outPath
@@ -6674,7 +6674,7 @@ function renderOutcome(outcome) {
6674
6674
  function printResult2(input) {
6675
6675
  const failed = input.status === "failed" || input.status === "cancelled";
6676
6676
  if (failed) process.exitCode = 1;
6677
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
6677
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
6678
6678
  {
6679
6679
  deployment: { ...input.deployment, status: input.status },
6680
6680
  plays: input.outcomes,
@@ -6699,7 +6699,7 @@ async function handlePlaysDeploy(directory, options) {
6699
6699
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6700
6700
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6701
6701
  });
6702
- const { http, config } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
6702
+ const { http, config } = _chunkKWGXHPHLjs.getAuthedHttpClient.call(void 0, );
6703
6703
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6704
6704
  const startDeployment = () => http.post("/api/v2/deployments", {
6705
6705
  deliveryId,
@@ -6726,7 +6726,7 @@ async function handlePlaysDeploy(directory, options) {
6726
6726
  },
6727
6727
  {
6728
6728
  bundle: bundleDeployPlayFile,
6729
- fetchImpl: _chunkUWNVFAFNjs.fetchWithDeploymentProtection,
6729
+ fetchImpl: _chunkD4MHCCIRjs.fetchWithDeploymentProtection,
6730
6730
  // The plays are already here: "opening" the source is naming it.
6731
6731
  openSource: async () => ({
6732
6732
  open: async () => ({ repoRoot: root })
@@ -6852,7 +6852,7 @@ async function checkLocalPlayGraph(input) {
6852
6852
  // src/cli/renderers/local-play-execution.ts
6853
6853
  function renderLocalPlayExecutionPlan(plan, options = {}) {
6854
6854
  if (options.dryRun) {
6855
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6855
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6856
6856
  return;
6857
6857
  }
6858
6858
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -7024,7 +7024,7 @@ function traceCliSync(phase, fields2, run) {
7024
7024
  const startedAt = Date.now();
7025
7025
  try {
7026
7026
  const result = run();
7027
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
7027
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
7028
7028
  phase,
7029
7029
  ms: Date.now() - startedAt,
7030
7030
  ok: true,
@@ -7032,7 +7032,7 @@ function traceCliSync(phase, fields2, run) {
7032
7032
  });
7033
7033
  return result;
7034
7034
  } catch (error) {
7035
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
7035
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
7036
7036
  phase,
7037
7037
  ms: Date.now() - startedAt,
7038
7038
  ok: false,
@@ -7831,7 +7831,7 @@ function playStatusErrorText(status) {
7831
7831
  function isRetryablePendingStartFailure(status) {
7832
7832
  if (status.status !== "failed") return false;
7833
7833
  if (status.runId && status.runId !== "pending") return false;
7834
- return _chunkDGKTHWWHjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7834
+ return _chunkFGN75ZN6js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7835
7835
  }
7836
7836
  function isAmbiguousPlayStartOutcomeError(error) {
7837
7837
  if (error instanceof _chunkSQWET4SLjs.DeeplineError && typeof error.statusCode === "number") {
@@ -7881,13 +7881,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkSQWET4SLjs.Deep
7881
7881
  }, _class);
7882
7882
  function watchSurfaceReaches(state, provenance, level) {
7883
7883
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
7884
- if (!_chunkDGKTHWWHjs.logLevelReaches.call(void 0, level, minimumLevel)) {
7884
+ if (!_chunkFGN75ZN6js.logLevelReaches.call(void 0, level, minimumLevel)) {
7885
7885
  return false;
7886
7886
  }
7887
- if (_chunkDGKTHWWHjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
7887
+ if (_chunkFGN75ZN6js.logProvenanceReaches.call(void 0, provenance, "watch")) {
7888
7888
  return true;
7889
7889
  }
7890
- return state.verbose === true && _chunkDGKTHWWHjs.logProvenanceReaches.call(void 0, provenance, "debug");
7890
+ return state.verbose === true && _chunkFGN75ZN6js.logProvenanceReaches.call(void 0, provenance, "debug");
7891
7891
  }
7892
7892
  function getEventPayload(event) {
7893
7893
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -8397,7 +8397,7 @@ function resolvePlayRunUrl(input) {
8397
8397
  }
8398
8398
  function openPlayDashboard(url, open2) {
8399
8399
  if (open2 && url) {
8400
- _chunkEGTUOYYGjs.openInBrowser.call(void 0, url);
8400
+ _chunkKWGXHPHLjs.openInBrowser.call(void 0, url);
8401
8401
  }
8402
8402
  }
8403
8403
  function printPlayLogLines(input) {
@@ -8478,7 +8478,7 @@ async function waitForPlayCompletionByWatch(input) {
8478
8478
  ...input.fullJson === void 0 ? {} : { full: input.fullJson }
8479
8479
  });
8480
8480
  } catch (error) {
8481
- if (_chunkDGKTHWWHjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8481
+ if (_chunkFGN75ZN6js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8482
8482
  return null;
8483
8483
  }
8484
8484
  throw error;
@@ -8559,9 +8559,9 @@ async function waitForPlayCompletionByWatch(input) {
8559
8559
  signal: controller.signal,
8560
8560
  deferLogs: !input.emitLogs,
8561
8561
  omitTerminalLogs: !input.emitLogs,
8562
- ..._chunkDZS4JC7Ijs.isCliTraceEnabled.call(void 0, ) ? {
8562
+ ..._chunk7PXP2FQKjs.isCliTraceEnabled.call(void 0, ) ? {
8563
8563
  onPoll: (observation) => {
8564
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
8564
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
8565
8565
  phase: "play_watch_poll",
8566
8566
  workflowId: input.workflowId,
8567
8567
  ms: observation.durationMs,
@@ -8575,7 +8575,7 @@ async function waitForPlayCompletionByWatch(input) {
8575
8575
  full: input.fullJson,
8576
8576
  billing: false,
8577
8577
  onStatus: async (status) => {
8578
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
8578
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
8579
8579
  phase: "play_watch_terminal_status",
8580
8580
  workflowId: input.workflowId,
8581
8581
  full: input.fullJson === true
@@ -8664,7 +8664,7 @@ async function startAndWaitForPlayCompletion(input) {
8664
8664
  signal: controller.signal,
8665
8665
  cliAdmission: useCliAdmission
8666
8666
  });
8667
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
8667
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
8668
8668
  phase: "cli.play_start_admission_attempt",
8669
8669
  ms: Date.now() - postStartedAt,
8670
8670
  ok: true,
@@ -8676,7 +8676,7 @@ async function startAndWaitForPlayCompletion(input) {
8676
8676
  });
8677
8677
  break;
8678
8678
  } catch (error) {
8679
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
8679
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
8680
8680
  phase: "cli.play_start_admission_attempt",
8681
8681
  ms: Date.now() - postStartedAt,
8682
8682
  ok: false,
@@ -8727,7 +8727,7 @@ async function startAndWaitForPlayCompletion(input) {
8727
8727
  prepared.workflowId
8728
8728
  );
8729
8729
  }
8730
- await _chunkHPJAE6PPjs.checkPlayRunCompatibility.call(void 0,
8730
+ await _chunkKA6ZERJLjs.checkPlayRunCompatibility.call(void 0,
8731
8731
  input.client.baseUrl,
8732
8732
  input.maintenancePolicy
8733
8733
  );
@@ -8745,7 +8745,7 @@ async function startAndWaitForPlayCompletion(input) {
8745
8745
  `[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
8746
8746
  );
8747
8747
  }
8748
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
8748
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
8749
8749
  phase: "cli.play_start_json_retry",
8750
8750
  ms: 0,
8751
8751
  ok: true,
@@ -8825,7 +8825,7 @@ async function startAndWaitForPlayCompletion(input) {
8825
8825
  _nullishCoalesce(input.open, () => ( false))
8826
8826
  );
8827
8827
  input.progress.phase("running");
8828
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
8828
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
8829
8829
  phase: "cli.play_start_admitted",
8830
8830
  ms: Date.now() - startedAt,
8831
8831
  ok: true,
@@ -8843,7 +8843,7 @@ async function startAndWaitForPlayCompletion(input) {
8843
8843
  startedAt,
8844
8844
  waitTimeoutMs: input.waitTimeoutMs
8845
8845
  });
8846
- const initialStatus = _chunkDGKTHWWHjs.normalizePlayStatus.call(void 0, initialTerminal);
8846
+ const initialStatus = _chunkFGN75ZN6js.normalizePlayStatus.call(void 0, initialTerminal);
8847
8847
  const status2 = await resolvePlayRunOutputStatus({
8848
8848
  client: input.client,
8849
8849
  status: initialStatus,
@@ -8851,7 +8851,7 @@ async function startAndWaitForPlayCompletion(input) {
8851
8851
  jsonOutput: input.jsonOutput,
8852
8852
  fromDurableStatus: true
8853
8853
  });
8854
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
8854
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
8855
8855
  phase: "play_watch_terminal_status",
8856
8856
  workflowId,
8857
8857
  full: true,
@@ -8956,7 +8956,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8956
8956
  });
8957
8957
  }
8958
8958
  if (error instanceof _chunk2KHUFWTKjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
8959
- await _chunkHPJAE6PPjs.checkPlayRunCompatibility.call(void 0,
8959
+ await _chunkKA6ZERJLjs.checkPlayRunCompatibility.call(void 0,
8960
8960
  input.client.baseUrl,
8961
8961
  input.maintenancePolicy,
8962
8962
  admissionDeadline.signal
@@ -8997,7 +8997,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
8997
8997
  `[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
8998
8998
  );
8999
8999
  }
9000
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
9000
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
9001
9001
  phase: "cli.play_start_stream_retry",
9002
9002
  ms: 0,
9003
9003
  ok: true,
@@ -9018,7 +9018,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9018
9018
  `[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
9019
9019
  );
9020
9020
  }
9021
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
9021
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
9022
9022
  phase: "cli.play_start_stream_retry",
9023
9023
  ms: 0,
9024
9024
  ok: true,
@@ -9075,7 +9075,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9075
9075
  if (launchConfirmed || !runId || runId === "pending") return;
9076
9076
  launchConfirmed = true;
9077
9077
  await _optionalChain([input, 'access', _314 => _314.onRunAdmitted, 'optionalCall', _315 => _315(runId)]);
9078
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
9078
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
9079
9079
  phase: "cli.play_start_admitted",
9080
9080
  ms: Date.now() - startedAt,
9081
9081
  ok: true,
@@ -9109,7 +9109,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9109
9109
  full: input.fullJson
9110
9110
  });
9111
9111
  } catch (error) {
9112
- if (_chunkDGKTHWWHjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9112
+ if (_chunkFGN75ZN6js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9113
9113
  return null;
9114
9114
  }
9115
9115
  throw error;
@@ -9280,7 +9280,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9280
9280
  };
9281
9281
  }
9282
9282
  if (!canonicalTerminal) {
9283
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
9283
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
9284
9284
  phase: "cli.play_start_stream_stale_terminal_ignored",
9285
9285
  ms: Date.now() - startedAt,
9286
9286
  ok: true,
@@ -9301,14 +9301,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9301
9301
  fromDurableStatus
9302
9302
  }) : canonicalTerminal;
9303
9303
  if (input.fullJson === true) {
9304
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
9304
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
9305
9305
  phase: "play_watch_terminal_status",
9306
9306
  workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
9307
9307
  full: true,
9308
9308
  source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
9309
9309
  });
9310
9310
  }
9311
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
9311
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
9312
9312
  phase: "cli.play_start_stream_terminal",
9313
9313
  ms: Date.now() - startedAt,
9314
9314
  ok: true,
@@ -9328,7 +9328,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9328
9328
  clearTimeout(timeout);
9329
9329
  }
9330
9330
  controller.abort();
9331
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
9331
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
9332
9332
  phase: "cli.play_start_stream_handoff_to_tail",
9333
9333
  ms: Date.now() - startedAt,
9334
9334
  ok: true,
@@ -9359,7 +9359,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9359
9359
  if (timedOut) {
9360
9360
  const terminal = await fetchKnownTerminalStatus();
9361
9361
  if (terminal) {
9362
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
9362
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
9363
9363
  phase: "cli.play_start_stream_timeout_status_reconcile",
9364
9364
  ms: Date.now() - startedAt,
9365
9365
  ok: true,
@@ -9379,7 +9379,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9379
9379
  lastPhase
9380
9380
  });
9381
9381
  }
9382
- if (lastKnownWorkflowId && (terminalWindowExpired || _chunkDGKTHWWHjs.isTransientPlayRunReadError.call(void 0, error))) {
9382
+ if (lastKnownWorkflowId && (terminalWindowExpired || _chunkFGN75ZN6js.isTransientPlayRunReadError.call(void 0, error))) {
9383
9383
  if (timeout) {
9384
9384
  clearTimeout(timeout);
9385
9385
  }
@@ -9390,7 +9390,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9390
9390
  `
9391
9391
  );
9392
9392
  }
9393
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
9393
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
9394
9394
  phase: "cli.play_start_stream_reconnect",
9395
9395
  ms: Date.now() - startedAt,
9396
9396
  ok: true,
@@ -9417,7 +9417,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9417
9417
  });
9418
9418
  }
9419
9419
  if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
9420
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
9420
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
9421
9421
  phase: "cli.play_start_stream_transient_failure",
9422
9422
  ms: Date.now() - startedAt,
9423
9423
  ok: false,
@@ -9445,7 +9445,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9445
9445
  `[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
9446
9446
  );
9447
9447
  }
9448
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
9448
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
9449
9449
  phase: "cli.play_start_stream_reconnect",
9450
9450
  ms: Date.now() - startedAt,
9451
9451
  ok: true,
@@ -9525,7 +9525,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
9525
9525
  "logs"
9526
9526
  ]);
9527
9527
  function formatPlayLogLine(rawLine, state) {
9528
- const classified = _chunkDGKTHWWHjs.classifyLogLine.call(void 0, rawLine);
9528
+ const classified = _chunkFGN75ZN6js.classifyLogLine.call(void 0, rawLine);
9529
9529
  const line = classified.line;
9530
9530
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
9531
9531
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _337 => _337[1]]) ? new Date(timestampMatch[1]) : null;
@@ -9540,14 +9540,14 @@ function formatPlayLogLine(rawLine, state) {
9540
9540
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
9541
9541
  const providerWait = formatProviderCapacityWaitLogLine(line);
9542
9542
  if (providerWait && !state.verbose) {
9543
- return _chunkDGKTHWWHjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9543
+ return _chunkFGN75ZN6js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9544
9544
  }
9545
9545
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
9546
9546
  if (mapProgress && !state.verbose) {
9547
- return _chunkDGKTHWWHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9547
+ return _chunkFGN75ZN6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9548
9548
  }
9549
9549
  if (/\[worker\] picked up run\b/.test(message)) {
9550
- if (!_chunkDGKTHWWHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9550
+ if (!_chunkFGN75ZN6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9551
9551
  return null;
9552
9552
  }
9553
9553
  if (state.emittedRunnerStarted) {
@@ -9560,7 +9560,7 @@ function formatPlayLogLine(rawLine, state) {
9560
9560
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
9561
9561
  );
9562
9562
  if (mapStart) {
9563
- if (!_chunkDGKTHWWHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9563
+ if (!_chunkFGN75ZN6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9564
9564
  return null;
9565
9565
  }
9566
9566
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -9570,7 +9570,7 @@ function formatPlayLogLine(rawLine, state) {
9570
9570
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
9571
9571
  );
9572
9572
  if (mapDone) {
9573
- if (!_chunkDGKTHWWHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9573
+ if (!_chunkFGN75ZN6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9574
9574
  return null;
9575
9575
  }
9576
9576
  const [, results, executed, cached] = mapDone;
@@ -10870,7 +10870,7 @@ function formatRecentRunLogLines(value) {
10870
10870
  (line) => typeof line === "string"
10871
10871
  );
10872
10872
  if (tail.length === 0) return [];
10873
- const shown = tail.map((line) => _chunkDGKTHWWHjs.classifyLogLine.call(void 0, line)).filter(
10873
+ const shown = tail.map((line) => _chunkFGN75ZN6js.classifyLogLine.call(void 0, line)).filter(
10874
10874
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
10875
10875
  ).slice(-8);
10876
10876
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11168,11 +11168,11 @@ function buildPlayCompletionTextLines(status) {
11168
11168
  }
11169
11169
  function writePlayResult(status, jsonOutput, options) {
11170
11170
  const packaged = getPlayRunPackage(status);
11171
- if (status.package) _chunkV7SCRUFQjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11171
+ if (status.package) _chunk6LHX33VNjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11172
11172
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _425 => _425.hits]), () => ( null));
11173
11173
  if (jsonOutput) {
11174
11174
  const payload2 = _optionalChain([options, 'optionalAccess', _426 => _426.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11175
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
11175
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
11176
11176
  hits ? { ...payload2, hits } : payload2,
11177
11177
  { json: true, fields: _optionalChain([options, 'optionalAccess', _427 => _427.jsonFields]) }
11178
11178
  );
@@ -11188,7 +11188,7 @@ function writePlayResult(status, jsonOutput, options) {
11188
11188
  ...buildPlayCompletionTextLines(status),
11189
11189
  ...formatRunHitsLines(hits)
11190
11190
  ];
11191
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, displayPackage, {
11191
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, displayPackage, {
11192
11192
  json: false,
11193
11193
  text: `${lines2.join("\n")}
11194
11194
  `
@@ -11239,7 +11239,7 @@ function writePlayResult(status, jsonOutput, options) {
11239
11239
  lines.push(...buildBillingRollupTextLines(status));
11240
11240
  const compact = compactPlayStatus(status);
11241
11241
  const payload = _optionalChain([options, 'optionalAccess', _429 => _429.fullJson]) ? status : compact;
11242
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
11242
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
11243
11243
  {
11244
11244
  ...payload,
11245
11245
  render: {
@@ -11463,7 +11463,7 @@ async function fetchBackingDatasetRows(input) {
11463
11463
  }
11464
11464
  offset += page.rows.length;
11465
11465
  }
11466
- const withError = _chunkV7SCRUFQjs.tableExportHasFailedRows.call(void 0,
11466
+ const withError = _chunk6LHX33VNjs.tableExportHasFailedRows.call(void 0,
11467
11467
  sheetRows.filter(
11468
11468
  (row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
11469
11469
  )
@@ -11479,7 +11479,7 @@ async function fetchBackingDatasetRows(input) {
11479
11479
  return [
11480
11480
  withError ? {
11481
11481
  ...exported,
11482
- [_chunkV7SCRUFQjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkV7SCRUFQjs.tableExportErrorCell.call(void 0,
11482
+ [_chunk6LHX33VNjs.TABLE_EXPORT_ERROR_COLUMN]: _chunk6LHX33VNjs.tableExportErrorCell.call(void 0,
11483
11483
  row
11484
11484
  )
11485
11485
  } : exported
@@ -12014,7 +12014,7 @@ function renderServerResultView(value) {
12014
12014
  function writeStartedPlayRun(input) {
12015
12015
  if (input.package && isPlayRunPackageValue(input.package)) {
12016
12016
  const run = input.package.run;
12017
- _chunkV7SCRUFQjs.recordPlayTermination.call(void 0, {
12017
+ _chunk6LHX33VNjs.recordPlayTermination.call(void 0, {
12018
12018
  id: run.id,
12019
12019
  status: run.status,
12020
12020
  finishedAt: run.finishedAt
@@ -12027,7 +12027,7 @@ function writeStartedPlayRun(input) {
12027
12027
  dashboardUrl: input.dashboardUrl,
12028
12028
  package: input.package
12029
12029
  };
12030
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12030
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12031
12031
  json: true,
12032
12032
  fields: input.jsonFields
12033
12033
  });
@@ -12049,7 +12049,7 @@ function writeStartedPlayRun(input) {
12049
12049
  input.progress.writeLine(output2, process.stdout);
12050
12050
  return;
12051
12051
  }
12052
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, input.package, {
12052
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, input.package, {
12053
12053
  json: false,
12054
12054
  text: `${output2}
12055
12055
  `
@@ -12084,7 +12084,7 @@ function writeStartedPlayRun(input) {
12084
12084
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12085
12085
  ];
12086
12086
  if (input.jsonOutput) {
12087
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12087
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12088
12088
  return;
12089
12089
  }
12090
12090
  const output = lines.join("\n");
@@ -12092,7 +12092,7 @@ function writeStartedPlayRun(input) {
12092
12092
  input.progress.writeLine(output, process.stdout);
12093
12093
  return;
12094
12094
  }
12095
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
12095
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
12096
12096
  {
12097
12097
  ...payload,
12098
12098
  render: { sections: [{ title: "play run", lines }] }
@@ -12102,7 +12102,7 @@ function writeStartedPlayRun(input) {
12102
12102
  );
12103
12103
  }
12104
12104
  function parsePlayCheckOptions(args) {
12105
- const selection = _chunkEGTUOYYGjs.parseJsonFields.call(void 0, args, "check");
12105
+ const selection = _chunkKWGXHPHLjs.parseJsonFields.call(void 0, args, "check");
12106
12106
  args = selection.args;
12107
12107
  const target = args[0];
12108
12108
  if (!target || target.startsWith("-")) {
@@ -12114,7 +12114,7 @@ function parsePlayCheckOptions(args) {
12114
12114
  if (arg !== "--json" && arg !== "--full")
12115
12115
  throw new Error(`Unknown plays check option: ${arg}`);
12116
12116
  }
12117
- const jsonOutput = _chunkEGTUOYYGjs.argsWantJson.call(void 0, args);
12117
+ const jsonOutput = _chunkKWGXHPHLjs.argsWantJson.call(void 0, args);
12118
12118
  return {
12119
12119
  target,
12120
12120
  jsonOutput,
@@ -12190,10 +12190,10 @@ ${PLAY_PUBLISH_USAGE}`
12190
12190
  useLatest,
12191
12191
  expectedArtifactHash,
12192
12192
  dryRun,
12193
- jsonOutput: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args)
12193
+ jsonOutput: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args)
12194
12194
  };
12195
12195
  }
12196
- var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
12196
+ var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--watch-play <play-reference>] [--dry-run] [--json]\nUse --watch-play to show invalid source on your own open working canvas while keeping the last valid diagram.";
12197
12197
  function parsePlaySaveOptions(args) {
12198
12198
  const target = args[0];
12199
12199
  if (!target) throw new Error(PLAY_SAVE_USAGE);
@@ -12202,9 +12202,16 @@ function parsePlaySaveOptions(args) {
12202
12202
  The Play file is positional.`);
12203
12203
  }
12204
12204
  let expectedArtifactHash;
12205
+ let watchPlay;
12205
12206
  let dryRun = false;
12206
12207
  for (let index = 1; index < args.length; index += 1) {
12207
12208
  const arg = args[index];
12209
+ if (arg === "--watch-play" || arg.startsWith("--watch-play=")) {
12210
+ watchPlay = arg === "--watch-play" ? args[++index] : arg.slice("--watch-play=".length);
12211
+ if (!watchPlay || watchPlay.startsWith("-"))
12212
+ throw new Error("--watch-play requires an existing Play reference.");
12213
+ continue;
12214
+ }
12208
12215
  if (arg === "--expected-artifact") {
12209
12216
  expectedArtifactHash = args[++index];
12210
12217
  if (!expectedArtifactHash) {
@@ -12230,8 +12237,9 @@ ${PLAY_SAVE_USAGE}`);
12230
12237
  return {
12231
12238
  target,
12232
12239
  expectedArtifactHash,
12240
+ watchPlay,
12233
12241
  dryRun,
12234
- jsonOutput: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args)
12242
+ jsonOutput: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args)
12235
12243
  };
12236
12244
  }
12237
12245
  function printScheduledPlayCapacity(capacity) {
@@ -12442,7 +12450,7 @@ function printBundledRuntimeWarning(bundle) {
12442
12450
  async function handlePlayCheck(args) {
12443
12451
  const options = parsePlayCheckOptions(args);
12444
12452
  if (!isFileTarget(options.target)) {
12445
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
12453
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
12446
12454
  try {
12447
12455
  await assertCanonicalNamedPlayReference(client, options.target, {
12448
12456
  command: "check"
@@ -12471,7 +12479,7 @@ async function handlePlayCheck(args) {
12471
12479
  },
12472
12480
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12473
12481
  };
12474
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, result, {
12482
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, result, {
12475
12483
  json: options.jsonOutput,
12476
12484
  fields: options.jsonFields,
12477
12485
  text: renderPlayCheckOutput(result) + "\n"
@@ -12481,7 +12489,7 @@ async function handlePlayCheck(args) {
12481
12489
  const resolved = _path.resolve.call(void 0, options.target);
12482
12490
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12483
12491
  if (options.jsonOutput) {
12484
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
12492
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
12485
12493
  {
12486
12494
  kind: "play_check",
12487
12495
  checked: "named_contract",
@@ -12512,7 +12520,7 @@ async function handlePlayCheck(args) {
12512
12520
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
12513
12521
  publishCommand: _optionalChain([primary, 'optionalAccess', _479 => _479.result, 'access', _480 => _480.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
12514
12522
  });
12515
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, output, {
12523
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, output, {
12516
12524
  json: options.jsonOutput,
12517
12525
  fields: options.jsonFields,
12518
12526
  text: renderPlayCheckOutput(output) + "\n"
@@ -12580,7 +12588,7 @@ async function checkOneExportedPlay(input) {
12580
12588
  }
12581
12589
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
12582
12590
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
12583
- const client = _nullishCoalesce(input.client, () => ( new (0, _chunkMQX363YFjs.DeeplineClient)()));
12591
+ const client = _nullishCoalesce(input.client, () => ( new (0, _chunk243O3FH5js.DeeplineClient)()));
12584
12592
  const integrationMode = resolveEvalIntegrationMode();
12585
12593
  const checked = await checkLocalPlayGraph({
12586
12594
  client,
@@ -12636,8 +12644,8 @@ async function handleFileBackedRun(options, hooks) {
12636
12644
  let prefetchClient;
12637
12645
  let admissionCapability;
12638
12646
  let cancelAdmissionCapability;
12639
- let cliAdmission = _chunkHPJAE6PPjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12640
- const progress = _nullishCoalesce(_chunk6CEUQYMBjs.getActiveCliProgress.call(void 0, ), () => ( _chunk6CEUQYMBjs.createCliProgress.call(void 0, !options.jsonOutput)));
12647
+ let cliAdmission = _chunkKA6ZERJLjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12648
+ const progress = _nullishCoalesce(_chunkRFQWSH6Ijs.getActiveCliProgress.call(void 0, ), () => ( _chunkRFQWSH6Ijs.createCliProgress.call(void 0, !options.jsonOutput)));
12641
12649
  const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
12642
12650
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
12643
12651
  progress.phase("compiling play");
@@ -12654,11 +12662,11 @@ async function handleFileBackedRun(options, hooks) {
12654
12662
  return 1;
12655
12663
  }
12656
12664
  if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
12657
- const clientForPrefetch = new (0, _chunkMQX363YFjs.DeeplineClient)(playRunClientOptions(options));
12665
+ const clientForPrefetch = new (0, _chunk243O3FH5js.DeeplineClient)(playRunClientOptions(options));
12658
12666
  prefetchClient = clientForPrefetch;
12659
12667
  const capabilityController = new AbortController();
12660
12668
  cancelAdmissionCapability = () => capabilityController.abort();
12661
- admissionCapability = _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
12669
+ admissionCapability = _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
12662
12670
  "cli.play_admission_capability_prefetch",
12663
12671
  { targetKind: "file" },
12664
12672
  () => clientForPrefetch.prefetchPlayRunAdmissionCapability({
@@ -12669,7 +12677,7 @@ async function handleFileBackedRun(options, hooks) {
12669
12677
  }
12670
12678
  let graph;
12671
12679
  try {
12672
- graph = await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
12680
+ graph = await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
12673
12681
  "cli.play_file_bundle_graph",
12674
12682
  { targetKind: "file" },
12675
12683
  () => collectBundledPlayGraph(
@@ -12682,7 +12690,7 @@ async function handleFileBackedRun(options, hooks) {
12682
12690
  assertPlayGraphAuthoring(graph);
12683
12691
  if (options.dryRun) {
12684
12692
  progress.complete();
12685
- const plan = _chunkJBBJDFUJjs.planLocalPlayExecution.call(void 0, graph, {
12693
+ const plan = _chunkPHLNYBAAjs.planLocalPlayExecution.call(void 0, graph, {
12686
12694
  runIdFile: options.runIdFile
12687
12695
  });
12688
12696
  if (_optionalChain([hooks, 'optionalAccess', _490 => _490.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
@@ -12693,9 +12701,9 @@ async function handleFileBackedRun(options, hooks) {
12693
12701
  });
12694
12702
  return 0;
12695
12703
  }
12696
- client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkMQX363YFjs.DeeplineClient)(playRunClientOptions(options))));
12704
+ client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunk243O3FH5js.DeeplineClient)(playRunClientOptions(options))));
12697
12705
  if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
12698
- await _chunkHPJAE6PPjs.checkPlayRunCompatibility.call(void 0,
12706
+ await _chunkKA6ZERJLjs.checkPlayRunCompatibility.call(void 0,
12699
12707
  client.baseUrl,
12700
12708
  options.maintenancePolicy
12701
12709
  );
@@ -12708,7 +12716,7 @@ async function handleFileBackedRun(options, hooks) {
12708
12716
  });
12709
12717
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
12710
12718
  if (canDeferCompilerManifest) {
12711
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
12719
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
12712
12720
  phase: "cli.play_file_compile_manifests",
12713
12721
  ms: 0,
12714
12722
  ok: true,
@@ -12717,7 +12725,7 @@ async function handleFileBackedRun(options, hooks) {
12717
12725
  reason: "validated_by_run_route"
12718
12726
  });
12719
12727
  } else {
12720
- await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
12728
+ await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
12721
12729
  "cli.play_file_compile_manifests",
12722
12730
  { targetKind: "file", skipped: false },
12723
12731
  () => compileBundledPlayGraphManifests(client, graph)
@@ -12725,7 +12733,7 @@ async function handleFileBackedRun(options, hooks) {
12725
12733
  }
12726
12734
  progress.phase("compiled play");
12727
12735
  } catch (error) {
12728
- if (error instanceof _chunkV7SCRUFQjs.ExecutionOutputError) throw error;
12736
+ if (error instanceof _chunk6LHX33VNjs.ExecutionOutputError) throw error;
12729
12737
  progress.fail();
12730
12738
  reportError(normalizePlayValidationError(error));
12731
12739
  return 1;
@@ -12736,13 +12744,13 @@ async function handleFileBackedRun(options, hooks) {
12736
12744
  if (bundleResult.importedPlayDependencies.length > 0) {
12737
12745
  try {
12738
12746
  renderLocalPlayExecutionPlan(
12739
- _chunkJBBJDFUJjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12747
+ _chunkPHLNYBAAjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12740
12748
  );
12741
12749
  progress.phase("pinning imported plays");
12742
- graph = await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
12750
+ graph = await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
12743
12751
  "cli.play_file_pin_imports",
12744
12752
  { targetKind: "file" },
12745
- () => _chunkJBBJDFUJjs.pinLocalPlayImports.call(void 0, client, graph)
12753
+ () => _chunkPHLNYBAAjs.pinLocalPlayImports.call(void 0, client, graph)
12746
12754
  );
12747
12755
  bundleResult = graph.root;
12748
12756
  } catch (error) {
@@ -12759,7 +12767,7 @@ async function handleFileBackedRun(options, hooks) {
12759
12767
  inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _491 => _491.authoringContract, 'optionalAccess', _492 => _492.inputSchema]),
12760
12768
  staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _493 => _493.staticPipeline])
12761
12769
  });
12762
- const stagedFileInputs = await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
12770
+ const stagedFileInputs = await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
12763
12771
  "cli.play_stage_inputs",
12764
12772
  {
12765
12773
  targetKind: "file",
@@ -12806,7 +12814,7 @@ async function handleFileBackedRun(options, hooks) {
12806
12814
  };
12807
12815
  if (options.watch) {
12808
12816
  progress.phase("starting run");
12809
- const finalStatus = await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
12817
+ const finalStatus = await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
12810
12818
  "cli.play_start_watch",
12811
12819
  { targetKind: "file", playName },
12812
12820
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -12868,7 +12876,7 @@ async function handleFileBackedRun(options, hooks) {
12868
12876
  return outputStatus.status === "completed" ? 0 : 1;
12869
12877
  }
12870
12878
  progress.phase("starting run");
12871
- const started = await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
12879
+ const started = await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
12872
12880
  "cli.play_start_unwatched",
12873
12881
  { targetKind: "file", playName },
12874
12882
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _500 => _500.onSubmission]) }).catch(async (error) => {
@@ -12934,9 +12942,9 @@ async function handleNamedRun(options, hooks) {
12934
12942
  if (options.target.kind !== "name") {
12935
12943
  throw new Error("Expected a named play run target.");
12936
12944
  }
12937
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)(playRunClientOptions(options));
12938
- let cliAdmission = _chunkHPJAE6PPjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12939
- const progress = _nullishCoalesce(_chunk6CEUQYMBjs.getActiveCliProgress.call(void 0, ), () => ( _chunk6CEUQYMBjs.createCliProgress.call(void 0, !options.jsonOutput)));
12945
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)(playRunClientOptions(options));
12946
+ let cliAdmission = _chunkKA6ZERJLjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12947
+ const progress = _nullishCoalesce(_chunkRFQWSH6Ijs.getActiveCliProgress.call(void 0, ), () => ( _chunkRFQWSH6Ijs.createCliProgress.call(void 0, !options.jsonOutput)));
12940
12948
  const playName = options.target.name;
12941
12949
  const runtimeInput = options.input ? { ...options.input } : {};
12942
12950
  try {
@@ -12954,7 +12962,7 @@ async function handleNamedRun(options, hooks) {
12954
12962
  if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
12955
12963
  const capabilityController = new AbortController();
12956
12964
  cancelAdmissionCapability = () => capabilityController.abort();
12957
- admissionCapability = _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
12965
+ admissionCapability = _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
12958
12966
  "cli.play_admission_capability_prefetch",
12959
12967
  { targetKind: "name", playName },
12960
12968
  () => client.prefetchPlayRunAdmissionCapability({
@@ -12965,14 +12973,14 @@ async function handleNamedRun(options, hooks) {
12965
12973
  }
12966
12974
  const playDetail = needsPlayDefinition ? await (async () => {
12967
12975
  progress.phase("loading play definition");
12968
- return _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
12976
+ return _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
12969
12977
  "cli.play_load_definition",
12970
12978
  { targetKind: "name", playName, skipped: false },
12971
12979
  () => assertCanonicalNamedPlayReference(client, playName, {
12972
12980
  command: "run"
12973
12981
  })
12974
12982
  );
12975
- })() : (_chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
12983
+ })() : (_chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
12976
12984
  phase: "cli.play_load_definition",
12977
12985
  ms: 0,
12978
12986
  ok: true,
@@ -12981,7 +12989,7 @@ async function handleNamedRun(options, hooks) {
12981
12989
  skipped: true
12982
12990
  }), null);
12983
12991
  progress.phase("selecting revision");
12984
- const selectedRevisionId = await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
12992
+ const selectedRevisionId = await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
12985
12993
  "cli.play_select_revision",
12986
12994
  {
12987
12995
  targetKind: "name",
@@ -13006,10 +13014,10 @@ async function handleNamedRun(options, hooks) {
13006
13014
  ..._chunk2KHUFWTKjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
13007
13015
  ] : [];
13008
13016
  if (cliAdmission && fileInputBindings.length > 0) {
13009
- await _chunkHPJAE6PPjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13017
+ await _chunkKA6ZERJLjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13010
13018
  cliAdmission = false;
13011
13019
  }
13012
- const stagedFileInputs = await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
13020
+ const stagedFileInputs = await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
13013
13021
  "cli.play_stage_inputs",
13014
13022
  {
13015
13023
  targetKind: "name",
@@ -13053,7 +13061,7 @@ async function handleNamedRun(options, hooks) {
13053
13061
  });
13054
13062
  if (options.watch) {
13055
13063
  progress.phase("starting run");
13056
- const finalStatus = await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
13064
+ const finalStatus = await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
13057
13065
  "cli.play_start_watch",
13058
13066
  { targetKind: "name", playName },
13059
13067
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -13118,7 +13126,7 @@ async function handleNamedRun(options, hooks) {
13118
13126
  return outputStatus.status === "completed" ? 0 : 1;
13119
13127
  }
13120
13128
  progress.phase("starting run");
13121
- const started = await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
13129
+ const started = await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
13122
13130
  "cli.play_start_unwatched",
13123
13131
  { targetKind: "name", playName },
13124
13132
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _513 => _513.onSubmission]) }).catch(async (error) => {
@@ -13178,7 +13186,7 @@ async function writePlayRunReceipt(client, status, output) {
13178
13186
  const next = { status: `deepline runs get ${status.runId}` };
13179
13187
  const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _521 => _521.exec, 'call', _522 => _522(status.runId), 'optionalAccess', _523 => _523[1]]), () => ( extractRunPlayName(status))), () => ( null));
13180
13188
  if (!terminal) {
13181
- _chunkV7SCRUFQjs.writeExecutionOutput.call(void 0,
13189
+ _chunk6LHX33VNjs.writeExecutionOutput.call(void 0,
13182
13190
  {
13183
13191
  id: status.runId,
13184
13192
  status: status.status,
@@ -13258,10 +13266,10 @@ async function writePlayRunReceipt(client, status, output) {
13258
13266
  };
13259
13267
  }
13260
13268
  const byRows = new Map(collections.map((c) => [c.rows, c]));
13261
- const allCollections = _chunkV7SCRUFQjs.outputCollections.call(void 0, data).map(
13269
+ const allCollections = _chunk6LHX33VNjs.outputCollections.call(void 0, data).map(
13262
13270
  (collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
13263
13271
  );
13264
- _chunkV7SCRUFQjs.writeExecutionOutput.call(void 0,
13272
+ _chunk6LHX33VNjs.writeExecutionOutput.call(void 0,
13265
13273
  {
13266
13274
  id: status.runId,
13267
13275
  status: status.status,
@@ -13282,7 +13290,7 @@ async function writePlayRunReceipt(client, status, output) {
13282
13290
  }
13283
13291
  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;
13284
13292
  async function handlePlayRun(args, hooks) {
13285
- const parsedOptions = Array.isArray(args) ? _chunkTVINIDHBjs.parsePlayRunOptions.call(void 0, args) : args;
13293
+ const parsedOptions = Array.isArray(args) ? _chunkOM732MGVjs.parsePlayRunOptions.call(void 0, args) : args;
13286
13294
  const options = parsedOptions.runIdFile ? {
13287
13295
  ...parsedOptions,
13288
13296
  runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
@@ -13299,7 +13307,7 @@ async function handlePlayRun(args, hooks) {
13299
13307
  JSON.stringify({
13300
13308
  version: 1,
13301
13309
  admissionState: "submitted_unknown",
13302
- baseUrl: new (0, _chunkMQX363YFjs.DeeplineClient)().baseUrl,
13310
+ baseUrl: new (0, _chunk243O3FH5js.DeeplineClient)().baseUrl,
13303
13311
  ...intent
13304
13312
  })
13305
13313
  );
@@ -13537,7 +13545,7 @@ function renderRunOverviewText(overview, extras = {}) {
13537
13545
  );
13538
13546
  return `${lines.join("\n")}
13539
13547
 
13540
- ${_chunkEGTUOYYGjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13548
+ ${_chunkKWGXHPHLjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13541
13549
  }
13542
13550
  var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
13543
13551
  async function withRunReadTiming(command, stage, enabled, action) {
@@ -13561,7 +13569,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
13561
13569
  }
13562
13570
  }
13563
13571
  async function handleRunGet(args) {
13564
- const selection = _chunkEGTUOYYGjs.parseJsonFields.call(void 0,
13572
+ const selection = _chunkKWGXHPHLjs.parseJsonFields.call(void 0,
13565
13573
  args,
13566
13574
  args.includes("--config") ? "config" : "get"
13567
13575
  );
@@ -13574,7 +13582,7 @@ async function handleRunGet(args) {
13574
13582
  console.error(error instanceof Error ? error.message : usage2);
13575
13583
  return 1;
13576
13584
  }
13577
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
13585
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
13578
13586
  const timing = args.includes("--timing");
13579
13587
  const web = args.includes("--web");
13580
13588
  if (web || args.includes("--web-url")) {
@@ -13592,8 +13600,8 @@ async function handleRunGet(args) {
13592
13600
  const dashboardUrl2 = _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
13593
13601
  const runUrl2 = _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
13594
13602
  if (web) {
13595
- const opened = _chunkEGTUOYYGjs.openInBrowser.call(void 0, runUrl2);
13596
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
13603
+ const opened = _chunkKWGXHPHLjs.openInBrowser.call(void 0, runUrl2);
13604
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
13597
13605
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
13598
13606
  {
13599
13607
  json: args.includes("--json"),
@@ -13604,7 +13612,7 @@ async function handleRunGet(args) {
13604
13612
  );
13605
13613
  return 0;
13606
13614
  }
13607
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
13615
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
13608
13616
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
13609
13617
  { json: args.includes("--json"), text: `${runUrl2}
13610
13618
  ` }
@@ -13629,7 +13637,7 @@ async function handleRunGet(args) {
13629
13637
  "This server does not support recorded configuration reads."
13630
13638
  );
13631
13639
  }
13632
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
13640
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
13633
13641
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13634
13642
  { json: true, fields: selection.fields }
13635
13643
  );
@@ -13642,7 +13650,7 @@ async function handleRunGet(args) {
13642
13650
  timing,
13643
13651
  () => client.getRunInput(runId)
13644
13652
  );
13645
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, input, { json: true });
13653
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, input, { json: true });
13646
13654
  return 0;
13647
13655
  }
13648
13656
  const full = args.includes("--full");
@@ -13657,7 +13665,7 @@ async function handleRunGet(args) {
13657
13665
  failedLogs: args.includes("--log-failed")
13658
13666
  })
13659
13667
  );
13660
- if (status.package) _chunkV7SCRUFQjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13668
+ if (status.package) _chunk6LHX33VNjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13661
13669
  if (!status.package) {
13662
13670
  const legacyStatus = full ? await withRunReadTiming(
13663
13671
  "runs get",
@@ -13671,8 +13679,8 @@ async function handleRunGet(args) {
13671
13679
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
13672
13680
  const legacyDashboardUrl = legacyPlayName ? _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
13673
13681
  const legacyRunUrl = legacyPlayName ? _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
13674
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
13675
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
13682
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
13683
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
13676
13684
  {
13677
13685
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
13678
13686
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
@@ -13683,7 +13691,7 @@ async function handleRunGet(args) {
13683
13691
  } else {
13684
13692
  writePlayResult(legacyStatus, false, { fullJson: full });
13685
13693
  if (legacyRunUrl)
13686
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
13694
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
13687
13695
  { dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
13688
13696
  { json: false, text: `run page: ${legacyRunUrl}
13689
13697
  ` }
@@ -13713,11 +13721,11 @@ async function handleRunGet(args) {
13713
13721
  )
13714
13722
  ]);
13715
13723
  const hitLines = formatRunHitsLines(hits);
13716
- const json = _chunkEGTUOYYGjs.argsWantJson.call(void 0, args);
13724
+ const json = _chunkKWGXHPHLjs.argsWantJson.call(void 0, args);
13717
13725
  const playName = resolveRunPlayName(status, runId);
13718
13726
  const dashboardUrl = playName ? _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
13719
13727
  const runUrl = playName ? _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
13720
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
13728
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
13721
13729
  {
13722
13730
  ...overview,
13723
13731
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -13822,9 +13830,9 @@ async function handleRunLifecycleStatus(args) {
13822
13830
  console.error(error instanceof Error ? error.message : usage2);
13823
13831
  return 1;
13824
13832
  }
13825
- const status = await new (0, _chunkMQX363YFjs.DeeplineClient)().runs.status(runId);
13826
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
13827
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, status, { json: true });
13833
+ const status = await new (0, _chunk243O3FH5js.DeeplineClient)().runs.status(runId);
13834
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
13835
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, status, { json: true });
13828
13836
  return 0;
13829
13837
  }
13830
13838
  if (!status.available) {
@@ -13890,7 +13898,7 @@ async function handleRunsRerun(args) {
13890
13898
  console.error(error instanceof Error ? error.message : usage2);
13891
13899
  return 1;
13892
13900
  }
13893
- const options = { json: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args) };
13901
+ const options = { json: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args) };
13894
13902
  for (let index = 0; index < args.length; index += 1) {
13895
13903
  if (args[index] === "--idempotency-key") {
13896
13904
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -13956,8 +13964,8 @@ ${usage2}
13956
13964
  Discover Plays: ${next.discover}
13957
13965
  Active runs: ${next.running}`
13958
13966
  );
13959
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
13960
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
13967
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
13968
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
13961
13969
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
13962
13970
  { json: true }
13963
13971
  );
@@ -13972,7 +13980,7 @@ Active runs: ${next.running}`
13972
13980
  console.error("--offset requires --play.");
13973
13981
  return 1;
13974
13982
  }
13975
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
13983
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
13976
13984
  const page = await withRunReadTiming(
13977
13985
  "runs list",
13978
13986
  "run inventory",
@@ -14039,14 +14047,14 @@ Active runs: ${next.running}`
14039
14047
  return lines2.join("\n");
14040
14048
  });
14041
14049
  const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
14042
- const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkEGTUOYYGjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14050
+ 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}${_chunkKWGXHPHLjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14043
14051
  if (page.hasMore) {
14044
14052
  lines.push("List truncated \u2014 more runs match this filter.");
14045
14053
  lines.push(
14046
14054
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14047
14055
  );
14048
14056
  }
14049
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
14057
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
14050
14058
  {
14051
14059
  runs,
14052
14060
  count: runs.length,
@@ -14060,7 +14068,7 @@ Active runs: ${next.running}`
14060
14068
  },
14061
14069
  render: { sections: [{ title: "runs", lines }] }
14062
14070
  },
14063
- { json: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args) }
14071
+ { json: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args) }
14064
14072
  );
14065
14073
  return 0;
14066
14074
  }
@@ -14090,7 +14098,7 @@ async function handleRunTail(args) {
14090
14098
  console.error("--log-level requires one of: debug, info, warn, error.");
14091
14099
  return 1;
14092
14100
  }
14093
- const parsed = _chunkDGKTHWWHjs.parseLogLevel.call(void 0, value);
14101
+ const parsed = _chunkFGN75ZN6js.parseLogLevel.call(void 0, value);
14094
14102
  if (!parsed) {
14095
14103
  console.error(
14096
14104
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14128,9 +14136,9 @@ async function handleRunTail(args) {
14128
14136
  );
14129
14137
  return 1;
14130
14138
  }
14131
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
14139
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
14132
14140
  const jsonLines = args.includes("--jsonl");
14133
- const jsonOutput = !jsonLines && _chunkEGTUOYYGjs.argsWantJson.call(void 0, args);
14141
+ const jsonOutput = !jsonLines && _chunkKWGXHPHLjs.argsWantJson.call(void 0, args);
14134
14142
  const compact = args.includes("--compact");
14135
14143
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14136
14144
  const compactState = {
@@ -14211,7 +14219,7 @@ async function handleRunLogs(args) {
14211
14219
  ]);
14212
14220
  const cursorIndex = args.indexOf("--cursor");
14213
14221
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14214
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkDGKTHWWHjs.isRunLogsCursor.call(void 0, cursorValue));
14222
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkFGN75ZN6js.isRunLogsCursor.call(void 0, cursorValue));
14215
14223
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14216
14224
  return handleRunEventSearch(args);
14217
14225
  }
@@ -14245,7 +14253,7 @@ async function handleRunLogs(args) {
14245
14253
  console.error("--log-level requires one of: debug, info, warn, error.");
14246
14254
  return 1;
14247
14255
  }
14248
- const parsed = _chunkDGKTHWWHjs.parseLogLevel.call(void 0, value);
14256
+ const parsed = _chunkFGN75ZN6js.parseLogLevel.call(void 0, value);
14249
14257
  if (!parsed) {
14250
14258
  console.error(
14251
14259
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14292,12 +14300,12 @@ async function handleRunLogs(args) {
14292
14300
  );
14293
14301
  return 1;
14294
14302
  }
14295
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
14303
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
14296
14304
  if (outPath) {
14297
14305
  const result2 = await client.runs.logs(runId, { all: true });
14298
- const logs = result2.entries.filter((line) => _chunkDGKTHWWHjs.logLevelReaches.call(void 0, _chunkDGKTHWWHjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkDGKTHWWHjs.classifyLogLine.call(void 0, line).line);
14306
+ const logs = result2.entries.filter((line) => _chunkFGN75ZN6js.logLevelReaches.call(void 0, _chunkFGN75ZN6js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkFGN75ZN6js.classifyLogLine.call(void 0, line).line);
14299
14307
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14300
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
14308
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
14301
14309
  {
14302
14310
  runId: result2.runId,
14303
14311
  log_path: outPath,
@@ -14320,7 +14328,7 @@ async function handleRunLogs(args) {
14320
14328
  ]
14321
14329
  }
14322
14330
  },
14323
- { json: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args) }
14331
+ { json: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args) }
14324
14332
  );
14325
14333
  return 0;
14326
14334
  }
@@ -14351,7 +14359,7 @@ async function handleRunLogs(args) {
14351
14359
  }
14352
14360
  };
14353
14361
  const text = buildRunLogsText(filteredResult);
14354
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
14362
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
14355
14363
  {
14356
14364
  runId: result.runId,
14357
14365
  totalCount: result.totalCount,
@@ -14375,7 +14383,7 @@ async function handleRunLogs(args) {
14375
14383
  render: { sections: [{ title: "run logs", lines: entries }] }
14376
14384
  },
14377
14385
  {
14378
- json: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args),
14386
+ json: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args),
14379
14387
  text
14380
14388
  }
14381
14389
  );
@@ -14399,7 +14407,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14399
14407
  );
14400
14408
  }
14401
14409
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14402
- (entry) => _chunkDGKTHWWHjs.logLevelReaches.call(void 0, _chunkDGKTHWWHjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14410
+ (entry) => _chunkFGN75ZN6js.logLevelReaches.call(void 0, _chunkFGN75ZN6js.classifyLogLine.call(void 0, entry.line).level, logLevel)
14403
14411
  );
14404
14412
  const selected = matching.slice(-limit);
14405
14413
  const olderMatchesExist = matching.length > selected.length;
@@ -14409,7 +14417,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14409
14417
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _556 => _556.at, 'call', _557 => _557(-1), 'optionalAccess', _558 => _558.seq]), () => ( null)),
14410
14418
  truncated: result.truncated || olderMatchesExist,
14411
14419
  hasMore: olderMatchesExist,
14412
- nextCursor: olderMatchesExist ? _chunkDGKTHWWHjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14420
+ nextCursor: olderMatchesExist ? _chunkFGN75ZN6js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14413
14421
  };
14414
14422
  }
14415
14423
  async function handleRunEventSearch(args) {
@@ -14476,7 +14484,7 @@ ${usage2}`);
14476
14484
  namespace,
14477
14485
  ...backend ? { backend } : {}
14478
14486
  } : void 0;
14479
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
14487
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
14480
14488
  const result = await client.runs.searchEvents({
14481
14489
  ...runId ? { runId } : {},
14482
14490
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14548,7 +14556,7 @@ ${renderedDetails}` : ""}`;
14548
14556
  "--limit",
14549
14557
  String(limit)
14550
14558
  ].join(" ") : null;
14551
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
14559
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
14552
14560
  {
14553
14561
  events,
14554
14562
  nextCursor: result.nextCursor,
@@ -14559,14 +14567,14 @@ ${renderedDetails}` : ""}`;
14559
14567
  render: { sections: [{ title: "runtime events", lines }] }
14560
14568
  },
14561
14569
  {
14562
- json: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args),
14570
+ json: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args),
14563
14571
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14564
14572
  }
14565
14573
  );
14566
14574
  return 0;
14567
14575
  }
14568
14576
  function buildRunLogsText(result) {
14569
- const lines = result.entries.map((line) => _chunkDGKTHWWHjs.classifyLogLine.call(void 0, line).line);
14577
+ const lines = result.entries.map((line) => _chunkFGN75ZN6js.classifyLogLine.call(void 0, line).line);
14570
14578
  if (result.warning) {
14571
14579
  if (lines.length > 0) lines.push("");
14572
14580
  lines.push(`warning: ${result.warning}`);
@@ -14600,7 +14608,7 @@ async function handleRunStop(args) {
14600
14608
  reason = args[++index];
14601
14609
  }
14602
14610
  }
14603
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
14611
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
14604
14612
  const result = await client.runs.stop(runId, { reason });
14605
14613
  const state = resolveRunStopState(result);
14606
14614
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14615,7 +14623,7 @@ async function handleRunStop(args) {
14615
14623
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14616
14624
  `inspect: deepline runs get ${runId} --full`
14617
14625
  ];
14618
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
14626
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
14619
14627
  {
14620
14628
  ...cancelling,
14621
14629
  state,
@@ -14630,7 +14638,7 @@ async function handleRunStop(args) {
14630
14638
  ]
14631
14639
  }
14632
14640
  },
14633
- { json: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args) }
14641
+ { json: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args) }
14634
14642
  );
14635
14643
  return 0;
14636
14644
  }
@@ -14647,7 +14655,7 @@ async function handleRunStop(args) {
14647
14655
  ];
14648
14656
  process.stderr.write(`${lines2.join("\n")}
14649
14657
  `);
14650
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
14658
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
14651
14659
  {
14652
14660
  ...result,
14653
14661
  render: {
@@ -14662,7 +14670,7 @@ async function handleRunStop(args) {
14662
14670
  ]
14663
14671
  }
14664
14672
  },
14665
- { json: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args) }
14673
+ { json: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args) }
14666
14674
  );
14667
14675
  return 1;
14668
14676
  }
@@ -14673,12 +14681,12 @@ async function handleRunStop(args) {
14673
14681
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14674
14682
  ] : []
14675
14683
  ];
14676
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
14684
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
14677
14685
  {
14678
14686
  ...result,
14679
14687
  render: { sections: [{ title: "run stop", lines }] }
14680
14688
  },
14681
- { json: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args) }
14689
+ { json: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args) }
14682
14690
  );
14683
14691
  return 0;
14684
14692
  }
@@ -14728,18 +14736,18 @@ async function handleRunStopAll(args) {
14728
14736
  reason = args[++index];
14729
14737
  }
14730
14738
  }
14731
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
14739
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
14732
14740
  if (dryRun) {
14733
14741
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14734
14742
  const lines2 = buildStopAllDryRunTextLines(result2);
14735
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
14743
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
14736
14744
  {
14737
14745
  ...result2,
14738
14746
  render: {
14739
14747
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14740
14748
  }
14741
14749
  },
14742
- { json: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14750
+ { json: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14743
14751
  ` }
14744
14752
  );
14745
14753
  return 0;
@@ -14752,17 +14760,17 @@ async function handleRunStopAll(args) {
14752
14760
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14753
14761
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14754
14762
  ];
14755
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
14763
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
14756
14764
  {
14757
14765
  ...result,
14758
14766
  render: { sections: [{ title: "workspace stop-all", lines }] }
14759
14767
  },
14760
- { json: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args) }
14768
+ { json: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args) }
14761
14769
  );
14762
14770
  return result.failed > 0 || result.partial ? 1 : 0;
14763
14771
  }
14764
14772
  async function handleRunExport(args) {
14765
- const selection = _chunkEGTUOYYGjs.parseJsonFields.call(void 0, args, "export");
14773
+ const selection = _chunkKWGXHPHLjs.parseJsonFields.call(void 0, args, "export");
14766
14774
  args = selection.args;
14767
14775
  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]";
14768
14776
  let runId;
@@ -14833,17 +14841,17 @@ async function handleRunExport(args) {
14833
14841
  "INVALID_ARGUMENT"
14834
14842
  );
14835
14843
  }
14836
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
14844
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
14837
14845
  let status = await client.getPlayStatus(runId, { full: true });
14838
14846
  assertRunExportStatusIdentity(status, runId);
14839
14847
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14840
- const progress = _chunk6CEUQYMBjs.createCliProgress.call(void 0, !_chunkEGTUOYYGjs.argsWantJson.call(void 0, args));
14848
+ const progress = _chunkRFQWSH6Ijs.createCliProgress.call(void 0, !_chunkKWGXHPHLjs.argsWantJson.call(void 0, args));
14841
14849
  try {
14842
14850
  await waitForPlayCompletionByWatch({
14843
14851
  client,
14844
14852
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14845
14853
  workflowId: runId,
14846
- jsonOutput: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args),
14854
+ jsonOutput: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args),
14847
14855
  emitLogs: false,
14848
14856
  waitTimeoutMs,
14849
14857
  startedAt: Date.now(),
@@ -14911,7 +14919,7 @@ async function handleRunExport(args) {
14911
14919
  rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _572 => _572.rowsInfo, 'access', _573 => _573.totalRows]), () => ( null)),
14912
14920
  ...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
14913
14921
  ...rowFailures ? { rowFailures } : {},
14914
- columns: _chunkV7SCRUFQjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _574 => _574.rowsInfo, 'access', _575 => _575.columns]), () => ( []))),
14922
+ columns: _chunk6LHX33VNjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _574 => _574.rowsInfo, 'access', _575 => _575.columns]), () => ( []))),
14915
14923
  ...currentTableNotice ? { notice: currentTableNotice } : {},
14916
14924
  ...metadataOutPath ? { metadata_path: metadataOutPath } : {},
14917
14925
  ...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
@@ -14945,8 +14953,8 @@ async function handleRunExport(args) {
14945
14953
  "utf-8"
14946
14954
  );
14947
14955
  }
14948
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, payload, {
14949
- json: _chunkEGTUOYYGjs.argsWantJson.call(void 0, args),
14956
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, payload, {
14957
+ json: _chunkKWGXHPHLjs.argsWantJson.call(void 0, args),
14950
14958
  fields: selection.fields,
14951
14959
  text: `${lines.join("\n")}
14952
14960
  `
@@ -14980,10 +14988,10 @@ async function handlePlayGet(args) {
14980
14988
  );
14981
14989
  return 2;
14982
14990
  }
14983
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
14991
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
14984
14992
  const explicitJson = args.includes("--json");
14985
14993
  const sourceOutput = args.includes("--source");
14986
- const jsonOutput = sourceOutput ? explicitJson : _chunkEGTUOYYGjs.argsWantJson.call(void 0, args);
14994
+ const jsonOutput = sourceOutput ? explicitJson : _chunkKWGXHPHLjs.argsWantJson.call(void 0, args);
14987
14995
  const requestedRevisionFlags = [
14988
14996
  args.includes("--working"),
14989
14997
  args.includes("--live"),
@@ -15046,7 +15054,7 @@ async function handlePlayGet(args) {
15046
15054
  }
15047
15055
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15048
15056
  if (jsonOutput) {
15049
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, {
15057
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, {
15050
15058
  ...detail,
15051
15059
  ...materializedFile ? {
15052
15060
  message: loadedMessage,
@@ -15138,8 +15146,8 @@ async function handlePlayVersions(args) {
15138
15146
  console.error("Usage: deepline plays versions --name <name> [--json]");
15139
15147
  return 1;
15140
15148
  }
15141
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
15142
- const jsonOutput = _chunkEGTUOYYGjs.argsWantJson.call(void 0, args);
15149
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
15150
+ const jsonOutput = _chunkKWGXHPHLjs.argsWantJson.call(void 0, args);
15143
15151
  await assertCanonicalNamedPlayReference(client, playName, {
15144
15152
  command: "versions"
15145
15153
  });
@@ -15147,7 +15155,7 @@ async function handlePlayVersions(args) {
15147
15155
  parseReferencedPlayTarget(playName).playName
15148
15156
  );
15149
15157
  if (jsonOutput) {
15150
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, { versions });
15158
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, { versions });
15151
15159
  return 0;
15152
15160
  }
15153
15161
  if (versions.length === 0) {
@@ -15190,8 +15198,8 @@ async function handlePlayCost(args) {
15190
15198
  console.error("Usage: deepline plays cost <play> [--json]");
15191
15199
  return 2;
15192
15200
  }
15193
- const result = await new (0, _chunkMQX363YFjs.DeeplineClient)().getPlayCostEstimate(name);
15194
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15201
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().getPlayCostEstimate(name);
15202
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15195
15203
  else
15196
15204
  console.log(
15197
15205
  `${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
@@ -15199,9 +15207,9 @@ async function handlePlayCost(args) {
15199
15207
  return 0;
15200
15208
  }
15201
15209
  async function handlePlayList(args) {
15202
- const jsonOutput = _chunkEGTUOYYGjs.argsWantJson.call(void 0, args);
15210
+ const jsonOutput = _chunkKWGXHPHLjs.argsWantJson.call(void 0, args);
15203
15211
  const showCost = args.includes("--show-cost");
15204
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
15212
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
15205
15213
  const categoriesIndex = args.indexOf("--categories");
15206
15214
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _595 => _595[categoriesIndex + 1], 'optionalAccess', _596 => _596.trim, 'call', _597 => _597()]) : void 0;
15207
15215
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15299,7 +15307,7 @@ async function handlePlayList(args) {
15299
15307
  lines.push("List truncated \u2014 more plays are available.");
15300
15308
  lines.push(`Next page: ${nextPage}`);
15301
15309
  }
15302
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
15310
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
15303
15311
  {
15304
15312
  plays,
15305
15313
  count: plays.length,
@@ -15317,7 +15325,7 @@ async function handlePlayList(args) {
15317
15325
  }
15318
15326
  async function handlePlayPin(args, pinned) {
15319
15327
  const target = _optionalChain([args, 'access', _606 => _606.find, 'call', _607 => _607((arg) => !arg.startsWith("-")), 'optionalAccess', _608 => _608.trim, 'call', _609 => _609()]);
15320
- const jsonOutput = _chunkEGTUOYYGjs.argsWantJson.call(void 0, args);
15328
+ const jsonOutput = _chunkKWGXHPHLjs.argsWantJson.call(void 0, args);
15321
15329
  const dryRun = args.includes("--dry-run");
15322
15330
  if (!target) {
15323
15331
  console.error(
@@ -15335,11 +15343,11 @@ async function handlePlayPin(args, pinned) {
15335
15343
  const name = parsedTarget.playName;
15336
15344
  const plan = { name, pinned, dryRun };
15337
15345
  if (dryRun) {
15338
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, plan);
15346
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, plan);
15339
15347
  return 0;
15340
15348
  }
15341
- const result = await new (0, _chunkMQX363YFjs.DeeplineClient)().setPlayPinned(name, pinned);
15342
- if (jsonOutput) _chunkEGTUOYYGjs.printCompactJson.call(void 0, result);
15349
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().setPlayPinned(name, pinned);
15350
+ if (jsonOutput) _chunkKWGXHPHLjs.printCompactJson.call(void 0, result);
15343
15351
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15344
15352
  return 0;
15345
15353
  }
@@ -15465,12 +15473,12 @@ async function handlePlayGrep(args) {
15465
15473
  console.error("Usage: deepline plays grep <query> [--json]");
15466
15474
  return 1;
15467
15475
  }
15468
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
15476
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
15469
15477
  const results = (await client.listPlays({ grep: query })).map(
15470
15478
  summarizePlayGrepResult
15471
15479
  );
15472
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
15473
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, {
15480
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
15481
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, {
15474
15482
  plays: results,
15475
15483
  count: results.length,
15476
15484
  query,
@@ -15493,7 +15501,7 @@ async function handlePlayGrep(args) {
15493
15501
  return 0;
15494
15502
  }
15495
15503
  async function handlePlayDescribe(args) {
15496
- const selection = _chunkEGTUOYYGjs.parseJsonFields.call(void 0, args, "describe");
15504
+ const selection = _chunkKWGXHPHLjs.parseJsonFields.call(void 0, args, "describe");
15497
15505
  args = selection.args;
15498
15506
  const playName = args[0];
15499
15507
  if (!playName) {
@@ -15527,8 +15535,8 @@ async function handlePlayDescribe(args) {
15527
15535
  `deepline plays check ${playName}`,
15528
15536
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15529
15537
  ];
15530
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
15531
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, {
15538
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
15539
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, {
15532
15540
  ok: false,
15533
15541
  error: { message },
15534
15542
  next
@@ -15542,7 +15550,7 @@ async function handlePlayDescribe(args) {
15542
15550
  }
15543
15551
  return 2;
15544
15552
  }
15545
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
15553
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
15546
15554
  await assertCanonicalNamedPlayReference(client, playName, {
15547
15555
  command: "describe"
15548
15556
  });
@@ -15552,9 +15560,9 @@ async function handlePlayDescribe(args) {
15552
15560
  compact: args.includes("--compact")
15553
15561
  }
15554
15562
  );
15555
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
15556
- if (selection.fields) _chunkEGTUOYYGjs.printJson.call(void 0, play, selection.fields);
15557
- else _chunkEGTUOYYGjs.printCompactJson.call(void 0, play);
15563
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
15564
+ if (selection.fields) _chunkKWGXHPHLjs.printJson.call(void 0, play, selection.fields);
15565
+ else _chunkKWGXHPHLjs.printCompactJson.call(void 0, play);
15558
15566
  return 0;
15559
15567
  }
15560
15568
  printPlayDescription(play);
@@ -15574,19 +15582,49 @@ async function handlePlaySave(args) {
15574
15582
  );
15575
15583
  return 2;
15576
15584
  }
15585
+ const watchPlay = options.dryRun ? void 0 : options.watchPlay;
15586
+ const client = watchPlay ? new (0, _chunk243O3FH5js.DeeplineClient)() : void 0;
15587
+ let attempt;
15588
+ if (watchPlay && client) {
15589
+ try {
15590
+ attempt = await client.beginWorkingPlaySave(watchPlay);
15591
+ } catch (error) {
15592
+ console.error(
15593
+ `Could not open the Play save status: ${error instanceof Error ? error.message : String(error)}`
15594
+ );
15595
+ return 5;
15596
+ }
15597
+ }
15598
+ const reportSave = async (action) => {
15599
+ if (!watchPlay || !client || !attempt) return;
15600
+ try {
15601
+ await client.finishWorkingPlaySave(watchPlay, attempt.attemptId, action);
15602
+ } catch (error) {
15603
+ console.error(
15604
+ `Could not update the Play save status: ${error instanceof Error ? error.message : String(error)}`
15605
+ );
15606
+ }
15607
+ };
15577
15608
  let graph;
15578
15609
  try {
15579
- graph = await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
15610
+ graph = await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
15580
15611
  "cli.play_save_bundle_graph",
15581
15612
  { targetKind: "file" },
15582
15613
  () => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
15583
15614
  );
15584
15615
  assertPlayGraphAuthoring(graph);
15585
15616
  } catch (error) {
15617
+ await reportSave("invalid_source");
15586
15618
  console.error(error instanceof Error ? error.message : String(error));
15587
15619
  return 7;
15588
15620
  }
15589
15621
  const playName = await _asyncNullishCoalesce(graph.root.playName, async () => ( await extractPlayName(graph.root.sourceCode, graph.root.filePath)));
15622
+ if (watchPlay && parseReferencedPlayTarget(watchPlay).unqualifiedPlayName !== playName) {
15623
+ console.error(
15624
+ `The file defines ${playName}, which does not match --watch-play ${watchPlay}.`
15625
+ );
15626
+ return 7;
15627
+ }
15590
15628
  const artifactHash = graph.root.artifact.artifactHash;
15591
15629
  if (options.expectedArtifactHash && options.expectedArtifactHash !== artifactHash) {
15592
15630
  const result = {
@@ -15598,7 +15636,7 @@ async function handlePlaySave(args) {
15598
15636
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15599
15637
  };
15600
15638
  if (options.jsonOutput) {
15601
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, result);
15639
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, result);
15602
15640
  } else {
15603
15641
  console.error(result.message);
15604
15642
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15620,7 +15658,7 @@ async function handlePlaySave(args) {
15620
15658
  };
15621
15659
  if (options.dryRun) {
15622
15660
  if (options.jsonOutput) {
15623
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, dryRun);
15661
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, dryRun);
15624
15662
  } else {
15625
15663
  console.log(`Dry run: ${playName}`);
15626
15664
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15629,17 +15667,17 @@ async function handlePlaySave(args) {
15629
15667
  }
15630
15668
  return 0;
15631
15669
  }
15632
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
15670
+ const saveClient = _nullishCoalesce(client, () => ( new (0, _chunk243O3FH5js.DeeplineClient)()));
15633
15671
  try {
15634
- await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
15672
+ await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
15635
15673
  "cli.play_save_compile_manifests",
15636
15674
  { targetKind: "file", nodeCount: graph.nodes.size },
15637
- () => compileBundledPlayGraphManifests(client, graph)
15675
+ () => compileBundledPlayGraphManifests(saveClient, graph)
15638
15676
  );
15639
- const saved = await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
15677
+ const saved = await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
15640
15678
  "cli.play_save_register_draft",
15641
15679
  { targetKind: "file", playName, artifactHash },
15642
- () => client.registerPlayArtifact({
15680
+ () => saveClient.registerPlayArtifact({
15643
15681
  name: playName,
15644
15682
  sourceCode: graph.root.sourceCode,
15645
15683
  sourceFiles: graph.root.sourceFiles,
@@ -15649,6 +15687,7 @@ async function handlePlaySave(args) {
15649
15687
  publish: false
15650
15688
  })
15651
15689
  );
15690
+ await reportSave("saved");
15652
15691
  const result = {
15653
15692
  success: true,
15654
15693
  name: playName,
@@ -15665,7 +15704,7 @@ async function handlePlaySave(args) {
15665
15704
  }
15666
15705
  };
15667
15706
  if (options.jsonOutput) {
15668
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, result);
15707
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, result);
15669
15708
  } else {
15670
15709
  console.log(
15671
15710
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15677,6 +15716,9 @@ async function handlePlaySave(args) {
15677
15716
  }
15678
15717
  return 0;
15679
15718
  } catch (error) {
15719
+ if (extractPlayValidationErrors(error).length > 0) {
15720
+ await reportSave("invalid_source");
15721
+ }
15680
15722
  console.error(error instanceof Error ? error.message : String(error));
15681
15723
  return 5;
15682
15724
  }
@@ -15691,7 +15733,7 @@ async function handlePlayPublish(args) {
15691
15733
  }
15692
15734
  const { target: playName, useLatest } = options;
15693
15735
  let revisionId = options.revisionId;
15694
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
15736
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
15695
15737
  if (isFileTarget(playName)) {
15696
15738
  if (revisionId || useLatest) {
15697
15739
  console.error(
@@ -15701,7 +15743,7 @@ async function handlePlayPublish(args) {
15701
15743
  }
15702
15744
  let graph;
15703
15745
  try {
15704
- graph = await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
15746
+ graph = await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
15705
15747
  "cli.play_publish_bundle_graph",
15706
15748
  { targetKind: "file" },
15707
15749
  () => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
@@ -15723,7 +15765,7 @@ async function handlePlayPublish(args) {
15723
15765
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15724
15766
  };
15725
15767
  if (options.jsonOutput) {
15726
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, result3);
15768
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, result3);
15727
15769
  } else {
15728
15770
  console.error(result3.message);
15729
15771
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15746,7 +15788,7 @@ async function handlePlayPublish(args) {
15746
15788
  };
15747
15789
  if (options.dryRun) {
15748
15790
  if (options.jsonOutput) {
15749
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, dryRun);
15791
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, dryRun);
15750
15792
  } else {
15751
15793
  console.log(`Dry run: ${rootPlayName}`);
15752
15794
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15765,12 +15807,12 @@ async function handlePlayPublish(args) {
15765
15807
  }
15766
15808
  }
15767
15809
  try {
15768
- await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
15810
+ await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
15769
15811
  "cli.play_publish_compile_manifests",
15770
15812
  { targetKind: "file", nodeCount: graph.nodes.size },
15771
15813
  () => compileBundledPlayGraphManifests(client, graph)
15772
15814
  );
15773
- await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
15815
+ await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
15774
15816
  "cli.play_publish_imports",
15775
15817
  { targetKind: "file", nodeCount: graph.nodes.size },
15776
15818
  () => publishImportedPlayDependencies(client, graph)
@@ -15779,7 +15821,7 @@ async function handlePlayPublish(args) {
15779
15821
  console.error(error instanceof Error ? error.message : String(error));
15780
15822
  return 1;
15781
15823
  }
15782
- const published = await _chunkDZS4JC7Ijs.traceCliSpan.call(void 0,
15824
+ const published = await _chunk7PXP2FQKjs.traceCliSpan.call(void 0,
15783
15825
  "cli.play_publish_register_root",
15784
15826
  {
15785
15827
  targetKind: "file",
@@ -15814,7 +15856,7 @@ async function handlePlayPublish(args) {
15814
15856
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15815
15857
  };
15816
15858
  if (options.jsonOutput) {
15817
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, result2);
15859
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, result2);
15818
15860
  } else {
15819
15861
  printPublishReceipt({
15820
15862
  name: rootPlayName,
@@ -15845,7 +15887,7 @@ async function handlePlayPublish(args) {
15845
15887
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15846
15888
  latest: useLatest
15847
15889
  };
15848
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, result2);
15890
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, result2);
15849
15891
  return 0;
15850
15892
  }
15851
15893
  const resolvedName = parseReferencedPlayTarget(playName).playName;
@@ -15869,7 +15911,7 @@ async function handlePlayPublish(args) {
15869
15911
  revisionId ? { revisionId } : {}
15870
15912
  );
15871
15913
  if (options.jsonOutput) {
15872
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, result);
15914
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, result);
15873
15915
  } else {
15874
15916
  printPublishReceipt({
15875
15917
  name: result.name,
@@ -15909,7 +15951,7 @@ async function handlePlayDelete(args) {
15909
15951
  );
15910
15952
  return 2;
15911
15953
  }
15912
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
15954
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
15913
15955
  let detail;
15914
15956
  try {
15915
15957
  detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
@@ -15933,8 +15975,8 @@ async function handlePlayDelete(args) {
15933
15975
  name: resolvedName,
15934
15976
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
15935
15977
  };
15936
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
15937
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, result2);
15978
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
15979
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, result2);
15938
15980
  } else {
15939
15981
  process.stdout.write(
15940
15982
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -15944,8 +15986,8 @@ async function handlePlayDelete(args) {
15944
15986
  return 0;
15945
15987
  }
15946
15988
  const result = await client.deletePlay(resolvedName);
15947
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
15948
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, result);
15989
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
15990
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, result);
15949
15991
  return result.archived || result.alreadyArchived ? 0 : 4;
15950
15992
  }
15951
15993
  if (result.alreadyArchived) {
@@ -15984,13 +16026,13 @@ async function handlePlayRestore(args) {
15984
16026
  );
15985
16027
  return 2;
15986
16028
  }
15987
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
16029
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
15988
16030
  try {
15989
16031
  const result = await client.restorePlay(
15990
16032
  parseReferencedPlayTarget(playName).playName
15991
16033
  );
15992
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
15993
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, result);
16034
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
16035
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, result);
15994
16036
  return result.restored || result.alreadyActive ? 0 : 4;
15995
16037
  }
15996
16038
  if (result.alreadyActive) {
@@ -16117,21 +16159,21 @@ Common commands:
16117
16159
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16118
16160
  }
16119
16161
  };
16120
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0, result2, {
16162
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0, result2, {
16121
16163
  json: options.json,
16122
16164
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16123
16165
  `
16124
16166
  });
16125
16167
  return;
16126
16168
  }
16127
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
16169
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
16128
16170
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16129
16171
  throw new Error(
16130
16172
  "The submission belongs to a different API origin. Select its original host before recovery."
16131
16173
  );
16132
16174
  }
16133
16175
  const result = await client.startPlayRun(saved.request);
16134
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
16176
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
16135
16177
  { ...result },
16136
16178
  {
16137
16179
  json: options.json,
@@ -16167,7 +16209,7 @@ Examples:
16167
16209
  ).action(async (target, options) => {
16168
16210
  process.exitCode = await handlePlayCheck([
16169
16211
  target,
16170
- ..._chunkEGTUOYYGjs.jsonFieldArgs.call(void 0, options.json),
16212
+ ..._chunkKWGXHPHLjs.jsonFieldArgs.call(void 0, options.json),
16171
16213
  ...options.full ? ["--full"] : []
16172
16214
  ]);
16173
16215
  });
@@ -16214,10 +16256,10 @@ Notes:
16214
16256
  with a changed input is refused with a 409 conflict. Use one stable key per
16215
16257
  exact intent. Without a key, each invocation starts a new run.
16216
16258
  --max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
16217
- resident-work ceiling. Default: ${_chunkTVINIDHBjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkTVINIDHBjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16259
+ resident-work ceiling. Default: ${_chunkOM732MGVjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkOM732MGVjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16218
16260
  Provider pacing and sandbox memory limits still apply.
16219
16261
  --max-concurrent-rows sets the run-wide default and ceiling for live map row
16220
- resolvers. Accepted range: 1-${_chunkTVINIDHBjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16262
+ resolvers. Accepted range: 1-${_chunkOM732MGVjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16221
16263
  may lower it when source-row size exceeds the active-row memory budget.
16222
16264
  --max-credits replaces the play's billing.maxCreditsPerRun for this run.
16223
16265
  Tool calls that would exceed it are denied.
@@ -16342,10 +16384,10 @@ Examples:
16342
16384
  ).hideHelp()
16343
16385
  ).option(
16344
16386
  "--max-concurrent-external-calls <count>",
16345
- `Concurrent provider-tool and deepline.fetch executions (${_chunkTVINIDHBjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkTVINIDHBjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16387
+ `Concurrent provider-tool and deepline.fetch executions (${_chunkOM732MGVjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkOM732MGVjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16346
16388
  ).option(
16347
16389
  "--max-concurrent-rows <count>",
16348
- `Run-wide dataset map row resolver ceiling (max ${_chunkTVINIDHBjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16390
+ `Run-wide dataset map row resolver ceiling (max ${_chunkOM732MGVjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16349
16391
  ).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
16350
16392
  "--debug-map-latency",
16351
16393
  "Internal diagnostics: emit one aggregate latency profile per dataset map"
@@ -16440,14 +16482,14 @@ JSON field selection:
16440
16482
  passthroughArgs.shift();
16441
16483
  }
16442
16484
  const exitCode = await handlePlayRun(
16443
- _chunkTVINIDHBjs.resolvePlayRunCliOptions.call(void 0,
16485
+ _chunkOM732MGVjs.resolvePlayRunCliOptions.call(void 0,
16444
16486
  _nullishCoalesce(effectiveTarget, () => ( void 0)),
16445
16487
  options,
16446
16488
  passthroughArgs,
16447
- _chunkDZS4JC7Ijs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16489
+ _chunk7PXP2FQKjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16448
16490
  )
16449
16491
  );
16450
- _chunkDZS4JC7Ijs.recordCliTrace.call(void 0, {
16492
+ _chunk7PXP2FQKjs.recordCliTrace.call(void 0, {
16451
16493
  phase: "cli.play_command_exit",
16452
16494
  exitCode
16453
16495
  });
@@ -16496,9 +16538,9 @@ Examples:
16496
16538
  const limit = Number(options.historyLimit);
16497
16539
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16498
16540
  throw new Error("--history-limit must be an integer from 1 to 30.");
16499
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
16541
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
16500
16542
  if (options.binding) {
16501
- _chunkEGTUOYYGjs.printCompactJson.call(void 0,
16543
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0,
16502
16544
  await client.getPlayTriggerHistory(options.binding, { limit })
16503
16545
  );
16504
16546
  return;
@@ -16506,7 +16548,7 @@ Examples:
16506
16548
  const result = await client.listPlayTriggerInventory({
16507
16549
  cursor: options.cursor
16508
16550
  });
16509
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, {
16551
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, {
16510
16552
  ...result,
16511
16553
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16512
16554
  });
@@ -16565,7 +16607,7 @@ Examples:
16565
16607
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16566
16608
  throw new Error("--group-by must be kind or trigger_source.");
16567
16609
  }
16568
- const result = await new (0, _chunkMQX363YFjs.DeeplineClient)().getPlaysActivity({
16610
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().getPlaysActivity({
16569
16611
  timeZone: options.timeZone,
16570
16612
  days,
16571
16613
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16579,7 +16621,7 @@ Examples:
16579
16621
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16580
16622
  );
16581
16623
  }
16582
- _chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
16624
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
16583
16625
  { ...result },
16584
16626
  {
16585
16627
  json: Boolean(options.json),
@@ -16608,7 +16650,7 @@ Examples:
16608
16650
  false
16609
16651
  );
16610
16652
  });
16611
- _chunkIX45S5VCjs.registerDeprecatedSearchCommand.call(void 0,
16653
+ _chunkK3IPGMGPjs.registerDeprecatedSearchCommand.call(void 0,
16612
16654
  play,
16613
16655
  (options) => options.all ? ["plays"] : ["prebuilts"]
16614
16656
  );
@@ -16649,9 +16691,9 @@ Examples:
16649
16691
  "--json [fields]",
16650
16692
  "JSON output; optionally select comma-separated dotted paths"
16651
16693
  );
16652
- _chunkV7SCRUFQjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16694
+ _chunk6LHX33VNjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16653
16695
  async (target, options) => {
16654
- const ownView = () => handlePlayDescribe(_chunkEGTUOYYGjs.describeArgs.call(void 0, target, options));
16696
+ const ownView = () => handlePlayDescribe(_chunkKWGXHPHLjs.describeArgs.call(void 0, target, options));
16655
16697
  const [flagText] = [options.json].filter(
16656
16698
  (value) => typeof value === "string"
16657
16699
  );
@@ -16662,7 +16704,7 @@ Examples:
16662
16704
  process.exitCode = await ownView();
16663
16705
  return;
16664
16706
  }
16665
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-IVTSD7ST.js")));
16707
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-5BFNHT5V.js")));
16666
16708
  process.exitCode = await describeAnything(
16667
16709
  name,
16668
16710
  {
@@ -16706,16 +16748,21 @@ Notes:
16706
16748
 
16707
16749
  Examples:
16708
16750
  deepline plays save ./company-research.play.ts
16751
+ deepline plays save ./company-research.play.ts --watch-play company-research
16709
16752
  deepline plays save ./company-research.play.ts --dry-run
16710
16753
  deepline plays publish ./company-research.play.ts
16711
16754
  `
16712
16755
  ).option("--expected-artifact <hash>", "Require the checked artifact hash").option(
16756
+ "--watch-play <reference>",
16757
+ "Show rejected saves on your open working canvas"
16758
+ ).option(
16713
16759
  "--dry-run",
16714
16760
  "Bundle and show the planned draft save without mutation"
16715
16761
  ).option("--json", "Emit JSON output").action(async (file, options) => {
16716
16762
  process.exitCode = await handlePlaySave([
16717
16763
  file,
16718
16764
  ...options.expectedArtifact ? ["--expected-artifact", options.expectedArtifact] : [],
16765
+ ...options.watchPlay ? ["--watch-play", options.watchPlay] : [],
16719
16766
  ...options.dryRun ? ["--dry-run"] : [],
16720
16767
  ...options.json ? ["--json"] : []
16721
16768
  ]);
@@ -16780,7 +16827,7 @@ Examples:
16780
16827
  deepline plays deployments <deployment-id>
16781
16828
  `
16782
16829
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16783
- async (id, options) => id ? _chunkNDFNBJGLjs.handleDeploymentGet.call(void 0, id, options) : _chunkNDFNBJGLjs.handleDeploymentsList.call(void 0, options)
16830
+ async (id, options) => id ? _chunk4NLRWKZBjs.handleDeploymentGet.call(void 0, id, options) : _chunk4NLRWKZBjs.handleDeploymentsList.call(void 0, options)
16784
16831
  );
16785
16832
  addPublishHelp(
16786
16833
  play.command("publish <target>").description(
@@ -16915,14 +16962,14 @@ Examples:
16915
16962
  const limit = Number(options.limit);
16916
16963
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
16917
16964
  throw new Error("--limit must be an integer from 1 to 1000.");
16918
- const result = await new (0, _chunkMQX363YFjs.DeeplineClient)().runs.rowHistory({
16965
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().runs.rowHistory({
16919
16966
  playName: options.play,
16920
16967
  runId,
16921
16968
  tableNamespace: options.dataset,
16922
16969
  limit,
16923
16970
  cursor: options.cursor
16924
16971
  });
16925
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, {
16972
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, {
16926
16973
  ...result,
16927
16974
  ...result.nextCursor ? {
16928
16975
  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`
@@ -17000,7 +17047,7 @@ Examples:
17000
17047
  new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
17001
17048
  ).action(async (runId, options) => {
17002
17049
  if (TOOL_EXECUTION_ID.test(runId)) {
17003
- const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-VMMERMLO.js")));
17050
+ const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-URNVXSTZ.js")));
17004
17051
  process.exitCode = await getToolExecutionReceipt(runId, {
17005
17052
  receiptJson: options.json !== void 0
17006
17053
  });
@@ -17008,7 +17055,7 @@ Examples:
17008
17055
  }
17009
17056
  process.exitCode = await handleRunGet([
17010
17057
  runId,
17011
- ..._chunkEGTUOYYGjs.jsonFieldArgs.call(void 0, options.json),
17058
+ ..._chunkKWGXHPHLjs.jsonFieldArgs.call(void 0, options.json),
17012
17059
  ...options.web ? ["--web"] : [],
17013
17060
  ...options.webUrl ? ["--web-url"] : [],
17014
17061
  ...options.full ? ["--full"] : [],
@@ -17328,7 +17375,7 @@ Examples:
17328
17375
  ...options.allowEmpty ? ["--allow-empty"] : [],
17329
17376
  ...options.wait ? ["--wait"] : [],
17330
17377
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17331
- ..._chunkEGTUOYYGjs.jsonFieldArgs.call(void 0, options.json)
17378
+ ..._chunkKWGXHPHLjs.jsonFieldArgs.call(void 0, options.json)
17332
17379
  ]);
17333
17380
  });
17334
17381
  const share = play.command("share").description(
@@ -17494,10 +17541,10 @@ async function handlePlayShareStatus(args) {
17494
17541
  return 2;
17495
17542
  }
17496
17543
  const name = parseReferencedPlayTarget(target).playName;
17497
- const status = await new (0, _chunkMQX363YFjs.DeeplineClient)().getSharePage(name);
17544
+ const status = await new (0, _chunk243O3FH5js.DeeplineClient)().getSharePage(name);
17498
17545
  const outputStatus = shareStatusForOutput(status);
17499
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
17500
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, outputStatus);
17546
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
17547
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, outputStatus);
17501
17548
  return 0;
17502
17549
  }
17503
17550
  if (!outputStatus.share) {
@@ -17536,7 +17583,7 @@ async function handlePlaySharePublish(args) {
17536
17583
  return 2;
17537
17584
  }
17538
17585
  const name = parseReferencedPlayTarget(target).playName;
17539
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
17586
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
17540
17587
  let revisionId = shareFlagValue(args, "--revision-id");
17541
17588
  let resolvedVersion;
17542
17589
  if (!revisionId) {
@@ -17567,8 +17614,8 @@ async function handlePlaySharePublish(args) {
17567
17614
  );
17568
17615
  if (!hasCompleted) {
17569
17616
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17570
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
17571
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, {
17617
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
17618
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, {
17572
17619
  ok: false,
17573
17620
  code: "NO_SUCCESSFUL_RUN",
17574
17621
  message,
@@ -17592,8 +17639,8 @@ async function handlePlaySharePublish(args) {
17592
17639
  };
17593
17640
  if (args.includes("--dry-run")) {
17594
17641
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17595
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
17596
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, plan);
17642
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
17643
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, plan);
17597
17644
  } else {
17598
17645
  console.log(
17599
17646
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17603,8 +17650,8 @@ async function handlePlaySharePublish(args) {
17603
17650
  }
17604
17651
  const status = await client.publishSharePage(name, request);
17605
17652
  const outputStatus = shareStatusForOutput(status);
17606
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
17607
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, outputStatus);
17653
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
17654
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, outputStatus);
17608
17655
  return 0;
17609
17656
  }
17610
17657
  const urls = shareUrlFields(outputStatus);
@@ -17635,9 +17682,9 @@ async function handlePlayShareUpdate(args) {
17635
17682
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17636
17683
  ...seoIndexing ? { seoIndexing } : {}
17637
17684
  };
17638
- const status = await new (0, _chunkMQX363YFjs.DeeplineClient)().updateSharePage(name, request);
17639
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
17640
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, status);
17685
+ const status = await new (0, _chunk243O3FH5js.DeeplineClient)().updateSharePage(name, request);
17686
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
17687
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, status);
17641
17688
  return 0;
17642
17689
  }
17643
17690
  console.log(`Updated ${name} share settings.`);
@@ -17652,7 +17699,7 @@ async function handlePlayShareRegenerate(args) {
17652
17699
  return 2;
17653
17700
  }
17654
17701
  const name = parseReferencedPlayTarget(target).playName;
17655
- const client = new (0, _chunkMQX363YFjs.DeeplineClient)();
17702
+ const client = new (0, _chunk243O3FH5js.DeeplineClient)();
17656
17703
  let revisionId = shareFlagValue(args, "--revision-id");
17657
17704
  const versionFlag = shareFlagValue(args, "--version");
17658
17705
  if (!revisionId && versionFlag) {
@@ -17669,8 +17716,8 @@ async function handlePlayShareRegenerate(args) {
17669
17716
  revisionId ? { revisionId } : {}
17670
17717
  );
17671
17718
  const outputStatus = shareStatusForOutput(status);
17672
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
17673
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, outputStatus);
17719
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
17720
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, outputStatus);
17674
17721
  return 0;
17675
17722
  }
17676
17723
  const urls = shareUrlFields(outputStatus);
@@ -17695,9 +17742,9 @@ async function handlePlayShareUnpublish(args) {
17695
17742
  return 2;
17696
17743
  }
17697
17744
  const name = parseReferencedPlayTarget(target).playName;
17698
- const status = await new (0, _chunkMQX363YFjs.DeeplineClient)().unpublishSharePage(name);
17699
- if (_chunkEGTUOYYGjs.argsWantJson.call(void 0, args)) {
17700
- _chunkEGTUOYYGjs.printCompactJson.call(void 0, status);
17745
+ const status = await new (0, _chunk243O3FH5js.DeeplineClient)().unpublishSharePage(name);
17746
+ if (_chunkKWGXHPHLjs.argsWantJson.call(void 0, args)) {
17747
+ _chunkKWGXHPHLjs.printCompactJson.call(void 0, status);
17701
17748
  return 0;
17702
17749
  }
17703
17750
  console.log(`Unpublished ${name}; the public page has been removed.`);
@@ -17775,4 +17822,4 @@ async function handlePlayShareUnpublish(args) {
17775
17822
 
17776
17823
 
17777
17824
 
17778
- exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkTVINIDHBjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkTVINIDHBjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.takeFromRunRerunArgs = takeFromRunRerunArgs; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
17825
+ exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkOM732MGVjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkOM732MGVjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.takeFromRunRerunArgs = takeFromRunRerunArgs; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;