deepline 0.3.495 → 0.3.497

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 (156) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +91 -1
  2. package/dist/bundling-sources/sdk/src/plays/run-request.ts +5 -19
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/shared_libs/monitors/billing/credit-recovery.ts +79 -0
  5. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  6. package/dist/bundling-sources/shared_libs/observability/scheduled-work-control.ts +19 -3
  7. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +7 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-gateway-drain.ts +110 -66
  9. package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +57 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +15 -0
  11. package/dist/bundling-sources/shared_libs/plays/docflow.ts +28 -12
  12. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +26 -6
  13. package/dist/bundling-sources/shared_libs/product-notifications/slack-payload.ts +4 -1
  14. package/dist/cli/auth-553ZBCPJ.js +43 -0
  15. package/dist/cli/{auth-B2YUNFQ6.mjs → auth-OAKBFUQD.mjs} +5 -5
  16. package/dist/cli/{billing-5TR7ZBZM.mjs → billing-AM6D2KN5.mjs} +7 -7
  17. package/dist/cli/{billing-2Q7TMNRE.js → billing-FUB6HQZ5.js} +80 -80
  18. package/dist/cli/{chunk-RBBOUPME.mjs → chunk-3DHPKENA.mjs} +1 -1
  19. package/dist/cli/{chunk-XR6RCBB3.mjs → chunk-3IVAGF4P.mjs} +10 -10
  20. package/dist/cli/{chunk-TUAEM76Y.js → chunk-3KG2FUU4.js} +108 -65
  21. package/dist/cli/{chunk-SC5GHGFD.mjs → chunk-4MR7LZXF.mjs} +2 -2
  22. package/dist/cli/{chunk-DFK5IJMT.mjs → chunk-5GXYXU45.mjs} +1 -1
  23. package/dist/cli/{chunk-H5L2Q2GI.mjs → chunk-5IBHSACU.mjs} +2 -2
  24. package/dist/cli/{chunk-CTFR52JC.js → chunk-6TA2H7CY.js} +26 -26
  25. package/dist/cli/{chunk-ZBQBH4IT.js → chunk-77IAUCTB.js} +3 -3
  26. package/dist/cli/{chunk-XAOLMEN5.js → chunk-7FFNSYMJ.js} +14 -14
  27. package/dist/cli/{chunk-XKYQR3QK.js → chunk-7RBIOOCQ.js} +3 -3
  28. package/dist/cli/{chunk-LQKZG5RN.js → chunk-A66Y2LCW.js} +53 -53
  29. package/dist/cli/{chunk-Z33PZUWG.js → chunk-B4Q3EBQX.js} +5 -5
  30. package/dist/cli/{chunk-T4PGA6UD.js → chunk-BBHGJE73.js} +1 -1
  31. package/dist/cli/{chunk-UDFO2MWA.js → chunk-BRUDMG56.js} +41 -41
  32. package/dist/cli/{chunk-DVQHG6AM.mjs → chunk-CS2AEAD6.mjs} +63 -11
  33. package/dist/cli/{chunk-Y2DUGUUU.js → chunk-DKSTMQ3F.js} +21 -21
  34. package/dist/cli/{chunk-PKV5CD3W.js → chunk-EQR5O2D2.js} +87 -35
  35. package/dist/cli/{chunk-L5ZXEYTQ.mjs → chunk-EWQ3KY5U.mjs} +6 -6
  36. package/dist/cli/{chunk-JRBQC6L4.mjs → chunk-FISH2MI2.mjs} +2 -2
  37. package/dist/cli/{chunk-PEIOQKTA.js → chunk-FVS5MJQ5.js} +3 -3
  38. package/dist/cli/{chunk-TSKVPEVZ.mjs → chunk-HRODQDTB.mjs} +46 -3
  39. package/dist/cli/{chunk-7YNZRALI.mjs → chunk-IURXJPGH.mjs} +3 -3
  40. package/dist/cli/{chunk-TCNILHMS.js → chunk-JDFYCHNV.js} +5 -5
  41. package/dist/cli/{chunk-TMO7W4P2.mjs → chunk-KFJV3BZX.mjs} +1 -1
  42. package/dist/cli/{chunk-S2QARJLX.mjs → chunk-KUX3HYJI.mjs} +1 -1
  43. package/dist/cli/{chunk-KG2FUYWB.mjs → chunk-LPCK5KK5.mjs} +3 -3
  44. package/dist/cli/{chunk-TFMV3NKL.mjs → chunk-M2WIEW2E.mjs} +1 -1
  45. package/dist/cli/{chunk-I66IWCY4.mjs → chunk-MBOAXLWC.mjs} +4 -4
  46. package/dist/cli/{chunk-CAWE3MS2.js → chunk-OEI6HXMK.js} +16 -16
  47. package/dist/cli/{chunk-UKGOZOTT.js → chunk-OWDK2PVH.js} +8 -8
  48. package/dist/cli/{chunk-7LLUJQM5.mjs → chunk-SJID5WMV.mjs} +4 -4
  49. package/dist/cli/{chunk-WVL5HGUG.js → chunk-SJM7MKOE.js} +2 -2
  50. package/dist/cli/{chunk-PHO53W67.js → chunk-SLS3HUVC.js} +4 -4
  51. package/dist/cli/{chunk-MG3WST3Z.mjs → chunk-TGAYN34A.mjs} +2 -2
  52. package/dist/cli/{chunk-SR6VS5PG.mjs → chunk-THD6KA67.mjs} +4 -4
  53. package/dist/cli/{chunk-OFBDI5S3.mjs → chunk-UETGYJYH.mjs} +2 -2
  54. package/dist/cli/{chunk-B3ROCZ5Y.js → chunk-UV7AT2D4.js} +2 -2
  55. package/dist/cli/{chunk-XX6PRYFI.js → chunk-V2EVSEUD.js} +16 -16
  56. package/dist/cli/{chunk-ZB6UYG5I.mjs → chunk-VMOVB2FN.mjs} +5 -5
  57. package/dist/cli/{chunk-UMFZQREB.js → chunk-WKCMARFR.js} +94 -94
  58. package/dist/cli/{chunk-ACVT5LPN.js → chunk-WXW7YJDO.js} +53 -53
  59. package/dist/cli/{chunk-FLJSK32S.mjs → chunk-WZ3A35ZD.mjs} +1 -1
  60. package/dist/cli/{chunk-MAMEKGLI.js → chunk-XLYJ7MJX.js} +7 -7
  61. package/dist/cli/{chunk-CKLJAQIV.mjs → chunk-XNLXHU6L.mjs} +5 -5
  62. package/dist/cli/{chunk-FC4JGTFC.mjs → chunk-XX7WLKOQ.mjs} +1 -1
  63. package/dist/cli/{chunk-HJ5LYO6U.mjs → chunk-YQ66NC4J.mjs} +2 -2
  64. package/dist/cli/{chunk-7OGADAAA.js → chunk-YUEFDOME.js} +6 -6
  65. package/dist/cli/{chunk-5OKQPDYJ.js → chunk-ZLYKN4AJ.js} +7 -7
  66. package/dist/cli/{csv-DZQ77T67.js → csv-PMBYKVUU.js} +13 -13
  67. package/dist/cli/{csv-5UQXKWLE.mjs → csv-U2GOFP3M.mjs} +4 -4
  68. package/dist/cli/{db-F62BVFTP.mjs → db-DKFOTZGZ.mjs} +7 -7
  69. package/dist/cli/{db-JIPLUHA6.js → db-GREVTMIR.js} +28 -28
  70. package/dist/cli/describe-BL5NNHV5.js +50 -0
  71. package/dist/cli/{describe-J7KYHONJ.mjs → describe-SWXA6L62.mjs} +18 -18
  72. package/dist/cli/describe-core.d.mts +3 -3
  73. package/dist/cli/describe-core.d.ts +3 -3
  74. package/dist/cli/{executions-XQ4FNJ27.js → executions-2RRAESQK.js} +9 -9
  75. package/dist/cli/{executions-XB4F2KZD.mjs → executions-EBRFC5JR.mjs} +7 -7
  76. package/dist/cli/{feedback-5CR4CJ6W.mjs → feedback-4A57QLX2.mjs} +4 -4
  77. package/dist/cli/{feedback-Q6JRCMDV.js → feedback-N6ML7IRH.js} +8 -8
  78. package/dist/cli/{git-P5WBBUT3.mjs → git-6D2WQPOS.mjs} +5 -5
  79. package/dist/cli/git-7TSX5V57.js +25 -0
  80. package/dist/cli/index.js +137 -137
  81. package/dist/cli/index.mjs +40 -40
  82. package/dist/cli/{legacy-noops-H5JJVYZ2.mjs → legacy-noops-CL5QWXGH.mjs} +5 -5
  83. package/dist/cli/{legacy-noops-EJAB6III.js → legacy-noops-DXRJARNC.js} +8 -8
  84. package/dist/cli/{monitors-QPFAT2J5.mjs → monitors-SGMEGGJO.mjs} +190 -8
  85. package/dist/cli/{monitors-7DOGM7RO.js → monitors-XWKDVHYL.js} +318 -136
  86. package/dist/cli/{org-BH7ATDIJ.mjs → org-55BI5RQF.mjs} +7 -7
  87. package/dist/cli/{org-QOBB4IN3.js → org-QKQ57PDN.js} +73 -73
  88. package/dist/cli/{pages-PLTE54KM.js → pages-FOIR5UH4.js} +19 -19
  89. package/dist/cli/{pages-PJH2TXZQ.mjs → pages-LM4QACOM.mjs} +7 -7
  90. package/dist/cli/{play-ULTJ3LPA.mjs → play-7VA26O6E.mjs} +36 -61
  91. package/dist/cli/{play-XZAPTF3T.js → play-S44FXGD7.js} +634 -659
  92. package/dist/cli/{providers-6NUTRVE4.mjs → providers-QAVIR5E2.mjs} +7 -7
  93. package/dist/cli/{providers-SKXLW7M3.js → providers-RDSHID7C.js} +10 -10
  94. package/dist/cli/{quickstart-JFCIIGII.js → quickstart-EREQPM3G.js} +6 -6
  95. package/dist/cli/{quickstart-5HMJMXVT.mjs → quickstart-IL4HQYE4.mjs} +4 -4
  96. package/dist/cli/{run-2BJZPY4K.mjs → run-4XZNJR7N.mjs} +23 -23
  97. package/dist/cli/{run-BRAXLCBC.js → run-TBUUV5EG.js} +37 -37
  98. package/dist/cli/search-GCANFVVZ.js +32 -0
  99. package/dist/cli/{search-IDXSB2CV.mjs → search-SYT5UT5G.mjs} +8 -8
  100. package/dist/cli/{search-output-CJ4TNYF7.js → search-output-5F3EEQ34.js} +6 -6
  101. package/dist/cli/{search-output-AATMH4QG.mjs → search-output-Y3IKZ3TX.mjs} +4 -4
  102. package/dist/cli/{secrets-UQNEJSNG.mjs → secrets-AKAU2N3K.mjs} +7 -7
  103. package/dist/cli/{secrets-6SMKTBFT.js → secrets-PZWJ2ES5.js} +16 -16
  104. package/dist/cli/{sessions-W3KU4Q4X.js → sessions-UMHA7K23.js} +6 -6
  105. package/dist/cli/{sessions-MHTUVPSR.mjs → sessions-Z5C26IS7.mjs} +5 -5
  106. package/dist/cli/{settings-KNYJ6GXK.mjs → settings-S5BM3SVI.mjs} +12 -12
  107. package/dist/cli/{settings-BA52NEU5.js → settings-WGJYWTJZ.js} +79 -79
  108. package/dist/cli/{setup-D5HCJAVU.js → setup-6K6ERKOH.js} +49 -49
  109. package/dist/cli/{setup-TLTZ2YCO.mjs → setup-E4HRXP2X.mjs} +9 -9
  110. package/dist/cli/{skills-DPLM4EGS.mjs → skills-HIZA7YAN.mjs} +7 -7
  111. package/dist/cli/skills-J3GQHHHL.js +36 -0
  112. package/dist/cli/{tools-I4ZOJV23.mjs → tools-FS5S6BT7.mjs} +17 -17
  113. package/dist/cli/tools-RZYKMOUX.js +57 -0
  114. package/dist/cli/{update-VIFS7IK5.mjs → update-4CJPTG3L.mjs} +9 -9
  115. package/dist/cli/update-CATZW7GA.js +34 -0
  116. package/dist/cli/{workflow-7REPOHXM.js → workflow-TYSZ5JWS.js} +18 -18
  117. package/dist/cli/{workflow-TAQBNDV7.mjs → workflow-UMSXOIOS.mjs} +8 -8
  118. package/dist/{client-CKVH6tmp.d.ts → client-Cj3UqrCZ.d.ts} +1 -1
  119. package/dist/{client-BDT_LwuM.d.mts → client-DSCTVVRj.d.mts} +1 -1
  120. package/dist/{client-core-CEixe_C0.d.mts → client-core-B-8DTIN1.d.mts} +44 -3
  121. package/dist/{client-core-RS-d-vtY.d.ts → client-core-dI4KTuWS.d.ts} +44 -3
  122. package/dist/{compiler-manifest-CPEF48NM.d.mts → compiler-manifest-DlXDyndN.d.mts} +2 -0
  123. package/dist/{compiler-manifest-CPEF48NM.d.ts → compiler-manifest-DlXDyndN.d.ts} +2 -0
  124. package/dist/{errors-BWbPzqwo.d.mts → errors-BtriA2ld.d.mts} +1 -1
  125. package/dist/{errors-B-PJXveg.d.ts → errors-DmcLykM7.d.ts} +1 -1
  126. package/dist/{index-CvVxPpE8.d.ts → index--Jw-slHY.d.ts} +1 -1
  127. package/dist/{index-BJ8AA1F9.d.mts → index-DI0sR_fX.d.mts} +1 -1
  128. package/dist/index.d.mts +7 -7
  129. package/dist/index.d.ts +7 -7
  130. package/dist/index.js +10 -10
  131. package/dist/index.mjs +7 -7
  132. package/dist/install-integrity.json +110 -110
  133. package/dist/plays/bundle-play-file.d.mts +3 -3
  134. package/dist/plays/bundle-play-file.d.ts +3 -3
  135. package/dist/plays/play-description.d.mts +2 -2
  136. package/dist/plays/play-description.d.ts +2 -2
  137. package/dist/plays/run-request.d.mts +2 -2
  138. package/dist/plays/run-request.d.ts +2 -2
  139. package/dist/plays/run-request.js +2 -2
  140. package/dist/plays/run-request.mjs +1 -1
  141. package/dist/release.d.mts +1 -1
  142. package/dist/release.d.ts +1 -1
  143. package/dist/release.js +2 -2
  144. package/dist/release.mjs +1 -1
  145. package/dist/server.d.mts +4 -4
  146. package/dist/server.d.ts +4 -4
  147. package/dist/server.js +6 -6
  148. package/dist/server.mjs +4 -4
  149. package/package.json +1 -1
  150. package/dist/cli/auth-GAOWVOK4.js +0 -43
  151. package/dist/cli/describe-BA4RAZ7J.js +0 -50
  152. package/dist/cli/git-EAO432S2.js +0 -25
  153. package/dist/cli/search-4MU2G6HV.js +0 -32
  154. package/dist/cli/skills-SVUWVXCE.js +0 -36
  155. package/dist/cli/tools-RJSP76HX.js +0 -57
  156. package/dist/cli/update-YT6JPIC6.js +0 -34
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkXAOLMEN5js = require('./chunk-XAOLMEN5.js');
8
+ var _chunk7FFNSYMJjs = require('./chunk-7FFNSYMJ.js');
9
9
 
10
10
 
11
11
 
@@ -17,15 +17,15 @@ var _chunkXAOLMEN5js = require('./chunk-XAOLMEN5.js');
17
17
 
18
18
 
19
19
 
20
- var _chunkPEIOQKTAjs = require('./chunk-PEIOQKTA.js');
20
+ var _chunkFVS5MJQ5js = require('./chunk-FVS5MJQ5.js');
21
21
 
22
22
 
23
- var _chunk5OKQPDYJjs = require('./chunk-5OKQPDYJ.js');
23
+ var _chunkZLYKN4AJjs = require('./chunk-ZLYKN4AJ.js');
24
24
  require('./chunk-D3BCSAN7.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkCTFR52JCjs = require('./chunk-CTFR52JC.js');
28
+ var _chunk6TA2H7CYjs = require('./chunk-6TA2H7CY.js');
29
29
 
30
30
 
31
31
 
@@ -58,10 +58,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
58
58
 
59
59
 
60
60
 
61
- var _chunkTCNILHMSjs = require('./chunk-TCNILHMS.js');
61
+ var _chunkJDFYCHNVjs = require('./chunk-JDFYCHNV.js');
62
62
 
63
63
 
64
- var _chunkZ33PZUWGjs = require('./chunk-Z33PZUWG.js');
64
+ var _chunkB4Q3EBQXjs = require('./chunk-B4Q3EBQX.js');
65
65
 
66
66
 
67
67
 
@@ -74,7 +74,7 @@ var _chunkZ33PZUWGjs = require('./chunk-Z33PZUWG.js');
74
74
 
75
75
 
76
76
 
77
- var _chunkTUAEM76Yjs = require('./chunk-TUAEM76Y.js');
77
+ var _chunk3KG2FUU4js = require('./chunk-3KG2FUU4.js');
78
78
  require('./chunk-E4CABWXL.js');
79
79
 
80
80
 
@@ -87,7 +87,8 @@ require('./chunk-E4CABWXL.js');
87
87
 
88
88
 
89
89
 
90
- var _chunkPKV5CD3Wjs = require('./chunk-PKV5CD3W.js');
90
+
91
+ var _chunkEQR5O2D2js = require('./chunk-EQR5O2D2.js');
91
92
 
92
93
 
93
94
 
@@ -96,18 +97,18 @@ require('./chunk-XDVT3GOM.js');
96
97
 
97
98
 
98
99
 
99
- var _chunk7OGADAAAjs = require('./chunk-7OGADAAA.js');
100
+ var _chunkYUEFDOMEjs = require('./chunk-YUEFDOME.js');
100
101
 
101
102
 
102
103
 
103
104
 
104
105
 
105
- var _chunkB3ROCZ5Yjs = require('./chunk-B3ROCZ5Y.js');
106
- require('./chunk-LQKZG5RN.js');
106
+ var _chunkUV7AT2D4js = require('./chunk-UV7AT2D4.js');
107
+ require('./chunk-A66Y2LCW.js');
107
108
 
108
109
 
109
110
 
110
- var _chunkXKYQR3QKjs = require('./chunk-XKYQR3QK.js');
111
+ var _chunk7RBIOOCQjs = require('./chunk-7RBIOOCQ.js');
111
112
 
112
113
 
113
114
 
@@ -121,17 +122,17 @@ var _chunkXKYQR3QKjs = require('./chunk-XKYQR3QK.js');
121
122
 
122
123
 
123
124
 
124
- var _chunkMAMEKGLIjs = require('./chunk-MAMEKGLI.js');
125
- require('./chunk-ZBQBH4IT.js');
125
+ var _chunkXLYJ7MJXjs = require('./chunk-XLYJ7MJX.js');
126
+ require('./chunk-77IAUCTB.js');
126
127
 
127
128
 
128
- var _chunkPHO53W67js = require('./chunk-PHO53W67.js');
129
+ var _chunkSLS3HUVCjs = require('./chunk-SLS3HUVC.js');
129
130
  require('./chunk-ALJJRZNJ.js');
130
131
  require('./chunk-XNYIZMNQ.js');
131
132
 
132
133
 
133
134
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
134
- require('./chunk-T4PGA6UD.js');
135
+ require('./chunk-BBHGJE73.js');
135
136
  require('./chunk-OG64RBAC.js');
136
137
 
137
138
 
@@ -2113,7 +2114,7 @@ function resolveField(key, command) {
2113
2114
  function printSettings(result, json, name) {
2114
2115
  result = { ...result, settings: parsePlaySettings(result.settings) };
2115
2116
  const selected = fields.filter(([key]) => !name || key === name);
2116
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
2117
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
2117
2118
  {
2118
2119
  ...result,
2119
2120
  settings: Object.fromEntries(
@@ -2157,7 +2158,7 @@ function registerPlaySettingsCommands(plays) {
2157
2158
  valueSyntax: field.cli.valueSyntax,
2158
2159
  examples: field.cli.examples
2159
2160
  }));
2160
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
2161
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
2161
2162
  {
2162
2163
  fields: descriptions,
2163
2164
  render: {
@@ -2182,7 +2183,7 @@ function registerPlaySettingsCommands(plays) {
2182
2183
  async (options, command) => {
2183
2184
  if (options.name !== void 0) resolveField(options.name, command);
2184
2185
  printSettings(
2185
- await new (0, _chunkZ33PZUWGjs.DeeplineClient)().getPlaySettings(options.play),
2186
+ await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().getPlaySettings(options.play),
2186
2187
  options.json,
2187
2188
  options.name
2188
2189
  );
@@ -2213,7 +2214,7 @@ function registerPlaySettingsCommands(plays) {
2213
2214
  );
2214
2215
  }
2215
2216
  if (options.dryRun) {
2216
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
2217
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
2217
2218
  {
2218
2219
  dryRun: true,
2219
2220
  play,
@@ -2234,7 +2235,7 @@ function registerPlaySettingsCommands(plays) {
2234
2235
  return;
2235
2236
  }
2236
2237
  printSettings(
2237
- await new (0, _chunkZ33PZUWGjs.DeeplineClient)().updatePlaySettings(play, patch),
2238
+ await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().updatePlaySettings(play, patch),
2238
2239
  options.json
2239
2240
  );
2240
2241
  };
@@ -2260,13 +2261,13 @@ function registerPlaySettingsCommands(plays) {
2260
2261
  "--root must be person or team; --limit must be 1\u2013100.",
2261
2262
  { exitCode: 2 }
2262
2263
  );
2263
- const page = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().listPlaySettingsPaths({
2264
+ const page = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().listPlaySettingsPaths({
2264
2265
  root: options.root,
2265
2266
  limit,
2266
2267
  cursor: options.cursor
2267
2268
  });
2268
2269
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2269
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
2270
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
2270
2271
  {
2271
2272
  ...page,
2272
2273
  nextCommand,
@@ -2317,7 +2318,7 @@ function registerPlaySettingsCommands(plays) {
2317
2318
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
2318
2319
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
2319
2320
  };
2320
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
2321
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
2321
2322
  const paths = [];
2322
2323
  let cursor;
2323
2324
  do {
@@ -2379,7 +2380,7 @@ function registerPlaySettingsCommands(plays) {
2379
2380
  moved.push(move.playName);
2380
2381
  }
2381
2382
  }
2382
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
2383
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
2383
2384
  {
2384
2385
  dryRun: Boolean(options.dryRun),
2385
2386
  from: options.from,
@@ -2507,7 +2508,7 @@ function triggerLines(view) {
2507
2508
  return lines;
2508
2509
  }
2509
2510
  function printView(view, json) {
2510
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
2511
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
2511
2512
  {
2512
2513
  ...view,
2513
2514
  render: {
@@ -2520,7 +2521,7 @@ function printView(view, json) {
2520
2521
  );
2521
2522
  }
2522
2523
  function printResult(result, json) {
2523
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
2524
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
2524
2525
  {
2525
2526
  ...result,
2526
2527
  render: {
@@ -2550,7 +2551,7 @@ async function mutate(command, options, build) {
2550
2551
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2551
2552
  }
2552
2553
  if (options.dryRun) {
2553
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
2554
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
2554
2555
  {
2555
2556
  dryRun: true,
2556
2557
  play: options.play,
@@ -2569,7 +2570,7 @@ async function mutate(command, options, build) {
2569
2570
  return;
2570
2571
  }
2571
2572
  printResult(
2572
- await new (0, _chunkZ33PZUWGjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2573
+ await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2573
2574
  options.json
2574
2575
  );
2575
2576
  }
@@ -2602,7 +2603,7 @@ function registerPlayTriggerConfigCommands(plays) {
2602
2603
  }).addHelpText("after", help2);
2603
2604
  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) => {
2604
2605
  printView(
2605
- await new (0, _chunkZ33PZUWGjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2606
+ await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2606
2607
  options.json
2607
2608
  );
2608
2609
  });
@@ -2646,7 +2647,7 @@ function registerPlayTriggerConfigCommands(plays) {
2646
2647
  if (options.auth === void 0) {
2647
2648
  if (secrets.length || options.header || options.signaturePrefix)
2648
2649
  usage(setWebhook, "--secret/--header need --auth.");
2649
- const current = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().getPlayTriggerConfig(
2650
+ const current = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().getPlayTriggerConfig(
2650
2651
  options.play
2651
2652
  );
2652
2653
  return {
@@ -2723,7 +2724,7 @@ var KIND_DESCRIPTIONS = {
2723
2724
  "receipt.skipped": "Saved work result: skipped.",
2724
2725
  "runtime.event": "Other event."
2725
2726
  };
2726
- var RUN_LOGS_KIND_HELP = _chunkTUAEM76Yjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2727
+ var RUN_LOGS_KIND_HELP = _chunk3KG2FUU4js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2727
2728
  kind,
2728
2729
  description: KIND_DESCRIPTIONS[kind]
2729
2730
  }));
@@ -2860,9 +2861,9 @@ function configureRunQueryCommandErrors(command, resource) {
2860
2861
  const args = program.args;
2861
2862
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2862
2863
  error.exitCode = 2;
2863
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2864
- _chunkMAMEKGLIjs.printJsonError.call(void 0,
2865
- Object.assign(new (0, _chunkTUAEM76Yjs.RunEventQueryInputError)(error.message), {
2864
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2865
+ _chunkXLYJ7MJXjs.printJsonError.call(void 0,
2866
+ Object.assign(new (0, _chunk3KG2FUU4js.RunEventQueryInputError)(error.message), {
2866
2867
  exitCode: 2,
2867
2868
  retryable: false
2868
2869
  })
@@ -2906,14 +2907,14 @@ function parseQuery(args, resource) {
2906
2907
  if (VALUE_FLAGS.has(flag)) {
2907
2908
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2908
2909
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2909
- throw new (0, _chunkTUAEM76Yjs.RunEventQueryInputError)(
2910
+ throw new (0, _chunk3KG2FUU4js.RunEventQueryInputError)(
2910
2911
  `${flag} requires a value. Use ${flag} <value>.`
2911
2912
  );
2912
2913
  }
2913
2914
  if (flag === "--sum") sums.push(value);
2914
2915
  else {
2915
2916
  if (values[flag] !== void 0) {
2916
- throw new (0, _chunkTUAEM76Yjs.RunEventQueryInputError)(
2917
+ throw new (0, _chunk3KG2FUU4js.RunEventQueryInputError)(
2917
2918
  `${flag} may only be supplied once.`
2918
2919
  );
2919
2920
  }
@@ -2927,12 +2928,12 @@ function parseQuery(args, resource) {
2927
2928
  }
2928
2929
  if (arg.startsWith("-")) {
2929
2930
  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.";
2930
- throw new (0, _chunkTUAEM76Yjs.RunEventQueryInputError)(
2931
+ throw new (0, _chunk3KG2FUU4js.RunEventQueryInputError)(
2931
2932
  `Unsupported query flag ${flag}. ${correction}`
2932
2933
  );
2933
2934
  }
2934
2935
  if (runId !== void 0) {
2935
- throw new (0, _chunkTUAEM76Yjs.RunEventQueryInputError)(
2936
+ throw new (0, _chunk3KG2FUU4js.RunEventQueryInputError)(
2936
2937
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2937
2938
  );
2938
2939
  }
@@ -2940,7 +2941,7 @@ function parseQuery(args, resource) {
2940
2941
  }
2941
2942
  if (switches.has("--fields")) {
2942
2943
  if (runId !== void 0) {
2943
- throw new (0, _chunkTUAEM76Yjs.RunEventQueryInputError)(
2944
+ throw new (0, _chunk3KG2FUU4js.RunEventQueryInputError)(
2944
2945
  "--fields does not use a run ID. Omit the positional run ID."
2945
2946
  );
2946
2947
  }
@@ -2953,18 +2954,18 @@ function parseQuery(args, resource) {
2953
2954
  )
2954
2955
  ];
2955
2956
  if (incompatible.length) {
2956
- throw new (0, _chunkTUAEM76Yjs.RunEventQueryInputError)(
2957
+ throw new (0, _chunk3KG2FUU4js.RunEventQueryInputError)(
2957
2958
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2958
2959
  );
2959
2960
  }
2960
2961
  }
2961
2962
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2962
- throw new (0, _chunkTUAEM76Yjs.RunEventQueryInputError)(
2963
+ throw new (0, _chunk3KG2FUU4js.RunEventQueryInputError)(
2963
2964
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2964
2965
  );
2965
2966
  }
2966
2967
  if (sums.length && switches.has("--count")) {
2967
- throw new (0, _chunkTUAEM76Yjs.RunEventQueryInputError)(
2968
+ throw new (0, _chunk3KG2FUU4js.RunEventQueryInputError)(
2968
2969
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2969
2970
  );
2970
2971
  }
@@ -2972,7 +2973,7 @@ function parseQuery(args, resource) {
2972
2973
  if (operation === "count") {
2973
2974
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2974
2975
  if (values[flag] !== void 0 || switches.has(flag)) {
2975
- throw new (0, _chunkTUAEM76Yjs.RunEventQueryInputError)(
2976
+ throw new (0, _chunk3KG2FUU4js.RunEventQueryInputError)(
2976
2977
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2977
2978
  );
2978
2979
  }
@@ -3007,16 +3008,16 @@ function parseQuery(args, resource) {
3007
3008
  ];
3008
3009
  }
3009
3010
  }
3010
- const request = _chunkTUAEM76Yjs.normalizeRunEventOperationRequest.call(void 0, body);
3011
+ const request = _chunk3KG2FUU4js.normalizeRunEventOperationRequest.call(void 0, body);
3011
3012
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
3012
3013
  const backend = values["--runtime-backend"];
3013
3014
  if (backend && backend !== "daytona" && backend !== "modal") {
3014
- throw new (0, _chunkTUAEM76Yjs.RunEventQueryInputError)(
3015
+ throw new (0, _chunk3KG2FUU4js.RunEventQueryInputError)(
3015
3016
  "--runtime-backend must be daytona or modal."
3016
3017
  );
3017
3018
  }
3018
3019
  if (backend && !namespace) {
3019
- throw new (0, _chunkTUAEM76Yjs.RunEventQueryInputError)(
3020
+ throw new (0, _chunk3KG2FUU4js.RunEventQueryInputError)(
3020
3021
  "--runtime-backend requires --runtime-namespace."
3021
3022
  );
3022
3023
  }
@@ -3063,12 +3064,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3063
3064
  const failure = error instanceof Error ? error : new Error(String(error));
3064
3065
  const record3 = failure;
3065
3066
  const status = record3.statusCode;
3066
- const exitCode = error instanceof _chunkTUAEM76Yjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3067
+ const exitCode = error instanceof _chunk3KG2FUU4js.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3067
3068
  const diagnostic = Object.assign(failure, {
3068
3069
  exitCode,
3069
3070
  retryable: exitCode === 5
3070
3071
  });
3071
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) _chunkMAMEKGLIjs.printJsonError.call(void 0, diagnostic);
3072
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) _chunkXLYJ7MJXjs.printJsonError.call(void 0, diagnostic);
3072
3073
  else console.error(`Error: ${diagnostic.message}`);
3073
3074
  return exitCode;
3074
3075
  }
@@ -3083,7 +3084,7 @@ async function executeRunEventQuery(args, resource) {
3083
3084
  ...criteria
3084
3085
  } = request;
3085
3086
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3086
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
3087
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
3087
3088
  let result;
3088
3089
  if (request.operation === "fields") {
3089
3090
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3149,13 +3150,13 @@ async function executeRunEventQuery(args, resource) {
3149
3150
  lines.push(`Next page: ${nextPage}`);
3150
3151
  }
3151
3152
  }
3152
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
3153
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
3153
3154
  {
3154
3155
  ...result,
3155
3156
  ...nextPage ? { next: { page: nextPage } } : {},
3156
3157
  render: { sections: [{ title: `run ${resource}`, lines }] }
3157
3158
  },
3158
- { json: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3159
+ { json: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3159
3160
  ` }
3160
3161
  );
3161
3162
  return 0;
@@ -3226,7 +3227,7 @@ function rowCountsFrom(input) {
3226
3227
  return { completed: c, failed: f, total: known };
3227
3228
  }
3228
3229
  function decodeRunStatus(status) {
3229
- return _chunkPKV5CD3Wjs.decodePlayRunPublicStatus.call(void 0, status);
3230
+ return _chunkEQR5O2D2js.decodePlayRunPublicStatus.call(void 0, status);
3230
3231
  }
3231
3232
  function deriveRunExecutionState(input) {
3232
3233
  const status = decodeRunStatus(input.status);
@@ -4074,7 +4075,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4074
4075
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4075
4076
  );
4076
4077
  }
4077
- const response = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().runs.getReceipts(runId, {
4078
+ const response = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().runs.getReceipts(runId, {
4078
4079
  keys
4079
4080
  });
4080
4081
  const failed = response.receipts.filter(
@@ -4086,7 +4087,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4086
4087
  JSON.stringify(response, null, 2) + "\n",
4087
4088
  { flag: "wx", mode: 384 }
4088
4089
  );
4089
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
4090
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
4090
4091
  {
4091
4092
  runId,
4092
4093
  out: options.out,
@@ -4096,7 +4097,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4096
4097
  { json: true }
4097
4098
  );
4098
4099
  } else {
4099
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4100
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4100
4101
  }
4101
4102
  if (failed)
4102
4103
  process.exitCode = response.receipts.some(
@@ -4135,7 +4136,7 @@ includes nextCommand when another page is available.
4135
4136
  { exitCode: 2 }
4136
4137
  );
4137
4138
  }
4138
- const page = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().runs.children(parentRunId, {
4139
+ const page = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().runs.children(parentRunId, {
4139
4140
  launchKey: options.launchKey,
4140
4141
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4141
4142
  limit
@@ -4150,7 +4151,7 @@ includes nextCommand when another page is available.
4150
4151
  "--limit",
4151
4152
  String(limit)
4152
4153
  ].join(" ") : null;
4153
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
4154
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
4154
4155
  {
4155
4156
  parentRunId,
4156
4157
  launchKey: options.launchKey,
@@ -4186,7 +4187,7 @@ async function handleRunsHistory(options) {
4186
4187
  throw new Error("--limit must be a positive integer.");
4187
4188
  }
4188
4189
  }
4189
- const page = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().runs.history({
4190
+ const page = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().runs.history({
4190
4191
  cursor: options.cursor,
4191
4192
  orgId: options.org,
4192
4193
  search: options.search,
@@ -4202,7 +4203,7 @@ async function handleRunsHistory(options) {
4202
4203
  );
4203
4204
  }
4204
4205
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4205
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
4206
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
4206
4207
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4207
4208
  options.json ? { json: true } : {}
4208
4209
  );
@@ -4254,12 +4255,12 @@ async function runRunsRerunCommand(runId, options) {
4254
4255
  return 1;
4255
4256
  }
4256
4257
  }
4257
- const result = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().runs.rerun(runId, {
4258
+ const result = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().runs.rerun(runId, {
4258
4259
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4259
4260
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4260
4261
  });
4261
- if (_chunkMAMEKGLIjs.shouldEmitJson.call(void 0, options.json)) {
4262
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, result, { json: true });
4262
+ if (_chunkXLYJ7MJXjs.shouldEmitJson.call(void 0, options.json)) {
4263
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, result, { json: true });
4263
4264
  } else if (result.rateLimited) {
4264
4265
  console.log(`
4265
4266
  ${result.rateLimited.message}`);
@@ -4280,36 +4281,6 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
4280
4281
  return 0;
4281
4282
  }
4282
4283
 
4283
- // ../play-data-plane/column-names.ts
4284
- var POSTGRES_IDENTIFIER_MAX_BYTES = 63;
4285
- var HASH_SUFFIX_LENGTH = 10;
4286
- function normalizePlayColumnName(id, preserveAuthoredPrefix = true) {
4287
- const prefix = preserveAuthoredPrefix ? _nullishCoalesce(_optionalChain([id, 'access', _108 => _108.trim, 'call', _109 => _109(), 'access', _110 => _110.match, 'call', _111 => _111(/^_+/), 'optionalAccess', _112 => _112[0]]), () => ( "")) : "";
4288
- const normalized = id.trim().replace(/\.+/g, "__").replace(/[^A-Za-z0-9_]+/g, "_").replace(/^_+|_+$/g, "").toLowerCase();
4289
- const safe = `${prefix}${normalized || "column"}`;
4290
- return /^[A-Za-z_]/.test(safe) ? safe : `c_${safe}`;
4291
- }
4292
- function stableHexSuffix(value) {
4293
- let primary = 2166136261;
4294
- let secondary = 2166136261 ^ value.length;
4295
- for (let index = 0; index < value.length; index += 1) {
4296
- const code = value.charCodeAt(index);
4297
- primary = Math.imul(primary ^ code, 16777619) >>> 0;
4298
- secondary = Math.imul(secondary ^ code + index, 16777619) >>> 0;
4299
- }
4300
- return `${primary.toString(16).padStart(8, "0")}${secondary.toString(16).padStart(8, "0")}`.slice(0, HASH_SUFFIX_LENGTH);
4301
- }
4302
- function sqlSafePlayColumnName(id) {
4303
- const prefixed = normalizePlayColumnName(id);
4304
- if (prefixed.length <= POSTGRES_IDENTIFIER_MAX_BYTES) {
4305
- return prefixed;
4306
- }
4307
- const hash = stableHexSuffix(prefixed);
4308
- const maxPrefixLength = POSTGRES_IDENTIFIER_MAX_BYTES - HASH_SUFFIX_LENGTH - 1;
4309
- const prefix = prefixed.slice(0, maxPrefixLength).replace(/_+$/g, "").slice(0, maxPrefixLength);
4310
- return `${prefix}_${hash}`;
4311
- }
4312
-
4313
4284
  // ../plays/cascade-falloff.ts
4314
4285
  function cascadeFalloff(input) {
4315
4286
  const order = new Map(input.legs.map((leg, index) => [leg, index]));
@@ -4346,8 +4317,8 @@ function formatHitShare(count2, total) {
4346
4317
 
4347
4318
  // src/cli/run-hit-counts.ts
4348
4319
  function runTableHitCounts(tableNamespace, summary) {
4349
- const rows = _nullishCoalesce(_optionalChain([summary, 'optionalAccess', _113 => _113.stats, 'optionalAccess', _114 => _114.total]), () => ( 0));
4350
- const filled = _optionalChain([summary, 'optionalAccess', _115 => _115.filled]);
4320
+ const rows = _nullishCoalesce(_optionalChain([summary, 'optionalAccess', _108 => _108.stats, 'optionalAccess', _109 => _109.total]), () => ( 0));
4321
+ const filled = _optionalChain([summary, 'optionalAccess', _110 => _110.filled]);
4351
4322
  if (!filled || rows <= 0) return null;
4352
4323
  const legColumns = new Set(
4353
4324
  Object.values(_nullishCoalesce(summary.cascades, () => ( {}))).flatMap((cascade) => cascade.legs)
@@ -4355,7 +4326,7 @@ function runTableHitCounts(tableNamespace, summary) {
4355
4326
  const columns = {};
4356
4327
  for (const column of Object.keys(_nullishCoalesce(summary.columns, () => ( {})))) {
4357
4328
  if (column.includes(".")) continue;
4358
- const physical = sqlSafePlayColumnName(column);
4329
+ const physical = _chunkEQR5O2D2js.sqlSafePlayColumnName.call(void 0, column);
4359
4330
  if (legColumns.has(physical)) continue;
4360
4331
  const count2 = filled[physical];
4361
4332
  if (typeof count2 === "number") columns[column] = count2;
@@ -4441,7 +4412,7 @@ function mergeCanonicalRowsInfo(left, right) {
4441
4412
  ...currentTable ? { currentTable: true } : {},
4442
4413
  ...exportUnavailableReason ? {
4443
4414
  exportUnavailableReason,
4444
- ..._optionalChain([unavailableSource, 'optionalAccess', _116 => _116.exportUnavailableMessage]) ? {
4415
+ ..._optionalChain([unavailableSource, 'optionalAccess', _111 => _111.exportUnavailableMessage]) ? {
4445
4416
  exportUnavailableMessage: unavailableSource.exportUnavailableMessage
4446
4417
  } : {}
4447
4418
  } : {}
@@ -4613,7 +4584,7 @@ function totalRowsForDataset(result, datasetPath) {
4613
4584
  const metadata = isRecord(result._metadata) ? result._metadata : null;
4614
4585
  const parentPath = datasetPath.split(".").slice(0, -1).join(".");
4615
4586
  const parent = parentPath ? valueAtPath({ result }, parentPath) : result;
4616
- return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _117 => _117.totalRows]), () => ( _optionalChain([metadata, 'optionalAccess', _118 => _118.rowCount]))), () => ( _optionalChain([metadata, 'optionalAccess', _119 => _119.count]))), () => ( (isRecord(parent) ? _nullishCoalesce(_nullishCoalesce(parent.totalRows, () => ( parent.rowCount)), () => ( parent.count)) : void 0))), () => ( result.totalRows)), () => ( result.rowCount)), () => ( result.count));
4587
+ return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _112 => _112.totalRows]), () => ( _optionalChain([metadata, 'optionalAccess', _113 => _113.rowCount]))), () => ( _optionalChain([metadata, 'optionalAccess', _114 => _114.count]))), () => ( (isRecord(parent) ? _nullishCoalesce(_nullishCoalesce(parent.totalRows, () => ( parent.rowCount)), () => ( parent.count)) : void 0))), () => ( result.totalRows)), () => ( result.rowCount)), () => ( result.count));
4617
4588
  }
4618
4589
  function rowArray(value) {
4619
4590
  if (!Array.isArray(value)) {
@@ -4675,8 +4646,8 @@ function canonicalRowsInfoFromCandidate(input) {
4675
4646
  };
4676
4647
  }
4677
4648
  if (isPackagedDatasetOutput(candidate.value)) {
4678
- const rawRows = _nullishCoalesce(rowArray(_optionalChain([candidate, 'access', _120 => _120.value, 'access', _121 => _121.preview, 'optionalAccess', _122 => _122.rows])), () => ( []));
4679
- const totalRows2 = _nullishCoalesce(_nullishCoalesce(readNumber(candidate.value.rowCount), () => ( readNumber(_optionalChain([candidate, 'access', _123 => _123.value, 'access', _124 => _124.preview, 'optionalAccess', _125 => _125.totalRows])))), () => ( rawRows.length));
4649
+ const rawRows = _nullishCoalesce(rowArray(_optionalChain([candidate, 'access', _115 => _115.value, 'access', _116 => _116.preview, 'optionalAccess', _117 => _117.rows])), () => ( []));
4650
+ const totalRows2 = _nullishCoalesce(_nullishCoalesce(readNumber(candidate.value.rowCount), () => ( readNumber(_optionalChain([candidate, 'access', _118 => _118.value, 'access', _119 => _119.preview, 'optionalAccess', _120 => _120.totalRows])))), () => ( rawRows.length));
4680
4651
  const explicitColumns = Array.isArray(candidate.value.columns) ? candidate.value.columns.filter(
4681
4652
  (column) => typeof column === "string"
4682
4653
  ) : [];
@@ -4772,12 +4743,12 @@ function collectDatasetCandidates(input) {
4772
4743
  }
4773
4744
  function collectCanonicalRowsInfos(statusOrResult) {
4774
4745
  const root = isRecord(statusOrResult) ? statusOrResult : null;
4775
- const result = isRecord(_optionalChain([root, 'optionalAccess', _126 => _126.result])) ? root.result : root;
4746
+ const result = isRecord(_optionalChain([root, 'optionalAccess', _121 => _121.result])) ? root.result : root;
4776
4747
  if (!result) {
4777
4748
  return [];
4778
4749
  }
4779
4750
  const metadata = isRecord(result._metadata) ? result._metadata : null;
4780
- const totalFromMetadata = _nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _127 => _127.totalRows]), () => ( _optionalChain([metadata, 'optionalAccess', _128 => _128.rowCount]))), () => ( _optionalChain([metadata, 'optionalAccess', _129 => _129.count])));
4751
+ const totalFromMetadata = _nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _122 => _122.totalRows]), () => ( _optionalChain([metadata, 'optionalAccess', _123 => _123.rowCount]))), () => ( _optionalChain([metadata, 'optionalAccess', _124 => _124.count])));
4781
4752
  const candidates = [
4782
4753
  {
4783
4754
  source: "result.contacts",
@@ -4802,7 +4773,7 @@ function collectCanonicalRowsInfos(statusOrResult) {
4802
4773
  ];
4803
4774
  if (isRecord(result.output)) {
4804
4775
  const outputMetadata = isRecord(result.output._metadata) ? result.output._metadata : null;
4805
- const outputTotalFromMetadata = _nullishCoalesce(_nullishCoalesce(_optionalChain([outputMetadata, 'optionalAccess', _130 => _130.totalRows]), () => ( _optionalChain([outputMetadata, 'optionalAccess', _131 => _131.rowCount]))), () => ( _optionalChain([outputMetadata, 'optionalAccess', _132 => _132.count])));
4776
+ const outputTotalFromMetadata = _nullishCoalesce(_nullishCoalesce(_optionalChain([outputMetadata, 'optionalAccess', _125 => _125.totalRows]), () => ( _optionalChain([outputMetadata, 'optionalAccess', _126 => _126.rowCount]))), () => ( _optionalChain([outputMetadata, 'optionalAccess', _127 => _127.count])));
4806
4777
  candidates.push(
4807
4778
  {
4808
4779
  source: "result.output.contacts",
@@ -4891,14 +4862,14 @@ function collectPackagedStepDatasetCandidates(statusOrResult) {
4891
4862
  {
4892
4863
  source,
4893
4864
  value: step.output,
4894
- total: _nullishCoalesce(_nullishCoalesce(step.output.rowCount, () => ( _optionalChain([step, 'access', _133 => _133.output, 'access', _134 => _134.preview, 'optionalAccess', _135 => _135.totalRows]))), () => ( void 0))
4865
+ total: _nullishCoalesce(_nullishCoalesce(step.output.rowCount, () => ( _optionalChain([step, 'access', _128 => _128.output, 'access', _129 => _129.preview, 'optionalAccess', _130 => _130.totalRows]))), () => ( void 0))
4895
4866
  }
4896
4867
  ] : [];
4897
4868
  });
4898
4869
  }
4899
4870
  function collectSerializedDatasetRowsInfos(statusOrResult) {
4900
4871
  const root = isRecord(statusOrResult) ? statusOrResult : null;
4901
- const result = root && "result" in root ? isRecord(root.result) ? root.result : null : _optionalChain([root, 'optionalAccess', _136 => _136.kind]) === "play_run" || isRecord(_optionalChain([root, 'optionalAccess', _137 => _137.package])) ? null : root;
4872
+ const result = root && "result" in root ? isRecord(root.result) ? root.result : null : _optionalChain([root, 'optionalAccess', _131 => _131.kind]) === "play_run" || isRecord(_optionalChain([root, 'optionalAccess', _132 => _132.package])) ? null : root;
4902
4873
  const candidates = [];
4903
4874
  if (result) {
4904
4875
  collectDatasetCandidates({
@@ -5011,7 +4982,7 @@ var RunDatasetCatalog = class _RunDatasetCatalog {
5011
4982
  * a Run returns its sole returned Dataset, or its sole recovered Dataset.
5012
4983
  */
5013
4984
  choose(path) {
5014
- const requested = _optionalChain([path, 'optionalAccess', _138 => _138.trim, 'call', _139 => _139()]);
4985
+ const requested = _optionalChain([path, 'optionalAccess', _133 => _133.trim, 'call', _134 => _134()]);
5015
4986
  if (requested) {
5016
4987
  const info = uniqueDatasetMatch(
5017
4988
  this.#available.filter((dataset) => dataset.matches(requested)).map((dataset) => dataset.info()),
@@ -5019,7 +4990,7 @@ var RunDatasetCatalog = class _RunDatasetCatalog {
5019
4990
  );
5020
4991
  return info ? RunDataset.from({
5021
4992
  ...info,
5022
- source: _optionalChain([info, 'access', _140 => _140.sourceAliases, 'optionalAccess', _141 => _141.includes, 'call', _142 => _142(requested)]) ? requested : info.source
4993
+ source: _optionalChain([info, 'access', _135 => _135.sourceAliases, 'optionalAccess', _136 => _136.includes, 'call', _137 => _137(requested)]) ? requested : info.source
5023
4994
  }) : null;
5024
4995
  }
5025
4996
  if (this.#returned.length === 1) return this.#returned[0];
@@ -5062,7 +5033,7 @@ var RunDataset = class _RunDataset {
5062
5033
  return this.#info.exportUnavailableMessage;
5063
5034
  }
5064
5035
  matches(path) {
5065
- return this.source === path || _optionalChain([this, 'access', _143 => _143.#info, 'access', _144 => _144.sourceAliases, 'optionalAccess', _145 => _145.includes, 'call', _146 => _146(path)]) === true || this.#info.name === path || this.datasetId === path || this.tableNamespace === path || _optionalChain([this, 'access', _147 => _147.#info, 'access', _148 => _148.recoveredReturnPaths, 'optionalAccess', _149 => _149.includes, 'call', _150 => _150(path)]) === true;
5036
+ return this.source === path || _optionalChain([this, 'access', _138 => _138.#info, 'access', _139 => _139.sourceAliases, 'optionalAccess', _140 => _140.includes, 'call', _141 => _141(path)]) === true || this.#info.name === path || this.datasetId === path || this.tableNamespace === path || _optionalChain([this, 'access', _142 => _142.#info, 'access', _143 => _143.recoveredReturnPaths, 'optionalAccess', _144 => _144.includes, 'call', _145 => _145(path)]) === true;
5066
5037
  }
5067
5038
  /** Return a new Handle when its preview has been replaced by fetched rows. */
5068
5039
  withRows(info) {
@@ -5083,13 +5054,13 @@ var RunDataset = class _RunDataset {
5083
5054
  const absolutePath = _path.resolve.call(void 0, outPath);
5084
5055
  _fs.writeFileSync.call(void 0,
5085
5056
  absolutePath,
5086
- `${JSON.stringify(_chunkPEIOQKTAjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
5057
+ `${JSON.stringify(_chunkFVS5MJQ5js.orderRunExportJson.call(void 0, this.rows), null, 2)}
5087
5058
  `,
5088
5059
  "utf-8"
5089
5060
  );
5090
5061
  return absolutePath;
5091
5062
  }
5092
- return _chunkPEIOQKTAjs.writeRunDatasetCsv.call(void 0, {
5063
+ return _chunkFVS5MJQ5js.writeRunDatasetCsv.call(void 0, {
5093
5064
  rows: this.rows,
5094
5065
  columns: this.#info.columns,
5095
5066
  outPath
@@ -5101,7 +5072,7 @@ var RunDataset = class _RunDataset {
5101
5072
  }
5102
5073
  };
5103
5074
  function resolveDatasetByName(available, datasetPath) {
5104
- return _nullishCoalesce(_optionalChain([RunDatasetCatalog, 'access', _151 => _151.from, 'call', _152 => _152({ runPackage: null, datasets: available }), 'access', _153 => _153.choose, 'call', _154 => _154(datasetPath), 'optionalAccess', _155 => _155.info, 'call', _156 => _156()]), () => ( null));
5075
+ return _nullishCoalesce(_optionalChain([RunDatasetCatalog, 'access', _146 => _146.from, 'call', _147 => _147({ runPackage: null, datasets: available }), 'access', _148 => _148.choose, 'call', _149 => _149(datasetPath), 'optionalAccess', _150 => _150.info, 'call', _151 => _151()]), () => ( null));
5105
5076
  }
5106
5077
  function uniqueDatasetMatch(infos, selector) {
5107
5078
  const matches = distinctCanonicalRowsInfos(infos);
@@ -5125,11 +5096,11 @@ function uniqueDatasetMatch(infos, selector) {
5125
5096
  function packageForDatasetSelection(runPackage) {
5126
5097
  const root = recordValue(runPackage);
5127
5098
  const nested = recordValue(root.package);
5128
- if (_optionalChain([nested, 'optionalAccess', _157 => _157.kind]) === "play_run") return nested;
5099
+ if (_optionalChain([nested, 'optionalAccess', _152 => _152.kind]) === "play_run") return nested;
5129
5100
  return root.kind === "play_run" ? root : null;
5130
5101
  }
5131
5102
  function withReturnedDatasetAliases(runPackage, available) {
5132
- const outputs = recordValue(_optionalChain([packageForDatasetSelection, 'call', _158 => _158(runPackage), 'optionalAccess', _159 => _159.outputs]));
5103
+ const outputs = recordValue(_optionalChain([packageForDatasetSelection, 'call', _153 => _153(runPackage), 'optionalAccess', _154 => _154.outputs]));
5133
5104
  if (Object.keys(outputs).length === 0) return available;
5134
5105
  const expanded = [...available];
5135
5106
  for (const outputValue of Object.values(outputs)) {
@@ -5143,7 +5114,7 @@ function withReturnedDatasetAliases(runPackage, available) {
5143
5114
  return expanded;
5144
5115
  }
5145
5116
  function returnedRunDatasets(runPackage, available) {
5146
- const rawOutputs = _optionalChain([packageForDatasetSelection, 'call', _160 => _160(runPackage), 'optionalAccess', _161 => _161.outputs]);
5117
+ const rawOutputs = _optionalChain([packageForDatasetSelection, 'call', _155 => _155(runPackage), 'optionalAccess', _156 => _156.outputs]);
5147
5118
  const outputs = recordValue(rawOutputs);
5148
5119
  if (rawOutputs && typeof rawOutputs === "object" && !Array.isArray(rawOutputs)) {
5149
5120
  const selected = [];
@@ -5162,7 +5133,7 @@ function returnedRunDatasets(runPackage, available) {
5162
5133
  return distinctCanonicalRowsInfos(
5163
5134
  available.filter(
5164
5135
  (info) => info.returned || [info.source, ..._nullishCoalesce(info.sourceAliases, () => ( []))].some(
5165
- (path) => _optionalChain([path, 'optionalAccess', _162 => _162.startsWith, 'call', _163 => _163("result.")])
5136
+ (path) => _optionalChain([path, 'optionalAccess', _157 => _157.startsWith, 'call', _158 => _158("result.")])
5166
5137
  ) && !info.recovered
5167
5138
  )
5168
5139
  );
@@ -5192,7 +5163,7 @@ function resolveReturnedDataset(output, available) {
5192
5163
  }
5193
5164
  const legacy = path ? uniqueDatasetMatch(
5194
5165
  available.filter(
5195
- (info) => info.source === path || _optionalChain([info, 'access', _164 => _164.sourceAliases, 'optionalAccess', _165 => _165.includes, 'call', _166 => _166(path)])
5166
+ (info) => info.source === path || _optionalChain([info, 'access', _159 => _159.sourceAliases, 'optionalAccess', _160 => _160.includes, 'call', _161 => _161(path)])
5196
5167
  ),
5197
5168
  path
5198
5169
  ) : null;
@@ -5222,7 +5193,7 @@ var RUN_PLAY_SIGNATURE_HINT = "Deepline hint: deepline.runPlay uses a stable key
5222
5193
  var MAP_BACKED_CHILD_HINT = "Deepline hint: dataset-backed child plays own durable table state and cannot be called from another play. Run that play directly, export its dataset, then pass the CSV to the next play.";
5223
5194
  function sourceLineForError(sourceCode, error) {
5224
5195
  const match = error.match(/:(\d+):(\d+)\s/);
5225
- const lineNumber = _optionalChain([match, 'optionalAccess', _167 => _167[1]]) ? Number(match[1]) : NaN;
5196
+ const lineNumber = _optionalChain([match, 'optionalAccess', _162 => _162[1]]) ? Number(match[1]) : NaN;
5226
5197
  if (!Number.isInteger(lineNumber) || lineNumber < 1) return "";
5227
5198
  return _nullishCoalesce(sourceCode.split(/\r?\n/)[lineNumber - 1], () => ( ""));
5228
5199
  }
@@ -5784,7 +5755,7 @@ async function discoverDeploymentFiles(input) {
5784
5755
  }
5785
5756
  }
5786
5757
  const rootStat = await _promises.stat.call(void 0, input.projectRoot).catch(() => null);
5787
- if (!_optionalChain([rootStat, 'optionalAccess', _168 => _168.isDirectory, 'call', _169 => _169()])) {
5758
+ if (!_optionalChain([rootStat, 'optionalAccess', _163 => _163.isDirectory, 'call', _164 => _164()])) {
5788
5759
  throw new DeeplineManifestError(
5789
5760
  `Project root directory does not exist in the repo: ${input.projectRoot}`
5790
5761
  );
@@ -5886,7 +5857,7 @@ function resolveOwnedPlayReferenceName(reference, ownerSlug) {
5886
5857
  if (parsed.kind !== "org") {
5887
5858
  return null;
5888
5859
  }
5889
- const normalizedOwnerSlug = _nullishCoalesce(_optionalChain([ownerSlug, 'optionalAccess', _170 => _170.trim, 'call', _171 => _171(), 'access', _172 => _172.toLowerCase, 'call', _173 => _173()]), () => ( ""));
5860
+ const normalizedOwnerSlug = _nullishCoalesce(_optionalChain([ownerSlug, 'optionalAccess', _165 => _165.trim, 'call', _166 => _166(), 'access', _167 => _167.toLowerCase, 'call', _168 => _168()]), () => ( ""));
5890
5861
  return normalizedOwnerSlug && parsed.ownerSlug.trim().toLowerCase() === normalizedOwnerSlug ? parsed.name : null;
5891
5862
  }
5892
5863
 
@@ -5901,7 +5872,7 @@ function stringLiteralValue(node) {
5901
5872
  return node.value;
5902
5873
  }
5903
5874
  if (node.type === "TemplateLiteral" && Array.isArray(node.expressions) && node.expressions.length === 0 && Array.isArray(node.quasis) && node.quasis.length === 1) {
5904
- const cooked = _optionalChain([node, 'access', _174 => _174.quasis, 'access', _175 => _175[0], 'access', _176 => _176.value, 'optionalAccess', _177 => _177.cooked]);
5875
+ const cooked = _optionalChain([node, 'access', _169 => _169.quasis, 'access', _170 => _170[0], 'access', _171 => _171.value, 'optionalAccess', _172 => _172.cooked]);
5905
5876
  return typeof cooked === "string" ? cooked : null;
5906
5877
  }
5907
5878
  return null;
@@ -6025,7 +5996,7 @@ async function runDeployment(params, hooks) {
6025
5996
  `Deployment ${params.deploymentId} has no linked repository and no target directory was given.`
6026
5997
  );
6027
5998
  }
6028
- const checkRunName = _optionalChain([state, 'access', _178 => _178.checkRunName, 'optionalAccess', _179 => _179.trim, 'call', _180 => _180()]) || void 0;
5999
+ const checkRunName = _optionalChain([state, 'access', _173 => _173.checkRunName, 'optionalAccess', _174 => _174.trim, 'call', _175 => _175()]) || void 0;
6029
6000
  let mergedPullRequestNumber = null;
6030
6001
  let promoted = false;
6031
6002
  const setStatus = (input) => client.setStatus({
@@ -6096,7 +6067,7 @@ async function runDeployment(params, hooks) {
6096
6067
  finalStatus,
6097
6068
  outcomes,
6098
6069
  ...monitorRunResult(),
6099
- checkRunId: _optionalChain([checkRun, 'optionalAccess', _181 => _181.checkRunId])
6070
+ checkRunId: _optionalChain([checkRun, 'optionalAccess', _176 => _176.checkRunId])
6100
6071
  };
6101
6072
  };
6102
6073
  await _promises.mkdir.call(void 0, hooks.workRoot, { recursive: true });
@@ -6122,7 +6093,7 @@ async function runDeployment(params, hooks) {
6122
6093
  const source = await hooks.openSource({ client, deployment });
6123
6094
  if (deployment.isProduction) {
6124
6095
  try {
6125
- mergedPullRequestNumber = await _asyncNullishCoalesce(await _optionalChain([source, 'access', _182 => _182.findMergedPullRequest, 'optionalCall', _183 => _183()]), async () => ( null));
6096
+ mergedPullRequestNumber = await _asyncNullishCoalesce(await _optionalChain([source, 'access', _177 => _177.findMergedPullRequest, 'optionalCall', _178 => _178()]), async () => ( null));
6126
6097
  } catch (error) {
6127
6098
  console.warn("[deploy-worker] merged PR lookup failed", {
6128
6099
  deploymentId: params.deploymentId,
@@ -6192,15 +6163,15 @@ async function runDeployment(params, hooks) {
6192
6163
  return finishFailed({
6193
6164
  error: input.error,
6194
6165
  outcomes: input.outcomes,
6195
- checkRunId: _optionalChain([checkRun2, 'optionalAccess', _184 => _184.checkRunId])
6166
+ checkRunId: _optionalChain([checkRun2, 'optionalAccess', _179 => _179.checkRunId])
6196
6167
  });
6197
6168
  };
6198
6169
  postFailureCheck = async (summary) => await _asyncOptionalChain([(await postCheckOrNull({
6199
6170
  conclusion: "failure",
6200
6171
  title: "Deploy failed",
6201
6172
  summary
6202
- })), 'optionalAccess', async _185 => _185.checkRunId]);
6203
- const deploymentBranch = _optionalChain([deployment, 'access', _186 => _186.ref, 'optionalAccess', _187 => _187.startsWith, 'call', _188 => _188("refs/heads/")]) ? deployment.ref.slice("refs/heads/".length) : _nullishCoalesce(_optionalChain([project, 'optionalAccess', _189 => _189.productionBranch]), () => ( null));
6173
+ })), 'optionalAccess', async _180 => _180.checkRunId]);
6174
+ const deploymentBranch = _optionalChain([deployment, 'access', _181 => _181.ref, 'optionalAccess', _182 => _182.startsWith, 'call', _183 => _183("refs/heads/")]) ? deployment.ref.slice("refs/heads/".length) : _nullishCoalesce(_optionalChain([project, 'optionalAccess', _184 => _184.productionBranch]), () => ( null));
6204
6175
  const supersedeIfHeadMoved = async () => {
6205
6176
  if (!deployment.isProduction || !source.branchHead || !deploymentBranch) {
6206
6177
  return null;
@@ -6214,7 +6185,7 @@ async function runDeployment(params, hooks) {
6214
6185
  });
6215
6186
  await setStatus({
6216
6187
  status: "superseded",
6217
- error: `Branch ${deploymentBranch} is now at ${_nullishCoalesce(_optionalChain([head, 'optionalAccess', _190 => _190.slice, 'call', _191 => _191(0, 12)]), () => ( "<deleted>"))}; this deployment's commit is no longer the head.`,
6188
+ error: `Branch ${deploymentBranch} is now at ${_nullishCoalesce(_optionalChain([head, 'optionalAccess', _185 => _185.slice, 'call', _186 => _186(0, 12)]), () => ( "<deleted>"))}; this deployment's commit is no longer the head.`,
6218
6189
  buildSeconds: buildSeconds(),
6219
6190
  ...monitorOutcomes.length > 0 ? { results: monitorResults() } : {},
6220
6191
  ...head ? { observedHeadSha: head } : {}
@@ -6330,7 +6301,7 @@ async function runDeployment(params, hooks) {
6330
6301
  failPlay(file, repoRelativeFile, message);
6331
6302
  continue;
6332
6303
  }
6333
- const name = _nullishCoalesce(_optionalChain([result, 'access', _192 => _192.playName, 'optionalAccess', _193 => _193.trim, 'call', _194 => _194()]), () => ( ""));
6304
+ const name = _nullishCoalesce(_optionalChain([result, 'access', _187 => _187.playName, 'optionalAccess', _188 => _188.trim, 'call', _189 => _189()]), () => ( ""));
6334
6305
  if (!name) {
6335
6306
  failPlay(
6336
6307
  file,
@@ -6349,7 +6320,7 @@ async function runDeployment(params, hooks) {
6349
6320
  continue;
6350
6321
  }
6351
6322
  seenNames.set(name, file);
6352
- const disallowed = (_nullishCoalesce(_optionalChain([result, 'access', _195 => _195.artifact, 'access', _196 => _196.importPolicy, 'optionalAccess', _197 => _197.packages]), () => ( []))).map(
6323
+ const disallowed = (_nullishCoalesce(_optionalChain([result, 'access', _190 => _190.artifact, 'access', _191 => _191.importPolicy, 'optionalAccess', _192 => _192.packages]), () => ( []))).map(
6353
6324
  (pkg) => typeof pkg === "string" ? pkg : _nullishCoalesce(pkg.name, () => ( ""))
6354
6325
  ).filter((pkgName) => pkgName && pkgName !== "deepline");
6355
6326
  if (disallowed.length > 0) {
@@ -6433,7 +6404,7 @@ async function runDeployment(params, hooks) {
6433
6404
  const conflicts = [];
6434
6405
  for (const play of ordered) {
6435
6406
  const owner = stateByName.get(play.name);
6436
- if (!project || !_optionalChain([owner, 'optionalAccess', _198 => _198.playProjectRepo]) || owner.playProjectRepo === _optionalChain([project, 'optionalAccess', _199 => _199.repoFullName]) || owner.playProjectDisabled) {
6407
+ if (!project || !_optionalChain([owner, 'optionalAccess', _193 => _193.playProjectRepo]) || owner.playProjectRepo === _optionalChain([project, 'optionalAccess', _194 => _194.repoFullName]) || owner.playProjectDisabled) {
6437
6408
  continue;
6438
6409
  }
6439
6410
  const message = `The play name "${play.name}" is already deployed from ${owner.playProjectRepo}. A play name belongs to one repository at a time. Rename it here, or disable that deployment target first.`;
@@ -6456,16 +6427,16 @@ async function runDeployment(params, hooks) {
6456
6427
  }
6457
6428
  const playByName = new Map(ordered.map((play) => [play.name, play]));
6458
6429
  const sdkUpdated = (name) => {
6459
- const artifact = _optionalChain([playByName, 'access', _200 => _200.get, 'call', _201 => _201(name), 'optionalAccess', _202 => _202.result, 'access', _203 => _203.artifact]);
6460
- const live = _nullishCoalesce(_optionalChain([stateByName, 'access', _204 => _204.get, 'call', _205 => _205(name), 'optionalAccess', _206 => _206.liveRevision]), () => ( null));
6430
+ const artifact = _optionalChain([playByName, 'access', _195 => _195.get, 'call', _196 => _196(name), 'optionalAccess', _197 => _197.result, 'access', _198 => _198.artifact]);
6431
+ const live = _nullishCoalesce(_optionalChain([stateByName, 'access', _199 => _199.get, 'call', _200 => _200(name), 'optionalAccess', _201 => _201.liveRevision]), () => ( null));
6461
6432
  return artifact && isSdkUpdated(live, artifact) ? { sdkUpdated: true } : {};
6462
6433
  };
6463
6434
  const outcomes = [];
6464
6435
  const toRegister = [];
6465
6436
  const toPromote = [];
6466
6437
  const takeoverWarning = (state2) => {
6467
- const owner = _optionalChain([state2, 'optionalAccess', _207 => _207.playProjectRepo]);
6468
- if (!owner || owner === _optionalChain([project, 'optionalAccess', _208 => _208.repoFullName])) return void 0;
6438
+ const owner = _optionalChain([state2, 'optionalAccess', _202 => _202.playProjectRepo]);
6439
+ if (!owner || owner === _optionalChain([project, 'optionalAccess', _203 => _203.repoFullName])) return void 0;
6469
6440
  if (!project) {
6470
6441
  return `This play is deployed from ${owner}. This directory deploy made a different revision live, so it is marked drifted from ${owner} until that repository deploys again. If you are done with ${owner}, unlink it (deepline git unlink <id>) and this play is released from it.`;
6471
6442
  }
@@ -6477,8 +6448,8 @@ async function runDeployment(params, hooks) {
6477
6448
  const artifact = play.result.artifact;
6478
6449
  const importsOtherPlays = (_nullishCoalesce(play.result.importedPlayDependencies, () => ( []))).length > 0;
6479
6450
  const matches = (revision) => !importsOtherPlays && carriesArtifact(revision, artifact);
6480
- if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess', _209 => _209.liveRevision]), () => ( null)))) {
6481
- if (deployment.isProduction && project && (_optionalChain([playState, 'optionalAccess', _210 => _210.playProjectId]) !== project.id || _optionalChain([playState, 'optionalAccess', _211 => _211.driftFromGit]))) {
6451
+ if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess', _204 => _204.liveRevision]), () => ( null)))) {
6452
+ if (deployment.isProduction && project && (_optionalChain([playState, 'optionalAccess', _205 => _205.playProjectId]) !== project.id || _optionalChain([playState, 'optionalAccess', _206 => _206.driftFromGit]))) {
6482
6453
  toPromote.push({
6483
6454
  name: play.name,
6484
6455
  revisionId: playState.liveRevision.revisionId
@@ -6489,12 +6460,12 @@ async function runDeployment(params, hooks) {
6489
6460
  name: play.name,
6490
6461
  file: play.file,
6491
6462
  status: "unchanged",
6492
- version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess', _212 => _212.liveRevision, 'optionalAccess', _213 => _213.version]), () => ( void 0)),
6463
+ version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess', _207 => _207.liveRevision, 'optionalAccess', _208 => _208.version]), () => ( void 0)),
6493
6464
  ...warning ? { warning } : {}
6494
6465
  });
6495
6466
  continue;
6496
6467
  }
6497
- if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess', _214 => _214.workingRevision]), () => ( null)))) {
6468
+ if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess', _209 => _209.workingRevision]), () => ( null)))) {
6498
6469
  if (deployment.isProduction) {
6499
6470
  toPromote.push({
6500
6471
  name: play.name,
@@ -6505,7 +6476,7 @@ async function runDeployment(params, hooks) {
6505
6476
  name: play.name,
6506
6477
  file: play.file,
6507
6478
  status: "registered",
6508
- version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess', _215 => _215.workingRevision, 'optionalAccess', _216 => _216.version]), () => ( void 0)),
6479
+ version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess', _210 => _210.workingRevision, 'optionalAccess', _211 => _211.version]), () => ( void 0)),
6509
6480
  ...sdkUpdated(play.name),
6510
6481
  ...warning ? { warning } : {}
6511
6482
  });
@@ -6632,11 +6603,11 @@ async function runDeployment(params, hooks) {
6632
6603
  const promotion = await client.promote(toPromote);
6633
6604
  promoted = true;
6634
6605
  for (const outcome of promotion.outcomes) {
6635
- const previousVersion = _nullishCoalesce(_optionalChain([stateByName, 'access', _217 => _217.get, 'call', _218 => _218(outcome.name), 'optionalAccess', _219 => _219.liveRevision, 'optionalAccess', _220 => _220.version]), () => ( null));
6606
+ const previousVersion = _nullishCoalesce(_optionalChain([stateByName, 'access', _212 => _212.get, 'call', _213 => _213(outcome.name), 'optionalAccess', _214 => _214.liveRevision, 'optionalAccess', _215 => _215.version]), () => ( null));
6636
6607
  const warning = takeoverWarning(stateByName.get(outcome.name));
6637
6608
  outcomes.push({
6638
6609
  name: outcome.name,
6639
- file: _nullishCoalesce(_optionalChain([playByName, 'access', _221 => _221.get, 'call', _222 => _222(outcome.name), 'optionalAccess', _223 => _223.file]), () => ( outcome.name)),
6610
+ file: _nullishCoalesce(_optionalChain([playByName, 'access', _216 => _216.get, 'call', _217 => _217(outcome.name), 'optionalAccess', _218 => _218.file]), () => ( outcome.name)),
6640
6611
  status: outcome.status === "promoted" ? "promoted" : "failed",
6641
6612
  version: outcome.version,
6642
6613
  ...outcome.status === "promoted" && typeof previousVersion === "number" && previousVersion !== outcome.version ? { previousVersion } : {},
@@ -6648,7 +6619,7 @@ async function runDeployment(params, hooks) {
6648
6619
  } catch (error) {
6649
6620
  if (revokedFinalStatus(error)) throw error;
6650
6621
  const body = error instanceof DeployApiError ? error.body : null;
6651
- const errorText = _nullishCoalesce(_optionalChain([body, 'optionalAccess', _224 => _224.error]), () => ( (error instanceof Error ? error.message : String(error))));
6622
+ const errorText = _nullishCoalesce(_optionalChain([body, 'optionalAccess', _219 => _219.error]), () => ( (error instanceof Error ? error.message : String(error))));
6652
6623
  if (/PLAY_DEPLOYMENT_NOT_ACTIVE/.test(errorText)) {
6653
6624
  console.info("[deploy-worker] cancelled at promote", {
6654
6625
  deploymentId: params.deploymentId
@@ -6672,9 +6643,9 @@ async function runDeployment(params, hooks) {
6672
6643
  error: errorText,
6673
6644
  outcomes: [
6674
6645
  ...outcomes,
6675
- ...(_nullishCoalesce(_optionalChain([body, 'optionalAccess', _225 => _225.outcomes]), () => ( toPromote))).map((entry) => ({
6646
+ ...(_nullishCoalesce(_optionalChain([body, 'optionalAccess', _220 => _220.outcomes]), () => ( toPromote))).map((entry) => ({
6676
6647
  name: entry.name,
6677
- file: _nullishCoalesce(_optionalChain([playByName, 'access', _226 => _226.get, 'call', _227 => _227(entry.name), 'optionalAccess', _228 => _228.file]), () => ( entry.name)),
6648
+ file: _nullishCoalesce(_optionalChain([playByName, 'access', _221 => _221.get, 'call', _222 => _222(entry.name), 'optionalAccess', _223 => _223.file]), () => ( entry.name)),
6678
6649
  status: "failed",
6679
6650
  error: _nullishCoalesce(("error" in entry ? entry.error : void 0), () => ( errorText))
6680
6651
  }))
@@ -6718,7 +6689,7 @@ async function runDeployment(params, hooks) {
6718
6689
  });
6719
6690
  let checkRunId;
6720
6691
  try {
6721
- checkRunId = await _optionalChain([postFailureCheck, 'optionalCall', _229 => _229(message.slice(0, 2e3))]);
6692
+ checkRunId = await _optionalChain([postFailureCheck, 'optionalCall', _224 => _224(message.slice(0, 2e3))]);
6722
6693
  } catch (checkError) {
6723
6694
  const revokedAtCheck = revokedFinalStatus(checkError);
6724
6695
  if (revokedAtCheck) {
@@ -6786,7 +6757,7 @@ function renderOutcome(outcome) {
6786
6757
  function printResult2(input) {
6787
6758
  const failed = input.status === "failed" || input.status === "cancelled";
6788
6759
  if (failed) process.exitCode = 1;
6789
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
6760
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
6790
6761
  {
6791
6762
  deployment: { ...input.deployment, status: input.status },
6792
6763
  plays: input.outcomes,
@@ -6811,7 +6782,7 @@ async function handlePlaysDeploy(directory, options) {
6811
6782
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6812
6783
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6813
6784
  });
6814
- const { http, config } = _chunkMAMEKGLIjs.getAuthedHttpClient.call(void 0, );
6785
+ const { http, config } = _chunkXLYJ7MJXjs.getAuthedHttpClient.call(void 0, );
6815
6786
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6816
6787
  const startDeployment = () => http.post("/api/v2/deployments", {
6817
6788
  deliveryId,
@@ -6838,14 +6809,14 @@ async function handlePlaysDeploy(directory, options) {
6838
6809
  },
6839
6810
  {
6840
6811
  bundle: bundleDeployPlayFile,
6841
- fetchImpl: _chunkPHO53W67js.fetchWithDeploymentProtection,
6812
+ fetchImpl: _chunkSLS3HUVCjs.fetchWithDeploymentProtection,
6842
6813
  // The plays are already here: "opening" the source is naming it.
6843
6814
  openSource: async () => ({
6844
6815
  open: async () => ({ repoRoot: root })
6845
6816
  }),
6846
6817
  target: {
6847
6818
  rootDirectory: "",
6848
- manifestPath: _nullishCoalesce(_optionalChain([options, 'access', _230 => _230.manifest, 'optionalAccess', _231 => _231.trim, 'call', _232 => _232()]), () => ( ""))
6819
+ manifestPath: _nullishCoalesce(_optionalChain([options, 'access', _225 => _225.manifest, 'optionalAccess', _226 => _226.trim, 'call', _227 => _227()]), () => ( ""))
6849
6820
  },
6850
6821
  workRoot
6851
6822
  }
@@ -6929,7 +6900,7 @@ async function checkLocalPlayGraph(input) {
6929
6900
  sourceCode: node.sourceCode,
6930
6901
  sourceFiles: node.sourceFiles,
6931
6902
  description: _nullishCoalesce(node.playDescription, () => ( void 0)),
6932
- artifact: _nullishCoalesce(_optionalChain([input, 'access', _233 => _233.prepareArtifact, 'optionalCall', _234 => _234(node.artifact)]), () => ( node.artifact)),
6903
+ artifact: _nullishCoalesce(_optionalChain([input, 'access', _228 => _228.prepareArtifact, 'optionalCall', _229 => _229(node.artifact)]), () => ( node.artifact)),
6933
6904
  ...exportName === "default" ? {} : { exportName },
6934
6905
  ...importedPlays.length ? { importedPlays } : {},
6935
6906
  ...input.integrationMode ? { integrationMode: input.integrationMode } : {}
@@ -6964,7 +6935,7 @@ async function checkLocalPlayGraph(input) {
6964
6935
  // src/cli/renderers/local-play-execution.ts
6965
6936
  function renderLocalPlayExecutionPlan(plan, options = {}) {
6966
6937
  if (options.dryRun) {
6967
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6938
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6968
6939
  return;
6969
6940
  }
6970
6941
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -7056,7 +7027,7 @@ async function preflightRunIdFile(path) {
7056
7027
  `Cannot write --run-id-file destination ${destination}: ${error instanceof Error ? error.message : String(error)}`
7057
7028
  );
7058
7029
  } finally {
7059
- await _optionalChain([handle, 'optionalAccess', _235 => _235.close, 'call', _236 => _236()]);
7030
+ await _optionalChain([handle, 'optionalAccess', _230 => _230.close, 'call', _231 => _231()]);
7060
7031
  await removeRunIdTempFile(tempPath);
7061
7032
  }
7062
7033
  return destination;
@@ -7110,9 +7081,9 @@ async function writePlayRunIdFile(destination, runId, options = {}) {
7110
7081
  } catch (error) {
7111
7082
  if (error.code !== "EEXIST") throw error;
7112
7083
  const raced = await readRunIdFile(destination);
7113
- if (_optionalChain([raced, 'optionalAccess', _237 => _237.runId]) !== runId) {
7084
+ if (_optionalChain([raced, 'optionalAccess', _232 => _232.runId]) !== runId) {
7114
7085
  throw new Error(
7115
- `--run-id-file destination already records run ${_nullishCoalesce(_optionalChain([raced, 'optionalAccess', _238 => _238.runId]), () => ( "<invalid>"))}; refusing to replace it with ${runId}: ${destination}`
7086
+ `--run-id-file destination already records run ${_nullishCoalesce(_optionalChain([raced, 'optionalAccess', _233 => _233.runId]), () => ( "<invalid>"))}; refusing to replace it with ${runId}: ${destination}`
7116
7087
  );
7117
7088
  }
7118
7089
  if (!options.launchConfirmed || raced.launchConfirmed) return;
@@ -7128,7 +7099,7 @@ async function writePlayRunIdFile(destination, runId, options = {}) {
7128
7099
  }
7129
7100
  }
7130
7101
  } finally {
7131
- await _optionalChain([handle, 'optionalAccess', _239 => _239.close, 'call', _240 => _240()]);
7102
+ await _optionalChain([handle, 'optionalAccess', _234 => _234.close, 'call', _235 => _235()]);
7132
7103
  await removeRunIdTempFile(tempPath);
7133
7104
  }
7134
7105
  }
@@ -7136,7 +7107,7 @@ function traceCliSync(phase, fields2, run) {
7136
7107
  const startedAt = Date.now();
7137
7108
  try {
7138
7109
  const result = run();
7139
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
7110
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
7140
7111
  phase,
7141
7112
  ms: Date.now() - startedAt,
7142
7113
  ok: true,
@@ -7144,7 +7115,7 @@ function traceCliSync(phase, fields2, run) {
7144
7115
  });
7145
7116
  return result;
7146
7117
  } catch (error) {
7147
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
7118
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
7148
7119
  phase,
7149
7120
  ms: Date.now() - startedAt,
7150
7121
  ok: false,
@@ -7215,10 +7186,10 @@ function playReferenceMatchTokens(value) {
7215
7186
  return normalizePlayReferenceForMatch(value).split("-").filter((token) => token.length > 1 && token !== "to" && token !== "and");
7216
7187
  }
7217
7188
  function playSuggestionReference(play) {
7218
- if (_optionalChain([play, 'access', _241 => _241.reference, 'optionalAccess', _242 => _242.trim, 'call', _243 => _243()])) {
7189
+ if (_optionalChain([play, 'access', _236 => _236.reference, 'optionalAccess', _237 => _237.trim, 'call', _238 => _238()])) {
7219
7190
  return play.reference.trim();
7220
7191
  }
7221
- const ownerSlug = _optionalChain([play, 'access', _244 => _244.ownerSlug, 'optionalAccess', _245 => _245.trim, 'call', _246 => _246()]);
7192
+ const ownerSlug = _optionalChain([play, 'access', _239 => _239.ownerSlug, 'optionalAccess', _240 => _240.trim, 'call', _241 => _241()]);
7222
7193
  return ownerSlug ? `${ownerSlug}/${play.name}` : play.name;
7223
7194
  }
7224
7195
  function scorePlayReferenceSuggestion(requested, play) {
@@ -7234,8 +7205,8 @@ function scorePlayReferenceSuggestion(requested, play) {
7234
7205
  const reference = playSuggestionReference(play);
7235
7206
  const referenceNorm = normalizePlayReferenceForMatch(reference);
7236
7207
  const nameNorm = normalizePlayReferenceForMatch(play.name);
7237
- const candidateNamespace = reference.includes("/") ? _optionalChain([reference, 'access', _247 => _247.split, 'call', _248 => _248("/"), 'access', _249 => _249[0], 'optionalAccess', _250 => _250.toLowerCase, 'call', _251 => _251()]) : null;
7238
- const requestedNamespace = _nullishCoalesce(_optionalChain([parsed, 'access', _252 => _252.ownerSlug, 'optionalAccess', _253 => _253.toLowerCase, 'call', _254 => _254()]), () => ( null));
7208
+ const candidateNamespace = reference.includes("/") ? _optionalChain([reference, 'access', _242 => _242.split, 'call', _243 => _243("/"), 'access', _244 => _244[0], 'optionalAccess', _245 => _245.toLowerCase, 'call', _246 => _246()]) : null;
7209
+ const requestedNamespace = _nullishCoalesce(_optionalChain([parsed, 'access', _247 => _247.ownerSlug, 'optionalAccess', _248 => _248.toLowerCase, 'call', _249 => _249()]), () => ( null));
7239
7210
  const aliases = (_nullishCoalesce(play.aliases, () => ( []))).map(normalizePlayReferenceForMatch);
7240
7211
  const searchable = [referenceNorm, nameNorm, ...aliases].filter(Boolean);
7241
7212
  const requestedTokens = playReferenceMatchTokens(requestedName);
@@ -7352,16 +7323,16 @@ async function buildPlayReferenceNotFoundError(input) {
7352
7323
  suggestions = [];
7353
7324
  }
7354
7325
  const sourceError = input.sourceError instanceof _chunkDIAWYWT5js.DeeplineError ? input.sourceError : null;
7355
- const code = _optionalChain([sourceError, 'optionalAccess', _255 => _255.code]) && sourceError.code !== "API_ERROR" ? sourceError.code : "PLAY_NOT_FOUND";
7326
+ const code = _optionalChain([sourceError, 'optionalAccess', _250 => _250.code]) && sourceError.code !== "API_ERROR" ? sourceError.code : "PLAY_NOT_FOUND";
7356
7327
  return new (0, _chunkDIAWYWT5js.DeeplineError)(
7357
7328
  buildPlayReferenceNotFoundMessage({
7358
7329
  requested: input.target,
7359
7330
  command: input.command,
7360
7331
  suggestions
7361
7332
  }),
7362
- _nullishCoalesce(_optionalChain([sourceError, 'optionalAccess', _256 => _256.statusCode]), () => ( 404)),
7333
+ _nullishCoalesce(_optionalChain([sourceError, 'optionalAccess', _251 => _251.statusCode]), () => ( 404)),
7363
7334
  code,
7364
- _optionalChain([sourceError, 'optionalAccess', _257 => _257.details])
7335
+ _optionalChain([sourceError, 'optionalAccess', _252 => _252.details])
7365
7336
  );
7366
7337
  }
7367
7338
  async function isMissingRunPlayReferenceError(input) {
@@ -7413,7 +7384,7 @@ function formatPlayReference(play) {
7413
7384
  if (play.reference) {
7414
7385
  return play.reference;
7415
7386
  }
7416
- const ownerSlug = _optionalChain([play, 'access', _258 => _258.ownerSlug, 'optionalAccess', _259 => _259.trim, 'call', _260 => _260()]) || "org";
7387
+ const ownerSlug = _optionalChain([play, 'access', _253 => _253.ownerSlug, 'optionalAccess', _254 => _254.trim, 'call', _255 => _255()]) || "org";
7417
7388
  return `${ownerSlug}/${play.name}`;
7418
7389
  }
7419
7390
  function formatPlayListReference(play) {
@@ -7443,7 +7414,7 @@ function materializeRemotePlaySource(input) {
7443
7414
  return null;
7444
7415
  }
7445
7416
  const entrySource = input.source.files[input.source.entryFile];
7446
- if (!_optionalChain([entrySource, 'optionalAccess', _261 => _261.trim, 'call', _262 => _262()])) {
7417
+ if (!_optionalChain([entrySource, 'optionalAccess', _256 => _256.trim, 'call', _257 => _257()])) {
7447
7418
  return null;
7448
7419
  }
7449
7420
  const files = Object.entries(input.source.files);
@@ -7622,7 +7593,7 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
7622
7593
  if (!trimmed || isUrlValue(trimmed)) {
7623
7594
  return;
7624
7595
  }
7625
- const keyIsCsvData = key === _chunkPKV5CD3Wjs.CSV_DATA_INPUT_KEY;
7596
+ const keyIsCsvData = key === _chunkEQR5O2D2js.CSV_DATA_INPUT_KEY;
7626
7597
  const endsWithCsv = /\.csv$/i.test(trimmed);
7627
7598
  const looksLikeFile = /\.[a-z0-9]{1,8}$/i.test(trimmed);
7628
7599
  if (keyIsCsvData) {
@@ -7653,14 +7624,14 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
7653
7624
  }
7654
7625
  }
7655
7626
  function preflightLocalFileInputs(runtimeInput) {
7656
- if (_chunkPKV5CD3Wjs.CSV_DATA_INPUT_KEY in runtimeInput) {
7657
- const csvValue = runtimeInput[_chunkPKV5CD3Wjs.CSV_DATA_INPUT_KEY];
7627
+ if (_chunkEQR5O2D2js.CSV_DATA_INPUT_KEY in runtimeInput) {
7628
+ const csvValue = runtimeInput[_chunkEQR5O2D2js.CSV_DATA_INPUT_KEY];
7658
7629
  if (typeof csvValue === "string" && csvValue.trim().length === 0) {
7659
7630
  throw new (0, _chunkDIAWYWT5js.DeeplineError)(
7660
- `Input ${_chunkPKV5CD3Wjs.CSV_DATA_INPUT_KEY} is an empty string. Provide a path to a CSV file (or a CSV URL). No run was created.`,
7631
+ `Input ${_chunkEQR5O2D2js.CSV_DATA_INPUT_KEY} is an empty string. Provide a path to a CSV file (or a CSV URL). No run was created.`,
7661
7632
  void 0,
7662
7633
  "PLAY_INPUT_FILE_PREFLIGHT",
7663
- { inputPath: _chunkPKV5CD3Wjs.CSV_DATA_INPUT_KEY, reason: "csv_empty_string" }
7634
+ { inputPath: _chunkEQR5O2D2js.CSV_DATA_INPUT_KEY, reason: "csv_empty_string" }
7664
7635
  );
7665
7636
  }
7666
7637
  }
@@ -7727,7 +7698,7 @@ var NODE_STAGED_FILE_CODEC = {
7727
7698
  )
7728
7699
  };
7729
7700
  async function stageFileInputArgs(input) {
7730
- return _chunkPKV5CD3Wjs.stageFileInputs.call(void 0, {
7701
+ return _chunkEQR5O2D2js.stageFileInputs.call(void 0, {
7731
7702
  stage: (files) => input.client.stagePlayFiles(files),
7732
7703
  runtimeInput: input.runtimeInput,
7733
7704
  bindings: input.bindings,
@@ -7751,7 +7722,7 @@ function stageFile(logicalPath, absolutePath) {
7751
7722
  logicalPath,
7752
7723
  contentBase64: buffer.toString("base64"),
7753
7724
  contentHash: _crypto.createHash.call(void 0, "sha256").update(buffer).digest("hex"),
7754
- contentType: _chunkPKV5CD3Wjs.stagedFileContentType.call(void 0, absolutePath),
7725
+ contentType: _chunkEQR5O2D2js.stagedFileContentType.call(void 0, absolutePath),
7755
7726
  bytes: buffer.byteLength
7756
7727
  };
7757
7728
  }
@@ -7837,7 +7808,7 @@ async function compileBundledPlayGraphManifests(client, graph) {
7837
7808
  const child = graph.nodes.get(
7838
7809
  normalizePlayPath(dependency.filePath)
7839
7810
  );
7840
- if (!_optionalChain([child, 'optionalAccess', _263 => _263.compilerManifest])) {
7811
+ if (!_optionalChain([child, 'optionalAccess', _258 => _258.compilerManifest])) {
7841
7812
  throw new Error(
7842
7813
  `Missing compiler manifest for imported dependency ${dependency.filePath}.`
7843
7814
  );
@@ -7916,7 +7887,7 @@ function formatTimestamp(value) {
7916
7887
  return date.toISOString();
7917
7888
  }
7918
7889
  function isoTimestamp(value) {
7919
- return _nullishCoalesce(_optionalChain([timestampDate, 'call', _264 => _264(value), 'optionalAccess', _265 => _265.toISOString, 'call', _266 => _266()]), () => ( null));
7890
+ return _nullishCoalesce(_optionalChain([timestampDate, 'call', _259 => _259(value), 'optionalAccess', _260 => _260.toISOString, 'call', _261 => _261()]), () => ( null));
7920
7891
  }
7921
7892
  function formatRunLine(run) {
7922
7893
  const credits = typeof run.billingTotalCredits === "number" && Number.isFinite(run.billingTotalCredits) ? `${formatCreditAmount2(run.billingTotalCredits)} credits` : "\u2014";
@@ -7924,7 +7895,7 @@ function formatRunLine(run) {
7924
7895
  }
7925
7896
  function playStatusErrorText(status) {
7926
7897
  const chunks = [];
7927
- const progressError = _optionalChain([status, 'access', _267 => _267.progress, 'optionalAccess', _268 => _268.error]);
7898
+ const progressError = _optionalChain([status, 'access', _262 => _262.progress, 'optionalAccess', _263 => _263.error]);
7928
7899
  if (typeof progressError === "string" && progressError.trim()) {
7929
7900
  chunks.push(progressError.trim());
7930
7901
  }
@@ -7950,7 +7921,7 @@ function playStatusErrorText(status) {
7950
7921
  function isRetryablePendingStartFailure(status) {
7951
7922
  if (status.status !== "failed") return false;
7952
7923
  if (status.runId && status.runId !== "pending") return false;
7953
- return _chunkTUAEM76Yjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7924
+ return _chunk3KG2FUU4js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7954
7925
  }
7955
7926
  function isAmbiguousPlayStartOutcomeError(error) {
7956
7927
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
@@ -8000,13 +7971,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
8000
7971
  }, _class);
8001
7972
  function watchSurfaceReaches(state, provenance, level) {
8002
7973
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
8003
- if (!_chunkTUAEM76Yjs.logLevelReaches.call(void 0, level, minimumLevel)) {
7974
+ if (!_chunk3KG2FUU4js.logLevelReaches.call(void 0, level, minimumLevel)) {
8004
7975
  return false;
8005
7976
  }
8006
- if (_chunkTUAEM76Yjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
7977
+ if (_chunk3KG2FUU4js.logProvenanceReaches.call(void 0, provenance, "watch")) {
8007
7978
  return true;
8008
7979
  }
8009
- return state.verbose === true && _chunkTUAEM76Yjs.logProvenanceReaches.call(void 0, provenance, "debug");
7980
+ return state.verbose === true && _chunk3KG2FUU4js.logProvenanceReaches.call(void 0, provenance, "debug");
8010
7981
  }
8011
7982
  function getEventPayload(event) {
8012
7983
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -8029,7 +8000,7 @@ function getRunIdFromLiveEvent(event) {
8029
8000
  if (typeof directRunId === "string" && directRunId.trim()) {
8030
8001
  return directRunId;
8031
8002
  }
8032
- const packageRunId = _optionalChain([getRunRecordFromPackage, 'call', _269 => _269(payload), 'optionalAccess', _270 => _270.id]);
8003
+ const packageRunId = _optionalChain([getRunRecordFromPackage, 'call', _264 => _264(payload), 'optionalAccess', _265 => _265.id]);
8033
8004
  return typeof packageRunId === "string" && packageRunId.trim() ? packageRunId : null;
8034
8005
  }
8035
8006
  function eventConfirmsPlayRunLaunch(event) {
@@ -8050,19 +8021,19 @@ function getStatusFromLiveEvent(event) {
8050
8021
  return null;
8051
8022
  }
8052
8023
  const payload = getEventPayload(event);
8053
- return _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([getRunRecordFromPackage, 'call', _271 => _271(payload), 'optionalAccess', _272 => _272.status]))));
8024
+ return _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([getRunRecordFromPackage, 'call', _266 => _266(payload), 'optionalAccess', _267 => _267.status]))));
8054
8025
  }
8055
8026
  function readLiveRunField(event, field) {
8056
8027
  const payload = getEventPayload(event);
8057
8028
  if (field === "waitKind") {
8058
- const wait = _nullishCoalesce(payload.wait, () => ( _optionalChain([getRunRecordFromPackage, 'call', _273 => _273(payload), 'optionalAccess', _274 => _274.wait])));
8029
+ const wait = _nullishCoalesce(payload.wait, () => ( _optionalChain([getRunRecordFromPackage, 'call', _268 => _268(payload), 'optionalAccess', _269 => _269.wait])));
8059
8030
  if (wait && typeof wait === "object" && !Array.isArray(wait)) {
8060
8031
  const kind = wait.kind;
8061
8032
  if (typeof kind === "string" && kind.trim()) return kind.trim();
8062
8033
  }
8063
8034
  }
8064
8035
  const run = getRunRecordFromPackage(payload);
8065
- const records = [payload, payload.progress, run, _optionalChain([run, 'optionalAccess', _275 => _275.progress])].filter(
8036
+ const records = [payload, payload.progress, run, _optionalChain([run, 'optionalAccess', _270 => _270.progress])].filter(
8066
8037
  (value) => Boolean(value && typeof value === "object" && !Array.isArray(value))
8067
8038
  );
8068
8039
  for (const record3 of records) {
@@ -8077,7 +8048,7 @@ function getLiveRunStringField(event, field) {
8077
8048
  function getLiveRunActivity(event) {
8078
8049
  const payload = getEventPayload(event);
8079
8050
  const run = getRunRecordFromPackage(payload);
8080
- const candidates = [payload.activity, _optionalChain([run, 'optionalAccess', _276 => _276.activity])];
8051
+ const candidates = [payload.activity, _optionalChain([run, 'optionalAccess', _271 => _271.activity])];
8081
8052
  for (const candidate of candidates) {
8082
8053
  if (candidate && typeof candidate === "object" && !Array.isArray(candidate) && typeof candidate.summary === "string" && candidate.observation && typeof candidate.observation === "object") {
8083
8054
  return candidate;
@@ -8092,9 +8063,9 @@ function getRunLifecycleHint(input) {
8092
8063
  return null;
8093
8064
  }
8094
8065
  const activity = getLiveRunActivity(input.event);
8095
- const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess', _277 => _277.observation, 'access', _278 => _278.state, 'access', _279 => _279.kind]) === "active" && activity.observation.target.kind !== "runner";
8066
+ const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess', _272 => _272.observation, 'access', _273 => _273.state, 'access', _274 => _274.kind]) === "active" && activity.observation.target.kind !== "runner";
8096
8067
  const inspect = `'deepline runs get ${runId} --full'`;
8097
- const sleepState = _optionalChain([activity, 'optionalAccess', _280 => _280.observation, 'access', _281 => _281.state, 'access', _282 => _282.kind]) === "scheduled" && activity.observation.state.reason === "sleep" ? activity.observation.state : null;
8068
+ const sleepState = _optionalChain([activity, 'optionalAccess', _275 => _275.observation, 'access', _276 => _276.state, 'access', _277 => _277.kind]) === "scheduled" && activity.observation.state.reason === "sleep" ? activity.observation.state : null;
8098
8069
  if (status === "waiting" && (sleepState !== null || getLiveRunStringField(input.event, "waitKind") === "sleep")) {
8099
8070
  const recordedWake = readLiveRunField(input.event, "waitUntil");
8100
8071
  const projectedWake = sleepState && sleepState.resumeAt > activity.observation.observedAt ? sleepState.resumeAt : null;
@@ -8105,7 +8076,7 @@ function getRunLifecycleHint(input) {
8105
8076
  };
8106
8077
  }
8107
8078
  const typedEventWaitKind = getLiveRunStringField(input.event, "waitKind");
8108
- const activityEventWait = _optionalChain([activity, 'optionalAccess', _283 => _283.observation, 'access', _284 => _284.state, 'access', _285 => _285.kind]) === "waiting" && activity.observation.state.reason.kind === "external_event";
8079
+ const activityEventWait = _optionalChain([activity, 'optionalAccess', _278 => _278.observation, 'access', _279 => _279.state, 'access', _280 => _280.kind]) === "waiting" && activity.observation.state.reason.kind === "external_event";
8109
8080
  if (status === "waiting" && (typedEventWaitKind === "integration_event" || typedEventWaitKind === "integration_event_batch" || activityEventWait)) {
8110
8081
  return {
8111
8082
  signature: [
@@ -8178,12 +8149,12 @@ function getFinalStatusFromLiveEvent(event) {
8178
8149
  }
8179
8150
  const payload = getEventPayload(event);
8180
8151
  const packageRun = getRunRecordFromPackage(payload);
8181
- const status = _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([packageRun, 'optionalAccess', _286 => _286.status]))));
8152
+ const status = _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([packageRun, 'optionalAccess', _281 => _281.status]))));
8182
8153
  if (status !== "completed" && status !== "failed" && status !== "cancelled") {
8183
8154
  return null;
8184
8155
  }
8185
- const runId = typeof payload.runId === "string" ? payload.runId : typeof _optionalChain([packageRun, 'optionalAccess', _287 => _287.id]) === "string" ? packageRun.id : "";
8186
- const error = typeof payload.error === "string" ? payload.error : typeof _optionalChain([packageRun, 'optionalAccess', _288 => _288.error]) === "string" ? packageRun.error : void 0;
8156
+ const runId = typeof payload.runId === "string" ? payload.runId : typeof _optionalChain([packageRun, 'optionalAccess', _282 => _282.id]) === "string" ? packageRun.id : "";
8157
+ const error = typeof payload.error === "string" ? payload.error : typeof _optionalChain([packageRun, 'optionalAccess', _283 => _283.error]) === "string" ? packageRun.error : void 0;
8187
8158
  return {
8188
8159
  ...payload,
8189
8160
  runId,
@@ -8418,7 +8389,7 @@ function getProgressLinesFromLiveEvent(event) {
8418
8389
  (count2) => typeof count2 === "number" && Number.isSafeInteger(count2) && count2 >= 0
8419
8390
  )) {
8420
8391
  lines.push(
8421
- `progress calls: ${formatInteger(callCounts[0])} logical, ${formatInteger(callCounts[1])} provider requests, ${formatInteger(callCounts[2])} provider 429s${_optionalChain([calls, 'optionalAccess', _289 => _289.confirmed]) === true ? "" : " (observed)"}`
8392
+ `progress calls: ${formatInteger(callCounts[0])} logical, ${formatInteger(callCounts[1])} provider requests, ${formatInteger(callCounts[2])} provider 429s${_optionalChain([calls, 'optionalAccess', _284 => _284.confirmed]) === true ? "" : " (observed)"}`
8422
8393
  );
8423
8394
  }
8424
8395
  const rowOutcomes = readRowOutcomeSummary({
@@ -8469,7 +8440,7 @@ function getRunningHeartbeatLine(input) {
8469
8440
  return null;
8470
8441
  }
8471
8442
  const activity = getLiveRunActivity(input.event);
8472
- const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess', _290 => _290.observation, 'access', _291 => _291.state, 'access', _292 => _292.kind]) === "active" && activity.observation.target.kind !== "runner";
8443
+ const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess', _285 => _285.observation, 'access', _286 => _286.state, 'access', _287 => _287.kind]) === "active" && activity.observation.target.kind !== "runner";
8473
8444
  if (activity && activity.classified !== false && !activityConflictsWithDurableWait) {
8474
8445
  return `activity ${input.playName}: ${activity.summary}`;
8475
8446
  }
@@ -8502,13 +8473,13 @@ function printPlayStatusHeartbeat(input) {
8502
8473
  input.progress.writeLine(line);
8503
8474
  }
8504
8475
  function resolveRunPlayName(status, runId) {
8505
- const packaged = _optionalChain([status, 'access', _293 => _293.package, 'optionalAccess', _294 => _294.run, 'optionalAccess', _295 => _295.playName]);
8476
+ const packaged = _optionalChain([status, 'access', _288 => _288.package, 'optionalAccess', _289 => _289.run, 'optionalAccess', _290 => _290.playName]);
8506
8477
  if (typeof packaged === "string" && packaged.trim()) return packaged.trim();
8507
- return _nullishCoalesce(_nullishCoalesce(extractRunPlayName(status), () => ( _optionalChain([/^play\/(.+)\/(?:run|webhook)\//, 'access', _296 => _296.exec, 'call', _297 => _297(runId), 'optionalAccess', _298 => _298[1]]))), () => ( null));
8478
+ return _nullishCoalesce(_nullishCoalesce(extractRunPlayName(status), () => ( _optionalChain([/^play\/(.+)\/(?:run|webhook)\//, 'access', _291 => _291.exec, 'call', _292 => _292(runId), 'optionalAccess', _293 => _293[1]]))), () => ( null));
8508
8479
  }
8509
8480
  function resolvePlayRunUrl(input) {
8510
8481
  if (input.runUrl) return input.runUrl;
8511
- const runId = _optionalChain([input, 'access', _299 => _299.runId, 'optionalAccess', _300 => _300.trim, 'call', _301 => _301()]);
8482
+ const runId = _optionalChain([input, 'access', _294 => _294.runId, 'optionalAccess', _295 => _295.trim, 'call', _296 => _296()]);
8512
8483
  if (!input.dashboardUrl || !runId || runId === "pending") return void 0;
8513
8484
  const url = new URL(input.dashboardUrl);
8514
8485
  url.searchParams.set("runId", runId);
@@ -8516,7 +8487,7 @@ function resolvePlayRunUrl(input) {
8516
8487
  }
8517
8488
  function openPlayDashboard(url, open2) {
8518
8489
  if (open2 && url) {
8519
- _chunkMAMEKGLIjs.openInBrowser.call(void 0, url);
8490
+ _chunkXLYJ7MJXjs.openInBrowser.call(void 0, url);
8520
8491
  }
8521
8492
  }
8522
8493
  function printPlayLogLines(input) {
@@ -8569,7 +8540,7 @@ async function waitForPlayCompletionByWatch(input) {
8569
8540
  const confirmAdmission = async () => {
8570
8541
  if (admissionConfirmed) return;
8571
8542
  admissionConfirmed = true;
8572
- await _optionalChain([input, 'access', _302 => _302.onRunAdmitted, 'optionalCall', _303 => _303(input.workflowId)]);
8543
+ await _optionalChain([input, 'access', _297 => _297.onRunAdmitted, 'optionalCall', _298 => _298(input.workflowId)]);
8573
8544
  };
8574
8545
  const withDashboardUrl = (status) => carryFullDurableTerminalStatus(
8575
8546
  status,
@@ -8597,7 +8568,7 @@ async function waitForPlayCompletionByWatch(input) {
8597
8568
  ...input.fullJson === void 0 ? {} : { full: input.fullJson }
8598
8569
  });
8599
8570
  } catch (error) {
8600
- if (_chunkTUAEM76Yjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8571
+ if (_chunk3KG2FUU4js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8601
8572
  return null;
8602
8573
  }
8603
8574
  throw error;
@@ -8678,9 +8649,9 @@ async function waitForPlayCompletionByWatch(input) {
8678
8649
  signal: controller.signal,
8679
8650
  deferLogs: !input.emitLogs,
8680
8651
  omitTerminalLogs: !input.emitLogs,
8681
- ..._chunkB3ROCZ5Yjs.isCliTraceEnabled.call(void 0, ) ? {
8652
+ ..._chunkUV7AT2D4js.isCliTraceEnabled.call(void 0, ) ? {
8682
8653
  onPoll: (observation) => {
8683
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
8654
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
8684
8655
  phase: "play_watch_poll",
8685
8656
  workflowId: input.workflowId,
8686
8657
  ms: observation.durationMs,
@@ -8694,7 +8665,7 @@ async function waitForPlayCompletionByWatch(input) {
8694
8665
  full: input.fullJson,
8695
8666
  billing: false,
8696
8667
  onStatus: async (status) => {
8697
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
8668
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
8698
8669
  phase: "play_watch_terminal_status",
8699
8670
  workflowId: input.workflowId,
8700
8671
  full: input.fullJson === true
@@ -8783,7 +8754,7 @@ async function startAndWaitForPlayCompletion(input) {
8783
8754
  signal: controller.signal,
8784
8755
  cliAdmission: useCliAdmission
8785
8756
  });
8786
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
8757
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
8787
8758
  phase: "cli.play_start_admission_attempt",
8788
8759
  ms: Date.now() - postStartedAt,
8789
8760
  ok: true,
@@ -8795,7 +8766,7 @@ async function startAndWaitForPlayCompletion(input) {
8795
8766
  });
8796
8767
  break;
8797
8768
  } catch (error) {
8798
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
8769
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
8799
8770
  phase: "cli.play_start_admission_attempt",
8800
8771
  ms: Date.now() - postStartedAt,
8801
8772
  ok: false,
@@ -8817,7 +8788,7 @@ async function startAndWaitForPlayCompletion(input) {
8817
8788
  prepared.workflowId
8818
8789
  );
8819
8790
  }
8820
- if (callerIntentV2 && error instanceof _chunkPKV5CD3Wjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
8791
+ if (callerIntentV2 && error instanceof _chunkEQR5O2D2js.CliPlayAdmissionCallerIntentV2UnsupportedError) {
8821
8792
  if (currentAttempt > 1) {
8822
8793
  throw new PlayStartOutcomeUnknownError(
8823
8794
  input.playName,
@@ -8838,7 +8809,7 @@ async function startAndWaitForPlayCompletion(input) {
8838
8809
  waitTimeoutMs: remaining === null ? null : Math.max(1, remaining)
8839
8810
  });
8840
8811
  }
8841
- if (useCliAdmission && error instanceof _chunkPKV5CD3Wjs.CliPlayAdmissionUnsupportedError) {
8812
+ if (useCliAdmission && error instanceof _chunkEQR5O2D2js.CliPlayAdmissionUnsupportedError) {
8842
8813
  if (currentAttempt > 1) {
8843
8814
  throw new PlayStartOutcomeUnknownError(
8844
8815
  input.playName,
@@ -8846,7 +8817,7 @@ async function startAndWaitForPlayCompletion(input) {
8846
8817
  prepared.workflowId
8847
8818
  );
8848
8819
  }
8849
- await _chunk7OGADAAAjs.checkPlayRunCompatibility.call(void 0,
8820
+ await _chunkYUEFDOMEjs.checkPlayRunCompatibility.call(void 0,
8850
8821
  input.client.baseUrl,
8851
8822
  input.maintenancePolicy
8852
8823
  );
@@ -8864,7 +8835,7 @@ async function startAndWaitForPlayCompletion(input) {
8864
8835
  `[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
8865
8836
  );
8866
8837
  }
8867
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
8838
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
8868
8839
  phase: "cli.play_start_json_retry",
8869
8840
  ms: 0,
8870
8841
  ok: true,
@@ -8920,8 +8891,8 @@ async function startAndWaitForPlayCompletion(input) {
8920
8891
  "PLAY_START_MISSING_RUN_ID"
8921
8892
  );
8922
8893
  }
8923
- await _optionalChain([input, 'access', _304 => _304.onRunStarted, 'optionalCall', _305 => _305(workflowId)]);
8924
- await _optionalChain([input, 'access', _306 => _306.onRunAdmitted, 'optionalCall', _307 => _307(workflowId)]);
8894
+ await _optionalChain([input, 'access', _299 => _299.onRunStarted, 'optionalCall', _300 => _300(workflowId)]);
8895
+ await _optionalChain([input, 'access', _301 => _301.onRunAdmitted, 'optionalCall', _302 => _302(workflowId)]);
8925
8896
  const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => ( _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, input.client.baseUrl, input.playName)));
8926
8897
  const rateLimited = _nullishCoalesce(started.rateLimited, () => ( null));
8927
8898
  if (!input.jsonOutput) {
@@ -8944,7 +8915,7 @@ async function startAndWaitForPlayCompletion(input) {
8944
8915
  _nullishCoalesce(input.open, () => ( false))
8945
8916
  );
8946
8917
  input.progress.phase("running");
8947
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
8918
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
8948
8919
  phase: "cli.play_start_admitted",
8949
8920
  ms: Date.now() - startedAt,
8950
8921
  ok: true,
@@ -8954,15 +8925,15 @@ async function startAndWaitForPlayCompletion(input) {
8954
8925
  inlineCompatibility
8955
8926
  });
8956
8927
  const initialTerminal = readRecord(started.finalStatus);
8957
- const initialPackage = _nullishCoalesce(readRecord(_optionalChain([initialTerminal, 'optionalAccess', _308 => _308.package])), () => ( initialTerminal));
8958
- const initialRun = readRecord(_optionalChain([initialPackage, 'optionalAccess', _309 => _309.run]));
8959
- if (initialTerminal && _optionalChain([initialRun, 'optionalAccess', _310 => _310.id]) === workflowId && initialRun.status === "completed" && (initialTerminal.runId === void 0 || initialTerminal.runId === workflowId) && (initialTerminal.status === void 0 || initialTerminal.status === "completed") && input.fullJson === true && started.finalStatusView === "full") {
8928
+ const initialPackage = _nullishCoalesce(readRecord(_optionalChain([initialTerminal, 'optionalAccess', _303 => _303.package])), () => ( initialTerminal));
8929
+ const initialRun = readRecord(_optionalChain([initialPackage, 'optionalAccess', _304 => _304.run]));
8930
+ if (initialTerminal && _optionalChain([initialRun, 'optionalAccess', _305 => _305.id]) === workflowId && initialRun.status === "completed" && (initialTerminal.runId === void 0 || initialTerminal.runId === workflowId) && (initialTerminal.status === void 0 || initialTerminal.status === "completed") && input.fullJson === true && started.finalStatusView === "full") {
8960
8931
  assertPlayWaitNotTimedOut({
8961
8932
  workflowId,
8962
8933
  startedAt,
8963
8934
  waitTimeoutMs: input.waitTimeoutMs
8964
8935
  });
8965
- const initialStatus = _chunkTUAEM76Yjs.normalizePlayStatus.call(void 0, initialTerminal);
8936
+ const initialStatus = _chunk3KG2FUU4js.normalizePlayStatus.call(void 0, initialTerminal);
8966
8937
  const status2 = await resolvePlayRunOutputStatus({
8967
8938
  client: input.client,
8968
8939
  status: initialStatus,
@@ -8970,7 +8941,7 @@ async function startAndWaitForPlayCompletion(input) {
8970
8941
  jsonOutput: input.jsonOutput,
8971
8942
  fromDurableStatus: true
8972
8943
  });
8973
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
8944
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
8974
8945
  phase: "play_watch_terminal_status",
8975
8946
  workflowId,
8976
8947
  full: true,
@@ -9009,7 +8980,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9009
8980
  () => {
9010
8981
  admissionTimedOut = true;
9011
8982
  admissionDeadline.abort();
9012
- _optionalChain([input, 'access', _311 => _311.cancelAdmissionCapability, 'optionalCall', _312 => _312()]);
8983
+ _optionalChain([input, 'access', _306 => _306.cancelAdmissionCapability, 'optionalCall', _307 => _307()]);
9013
8984
  },
9014
8985
  Math.max(1, input.waitTimeoutMs)
9015
8986
  );
@@ -9061,7 +9032,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9061
9032
  notice.value
9062
9033
  );
9063
9034
  } catch (error) {
9064
- if (callerIntentV2 && error instanceof _chunkPKV5CD3Wjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
9035
+ if (callerIntentV2 && error instanceof _chunkEQR5O2D2js.CliPlayAdmissionCallerIntentV2UnsupportedError) {
9065
9036
  const remaining = input.waitTimeoutMs === null ? null : input.waitTimeoutMs - (Date.now() - admissionStartedAt);
9066
9037
  assertPlayWaitNotTimedOut({
9067
9038
  workflowId: "",
@@ -9074,8 +9045,8 @@ async function startAndWaitForPlayCompletionByStream(input) {
9074
9045
  waitTimeoutMs: remaining === null ? null : Math.max(1, remaining)
9075
9046
  });
9076
9047
  }
9077
- if (error instanceof _chunkPKV5CD3Wjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
9078
- await _chunk7OGADAAAjs.checkPlayRunCompatibility.call(void 0,
9048
+ if (error instanceof _chunkEQR5O2D2js.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
9049
+ await _chunkYUEFDOMEjs.checkPlayRunCompatibility.call(void 0,
9079
9050
  input.client.baseUrl,
9080
9051
  input.maintenancePolicy,
9081
9052
  admissionDeadline.signal
@@ -9116,7 +9087,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9116
9087
  `[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
9117
9088
  );
9118
9089
  }
9119
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
9090
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
9120
9091
  phase: "cli.play_start_stream_retry",
9121
9092
  ms: 0,
9122
9093
  ok: true,
@@ -9137,7 +9108,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9137
9108
  `[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
9138
9109
  );
9139
9110
  }
9140
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
9111
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
9141
9112
  phase: "cli.play_start_stream_retry",
9142
9113
  ms: 0,
9143
9114
  ok: true,
@@ -9155,7 +9126,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9155
9126
  } catch (error) {
9156
9127
  if (admissionTimedOut || admissionDeadlineAt !== void 0 && Date.now() >= admissionDeadlineAt) {
9157
9128
  assertPlayWaitNotTimedOut({
9158
- workflowId: _nullishCoalesce(_optionalChain([prepared, 'optionalAccess', _313 => _313.workflowId]), () => ( "")),
9129
+ workflowId: _nullishCoalesce(_optionalChain([prepared, 'optionalAccess', _308 => _308.workflowId]), () => ( "")),
9159
9130
  startedAt: admissionStartedAt,
9160
9131
  waitTimeoutMs: input.waitTimeoutMs
9161
9132
  });
@@ -9183,7 +9154,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9183
9154
  let timedOut = false;
9184
9155
  let emittedDashboardUrl = false;
9185
9156
  let lastKnownWorkflowId = "";
9186
- let launchedRevisionId = _optionalChain([input, 'access', _314 => _314.request, 'access', _315 => _315.revisionId, 'optionalAccess', _316 => _316.trim, 'call', _317 => _317()]) || null;
9157
+ let launchedRevisionId = _optionalChain([input, 'access', _309 => _309.request, 'access', _310 => _310.revisionId, 'optionalAccess', _311 => _311.trim, 'call', _312 => _312()]) || null;
9187
9158
  let eventCount = 0;
9188
9159
  let firstRunIdMs = null;
9189
9160
  let launchConfirmed = false;
@@ -9193,8 +9164,8 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9193
9164
  const confirmAdmission = async (runId) => {
9194
9165
  if (launchConfirmed || !runId || runId === "pending") return;
9195
9166
  launchConfirmed = true;
9196
- await _optionalChain([input, 'access', _318 => _318.onRunAdmitted, 'optionalCall', _319 => _319(runId)]);
9197
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
9167
+ await _optionalChain([input, 'access', _313 => _313.onRunAdmitted, 'optionalCall', _314 => _314(runId)]);
9168
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
9198
9169
  phase: "cli.play_start_admitted",
9199
9170
  ms: Date.now() - startedAt,
9200
9171
  ok: true,
@@ -9228,7 +9199,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9228
9199
  full: input.fullJson
9229
9200
  });
9230
9201
  } catch (error) {
9231
- if (_chunkTUAEM76Yjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9202
+ if (_chunk3KG2FUU4js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9232
9203
  return null;
9233
9204
  }
9234
9205
  throw error;
@@ -9247,9 +9218,9 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9247
9218
  signal: controller.signal
9248
9219
  })) {
9249
9220
  eventCount += 1;
9250
- const expectedFullRunId = _optionalChain([input, 'access', _320 => _320.request, 'access', _321 => _321.workflowId, 'optionalAccess', _322 => _322.trim, 'call', _323 => _323()]) || lastKnownWorkflowId;
9221
+ const expectedFullRunId = _optionalChain([input, 'access', _315 => _315.request, 'access', _316 => _316.workflowId, 'optionalAccess', _317 => _317.trim, 'call', _318 => _318()]) || lastKnownWorkflowId;
9251
9222
  const eventRunId = getRunIdFromLiveEvent(event);
9252
- const pinnedRunId = input.fullJson === true && input.request.terminalStatus === "full" ? _optionalChain([input, 'access', _324 => _324.request, 'access', _325 => _325.workflowId, 'optionalAccess', _326 => _326.trim, 'call', _327 => _327()]) : void 0;
9223
+ const pinnedRunId = input.fullJson === true && input.request.terminalStatus === "full" ? _optionalChain([input, 'access', _319 => _319.request, 'access', _320 => _320.workflowId, 'optionalAccess', _321 => _321.trim, 'call', _322 => _322()]) : void 0;
9253
9224
  if (pinnedRunId && eventRunId && eventRunId !== "pending" && eventRunId !== pinnedRunId)
9254
9225
  continue;
9255
9226
  const eventRevisionId = getStringField(
@@ -9259,7 +9230,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9259
9230
  if (eventRevisionId) {
9260
9231
  launchedRevisionId = eventRevisionId;
9261
9232
  }
9262
- const eventRateLimited = _optionalChain([getEventPayload, 'call', _328 => _328(event), 'optionalAccess', _329 => _329.rateLimited]);
9233
+ const eventRateLimited = _optionalChain([getEventPayload, 'call', _323 => _323(event), 'optionalAccess', _324 => _324.rateLimited]);
9263
9234
  if (eventRateLimited && typeof eventRateLimited === "object") {
9264
9235
  notice.value = eventRateLimited;
9265
9236
  }
@@ -9268,7 +9239,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9268
9239
  lastKnownWorkflowId = eventRunId;
9269
9240
  firstRunIdMs ??= Date.now() - startedAt;
9270
9241
  if (runStartedNow) {
9271
- await _optionalChain([input, 'access', _330 => _330.onRunStarted, 'optionalCall', _331 => _331(eventRunId)]);
9242
+ await _optionalChain([input, 'access', _325 => _325.onRunStarted, 'optionalCall', _326 => _326(eventRunId)]);
9272
9243
  }
9273
9244
  }
9274
9245
  if (!launchConfirmed && eventConfirmsPlayRunLaunch(event) && eventRunId === lastKnownWorkflowId) {
@@ -9361,16 +9332,16 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9361
9332
  };
9362
9333
  }
9363
9334
  const fullPackage = getPlayRunPackage(finalStatus);
9364
- const fullRun = readRecord(_optionalChain([fullPackage, 'optionalAccess', _332 => _332.run]));
9365
- const fullSteps = _optionalChain([fullPackage, 'optionalAccess', _333 => _333.steps]);
9335
+ const fullRun = readRecord(_optionalChain([fullPackage, 'optionalAccess', _327 => _327.run]));
9336
+ const fullSteps = _optionalChain([fullPackage, 'optionalAccess', _328 => _328.steps]);
9366
9337
  const scalarStep = Array.isArray(fullSteps) ? readRecord(fullSteps[0]) : null;
9367
- const scalarExecution = readRecord(_optionalChain([scalarStep, 'optionalAccess', _334 => _334.execution]));
9368
- const completeScalarSteps = Array.isArray(fullSteps) && (_optionalChain([fullPackage, 'optionalAccess', _335 => _335.stepsExpected]) === false && fullSteps.length === 0 || _optionalChain([fullPackage, 'optionalAccess', _336 => _336.stepsExpected]) !== false && fullSteps.length === 1 && typeof _optionalChain([scalarStep, 'optionalAccess', _337 => _337.id]) === "string" && scalarStep.id.trim().length > 0 && scalarStep.kind === "step" && scalarStep.status === "completed" && _optionalChain([scalarExecution, 'optionalAccess', _338 => _338.kind]) === "completed" && scalarExecution.rows === null);
9369
- const reuseFullTerminal = input.jsonOutput && input.fullJson === true && input.request.terminalStatus === "full" && expectedFullRunId !== "" && finalStatus.runId === expectedFullRunId && _optionalChain([fullRun, 'optionalAccess', _339 => _339.id]) === expectedFullRunId && finalStatus.status === "completed" && fullRun.status === "completed" && finalStatus.finalStatusView === "full" && _optionalChain([fullPackage, 'optionalAccess', _340 => _340.resultState]) === "available" && Object.hasOwn(fullPackage, "result") && completeScalarSteps && Array.isArray(fullPackage.datasets) && fullPackage.datasets.length === 0;
9338
+ const scalarExecution = readRecord(_optionalChain([scalarStep, 'optionalAccess', _329 => _329.execution]));
9339
+ const completeScalarSteps = Array.isArray(fullSteps) && (_optionalChain([fullPackage, 'optionalAccess', _330 => _330.stepsExpected]) === false && fullSteps.length === 0 || _optionalChain([fullPackage, 'optionalAccess', _331 => _331.stepsExpected]) !== false && fullSteps.length === 1 && typeof _optionalChain([scalarStep, 'optionalAccess', _332 => _332.id]) === "string" && scalarStep.id.trim().length > 0 && scalarStep.kind === "step" && scalarStep.status === "completed" && _optionalChain([scalarExecution, 'optionalAccess', _333 => _333.kind]) === "completed" && scalarExecution.rows === null);
9340
+ const reuseFullTerminal = input.jsonOutput && input.fullJson === true && input.request.terminalStatus === "full" && expectedFullRunId !== "" && finalStatus.runId === expectedFullRunId && _optionalChain([fullRun, 'optionalAccess', _334 => _334.id]) === expectedFullRunId && finalStatus.status === "completed" && fullRun.status === "completed" && finalStatus.finalStatusView === "full" && _optionalChain([fullPackage, 'optionalAccess', _335 => _335.resultState]) === "available" && Object.hasOwn(fullPackage, "result") && completeScalarSteps && Array.isArray(fullPackage.datasets) && fullPackage.datasets.length === 0;
9370
9341
  let fromDurableStatus = reuseFullTerminal;
9371
9342
  let canonicalTerminal;
9372
9343
  const streamedTerminalPackage = getPlayRunPackage(finalStatus);
9373
- const streamedTerminalPlayRunPackage = _chunkPKV5CD3Wjs.isPlayRunPackage.call(void 0,
9344
+ const streamedTerminalPlayRunPackage = _chunkEQR5O2D2js.isPlayRunPackage.call(void 0,
9374
9345
  streamedTerminalPackage
9375
9346
  ) ? streamedTerminalPackage : null;
9376
9347
  const terminalEnvelopeIsComplete = finalStatus.status === "completed" && (event.type === "play.run.snapshot" || event.type === "play.run.final_status") && getEventPayload(event).replayed !== true && finalStatus.runId === lastKnownWorkflowId && !playRunPackageTextLedgerIncomplete(streamedTerminalPackage);
@@ -9399,7 +9370,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9399
9370
  };
9400
9371
  }
9401
9372
  if (!canonicalTerminal) {
9402
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
9373
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
9403
9374
  phase: "cli.play_start_stream_stale_terminal_ignored",
9404
9375
  ms: Date.now() - startedAt,
9405
9376
  ok: true,
@@ -9420,14 +9391,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9420
9391
  fromDurableStatus
9421
9392
  }) : canonicalTerminal;
9422
9393
  if (input.fullJson === true) {
9423
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
9394
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
9424
9395
  phase: "play_watch_terminal_status",
9425
9396
  workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
9426
9397
  full: true,
9427
9398
  source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
9428
9399
  });
9429
9400
  }
9430
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
9401
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
9431
9402
  phase: "cli.play_start_stream_terminal",
9432
9403
  ms: Date.now() - startedAt,
9433
9404
  ok: true,
@@ -9447,7 +9418,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9447
9418
  clearTimeout(timeout);
9448
9419
  }
9449
9420
  controller.abort();
9450
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
9421
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
9451
9422
  phase: "cli.play_start_stream_handoff_to_tail",
9452
9423
  ms: Date.now() - startedAt,
9453
9424
  ok: true,
@@ -9478,7 +9449,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9478
9449
  if (timedOut) {
9479
9450
  const terminal = await fetchKnownTerminalStatus();
9480
9451
  if (terminal) {
9481
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
9452
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
9482
9453
  phase: "cli.play_start_stream_timeout_status_reconcile",
9483
9454
  ms: Date.now() - startedAt,
9484
9455
  ok: true,
@@ -9498,7 +9469,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9498
9469
  lastPhase
9499
9470
  });
9500
9471
  }
9501
- if (lastKnownWorkflowId && (terminalWindowExpired || _chunkTUAEM76Yjs.isTransientPlayRunReadError.call(void 0, error))) {
9472
+ if (lastKnownWorkflowId && (terminalWindowExpired || _chunk3KG2FUU4js.isTransientPlayRunReadError.call(void 0, error))) {
9502
9473
  if (timeout) {
9503
9474
  clearTimeout(timeout);
9504
9475
  }
@@ -9509,7 +9480,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9509
9480
  `
9510
9481
  );
9511
9482
  }
9512
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
9483
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
9513
9484
  phase: "cli.play_start_stream_reconnect",
9514
9485
  ms: Date.now() - startedAt,
9515
9486
  ok: true,
@@ -9536,7 +9507,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9536
9507
  });
9537
9508
  }
9538
9509
  if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
9539
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
9510
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
9540
9511
  phase: "cli.play_start_stream_transient_failure",
9541
9512
  ms: Date.now() - startedAt,
9542
9513
  ok: false,
@@ -9564,7 +9535,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9564
9535
  `[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
9565
9536
  );
9566
9537
  }
9567
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
9538
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
9568
9539
  phase: "cli.play_start_stream_reconnect",
9569
9540
  ms: Date.now() - startedAt,
9570
9541
  ok: true,
@@ -9644,29 +9615,29 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
9644
9615
  "logs"
9645
9616
  ]);
9646
9617
  function formatPlayLogLine(rawLine, state) {
9647
- const classified = _chunkTUAEM76Yjs.classifyLogLine.call(void 0, rawLine);
9618
+ const classified = _chunk3KG2FUU4js.classifyLogLine.call(void 0, rawLine);
9648
9619
  const line = classified.line;
9649
9620
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
9650
- const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _341 => _341[1]]) ? new Date(timestampMatch[1]) : null;
9621
+ const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _336 => _336[1]]) ? new Date(timestampMatch[1]) : null;
9651
9622
  const timestamp = parsedTimestamp && !Number.isNaN(parsedTimestamp.getTime()) ? parsedTimestamp.toLocaleTimeString("en-US", {
9652
9623
  hour12: false,
9653
9624
  hour: "2-digit",
9654
9625
  minute: "2-digit",
9655
9626
  second: "2-digit"
9656
9627
  }) : null;
9657
- const message = _nullishCoalesce(_optionalChain([timestampMatch, 'optionalAccess', _342 => _342[2]]), () => ( line));
9628
+ const message = _nullishCoalesce(_optionalChain([timestampMatch, 'optionalAccess', _337 => _337[2]]), () => ( line));
9658
9629
  const prefix = timestamp ? `${timestamp} ` : "";
9659
9630
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
9660
9631
  const providerWait = formatProviderCapacityWaitLogLine(line);
9661
9632
  if (providerWait && !state.verbose) {
9662
- return _chunkTUAEM76Yjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9633
+ return _chunk3KG2FUU4js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9663
9634
  }
9664
9635
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
9665
9636
  if (mapProgress && !state.verbose) {
9666
- return _chunkTUAEM76Yjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9637
+ return _chunk3KG2FUU4js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9667
9638
  }
9668
9639
  if (/\[worker\] picked up run\b/.test(message)) {
9669
- if (!_chunkTUAEM76Yjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9640
+ if (!_chunk3KG2FUU4js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9670
9641
  return null;
9671
9642
  }
9672
9643
  if (state.emittedRunnerStarted) {
@@ -9679,7 +9650,7 @@ function formatPlayLogLine(rawLine, state) {
9679
9650
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
9680
9651
  );
9681
9652
  if (mapStart) {
9682
- if (!_chunkTUAEM76Yjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9653
+ if (!_chunk3KG2FUU4js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9683
9654
  return null;
9684
9655
  }
9685
9656
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -9689,7 +9660,7 @@ function formatPlayLogLine(rawLine, state) {
9689
9660
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
9690
9661
  );
9691
9662
  if (mapDone) {
9692
- if (!_chunkTUAEM76Yjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9663
+ if (!_chunk3KG2FUU4js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9693
9664
  return null;
9694
9665
  }
9695
9666
  const [, results, executed, cached] = mapDone;
@@ -9871,20 +9842,20 @@ function collectDatasetHandleLines(value, path = "result") {
9871
9842
  function buildRunWarnings(status, rowsInfo) {
9872
9843
  const rowOutcomes = readRowOutcomeSummary(status);
9873
9844
  const result = readRecord(status.result);
9874
- const metadata = readRecord(_optionalChain([result, 'optionalAccess', _343 => _343._metadata]));
9875
- const outputWarnings = Array.isArray(_optionalChain([metadata, 'optionalAccess', _344 => _344.outputWarnings])) ? metadata.outputWarnings.map((warning) => readRecord(warning)).filter((warning) => {
9845
+ const metadata = readRecord(_optionalChain([result, 'optionalAccess', _338 => _338._metadata]));
9846
+ const outputWarnings = Array.isArray(_optionalChain([metadata, 'optionalAccess', _339 => _339.outputWarnings])) ? metadata.outputWarnings.map((warning) => readRecord(warning)).filter((warning) => {
9876
9847
  if (!warning) return false;
9877
9848
  return !(rowsInfo && !rowsInfo.complete && warning.reason === "array_preview_limit" && warning.originalItems === rowsInfo.totalRows && warning.retainedItems === rowsInfo.rows.length);
9878
- }).map((warning) => _optionalChain([warning, 'optionalAccess', _345 => _345.message])).filter(
9849
+ }).map((warning) => _optionalChain([warning, 'optionalAccess', _340 => _340.message])).filter(
9879
9850
  (message) => typeof message === "string" && message.trim().length > 0
9880
9851
  ).slice(0, 16) : [];
9881
- const rowOutcomeWarnings = _optionalChain([rowOutcomes, 'optionalAccess', _346 => _346.hasRowFailures]) ? [
9852
+ const rowOutcomeWarnings = _optionalChain([rowOutcomes, 'optionalAccess', _341 => _341.hasRowFailures]) ? [
9882
9853
  `${status.status === "completed" ? "Run completed" : "Run ended"} with ${formatInteger(rowOutcomes.failedRows)} failed row(s); inspect the persisted failed rows before treating the output as complete.`
9883
9854
  ] : [];
9884
- const supersededRowNotices = (_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _347 => _347.supersededRows]), () => ( 0))) > 0 ? [
9855
+ const supersededRowNotices = (_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _342 => _342.supersededRows]), () => ( 0))) > 0 ? [
9885
9856
  `Latest-write-wins: ${formatSupersededRowsNotice(_nullishCoalesce(rowOutcomes.supersededRows, () => ( 0)))}; the newer write still owns that Runtime Sheet row.`
9886
9857
  ] : [];
9887
- if (status.status === "completed" && _optionalChain([rowsInfo, 'optionalAccess', _348 => _348.totalRows]) === 0) {
9858
+ if (status.status === "completed" && _optionalChain([rowsInfo, 'optionalAccess', _343 => _343.totalRows]) === 0) {
9888
9859
  return [
9889
9860
  ...rowOutcomeWarnings,
9890
9861
  ...supersededRowNotices,
@@ -9903,7 +9874,7 @@ function buildRunWarnings(status, rowsInfo) {
9903
9874
  return [...rowOutcomeWarnings, ...supersededRowNotices, ...outputWarnings];
9904
9875
  }
9905
9876
  function buildRunNextCommands(status) {
9906
- const runId = _optionalChain([status, 'access', _349 => _349.runId, 'optionalAccess', _350 => _350.trim, 'call', _351 => _351()]);
9877
+ const runId = _optionalChain([status, 'access', _344 => _344.runId, 'optionalAccess', _345 => _345.trim, 'call', _346 => _346()]);
9907
9878
  if (!runId) {
9908
9879
  const playName = extractRunPlayName(status);
9909
9880
  return playName ? {
@@ -10055,14 +10026,14 @@ function extractToolIdFromErrorText(text) {
10055
10026
  return null;
10056
10027
  }
10057
10028
  const lowerToolMatch = /\btool\s+([A-Za-z0-9_.:-]+)\s+\d{3}\b/.exec(text);
10058
- if (_optionalChain([lowerToolMatch, 'optionalAccess', _352 => _352[1]])) {
10029
+ if (_optionalChain([lowerToolMatch, 'optionalAccess', _347 => _347[1]])) {
10059
10030
  return lowerToolMatch[1];
10060
10031
  }
10061
10032
  const upperToolMatch = /\bTool\s+([A-Za-z0-9_.:-]+)\s+failed\b/.exec(text);
10062
- return _nullishCoalesce(_optionalChain([upperToolMatch, 'optionalAccess', _353 => _353[1]]), () => ( null));
10033
+ return _nullishCoalesce(_optionalChain([upperToolMatch, 'optionalAccess', _348 => _348[1]]), () => ( null));
10063
10034
  }
10064
10035
  function isInsufficientCreditsBilling(billing) {
10065
- return _optionalChain([billing, 'optionalAccess', _354 => _354.kind]) === "insufficient_credits";
10036
+ return _optionalChain([billing, 'optionalAccess', _349 => _349.kind]) === "insufficient_credits";
10066
10037
  }
10067
10038
  function extractBillingForStatus(status, error) {
10068
10039
  const errorBilling = getObjectField(status, "errorBilling");
@@ -10104,8 +10075,8 @@ function formatInsufficientCreditsMessage(input) {
10104
10075
  function buildInsufficientCreditsSummaryLines(input) {
10105
10076
  const progress = input.status.progress;
10106
10077
  const rowsInfo = extractCanonicalRowsInfo(input.status);
10107
- const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "completed"), () => ( getNumericField(progress, "completedRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _355 => _355.rows, 'access', _356 => _356.length]))), () => ( null));
10108
- const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "total"), () => ( getNumericField(progress, "totalRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _357 => _357.totalRows]))), () => ( null));
10078
+ const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "completed"), () => ( getNumericField(progress, "completedRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _350 => _350.rows, 'access', _351 => _351.length]))), () => ( null));
10079
+ const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "total"), () => ( getNumericField(progress, "totalRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _352 => _352.totalRows]))), () => ( null));
10109
10080
  const lines = [
10110
10081
  " status: stopped_insufficient_credits",
10111
10082
  completed === null ? " completed rows: unknown" : ` completed rows: ${formatInteger(completed)}${total !== null ? ` of ${formatInteger(total)}` : ""}`,
@@ -10124,7 +10095,7 @@ function buildInsufficientCreditsSummaryLines(input) {
10124
10095
  lines.push(" ask user: ask whether they want to add Deepline credits");
10125
10096
  lines.push(` top up after approval: ${recovery.topUp}`);
10126
10097
  lines.push(` checkout fallback: ${recovery.checkout}`);
10127
- const runId = _optionalChain([input, 'access', _358 => _358.status, 'access', _359 => _359.runId, 'optionalAccess', _360 => _360.trim, 'call', _361 => _361()]);
10098
+ const runId = _optionalChain([input, 'access', _353 => _353.status, 'access', _354 => _354.runId, 'optionalAccess', _355 => _355.trim, 'call', _356 => _356()]);
10128
10099
  if (runId) {
10129
10100
  lines.push(` inspect: deepline runs get ${runId}`);
10130
10101
  lines.push(
@@ -10206,10 +10177,10 @@ function normalizeRunStatusForEnvelope(status) {
10206
10177
  function normalizeProgressForEnvelope(status, rowsInfo) {
10207
10178
  const progress = status.progress;
10208
10179
  const rowOutcomes = readRowOutcomeSummary(status);
10209
- const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _362 => _362.totalRows]), () => ( getNumericField(progress, "totalRows"))), () => ( getNumericField(progress, "total"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _363 => _363.totalRows]))), () => ( null));
10210
- const failed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _364 => _364.failedRows]), () => ( getNumericField(progress, "failed"))), () => ( getNumericField(progress, "failedRows"))), () => ( null));
10211
- const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _365 => _365.completedRows]), () => ( getNumericField(progress, "completed"))), () => ( getNumericField(progress, "completedRows"))), () => ( (status.status === "completed" ? total : null)));
10212
- const supersededRows = _nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _366 => _366.supersededRows]), () => ( getNumericField(progress, "supersededRows")));
10180
+ const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _357 => _357.totalRows]), () => ( getNumericField(progress, "totalRows"))), () => ( getNumericField(progress, "total"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _358 => _358.totalRows]))), () => ( null));
10181
+ const failed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _359 => _359.failedRows]), () => ( getNumericField(progress, "failed"))), () => ( getNumericField(progress, "failedRows"))), () => ( null));
10182
+ const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _360 => _360.completedRows]), () => ( getNumericField(progress, "completed"))), () => ( getNumericField(progress, "completedRows"))), () => ( (status.status === "completed" ? total : null)));
10183
+ const supersededRows = _nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _361 => _361.supersededRows]), () => ( getNumericField(progress, "supersededRows")));
10213
10184
  const supersededOffset = _nullishCoalesce(supersededRows, () => ( 0));
10214
10185
  const progressPending = getNumericField(progress, "pending");
10215
10186
  const pending = _nullishCoalesce((progressPending !== null ? Math.max(0, progressPending - supersededOffset) : null), () => ( (typeof total === "number" && typeof completed === "number" && typeof failed === "number" ? Math.max(0, total - completed - failed - supersededOffset) : null)));
@@ -10279,7 +10250,7 @@ function normalizeErrorsForEnvelope(status, error) {
10279
10250
  ];
10280
10251
  }
10281
10252
  function normalizeLogsForEnvelope(status) {
10282
- const logs = Array.isArray(_optionalChain([status, 'access', _367 => _367.progress, 'optionalAccess', _368 => _368.logs])) ? status.progress.logs : [];
10253
+ const logs = Array.isArray(_optionalChain([status, 'access', _362 => _362.progress, 'optionalAccess', _363 => _363.logs])) ? status.progress.logs : [];
10283
10254
  const totalCount = logs.length;
10284
10255
  const entries = logs.slice(Math.max(0, logs.length - RUN_LOG_PREVIEW_LIMIT));
10285
10256
  const firstSequence = entries.length === 0 ? null : logs.length - entries.length + 1;
@@ -10322,12 +10293,12 @@ function getPlayRunPackage(status) {
10322
10293
  return isPlayRunPackageValue(packaged) ? packaged : null;
10323
10294
  }
10324
10295
  function playStatusRunUrl(status) {
10325
- const run = readRecord(_optionalChain([getPlayRunPackage, 'call', _369 => _369(status), 'optionalAccess', _370 => _370.run]));
10296
+ const run = readRecord(_optionalChain([getPlayRunPackage, 'call', _364 => _364(status), 'optionalAccess', _365 => _365.run]));
10326
10297
  const text = (value) => typeof value === "string" && value ? value : void 0;
10327
10298
  return resolvePlayRunUrl({
10328
- runId: _nullishCoalesce(text(_optionalChain([run, 'optionalAccess', _371 => _371.id])), () => ( status.runId)),
10329
- runUrl: _nullishCoalesce(status.runUrl, () => ( text(_optionalChain([run, 'optionalAccess', _372 => _372.runUrl])))),
10330
- dashboardUrl: _nullishCoalesce(status.dashboardUrl, () => ( text(_optionalChain([run, 'optionalAccess', _373 => _373.dashboardUrl]))))
10299
+ runId: _nullishCoalesce(text(_optionalChain([run, 'optionalAccess', _366 => _366.id])), () => ( status.runId)),
10300
+ runUrl: _nullishCoalesce(status.runUrl, () => ( text(_optionalChain([run, 'optionalAccess', _367 => _367.runUrl])))),
10301
+ dashboardUrl: _nullishCoalesce(status.dashboardUrl, () => ( text(_optionalChain([run, 'optionalAccess', _368 => _368.dashboardUrl]))))
10331
10302
  });
10332
10303
  }
10333
10304
  function withTerminalPlayIdentity(status, playName) {
@@ -10345,7 +10316,7 @@ function compactPlayStatus(status) {
10345
10316
  const packaged = getPlayRunPackage(status);
10346
10317
  if (packaged) {
10347
10318
  const packagedRun = readRecord(packaged.run);
10348
- const packagedError = typeof _optionalChain([packagedRun, 'optionalAccess', _374 => _374.error]) === "string" ? packagedRun.error : null;
10319
+ const packagedError = typeof _optionalChain([packagedRun, 'optionalAccess', _369 => _369.error]) === "string" ? packagedRun.error : null;
10349
10320
  const error2 = _nullishCoalesce(selectRunErrorForDisplay(status), () => ( (typeof status.error === "string" ? String(status.error) : packagedError)));
10350
10321
  const compactError = error2 ? compactRunErrorForEnvelope(error2, status.runId) : null;
10351
10322
  const rowOutcomes2 = readRowOutcomeSummary(status);
@@ -10497,7 +10468,7 @@ function formatTopValuesPart(value) {
10497
10468
  }
10498
10469
  function formatPackageDatasetSummaryLines(summary, indent = " ") {
10499
10470
  const record3 = readRecord(summary);
10500
- const columnStats = readRecord(_optionalChain([record3, 'optionalAccess', _375 => _375.columnStats]));
10471
+ const columnStats = readRecord(_optionalChain([record3, 'optionalAccess', _370 => _370.columnStats]));
10501
10472
  if (!record3 || !columnStats) {
10502
10473
  return [];
10503
10474
  }
@@ -10585,7 +10556,7 @@ function packageDatasetRecords(packaged) {
10585
10556
  if (catalog.length > 0) return catalog;
10586
10557
  return readRecordArray(packaged.steps).flatMap((step) => {
10587
10558
  const output = readRecord(step.output);
10588
- return _optionalChain([output, 'optionalAccess', _376 => _376.kind]) === "dataset" ? [output] : [];
10559
+ return _optionalChain([output, 'optionalAccess', _371 => _371.kind]) === "dataset" ? [output] : [];
10589
10560
  });
10590
10561
  }
10591
10562
  function packageReturnedDatasetIdentity(packaged) {
@@ -10594,7 +10565,7 @@ function packageReturnedDatasetIdentity(packaged) {
10594
10565
  const outputs = _nullishCoalesce(readRecord(packaged.outputs), () => ( {}));
10595
10566
  for (const outputValue of Object.values(outputs)) {
10596
10567
  const output = readRecord(outputValue);
10597
- if (_optionalChain([output, 'optionalAccess', _377 => _377.kind]) !== "dataset") continue;
10568
+ if (_optionalChain([output, 'optionalAccess', _372 => _372.kind]) !== "dataset") continue;
10598
10569
  if (typeof output.datasetId === "string" && output.datasetId.trim()) {
10599
10570
  datasetIds.add(output.datasetId.trim());
10600
10571
  }
@@ -10630,7 +10601,7 @@ function formatRunStepProgress(progress, includeRowOutcomes = false) {
10630
10601
  }
10631
10602
  function formatPackageDatasetActionLines(packaged, options) {
10632
10603
  const returned = packageReturnedDatasetIdentity(packaged);
10633
- const includeSummary = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _378 => _378.includeSummary]), () => ( true));
10604
+ const includeSummary = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _373 => _373.includeSummary]), () => ( true));
10634
10605
  const lines = [];
10635
10606
  const steps = readRecordArray(packaged.steps);
10636
10607
  const stepsByDatasetId = /* @__PURE__ */ new Map();
@@ -10639,10 +10610,10 @@ function formatPackageDatasetActionLines(packaged, options) {
10639
10610
  for (const step of steps) {
10640
10611
  if (step.kind !== "dataset") continue;
10641
10612
  const output = readRecord(step.output);
10642
- if (typeof _optionalChain([output, 'optionalAccess', _379 => _379.datasetId]) === "string") {
10613
+ if (typeof _optionalChain([output, 'optionalAccess', _374 => _374.datasetId]) === "string") {
10643
10614
  stepsByDatasetId.set(output.datasetId, step);
10644
10615
  }
10645
- if (typeof _optionalChain([output, 'optionalAccess', _380 => _380.path]) === "string") {
10616
+ if (typeof _optionalChain([output, 'optionalAccess', _375 => _375.path]) === "string") {
10646
10617
  stepsByPath.set(output.path, step);
10647
10618
  }
10648
10619
  if (typeof step.id === "string") {
@@ -10656,8 +10627,8 @@ function formatPackageDatasetActionLines(packaged, options) {
10656
10627
  const category = isReturned ? "returned" : dataset.recovered === true ? "recovered" : "persisted";
10657
10628
  const rowCount = typeof dataset.rowCount === "number" && Number.isFinite(dataset.rowCount) ? Math.max(0, Math.trunc(dataset.rowCount)) : null;
10658
10629
  const lifecycle = readRecord(dataset.lifecycle);
10659
- const countUnconfirmed = _optionalChain([lifecycle, 'optionalAccess', _381 => _381.complete]) === false;
10660
- const persistedLowerBound = typeof _optionalChain([lifecycle, 'optionalAccess', _382 => _382.persistedRowsAtLeast]) === "number" && Number.isFinite(lifecycle.persistedRowsAtLeast) ? Math.max(0, Math.trunc(lifecycle.persistedRowsAtLeast)) : 0;
10630
+ const countUnconfirmed = _optionalChain([lifecycle, 'optionalAccess', _376 => _376.complete]) === false;
10631
+ const persistedLowerBound = typeof _optionalChain([lifecycle, 'optionalAccess', _377 => _377.persistedRowsAtLeast]) === "number" && Number.isFinite(lifecycle.persistedRowsAtLeast) ? Math.max(0, Math.trunc(lifecycle.persistedRowsAtLeast)) : 0;
10661
10632
  const actions2 = _nullishCoalesce(readRecord(dataset.actions), () => ( {}));
10662
10633
  if (countUnconfirmed) {
10663
10634
  lines.push(
@@ -10675,7 +10646,7 @@ function formatPackageDatasetActionLines(packaged, options) {
10675
10646
  }
10676
10647
  }
10677
10648
  const step = _nullishCoalesce(_nullishCoalesce((datasetId ? stepsByDatasetId.get(datasetId) : void 0), () => ( stepsByPath.get(path))), () => ( (typeof dataset.tableNamespace === "string" ? stepsByNamespace.get(dataset.tableNamespace) : void 0)));
10678
- const progress = readRecord(_optionalChain([step, 'optionalAccess', _383 => _383.progress]));
10649
+ const progress = readRecord(_optionalChain([step, 'optionalAccess', _378 => _378.progress]));
10679
10650
  if (progress) {
10680
10651
  lines.push(` progress: ${formatRunStepProgress(progress)}`);
10681
10652
  }
@@ -10689,10 +10660,10 @@ function formatPackageDatasetActionLines(packaged, options) {
10689
10660
  }
10690
10661
  const exportAction = readRecord(actions2.exportCsv);
10691
10662
  const exportCommand = actionToCommand(exportAction);
10692
- const exportScope = readRecord(_optionalChain([exportAction, 'optionalAccess', _384 => _384.scope]));
10663
+ const exportScope = readRecord(_optionalChain([exportAction, 'optionalAccess', _379 => _379.scope]));
10693
10664
  const queryAction = readRecord(actions2.query);
10694
- const queryScope = readRecord(_optionalChain([queryAction, 'optionalAccess', _385 => _385.scope]));
10695
- const runQueryCommand = _optionalChain([queryScope, 'optionalAccess', _386 => _386.kind]) === "run" ? actionToCommand(queryAction) : null;
10665
+ const queryScope = readRecord(_optionalChain([queryAction, 'optionalAccess', _380 => _380.scope]));
10666
+ const runQueryCommand = _optionalChain([queryScope, 'optionalAccess', _381 => _381.kind]) === "run" ? actionToCommand(queryAction) : null;
10696
10667
  const currentQueryCommand = actionToCommand(actions2.queryCurrentTable);
10697
10668
  const legacyQueryCommand = actionToCommand(actions2.query);
10698
10669
  if (runQueryCommand) {
@@ -10704,11 +10675,11 @@ function formatPackageDatasetActionLines(packaged, options) {
10704
10675
  }
10705
10676
  if (exportCommand) {
10706
10677
  lines.push(
10707
- _optionalChain([exportScope, 'optionalAccess', _387 => _387.kind]) === "database" ? ` export current table (may include other runs): ${exportCommand}` : ` export this run: ${exportCommand}`
10678
+ _optionalChain([exportScope, 'optionalAccess', _382 => _382.kind]) === "database" ? ` export current table (may include other runs): ${exportCommand}` : ` export this run: ${exportCommand}`
10708
10679
  );
10709
10680
  }
10710
10681
  const unavailable = readRecord(dataset.exportUnavailable);
10711
- if (typeof _optionalChain([unavailable, 'optionalAccess', _388 => _388.reason]) === "string" && typeof unavailable.message === "string") {
10682
+ if (typeof _optionalChain([unavailable, 'optionalAccess', _383 => _383.reason]) === "string" && typeof unavailable.message === "string") {
10712
10683
  lines.push(
10713
10684
  ` export unavailable (${unavailable.reason}): ${unavailable.message}`
10714
10685
  );
@@ -10725,7 +10696,7 @@ function packageSavedRowCount(packaged) {
10725
10696
  }
10726
10697
  function runtimeLimitWindowLabel(runtimeLimitFailure) {
10727
10698
  const message = _nullishCoalesce(getStringField(runtimeLimitFailure, "message"), () => ( ""));
10728
- const configuredSeconds = _optionalChain([/\bconfigured\s+(\d+)\s+second(?:s)?\s+runtime limit\b/i, 'access', _389 => _389.exec, 'call', _390 => _390(message), 'optionalAccess', _391 => _391[1]]);
10699
+ const configuredSeconds = _optionalChain([/\bconfigured\s+(\d+)\s+second(?:s)?\s+runtime limit\b/i, 'access', _384 => _384.exec, 'call', _385 => _385(message), 'optionalAccess', _386 => _386[1]]);
10729
10700
  if (configuredSeconds) {
10730
10701
  const seconds = Number(configuredSeconds);
10731
10702
  if (Number.isSafeInteger(seconds) && seconds > 0) {
@@ -10772,7 +10743,7 @@ function formatPackageValueOutputLines(packaged) {
10772
10743
  if (!outputs) return [];
10773
10744
  const returned = Object.entries(outputs).filter(([, output]) => {
10774
10745
  const record3 = readRecord(output);
10775
- return _optionalChain([record3, 'optionalAccess', _392 => _392.kind]) === "dataset" || _optionalChain([record3, 'optionalAccess', _393 => _393.kind]) === "value" && Object.prototype.hasOwnProperty.call(record3, "value");
10746
+ return _optionalChain([record3, 'optionalAccess', _387 => _387.kind]) === "dataset" || _optionalChain([record3, 'optionalAccess', _388 => _388.kind]) === "value" && Object.prototype.hasOwnProperty.call(record3, "value");
10776
10747
  });
10777
10748
  if (returned.length === 0) return [];
10778
10749
  const datasets = packageDatasetRecords(packaged);
@@ -10792,10 +10763,10 @@ function formatPackageValueOutputLines(packaged) {
10792
10763
  (candidate) => typeof output.datasetId === "string" && candidate.datasetId === output.datasetId || candidate.path === path
10793
10764
  );
10794
10765
  const stepOutput = datasetSteps.map((step) => readRecord(step.output)).find(
10795
- (candidate) => typeof output.datasetId === "string" && _optionalChain([candidate, 'optionalAccess', _394 => _394.datasetId]) === output.datasetId || _optionalChain([candidate, 'optionalAccess', _395 => _395.path]) === path
10766
+ (candidate) => typeof output.datasetId === "string" && _optionalChain([candidate, 'optionalAccess', _389 => _389.datasetId]) === output.datasetId || _optionalChain([candidate, 'optionalAccess', _390 => _390.path]) === path
10796
10767
  );
10797
- const preview = readRecord(_nullishCoalesce(_optionalChain([stepOutput, 'optionalAccess', _396 => _396.preview]), () => ( _optionalChain([dataset, 'optionalAccess', _397 => _397.preview]))));
10798
- const rows = Array.isArray(_optionalChain([preview, 'optionalAccess', _398 => _398.rows])) ? preview.rows.slice(0, 2) : [];
10768
+ const preview = readRecord(_nullishCoalesce(_optionalChain([stepOutput, 'optionalAccess', _391 => _391.preview]), () => ( _optionalChain([dataset, 'optionalAccess', _392 => _392.preview]))));
10769
+ const rows = Array.isArray(_optionalChain([preview, 'optionalAccess', _393 => _393.rows])) ? preview.rows.slice(0, 2) : [];
10799
10770
  if (rows.length > 0) {
10800
10771
  lines.push(` sample rows (${rows.length}):`);
10801
10772
  lines.push(
@@ -10821,7 +10792,7 @@ function formatPackageValueOutputLines(packaged) {
10821
10792
  return lines;
10822
10793
  }
10823
10794
  function authoredPackageStackFrames(packaged) {
10824
- const stack = readRecordArray(packaged.errors).map((entry) => typeof entry.stack === "string" ? entry.stack : null).find((candidate) => Boolean(_optionalChain([candidate, 'optionalAccess', _399 => _399.trim, 'call', _400 => _400()])));
10795
+ const stack = readRecordArray(packaged.errors).map((entry) => typeof entry.stack === "string" ? entry.stack : null).find((candidate) => Boolean(_optionalChain([candidate, 'optionalAccess', _394 => _394.trim, 'call', _395 => _395()])));
10825
10796
  if (!stack) return [];
10826
10797
  return stack.split("\n").map((line) => line.trim()).filter((line) => line.startsWith("at ")).filter(
10827
10798
  (line) => !line.includes("/virtual/deepline-plays/") && !line.includes("/apps/play-runner/") && !line.includes("/shared_libs/play-runtime/") && !line.includes("node:internal")
@@ -10853,9 +10824,9 @@ function activityIsoTimestamp(value) {
10853
10824
  }
10854
10825
  function buildRunActivityTextLines(run) {
10855
10826
  const activity = readRecord(run.activity);
10856
- const observation = readRecord(_optionalChain([activity, 'optionalAccess', _401 => _401.observation]));
10857
- const state = readRecord(_optionalChain([observation, 'optionalAccess', _402 => _402.state]));
10858
- const target = readRecord(_optionalChain([observation, 'optionalAccess', _403 => _403.target]));
10827
+ const observation = readRecord(_optionalChain([activity, 'optionalAccess', _396 => _396.observation]));
10828
+ const state = readRecord(_optionalChain([observation, 'optionalAccess', _397 => _397.state]));
10829
+ const target = readRecord(_optionalChain([observation, 'optionalAccess', _398 => _398.target]));
10859
10830
  if (!activity || !observation || !state) return [];
10860
10831
  const kind = typeof state.kind === "string" ? state.kind : "unknown";
10861
10832
  if (kind === "completed") return [];
@@ -10900,11 +10871,11 @@ function buildRunActivityTextLines(run) {
10900
10871
  }
10901
10872
  function formatObservedRunCounter(value) {
10902
10873
  const counter = readRecord(value);
10903
- const count2 = _optionalChain([counter, 'optionalAccess', _404 => _404.value]);
10874
+ const count2 = _optionalChain([counter, 'optionalAccess', _399 => _399.value]);
10904
10875
  if (typeof count2 !== "number" || !Number.isSafeInteger(count2) || count2 < 0) {
10905
10876
  return "unknown";
10906
10877
  }
10907
- return _optionalChain([counter, 'optionalAccess', _405 => _405.confirmed]) === true ? formatInteger(count2) : `${formatInteger(count2)} observed`;
10878
+ return _optionalChain([counter, 'optionalAccess', _400 => _400.confirmed]) === true ? formatInteger(count2) : `${formatInteger(count2)} observed`;
10908
10879
  }
10909
10880
  function buildRunStatusEvidenceTextLines(packaged) {
10910
10881
  const evidence = readRecord(packaged.runStatus);
@@ -10917,13 +10888,13 @@ function buildRunStatusEvidenceTextLines(packaged) {
10917
10888
  );
10918
10889
  }
10919
10890
  const source = readRecord(evidence.source);
10920
- if (_optionalChain([source, 'optionalAccess', _406 => _406.aligned]) === false) {
10891
+ if (_optionalChain([source, 'optionalAccess', _401 => _401.aligned]) === false) {
10921
10892
  lines.push(
10922
10893
  ` consistency: run snapshot event ${String(source.runSnapshotLedgerNextSeq)} and progress event ${String(source.ledgerNextSeq)} differ; retry this read to align them`
10923
10894
  );
10924
10895
  }
10925
10896
  const focus = readRecord(evidence.focusStep);
10926
- const rows = readRecord(_optionalChain([focus, 'optionalAccess', _407 => _407.rows]));
10897
+ const rows = readRecord(_optionalChain([focus, 'optionalAccess', _402 => _402.rows]));
10927
10898
  if (focus) {
10928
10899
  const id = typeof focus.id === "string" && focus.id.trim() ? focus.id.trim() : "unknown step";
10929
10900
  const label = typeof focus.label === "string" && focus.label.trim() ? ` (${focus.label.trim()})` : "";
@@ -10931,7 +10902,7 @@ function buildRunStatusEvidenceTextLines(packaged) {
10931
10902
  const known = readRecordArray(packaged.steps).find(
10932
10903
  (step) => typeof step.id === "string" && (id === step.id || id.endsWith(`:${step.id}`)) && typeof step.label === "string"
10933
10904
  );
10934
- const state = typeof _optionalChain([known, 'optionalAccess', _408 => _408.label]) === "string" ? known.label : typeof focus.status === "string" && focus.status.trim() ? formatNodeExecutionState(
10905
+ const state = typeof _optionalChain([known, 'optionalAccess', _403 => _403.label]) === "string" ? known.label : typeof focus.status === "string" && focus.status.trim() ? formatNodeExecutionState(
10935
10906
  deriveNodeExecutionState({
10936
10907
  reported: {
10937
10908
  status: focus.status.trim(),
@@ -10941,7 +10912,7 @@ function buildRunStatusEvidenceTextLines(packaged) {
10941
10912
  total: rows.total
10942
10913
  } : null
10943
10914
  },
10944
- runStatus: _optionalChain([run, 'optionalAccess', _409 => _409.status])
10915
+ runStatus: _optionalChain([run, 'optionalAccess', _404 => _404.status])
10945
10916
  })
10946
10917
  ) : null;
10947
10918
  lines.push(` current step: ${id}${label}${state ? `: ${state}` : ""}`);
@@ -10989,7 +10960,7 @@ function formatRecentRunLogLines(value) {
10989
10960
  (line) => typeof line === "string"
10990
10961
  );
10991
10962
  if (tail.length === 0) return [];
10992
- const shown = tail.map((line) => _chunkTUAEM76Yjs.classifyLogLine.call(void 0, line)).filter(
10963
+ const shown = tail.map((line) => _chunk3KG2FUU4js.classifyLogLine.call(void 0, line)).filter(
10993
10964
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
10994
10965
  ).slice(-8);
10995
10966
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11033,7 +11004,7 @@ function buildRunPackageTextLines(packaged) {
11033
11004
  lines.push(` recovery: ${mode}${sourceRunId}`);
11034
11005
  }
11035
11006
  const runError = typeof run.error === "string" && run.error.trim() ? run.error.trim() : null;
11036
- const structuredRuntimeLimitMessage = typeof _optionalChain([runtimeLimitFailure, 'optionalAccess', _410 => _410.message]) === "string" && runtimeLimitFailure.message.trim() ? `${typeof runtimeLimitFailure.code === "string" ? runtimeLimitFailure.code : "RUNTIME_LIMIT_EXCEEDED"}: ${runtimeLimitFailure.message.trim()}` : null;
11007
+ const structuredRuntimeLimitMessage = typeof _optionalChain([runtimeLimitFailure, 'optionalAccess', _405 => _405.message]) === "string" && runtimeLimitFailure.message.trim() ? `${typeof runtimeLimitFailure.code === "string" ? runtimeLimitFailure.code : "RUNTIME_LIMIT_EXCEEDED"}: ${runtimeLimitFailure.message.trim()}` : null;
11037
11008
  const displayRunError = _nullishCoalesce(structuredRuntimeLimitMessage, () => ( runError));
11038
11009
  if (!isRuntimeLimitCheckpoint && displayRunError && (status === "failed" || status === "cancelled")) {
11039
11010
  lines.push(` error: ${truncateErrorForDisplay(displayRunError, runId)}`);
@@ -11044,11 +11015,11 @@ function buildRunPackageTextLines(packaged) {
11044
11015
  }
11045
11016
  }
11046
11017
  const failedLogs = readRecord(packaged.failedLogs);
11047
- const failedLogEntries = Array.isArray(_optionalChain([failedLogs, 'optionalAccess', _411 => _411.entries])) ? failedLogs.entries.filter(
11018
+ const failedLogEntries = Array.isArray(_optionalChain([failedLogs, 'optionalAccess', _406 => _406.entries])) ? failedLogs.entries.filter(
11048
11019
  (entry) => typeof entry === "string"
11049
11020
  ) : [];
11050
- const failedLogAssociation = typeof _optionalChain([failedLogs, 'optionalAccess', _412 => _412.association]) === "string" ? failedLogs.association : null;
11051
- const failedLogWarning = typeof _optionalChain([failedLogs, 'optionalAccess', _413 => _413.warning]) === "string" && failedLogs.warning.trim() ? failedLogs.warning.trim() : null;
11021
+ const failedLogAssociation = typeof _optionalChain([failedLogs, 'optionalAccess', _407 => _407.association]) === "string" ? failedLogs.association : null;
11022
+ const failedLogWarning = typeof _optionalChain([failedLogs, 'optionalAccess', _408 => _408.warning]) === "string" && failedLogs.warning.trim() ? failedLogs.warning.trim() : null;
11052
11023
  if (failedLogEntries.length > 0) {
11053
11024
  lines.push(" failed logs:");
11054
11025
  lines.push(...failedLogEntries.map((entry) => ` ${entry}`));
@@ -11067,8 +11038,8 @@ function buildRunPackageTextLines(packaged) {
11067
11038
  )
11068
11039
  ).slice(0, 16) : [];
11069
11040
  lines.push(...packageWarnings.map((warning) => ` warning: ${warning}`));
11070
- const failedLogNext = readRecord(_optionalChain([failedLogs, 'optionalAccess', _414 => _414.next]));
11071
- if (failedLogWarning && typeof _optionalChain([failedLogNext, 'optionalAccess', _415 => _415.logs]) === "string") {
11041
+ const failedLogNext = readRecord(_optionalChain([failedLogs, 'optionalAccess', _409 => _409.next]));
11042
+ if (failedLogWarning && typeof _optionalChain([failedLogNext, 'optionalAccess', _410 => _410.logs]) === "string") {
11072
11043
  lines.push(
11073
11044
  failedLogAssociation === "retained_before_truncation" ? ` retained logs: ${failedLogNext.logs}` : ` retry failed logs: ${failedLogNext.logs}`
11074
11045
  );
@@ -11096,20 +11067,20 @@ function buildRunPackageTextLines(packaged) {
11096
11067
  const stepStatus = typeof step.status === "string" ? step.status : status;
11097
11068
  const output = step.output && typeof step.output === "object" && !Array.isArray(step.output) ? step.output : null;
11098
11069
  const rowCount = output && typeof output.rowCount === "number" ? ` rows=${formatInteger(output.rowCount)}` : "";
11099
- const preview = _optionalChain([output, 'optionalAccess', _416 => _416.preview]) && typeof output.preview === "object" && !Array.isArray(output.preview) ? output.preview : null;
11100
- const previewRows = Array.isArray(_optionalChain([preview, 'optionalAccess', _417 => _417.rows])) ? preview.rows.length : null;
11070
+ const preview = _optionalChain([output, 'optionalAccess', _411 => _411.preview]) && typeof output.preview === "object" && !Array.isArray(output.preview) ? output.preview : null;
11071
+ const previewRows = Array.isArray(_optionalChain([preview, 'optionalAccess', _412 => _412.rows])) ? preview.rows.length : null;
11101
11072
  lines.push(` ${kind} ${id}: ${stepStatus}${rowCount}`);
11102
- lines.push(...formatPackageDatasetSummaryLines(_optionalChain([output, 'optionalAccess', _418 => _418.summary])));
11073
+ lines.push(...formatPackageDatasetSummaryLines(_optionalChain([output, 'optionalAccess', _413 => _413.summary])));
11103
11074
  if (previewRows !== null) {
11104
11075
  lines.push(
11105
- ` preview=${previewRows}${_optionalChain([preview, 'optionalAccess', _419 => _419.truncated]) ? " truncated" : ""}`
11076
+ ` preview=${previewRows}${_optionalChain([preview, 'optionalAccess', _414 => _414.truncated]) ? " truncated" : ""}`
11106
11077
  );
11107
11078
  }
11108
11079
  }
11109
11080
  const inspectCommand = actionToCommand(next.inspect);
11110
11081
  const fullResultCommand = actionToCommand(next.full);
11111
11082
  const hasCatalogExportAction = packageDatasetRecords(packaged).some(
11112
- (dataset) => Boolean(actionToCommand(_optionalChain([readRecord, 'call', _420 => _420(dataset.actions), 'optionalAccess', _421 => _421.exportCsv])))
11083
+ (dataset) => Boolean(actionToCommand(_optionalChain([readRecord, 'call', _415 => _415(dataset.actions), 'optionalAccess', _416 => _416.exportCsv])))
11113
11084
  );
11114
11085
  const legacyExportCommand = hasCatalogExportAction ? null : actionToCommand(next.export);
11115
11086
  const runAgainCommand = typeof next.run === "string" && next.run.trim() ? next.run.trim() : null;
@@ -11174,7 +11145,7 @@ function withOrdinaryRunAgainCommand(status, options, resolvedRevisionId) {
11174
11145
  }
11175
11146
  function buildBillingRollupTextLines(status) {
11176
11147
  const billing = status.billing;
11177
- const rollup = _optionalChain([billing, 'optionalAccess', _422 => _422.rollup]);
11148
+ const rollup = _optionalChain([billing, 'optionalAccess', _417 => _417.rollup]);
11178
11149
  if (!rollup) return [];
11179
11150
  const total = formatCreditAmount2(rollup.totalCreditsRollup);
11180
11151
  if (rollup.childCredits > 0 && rollup.descendantRunCount > 0) {
@@ -11193,7 +11164,7 @@ function buildBillingRollupTextLines(status) {
11193
11164
  return [` cost: ${total} credits`];
11194
11165
  }
11195
11166
  function playRunRateLimitedNotice(status) {
11196
- const notice = _nullishCoalesce(_optionalChain([getPlayRunPackage, 'call', _423 => _423(status), 'optionalAccess', _424 => _424.rateLimited]), () => ( status.rateLimited));
11167
+ const notice = _nullishCoalesce(_optionalChain([getPlayRunPackage, 'call', _418 => _418(status), 'optionalAccess', _419 => _419.rateLimited]), () => ( status.rateLimited));
11197
11168
  return notice && typeof notice === "object" ? notice : null;
11198
11169
  }
11199
11170
  function withRateLimitedNotice(status, notice) {
@@ -11234,7 +11205,7 @@ function buildPlayCompletionTextLines(status) {
11234
11205
  const overview = buildRunOverview(status);
11235
11206
  const { run } = overview;
11236
11207
  const failed = run.status === "failed";
11237
- const label = run.status === "completed" ? _optionalChain([overview, 'access', _425 => _425.rowOutcomes, 'optionalAccess', _426 => _426.hasRowFailures]) ? "Completed with row failures" : "Completed" : failed ? "Failed" : run.status;
11208
+ const label = run.status === "completed" ? _optionalChain([overview, 'access', _420 => _420.rowOutcomes, 'optionalAccess', _421 => _421.hasRowFailures]) ? "Completed with row failures" : "Completed" : failed ? "Failed" : run.status;
11238
11209
  const rateLimited = playRunRateLimitedNotice(status);
11239
11210
  const lines = [
11240
11211
  ...rateLimited ? [rateLimited.message] : [],
@@ -11258,7 +11229,7 @@ function buildPlayCompletionTextLines(status) {
11258
11229
  ...formatJsonPreview(compactReturnValue(overview.result))
11259
11230
  );
11260
11231
  }
11261
- if (_optionalChain([overview, 'access', _427 => _427.rowOutcomes, 'optionalAccess', _428 => _428.hasRowFailures])) {
11232
+ if (_optionalChain([overview, 'access', _422 => _422.rowOutcomes, 'optionalAccess', _423 => _423.hasRowFailures])) {
11262
11233
  lines.push(
11263
11234
  `Rows: ${overview.rowOutcomes.completedRows} completed, ${overview.rowOutcomes.failedRows} failed`
11264
11235
  );
@@ -11287,17 +11258,17 @@ function buildPlayCompletionTextLines(status) {
11287
11258
  }
11288
11259
  function writePlayResult(status, jsonOutput, options) {
11289
11260
  const packaged = getPlayRunPackage(status);
11290
- if (status.package) _chunkPEIOQKTAjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11291
- const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _429 => _429.hits]), () => ( null));
11261
+ if (status.package) _chunkFVS5MJQ5js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11262
+ const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
11292
11263
  if (jsonOutput) {
11293
- const payload2 = _optionalChain([options, 'optionalAccess', _430 => _430.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11294
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
11264
+ const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11265
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
11295
11266
  hits ? { ...payload2, hits } : payload2,
11296
- { json: true, fields: _optionalChain([options, 'optionalAccess', _431 => _431.jsonFields]) }
11267
+ { json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
11297
11268
  );
11298
11269
  return;
11299
11270
  }
11300
- if (packaged && !_optionalChain([options, 'optionalAccess', _432 => _432.fullJson])) {
11271
+ if (packaged && !_optionalChain([options, 'optionalAccess', _427 => _427.fullJson])) {
11301
11272
  const {
11302
11273
  logs: _logs,
11303
11274
  failedLogs: _failedLogs,
@@ -11307,7 +11278,7 @@ function writePlayResult(status, jsonOutput, options) {
11307
11278
  ...buildPlayCompletionTextLines(status),
11308
11279
  ...formatRunHitsLines(hits)
11309
11280
  ];
11310
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, displayPackage, {
11281
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, displayPackage, {
11311
11282
  json: false,
11312
11283
  text: `${lines2.join("\n")}
11313
11284
  `
@@ -11357,8 +11328,8 @@ function writePlayResult(status, jsonOutput, options) {
11357
11328
  lines.push(...renderedServerView.actions);
11358
11329
  lines.push(...buildBillingRollupTextLines(status));
11359
11330
  const compact = compactPlayStatus(status);
11360
- const payload = _optionalChain([options, 'optionalAccess', _433 => _433.fullJson]) ? status : compact;
11361
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
11331
+ const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
11332
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
11362
11333
  {
11363
11334
  ...payload,
11364
11335
  render: {
@@ -11419,7 +11390,7 @@ async function resolvePlayRunOutputStatus(input) {
11419
11390
  const fromDurableStatus = input.fromDurableStatus === true || fullDurableTerminalStatuses.has(input.status);
11420
11391
  const refreshForFullJson = input.fullJson && !fromDurableStatus;
11421
11392
  const streamedTextPackageIncomplete = input.status.status === "completed" && playRunPackageTextLedgerIncomplete(streamedPackage);
11422
- const refreshFailedTerminal = input.status.status === "failed" && (!fromDurableStatus || _optionalChain([readRecord, 'call', _434 => _434(_optionalChain([streamedPackage, 'optionalAccess', _435 => _435.run])), 'optionalAccess', _436 => _436.status]) !== "failed");
11393
+ const refreshFailedTerminal = input.status.status === "failed" && (!fromDurableStatus || _optionalChain([readRecord, 'call', _429 => _429(_optionalChain([streamedPackage, 'optionalAccess', _430 => _430.run])), 'optionalAccess', _431 => _431.status]) !== "failed");
11423
11394
  if (!refreshForFullJson && !streamedTextPackageIncomplete && !refreshFailedTerminal) {
11424
11395
  if (input.fullJson && fromDurableStatus && TERMINAL_PLAY_STATUSES.has(input.status.status)) {
11425
11396
  fullDurableTerminalStatuses.add(input.status);
@@ -11526,14 +11497,14 @@ function mergeExportColumns(preferredColumns, rows) {
11526
11497
  return columns;
11527
11498
  }
11528
11499
  function sqlSafeExportColumnName(id) {
11529
- const prefix = _nullishCoalesce(_optionalChain([id, 'access', _437 => _437.trim, 'call', _438 => _438(), 'access', _439 => _439.match, 'call', _440 => _440(/^_+/), 'optionalAccess', _441 => _441[0]]), () => ( ""));
11500
+ const prefix = _nullishCoalesce(_optionalChain([id, 'access', _432 => _432.trim, 'call', _433 => _433(), 'access', _434 => _434.match, 'call', _435 => _435(/^_+/), 'optionalAccess', _436 => _436[0]]), () => ( ""));
11530
11501
  const normalized = id.trim().replace(/\.+/g, "__").replace(/[^A-Za-z0-9_]+/g, "_").replace(/^_+|_+$/g, "").toLowerCase();
11531
11502
  const safe = `${prefix}${normalized || "column"}`;
11532
11503
  return /^[A-Za-z_]/.test(safe) ? safe : `c_${safe}`;
11533
11504
  }
11534
11505
  async function fetchBackingDatasetRows(input) {
11535
11506
  const playName = extractRunPlayName(input.status);
11536
- const tableNamespace = _optionalChain([input, 'access', _442 => _442.rowsInfo, 'access', _443 => _443.tableNamespace, 'optionalAccess', _444 => _444.trim, 'call', _445 => _445()]);
11507
+ const tableNamespace = _optionalChain([input, 'access', _437 => _437.rowsInfo, 'access', _438 => _438.tableNamespace, 'optionalAccess', _439 => _439.trim, 'call', _440 => _440()]);
11537
11508
  if (!playName || !tableNamespace) {
11538
11509
  return null;
11539
11510
  }
@@ -11573,7 +11544,7 @@ async function fetchBackingDatasetRows(input) {
11573
11544
  seenEnvelopeKeys.add(key);
11574
11545
  }
11575
11546
  sheetRows.push(...page.rows);
11576
- const summaryTotal = _optionalChain([page, 'access', _446 => _446.summary, 'optionalAccess', _447 => _447.stats, 'optionalAccess', _448 => _448.total]);
11547
+ const summaryTotal = _optionalChain([page, 'access', _441 => _441.summary, 'optionalAccess', _442 => _442.stats, 'optionalAccess', _443 => _443.total]);
11577
11548
  if (typeof summaryTotal === "number" && Number.isFinite(summaryTotal)) {
11578
11549
  settledTotal = Math.max(_nullishCoalesce(settledTotal, () => ( 0)), Math.trunc(summaryTotal));
11579
11550
  }
@@ -11582,7 +11553,7 @@ async function fetchBackingDatasetRows(input) {
11582
11553
  }
11583
11554
  offset += page.rows.length;
11584
11555
  }
11585
- const withError = _chunkPEIOQKTAjs.tableExportHasFailedRows.call(void 0,
11556
+ const withError = _chunkFVS5MJQ5js.tableExportHasFailedRows.call(void 0,
11586
11557
  sheetRows.filter(
11587
11558
  (row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
11588
11559
  )
@@ -11598,7 +11569,7 @@ async function fetchBackingDatasetRows(input) {
11598
11569
  return [
11599
11570
  withError ? {
11600
11571
  ...exported,
11601
- [_chunkPEIOQKTAjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkPEIOQKTAjs.tableExportErrorCell.call(void 0,
11572
+ [_chunkFVS5MJQ5js.TABLE_EXPORT_ERROR_COLUMN]: _chunkFVS5MJQ5js.tableExportErrorCell.call(void 0,
11602
11573
  row
11603
11574
  )
11604
11575
  } : exported
@@ -11667,7 +11638,7 @@ function assertDatasetHasExportableRows(input) {
11667
11638
  const rowOutcomes = _nullishCoalesce(readRowOutcomeSummary(input.status), () => ( readRowOutcomeSummary(
11668
11639
  getRecordField(getRecordField(input.status, "result"), "_metadata")
11669
11640
  )));
11670
- if (input.allowEmpty === true && input.status.status === "completed" && !getRecordField(input.status, "error") && !getRecordField(input.status.progress, "error") && structuredErrorsForStatus(input.status).length === 0 && input.rowsInfo.complete && input.rowsInfo.totalRows === 0 && _optionalChain([rowOutcomes, 'optionalAccess', _449 => _449.failedRows]) === 0 && !rowOutcomes.hasRowFailures) {
11641
+ if (input.allowEmpty === true && input.status.status === "completed" && !getRecordField(input.status, "error") && !getRecordField(input.status.progress, "error") && structuredErrorsForStatus(input.status).length === 0 && input.rowsInfo.complete && input.rowsInfo.totalRows === 0 && _optionalChain([rowOutcomes, 'optionalAccess', _444 => _444.failedRows]) === 0 && !rowOutcomes.hasRowFailures) {
11671
11642
  return input.rowsInfo;
11672
11643
  }
11673
11644
  const datasetLabel = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(input.datasetPath, () => ( input.rowsInfo.tableNamespace)), () => ( input.rowsInfo.source)), () => ( "result.rows"));
@@ -11739,8 +11710,8 @@ async function exportPlayStatusRows(client, status, outPath, options = {}) {
11739
11710
  path: dataset.exportFile(outPath, options),
11740
11711
  rowsInfo: dataset.info(),
11741
11712
  currentTable: false,
11742
- datasetPath: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _450 => _450.source]), () => ( null)),
11743
- datasetInfo: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _451 => _451.info, 'call', _452 => _452()]), () => ( null))
11713
+ datasetPath: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _445 => _445.source]), () => ( null)),
11714
+ datasetInfo: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _446 => _446.info, 'call', _447 => _447()]), () => ( null))
11744
11715
  };
11745
11716
  };
11746
11717
  const run = Run.open({
@@ -11752,7 +11723,7 @@ async function exportPlayStatusRows(client, status, outPath, options = {}) {
11752
11723
  const returnedRows = datasets.returned().map((dataset) => dataset.info());
11753
11724
  const recoveredRows = datasets.recovered().map((dataset) => dataset.info());
11754
11725
  const selectedDataset = run.dataset(options.datasetPath);
11755
- const rowsInfo = _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _453 => _453.info, 'call', _454 => _454()]), () => ( null));
11726
+ const rowsInfo = _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _448 => _448.info, 'call', _449 => _449()]), () => ( null));
11756
11727
  if (!selectedDataset && options.datasetPath) {
11757
11728
  const available = availableRows.map((info) => info.source).filter((source) => typeof source === "string");
11758
11729
  const commands = datasetChoiceLines({
@@ -11865,7 +11836,7 @@ ${commands.join("\n")}`,
11865
11836
  throw error;
11866
11837
  }
11867
11838
  }
11868
- if (_optionalChain([fetchedRowsInfo, 'optionalAccess', _455 => _455.complete])) {
11839
+ if (_optionalChain([fetchedRowsInfo, 'optionalAccess', _450 => _450.complete])) {
11869
11840
  const guarded2 = assertDatasetHasExportableRows({
11870
11841
  rowsInfo: fetchedRowsInfo,
11871
11842
  status,
@@ -11930,7 +11901,7 @@ function extractActiveRunsFromError(error) {
11930
11901
  if (!(error instanceof _chunkDIAWYWT5js.DeeplineError)) {
11931
11902
  return [];
11932
11903
  }
11933
- const response = _optionalChain([error, 'access', _456 => _456.details, 'optionalAccess', _457 => _457.response]);
11904
+ const response = _optionalChain([error, 'access', _451 => _451.details, 'optionalAccess', _452 => _452.response]);
11934
11905
  if (!response || typeof response !== "object" || Array.isArray(response)) {
11935
11906
  return [];
11936
11907
  }
@@ -12047,8 +12018,8 @@ function renderServerResultView(value) {
12047
12018
  return { lines: [], actions: [] };
12048
12019
  }
12049
12020
  const view = value;
12050
- const renderedSections = Array.isArray(_optionalChain([view, 'access', _458 => _458.render, 'optionalAccess', _459 => _459.sections])) ? view.render.sections : [];
12051
- const renderedActions = Array.isArray(_optionalChain([view, 'access', _460 => _460.render, 'optionalAccess', _461 => _461.actions])) ? view.render.actions : [];
12021
+ const renderedSections = Array.isArray(_optionalChain([view, 'access', _453 => _453.render, 'optionalAccess', _454 => _454.sections])) ? view.render.sections : [];
12022
+ const renderedActions = Array.isArray(_optionalChain([view, 'access', _455 => _455.render, 'optionalAccess', _456 => _456.actions])) ? view.render.actions : [];
12052
12023
  if (renderedSections.length > 0 || renderedActions.length > 0) {
12053
12024
  const lines2 = [];
12054
12025
  for (const section of renderedSections) {
@@ -12086,7 +12057,7 @@ function renderServerResultView(value) {
12086
12057
  }
12087
12058
  const tables = Array.isArray(view.tables) ? view.tables : [];
12088
12059
  const topLevelOutputTable = view.topLevelOutputTable && typeof view.topLevelOutputTable === "object" && !Array.isArray(view.topLevelOutputTable) ? view.topLevelOutputTable : null;
12089
- if (typeof _optionalChain([topLevelOutputTable, 'optionalAccess', _462 => _462.queryCommand]) === "string") {
12060
+ if (typeof _optionalChain([topLevelOutputTable, 'optionalAccess', _457 => _457.queryCommand]) === "string") {
12090
12061
  lines.push(` top-level outputs: ${topLevelOutputTable.queryCommand}`);
12091
12062
  }
12092
12063
  if (tables.length > 0) {
@@ -12133,7 +12104,7 @@ function renderServerResultView(value) {
12133
12104
  function writeStartedPlayRun(input) {
12134
12105
  if (input.package && isPlayRunPackageValue(input.package)) {
12135
12106
  const run = input.package.run;
12136
- _chunkPEIOQKTAjs.recordPlayTermination.call(void 0, {
12107
+ _chunkFVS5MJQ5js.recordPlayTermination.call(void 0, {
12137
12108
  id: run.id,
12138
12109
  status: run.status,
12139
12110
  finishedAt: run.finishedAt
@@ -12146,7 +12117,7 @@ function writeStartedPlayRun(input) {
12146
12117
  dashboardUrl: input.dashboardUrl,
12147
12118
  package: input.package
12148
12119
  };
12149
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12120
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12150
12121
  json: true,
12151
12122
  fields: input.jsonFields
12152
12123
  });
@@ -12168,7 +12139,7 @@ function writeStartedPlayRun(input) {
12168
12139
  input.progress.writeLine(output2, process.stdout);
12169
12140
  return;
12170
12141
  }
12171
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, input.package, {
12142
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, input.package, {
12172
12143
  json: false,
12173
12144
  text: `${output2}
12174
12145
  `
@@ -12203,7 +12174,7 @@ function writeStartedPlayRun(input) {
12203
12174
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12204
12175
  ];
12205
12176
  if (input.jsonOutput) {
12206
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12177
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12207
12178
  return;
12208
12179
  }
12209
12180
  const output = lines.join("\n");
@@ -12211,7 +12182,7 @@ function writeStartedPlayRun(input) {
12211
12182
  input.progress.writeLine(output, process.stdout);
12212
12183
  return;
12213
12184
  }
12214
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
12185
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
12215
12186
  {
12216
12187
  ...payload,
12217
12188
  render: { sections: [{ title: "play run", lines }] }
@@ -12221,7 +12192,7 @@ function writeStartedPlayRun(input) {
12221
12192
  );
12222
12193
  }
12223
12194
  function parsePlayCheckOptions(args) {
12224
- const selection = _chunkMAMEKGLIjs.parseJsonFields.call(void 0, args, "check");
12195
+ const selection = _chunkXLYJ7MJXjs.parseJsonFields.call(void 0, args, "check");
12225
12196
  args = selection.args;
12226
12197
  const target = args[0];
12227
12198
  if (!target || target.startsWith("-")) {
@@ -12233,7 +12204,7 @@ function parsePlayCheckOptions(args) {
12233
12204
  if (arg !== "--json" && arg !== "--full")
12234
12205
  throw new Error(`Unknown plays check option: ${arg}`);
12235
12206
  }
12236
- const jsonOutput = _chunkMAMEKGLIjs.argsWantJson.call(void 0, args);
12207
+ const jsonOutput = _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args);
12237
12208
  return {
12238
12209
  target,
12239
12210
  jsonOutput,
@@ -12309,7 +12280,7 @@ ${PLAY_PUBLISH_USAGE}`
12309
12280
  useLatest,
12310
12281
  expectedArtifactHash,
12311
12282
  dryRun,
12312
- jsonOutput: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args)
12283
+ jsonOutput: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)
12313
12284
  };
12314
12285
  }
12315
12286
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12350,7 +12321,7 @@ ${PLAY_SAVE_USAGE}`);
12350
12321
  target,
12351
12322
  expectedArtifactHash,
12352
12323
  dryRun,
12353
- jsonOutput: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args)
12324
+ jsonOutput: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)
12354
12325
  };
12355
12326
  }
12356
12327
  function printScheduledPlayCapacity(capacity) {
@@ -12403,7 +12374,7 @@ function checkHintExpression(value) {
12403
12374
  return stringValue2(value).replace(/^toolExecutionResult\./, "result.");
12404
12375
  }
12405
12376
  function checkHintRawPath(value) {
12406
- return _optionalChain([value, 'optionalAccess', _463 => _463.startsWith, 'call', _464 => _464("toolResponse.rawV2")]) ? value.replace(/^toolResponse\./, "result.toolResponse.") : void 0;
12377
+ return _optionalChain([value, 'optionalAccess', _458 => _458.startsWith, 'call', _459 => _459("toolResponse.rawV2")]) ? value.replace(/^toolResponse\./, "result.toolResponse.") : void 0;
12407
12378
  }
12408
12379
  function collectStaticPipelineToolIds(staticPipeline) {
12409
12380
  const seen = /* @__PURE__ */ new Set();
@@ -12478,30 +12449,30 @@ function cronExecutionLabel(status) {
12478
12449
  }
12479
12450
  function readLiveCronMetadata(play) {
12480
12451
  const record3 = readRecord(play);
12481
- const metadata = readRecord(_optionalChain([record3, 'optionalAccess', _465 => _465.triggerMetadata]));
12452
+ const metadata = readRecord(_optionalChain([record3, 'optionalAccess', _460 => _460.triggerMetadata]));
12482
12453
  return {
12483
- schedule: typeof _optionalChain([metadata, 'optionalAccess', _466 => _466.cronSchedule]) === "string" ? metadata.cronSchedule : null,
12484
- timezone: typeof _optionalChain([metadata, 'optionalAccess', _467 => _467.cronTimezone]) === "string" ? metadata.cronTimezone : null,
12485
- nextScheduledAt: typeof _optionalChain([metadata, 'optionalAccess', _468 => _468.nextScheduledAt]) === "number" ? metadata.nextScheduledAt : null,
12486
- blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _469 => _469.blockedAt]) === "number" ? metadata.blockedAt : null,
12487
- blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _470 => _470.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null
12454
+ schedule: typeof _optionalChain([metadata, 'optionalAccess', _461 => _461.cronSchedule]) === "string" ? metadata.cronSchedule : null,
12455
+ timezone: typeof _optionalChain([metadata, 'optionalAccess', _462 => _462.cronTimezone]) === "string" ? metadata.cronTimezone : null,
12456
+ nextScheduledAt: typeof _optionalChain([metadata, 'optionalAccess', _463 => _463.nextScheduledAt]) === "number" ? metadata.nextScheduledAt : null,
12457
+ blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _464 => _464.blockedAt]) === "number" ? metadata.blockedAt : null,
12458
+ blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _465 => _465.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null
12488
12459
  };
12489
12460
  }
12490
12461
  function liveTriggerStatusLines(status, play) {
12491
12462
  const cron = readLiveCronMetadata(play);
12492
- if (!_optionalChain([status, 'optionalAccess', _471 => _471.cron]) && !cron.schedule && !_optionalChain([status, 'optionalAccess', _472 => _472.webhook])) return [];
12463
+ if (!_optionalChain([status, 'optionalAccess', _466 => _466.cron]) && !cron.schedule && !_optionalChain([status, 'optionalAccess', _467 => _467.webhook])) return [];
12493
12464
  const lines = [];
12494
- if (_optionalChain([status, 'optionalAccess', _473 => _473.cron]) || cron.schedule) {
12465
+ if (_optionalChain([status, 'optionalAccess', _468 => _468.cron]) || cron.schedule) {
12495
12466
  const timezone = cron.timezone ? ` (${cron.timezone})` : "";
12496
12467
  lines.push(
12497
- ` Scheduled execution: ${cronExecutionLabel(_nullishCoalesce(_optionalChain([status, 'optionalAccess', _474 => _474.cron]), () => ( null)))}${cron.schedule ? ` \u2014 ${cron.schedule}${timezone}` : ""}`
12468
+ ` Scheduled execution: ${cronExecutionLabel(_nullishCoalesce(_optionalChain([status, 'optionalAccess', _469 => _469.cron]), () => ( null)))}${cron.schedule ? ` \u2014 ${cron.schedule}${timezone}` : ""}`
12498
12469
  );
12499
- if (cron.nextScheduledAt !== null && _optionalChain([status, 'optionalAccess', _475 => _475.cron]) === "active") {
12470
+ if (cron.nextScheduledAt !== null && _optionalChain([status, 'optionalAccess', _470 => _470.cron]) === "active") {
12500
12471
  lines.push(
12501
12472
  ` Next scheduled run: ${formatTimestamp(cron.nextScheduledAt)}`
12502
12473
  );
12503
12474
  }
12504
- if (_optionalChain([status, 'optionalAccess', _476 => _476.blockedReason])) {
12475
+ if (_optionalChain([status, 'optionalAccess', _471 => _471.blockedReason])) {
12505
12476
  lines.push(` Schedule issue: ${status.blockedReason}`);
12506
12477
  if (status.blockedReasonCode || cron.blockedReasonCode) {
12507
12478
  lines.push(
@@ -12517,7 +12488,7 @@ function liveTriggerStatusLines(status, play) {
12517
12488
  );
12518
12489
  }
12519
12490
  }
12520
- if (_optionalChain([status, 'optionalAccess', _477 => _477.webhook])) {
12491
+ if (_optionalChain([status, 'optionalAccess', _472 => _472.webhook])) {
12521
12492
  lines.push(` Webhook: ${status.webhook}`);
12522
12493
  }
12523
12494
  return lines;
@@ -12525,11 +12496,11 @@ function liveTriggerStatusLines(status, play) {
12525
12496
  function triggerStatusFromMetadata(value) {
12526
12497
  const metadata = readRecord(value);
12527
12498
  return {
12528
- cron: typeof _optionalChain([metadata, 'optionalAccess', _478 => _478.cronStatus]) === "string" ? metadata.cronStatus : null,
12529
- webhook: typeof _optionalChain([metadata, 'optionalAccess', _479 => _479.webhookStatus]) === "string" ? metadata.webhookStatus : null,
12530
- blockedReason: typeof _optionalChain([metadata, 'optionalAccess', _480 => _480.blockedReason]) === "string" ? metadata.blockedReason : null,
12531
- blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _481 => _481.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null,
12532
- blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _482 => _482.blockedAt]) === "number" ? metadata.blockedAt : null
12499
+ cron: typeof _optionalChain([metadata, 'optionalAccess', _473 => _473.cronStatus]) === "string" ? metadata.cronStatus : null,
12500
+ webhook: typeof _optionalChain([metadata, 'optionalAccess', _474 => _474.webhookStatus]) === "string" ? metadata.webhookStatus : null,
12501
+ blockedReason: typeof _optionalChain([metadata, 'optionalAccess', _475 => _475.blockedReason]) === "string" ? metadata.blockedReason : null,
12502
+ blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _476 => _476.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null,
12503
+ blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _477 => _477.blockedAt]) === "number" ? metadata.blockedAt : null
12533
12504
  };
12534
12505
  }
12535
12506
  function printPublishReceipt(input) {
@@ -12561,7 +12532,7 @@ function printBundledRuntimeWarning(bundle) {
12561
12532
  async function handlePlayCheck(args) {
12562
12533
  const options = parsePlayCheckOptions(args);
12563
12534
  if (!isFileTarget(options.target)) {
12564
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
12535
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
12565
12536
  try {
12566
12537
  await assertCanonicalNamedPlayReference(client, options.target, {
12567
12538
  command: "check"
@@ -12590,7 +12561,7 @@ async function handlePlayCheck(args) {
12590
12561
  },
12591
12562
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12592
12563
  };
12593
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, result, {
12564
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, result, {
12594
12565
  json: options.jsonOutput,
12595
12566
  fields: options.jsonFields,
12596
12567
  text: renderPlayCheckOutput(result) + "\n"
@@ -12600,7 +12571,7 @@ async function handlePlayCheck(args) {
12600
12571
  const resolved = _path.resolve.call(void 0, options.target);
12601
12572
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12602
12573
  if (options.jsonOutput) {
12603
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
12574
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
12604
12575
  {
12605
12576
  kind: "play_check",
12606
12577
  checked: "named_contract",
@@ -12620,18 +12591,7 @@ async function handlePlayCheck(args) {
12620
12591
  }
12621
12592
  const absolutePlayPath = _path.resolve.call(void 0, options.target);
12622
12593
  const sourceCode = _fs.readFileSync.call(void 0, absolutePlayPath, "utf-8");
12623
- const exportNames = resolvePlayCheckExportNames(sourceCode);
12624
- const outcomes = [];
12625
- for (const exportName of exportNames) {
12626
- outcomes.push(
12627
- await checkOneExportedPlay({
12628
- absolutePlayPath,
12629
- sourceCode,
12630
- exportName,
12631
- target: options.target
12632
- })
12633
- );
12634
- }
12594
+ const outcomes = await checkPlayFileExports({ absolutePlayPath, sourceCode });
12635
12595
  const primary = outcomes.find(
12636
12596
  (outcome) => outcome.exportName === _chunkKQSTV4MWjs.PLAY_DEFAULT_EXPORT
12637
12597
  );
@@ -12640,9 +12600,9 @@ async function handlePlayCheck(args) {
12640
12600
  target: options.target,
12641
12601
  full: options.full,
12642
12602
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
12643
- publishCommand: _optionalChain([primary, 'optionalAccess', _483 => _483.result, 'access', _484 => _484.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
12603
+ publishCommand: _optionalChain([primary, 'optionalAccess', _478 => _478.result, 'access', _479 => _479.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
12644
12604
  });
12645
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, output, {
12605
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, output, {
12646
12606
  json: options.jsonOutput,
12647
12607
  fields: options.jsonFields,
12648
12608
  text: renderPlayCheckOutput(output) + "\n"
@@ -12655,7 +12615,7 @@ function resolvePlayCheckExportNames(sourceCode) {
12655
12615
  return exports.map((entry) => entry.name);
12656
12616
  }
12657
12617
  function artifactForProductionCompatibilityCheck(artifact) {
12658
- const rawEdition = _optionalChain([process, 'access', _485 => _485.env, 'access', _486 => _486.DEEPLINE_PROD_CHECK_AUTHORING_CONTRACT_EDITION, 'optionalAccess', _487 => _487.trim, 'call', _488 => _488()]);
12618
+ const rawEdition = _optionalChain([process, 'access', _480 => _480.env, 'access', _481 => _481.DEEPLINE_PROD_CHECK_AUTHORING_CONTRACT_EDITION, 'optionalAccess', _482 => _482.trim, 'call', _483 => _483()]);
12659
12619
  if (!rawEdition) return artifact;
12660
12620
  if (!/^\d+$/.test(rawEdition)) {
12661
12621
  throw new Error(
@@ -12677,6 +12637,20 @@ function artifactForProductionCompatibilityCheck(artifact) {
12677
12637
  }
12678
12638
  };
12679
12639
  }
12640
+ async function checkPlayFileExports(input) {
12641
+ const outcomes = [];
12642
+ for (const exportName of resolvePlayCheckExportNames(input.sourceCode)) {
12643
+ outcomes.push(
12644
+ await checkOneExportedPlay({
12645
+ absolutePlayPath: input.absolutePlayPath,
12646
+ sourceCode: input.sourceCode,
12647
+ exportName,
12648
+ client: input.client
12649
+ })
12650
+ );
12651
+ }
12652
+ return outcomes;
12653
+ }
12680
12654
  async function checkOneExportedPlay(input) {
12681
12655
  const { absolutePlayPath, sourceCode, exportName } = input;
12682
12656
  const fallbackName = await extractPlayName(sourceCode, absolutePlayPath);
@@ -12696,7 +12670,7 @@ async function checkOneExportedPlay(input) {
12696
12670
  }
12697
12671
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
12698
12672
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
12699
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
12673
+ const client = _nullishCoalesce(input.client, () => ( new (0, _chunkB4Q3EBQXjs.DeeplineClient)()));
12700
12674
  const integrationMode = resolveEvalIntegrationMode();
12701
12675
  const checked = await checkLocalPlayGraph({
12702
12676
  client,
@@ -12706,7 +12680,7 @@ async function checkOneExportedPlay(input) {
12706
12680
  integrationMode,
12707
12681
  prepareArtifact: artifactForProductionCompatibilityCheck
12708
12682
  });
12709
- const importedPlayName = _optionalChain([checked, 'access', _489 => _489.failedChild, 'optionalAccess', _490 => _490.playName]);
12683
+ const importedPlayName = _optionalChain([checked, 'access', _484 => _484.failedChild, 'optionalAccess', _485 => _485.playName]);
12710
12684
  const diagnosticPrefix = importedPlayName ? `Imported Play ${importedPlayName}: ` : "";
12711
12685
  const valid = checked.result.valid && !checked.failedChild && authoringErrors.length === 0;
12712
12686
  const errors = [
@@ -12722,7 +12696,7 @@ async function checkOneExportedPlay(input) {
12722
12696
  valid,
12723
12697
  errors: valid ? checked.result.errors : addPlayCheckRepairHints({
12724
12698
  errors,
12725
- sourceCode: _nullishCoalesce(_optionalChain([checked, 'access', _491 => _491.failedChild, 'optionalAccess', _492 => _492.sourceCode]), () => ( graph.root.sourceCode))
12699
+ sourceCode: _nullishCoalesce(_optionalChain([checked, 'access', _486 => _486.failedChild, 'optionalAccess', _487 => _487.sourceCode]), () => ( graph.root.sourceCode))
12726
12700
  }),
12727
12701
  ...checked.failedChild && checked.result.issues ? {
12728
12702
  issues: checked.result.issues.map((issue) => ({
@@ -12752,8 +12726,8 @@ async function handleFileBackedRun(options, hooks) {
12752
12726
  let prefetchClient;
12753
12727
  let admissionCapability;
12754
12728
  let cancelAdmissionCapability;
12755
- let cliAdmission = _chunk7OGADAAAjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12756
- const progress = _nullishCoalesce(_chunkXKYQR3QKjs.getActiveCliProgress.call(void 0, ), () => ( _chunkXKYQR3QKjs.createCliProgress.call(void 0, !options.jsonOutput)));
12729
+ let cliAdmission = _chunkYUEFDOMEjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12730
+ const progress = _nullishCoalesce(_chunk7RBIOOCQjs.getActiveCliProgress.call(void 0, ), () => ( _chunk7RBIOOCQjs.createCliProgress.call(void 0, !options.jsonOutput)));
12757
12731
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
12758
12732
  progress.phase("compiling play");
12759
12733
  const sourceCode = traceCliSync(
@@ -12769,11 +12743,11 @@ async function handleFileBackedRun(options, hooks) {
12769
12743
  return 1;
12770
12744
  }
12771
12745
  if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
12772
- const clientForPrefetch = new (0, _chunkZ33PZUWGjs.DeeplineClient)(playRunClientOptions(options));
12746
+ const clientForPrefetch = new (0, _chunkB4Q3EBQXjs.DeeplineClient)(playRunClientOptions(options));
12773
12747
  prefetchClient = clientForPrefetch;
12774
12748
  const capabilityController = new AbortController();
12775
12749
  cancelAdmissionCapability = () => capabilityController.abort();
12776
- admissionCapability = _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
12750
+ admissionCapability = _chunkUV7AT2D4js.traceCliSpan.call(void 0,
12777
12751
  "cli.play_admission_capability_prefetch",
12778
12752
  { targetKind: "file" },
12779
12753
  () => clientForPrefetch.prefetchPlayRunAdmissionCapability({
@@ -12784,7 +12758,7 @@ async function handleFileBackedRun(options, hooks) {
12784
12758
  }
12785
12759
  let graph;
12786
12760
  try {
12787
- graph = await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
12761
+ graph = await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
12788
12762
  "cli.play_file_bundle_graph",
12789
12763
  { targetKind: "file" },
12790
12764
  () => collectBundledPlayGraph(
@@ -12798,14 +12772,14 @@ async function handleFileBackedRun(options, hooks) {
12798
12772
  if (options.dryRun) {
12799
12773
  progress.complete();
12800
12774
  renderLocalPlayExecutionPlan(
12801
- _chunkTCNILHMSjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile }),
12775
+ _chunkJDFYCHNVjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile }),
12802
12776
  { dryRun: true, json: options.jsonOutput }
12803
12777
  );
12804
12778
  return 0;
12805
12779
  }
12806
- client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkZ33PZUWGjs.DeeplineClient)(playRunClientOptions(options))));
12780
+ client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkB4Q3EBQXjs.DeeplineClient)(playRunClientOptions(options))));
12807
12781
  if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
12808
- await _chunk7OGADAAAjs.checkPlayRunCompatibility.call(void 0,
12782
+ await _chunkYUEFDOMEjs.checkPlayRunCompatibility.call(void 0,
12809
12783
  client.baseUrl,
12810
12784
  options.maintenancePolicy
12811
12785
  );
@@ -12818,7 +12792,7 @@ async function handleFileBackedRun(options, hooks) {
12818
12792
  });
12819
12793
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
12820
12794
  if (canDeferCompilerManifest) {
12821
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
12795
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
12822
12796
  phase: "cli.play_file_compile_manifests",
12823
12797
  ms: 0,
12824
12798
  ok: true,
@@ -12827,7 +12801,7 @@ async function handleFileBackedRun(options, hooks) {
12827
12801
  reason: "validated_by_run_route"
12828
12802
  });
12829
12803
  } else {
12830
- await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
12804
+ await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
12831
12805
  "cli.play_file_compile_manifests",
12832
12806
  { targetKind: "file", skipped: false },
12833
12807
  () => compileBundledPlayGraphManifests(client, graph)
@@ -12848,13 +12822,13 @@ async function handleFileBackedRun(options, hooks) {
12848
12822
  if (bundleResult.importedPlayDependencies.length > 0) {
12849
12823
  try {
12850
12824
  renderLocalPlayExecutionPlan(
12851
- _chunkTCNILHMSjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12825
+ _chunkJDFYCHNVjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12852
12826
  );
12853
12827
  progress.phase("pinning imported plays");
12854
- graph = await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
12828
+ graph = await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
12855
12829
  "cli.play_file_pin_imports",
12856
12830
  { targetKind: "file" },
12857
- () => _chunkTCNILHMSjs.pinLocalPlayImports.call(void 0, client, graph)
12831
+ () => _chunkJDFYCHNVjs.pinLocalPlayImports.call(void 0, client, graph)
12858
12832
  );
12859
12833
  bundleResult = graph.root;
12860
12834
  } catch (error) {
@@ -12867,10 +12841,10 @@ async function handleFileBackedRun(options, hooks) {
12867
12841
  (file) => stageFile(file.logicalPath, file.absolutePath)
12868
12842
  );
12869
12843
  const compilerManifest = _nullishCoalesce(bundleResult.compilerManifest, () => ( null));
12870
- const fileInputBindings = _chunkPKV5CD3Wjs.fileInputBindingsFromStaticPipeline.call(void 0,
12871
- _optionalChain([compilerManifest, 'optionalAccess', _493 => _493.staticPipeline])
12844
+ const fileInputBindings = _chunkEQR5O2D2js.fileInputBindingsFromStaticPipeline.call(void 0,
12845
+ _optionalChain([compilerManifest, 'optionalAccess', _488 => _488.staticPipeline])
12872
12846
  );
12873
- const stagedFileInputs = await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
12847
+ const stagedFileInputs = await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
12874
12848
  "cli.play_stage_inputs",
12875
12849
  {
12876
12850
  targetKind: "file",
@@ -12917,7 +12891,7 @@ async function handleFileBackedRun(options, hooks) {
12917
12891
  };
12918
12892
  if (options.watch) {
12919
12893
  progress.phase("starting run");
12920
- const finalStatus = await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
12894
+ const finalStatus = await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
12921
12895
  "cli.play_start_watch",
12922
12896
  { targetKind: "file", playName },
12923
12897
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -12931,9 +12905,9 @@ async function handleFileBackedRun(options, hooks) {
12931
12905
  waitTimeoutMs: options.waitTimeoutMs,
12932
12906
  open: options.open,
12933
12907
  progress,
12934
- onRunStarted: _optionalChain([hooks, 'optionalAccess', _494 => _494.onRunStarted]),
12935
- onSubmission: _optionalChain([hooks, 'optionalAccess', _495 => _495.onSubmission]),
12936
- onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _496 => _496.onRunAdmitted]),
12908
+ onRunStarted: _optionalChain([hooks, 'optionalAccess', _489 => _489.onRunStarted]),
12909
+ onSubmission: _optionalChain([hooks, 'optionalAccess', _490 => _490.onSubmission]),
12910
+ onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _491 => _491.onRunAdmitted]),
12937
12911
  maintenancePolicy: options.maintenancePolicy,
12938
12912
  ...!options.runIdFile || options.fullJson ? { fullJson: options.fullJson } : {},
12939
12913
  ...cliAdmission ? {
@@ -12963,8 +12937,8 @@ async function handleFileBackedRun(options, hooks) {
12963
12937
  ),
12964
12938
  options
12965
12939
  );
12966
- _optionalChain([hooks, 'optionalAccess', _497 => _497.onTerminalStatus, 'optionalCall', _498 => _498(outputStatus)]);
12967
- if (_optionalChain([hooks, 'optionalAccess', _499 => _499.writeResult])) {
12940
+ _optionalChain([hooks, 'optionalAccess', _492 => _492.onTerminalStatus, 'optionalCall', _493 => _493(outputStatus)]);
12941
+ if (_optionalChain([hooks, 'optionalAccess', _494 => _494.writeResult])) {
12968
12942
  await hooks.writeResult(client, outputStatus);
12969
12943
  return outputStatus.status === "completed" ? 0 : 1;
12970
12944
  }
@@ -12979,15 +12953,15 @@ async function handleFileBackedRun(options, hooks) {
12979
12953
  return outputStatus.status === "completed" ? 0 : 1;
12980
12954
  }
12981
12955
  progress.phase("starting run");
12982
- const started = await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
12956
+ const started = await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
12983
12957
  "cli.play_start_unwatched",
12984
12958
  { targetKind: "file", playName },
12985
- () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _500 => _500.onSubmission]) }).catch(async (error) => {
12959
+ () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _495 => _495.onSubmission]) }).catch(async (error) => {
12986
12960
  throw await normalizePlayStartError(client, error, playName);
12987
12961
  })
12988
12962
  );
12989
- await _optionalChain([hooks, 'optionalAccess', _501 => _501.onRunStarted, 'optionalCall', _502 => _502(started.workflowId)]);
12990
- await _optionalChain([hooks, 'optionalAccess', _503 => _503.onRunAdmitted, 'optionalCall', _504 => _504(started.workflowId)]);
12963
+ await _optionalChain([hooks, 'optionalAccess', _496 => _496.onRunStarted, 'optionalCall', _497 => _497(started.workflowId)]);
12964
+ await _optionalChain([hooks, 'optionalAccess', _498 => _498.onRunAdmitted, 'optionalCall', _499 => _499(started.workflowId)]);
12991
12965
  const resolvedDashboardUrl = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
12992
12966
  openPlayDashboard(
12993
12967
  resolvePlayRunUrl({
@@ -12999,7 +12973,7 @@ async function handleFileBackedRun(options, hooks) {
12999
12973
  );
13000
12974
  progress.phase("started run");
13001
12975
  progress.complete();
13002
- if (_optionalChain([hooks, 'optionalAccess', _505 => _505.writeStarted])) {
12976
+ if (_optionalChain([hooks, 'optionalAccess', _500 => _500.writeStarted])) {
13003
12977
  hooks.writeStarted(
13004
12978
  started.workflowId,
13005
12979
  _nullishCoalesce(started.status, () => ( "started")),
@@ -13034,7 +13008,7 @@ async function resolveNamedRunRevisionId(input) {
13034
13008
  if (input.selector === "latest") {
13035
13009
  const versions = await input.client.listPlayVersions(input.playName);
13036
13010
  const latest = versions[0];
13037
- if (!_optionalChain([latest, 'optionalAccess', _506 => _506._id])) {
13011
+ if (!_optionalChain([latest, 'optionalAccess', _501 => _501._id])) {
13038
13012
  throw new Error(`No saved revisions found for ${input.playName}.`);
13039
13013
  }
13040
13014
  return latest._id;
@@ -13045,9 +13019,9 @@ async function handleNamedRun(options, hooks) {
13045
13019
  if (options.target.kind !== "name") {
13046
13020
  throw new Error("Expected a named play run target.");
13047
13021
  }
13048
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)(playRunClientOptions(options));
13049
- let cliAdmission = _chunk7OGADAAAjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
13050
- const progress = _nullishCoalesce(_chunkXKYQR3QKjs.getActiveCliProgress.call(void 0, ), () => ( _chunkXKYQR3QKjs.createCliProgress.call(void 0, !options.jsonOutput)));
13022
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)(playRunClientOptions(options));
13023
+ let cliAdmission = _chunkYUEFDOMEjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
13024
+ const progress = _nullishCoalesce(_chunk7RBIOOCQjs.getActiveCliProgress.call(void 0, ), () => ( _chunk7RBIOOCQjs.createCliProgress.call(void 0, !options.jsonOutput)));
13051
13025
  const playName = options.target.name;
13052
13026
  const runtimeInput = options.input ? { ...options.input } : {};
13053
13027
  try {
@@ -13065,7 +13039,7 @@ async function handleNamedRun(options, hooks) {
13065
13039
  if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
13066
13040
  const capabilityController = new AbortController();
13067
13041
  cancelAdmissionCapability = () => capabilityController.abort();
13068
- admissionCapability = _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
13042
+ admissionCapability = _chunkUV7AT2D4js.traceCliSpan.call(void 0,
13069
13043
  "cli.play_admission_capability_prefetch",
13070
13044
  { targetKind: "name", playName },
13071
13045
  () => client.prefetchPlayRunAdmissionCapability({
@@ -13076,14 +13050,14 @@ async function handleNamedRun(options, hooks) {
13076
13050
  }
13077
13051
  const playDetail = needsPlayDefinition ? await (async () => {
13078
13052
  progress.phase("loading play definition");
13079
- return _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
13053
+ return _chunkUV7AT2D4js.traceCliSpan.call(void 0,
13080
13054
  "cli.play_load_definition",
13081
13055
  { targetKind: "name", playName, skipped: false },
13082
13056
  () => assertCanonicalNamedPlayReference(client, playName, {
13083
13057
  command: "run"
13084
13058
  })
13085
13059
  );
13086
- })() : (_chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
13060
+ })() : (_chunkUV7AT2D4js.recordCliTrace.call(void 0, {
13087
13061
  phase: "cli.play_load_definition",
13088
13062
  ms: 0,
13089
13063
  ok: true,
@@ -13092,7 +13066,7 @@ async function handleNamedRun(options, hooks) {
13092
13066
  skipped: true
13093
13067
  }), null);
13094
13068
  progress.phase("selecting revision");
13095
- const selectedRevisionId = await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
13069
+ const selectedRevisionId = await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
13096
13070
  "cli.play_select_revision",
13097
13071
  {
13098
13072
  targetKind: "name",
@@ -13113,14 +13087,14 @@ async function handleNamedRun(options, hooks) {
13113
13087
  maxTotalCredits: options.maxTotalCredits
13114
13088
  });
13115
13089
  const fileInputBindings = playDetail ? [
13116
- ..._chunkPKV5CD3Wjs.fileInputBindingsFromPlaySchema.call(void 0, playDetail.play.inputSchema),
13117
- ..._chunkPKV5CD3Wjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
13090
+ ..._chunkEQR5O2D2js.fileInputBindingsFromPlaySchema.call(void 0, playDetail.play.inputSchema),
13091
+ ..._chunkEQR5O2D2js.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
13118
13092
  ] : [];
13119
13093
  if (cliAdmission && fileInputBindings.length > 0) {
13120
- await _chunk7OGADAAAjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13094
+ await _chunkYUEFDOMEjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13121
13095
  cliAdmission = false;
13122
13096
  }
13123
- const stagedFileInputs = await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
13097
+ const stagedFileInputs = await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
13124
13098
  "cli.play_stage_inputs",
13125
13099
  {
13126
13100
  targetKind: "name",
@@ -13143,7 +13117,7 @@ async function handleNamedRun(options, hooks) {
13143
13117
  const testPolicyOverrides = {
13144
13118
  ...options.debugMapLatency ? { mapLatencyProfile: true } : {}
13145
13119
  };
13146
- const startRequest = _chunkPKV5CD3Wjs.buildNamedPlayRunRequest.call(void 0, {
13120
+ const startRequest = _chunkEQR5O2D2js.buildNamedPlayRunRequest.call(void 0, {
13147
13121
  name: playName,
13148
13122
  revisionId: selectedRevisionId,
13149
13123
  runtimeInput,
@@ -13164,7 +13138,7 @@ async function handleNamedRun(options, hooks) {
13164
13138
  });
13165
13139
  if (options.watch) {
13166
13140
  progress.phase("starting run");
13167
- const finalStatus = await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
13141
+ const finalStatus = await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
13168
13142
  "cli.play_start_watch",
13169
13143
  { targetKind: "name", playName },
13170
13144
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -13178,9 +13152,9 @@ async function handleNamedRun(options, hooks) {
13178
13152
  waitTimeoutMs: options.waitTimeoutMs,
13179
13153
  open: options.open,
13180
13154
  progress,
13181
- onRunStarted: _optionalChain([hooks, 'optionalAccess', _507 => _507.onRunStarted]),
13182
- onSubmission: _optionalChain([hooks, 'optionalAccess', _508 => _508.onSubmission]),
13183
- onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _509 => _509.onRunAdmitted]),
13155
+ onRunStarted: _optionalChain([hooks, 'optionalAccess', _502 => _502.onRunStarted]),
13156
+ onSubmission: _optionalChain([hooks, 'optionalAccess', _503 => _503.onSubmission]),
13157
+ onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _504 => _504.onRunAdmitted]),
13184
13158
  maintenancePolicy: options.maintenancePolicy,
13185
13159
  ...!options.runIdFile || options.fullJson ? { fullJson: options.fullJson } : {},
13186
13160
  ...cliAdmission ? {
@@ -13213,8 +13187,8 @@ async function handleNamedRun(options, hooks) {
13213
13187
  options,
13214
13188
  _nullishCoalesce(finalStatus.revisionId, () => ( selectedRevisionId))
13215
13189
  );
13216
- _optionalChain([hooks, 'optionalAccess', _510 => _510.onTerminalStatus, 'optionalCall', _511 => _511(outputStatus)]);
13217
- if (_optionalChain([hooks, 'optionalAccess', _512 => _512.writeResult])) {
13190
+ _optionalChain([hooks, 'optionalAccess', _505 => _505.onTerminalStatus, 'optionalCall', _506 => _506(outputStatus)]);
13191
+ if (_optionalChain([hooks, 'optionalAccess', _507 => _507.writeResult])) {
13218
13192
  await hooks.writeResult(client, outputStatus);
13219
13193
  return outputStatus.status === "completed" ? 0 : 1;
13220
13194
  }
@@ -13229,17 +13203,17 @@ async function handleNamedRun(options, hooks) {
13229
13203
  return outputStatus.status === "completed" ? 0 : 1;
13230
13204
  }
13231
13205
  progress.phase("starting run");
13232
- const started = await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
13206
+ const started = await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
13233
13207
  "cli.play_start_unwatched",
13234
13208
  { targetKind: "name", playName },
13235
- () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _513 => _513.onSubmission]) }).catch(async (error) => {
13209
+ () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _508 => _508.onSubmission]) }).catch(async (error) => {
13236
13210
  throw await normalizePlayStartError(client, error, playName, {
13237
13211
  suggestMissingPlay: true
13238
13212
  });
13239
13213
  })
13240
13214
  );
13241
- await _optionalChain([hooks, 'optionalAccess', _514 => _514.onRunStarted, 'optionalCall', _515 => _515(started.workflowId)]);
13242
- await _optionalChain([hooks, 'optionalAccess', _516 => _516.onRunAdmitted, 'optionalCall', _517 => _517(started.workflowId)]);
13215
+ await _optionalChain([hooks, 'optionalAccess', _509 => _509.onRunStarted, 'optionalCall', _510 => _510(started.workflowId)]);
13216
+ await _optionalChain([hooks, 'optionalAccess', _511 => _511.onRunAdmitted, 'optionalCall', _512 => _512(started.workflowId)]);
13243
13217
  const resolvedDashboardUrl = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
13244
13218
  openPlayDashboard(
13245
13219
  resolvePlayRunUrl({
@@ -13251,7 +13225,7 @@ async function handleNamedRun(options, hooks) {
13251
13225
  );
13252
13226
  progress.phase("started run");
13253
13227
  progress.complete();
13254
- if (_optionalChain([hooks, 'optionalAccess', _518 => _518.writeStarted])) {
13228
+ if (_optionalChain([hooks, 'optionalAccess', _513 => _513.writeStarted])) {
13255
13229
  hooks.writeStarted(
13256
13230
  started.workflowId,
13257
13231
  _nullishCoalesce(started.status, () => ( "started")),
@@ -13284,12 +13258,12 @@ async function writePlayRunReceipt(client, status, output) {
13284
13258
  const compact = compactPlayStatus(status);
13285
13259
  const errors = Array.isArray(compact.errors) ? compact.errors : [];
13286
13260
  const error = status.status === "failed" ? _nullishCoalesce(errors[0], () => ( {
13287
- message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access', _519 => _519.progress, 'optionalAccess', _520 => _520.error]))), () => ( "Play failed. Inspect the run for details."))
13261
+ message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access', _514 => _514.progress, 'optionalAccess', _515 => _515.error]))), () => ( "Play failed. Inspect the run for details."))
13288
13262
  })) : null;
13289
13263
  const next = { status: `deepline runs get ${status.runId}` };
13290
- const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _521 => _521.exec, 'call', _522 => _522(status.runId), 'optionalAccess', _523 => _523[1]]), () => ( extractRunPlayName(status))), () => ( null));
13264
+ const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _516 => _516.exec, 'call', _517 => _517(status.runId), 'optionalAccess', _518 => _518[1]]), () => ( extractRunPlayName(status))), () => ( null));
13291
13265
  if (!terminal) {
13292
- _chunkPEIOQKTAjs.writeExecutionOutput.call(void 0,
13266
+ _chunkFVS5MJQ5js.writeExecutionOutput.call(void 0,
13293
13267
  {
13294
13268
  id: status.runId,
13295
13269
  status: status.status,
@@ -13353,11 +13327,11 @@ async function writePlayRunReceipt(client, status, output) {
13353
13327
  Object.entries(handle).filter(([key]) => source !== "result" || key !== "_metadata").map(([key, child]) => [key, materialize(child, `${source}.${key}`)])
13354
13328
  );
13355
13329
  };
13356
- const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call', _524 => _524(status), 'optionalAccess', _525 => _525.outputs]));
13330
+ const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call', _519 => _519(status), 'optionalAccess', _520 => _520.outputs]));
13357
13331
  const returned = status.result !== void 0 ? status.result : packagedOutputs ? Object.fromEntries(
13358
13332
  Object.entries(packagedOutputs).map(([key, value]) => [
13359
13333
  key,
13360
- _optionalChain([readRecord, 'call', _526 => _526(value), 'optionalAccess', _527 => _527.kind]) === "value" ? _optionalChain([readRecord, 'call', _528 => _528(value), 'optionalAccess', _529 => _529.value]) : value
13334
+ _optionalChain([readRecord, 'call', _521 => _521(value), 'optionalAccess', _522 => _522.kind]) === "value" ? _optionalChain([readRecord, 'call', _523 => _523(value), 'optionalAccess', _524 => _524.value]) : value
13361
13335
  ])
13362
13336
  ) : null;
13363
13337
  let data = materialize(returned);
@@ -13369,10 +13343,10 @@ async function writePlayRunReceipt(client, status, output) {
13369
13343
  };
13370
13344
  }
13371
13345
  const byRows = new Map(collections.map((c) => [c.rows, c]));
13372
- const allCollections = _chunkPEIOQKTAjs.outputCollections.call(void 0, data).map(
13346
+ const allCollections = _chunkFVS5MJQ5js.outputCollections.call(void 0, data).map(
13373
13347
  (collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
13374
13348
  );
13375
- _chunkPEIOQKTAjs.writeExecutionOutput.call(void 0,
13349
+ _chunkFVS5MJQ5js.writeExecutionOutput.call(void 0,
13376
13350
  {
13377
13351
  id: status.runId,
13378
13352
  status: status.status,
@@ -13380,7 +13354,7 @@ async function writePlayRunReceipt(client, status, output) {
13380
13354
  ...allCollections.length ? { collections: allCollections } : {},
13381
13355
  complete: allCollections.every((c) => c.complete === true) ? true : allCollections.some((c) => c.complete === false) ? false : null,
13382
13356
  error,
13383
- credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _530 => _530.billing, 'optionalAccess', _531 => _531.totalCredits]))), () => ( null)),
13357
+ credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _525 => _525.billing, 'optionalAccess', _526 => _526.totalCredits]))), () => ( null)),
13384
13358
  ...playName ? { page: _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
13385
13359
  warnings: [
13386
13360
  ...buildRunWarnings(status, null),
@@ -13393,7 +13367,7 @@ async function writePlayRunReceipt(client, status, output) {
13393
13367
  }
13394
13368
  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;
13395
13369
  async function handlePlayRun(args, hooks) {
13396
- const parsedOptions = Array.isArray(args) ? _chunkXAOLMEN5js.parsePlayRunOptions.call(void 0, args) : args;
13370
+ const parsedOptions = Array.isArray(args) ? _chunk7FFNSYMJjs.parsePlayRunOptions.call(void 0, args) : args;
13397
13371
  const options = parsedOptions.runIdFile ? {
13398
13372
  ...parsedOptions,
13399
13373
  runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
@@ -13410,7 +13384,7 @@ async function handlePlayRun(args, hooks) {
13410
13384
  JSON.stringify({
13411
13385
  version: 1,
13412
13386
  admissionState: "submitted_unknown",
13413
- baseUrl: new (0, _chunkZ33PZUWGjs.DeeplineClient)().baseUrl,
13387
+ baseUrl: new (0, _chunkB4Q3EBQXjs.DeeplineClient)().baseUrl,
13414
13388
  ...intent
13415
13389
  })
13416
13390
  );
@@ -13422,7 +13396,7 @@ async function handlePlayRun(args, hooks) {
13422
13396
  } finally {
13423
13397
  await removeRunIdTempFile(tempPath);
13424
13398
  }
13425
- await _optionalChain([hooks, 'optionalAccess', _532 => _532.onSubmission, 'optionalCall', _533 => _533(intent)]);
13399
+ await _optionalChain([hooks, 'optionalAccess', _527 => _527.onSubmission, 'optionalCall', _528 => _528(intent)]);
13426
13400
  },
13427
13401
  onRunStarted: async (runId) => {
13428
13402
  try {
@@ -13433,7 +13407,7 @@ async function handlePlayRun(args, hooks) {
13433
13407
  { cause: error }
13434
13408
  );
13435
13409
  }
13436
- await _optionalChain([hooks, 'optionalAccess', _534 => _534.onRunStarted, 'optionalCall', _535 => _535(runId)]);
13410
+ await _optionalChain([hooks, 'optionalAccess', _529 => _529.onRunStarted, 'optionalCall', _530 => _530(runId)]);
13437
13411
  },
13438
13412
  onRunAdmitted: async (runId) => {
13439
13413
  try {
@@ -13446,7 +13420,7 @@ async function handlePlayRun(args, hooks) {
13446
13420
  { cause: error }
13447
13421
  );
13448
13422
  }
13449
- await _optionalChain([hooks, 'optionalAccess', _536 => _536.onRunAdmitted, 'optionalCall', _537 => _537(runId)]);
13423
+ await _optionalChain([hooks, 'optionalAccess', _531 => _531.onRunAdmitted, 'optionalCall', _532 => _532(runId)]);
13450
13424
  }
13451
13425
  } : hooks;
13452
13426
  if (options.target.kind === "file") {
@@ -13525,10 +13499,10 @@ function renderRunOverviewText(overview, extras = {}) {
13525
13499
  ...buildRunActivityTextLines(run),
13526
13500
  ...buildRunStatusEvidenceTextLines(overview)
13527
13501
  ];
13528
- if (_optionalChain([overview, 'access', _538 => _538.runStatus, 'optionalAccess', _539 => _539.available]) === false)
13502
+ if (_optionalChain([overview, 'access', _533 => _533.runStatus, 'optionalAccess', _534 => _534.available]) === false)
13529
13503
  lines.push(` call progress: unavailable (${overview.runStatus.reason})`);
13530
- const work = readRecord(_optionalChain([readRecord, 'call', _540 => _540(run), 'optionalAccess', _541 => _541.work]));
13531
- if (work && !_optionalChain([overview, 'access', _542 => _542.runStatus, 'optionalAccess', _543 => _543.available]))
13504
+ const work = readRecord(_optionalChain([readRecord, 'call', _535 => _535(run), 'optionalAccess', _536 => _536.work]));
13505
+ if (work && !_optionalChain([overview, 'access', _537 => _537.runStatus, 'optionalAccess', _538 => _538.available]))
13532
13506
  lines.push(
13533
13507
  ` calls (${_nullishCoalesce(work.scope, () => ( "attempt scope unknown"))}): ${formatObservedRunCounter({ value: work.logicalCalls, confirmed: true })} logical, ${formatObservedRunCounter({ value: work.providerRequests, confirmed: true })} provider requests`
13534
13508
  );
@@ -13579,7 +13553,7 @@ function renderRunOverviewText(overview, extras = {}) {
13579
13553
  ...overview.failedLogs.warning ? [`warning: ${overview.failedLogs.warning}`] : [],
13580
13554
  ...overview.failedLogs.logsTruncated ? ["Older log bodies were not retained."] : [],
13581
13555
  ...overview.failedLogs.entries,
13582
- ..._optionalChain([overview, 'access', _544 => _544.failedLogs, 'access', _545 => _545.next, 'optionalAccess', _546 => _546.logs]) ? [`More logs: ${overview.failedLogs.next.logs}`] : []
13556
+ ..._optionalChain([overview, 'access', _539 => _539.failedLogs, 'access', _540 => _540.next, 'optionalAccess', _541 => _541.logs]) ? [`More logs: ${overview.failedLogs.next.logs}`] : []
13583
13557
  ]
13584
13558
  });
13585
13559
  sections.push({
@@ -13639,7 +13613,7 @@ function renderRunOverviewText(overview, extras = {}) {
13639
13613
  );
13640
13614
  return `${lines.join("\n")}
13641
13615
 
13642
- ${_chunkMAMEKGLIjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13616
+ ${_chunkXLYJ7MJXjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13643
13617
  }
13644
13618
  var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
13645
13619
  async function withRunReadTiming(command, stage, enabled, action) {
@@ -13650,7 +13624,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
13650
13624
  const progressTimer = setInterval(() => {
13651
13625
  console.error(`[${command}] ${stage} still running after ${elapsedMs()}ms`);
13652
13626
  }, RUN_READ_TIMING_PROGRESS_INTERVAL_MS);
13653
- _optionalChain([progressTimer, 'access', _547 => _547.unref, 'optionalCall', _548 => _548()]);
13627
+ _optionalChain([progressTimer, 'access', _542 => _542.unref, 'optionalCall', _543 => _543()]);
13654
13628
  try {
13655
13629
  const result = await action();
13656
13630
  console.error(`[${command}] ${stage} completed in ${elapsedMs()}ms`);
@@ -13663,7 +13637,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
13663
13637
  }
13664
13638
  }
13665
13639
  async function handleRunGet(args) {
13666
- const selection = _chunkMAMEKGLIjs.parseJsonFields.call(void 0,
13640
+ const selection = _chunkXLYJ7MJXjs.parseJsonFields.call(void 0,
13667
13641
  args,
13668
13642
  args.includes("--config") ? "config" : "get"
13669
13643
  );
@@ -13676,7 +13650,7 @@ async function handleRunGet(args) {
13676
13650
  console.error(error instanceof Error ? error.message : usage2);
13677
13651
  return 1;
13678
13652
  }
13679
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
13653
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
13680
13654
  const timing = args.includes("--timing");
13681
13655
  const web = args.includes("--web");
13682
13656
  if (web || args.includes("--web-url")) {
@@ -13694,8 +13668,8 @@ async function handleRunGet(args) {
13694
13668
  const dashboardUrl2 = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
13695
13669
  const runUrl2 = _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
13696
13670
  if (web) {
13697
- const opened = _chunkMAMEKGLIjs.openInBrowser.call(void 0, runUrl2);
13698
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
13671
+ const opened = _chunkXLYJ7MJXjs.openInBrowser.call(void 0, runUrl2);
13672
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
13699
13673
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
13700
13674
  {
13701
13675
  json: args.includes("--json"),
@@ -13706,7 +13680,7 @@ async function handleRunGet(args) {
13706
13680
  );
13707
13681
  return 0;
13708
13682
  }
13709
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
13683
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
13710
13684
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
13711
13685
  { json: args.includes("--json"), text: `${runUrl2}
13712
13686
  ` }
@@ -13731,7 +13705,7 @@ async function handleRunGet(args) {
13731
13705
  "This server does not support recorded configuration reads."
13732
13706
  );
13733
13707
  }
13734
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
13708
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
13735
13709
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13736
13710
  { json: true, fields: selection.fields }
13737
13711
  );
@@ -13744,7 +13718,7 @@ async function handleRunGet(args) {
13744
13718
  timing,
13745
13719
  () => client.getRunInput(runId)
13746
13720
  );
13747
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, input, { json: true });
13721
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, input, { json: true });
13748
13722
  return 0;
13749
13723
  }
13750
13724
  const full = args.includes("--full");
@@ -13757,7 +13731,7 @@ async function handleRunGet(args) {
13757
13731
  failedLogs: args.includes("--log-failed")
13758
13732
  })
13759
13733
  );
13760
- if (status.package) _chunkPEIOQKTAjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13734
+ if (status.package) _chunkFVS5MJQ5js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13761
13735
  if (!status.package) {
13762
13736
  const legacyStatus = full ? await withRunReadTiming(
13763
13737
  "runs get",
@@ -13771,8 +13745,8 @@ async function handleRunGet(args) {
13771
13745
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
13772
13746
  const legacyDashboardUrl = legacyPlayName ? _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
13773
13747
  const legacyRunUrl = legacyPlayName ? _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
13774
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
13775
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
13748
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
13749
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
13776
13750
  {
13777
13751
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
13778
13752
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
@@ -13783,7 +13757,7 @@ async function handleRunGet(args) {
13783
13757
  } else {
13784
13758
  writePlayResult(legacyStatus, false, { fullJson: full });
13785
13759
  if (legacyRunUrl)
13786
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
13760
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
13787
13761
  { dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
13788
13762
  { json: false, text: `run page: ${legacyRunUrl}
13789
13763
  ` }
@@ -13813,11 +13787,11 @@ async function handleRunGet(args) {
13813
13787
  )
13814
13788
  ]);
13815
13789
  const hitLines = formatRunHitsLines(hits);
13816
- const json = _chunkMAMEKGLIjs.argsWantJson.call(void 0, args);
13790
+ const json = _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args);
13817
13791
  const playName = resolveRunPlayName(status, runId);
13818
13792
  const dashboardUrl = playName ? _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
13819
13793
  const runUrl = playName ? _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
13820
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
13794
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
13821
13795
  {
13822
13796
  ...overview,
13823
13797
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -13922,9 +13896,9 @@ async function handleRunLifecycleStatus(args) {
13922
13896
  console.error(error instanceof Error ? error.message : usage2);
13923
13897
  return 1;
13924
13898
  }
13925
- const status = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().runs.status(runId);
13926
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
13927
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, status, { json: true });
13899
+ const status = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().runs.status(runId);
13900
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
13901
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, status, { json: true });
13928
13902
  return 0;
13929
13903
  }
13930
13904
  if (!status.available) {
@@ -13964,7 +13938,7 @@ async function handleRunsRerun(args) {
13964
13938
  console.error(error instanceof Error ? error.message : usage2);
13965
13939
  return 1;
13966
13940
  }
13967
- const options = { json: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args) };
13941
+ const options = { json: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args) };
13968
13942
  for (let index = 0; index < args.length; index += 1) {
13969
13943
  if (args[index] === "--idempotency-key") {
13970
13944
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -14030,8 +14004,8 @@ ${usage2}
14030
14004
  Discover Plays: ${next.discover}
14031
14005
  Active runs: ${next.running}`
14032
14006
  );
14033
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
14034
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
14007
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
14008
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
14035
14009
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
14036
14010
  { json: true }
14037
14011
  );
@@ -14046,7 +14020,7 @@ Active runs: ${next.running}`
14046
14020
  console.error("--offset requires --play.");
14047
14021
  return 1;
14048
14022
  }
14049
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
14023
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
14050
14024
  const page = await withRunReadTiming(
14051
14025
  "runs list",
14052
14026
  "run inventory",
@@ -14081,7 +14055,7 @@ Active runs: ${next.running}`
14081
14055
  executionTime: run.executionTime,
14082
14056
  billingTotalCredits: run.billingTotalCredits,
14083
14057
  billingMaxCreditsPerRun: run.billingMaxCreditsPerRun,
14084
- playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access', _549 => _549.memo, 'optionalAccess', _550 => _550.playName]))), () => ( playName)), () => ( null)),
14058
+ playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access', _544 => _544.memo, 'optionalAccess', _545 => _545.playName]))), () => ( playName)), () => ( null)),
14085
14059
  ...nodeId ? { nodeObservation: _nullishCoalesce(run.nodeObservation, () => ( null)) } : {}
14086
14060
  }));
14087
14061
  const lines = runs.length === 0 ? [
@@ -14113,14 +14087,14 @@ Active runs: ${next.running}`
14113
14087
  return lines2.join("\n");
14114
14088
  });
14115
14089
  const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
14116
- const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkMAMEKGLIjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14090
+ 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}${_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14117
14091
  if (page.hasMore) {
14118
14092
  lines.push("List truncated \u2014 more runs match this filter.");
14119
14093
  lines.push(
14120
14094
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14121
14095
  );
14122
14096
  }
14123
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
14097
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
14124
14098
  {
14125
14099
  runs,
14126
14100
  count: runs.length,
@@ -14130,11 +14104,11 @@ Active runs: ${next.running}`
14130
14104
  ...page.hasMore !== void 0 ? { has_more: page.hasMore, is_truncated: page.hasMore } : {},
14131
14105
  next: {
14132
14106
  page: nextPage,
14133
- get: _optionalChain([runs, 'access', _551 => _551[0], 'optionalAccess', _552 => _552.id]) ? `deepline runs get ${runs[0].id}` : null
14107
+ get: _optionalChain([runs, 'access', _546 => _546[0], 'optionalAccess', _547 => _547.id]) ? `deepline runs get ${runs[0].id}` : null
14134
14108
  },
14135
14109
  render: { sections: [{ title: "runs", lines }] }
14136
14110
  },
14137
- { json: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args) }
14111
+ { json: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args) }
14138
14112
  );
14139
14113
  return 0;
14140
14114
  }
@@ -14164,7 +14138,7 @@ async function handleRunTail(args) {
14164
14138
  console.error("--log-level requires one of: debug, info, warn, error.");
14165
14139
  return 1;
14166
14140
  }
14167
- const parsed = _chunkTUAEM76Yjs.parseLogLevel.call(void 0, value);
14141
+ const parsed = _chunk3KG2FUU4js.parseLogLevel.call(void 0, value);
14168
14142
  if (!parsed) {
14169
14143
  console.error(
14170
14144
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14202,9 +14176,9 @@ async function handleRunTail(args) {
14202
14176
  );
14203
14177
  return 1;
14204
14178
  }
14205
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
14179
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
14206
14180
  const jsonLines = args.includes("--jsonl");
14207
- const jsonOutput = !jsonLines && _chunkMAMEKGLIjs.argsWantJson.call(void 0, args);
14181
+ const jsonOutput = !jsonLines && _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args);
14208
14182
  const compact = args.includes("--compact");
14209
14183
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14210
14184
  const compactState = {
@@ -14285,7 +14259,7 @@ async function handleRunLogs(args) {
14285
14259
  ]);
14286
14260
  const cursorIndex = args.indexOf("--cursor");
14287
14261
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14288
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkTUAEM76Yjs.isRunLogsCursor.call(void 0, cursorValue));
14262
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk3KG2FUU4js.isRunLogsCursor.call(void 0, cursorValue));
14289
14263
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14290
14264
  return handleRunEventSearch(args);
14291
14265
  }
@@ -14319,7 +14293,7 @@ async function handleRunLogs(args) {
14319
14293
  console.error("--log-level requires one of: debug, info, warn, error.");
14320
14294
  return 1;
14321
14295
  }
14322
- const parsed = _chunkTUAEM76Yjs.parseLogLevel.call(void 0, value);
14296
+ const parsed = _chunk3KG2FUU4js.parseLogLevel.call(void 0, value);
14323
14297
  if (!parsed) {
14324
14298
  console.error(
14325
14299
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14366,12 +14340,12 @@ async function handleRunLogs(args) {
14366
14340
  );
14367
14341
  return 1;
14368
14342
  }
14369
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
14343
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
14370
14344
  if (outPath) {
14371
14345
  const result2 = await client.runs.logs(runId, { all: true });
14372
- const logs = result2.entries.filter((line) => _chunkTUAEM76Yjs.logLevelReaches.call(void 0, _chunkTUAEM76Yjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkTUAEM76Yjs.classifyLogLine.call(void 0, line).line);
14346
+ const logs = result2.entries.filter((line) => _chunk3KG2FUU4js.logLevelReaches.call(void 0, _chunk3KG2FUU4js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk3KG2FUU4js.classifyLogLine.call(void 0, line).line);
14373
14347
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14374
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
14348
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
14375
14349
  {
14376
14350
  runId: result2.runId,
14377
14351
  log_path: outPath,
@@ -14394,7 +14368,7 @@ async function handleRunLogs(args) {
14394
14368
  ]
14395
14369
  }
14396
14370
  },
14397
- { json: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args) }
14371
+ { json: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args) }
14398
14372
  );
14399
14373
  return 0;
14400
14374
  }
@@ -14425,7 +14399,7 @@ async function handleRunLogs(args) {
14425
14399
  }
14426
14400
  };
14427
14401
  const text = buildRunLogsText(filteredResult);
14428
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
14402
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
14429
14403
  {
14430
14404
  runId: result.runId,
14431
14405
  totalCount: result.totalCount,
@@ -14449,7 +14423,7 @@ async function handleRunLogs(args) {
14449
14423
  render: { sections: [{ title: "run logs", lines: entries }] }
14450
14424
  },
14451
14425
  {
14452
- json: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args),
14426
+ json: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args),
14453
14427
  text
14454
14428
  }
14455
14429
  );
@@ -14473,17 +14447,17 @@ function selectRunLogTailPage(result, logLevel, limit) {
14473
14447
  );
14474
14448
  }
14475
14449
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14476
- (entry) => _chunkTUAEM76Yjs.logLevelReaches.call(void 0, _chunkTUAEM76Yjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14450
+ (entry) => _chunk3KG2FUU4js.logLevelReaches.call(void 0, _chunk3KG2FUU4js.classifyLogLine.call(void 0, entry.line).level, logLevel)
14477
14451
  );
14478
14452
  const selected = matching.slice(-limit);
14479
14453
  const olderMatchesExist = matching.length > selected.length;
14480
14454
  return {
14481
14455
  entries: selected.map((entry) => entry.line),
14482
- firstSequence: _nullishCoalesce(_optionalChain([selected, 'access', _553 => _553[0], 'optionalAccess', _554 => _554.seq]), () => ( null)),
14483
- lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _555 => _555.at, 'call', _556 => _556(-1), 'optionalAccess', _557 => _557.seq]), () => ( null)),
14456
+ firstSequence: _nullishCoalesce(_optionalChain([selected, 'access', _548 => _548[0], 'optionalAccess', _549 => _549.seq]), () => ( null)),
14457
+ lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _550 => _550.at, 'call', _551 => _551(-1), 'optionalAccess', _552 => _552.seq]), () => ( null)),
14484
14458
  truncated: result.truncated || olderMatchesExist,
14485
14459
  hasMore: olderMatchesExist,
14486
- nextCursor: olderMatchesExist ? _chunkTUAEM76Yjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14460
+ nextCursor: olderMatchesExist ? _chunk3KG2FUU4js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14487
14461
  };
14488
14462
  }
14489
14463
  async function handleRunEventSearch(args) {
@@ -14550,7 +14524,7 @@ ${usage2}`);
14550
14524
  namespace,
14551
14525
  ...backend ? { backend } : {}
14552
14526
  } : void 0;
14553
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
14527
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
14554
14528
  const result = await client.runs.searchEvents({
14555
14529
  ...runId ? { runId } : {},
14556
14530
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14622,7 +14596,7 @@ ${renderedDetails}` : ""}`;
14622
14596
  "--limit",
14623
14597
  String(limit)
14624
14598
  ].join(" ") : null;
14625
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
14599
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
14626
14600
  {
14627
14601
  events,
14628
14602
  nextCursor: result.nextCursor,
@@ -14633,19 +14607,19 @@ ${renderedDetails}` : ""}`;
14633
14607
  render: { sections: [{ title: "runtime events", lines }] }
14634
14608
  },
14635
14609
  {
14636
- json: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args),
14610
+ json: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args),
14637
14611
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14638
14612
  }
14639
14613
  );
14640
14614
  return 0;
14641
14615
  }
14642
14616
  function buildRunLogsText(result) {
14643
- const lines = result.entries.map((line) => _chunkTUAEM76Yjs.classifyLogLine.call(void 0, line).line);
14617
+ const lines = result.entries.map((line) => _chunk3KG2FUU4js.classifyLogLine.call(void 0, line).line);
14644
14618
  if (result.warning) {
14645
14619
  if (lines.length > 0) lines.push("");
14646
14620
  lines.push(`warning: ${result.warning}`);
14647
14621
  lines.push(
14648
- `retained logs: ${_nullishCoalesce(_optionalChain([result, 'access', _558 => _558.next, 'optionalAccess', _559 => _559.logs]), () => ( `deepline runs logs ${result.runId} --out run.log`))}`
14622
+ `retained logs: ${_nullishCoalesce(_optionalChain([result, 'access', _553 => _553.next, 'optionalAccess', _554 => _554.logs]), () => ( `deepline runs logs ${result.runId} --out run.log`))}`
14649
14623
  );
14650
14624
  }
14651
14625
  return `${lines.join("\n")}${lines.length > 0 ? "\n" : ""}`;
@@ -14674,7 +14648,7 @@ async function handleRunStop(args) {
14674
14648
  reason = args[++index];
14675
14649
  }
14676
14650
  }
14677
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
14651
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
14678
14652
  const result = await client.runs.stop(runId, { reason });
14679
14653
  const state = resolveRunStopState(result);
14680
14654
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14689,7 +14663,7 @@ async function handleRunStop(args) {
14689
14663
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14690
14664
  `inspect: deepline runs get ${runId} --full`
14691
14665
  ];
14692
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
14666
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
14693
14667
  {
14694
14668
  ...cancelling,
14695
14669
  state,
@@ -14704,7 +14678,7 @@ async function handleRunStop(args) {
14704
14678
  ]
14705
14679
  }
14706
14680
  },
14707
- { json: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args) }
14681
+ { json: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args) }
14708
14682
  );
14709
14683
  return 0;
14710
14684
  }
@@ -14721,7 +14695,7 @@ async function handleRunStop(args) {
14721
14695
  ];
14722
14696
  process.stderr.write(`${lines2.join("\n")}
14723
14697
  `);
14724
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
14698
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
14725
14699
  {
14726
14700
  ...result,
14727
14701
  render: {
@@ -14736,7 +14710,7 @@ async function handleRunStop(args) {
14736
14710
  ]
14737
14711
  }
14738
14712
  },
14739
- { json: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args) }
14713
+ { json: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args) }
14740
14714
  );
14741
14715
  return 1;
14742
14716
  }
@@ -14747,12 +14721,12 @@ async function handleRunStop(args) {
14747
14721
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14748
14722
  ] : []
14749
14723
  ];
14750
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
14724
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
14751
14725
  {
14752
14726
  ...result,
14753
14727
  render: { sections: [{ title: "run stop", lines }] }
14754
14728
  },
14755
- { json: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args) }
14729
+ { json: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args) }
14756
14730
  );
14757
14731
  return 0;
14758
14732
  }
@@ -14802,18 +14776,18 @@ async function handleRunStopAll(args) {
14802
14776
  reason = args[++index];
14803
14777
  }
14804
14778
  }
14805
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
14779
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
14806
14780
  if (dryRun) {
14807
14781
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14808
14782
  const lines2 = buildStopAllDryRunTextLines(result2);
14809
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
14783
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
14810
14784
  {
14811
14785
  ...result2,
14812
14786
  render: {
14813
14787
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14814
14788
  }
14815
14789
  },
14816
- { json: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14790
+ { json: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14817
14791
  ` }
14818
14792
  );
14819
14793
  return 0;
@@ -14826,17 +14800,17 @@ async function handleRunStopAll(args) {
14826
14800
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14827
14801
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14828
14802
  ];
14829
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
14803
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
14830
14804
  {
14831
14805
  ...result,
14832
14806
  render: { sections: [{ title: "workspace stop-all", lines }] }
14833
14807
  },
14834
- { json: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args) }
14808
+ { json: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args) }
14835
14809
  );
14836
14810
  return result.failed > 0 || result.partial ? 1 : 0;
14837
14811
  }
14838
14812
  async function handleRunExport(args) {
14839
- const selection = _chunkMAMEKGLIjs.parseJsonFields.call(void 0, args, "export");
14813
+ const selection = _chunkXLYJ7MJXjs.parseJsonFields.call(void 0, args, "export");
14840
14814
  args = selection.args;
14841
14815
  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]";
14842
14816
  let runId;
@@ -14907,17 +14881,17 @@ async function handleRunExport(args) {
14907
14881
  "INVALID_ARGUMENT"
14908
14882
  );
14909
14883
  }
14910
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
14884
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
14911
14885
  let status = await client.getPlayStatus(runId, { full: true });
14912
14886
  assertRunExportStatusIdentity(status, runId);
14913
14887
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14914
- const progress = _chunkXKYQR3QKjs.createCliProgress.call(void 0, !_chunkMAMEKGLIjs.argsWantJson.call(void 0, args));
14888
+ const progress = _chunk7RBIOOCQjs.createCliProgress.call(void 0, !_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args));
14915
14889
  try {
14916
14890
  await waitForPlayCompletionByWatch({
14917
14891
  client,
14918
14892
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14919
14893
  workflowId: runId,
14920
- jsonOutput: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args),
14894
+ jsonOutput: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args),
14921
14895
  emitLogs: false,
14922
14896
  waitTimeoutMs,
14923
14897
  startedAt: Date.now(),
@@ -14943,26 +14917,26 @@ async function handleRunExport(args) {
14943
14917
  format,
14944
14918
  summary
14945
14919
  });
14946
- const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _560 => _560.rowsInfo, 'access', _561 => _561.source]), () => ( datasetPath)), () => ( null));
14947
- const currentTableNotice = _optionalChain([exportResult, 'optionalAccess', _562 => _562.currentTable]) ? {
14920
+ const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _555 => _555.rowsInfo, 'access', _556 => _556.source]), () => ( datasetPath)), () => ( null));
14921
+ const currentTableNotice = _optionalChain([exportResult, 'optionalAccess', _557 => _557.currentTable]) ? {
14948
14922
  code: "CURRENT_SHARED_DATASET",
14949
14923
  message: "This export is the current shared dataset and may include writes from another run.",
14950
14924
  full_run_output_command: `deepline runs get ${status.runId} --full`
14951
14925
  } : null;
14952
14926
  const navigation = buildRunNavigation(status);
14953
- const resolved = _optionalChain([exportResult, 'optionalAccess', _563 => _563.datasetInfo]);
14927
+ const resolved = _optionalChain([exportResult, 'optionalAccess', _558 => _558.datasetInfo]);
14954
14928
  const identity = navigation.datasets.find(
14955
- (dataset) => _optionalChain([resolved, 'optionalAccess', _564 => _564.datasetId]) ? dataset.datasetId === resolved.datasetId : dataset.name === _optionalChain([resolved, 'optionalAccess', _565 => _565.tableNamespace])
14929
+ (dataset) => _optionalChain([resolved, 'optionalAccess', _559 => _559.datasetId]) ? dataset.datasetId === resolved.datasetId : dataset.name === _optionalChain([resolved, 'optionalAccess', _560 => _560.tableNamespace])
14956
14930
  );
14957
14931
  const unambiguousName = identity && !identity.exportUnavailable && navigation.datasets.filter((dataset) => dataset.name === identity.name).length === 1 ? identity.name : void 0;
14958
14932
  const exportCommand = runExportRetryCommand(
14959
14933
  status.runId,
14960
14934
  outPath,
14961
- _nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess', _566 => _566.datasetPath]))),
14935
+ _nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess', _561 => _561.datasetPath]))),
14962
14936
  { format, summary }
14963
14937
  ) + (args.includes("--allow-empty") ? " --allow-empty" : "");
14964
- const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _567 => _567.path]), () => ( null)) } : { csv_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _568 => _568.path]), () => ( null)) };
14965
- const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess', _569 => _569.rowsInfo, 'access', _570 => _570.exportedRowOutcomes]);
14938
+ const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _562 => _562.path]), () => ( null)) } : { csv_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _563 => _563.path]), () => ( null)) };
14939
+ const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess', _564 => _564.rowsInfo, 'access', _565 => _565.exportedRowOutcomes]);
14966
14940
  const rowFailures = exportedRowOutcomes && exportedRowOutcomes.failed > 0 ? {
14967
14941
  count: exportedRowOutcomes.failed,
14968
14942
  message: "Failed rows can retain values from stages that completed earlier; those values do not prove the row succeeded.",
@@ -14982,17 +14956,17 @@ async function handleRunExport(args) {
14982
14956
  ...fileLocation,
14983
14957
  format,
14984
14958
  source,
14985
- rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.totalRows]), () => ( null)),
14959
+ rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _566 => _566.rowsInfo, 'access', _567 => _567.totalRows]), () => ( null)),
14986
14960
  ...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
14987
14961
  ...rowFailures ? { rowFailures } : {},
14988
- columns: _chunkPEIOQKTAjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _573 => _573.rowsInfo, 'access', _574 => _574.columns]), () => ( []))),
14962
+ columns: _chunkFVS5MJQ5js.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _568 => _568.rowsInfo, 'access', _569 => _569.columns]), () => ( []))),
14989
14963
  ...currentTableNotice ? { notice: currentTableNotice } : {},
14990
14964
  ...metadataOutPath ? { metadata_path: metadataOutPath } : {},
14991
14965
  ...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
14992
14966
  };
14993
14967
  const lines = withRunNavigationLines(
14994
14968
  [
14995
- `Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _575 => _575.path]), () => ( outPath))}`,
14969
+ `Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _570 => _570.path]), () => ( outPath))}`,
14996
14970
  ...!TERMINAL_PLAY_STATUSES.has(status.status) ? [
14997
14971
  `Partial export: run is ${status.status}; more rows may be saved.`,
14998
14972
  `Export after completion: ${exportCommand} --wait`
@@ -15019,8 +14993,8 @@ async function handleRunExport(args) {
15019
14993
  "utf-8"
15020
14994
  );
15021
14995
  }
15022
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, payload, {
15023
- json: _chunkMAMEKGLIjs.argsWantJson.call(void 0, args),
14996
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, payload, {
14997
+ json: _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args),
15024
14998
  fields: selection.fields,
15025
14999
  text: `${lines.join("\n")}
15026
15000
  `
@@ -15054,10 +15028,10 @@ async function handlePlayGet(args) {
15054
15028
  );
15055
15029
  return 2;
15056
15030
  }
15057
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
15031
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
15058
15032
  const explicitJson = args.includes("--json");
15059
15033
  const sourceOutput = args.includes("--source");
15060
- const jsonOutput = sourceOutput ? explicitJson : _chunkMAMEKGLIjs.argsWantJson.call(void 0, args);
15034
+ const jsonOutput = sourceOutput ? explicitJson : _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args);
15061
15035
  const requestedRevisionFlags = [
15062
15036
  args.includes("--working"),
15063
15037
  args.includes("--live"),
@@ -15110,7 +15084,7 @@ async function handlePlayGet(args) {
15110
15084
  ...includeSource ? { source: sourceSelector } : {}
15111
15085
  });
15112
15086
  const source = detail.source;
15113
- const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess', _576 => _576.files, 'access', _577 => _577[source.entryFile]]), () => ( ""));
15087
+ const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess', _571 => _571.files, 'access', _572 => _572[source.entryFile]]), () => ( ""));
15114
15088
  let materializedFile = null;
15115
15089
  try {
15116
15090
  materializedFile = outPath && source ? materializeRemotePlaySource({ target, playName, source, outPath }) : null;
@@ -15120,7 +15094,7 @@ async function handlePlayGet(args) {
15120
15094
  }
15121
15095
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15122
15096
  if (jsonOutput) {
15123
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, {
15097
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, {
15124
15098
  ...detail,
15125
15099
  ...materializedFile ? {
15126
15100
  message: loadedMessage,
@@ -15161,16 +15135,16 @@ async function handlePlayGet(args) {
15161
15135
  }
15162
15136
  console.log(`Play: ${formatPlayReference(detail.play)}`);
15163
15137
  console.log(
15164
- `Working version: ${_nullishCoalesce(_optionalChain([detail, 'access', _578 => _578.play, 'access', _579 => _579.workingRevision, 'optionalAccess', _580 => _580.version]), () => ( "\u2014"))}`
15138
+ `Working version: ${_nullishCoalesce(_optionalChain([detail, 'access', _573 => _573.play, 'access', _574 => _574.workingRevision, 'optionalAccess', _575 => _575.version]), () => ( "\u2014"))}`
15165
15139
  );
15166
- console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access', _581 => _581.play, 'access', _582 => _582.liveRevision, 'optionalAccess', _583 => _583.version]), () => ( "\u2014"))}`);
15140
+ console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access', _576 => _576.play, 'access', _577 => _577.liveRevision, 'optionalAccess', _578 => _578.version]), () => ( "\u2014"))}`);
15167
15141
  if (detail.play.liveRevision) {
15168
15142
  console.log(
15169
15143
  `Live max credits per run: ${liveMaxCreditsPerRun(detail.play.liveRevision.sourceCode)}`
15170
15144
  );
15171
15145
  }
15172
15146
  console.log(`Draft dirty: ${detail.play.isDraftDirty ? "yes" : "no"}`);
15173
- if (detail.play.isDraftDirty && _optionalChain([detail, 'access', _584 => _584.play, 'access', _585 => _585.liveRevision, 'optionalAccess', _586 => _586.version])) {
15147
+ if (detail.play.isDraftDirty && _optionalChain([detail, 'access', _579 => _579.play, 'access', _580 => _580.liveRevision, 'optionalAccess', _581 => _581.version])) {
15174
15148
  console.log(
15175
15149
  ` Scheduled and named runs continue to use live v${detail.play.liveRevision.version}.`
15176
15150
  );
@@ -15182,7 +15156,7 @@ async function handlePlayGet(args) {
15182
15156
  console.log(line);
15183
15157
  }
15184
15158
  console.log(`Updated: ${formatTimestamp(detail.play.updatedAt)}`);
15185
- console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access', _587 => _587.sheetSummary, 'optionalAccess', _588 => _588.stats, 'optionalAccess', _589 => _589.total]), () => ( 0))}`);
15159
+ console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access', _582 => _582.sheetSummary, 'optionalAccess', _583 => _583.stats, 'optionalAccess', _584 => _584.total]), () => ( 0))}`);
15186
15160
  if (detail.customerDbUrl) {
15187
15161
  console.log(`Customer DB: ${detail.customerDbUrl}`);
15188
15162
  }
@@ -15198,7 +15172,7 @@ async function handlePlayGet(args) {
15198
15172
  return 0;
15199
15173
  }
15200
15174
  function formatVersionLine(version) {
15201
- const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access', _590 => _590.artifactHash, 'optionalAccess', _591 => _591.slice, 'call', _592 => _592(0, 12)]), () => ( "unknown-revision"));
15175
+ const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access', _585 => _585.artifactHash, 'optionalAccess', _586 => _586.slice, 'call', _587 => _587(0, 12)]), () => ( "unknown-revision"));
15202
15176
  const state = [
15203
15177
  version.isLive ? "live" : null,
15204
15178
  version.isWorking ? "working" : null
@@ -15212,8 +15186,8 @@ async function handlePlayVersions(args) {
15212
15186
  console.error("Usage: deepline plays versions --name <name> [--json]");
15213
15187
  return 1;
15214
15188
  }
15215
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
15216
- const jsonOutput = _chunkMAMEKGLIjs.argsWantJson.call(void 0, args);
15189
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
15190
+ const jsonOutput = _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args);
15217
15191
  await assertCanonicalNamedPlayReference(client, playName, {
15218
15192
  command: "versions"
15219
15193
  });
@@ -15221,7 +15195,7 @@ async function handlePlayVersions(args) {
15221
15195
  parseReferencedPlayTarget(playName).playName
15222
15196
  );
15223
15197
  if (jsonOutput) {
15224
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, { versions });
15198
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, { versions });
15225
15199
  return 0;
15226
15200
  }
15227
15201
  if (versions.length === 0) {
@@ -15234,7 +15208,7 @@ async function handlePlayVersions(args) {
15234
15208
  return 0;
15235
15209
  }
15236
15210
  function formatPlayCostEstimate(estimate) {
15237
- const computeSummary = _optionalChain([estimate, 'optionalAccess', _593 => _593.compute]) ? `; ${estimate.status === "available" && estimate.source === "observed" ? "observed Deepline total includes usage-based compute; per-session ceiling" : "separate Deepline compute is usage-based; per-session ceiling"} across ${estimate.compute.pricedBackends.map(formatSandboxBackend).join(" and ")}: ${formatCredits(estimate.compute.maximumCredits)} credits (${formatSandboxBackend(estimate.compute.maximumBackend)} is highest; ${formatCredits(estimate.compute.maximumBillingSeconds)}s; total session count unbounded)` : "";
15211
+ const computeSummary = _optionalChain([estimate, 'optionalAccess', _588 => _588.compute]) ? `; ${estimate.status === "available" && estimate.source === "observed" ? "observed Deepline total includes usage-based compute; per-session ceiling" : "separate Deepline compute is usage-based; per-session ceiling"} across ${estimate.compute.pricedBackends.map(formatSandboxBackend).join(" and ")}: ${formatCredits(estimate.compute.maximumCredits)} credits (${formatSandboxBackend(estimate.compute.maximumBackend)} is highest; ${formatCredits(estimate.compute.maximumBillingSeconds)}s; total session count unbounded)` : "";
15238
15212
  if (!estimate || estimate.status === "unavailable") {
15239
15213
  return `unavailable${estimate ? `: ${estimate.message}${computeSummary}` : ""}`;
15240
15214
  }
@@ -15264,8 +15238,8 @@ async function handlePlayCost(args) {
15264
15238
  console.error("Usage: deepline plays cost <play> [--json]");
15265
15239
  return 2;
15266
15240
  }
15267
- const result = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().getPlayCostEstimate(name);
15268
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15241
+ const result = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().getPlayCostEstimate(name);
15242
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15269
15243
  else
15270
15244
  console.log(
15271
15245
  `${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
@@ -15273,11 +15247,11 @@ async function handlePlayCost(args) {
15273
15247
  return 0;
15274
15248
  }
15275
15249
  async function handlePlayList(args) {
15276
- const jsonOutput = _chunkMAMEKGLIjs.argsWantJson.call(void 0, args);
15250
+ const jsonOutput = _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args);
15277
15251
  const showCost = args.includes("--show-cost");
15278
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
15252
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
15279
15253
  const categoriesIndex = args.indexOf("--categories");
15280
- const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _594 => _594[categoriesIndex + 1], 'optionalAccess', _595 => _595.trim, 'call', _596 => _596()]) : void 0;
15254
+ const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _589 => _589[categoriesIndex + 1], 'optionalAccess', _590 => _590.trim, 'call', _591 => _591()]) : void 0;
15281
15255
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
15282
15256
  if (args.includes("--tag") && tags.length === 0) {
15283
15257
  console.error(
@@ -15298,7 +15272,7 @@ async function handlePlayList(args) {
15298
15272
  const cursorIndex = args.indexOf("--cursor");
15299
15273
  const limit = limitIndex >= 0 ? Number(args[limitIndex + 1]) : void 0;
15300
15274
  const cursor = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
15301
- if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess', _597 => _597.trim, 'call', _598 => _598()])) {
15275
+ if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess', _592 => _592.trim, 'call', _593 => _593()])) {
15302
15276
  console.error("Pass a positive --limit and a non-empty --cursor.");
15303
15277
  return 2;
15304
15278
  }
@@ -15339,7 +15313,7 @@ async function handlePlayList(args) {
15339
15313
  if (play.inputSchema || play.hasInputSchema) {
15340
15314
  lines.push(" inputSchema: yes");
15341
15315
  }
15342
- if (_optionalChain([play, 'access', _599 => _599.triggerStatus, 'optionalAccess', _600 => _600.cron])) {
15316
+ if (_optionalChain([play, 'access', _594 => _594.triggerStatus, 'optionalAccess', _595 => _595.cron])) {
15343
15317
  lines.push(
15344
15318
  ` scheduled execution: ${cronExecutionLabel(play.triggerStatus.cron)}`
15345
15319
  );
@@ -15359,12 +15333,12 @@ async function handlePlayList(args) {
15359
15333
  } else {
15360
15334
  lines.push(" scheduled execution: not configured");
15361
15335
  }
15362
- if (_optionalChain([play, 'access', _601 => _601.triggerStatus, 'optionalAccess', _602 => _602.webhook])) {
15336
+ if (_optionalChain([play, 'access', _596 => _596.triggerStatus, 'optionalAccess', _597 => _597.webhook])) {
15363
15337
  lines.push(` webhook: ${play.triggerStatus.webhook}`);
15364
15338
  }
15365
15339
  if (showCost) {
15366
15340
  lines.push(
15367
- ` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access', _603 => _603.observedCost, 'optionalAccess', _604 => _604.displayText]), () => ( formatPlayCostEstimate(play.costEstimate)))}`
15341
+ ` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access', _598 => _598.observedCost, 'optionalAccess', _599 => _599.displayText]), () => ( formatPlayCostEstimate(play.costEstimate)))}`
15368
15342
  );
15369
15343
  }
15370
15344
  lines.push(` run: deepline run ${reference}`);
@@ -15373,7 +15347,7 @@ async function handlePlayList(args) {
15373
15347
  lines.push("List truncated \u2014 more plays are available.");
15374
15348
  lines.push(`Next page: ${nextPage}`);
15375
15349
  }
15376
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
15350
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
15377
15351
  {
15378
15352
  plays,
15379
15353
  count: plays.length,
@@ -15390,8 +15364,8 @@ async function handlePlayList(args) {
15390
15364
  return 0;
15391
15365
  }
15392
15366
  async function handlePlayPin(args, pinned) {
15393
- const target = _optionalChain([args, 'access', _605 => _605.find, 'call', _606 => _606((arg) => !arg.startsWith("-")), 'optionalAccess', _607 => _607.trim, 'call', _608 => _608()]);
15394
- const jsonOutput = _chunkMAMEKGLIjs.argsWantJson.call(void 0, args);
15367
+ const target = _optionalChain([args, 'access', _600 => _600.find, 'call', _601 => _601((arg) => !arg.startsWith("-")), 'optionalAccess', _602 => _602.trim, 'call', _603 => _603()]);
15368
+ const jsonOutput = _chunkXLYJ7MJXjs.argsWantJson.call(void 0, args);
15395
15369
  const dryRun = args.includes("--dry-run");
15396
15370
  if (!target) {
15397
15371
  console.error(
@@ -15409,11 +15383,11 @@ async function handlePlayPin(args, pinned) {
15409
15383
  const name = parsedTarget.playName;
15410
15384
  const plan = { name, pinned, dryRun };
15411
15385
  if (dryRun) {
15412
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, plan);
15386
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, plan);
15413
15387
  return 0;
15414
15388
  }
15415
- const result = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().setPlayPinned(name, pinned);
15416
- if (jsonOutput) _chunkMAMEKGLIjs.printCompactJson.call(void 0, result);
15389
+ const result = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().setPlayPinned(name, pinned);
15390
+ if (jsonOutput) _chunkXLYJ7MJXjs.printCompactJson.call(void 0, result);
15417
15391
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15418
15392
  return 0;
15419
15393
  }
@@ -15461,7 +15435,7 @@ function printPlayDescription(play) {
15461
15435
  console.log(` ${line}`);
15462
15436
  }
15463
15437
  }
15464
- if (_optionalChain([play, 'access', _609 => _609.toolCategories, 'optionalAccess', _610 => _610.length])) {
15438
+ if (_optionalChain([play, 'access', _604 => _604.toolCategories, 'optionalAccess', _605 => _605.length])) {
15465
15439
  console.log(` Tool categories: ${play.toolCategories.join(", ")}`);
15466
15440
  }
15467
15441
  if (play.aliases.length > 0) {
@@ -15506,7 +15480,7 @@ function printPlayDescription(play) {
15506
15480
  const runtimeLimit = formatPlayRuntimeLimit(play.runtimeLimit);
15507
15481
  if (runtimeLimit) {
15508
15482
  console.log(
15509
- ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _611 => _611.runtimeLimit, 'optionalAccess', _612 => _612.source]), () => ( "live"))})`
15483
+ ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _606 => _606.runtimeLimit, 'optionalAccess', _607 => _607.source]), () => ( "live"))})`
15510
15484
  );
15511
15485
  }
15512
15486
  printScheduledPlayCapacity(play.activeScheduledPlays);
@@ -15534,17 +15508,17 @@ function formatPlayGrepMatches(matches) {
15534
15508
  return matches.map((match) => `${match.field}: ${match.terms.join(", ")}`).join("; ");
15535
15509
  }
15536
15510
  async function handlePlayGrep(args) {
15537
- const query = _optionalChain([args, 'access', _613 => _613[0], 'optionalAccess', _614 => _614.trim, 'call', _615 => _615()]);
15511
+ const query = _optionalChain([args, 'access', _608 => _608[0], 'optionalAccess', _609 => _609.trim, 'call', _610 => _610()]);
15538
15512
  if (!query) {
15539
15513
  console.error("Usage: deepline plays grep <query> [--json]");
15540
15514
  return 1;
15541
15515
  }
15542
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
15516
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
15543
15517
  const results = (await client.listPlays({ grep: query })).map(
15544
15518
  summarizePlayGrepResult
15545
15519
  );
15546
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
15547
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, {
15520
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
15521
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, {
15548
15522
  plays: results,
15549
15523
  count: results.length,
15550
15524
  query,
@@ -15558,7 +15532,7 @@ async function handlePlayGrep(args) {
15558
15532
  `
15559
15533
  );
15560
15534
  for (const result of results) {
15561
- console.log(_optionalChain([result, 'access', _616 => _616.displayName, 'optionalAccess', _617 => _617.trim, 'call', _618 => _618()]) || result.name);
15535
+ console.log(_optionalChain([result, 'access', _611 => _611.displayName, 'optionalAccess', _612 => _612.trim, 'call', _613 => _613()]) || result.name);
15562
15536
  const matches = formatPlayGrepMatches(result.matches);
15563
15537
  if (matches) console.log(` Matched: ${matches}`);
15564
15538
  console.log(` Describe: ${result.describe}`);
@@ -15567,7 +15541,7 @@ async function handlePlayGrep(args) {
15567
15541
  return 0;
15568
15542
  }
15569
15543
  async function handlePlayDescribe(args) {
15570
- const selection = _chunkMAMEKGLIjs.parseJsonFields.call(void 0, args, "describe");
15544
+ const selection = _chunkXLYJ7MJXjs.parseJsonFields.call(void 0, args, "describe");
15571
15545
  args = selection.args;
15572
15546
  const playName = args[0];
15573
15547
  if (!playName) {
@@ -15601,8 +15575,8 @@ async function handlePlayDescribe(args) {
15601
15575
  `deepline plays check ${playName}`,
15602
15576
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15603
15577
  ];
15604
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
15605
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, {
15578
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
15579
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, {
15606
15580
  ok: false,
15607
15581
  error: { message },
15608
15582
  next
@@ -15616,7 +15590,7 @@ async function handlePlayDescribe(args) {
15616
15590
  }
15617
15591
  return 2;
15618
15592
  }
15619
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
15593
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
15620
15594
  await assertCanonicalNamedPlayReference(client, playName, {
15621
15595
  command: "describe"
15622
15596
  });
@@ -15626,9 +15600,9 @@ async function handlePlayDescribe(args) {
15626
15600
  compact: args.includes("--compact")
15627
15601
  }
15628
15602
  );
15629
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
15630
- if (selection.fields) _chunkMAMEKGLIjs.printJson.call(void 0, play, selection.fields);
15631
- else _chunkMAMEKGLIjs.printCompactJson.call(void 0, play);
15603
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
15604
+ if (selection.fields) _chunkXLYJ7MJXjs.printJson.call(void 0, play, selection.fields);
15605
+ else _chunkXLYJ7MJXjs.printCompactJson.call(void 0, play);
15632
15606
  return 0;
15633
15607
  }
15634
15608
  printPlayDescription(play);
@@ -15650,7 +15624,7 @@ async function handlePlaySave(args) {
15650
15624
  }
15651
15625
  let graph;
15652
15626
  try {
15653
- graph = await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
15627
+ graph = await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
15654
15628
  "cli.play_save_bundle_graph",
15655
15629
  { targetKind: "file" },
15656
15630
  () => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
@@ -15672,7 +15646,7 @@ async function handlePlaySave(args) {
15672
15646
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15673
15647
  };
15674
15648
  if (options.jsonOutput) {
15675
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, result);
15649
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, result);
15676
15650
  } else {
15677
15651
  console.error(result.message);
15678
15652
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15694,7 +15668,7 @@ async function handlePlaySave(args) {
15694
15668
  };
15695
15669
  if (options.dryRun) {
15696
15670
  if (options.jsonOutput) {
15697
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, dryRun);
15671
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, dryRun);
15698
15672
  } else {
15699
15673
  console.log(`Dry run: ${playName}`);
15700
15674
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15703,14 +15677,14 @@ async function handlePlaySave(args) {
15703
15677
  }
15704
15678
  return 0;
15705
15679
  }
15706
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
15680
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
15707
15681
  try {
15708
- await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
15682
+ await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
15709
15683
  "cli.play_save_compile_manifests",
15710
15684
  { targetKind: "file", nodeCount: graph.nodes.size },
15711
15685
  () => compileBundledPlayGraphManifests(client, graph)
15712
15686
  );
15713
- const saved = await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
15687
+ const saved = await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
15714
15688
  "cli.play_save_register_draft",
15715
15689
  { targetKind: "file", playName, artifactHash },
15716
15690
  () => client.registerPlayArtifact({
@@ -15739,7 +15713,7 @@ async function handlePlaySave(args) {
15739
15713
  }
15740
15714
  };
15741
15715
  if (options.jsonOutput) {
15742
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, result);
15716
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, result);
15743
15717
  } else {
15744
15718
  console.log(
15745
15719
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15765,7 +15739,7 @@ async function handlePlayPublish(args) {
15765
15739
  }
15766
15740
  const { target: playName, useLatest } = options;
15767
15741
  let revisionId = options.revisionId;
15768
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
15742
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
15769
15743
  if (isFileTarget(playName)) {
15770
15744
  if (revisionId || useLatest) {
15771
15745
  console.error(
@@ -15775,7 +15749,7 @@ async function handlePlayPublish(args) {
15775
15749
  }
15776
15750
  let graph;
15777
15751
  try {
15778
- graph = await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
15752
+ graph = await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
15779
15753
  "cli.play_publish_bundle_graph",
15780
15754
  { targetKind: "file" },
15781
15755
  () => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
@@ -15797,7 +15771,7 @@ async function handlePlayPublish(args) {
15797
15771
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15798
15772
  };
15799
15773
  if (options.jsonOutput) {
15800
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, result3);
15774
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, result3);
15801
15775
  } else {
15802
15776
  console.error(result3.message);
15803
15777
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15820,7 +15794,7 @@ async function handlePlayPublish(args) {
15820
15794
  };
15821
15795
  if (options.dryRun) {
15822
15796
  if (options.jsonOutput) {
15823
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, dryRun);
15797
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, dryRun);
15824
15798
  } else {
15825
15799
  console.log(`Dry run: ${rootPlayName}`);
15826
15800
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15839,12 +15813,12 @@ async function handlePlayPublish(args) {
15839
15813
  }
15840
15814
  }
15841
15815
  try {
15842
- await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
15816
+ await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
15843
15817
  "cli.play_publish_compile_manifests",
15844
15818
  { targetKind: "file", nodeCount: graph.nodes.size },
15845
15819
  () => compileBundledPlayGraphManifests(client, graph)
15846
15820
  );
15847
- await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
15821
+ await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
15848
15822
  "cli.play_publish_imports",
15849
15823
  { targetKind: "file", nodeCount: graph.nodes.size },
15850
15824
  () => publishImportedPlayDependencies(client, graph)
@@ -15853,7 +15827,7 @@ async function handlePlayPublish(args) {
15853
15827
  console.error(error instanceof Error ? error.message : String(error));
15854
15828
  return 1;
15855
15829
  }
15856
- const published = await _chunkB3ROCZ5Yjs.traceCliSpan.call(void 0,
15830
+ const published = await _chunkUV7AT2D4js.traceCliSpan.call(void 0,
15857
15831
  "cli.play_publish_register_root",
15858
15832
  {
15859
15833
  targetKind: "file",
@@ -15878,17 +15852,17 @@ async function handlePlayPublish(args) {
15878
15852
  artifactHash,
15879
15853
  liveVersion: _nullishCoalesce(published.version, () => ( null)),
15880
15854
  revisionId: _nullishCoalesce(published.revisionId, () => ( null)),
15881
- previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _619 => _619.version]), () => ( null)),
15882
- previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _620 => _620.artifactHash]), () => ( null)),
15855
+ previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _614 => _614.version]), () => ( null)),
15856
+ previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _615 => _615.artifactHash]), () => ( null)),
15883
15857
  sourceBytes: {
15884
- before: _optionalChain([previousLive, 'optionalAccess', _621 => _621.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15858
+ before: _optionalChain([previousLive, 'optionalAccess', _616 => _616.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15885
15859
  after: Buffer.byteLength(graph.root.sourceCode, "utf8")
15886
15860
  },
15887
15861
  triggerMetadata: _nullishCoalesce(published.triggerMetadata, () => ( null)),
15888
15862
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15889
15863
  };
15890
15864
  if (options.jsonOutput) {
15891
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, result2);
15865
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, result2);
15892
15866
  } else {
15893
15867
  printPublishReceipt({
15894
15868
  name: rootPlayName,
@@ -15919,14 +15893,14 @@ async function handlePlayPublish(args) {
15919
15893
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15920
15894
  latest: useLatest
15921
15895
  };
15922
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, result2);
15896
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, result2);
15923
15897
  return 0;
15924
15898
  }
15925
15899
  const resolvedName = parseReferencedPlayTarget(playName).playName;
15926
15900
  if (useLatest) {
15927
15901
  const versions = await client.listPlayVersions(resolvedName);
15928
15902
  const latest = versions[0];
15929
- if (!_optionalChain([latest, 'optionalAccess', _622 => _622._id])) {
15903
+ if (!_optionalChain([latest, 'optionalAccess', _617 => _617._id])) {
15930
15904
  console.error(`No saved revisions found for ${resolvedName}.`);
15931
15905
  return 1;
15932
15906
  }
@@ -15943,7 +15917,7 @@ async function handlePlayPublish(args) {
15943
15917
  revisionId ? { revisionId } : {}
15944
15918
  );
15945
15919
  if (options.jsonOutput) {
15946
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, result);
15920
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, result);
15947
15921
  } else {
15948
15922
  printPublishReceipt({
15949
15923
  name: result.name,
@@ -15983,7 +15957,7 @@ async function handlePlayDelete(args) {
15983
15957
  );
15984
15958
  return 2;
15985
15959
  }
15986
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
15960
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
15987
15961
  let detail;
15988
15962
  try {
15989
15963
  detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
@@ -16007,8 +15981,8 @@ async function handlePlayDelete(args) {
16007
15981
  name: resolvedName,
16008
15982
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
16009
15983
  };
16010
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
16011
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, result2);
15984
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
15985
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, result2);
16012
15986
  } else {
16013
15987
  process.stdout.write(
16014
15988
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -16018,8 +15992,8 @@ async function handlePlayDelete(args) {
16018
15992
  return 0;
16019
15993
  }
16020
15994
  const result = await client.deletePlay(resolvedName);
16021
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
16022
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, result);
15995
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
15996
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, result);
16023
15997
  return result.archived || result.alreadyArchived ? 0 : 4;
16024
15998
  }
16025
15999
  if (result.alreadyArchived) {
@@ -16058,13 +16032,13 @@ async function handlePlayRestore(args) {
16058
16032
  );
16059
16033
  return 2;
16060
16034
  }
16061
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
16035
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
16062
16036
  try {
16063
16037
  const result = await client.restorePlay(
16064
16038
  parseReferencedPlayTarget(playName).playName
16065
16039
  );
16066
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
16067
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, result);
16040
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
16041
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, result);
16068
16042
  return result.restored || result.alreadyActive ? 0 : 4;
16069
16043
  }
16070
16044
  if (result.alreadyActive) {
@@ -16191,21 +16165,21 @@ Common commands:
16191
16165
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16192
16166
  }
16193
16167
  };
16194
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0, result2, {
16168
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0, result2, {
16195
16169
  json: options.json,
16196
16170
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16197
16171
  `
16198
16172
  });
16199
16173
  return;
16200
16174
  }
16201
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
16175
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
16202
16176
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16203
16177
  throw new Error(
16204
16178
  "The submission belongs to a different API origin. Select its original host before recovery."
16205
16179
  );
16206
16180
  }
16207
16181
  const result = await client.startPlayRun(saved.request);
16208
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
16182
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
16209
16183
  { ...result },
16210
16184
  {
16211
16185
  json: options.json,
@@ -16241,7 +16215,7 @@ Examples:
16241
16215
  ).action(async (target, options) => {
16242
16216
  process.exitCode = await handlePlayCheck([
16243
16217
  target,
16244
- ..._chunkMAMEKGLIjs.jsonFieldArgs.call(void 0, options.json),
16218
+ ..._chunkXLYJ7MJXjs.jsonFieldArgs.call(void 0, options.json),
16245
16219
  ...options.full ? ["--full"] : []
16246
16220
  ]);
16247
16221
  });
@@ -16280,10 +16254,10 @@ Notes:
16280
16254
  --force-tool-refresh re-executes completed tool receipts and may repeat billed
16281
16255
  provider calls. It is independent from --force.
16282
16256
  --max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
16283
- resident-work ceiling. Default: ${_chunkXAOLMEN5js.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkXAOLMEN5js.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16257
+ resident-work ceiling. Default: ${_chunk7FFNSYMJjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunk7FFNSYMJjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16284
16258
  Provider pacing and sandbox memory limits still apply.
16285
16259
  --max-concurrent-rows sets the run-wide default and ceiling for live map row
16286
- resolvers. Accepted range: 1-${_chunkXAOLMEN5js.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16260
+ resolvers. Accepted range: 1-${_chunk7FFNSYMJjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16287
16261
  may lower it when source-row size exceeds the active-row memory budget.
16288
16262
  --max-credits replaces the play's billing.maxCreditsPerRun for this run.
16289
16263
  Tool calls that would exceed it are denied.
@@ -16397,10 +16371,10 @@ Examples:
16397
16371
  "Refresh completed tool receipts; may repeat billed provider calls"
16398
16372
  ).option(
16399
16373
  "--max-concurrent-external-calls <count>",
16400
- `Concurrent provider-tool and deepline.fetch executions (${_chunkXAOLMEN5js.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkXAOLMEN5js.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16374
+ `Concurrent provider-tool and deepline.fetch executions (${_chunk7FFNSYMJjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunk7FFNSYMJjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16401
16375
  ).option(
16402
16376
  "--max-concurrent-rows <count>",
16403
- `Run-wide dataset map row resolver ceiling (max ${_chunkXAOLMEN5js.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16377
+ `Run-wide dataset map row resolver ceiling (max ${_chunk7FFNSYMJjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16404
16378
  ).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
16405
16379
  "--debug-map-latency",
16406
16380
  "Internal diagnostics: emit one aggregate latency profile per dataset map"
@@ -16445,14 +16419,14 @@ JSON field selection:
16445
16419
  passthroughArgs.shift();
16446
16420
  }
16447
16421
  const exitCode = await handlePlayRun(
16448
- _chunkXAOLMEN5js.resolvePlayRunCliOptions.call(void 0,
16422
+ _chunk7FFNSYMJjs.resolvePlayRunCliOptions.call(void 0,
16449
16423
  _nullishCoalesce(effectiveTarget, () => ( void 0)),
16450
16424
  options,
16451
16425
  passthroughArgs,
16452
- _chunkB3ROCZ5Yjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16426
+ _chunkUV7AT2D4js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16453
16427
  )
16454
16428
  );
16455
- _chunkB3ROCZ5Yjs.recordCliTrace.call(void 0, {
16429
+ _chunkUV7AT2D4js.recordCliTrace.call(void 0, {
16456
16430
  phase: "cli.play_command_exit",
16457
16431
  exitCode
16458
16432
  });
@@ -16501,9 +16475,9 @@ Examples:
16501
16475
  const limit = Number(options.historyLimit);
16502
16476
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16503
16477
  throw new Error("--history-limit must be an integer from 1 to 30.");
16504
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
16478
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
16505
16479
  if (options.binding) {
16506
- _chunkMAMEKGLIjs.printCompactJson.call(void 0,
16480
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0,
16507
16481
  await client.getPlayTriggerHistory(options.binding, { limit })
16508
16482
  );
16509
16483
  return;
@@ -16511,7 +16485,7 @@ Examples:
16511
16485
  const result = await client.listPlayTriggerInventory({
16512
16486
  cursor: options.cursor
16513
16487
  });
16514
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, {
16488
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, {
16515
16489
  ...result,
16516
16490
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16517
16491
  });
@@ -16570,7 +16544,7 @@ Examples:
16570
16544
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16571
16545
  throw new Error("--group-by must be kind or trigger_source.");
16572
16546
  }
16573
- const result = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().getPlaysActivity({
16547
+ const result = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().getPlaysActivity({
16574
16548
  timeZone: options.timeZone,
16575
16549
  days,
16576
16550
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16584,7 +16558,7 @@ Examples:
16584
16558
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16585
16559
  );
16586
16560
  }
16587
- _chunkMAMEKGLIjs.printCommandEnvelope.call(void 0,
16561
+ _chunkXLYJ7MJXjs.printCommandEnvelope.call(void 0,
16588
16562
  { ...result },
16589
16563
  {
16590
16564
  json: Boolean(options.json),
@@ -16613,7 +16587,7 @@ Examples:
16613
16587
  false
16614
16588
  );
16615
16589
  });
16616
- _chunk5OKQPDYJjs.registerDeprecatedSearchCommand.call(void 0,
16590
+ _chunkZLYKN4AJjs.registerDeprecatedSearchCommand.call(void 0,
16617
16591
  play,
16618
16592
  (options) => options.all ? ["plays"] : ["prebuilts"]
16619
16593
  );
@@ -16654,9 +16628,9 @@ Examples:
16654
16628
  "--json [fields]",
16655
16629
  "JSON output; optionally select comma-separated dotted paths"
16656
16630
  );
16657
- _chunkPEIOQKTAjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16631
+ _chunkFVS5MJQ5js.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16658
16632
  async (target, options) => {
16659
- const ownView = () => handlePlayDescribe(_chunkMAMEKGLIjs.describeArgs.call(void 0, target, options));
16633
+ const ownView = () => handlePlayDescribe(_chunkXLYJ7MJXjs.describeArgs.call(void 0, target, options));
16660
16634
  const [flagText] = [options.json].filter(
16661
16635
  (value) => typeof value === "string"
16662
16636
  );
@@ -16667,7 +16641,7 @@ Examples:
16667
16641
  process.exitCode = await ownView();
16668
16642
  return;
16669
16643
  }
16670
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-BA4RAZ7J.js")));
16644
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-BL5NNHV5.js")));
16671
16645
  process.exitCode = await describeAnything(
16672
16646
  name,
16673
16647
  {
@@ -16785,7 +16759,7 @@ Examples:
16785
16759
  deepline plays deployments <deployment-id>
16786
16760
  `
16787
16761
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16788
- async (id, options) => id ? _chunkCTFR52JCjs.handleDeploymentGet.call(void 0, id, options) : _chunkCTFR52JCjs.handleDeploymentsList.call(void 0, options)
16762
+ async (id, options) => id ? _chunk6TA2H7CYjs.handleDeploymentGet.call(void 0, id, options) : _chunk6TA2H7CYjs.handleDeploymentsList.call(void 0, options)
16789
16763
  );
16790
16764
  addPublishHelp(
16791
16765
  play.command("publish <target>").description(
@@ -16920,14 +16894,14 @@ Examples:
16920
16894
  const limit = Number(options.limit);
16921
16895
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
16922
16896
  throw new Error("--limit must be an integer from 1 to 1000.");
16923
- const result = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().runs.rowHistory({
16897
+ const result = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().runs.rowHistory({
16924
16898
  playName: options.play,
16925
16899
  runId,
16926
16900
  tableNamespace: options.dataset,
16927
16901
  limit,
16928
16902
  cursor: options.cursor
16929
16903
  });
16930
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, {
16904
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, {
16931
16905
  ...result,
16932
16906
  ...result.nextCursor ? {
16933
16907
  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`
@@ -17005,7 +16979,7 @@ Examples:
17005
16979
  new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
17006
16980
  ).action(async (runId, options) => {
17007
16981
  if (TOOL_EXECUTION_ID.test(runId)) {
17008
- const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-RJSP76HX.js")));
16982
+ const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-RZYKMOUX.js")));
17009
16983
  process.exitCode = await getToolExecutionReceipt(runId, {
17010
16984
  receiptJson: options.json !== void 0
17011
16985
  });
@@ -17013,7 +16987,7 @@ Examples:
17013
16987
  }
17014
16988
  process.exitCode = await handleRunGet([
17015
16989
  runId,
17016
- ..._chunkMAMEKGLIjs.jsonFieldArgs.call(void 0, options.json),
16990
+ ..._chunkXLYJ7MJXjs.jsonFieldArgs.call(void 0, options.json),
17017
16991
  ...options.web ? ["--web"] : [],
17018
16992
  ...options.webUrl ? ["--web-url"] : [],
17019
16993
  ...options.full ? ["--full"] : [],
@@ -17304,7 +17278,7 @@ Examples:
17304
17278
  ...options.allowEmpty ? ["--allow-empty"] : [],
17305
17279
  ...options.wait ? ["--wait"] : [],
17306
17280
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17307
- ..._chunkMAMEKGLIjs.jsonFieldArgs.call(void 0, options.json)
17281
+ ..._chunkXLYJ7MJXjs.jsonFieldArgs.call(void 0, options.json)
17308
17282
  ]);
17309
17283
  });
17310
17284
  const share = play.command("share").description(
@@ -17445,8 +17419,8 @@ function absolutePublicPlayUrl(path) {
17445
17419
  }
17446
17420
  function shareUrlFields(status) {
17447
17421
  return {
17448
- publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _623 => _623.share, 'optionalAccess', _624 => _624.publicPath])),
17449
- canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _625 => _625.share, 'optionalAccess', _626 => _626.canonicalPath]))
17422
+ publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _618 => _618.share, 'optionalAccess', _619 => _619.publicPath])),
17423
+ canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _620 => _620.share, 'optionalAccess', _621 => _621.canonicalPath]))
17450
17424
  };
17451
17425
  }
17452
17426
  function shareStatusForOutput(status) {
@@ -17470,10 +17444,10 @@ async function handlePlayShareStatus(args) {
17470
17444
  return 2;
17471
17445
  }
17472
17446
  const name = parseReferencedPlayTarget(target).playName;
17473
- const status = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().getSharePage(name);
17447
+ const status = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().getSharePage(name);
17474
17448
  const outputStatus = shareStatusForOutput(status);
17475
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
17476
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, outputStatus);
17449
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
17450
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, outputStatus);
17477
17451
  return 0;
17478
17452
  }
17479
17453
  if (!outputStatus.share) {
@@ -17512,7 +17486,7 @@ async function handlePlaySharePublish(args) {
17512
17486
  return 2;
17513
17487
  }
17514
17488
  const name = parseReferencedPlayTarget(target).playName;
17515
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
17489
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
17516
17490
  let revisionId = shareFlagValue(args, "--revision-id");
17517
17491
  let resolvedVersion;
17518
17492
  if (!revisionId) {
@@ -17543,8 +17517,8 @@ async function handlePlaySharePublish(args) {
17543
17517
  );
17544
17518
  if (!hasCompleted) {
17545
17519
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17546
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
17547
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, {
17520
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
17521
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, {
17548
17522
  ok: false,
17549
17523
  code: "NO_SUCCESSFUL_RUN",
17550
17524
  message,
@@ -17568,8 +17542,8 @@ async function handlePlaySharePublish(args) {
17568
17542
  };
17569
17543
  if (args.includes("--dry-run")) {
17570
17544
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17571
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
17572
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, plan);
17545
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
17546
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, plan);
17573
17547
  } else {
17574
17548
  console.log(
17575
17549
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17579,13 +17553,13 @@ async function handlePlaySharePublish(args) {
17579
17553
  }
17580
17554
  const status = await client.publishSharePage(name, request);
17581
17555
  const outputStatus = shareStatusForOutput(status);
17582
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
17583
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, outputStatus);
17556
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
17557
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, outputStatus);
17584
17558
  return 0;
17585
17559
  }
17586
17560
  const urls = shareUrlFields(outputStatus);
17587
17561
  console.log(
17588
- `Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _627 => _627.share, 'optionalAccess', _628 => _628.publicPath]))), () => ( ""))}`
17562
+ `Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _622 => _622.share, 'optionalAccess', _623 => _623.publicPath]))), () => ( ""))}`
17589
17563
  );
17590
17564
  if (urls.canonicalUrl && urls.canonicalUrl !== urls.publicUrl) {
17591
17565
  console.log(`Version URL: ${urls.canonicalUrl}`);
@@ -17611,9 +17585,9 @@ async function handlePlayShareUpdate(args) {
17611
17585
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17612
17586
  ...seoIndexing ? { seoIndexing } : {}
17613
17587
  };
17614
- const status = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().updateSharePage(name, request);
17615
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
17616
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, status);
17588
+ const status = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().updateSharePage(name, request);
17589
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
17590
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, status);
17617
17591
  return 0;
17618
17592
  }
17619
17593
  console.log(`Updated ${name} share settings.`);
@@ -17628,13 +17602,13 @@ async function handlePlayShareRegenerate(args) {
17628
17602
  return 2;
17629
17603
  }
17630
17604
  const name = parseReferencedPlayTarget(target).playName;
17631
- const client = new (0, _chunkZ33PZUWGjs.DeeplineClient)();
17605
+ const client = new (0, _chunkB4Q3EBQXjs.DeeplineClient)();
17632
17606
  let revisionId = shareFlagValue(args, "--revision-id");
17633
17607
  const versionFlag = shareFlagValue(args, "--version");
17634
17608
  if (!revisionId && versionFlag) {
17635
17609
  const versions = await client.listPlayVersions(name);
17636
17610
  const chosen = versions.find((r) => r.version === Number(versionFlag));
17637
- if (!_optionalChain([chosen, 'optionalAccess', _629 => _629._id])) {
17611
+ if (!_optionalChain([chosen, 'optionalAccess', _624 => _624._id])) {
17638
17612
  console.error(`Version ${versionFlag} not found for ${name}.`);
17639
17613
  return 4;
17640
17614
  }
@@ -17645,12 +17619,12 @@ async function handlePlayShareRegenerate(args) {
17645
17619
  revisionId ? { revisionId } : {}
17646
17620
  );
17647
17621
  const outputStatus = shareStatusForOutput(status);
17648
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
17649
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, outputStatus);
17622
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
17623
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, outputStatus);
17650
17624
  return 0;
17651
17625
  }
17652
17626
  const urls = shareUrlFields(outputStatus);
17653
- const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _630 => _630.share, 'optionalAccess', _631 => _631.publishedRevisionId]) === revisionId;
17627
+ const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _625 => _625.share, 'optionalAccess', _626 => _626.publishedRevisionId]) === revisionId;
17654
17628
  console.log(
17655
17629
  `Regenerated public copy for ${name}${regeneratedPublishedRevision && urls.publicUrl ? `: ${urls.publicUrl}` : "."}`
17656
17630
  );
@@ -17671,9 +17645,9 @@ async function handlePlayShareUnpublish(args) {
17671
17645
  return 2;
17672
17646
  }
17673
17647
  const name = parseReferencedPlayTarget(target).playName;
17674
- const status = await new (0, _chunkZ33PZUWGjs.DeeplineClient)().unpublishSharePage(name);
17675
- if (_chunkMAMEKGLIjs.argsWantJson.call(void 0, args)) {
17676
- _chunkMAMEKGLIjs.printCompactJson.call(void 0, status);
17648
+ const status = await new (0, _chunkB4Q3EBQXjs.DeeplineClient)().unpublishSharePage(name);
17649
+ if (_chunkXLYJ7MJXjs.argsWantJson.call(void 0, args)) {
17650
+ _chunkXLYJ7MJXjs.printCompactJson.call(void 0, status);
17677
17651
  return 0;
17678
17652
  }
17679
17653
  console.log(`Unpublished ${name}; the public page has been removed.`);
@@ -17749,4 +17723,5 @@ async function handlePlayShareUnpublish(args) {
17749
17723
 
17750
17724
 
17751
17725
 
17752
- exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkXAOLMEN5js.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkXAOLMEN5js.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
17726
+
17727
+ 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 = _chunk7FFNSYMJjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunk7FFNSYMJjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;