deepline 0.3.395 → 0.3.397

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 (126) hide show
  1. package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +2 -2
  5. package/dist/cli/{auth-NMQXZRS7.mjs → auth-AZJFXGKP.mjs} +5 -4
  6. package/dist/cli/auth-CZJQU7B5.js +40 -0
  7. package/dist/cli/{billing-Z4JTGUU3.js → billing-MQV5AGDJ.js} +77 -76
  8. package/dist/cli/{billing-5MVXZRS6.mjs → billing-MZAAUHGH.mjs} +6 -5
  9. package/dist/cli/{chunk-6D7A2FSL.mjs → chunk-2LDADJNO.mjs} +7 -107
  10. package/dist/cli/{chunk-UKU6JM3S.js → chunk-3VP34TAU.js} +8 -8
  11. package/dist/cli/{chunk-7XAM7KDW.mjs → chunk-4D745XZO.mjs} +21 -108
  12. package/dist/cli/chunk-7DRPTGCK.js +930 -0
  13. package/dist/cli/{chunk-ZMVJSS6N.js → chunk-BQR6UN3C.js} +62 -78
  14. package/dist/cli/{chunk-HRWUQJ4K.js → chunk-DQ65ZVHN.js} +6 -6
  15. package/dist/cli/{chunk-5VCZ3WRH.mjs → chunk-EIMG75BT.mjs} +1 -0
  16. package/dist/cli/{chunk-EFLQHJZ6.mjs → chunk-F3BUFYKE.mjs} +182 -1031
  17. package/dist/cli/chunk-FIVKWNMT.mjs +210 -0
  18. package/dist/cli/{describe-DBRY5BNK.mjs → chunk-HFYQBC2D.mjs} +51 -171
  19. package/dist/cli/chunk-HGFFYVXN.js +210 -0
  20. package/dist/cli/{chunk-VB6KECLU.mjs → chunk-IHG7UAHD.mjs} +63 -79
  21. package/dist/cli/{chunk-TO2MWPGR.js → chunk-IZ74ABSX.js} +1 -1
  22. package/dist/cli/{chunk-G4IWGRMK.mjs → chunk-J7ABTQQ7.mjs} +5 -3
  23. package/dist/cli/{chunk-LZLBR2SF.js → chunk-K33MXVXQ.js} +323 -1172
  24. package/dist/cli/{chunk-DRM3CMHL.js → chunk-KXMNM4AQ.js} +2 -1
  25. package/dist/cli/chunk-LJ5747UC.mjs +107 -0
  26. package/dist/cli/{chunk-BON3DRC6.mjs → chunk-MRXMMERY.mjs} +1 -1
  27. package/dist/cli/{chunk-7MVWUXOD.mjs → chunk-MV7QRALK.mjs} +3 -3
  28. package/dist/cli/{chunk-WCCKMLHL.mjs → chunk-MYPH2LUU.mjs} +2 -2
  29. package/dist/cli/{chunk-RDXFGPJU.js → chunk-NA4T3B62.js} +64 -272
  30. package/dist/cli/{chunk-BLYL3KOC.mjs → chunk-NOX2TCBP.mjs} +1 -1
  31. package/dist/cli/chunk-OSDXE27V.mjs +88 -0
  32. package/dist/cli/{chunk-R4XZO6Z5.js → chunk-PSGEDGLT.js} +28 -115
  33. package/dist/cli/chunk-Q2E4E4FJ.js +112 -0
  34. package/dist/cli/chunk-RFG3MRAC.js +286 -0
  35. package/dist/cli/{chunk-47M6HPGP.mjs → chunk-RNSWDKBM.mjs} +1 -1
  36. package/dist/cli/{chunk-56IFFVIB.js → chunk-RYW4HPSM.js} +21 -121
  37. package/dist/cli/{chunk-K5T3EN6D.js → chunk-SO7RUVTY.js} +26 -26
  38. package/dist/cli/{chunk-KZZC33PY.mjs → chunk-TXZVVBQZ.mjs} +63 -271
  39. package/dist/cli/{chunk-36ML3YKA.js → chunk-UVXBVUZQ.js} +15 -13
  40. package/dist/cli/{chunk-PZ5BZ76S.js → chunk-VTF4RRWJ.js} +50 -50
  41. package/dist/cli/{chunk-3TRY7KAC.mjs → chunk-W3HMGKMI.mjs} +2 -2
  42. package/dist/cli/{chunk-ZWH2TFA7.mjs → chunk-WM2QEHZL.mjs} +2 -2
  43. package/dist/cli/chunk-YHPYUZZX.mjs +112 -0
  44. package/dist/cli/chunk-YHZUZO3U.mjs +930 -0
  45. package/dist/cli/{chunk-UCXK2DS4.js → chunk-YLRME7MK.js} +15 -15
  46. package/dist/cli/{chunk-MYIBHORT.js → chunk-YSVORIEW.js} +2 -2
  47. package/dist/cli/{chunk-OCSG6X67.mjs → chunk-YUDKBQUD.mjs} +4 -4
  48. package/dist/cli/chunk-ZAAKSJAS.js +88 -0
  49. package/dist/cli/{chunk-VYLJJQ7Y.js → chunk-ZHUMDMOS.js} +65 -65
  50. package/dist/cli/chunk-ZM2YPJQJ.js +107 -0
  51. package/dist/cli/{csv-HTS5ZYQ4.js → csv-AQBQ5O3I.js} +13 -12
  52. package/dist/cli/{csv-SVOD5UBH.mjs → csv-MB7PJMYQ.mjs} +4 -3
  53. package/dist/cli/{db-7AP4P52N.js → db-JPUYC5RB.js} +31 -30
  54. package/dist/cli/{db-7QLNI3Q4.mjs → db-L5IEI2AU.mjs} +6 -5
  55. package/dist/cli/describe-6WT74AOR.js +164 -0
  56. package/dist/cli/describe-S6BFANVI.mjs +164 -0
  57. package/dist/cli/describe-core.d.mts +100 -0
  58. package/dist/cli/describe-core.d.ts +100 -0
  59. package/dist/cli/describe-core.js +18 -0
  60. package/dist/cli/describe-core.mjs +18 -0
  61. package/dist/cli/{executions-GRQXTB2P.js → executions-6TMQTFP4.js} +8 -7
  62. package/dist/cli/{executions-QNZTPNG4.mjs → executions-L7I2ZW4Z.mjs} +6 -5
  63. package/dist/cli/{feedback-JMCSR624.mjs → feedback-DSJ63HK6.mjs} +4 -3
  64. package/dist/cli/{feedback-ZOLA2KY7.js → feedback-XF7CQGMD.js} +8 -7
  65. package/dist/cli/{git-LJGL2IHS.mjs → git-C3ENM67D.mjs} +5 -4
  66. package/dist/cli/git-HYDZK2QR.js +24 -0
  67. package/dist/cli/index.js +96 -94
  68. package/dist/cli/index.mjs +41 -39
  69. package/dist/cli/{legacy-noops-YSCIR2SD.js → legacy-noops-B2NHWIVD.js} +8 -7
  70. package/dist/cli/{legacy-noops-F23PKVBN.mjs → legacy-noops-VFG2K6HK.mjs} +5 -4
  71. package/dist/cli/{monitors-WMZ6HJZX.js → monitors-ORFWOVZB.js} +87 -86
  72. package/dist/cli/{monitors-S4LOEL7W.mjs → monitors-TCEDBDGY.mjs} +6 -5
  73. package/dist/cli/{org-U3WA2NQM.mjs → org-45KREIKZ.mjs} +6 -5
  74. package/dist/cli/{org-PFHM5ZLY.js → org-T74CJESN.js} +66 -65
  75. package/dist/cli/{chunk-XMAPE2KH.mjs → play-MU7MYBIM.mjs} +78 -131
  76. package/dist/cli/{chunk-4KLCLLTO.js → play-XHK2LPON.js} +273 -326
  77. package/dist/cli/{providers-XYMHLKCA.js → providers-4MGQKYFD.js} +9 -8
  78. package/dist/cli/{providers-QBBRFBOH.mjs → providers-VYCXIJT5.mjs} +6 -5
  79. package/dist/cli/{quickstart-IYGD6ZY3.js → quickstart-47G3VEOT.js} +6 -5
  80. package/dist/cli/{quickstart-5JTDGISY.mjs → quickstart-H724EFM2.mjs} +4 -3
  81. package/dist/cli/search-3356ENLD.js +30 -0
  82. package/dist/cli/{search-X6W6GRHS.mjs → search-VQHXEFQ4.mjs} +8 -6
  83. package/dist/cli/{secrets-UHG6OQFD.js → secrets-ALLKCU35.js} +15 -14
  84. package/dist/cli/{secrets-N55B67H6.mjs → secrets-CPBNGA44.mjs} +6 -5
  85. package/dist/cli/{sessions-JTRSTDSS.mjs → sessions-7RSQB7IX.mjs} +5 -4
  86. package/dist/cli/sessions-FKGAY7WQ.js +16 -0
  87. package/dist/cli/{settings-Q24HRAQI.mjs → settings-UYSGV4IC.mjs} +9 -8
  88. package/dist/cli/{settings-ATX4U5AS.js → settings-Y5BI42P7.js} +76 -75
  89. package/dist/cli/{setup-77ZWLVHT.mjs → setup-L3ZBBTS4.mjs} +7 -6
  90. package/dist/cli/{setup-EJCNOUCE.js → setup-VXQPEU3E.js} +42 -41
  91. package/dist/cli/skills-DUZQTDTE.js +29 -0
  92. package/dist/cli/{skills-XIS5AWQI.mjs → skills-QHVDLSFE.mjs} +5 -4
  93. package/dist/cli/{tools-WCKLYEGQ.mjs → tools-LSCEK4K2.mjs} +16 -19
  94. package/dist/cli/tools-YWU5QOQ5.js +39 -0
  95. package/dist/cli/update-5LYQAI55.js +29 -0
  96. package/dist/cli/{update-UT5WANMV.mjs → update-CU22OTBM.mjs} +7 -6
  97. package/dist/cli/{workflow-226QYUN2.js → workflow-ERFLTRNX.js} +17 -16
  98. package/dist/cli/{workflow-ZMX3L4ML.mjs → workflow-KQARK5BZ.mjs} +7 -6
  99. package/dist/{client-hdFtwhTm.d.mts → client-D0j-_aaa.d.mts} +2 -1
  100. package/dist/{client-CivP-PAI.d.ts → client-DflfVyj6.d.ts} +2 -1
  101. package/dist/index.d.mts +2 -2
  102. package/dist/index.d.ts +2 -2
  103. package/dist/index.js +15 -11
  104. package/dist/index.mjs +19 -15
  105. package/dist/install-integrity.json +94 -80
  106. package/dist/plays/play-description.d.mts +1 -1
  107. package/dist/plays/play-description.d.ts +1 -1
  108. package/dist/plays/play-description.js +4 -2
  109. package/dist/plays/play-description.mjs +3 -1
  110. package/dist/plays/run-request.d.mts +1 -1
  111. package/dist/plays/run-request.d.ts +1 -1
  112. package/dist/release.d.mts +1 -1
  113. package/dist/release.d.ts +1 -1
  114. package/dist/release.js +2 -2
  115. package/dist/release.mjs +1 -1
  116. package/package.json +6 -1
  117. package/dist/cli/auth-UYCOBAL5.js +0 -39
  118. package/dist/cli/describe-YKOE54ZO.js +0 -406
  119. package/dist/cli/git-EJQLRK27.js +0 -23
  120. package/dist/cli/play-AGSECQFN.mjs +0 -159
  121. package/dist/cli/play-BR2LWGXK.js +0 -159
  122. package/dist/cli/search-ZVSYH5GY.js +0 -28
  123. package/dist/cli/sessions-57L5MGHN.js +0 -15
  124. package/dist/cli/skills-SPXUBLII.js +0 -28
  125. package/dist/cli/tools-DBHUUZJX.js +0 -42
  126. package/dist/cli/update-VSNFXRHJ.js +0 -28
@@ -1,15 +1,21 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkK5T3EN6Djs = require('./chunk-K5T3EN6D.js');
4
+ var _chunkZAAKSJASjs = require('./chunk-ZAAKSJAS.js');
5
5
 
6
6
 
7
+ var _chunkPSGEDGLTjs = require('./chunk-PSGEDGLT.js');
7
8
 
8
9
 
9
- var _chunkZMVJSS6Njs = require('./chunk-ZMVJSS6N.js');
10
+
11
+ var _chunkSO7RUVTYjs = require('./chunk-SO7RUVTY.js');
12
+
13
+
14
+ var _chunkBQR6UN3Cjs = require('./chunk-BQR6UN3C.js');
10
15
 
11
16
 
12
17
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
18
+ require('./chunk-ZM2YPJQJ.js');
13
19
 
14
20
 
15
21
 
@@ -18,16 +24,15 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
18
24
 
19
25
 
20
26
  var _chunkMH73HMPVjs = require('./chunk-MH73HMPV.js');
27
+ require('./chunk-3KC45UVF.js');
21
28
 
22
29
 
23
30
  var _chunkGSK6NHVMjs = require('./chunk-GSK6NHVM.js');
24
31
 
25
32
 
26
- var _chunkR4XZO6Z5js = require('./chunk-R4XZO6Z5.js');
27
-
28
-
29
33
 
30
34
  var _chunkGEJDBXXMjs = require('./chunk-GEJDBXXM.js');
35
+ require('./chunk-KB4SDX5S.js');
31
36
 
32
37
 
33
38
 
@@ -40,7 +45,8 @@ var _chunkGEJDBXXMjs = require('./chunk-GEJDBXXM.js');
40
45
 
41
46
 
42
47
 
43
- var _chunk36ML3YKAjs = require('./chunk-36ML3YKA.js');
48
+ var _chunkUVXBVUZQjs = require('./chunk-UVXBVUZQ.js');
49
+ require('./chunk-S6R3OX7B.js');
44
50
 
45
51
 
46
52
 
@@ -54,7 +60,8 @@ var _chunkUHNDVD3Pjs = require('./chunk-UHNDVD3P.js');
54
60
 
55
61
 
56
62
 
57
- var _chunkDRM3CMHLjs = require('./chunk-DRM3CMHL.js');
63
+ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
64
+ require('./chunk-XDVT3GOM.js');
58
65
 
59
66
 
60
67
 
@@ -77,13 +84,17 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
77
84
 
78
85
 
79
86
 
80
- var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
87
+ var _chunkDQ65ZVHNjs = require('./chunk-DQ65ZVHN.js');
81
88
 
82
89
 
83
- var _chunk56IFFVIBjs = require('./chunk-56IFFVIB.js');
90
+ var _chunkRYW4HPSMjs = require('./chunk-RYW4HPSM.js');
91
+ require('./chunk-Q2E4E4FJ.js');
92
+ require('./chunk-XNYIZMNQ.js');
84
93
 
85
94
 
86
95
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
96
+ require('./chunk-IZ74ABSX.js');
97
+ require('./chunk-OG64RBAC.js');
87
98
 
88
99
 
89
100
 
@@ -2064,7 +2075,7 @@ function resolveField(key, command) {
2064
2075
  function printSettings(result, json, name) {
2065
2076
  result = { ...result, settings: parsePlaySettings(result.settings) };
2066
2077
  const selected = fields.filter(([key]) => !name || key === name);
2067
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2078
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
2068
2079
  {
2069
2080
  ...result,
2070
2081
  settings: Object.fromEntries(
@@ -2108,7 +2119,7 @@ function registerPlaySettingsCommands(plays) {
2108
2119
  valueSyntax: field.cli.valueSyntax,
2109
2120
  examples: field.cli.examples
2110
2121
  }));
2111
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2122
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
2112
2123
  {
2113
2124
  fields: descriptions,
2114
2125
  render: {
@@ -2133,7 +2144,7 @@ function registerPlaySettingsCommands(plays) {
2133
2144
  async (options, command) => {
2134
2145
  if (options.name !== void 0) resolveField(options.name, command);
2135
2146
  printSettings(
2136
- await new (0, _chunk36ML3YKAjs.DeeplineClient)().getPlaySettings(options.play),
2147
+ await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getPlaySettings(options.play),
2137
2148
  options.json,
2138
2149
  options.name
2139
2150
  );
@@ -2164,7 +2175,7 @@ function registerPlaySettingsCommands(plays) {
2164
2175
  );
2165
2176
  }
2166
2177
  if (options.dryRun) {
2167
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2178
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
2168
2179
  {
2169
2180
  dryRun: true,
2170
2181
  play,
@@ -2185,7 +2196,7 @@ function registerPlaySettingsCommands(plays) {
2185
2196
  return;
2186
2197
  }
2187
2198
  printSettings(
2188
- await new (0, _chunk36ML3YKAjs.DeeplineClient)().updatePlaySettings(play, patch),
2199
+ await new (0, _chunkUVXBVUZQjs.DeeplineClient)().updatePlaySettings(play, patch),
2189
2200
  options.json
2190
2201
  );
2191
2202
  };
@@ -2211,13 +2222,13 @@ function registerPlaySettingsCommands(plays) {
2211
2222
  "--root must be person or team; --limit must be 1\u2013100.",
2212
2223
  { exitCode: 2 }
2213
2224
  );
2214
- const page = await new (0, _chunk36ML3YKAjs.DeeplineClient)().listPlaySettingsPaths({
2225
+ const page = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().listPlaySettingsPaths({
2215
2226
  root: options.root,
2216
2227
  limit,
2217
2228
  cursor: options.cursor
2218
2229
  });
2219
2230
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2220
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2231
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
2221
2232
  {
2222
2233
  ...page,
2223
2234
  nextCommand,
@@ -2268,7 +2279,7 @@ function registerPlaySettingsCommands(plays) {
2268
2279
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2269
2280
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2270
2281
  };
2271
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
2282
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
2272
2283
  const paths = [];
2273
2284
  let cursor;
2274
2285
  do {
@@ -2330,7 +2341,7 @@ function registerPlaySettingsCommands(plays) {
2330
2341
  moved.push(move.playName);
2331
2342
  }
2332
2343
  }
2333
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2344
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
2334
2345
  {
2335
2346
  dryRun: Boolean(options.dryRun),
2336
2347
  from: options.from,
@@ -2458,7 +2469,7 @@ function triggerLines(view) {
2458
2469
  return lines;
2459
2470
  }
2460
2471
  function printView(view, json) {
2461
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2472
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
2462
2473
  {
2463
2474
  ...view,
2464
2475
  render: {
@@ -2471,7 +2482,7 @@ function printView(view, json) {
2471
2482
  );
2472
2483
  }
2473
2484
  function printResult(result, json) {
2474
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2485
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
2475
2486
  {
2476
2487
  ...result,
2477
2488
  render: {
@@ -2501,7 +2512,7 @@ async function mutate(command, options, build) {
2501
2512
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2502
2513
  }
2503
2514
  if (options.dryRun) {
2504
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2515
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
2505
2516
  {
2506
2517
  dryRun: true,
2507
2518
  play: options.play,
@@ -2520,7 +2531,7 @@ async function mutate(command, options, build) {
2520
2531
  return;
2521
2532
  }
2522
2533
  printResult(
2523
- await new (0, _chunk36ML3YKAjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2534
+ await new (0, _chunkUVXBVUZQjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2524
2535
  options.json
2525
2536
  );
2526
2537
  }
@@ -2553,7 +2564,7 @@ function registerPlayTriggerConfigCommands(plays) {
2553
2564
  }).addHelpText("after", help2);
2554
2565
  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) => {
2555
2566
  printView(
2556
- await new (0, _chunk36ML3YKAjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2567
+ await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2557
2568
  options.json
2558
2569
  );
2559
2570
  });
@@ -2597,7 +2608,7 @@ function registerPlayTriggerConfigCommands(plays) {
2597
2608
  if (options.auth === void 0) {
2598
2609
  if (secrets.length || options.header || options.signaturePrefix)
2599
2610
  usage(setWebhook, "--secret/--header need --auth.");
2600
- const current = await new (0, _chunk36ML3YKAjs.DeeplineClient)().getPlayTriggerConfig(
2611
+ const current = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getPlayTriggerConfig(
2601
2612
  options.play
2602
2613
  );
2603
2614
  return {
@@ -2674,7 +2685,7 @@ var KIND_DESCRIPTIONS = {
2674
2685
  "receipt.skipped": "Saved work result: skipped.",
2675
2686
  "runtime.event": "Other event."
2676
2687
  };
2677
- var RUN_LOGS_KIND_HELP = _chunk36ML3YKAjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2688
+ var RUN_LOGS_KIND_HELP = _chunkUVXBVUZQjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2678
2689
  kind,
2679
2690
  description: KIND_DESCRIPTIONS[kind]
2680
2691
  }));
@@ -2811,9 +2822,9 @@ function configureRunQueryCommandErrors(command, resource) {
2811
2822
  const args = program.args;
2812
2823
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2813
2824
  error.exitCode = 2;
2814
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2815
- _chunkHRWUQJ4Kjs.printJsonError.call(void 0,
2816
- Object.assign(new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(error.message), {
2825
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2826
+ _chunkDQ65ZVHNjs.printJsonError.call(void 0,
2827
+ Object.assign(new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(error.message), {
2817
2828
  exitCode: 2,
2818
2829
  retryable: false
2819
2830
  })
@@ -2857,14 +2868,14 @@ function parseQuery(args, resource) {
2857
2868
  if (VALUE_FLAGS.has(flag)) {
2858
2869
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2859
2870
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2860
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2871
+ throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
2861
2872
  `${flag} requires a value. Use ${flag} <value>.`
2862
2873
  );
2863
2874
  }
2864
2875
  if (flag === "--sum") sums.push(value);
2865
2876
  else {
2866
2877
  if (values[flag] !== void 0) {
2867
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2878
+ throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
2868
2879
  `${flag} may only be supplied once.`
2869
2880
  );
2870
2881
  }
@@ -2878,12 +2889,12 @@ function parseQuery(args, resource) {
2878
2889
  }
2879
2890
  if (arg.startsWith("-")) {
2880
2891
  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.";
2881
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2892
+ throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
2882
2893
  `Unsupported query flag ${flag}. ${correction}`
2883
2894
  );
2884
2895
  }
2885
2896
  if (runId !== void 0) {
2886
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2897
+ throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
2887
2898
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2888
2899
  );
2889
2900
  }
@@ -2891,7 +2902,7 @@ function parseQuery(args, resource) {
2891
2902
  }
2892
2903
  if (switches.has("--fields")) {
2893
2904
  if (runId !== void 0) {
2894
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2905
+ throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
2895
2906
  "--fields does not use a run ID. Omit the positional run ID."
2896
2907
  );
2897
2908
  }
@@ -2904,18 +2915,18 @@ function parseQuery(args, resource) {
2904
2915
  )
2905
2916
  ];
2906
2917
  if (incompatible.length) {
2907
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2918
+ throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
2908
2919
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2909
2920
  );
2910
2921
  }
2911
2922
  }
2912
2923
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2913
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2924
+ throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
2914
2925
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2915
2926
  );
2916
2927
  }
2917
2928
  if (sums.length && switches.has("--count")) {
2918
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2929
+ throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
2919
2930
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2920
2931
  );
2921
2932
  }
@@ -2923,7 +2934,7 @@ function parseQuery(args, resource) {
2923
2934
  if (operation === "count") {
2924
2935
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2925
2936
  if (values[flag] !== void 0 || switches.has(flag)) {
2926
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2937
+ throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
2927
2938
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2928
2939
  );
2929
2940
  }
@@ -2958,16 +2969,16 @@ function parseQuery(args, resource) {
2958
2969
  ];
2959
2970
  }
2960
2971
  }
2961
- const request = _chunk36ML3YKAjs.normalizeRunEventOperationRequest.call(void 0, body);
2972
+ const request = _chunkUVXBVUZQjs.normalizeRunEventOperationRequest.call(void 0, body);
2962
2973
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2963
2974
  const backend = values["--runtime-backend"];
2964
2975
  if (backend && backend !== "daytona" && backend !== "modal") {
2965
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2976
+ throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
2966
2977
  "--runtime-backend must be daytona or modal."
2967
2978
  );
2968
2979
  }
2969
2980
  if (backend && !namespace) {
2970
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2981
+ throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
2971
2982
  "--runtime-backend requires --runtime-namespace."
2972
2983
  );
2973
2984
  }
@@ -3014,12 +3025,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3014
3025
  const failure = error instanceof Error ? error : new Error(String(error));
3015
3026
  const record3 = failure;
3016
3027
  const status = record3.statusCode;
3017
- const exitCode = error instanceof _chunk36ML3YKAjs.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;
3028
+ const exitCode = error instanceof _chunkUVXBVUZQjs.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;
3018
3029
  const diagnostic = Object.assign(failure, {
3019
3030
  exitCode,
3020
3031
  retryable: exitCode === 5
3021
3032
  });
3022
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) _chunkHRWUQJ4Kjs.printJsonError.call(void 0, diagnostic);
3033
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) _chunkDQ65ZVHNjs.printJsonError.call(void 0, diagnostic);
3023
3034
  else console.error(`Error: ${diagnostic.message}`);
3024
3035
  return exitCode;
3025
3036
  }
@@ -3034,7 +3045,7 @@ async function executeRunEventQuery(args, resource) {
3034
3045
  ...criteria
3035
3046
  } = request;
3036
3047
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3037
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
3048
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
3038
3049
  let result;
3039
3050
  if (request.operation === "fields") {
3040
3051
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3100,13 +3111,13 @@ async function executeRunEventQuery(args, resource) {
3100
3111
  lines.push(`Next page: ${nextPage}`);
3101
3112
  }
3102
3113
  }
3103
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
3114
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
3104
3115
  {
3105
3116
  ...result,
3106
3117
  ...nextPage ? { next: { page: nextPage } } : {},
3107
3118
  render: { sections: [{ title: `run ${resource}`, lines }] }
3108
3119
  },
3109
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3120
+ { json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3110
3121
  ` }
3111
3122
  );
3112
3123
  return 0;
@@ -3926,7 +3937,7 @@ function checkedRunExample(plays, target) {
3926
3937
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3927
3938
  const base = `deepline plays run --file ${quote(target)}`;
3928
3939
  return {
3929
- command: `${base}${_chunkDRM3CMHLjs.playInputExampleArgs.call(void 0, schema)}`,
3940
+ command: `${base}${_chunkKXMNM4AQjs.playInputExampleArgs.call(void 0, schema)}`,
3930
3941
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema."
3931
3942
  };
3932
3943
  }
@@ -4024,7 +4035,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4024
4035
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4025
4036
  );
4026
4037
  }
4027
- const response = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.getReceipts(runId, {
4038
+ const response = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().runs.getReceipts(runId, {
4028
4039
  keys
4029
4040
  });
4030
4041
  const failed = response.receipts.filter(
@@ -4036,7 +4047,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4036
4047
  JSON.stringify(response, null, 2) + "\n",
4037
4048
  { flag: "wx", mode: 384 }
4038
4049
  );
4039
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
4050
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
4040
4051
  {
4041
4052
  runId,
4042
4053
  out: options.out,
@@ -4046,7 +4057,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4046
4057
  { json: true }
4047
4058
  );
4048
4059
  } else {
4049
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4060
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4050
4061
  }
4051
4062
  if (failed)
4052
4063
  process.exitCode = response.receipts.some(
@@ -4085,7 +4096,7 @@ includes nextCommand when another page is available.
4085
4096
  { exitCode: 2 }
4086
4097
  );
4087
4098
  }
4088
- const page = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.children(parentRunId, {
4099
+ const page = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().runs.children(parentRunId, {
4089
4100
  launchKey: options.launchKey,
4090
4101
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4091
4102
  limit
@@ -4100,7 +4111,7 @@ includes nextCommand when another page is available.
4100
4111
  "--limit",
4101
4112
  String(limit)
4102
4113
  ].join(" ") : null;
4103
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
4114
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
4104
4115
  {
4105
4116
  parentRunId,
4106
4117
  launchKey: options.launchKey,
@@ -4136,7 +4147,7 @@ async function handleRunsHistory(options) {
4136
4147
  throw new Error("--limit must be a positive integer.");
4137
4148
  }
4138
4149
  }
4139
- const page = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.history({
4150
+ const page = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().runs.history({
4140
4151
  cursor: options.cursor,
4141
4152
  orgId: options.org,
4142
4153
  search: options.search,
@@ -4152,7 +4163,7 @@ async function handleRunsHistory(options) {
4152
4163
  );
4153
4164
  }
4154
4165
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4155
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
4166
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
4156
4167
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4157
4168
  options.json ? { json: true } : {}
4158
4169
  );
@@ -4204,12 +4215,12 @@ async function runRunsRerunCommand(runId, options) {
4204
4215
  return 1;
4205
4216
  }
4206
4217
  }
4207
- const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.rerun(runId, {
4218
+ const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().runs.rerun(runId, {
4208
4219
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4209
4220
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4210
4221
  });
4211
- if (_chunkHRWUQJ4Kjs.shouldEmitJson.call(void 0, options.json)) {
4212
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, result, { json: true });
4222
+ if (_chunkDQ65ZVHNjs.shouldEmitJson.call(void 0, options.json)) {
4223
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, result, { json: true });
4213
4224
  } else {
4214
4225
  console.log(
4215
4226
  result.deduplicated === true ? `
@@ -4477,7 +4488,7 @@ function projectRunDatasetCell(value) {
4477
4488
  const logicalValue = parseSerializedDatasetValue(value);
4478
4489
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
4479
4490
  if (typeof logicalValue === "object") {
4480
- return _chunkHRWUQJ4Kjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4491
+ return _chunkDQ65ZVHNjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4481
4492
  }
4482
4493
  return logicalValue;
4483
4494
  }
@@ -6904,7 +6915,7 @@ function renderOutcome(outcome) {
6904
6915
  function printResult2(input) {
6905
6916
  const failed = input.status === "failed" || input.status === "cancelled";
6906
6917
  if (failed) process.exitCode = 1;
6907
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
6918
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
6908
6919
  {
6909
6920
  deployment: { ...input.deployment, status: input.status },
6910
6921
  plays: input.outcomes,
@@ -6929,7 +6940,7 @@ async function handlePlaysDeploy(directory, options) {
6929
6940
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6930
6941
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6931
6942
  });
6932
- const { http, config } = _chunkHRWUQJ4Kjs.getAuthedHttpClient.call(void 0, );
6943
+ const { http, config } = _chunkDQ65ZVHNjs.getAuthedHttpClient.call(void 0, );
6933
6944
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6934
6945
  const startDeployment = () => http.post("/api/v2/deployments", {
6935
6946
  deliveryId,
@@ -6956,7 +6967,7 @@ async function handlePlaysDeploy(directory, options) {
6956
6967
  },
6957
6968
  {
6958
6969
  bundle: bundleDeployPlayFile,
6959
- fetchImpl: _chunk56IFFVIBjs.fetchWithDeploymentProtection,
6970
+ fetchImpl: _chunkRYW4HPSMjs.fetchWithDeploymentProtection,
6960
6971
  // The plays are already here: "opening" the source is naming it.
6961
6972
  openSource: async () => ({
6962
6973
  open: async () => ({ repoRoot: root })
@@ -7154,10 +7165,10 @@ function validateFixtureBehavior(value) {
7154
7165
  error: `fixtureBehavior.responseSamples[${index}].httpError.retryAfterFormat requires status 429 and delta_seconds or http_date.`
7155
7166
  };
7156
7167
  }
7157
- if (error.failuresBeforeSuccess !== void 0 && (error.status !== 429 || typeof error.failuresBeforeSuccess !== "number" || !Number.isSafeInteger(error.failuresBeforeSuccess) || error.failuresBeforeSuccess < 1 || error.failuresBeforeSuccess > 20)) {
7168
+ if (error.failuresBeforeSuccess !== void 0 && (![429, 500, 502, 503, 504].includes(error.status) || typeof error.failuresBeforeSuccess !== "number" || !Number.isSafeInteger(error.failuresBeforeSuccess) || error.failuresBeforeSuccess < 1 || error.failuresBeforeSuccess > 20)) {
7158
7169
  return {
7159
7170
  ok: false,
7160
- error: `fixtureBehavior.responseSamples[${index}].httpError.failuresBeforeSuccess requires status 429 and an integer from 1 through 20.`
7171
+ error: `fixtureBehavior.responseSamples[${index}].httpError.failuresBeforeSuccess requires status 429, 500, 502, 503, or 504 and an integer from 1 through 20.`
7161
7172
  };
7162
7173
  }
7163
7174
  httpError = {
@@ -7524,7 +7535,7 @@ function parseInputFlagValue(raw) {
7524
7535
  return raw;
7525
7536
  }
7526
7537
  function parsePlayRunOptions(args, initialInput = null) {
7527
- const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0, args, "run");
7538
+ const selection = _chunkDQ65ZVHNjs.parseJsonFields.call(void 0, args, "run");
7528
7539
  args = selection.args;
7529
7540
  const usage2 = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and ctx.dataset guidance.";
7530
7541
  let filePath = null;
@@ -7536,7 +7547,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7536
7547
  let revisionSelector = null;
7537
7548
  const watch = !args.includes("--no-wait");
7538
7549
  const dryRun = args.includes("--dry-run");
7539
- let jsonOutput = dryRun ? _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
7550
+ let jsonOutput = dryRun ? _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
7540
7551
  const fullJson = args.includes("--full");
7541
7552
  const force = args.includes("--force");
7542
7553
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -7599,7 +7610,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7599
7610
  "--log-level requires one of: debug, info, warn, error."
7600
7611
  );
7601
7612
  }
7602
- const parsed = _chunk36ML3YKAjs.parseLogLevel.call(void 0, value);
7613
+ const parsed = _chunkUVXBVUZQjs.parseLogLevel.call(void 0, value);
7603
7614
  if (!parsed) {
7604
7615
  throw new Error(
7605
7616
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -7917,7 +7928,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7917
7928
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
7918
7929
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
7919
7930
  );
7920
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk36ML3YKAjs.parseLogLevel.call(void 0, options.logLevel);
7931
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkUVXBVUZQjs.parseLogLevel.call(void 0, options.logLevel);
7921
7932
  if (!logLevel)
7922
7933
  throw new Error("--log-level requires one of: debug, info, warn, error.");
7923
7934
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -7931,13 +7942,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7931
7942
  if (debugAlias || debugMapLatency && logLevel === "info")
7932
7943
  logLevel = "debug";
7933
7944
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
7934
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0,
7935
- [...fullJson ? ["--full"] : [], ..._chunkHRWUQJ4Kjs.jsonFieldArgs.call(void 0, options.json)],
7945
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkDQ65ZVHNjs.parseJsonFields.call(void 0,
7946
+ [...fullJson ? ["--full"] : [], ..._chunkDQ65ZVHNjs.jsonFieldArgs.call(void 0, options.json)],
7936
7947
  "run"
7937
7948
  ).fields;
7938
7949
  const watch = options.wait === false ? false : base.watch;
7939
7950
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
7940
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, []) : explicitJson;
7951
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkDQ65ZVHNjs.argsWantJson.call(void 0, []) : explicitJson;
7941
7952
  const verboseLogs = Boolean(
7942
7953
  debugAlias || logLevel === "debug" || debugMapLatency
7943
7954
  );
@@ -7984,7 +7995,7 @@ function playAuthoringGraphPath(parent, filePath) {
7984
7995
  // src/cli/renderers/local-play-execution.ts
7985
7996
  function renderLocalPlayExecutionPlan(plan, options = {}) {
7986
7997
  if (options.dryRun) {
7987
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7998
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7988
7999
  return;
7989
8000
  }
7990
8001
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -8948,7 +8959,7 @@ function playStatusErrorText(status) {
8948
8959
  function isRetryablePendingStartFailure(status) {
8949
8960
  if (status.status !== "failed") return false;
8950
8961
  if (status.runId && status.runId !== "pending") return false;
8951
- return _chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8962
+ return _chunkUVXBVUZQjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8952
8963
  }
8953
8964
  function pendingStartFailureStatus(input) {
8954
8965
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -8975,13 +8986,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
8975
8986
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
8976
8987
  function watchSurfaceReaches(state, provenance, level) {
8977
8988
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
8978
- if (!_chunk36ML3YKAjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8989
+ if (!_chunkUVXBVUZQjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8979
8990
  return false;
8980
8991
  }
8981
- if (_chunk36ML3YKAjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8992
+ if (_chunkUVXBVUZQjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8982
8993
  return true;
8983
8994
  }
8984
- return state.verbose === true && _chunk36ML3YKAjs.logProvenanceReaches.call(void 0, provenance, "debug");
8995
+ return state.verbose === true && _chunkUVXBVUZQjs.logProvenanceReaches.call(void 0, provenance, "debug");
8985
8996
  }
8986
8997
  function getEventPayload(event) {
8987
8998
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -9476,11 +9487,6 @@ function printPlayStatusHeartbeat(input) {
9476
9487
  input.state.lastStatusHeartbeatAt = now;
9477
9488
  input.progress.writeLine(line);
9478
9489
  }
9479
- function buildPlayDashboardUrl(baseUrl, playName) {
9480
- const trimmedBase = baseUrl.replace(/\/$/, "");
9481
- const encodedPlayName = encodeURIComponent(playName);
9482
- return `${trimmedBase}/dashboard/plays/${encodedPlayName}`;
9483
- }
9484
9490
  function resolveRunPlayName(status, runId) {
9485
9491
  const packaged = _optionalChain([status, 'access', _301 => _301.package, 'optionalAccess', _302 => _302.run, 'optionalAccess', _303 => _303.playName]);
9486
9492
  if (typeof packaged === "string" && packaged.trim()) return packaged.trim();
@@ -9488,7 +9494,7 @@ function resolveRunPlayName(status, runId) {
9488
9494
  }
9489
9495
  function openPlayDashboard(dashboardUrl, open2) {
9490
9496
  if (open2 && dashboardUrl) {
9491
- _chunkHRWUQJ4Kjs.openInBrowser.call(void 0, dashboardUrl);
9497
+ _chunkDQ65ZVHNjs.openInBrowser.call(void 0, dashboardUrl);
9492
9498
  }
9493
9499
  }
9494
9500
  function printPlayLogLines(input) {
@@ -9550,7 +9556,7 @@ async function waitForPlayCompletionByWatch(input) {
9550
9556
  billing: false
9551
9557
  });
9552
9558
  } catch (error) {
9553
- if (_chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9559
+ if (_chunkUVXBVUZQjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9554
9560
  return null;
9555
9561
  }
9556
9562
  throw error;
@@ -9705,7 +9711,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9705
9711
  }
9706
9712
  async function startAndWaitForPlayCompletionByStreamOnce(input) {
9707
9713
  const startedAt = Date.now();
9708
- const dashboardUrl = buildPlayDashboardUrl(
9714
+ const dashboardUrl = _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0,
9709
9715
  input.client.baseUrl,
9710
9716
  input.playName
9711
9717
  );
@@ -9748,7 +9754,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9748
9754
  billing: false
9749
9755
  });
9750
9756
  } catch (error) {
9751
- if (_chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, error)) {
9757
+ if (_chunkUVXBVUZQjs.isTransientPlayRunReadError.call(void 0, error)) {
9752
9758
  return null;
9753
9759
  }
9754
9760
  throw error;
@@ -9956,7 +9962,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9956
9962
  lastPhase
9957
9963
  });
9958
9964
  }
9959
- if (lastKnownWorkflowId && _chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, error)) {
9965
+ if (lastKnownWorkflowId && _chunkUVXBVUZQjs.isTransientPlayRunReadError.call(void 0, error)) {
9960
9966
  if (timeout) {
9961
9967
  clearTimeout(timeout);
9962
9968
  }
@@ -9992,7 +9998,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9992
9998
  onRunAdmitted: confirmAdmission
9993
9999
  });
9994
10000
  }
9995
- if (!lastKnownWorkflowId && _chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, error)) {
10001
+ if (!lastKnownWorkflowId && _chunkUVXBVUZQjs.isTransientPlayRunReadError.call(void 0, error)) {
9996
10002
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
9997
10003
  phase: "cli.play_start_stream_transient_failure",
9998
10004
  ms: Date.now() - startedAt,
@@ -10091,7 +10097,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10091
10097
  "logs"
10092
10098
  ]);
10093
10099
  function formatPlayLogLine(rawLine, state) {
10094
- const classified = _chunk36ML3YKAjs.classifyLogLine.call(void 0, rawLine);
10100
+ const classified = _chunkUVXBVUZQjs.classifyLogLine.call(void 0, rawLine);
10095
10101
  const line = classified.line;
10096
10102
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10097
10103
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _317 => _317[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10106,14 +10112,14 @@ function formatPlayLogLine(rawLine, state) {
10106
10112
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10107
10113
  const providerWait = formatProviderCapacityWaitLogLine(line);
10108
10114
  if (providerWait && !state.verbose) {
10109
- return _chunk36ML3YKAjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10115
+ return _chunkUVXBVUZQjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10110
10116
  }
10111
10117
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10112
10118
  if (mapProgress && !state.verbose) {
10113
- return _chunk36ML3YKAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10119
+ return _chunkUVXBVUZQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10114
10120
  }
10115
10121
  if (/\[worker\] picked up run\b/.test(message)) {
10116
- if (!_chunk36ML3YKAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10122
+ if (!_chunkUVXBVUZQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10117
10123
  return null;
10118
10124
  }
10119
10125
  if (state.emittedRunnerStarted) {
@@ -10126,7 +10132,7 @@ function formatPlayLogLine(rawLine, state) {
10126
10132
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10127
10133
  );
10128
10134
  if (mapStart) {
10129
- if (!_chunk36ML3YKAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10135
+ if (!_chunkUVXBVUZQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10130
10136
  return null;
10131
10137
  }
10132
10138
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10136,7 +10142,7 @@ function formatPlayLogLine(rawLine, state) {
10136
10142
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10137
10143
  );
10138
10144
  if (mapDone) {
10139
- if (!_chunk36ML3YKAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10145
+ if (!_chunkUVXBVUZQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10140
10146
  return null;
10141
10147
  }
10142
10148
  const [, results, executed, cached] = mapDone;
@@ -11423,7 +11429,7 @@ function formatRecentRunLogLines(value) {
11423
11429
  (line) => typeof line === "string"
11424
11430
  );
11425
11431
  if (tail.length === 0) return [];
11426
- const shown = tail.map((line) => _chunk36ML3YKAjs.classifyLogLine.call(void 0, line)).filter(
11432
+ const shown = tail.map((line) => _chunkUVXBVUZQjs.classifyLogLine.call(void 0, line)).filter(
11427
11433
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
11428
11434
  ).slice(-8);
11429
11435
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11702,11 +11708,11 @@ function buildPlayCompletionTextLines(status) {
11702
11708
  }
11703
11709
  function writePlayResult(status, jsonOutput, options) {
11704
11710
  const packaged = getPlayRunPackage(status);
11705
- if (status.package) _chunkZMVJSS6Njs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11711
+ if (status.package) _chunkZAAKSJASjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11706
11712
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _398 => _398.hits]), () => ( null));
11707
11713
  if (jsonOutput) {
11708
11714
  const payload2 = _optionalChain([options, 'optionalAccess', _399 => _399.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11709
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
11715
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
11710
11716
  hits ? { ...payload2, hits } : payload2,
11711
11717
  { json: true, fields: _optionalChain([options, 'optionalAccess', _400 => _400.jsonFields]) }
11712
11718
  );
@@ -11722,7 +11728,7 @@ function writePlayResult(status, jsonOutput, options) {
11722
11728
  ...buildPlayCompletionTextLines(status),
11723
11729
  ...formatRunHitsLines(hits)
11724
11730
  ];
11725
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, displayPackage, {
11731
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, displayPackage, {
11726
11732
  json: false,
11727
11733
  text: `${lines2.join("\n")}
11728
11734
  `
@@ -11773,7 +11779,7 @@ function writePlayResult(status, jsonOutput, options) {
11773
11779
  lines.push(...buildBillingRollupTextLines(status));
11774
11780
  const compact = compactPlayStatus(status);
11775
11781
  const payload = _optionalChain([options, 'optionalAccess', _402 => _402.fullJson]) ? status : compact;
11776
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
11782
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
11777
11783
  {
11778
11784
  ...payload,
11779
11785
  render: {
@@ -12530,7 +12536,7 @@ function renderServerResultView(value) {
12530
12536
  function writeStartedPlayRun(input) {
12531
12537
  if (input.package && isPlayRunPackageValue(input.package)) {
12532
12538
  const run = input.package.run;
12533
- _chunkZMVJSS6Njs.recordPlayTermination.call(void 0, {
12539
+ _chunkZAAKSJASjs.recordPlayTermination.call(void 0, {
12534
12540
  id: run.id,
12535
12541
  status: run.status,
12536
12542
  finishedAt: run.finishedAt
@@ -12543,7 +12549,7 @@ function writeStartedPlayRun(input) {
12543
12549
  dashboardUrl: input.dashboardUrl,
12544
12550
  package: input.package
12545
12551
  };
12546
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12552
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12547
12553
  json: true,
12548
12554
  fields: input.jsonFields
12549
12555
  });
@@ -12565,7 +12571,7 @@ function writeStartedPlayRun(input) {
12565
12571
  input.progress.writeLine(output2, process.stdout);
12566
12572
  return;
12567
12573
  }
12568
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, input.package, {
12574
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, input.package, {
12569
12575
  json: false,
12570
12576
  text: `${output2}
12571
12577
  `
@@ -12594,7 +12600,7 @@ function writeStartedPlayRun(input) {
12594
12600
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12595
12601
  ];
12596
12602
  if (input.jsonOutput) {
12597
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12603
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12598
12604
  return;
12599
12605
  }
12600
12606
  if (input.dashboardUrl) {
@@ -12605,7 +12611,7 @@ function writeStartedPlayRun(input) {
12605
12611
  input.progress.writeLine(output, process.stdout);
12606
12612
  return;
12607
12613
  }
12608
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
12614
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
12609
12615
  {
12610
12616
  ...payload,
12611
12617
  render: { sections: [{ title: "play run", lines }] }
@@ -12615,7 +12621,7 @@ function writeStartedPlayRun(input) {
12615
12621
  );
12616
12622
  }
12617
12623
  function parsePlayCheckOptions(args) {
12618
- const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0, args, "check");
12624
+ const selection = _chunkDQ65ZVHNjs.parseJsonFields.call(void 0, args, "check");
12619
12625
  args = selection.args;
12620
12626
  const target = args[0];
12621
12627
  if (!target || target.startsWith("-")) {
@@ -12627,7 +12633,7 @@ function parsePlayCheckOptions(args) {
12627
12633
  if (arg !== "--json" && arg !== "--full")
12628
12634
  throw new Error(`Unknown plays check option: ${arg}`);
12629
12635
  }
12630
- const jsonOutput = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
12636
+ const jsonOutput = _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
12631
12637
  return {
12632
12638
  target,
12633
12639
  jsonOutput,
@@ -12703,7 +12709,7 @@ ${PLAY_PUBLISH_USAGE}`
12703
12709
  useLatest,
12704
12710
  expectedArtifactHash,
12705
12711
  dryRun,
12706
- jsonOutput: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)
12712
+ jsonOutput: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)
12707
12713
  };
12708
12714
  }
12709
12715
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12744,7 +12750,7 @@ ${PLAY_SAVE_USAGE}`);
12744
12750
  target,
12745
12751
  expectedArtifactHash,
12746
12752
  dryRun,
12747
- jsonOutput: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)
12753
+ jsonOutput: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)
12748
12754
  };
12749
12755
  }
12750
12756
  function printScheduledPlayCapacity(capacity) {
@@ -12955,7 +12961,7 @@ function printBundledRuntimeWarning(bundle) {
12955
12961
  async function handlePlayCheck(args) {
12956
12962
  const options = parsePlayCheckOptions(args);
12957
12963
  if (!isFileTarget2(options.target)) {
12958
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
12964
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
12959
12965
  try {
12960
12966
  await assertCanonicalNamedPlayReference(client, options.target, {
12961
12967
  command: "check"
@@ -12984,7 +12990,7 @@ async function handlePlayCheck(args) {
12984
12990
  },
12985
12991
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12986
12992
  };
12987
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, result, {
12993
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, result, {
12988
12994
  json: options.jsonOutput,
12989
12995
  fields: options.jsonFields,
12990
12996
  text: renderPlayCheckOutput(result) + "\n"
@@ -12994,7 +13000,7 @@ async function handlePlayCheck(args) {
12994
13000
  const resolved = _path.resolve.call(void 0, options.target);
12995
13001
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12996
13002
  if (options.jsonOutput) {
12997
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13003
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
12998
13004
  {
12999
13005
  kind: "play_check",
13000
13006
  checked: "named_contract",
@@ -13036,7 +13042,7 @@ async function handlePlayCheck(args) {
13036
13042
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
13037
13043
  publishCommand: _optionalChain([primary, 'optionalAccess', _449 => _449.result, 'access', _450 => _450.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
13038
13044
  });
13039
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, output, {
13045
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, output, {
13040
13046
  json: options.jsonOutput,
13041
13047
  fields: options.jsonFields,
13042
13048
  text: renderPlayCheckOutput(output) + "\n"
@@ -13090,7 +13096,7 @@ async function checkOneExportedPlay(input) {
13090
13096
  }
13091
13097
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
13092
13098
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
13093
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
13099
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
13094
13100
  const integrationMode = resolveEvalIntegrationMode();
13095
13101
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
13096
13102
  playName: node.playName,
@@ -13167,7 +13173,7 @@ async function handleFileBackedRun(options, hooks) {
13167
13173
  );
13168
13174
  return 0;
13169
13175
  }
13170
- client = new (0, _chunk36ML3YKAjs.DeeplineClient)(playRunClientOptions(options));
13176
+ client = new (0, _chunkUVXBVUZQjs.DeeplineClient)(playRunClientOptions(options));
13171
13177
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
13172
13178
  if (canDeferCompilerManifest) {
13173
13179
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
@@ -13328,7 +13334,7 @@ async function handleFileBackedRun(options, hooks) {
13328
13334
  );
13329
13335
  await _optionalChain([hooks, 'optionalAccess', _462 => _462.onRunStarted, 'optionalCall', _463 => _463(started.workflowId)]);
13330
13336
  await _optionalChain([hooks, 'optionalAccess', _464 => _464.onRunAdmitted, 'optionalCall', _465 => _465(started.workflowId)]);
13331
- const resolvedDashboardUrl = buildPlayDashboardUrl(client.baseUrl, playName);
13337
+ const resolvedDashboardUrl = _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
13332
13338
  openPlayDashboard(resolvedDashboardUrl, options.open);
13333
13339
  progress.phase("started run");
13334
13340
  progress.complete();
@@ -13366,7 +13372,7 @@ async function handleNamedRun(options, hooks) {
13366
13372
  if (options.target.kind !== "name") {
13367
13373
  throw new Error("Expected a named play run target.");
13368
13374
  }
13369
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)(playRunClientOptions(options));
13375
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)(playRunClientOptions(options));
13370
13376
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
13371
13377
  const playName = options.target.name;
13372
13378
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -13525,7 +13531,7 @@ async function handleNamedRun(options, hooks) {
13525
13531
  );
13526
13532
  await _optionalChain([hooks, 'optionalAccess', _473 => _473.onRunStarted, 'optionalCall', _474 => _474(started.workflowId)]);
13527
13533
  await _optionalChain([hooks, 'optionalAccess', _475 => _475.onRunAdmitted, 'optionalCall', _476 => _476(started.workflowId)]);
13528
- const resolvedDashboardUrl = buildPlayDashboardUrl(client.baseUrl, playName);
13534
+ const resolvedDashboardUrl = _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
13529
13535
  openPlayDashboard(resolvedDashboardUrl, options.open);
13530
13536
  progress.phase("started run");
13531
13537
  progress.complete();
@@ -13563,7 +13569,7 @@ async function handlePlayRun(args, hooks) {
13563
13569
  JSON.stringify({
13564
13570
  version: 1,
13565
13571
  admissionState: "submitted_unknown",
13566
- baseUrl: new (0, _chunk36ML3YKAjs.DeeplineClient)().baseUrl,
13572
+ baseUrl: new (0, _chunkUVXBVUZQjs.DeeplineClient)().baseUrl,
13567
13573
  ...intent
13568
13574
  })
13569
13575
  );
@@ -13792,10 +13798,10 @@ function renderRunOverviewText(overview, extras = {}) {
13792
13798
  );
13793
13799
  return `${lines.join("\n")}
13794
13800
 
13795
- ${_chunkHRWUQJ4Kjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13801
+ ${_chunkDQ65ZVHNjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13796
13802
  }
13797
13803
  async function handleRunGet(args) {
13798
- const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0,
13804
+ const selection = _chunkDQ65ZVHNjs.parseJsonFields.call(void 0,
13799
13805
  args,
13800
13806
  args.includes("--config") ? "config" : "get"
13801
13807
  );
@@ -13808,7 +13814,7 @@ async function handleRunGet(args) {
13808
13814
  console.error(error instanceof Error ? error.message : usage2);
13809
13815
  return 1;
13810
13816
  }
13811
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
13817
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
13812
13818
  if (args.includes("--web-url")) {
13813
13819
  const status2 = await client.runs.get(runId, { full: false });
13814
13820
  const playName2 = resolveRunPlayName(status2, runId);
@@ -13816,8 +13822,8 @@ async function handleRunGet(args) {
13816
13822
  console.error(`Run ${runId} does not name its play; no play page URL.`);
13817
13823
  return 1;
13818
13824
  }
13819
- const dashboardUrl2 = buildPlayDashboardUrl(client.baseUrl, playName2);
13820
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13825
+ const dashboardUrl2 = _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
13826
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
13821
13827
  { dashboardUrl: dashboardUrl2 },
13822
13828
  { json: args.includes("--json"), text: `${dashboardUrl2}
13823
13829
  ` }
@@ -13837,7 +13843,7 @@ async function handleRunGet(args) {
13837
13843
  "This server does not support recorded configuration reads."
13838
13844
  );
13839
13845
  }
13840
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13846
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
13841
13847
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13842
13848
  { json: true, fields: selection.fields }
13843
13849
  );
@@ -13845,7 +13851,7 @@ async function handleRunGet(args) {
13845
13851
  }
13846
13852
  if (args.includes("--input")) {
13847
13853
  const input = await client.getRunInput(runId);
13848
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, input, { json: true });
13854
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, input, { json: true });
13849
13855
  return 0;
13850
13856
  }
13851
13857
  const full = args.includes("--full");
@@ -13853,16 +13859,16 @@ async function handleRunGet(args) {
13853
13859
  full: false,
13854
13860
  failedLogs: args.includes("--log-failed")
13855
13861
  });
13856
- if (status.package) _chunkZMVJSS6Njs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13862
+ if (status.package) _chunkZAAKSJASjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13857
13863
  if (!status.package) {
13858
13864
  const legacyStatus = full ? await client.runs.get(runId, {
13859
13865
  full: true,
13860
13866
  failedLogs: args.includes("--log-failed")
13861
13867
  }) : status;
13862
13868
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
13863
- const legacyDashboardUrl = legacyPlayName ? buildPlayDashboardUrl(client.baseUrl, legacyPlayName) : null;
13864
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
13865
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13869
+ const legacyDashboardUrl = legacyPlayName ? _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
13870
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
13871
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
13866
13872
  {
13867
13873
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
13868
13874
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
@@ -13872,7 +13878,7 @@ async function handleRunGet(args) {
13872
13878
  } else {
13873
13879
  writePlayResult(legacyStatus, false, { fullJson: full });
13874
13880
  if (legacyDashboardUrl)
13875
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13881
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
13876
13882
  { dashboardUrl: legacyDashboardUrl },
13877
13883
  { json: false, text: `play page: ${legacyDashboardUrl}
13878
13884
  ` }
@@ -13887,10 +13893,10 @@ async function handleRunGet(args) {
13887
13893
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
13888
13894
  ]);
13889
13895
  const hitLines = formatRunHitsLines(hits);
13890
- const json = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
13896
+ const json = _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
13891
13897
  const playName = resolveRunPlayName(status, runId);
13892
- const dashboardUrl = playName ? buildPlayDashboardUrl(client.baseUrl, playName) : void 0;
13893
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13898
+ const dashboardUrl = playName ? _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
13899
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
13894
13900
  {
13895
13901
  ...overview,
13896
13902
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -13994,9 +14000,9 @@ async function handleRunLifecycleStatus(args) {
13994
14000
  console.error(error instanceof Error ? error.message : usage2);
13995
14001
  return 1;
13996
14002
  }
13997
- const status = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.status(runId);
13998
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
13999
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, status, { json: true });
14003
+ const status = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().runs.status(runId);
14004
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
14005
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, status, { json: true });
14000
14006
  return 0;
14001
14007
  }
14002
14008
  if (!status.available) {
@@ -14036,7 +14042,7 @@ async function handleRunsRerun(args) {
14036
14042
  console.error(error instanceof Error ? error.message : usage2);
14037
14043
  return 1;
14038
14044
  }
14039
- const options = { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) };
14045
+ const options = { json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) };
14040
14046
  for (let index = 0; index < args.length; index += 1) {
14041
14047
  if (args[index] === "--idempotency-key") {
14042
14048
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -14101,8 +14107,8 @@ ${usage2}
14101
14107
  Discover Plays: ${next.discover}
14102
14108
  Active runs: ${next.running}`
14103
14109
  );
14104
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
14105
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14110
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
14111
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
14106
14112
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
14107
14113
  { json: true }
14108
14114
  );
@@ -14117,7 +14123,7 @@ Active runs: ${next.running}`
14117
14123
  console.error("--offset requires --play.");
14118
14124
  return 1;
14119
14125
  }
14120
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14126
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
14121
14127
  const page = await client.runs.listPage({
14122
14128
  ...playName ? { play: playName } : {},
14123
14129
  ...statusFilter ? { status: statusFilter } : {},
@@ -14186,7 +14192,7 @@ Active runs: ${next.running}`
14186
14192
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14187
14193
  );
14188
14194
  }
14189
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14195
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
14190
14196
  {
14191
14197
  runs,
14192
14198
  count: runs.length,
@@ -14200,7 +14206,7 @@ Active runs: ${next.running}`
14200
14206
  },
14201
14207
  render: { sections: [{ title: "runs", lines }] }
14202
14208
  },
14203
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14209
+ { json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) }
14204
14210
  );
14205
14211
  return 0;
14206
14212
  }
@@ -14230,7 +14236,7 @@ async function handleRunTail(args) {
14230
14236
  console.error("--log-level requires one of: debug, info, warn, error.");
14231
14237
  return 1;
14232
14238
  }
14233
- const parsed = _chunk36ML3YKAjs.parseLogLevel.call(void 0, value);
14239
+ const parsed = _chunkUVXBVUZQjs.parseLogLevel.call(void 0, value);
14234
14240
  if (!parsed) {
14235
14241
  console.error(
14236
14242
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14268,9 +14274,9 @@ async function handleRunTail(args) {
14268
14274
  );
14269
14275
  return 1;
14270
14276
  }
14271
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14277
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
14272
14278
  const jsonLines = args.includes("--jsonl");
14273
- const jsonOutput = !jsonLines && _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
14279
+ const jsonOutput = !jsonLines && _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
14274
14280
  const compact = args.includes("--compact");
14275
14281
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14276
14282
  const compactState = {
@@ -14351,7 +14357,7 @@ async function handleRunLogs(args) {
14351
14357
  ]);
14352
14358
  const cursorIndex = args.indexOf("--cursor");
14353
14359
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14354
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk36ML3YKAjs.isRunLogsCursor.call(void 0, cursorValue));
14360
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkUVXBVUZQjs.isRunLogsCursor.call(void 0, cursorValue));
14355
14361
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14356
14362
  return handleRunEventSearch(args);
14357
14363
  }
@@ -14385,7 +14391,7 @@ async function handleRunLogs(args) {
14385
14391
  console.error("--log-level requires one of: debug, info, warn, error.");
14386
14392
  return 1;
14387
14393
  }
14388
- const parsed = _chunk36ML3YKAjs.parseLogLevel.call(void 0, value);
14394
+ const parsed = _chunkUVXBVUZQjs.parseLogLevel.call(void 0, value);
14389
14395
  if (!parsed) {
14390
14396
  console.error(
14391
14397
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14432,12 +14438,12 @@ async function handleRunLogs(args) {
14432
14438
  );
14433
14439
  return 1;
14434
14440
  }
14435
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14441
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
14436
14442
  if (outPath) {
14437
14443
  const result2 = await client.runs.logs(runId, { all: true });
14438
- const logs = result2.entries.filter((line) => _chunk36ML3YKAjs.logLevelReaches.call(void 0, _chunk36ML3YKAjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk36ML3YKAjs.classifyLogLine.call(void 0, line).line);
14444
+ const logs = result2.entries.filter((line) => _chunkUVXBVUZQjs.logLevelReaches.call(void 0, _chunkUVXBVUZQjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkUVXBVUZQjs.classifyLogLine.call(void 0, line).line);
14439
14445
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14440
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14446
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
14441
14447
  {
14442
14448
  runId: result2.runId,
14443
14449
  log_path: outPath,
@@ -14460,7 +14466,7 @@ async function handleRunLogs(args) {
14460
14466
  ]
14461
14467
  }
14462
14468
  },
14463
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14469
+ { json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) }
14464
14470
  );
14465
14471
  return 0;
14466
14472
  }
@@ -14491,7 +14497,7 @@ async function handleRunLogs(args) {
14491
14497
  }
14492
14498
  };
14493
14499
  const text = buildRunLogsText(filteredResult);
14494
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14500
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
14495
14501
  {
14496
14502
  runId: result.runId,
14497
14503
  totalCount: result.totalCount,
@@ -14515,7 +14521,7 @@ async function handleRunLogs(args) {
14515
14521
  render: { sections: [{ title: "run logs", lines: entries }] }
14516
14522
  },
14517
14523
  {
14518
- json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args),
14524
+ json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args),
14519
14525
  text
14520
14526
  }
14521
14527
  );
@@ -14539,7 +14545,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14539
14545
  );
14540
14546
  }
14541
14547
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14542
- (entry) => _chunk36ML3YKAjs.logLevelReaches.call(void 0, _chunk36ML3YKAjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14548
+ (entry) => _chunkUVXBVUZQjs.logLevelReaches.call(void 0, _chunkUVXBVUZQjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14543
14549
  );
14544
14550
  const selected = matching.slice(-limit);
14545
14551
  const olderMatchesExist = matching.length > selected.length;
@@ -14549,7 +14555,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14549
14555
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _498 => _498.at, 'call', _499 => _499(-1), 'optionalAccess', _500 => _500.seq]), () => ( null)),
14550
14556
  truncated: result.truncated || olderMatchesExist,
14551
14557
  hasMore: olderMatchesExist,
14552
- nextCursor: olderMatchesExist ? _chunk36ML3YKAjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14558
+ nextCursor: olderMatchesExist ? _chunkUVXBVUZQjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14553
14559
  };
14554
14560
  }
14555
14561
  async function handleRunEventSearch(args) {
@@ -14616,7 +14622,7 @@ ${usage2}`);
14616
14622
  namespace,
14617
14623
  ...backend ? { backend } : {}
14618
14624
  } : void 0;
14619
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14625
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
14620
14626
  const result = await client.runs.searchEvents({
14621
14627
  ...runId ? { runId } : {},
14622
14628
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14688,7 +14694,7 @@ ${renderedDetails}` : ""}`;
14688
14694
  "--limit",
14689
14695
  String(limit)
14690
14696
  ].join(" ") : null;
14691
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14697
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
14692
14698
  {
14693
14699
  events,
14694
14700
  nextCursor: result.nextCursor,
@@ -14699,14 +14705,14 @@ ${renderedDetails}` : ""}`;
14699
14705
  render: { sections: [{ title: "runtime events", lines }] }
14700
14706
  },
14701
14707
  {
14702
- json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args),
14708
+ json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args),
14703
14709
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14704
14710
  }
14705
14711
  );
14706
14712
  return 0;
14707
14713
  }
14708
14714
  function buildRunLogsText(result) {
14709
- const lines = result.entries.map((line) => _chunk36ML3YKAjs.classifyLogLine.call(void 0, line).line);
14715
+ const lines = result.entries.map((line) => _chunkUVXBVUZQjs.classifyLogLine.call(void 0, line).line);
14710
14716
  if (result.warning) {
14711
14717
  if (lines.length > 0) lines.push("");
14712
14718
  lines.push(`warning: ${result.warning}`);
@@ -14740,7 +14746,7 @@ async function handleRunStop(args) {
14740
14746
  reason = args[++index];
14741
14747
  }
14742
14748
  }
14743
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14749
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
14744
14750
  const result = await client.runs.stop(runId, { reason });
14745
14751
  const state = resolveRunStopState(result);
14746
14752
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14755,7 +14761,7 @@ async function handleRunStop(args) {
14755
14761
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14756
14762
  `inspect: deepline runs get ${runId} --full`
14757
14763
  ];
14758
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14764
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
14759
14765
  {
14760
14766
  ...cancelling,
14761
14767
  state,
@@ -14770,7 +14776,7 @@ async function handleRunStop(args) {
14770
14776
  ]
14771
14777
  }
14772
14778
  },
14773
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14779
+ { json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) }
14774
14780
  );
14775
14781
  return 0;
14776
14782
  }
@@ -14787,7 +14793,7 @@ async function handleRunStop(args) {
14787
14793
  ];
14788
14794
  process.stderr.write(`${lines2.join("\n")}
14789
14795
  `);
14790
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14796
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
14791
14797
  {
14792
14798
  ...result,
14793
14799
  render: {
@@ -14802,7 +14808,7 @@ async function handleRunStop(args) {
14802
14808
  ]
14803
14809
  }
14804
14810
  },
14805
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14811
+ { json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) }
14806
14812
  );
14807
14813
  return 1;
14808
14814
  }
@@ -14813,12 +14819,12 @@ async function handleRunStop(args) {
14813
14819
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14814
14820
  ] : []
14815
14821
  ];
14816
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14822
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
14817
14823
  {
14818
14824
  ...result,
14819
14825
  render: { sections: [{ title: "run stop", lines }] }
14820
14826
  },
14821
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14827
+ { json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) }
14822
14828
  );
14823
14829
  return 0;
14824
14830
  }
@@ -14868,18 +14874,18 @@ async function handleRunStopAll(args) {
14868
14874
  reason = args[++index];
14869
14875
  }
14870
14876
  }
14871
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14877
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
14872
14878
  if (dryRun) {
14873
14879
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14874
14880
  const lines2 = buildStopAllDryRunTextLines(result2);
14875
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14881
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
14876
14882
  {
14877
14883
  ...result2,
14878
14884
  render: {
14879
14885
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14880
14886
  }
14881
14887
  },
14882
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14888
+ { json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14883
14889
  ` }
14884
14890
  );
14885
14891
  return 0;
@@ -14892,17 +14898,17 @@ async function handleRunStopAll(args) {
14892
14898
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14893
14899
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14894
14900
  ];
14895
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14901
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
14896
14902
  {
14897
14903
  ...result,
14898
14904
  render: { sections: [{ title: "workspace stop-all", lines }] }
14899
14905
  },
14900
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14906
+ { json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) }
14901
14907
  );
14902
14908
  return result.failed > 0 || result.partial ? 1 : 0;
14903
14909
  }
14904
14910
  async function handleRunExport(args) {
14905
- const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0, args, "export");
14911
+ const selection = _chunkDQ65ZVHNjs.parseJsonFields.call(void 0, args, "export");
14906
14912
  args = selection.args;
14907
14913
  const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
14908
14914
  let runId;
@@ -14961,16 +14967,16 @@ async function handleRunExport(args) {
14961
14967
  "INVALID_ARGUMENT"
14962
14968
  );
14963
14969
  }
14964
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14970
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
14965
14971
  let status = await client.getPlayStatus(runId, { full: true });
14966
14972
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14967
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args));
14973
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args));
14968
14974
  try {
14969
14975
  await waitForPlayCompletionByWatch({
14970
14976
  client,
14971
14977
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14972
14978
  workflowId: runId,
14973
- jsonOutput: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args),
14979
+ jsonOutput: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args),
14974
14980
  emitLogs: false,
14975
14981
  waitTimeoutMs,
14976
14982
  startedAt: Date.now(),
@@ -15070,8 +15076,8 @@ async function handleRunExport(args) {
15070
15076
  "utf-8"
15071
15077
  );
15072
15078
  }
15073
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, {
15074
- json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args),
15079
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, payload, {
15080
+ json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args),
15075
15081
  fields: selection.fields,
15076
15082
  text: `${lines.join("\n")}
15077
15083
  `
@@ -15092,10 +15098,10 @@ async function handlePlayGet(args) {
15092
15098
  );
15093
15099
  return 2;
15094
15100
  }
15095
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15101
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
15096
15102
  const explicitJson = args.includes("--json");
15097
15103
  const sourceOutput = args.includes("--source");
15098
- const jsonOutput = sourceOutput ? explicitJson : _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
15104
+ const jsonOutput = sourceOutput ? explicitJson : _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
15099
15105
  const requestedRevisionFlags = [
15100
15106
  args.includes("--working"),
15101
15107
  args.includes("--live"),
@@ -15155,7 +15161,7 @@ async function handlePlayGet(args) {
15155
15161
  }
15156
15162
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15157
15163
  if (jsonOutput) {
15158
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
15164
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, {
15159
15165
  ...detail,
15160
15166
  ...materializedFile ? {
15161
15167
  message: loadedMessage,
@@ -15247,8 +15253,8 @@ async function handlePlayVersions(args) {
15247
15253
  console.error("Usage: deepline plays versions --name <name> [--json]");
15248
15254
  return 1;
15249
15255
  }
15250
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15251
- const jsonOutput = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
15256
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
15257
+ const jsonOutput = _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
15252
15258
  await assertCanonicalNamedPlayReference(client, playName, {
15253
15259
  command: "versions"
15254
15260
  });
@@ -15256,7 +15262,7 @@ async function handlePlayVersions(args) {
15256
15262
  parseReferencedPlayTarget2(playName).playName
15257
15263
  );
15258
15264
  if (jsonOutput) {
15259
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, { versions });
15265
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, { versions });
15260
15266
  return 0;
15261
15267
  }
15262
15268
  if (versions.length === 0) {
@@ -15288,9 +15294,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
15288
15294
  "signals"
15289
15295
  ];
15290
15296
  async function handlePlayList(args) {
15291
- const jsonOutput = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
15297
+ const jsonOutput = _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
15292
15298
  const showCost = args.includes("--show-cost");
15293
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15299
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
15294
15300
  const categoriesIndex = args.indexOf("--categories");
15295
15301
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _536 => _536[categoriesIndex + 1], 'optionalAccess', _537 => _537.trim, 'call', _538 => _538()]) : void 0;
15296
15302
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15387,7 +15393,7 @@ async function handlePlayList(args) {
15387
15393
  lines.push("List truncated \u2014 more plays are available.");
15388
15394
  lines.push(`Next page: ${nextPage}`);
15389
15395
  }
15390
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
15396
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
15391
15397
  {
15392
15398
  plays,
15393
15399
  count: plays.length,
@@ -15405,7 +15411,7 @@ async function handlePlayList(args) {
15405
15411
  }
15406
15412
  async function handlePlayPin(args, pinned) {
15407
15413
  const target = _optionalChain([args, 'access', _545 => _545.find, 'call', _546 => _546((arg) => !arg.startsWith("-")), 'optionalAccess', _547 => _547.trim, 'call', _548 => _548()]);
15408
- const jsonOutput = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
15414
+ const jsonOutput = _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
15409
15415
  const dryRun = args.includes("--dry-run");
15410
15416
  if (!target) {
15411
15417
  console.error(
@@ -15423,11 +15429,11 @@ async function handlePlayPin(args, pinned) {
15423
15429
  const name = parsedTarget.playName;
15424
15430
  const plan = { name, pinned, dryRun };
15425
15431
  if (dryRun) {
15426
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, plan);
15432
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, plan);
15427
15433
  return 0;
15428
15434
  }
15429
- const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().setPlayPinned(name, pinned);
15430
- if (jsonOutput) _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
15435
+ const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().setPlayPinned(name, pinned);
15436
+ if (jsonOutput) _chunkDQ65ZVHNjs.printCompactJson.call(void 0, result);
15431
15437
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15432
15438
  return 0;
15433
15439
  }
@@ -15443,65 +15449,9 @@ function csvColumnLines(csvInput) {
15443
15449
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
15444
15450
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
15445
15451
  }),
15446
- _chunkDRM3CMHLjs.CSV_HEADER_MATCHING_NOTE
15452
+ _chunkKXMNM4AQjs.CSV_HEADER_MATCHING_NOTE
15447
15453
  ];
15448
15454
  }
15449
- function describedPlay(play) {
15450
- const reference = formatPlayListReference(play);
15451
- const starter = _nullishCoalesce(play.cloneEditStarter, () => ( buildCloneEditStarter(play)));
15452
- const csv = _nullishCoalesce(play.csvInput, () => ( {}));
15453
- const csvField2 = typeof csv.inputField === "string" ? csv.inputField : "csv";
15454
- const alongside = /* @__PURE__ */ new Set([
15455
- csvField2,
15456
- "columns",
15457
- ...Array.isArray(csv.runLevelControlFields) ? csv.runLevelControlFields.map(String) : []
15458
- ]);
15459
- const declared = _chunkZMVJSS6Njs.schemaFields.call(void 0, play.inputSchema).map((field) => field.name);
15460
- const rowNames = _chunkZMVJSS6Njs.schemaFields.call(void 0, csv.rowInputSchema).map((field) => field.name);
15461
- const replaced = play.csvInput ? (rowNames.length > 0 ? rowNames : declared).filter(
15462
- (name) => declared.includes(name) && !alongside.has(name)
15463
- ) : [];
15464
- const exclusive = replaced.length ? { field: csvField2, with: replaced } : void 0;
15465
- const headers = isRecord2(csv.defaultColumns) ? csv.defaultColumns : {};
15466
- const rowInputs = _chunkZMVJSS6Njs.schemaFields.call(void 0, csv.rowInputSchema).map((field) => {
15467
- const header = [headers[field.name]].flat().filter((name) => name && name !== field.name).join(" or ");
15468
- return header ? {
15469
- ...field,
15470
- description: [field.description, `CSV header: ${header}`].filter(Boolean).join(" - ")
15471
- } : field;
15472
- });
15473
- const rowOutput = _nullishCoalesce(play.rowOutputSchema, () => ( {}));
15474
- const added = isRecord2(rowOutput.addedColumns) ? rowOutput.addedColumns : {};
15475
- const rowOutputs = _chunkZMVJSS6Njs.schemaFields.call(void 0,
15476
- Object.keys(added).length ? { properties: added } : rowOutput
15477
- ).map((field) => ({ ...field, required: true }));
15478
- return {
15479
- kind: play.ownerType === "deepline" ? "prebuilt_play" : "custom_play",
15480
- id: reference,
15481
- ...play.displayName && play.displayName !== play.name ? { displayName: play.displayName } : {},
15482
- ...play.description ? { description: play.description } : {},
15483
- ...play.observedCost ? { cost: play.observedCost.displayText } : {},
15484
- guidance: [],
15485
- inputs: _chunkZMVJSS6Njs.schemaFields.call(void 0, play.inputSchema),
15486
- outputs: _chunkZMVJSS6Njs.schemaFields.call(void 0, play.outputSchema),
15487
- ...rowInputs.length ? { rowInputs } : {},
15488
- ...typeof csv.inputField === "string" ? { csvInput: csv.inputField } : {},
15489
- ...rowOutputs.length ? {
15490
- rowOutputs,
15491
- rowOutputsAddToSource: Object.keys(added).length > 0 || rowOutput.preservesSourceColumns === true
15492
- } : {},
15493
- runner: {
15494
- via: "play",
15495
- reference,
15496
- // A CSV play's run command is built by the server around its columns.
15497
- ...play.csvInput ? { cli: play.runCommand } : {}
15498
- },
15499
- ...starter ? { source: starter.command } : {},
15500
- ...exclusive ? { exclusive } : {},
15501
- // A prebuilt's cost is what its recent runs were charged; there is no rate.
15502
- ..._optionalChain([play, 'access', _549 => _549.observedCost, 'optionalAccess', _550 => _550.displayText]) ? { cost: play.observedCost.displayText } : {}
15503
- };
15504
- }
15505
15455
  function printPlayDescription(play) {
15506
15456
  const reference = formatPlayListReference(play);
15507
15457
  const labels = [
@@ -15531,7 +15481,7 @@ function printPlayDescription(play) {
15531
15481
  console.log(` ${line}`);
15532
15482
  }
15533
15483
  }
15534
- if (_optionalChain([play, 'access', _551 => _551.toolCategories, 'optionalAccess', _552 => _552.length])) {
15484
+ if (_optionalChain([play, 'access', _549 => _549.toolCategories, 'optionalAccess', _550 => _550.length])) {
15535
15485
  console.log(` Tool categories: ${play.toolCategories.join(", ")}`);
15536
15486
  }
15537
15487
  if (play.aliases.length > 0) {
@@ -15576,7 +15526,7 @@ function printPlayDescription(play) {
15576
15526
  const runtimeLimit = formatPlayRuntimeLimit(play.runtimeLimit);
15577
15527
  if (runtimeLimit) {
15578
15528
  console.log(
15579
- ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _553 => _553.runtimeLimit, 'optionalAccess', _554 => _554.source]), () => ( "live"))})`
15529
+ ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _551 => _551.runtimeLimit, 'optionalAccess', _552 => _552.source]), () => ( "live"))})`
15580
15530
  );
15581
15531
  }
15582
15532
  printScheduledPlayCapacity(play.activeScheduledPlays);
@@ -15604,17 +15554,17 @@ function formatPlayGrepMatches(matches) {
15604
15554
  return matches.map((match) => `${match.field}: ${match.terms.join(", ")}`).join("; ");
15605
15555
  }
15606
15556
  async function handlePlayGrep(args) {
15607
- const query = _optionalChain([args, 'access', _555 => _555[0], 'optionalAccess', _556 => _556.trim, 'call', _557 => _557()]);
15557
+ const query = _optionalChain([args, 'access', _553 => _553[0], 'optionalAccess', _554 => _554.trim, 'call', _555 => _555()]);
15608
15558
  if (!query) {
15609
15559
  console.error("Usage: deepline plays grep <query> [--json]");
15610
15560
  return 1;
15611
15561
  }
15612
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15562
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
15613
15563
  const results = (await client.listPlays({ grep: query })).map(
15614
15564
  summarizePlayGrepResult
15615
15565
  );
15616
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
15617
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
15566
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
15567
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, {
15618
15568
  plays: results,
15619
15569
  count: results.length,
15620
15570
  query,
@@ -15628,7 +15578,7 @@ async function handlePlayGrep(args) {
15628
15578
  `
15629
15579
  );
15630
15580
  for (const result of results) {
15631
- console.log(_optionalChain([result, 'access', _558 => _558.displayName, 'optionalAccess', _559 => _559.trim, 'call', _560 => _560()]) || result.name);
15581
+ console.log(_optionalChain([result, 'access', _556 => _556.displayName, 'optionalAccess', _557 => _557.trim, 'call', _558 => _558()]) || result.name);
15632
15582
  const matches = formatPlayGrepMatches(result.matches);
15633
15583
  if (matches) console.log(` Matched: ${matches}`);
15634
15584
  console.log(` Describe: ${result.describe}`);
@@ -15637,7 +15587,7 @@ async function handlePlayGrep(args) {
15637
15587
  return 0;
15638
15588
  }
15639
15589
  async function handlePlayDescribe(args) {
15640
- const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0, args, "describe");
15590
+ const selection = _chunkDQ65ZVHNjs.parseJsonFields.call(void 0, args, "describe");
15641
15591
  args = selection.args;
15642
15592
  const playName = args[0];
15643
15593
  if (!playName) {
@@ -15671,8 +15621,8 @@ async function handlePlayDescribe(args) {
15671
15621
  `deepline plays check ${playName}`,
15672
15622
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15673
15623
  ];
15674
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
15675
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
15624
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
15625
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, {
15676
15626
  ok: false,
15677
15627
  error: { message },
15678
15628
  next
@@ -15686,7 +15636,7 @@ async function handlePlayDescribe(args) {
15686
15636
  }
15687
15637
  return 2;
15688
15638
  }
15689
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15639
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
15690
15640
  await assertCanonicalNamedPlayReference(client, playName, {
15691
15641
  command: "describe"
15692
15642
  });
@@ -15696,9 +15646,9 @@ async function handlePlayDescribe(args) {
15696
15646
  compact: args.includes("--compact")
15697
15647
  }
15698
15648
  );
15699
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
15700
- if (selection.fields) _chunkHRWUQJ4Kjs.printJson.call(void 0, play, selection.fields);
15701
- else _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, play);
15649
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
15650
+ if (selection.fields) _chunkDQ65ZVHNjs.printJson.call(void 0, play, selection.fields);
15651
+ else _chunkDQ65ZVHNjs.printCompactJson.call(void 0, play);
15702
15652
  return 0;
15703
15653
  }
15704
15654
  printPlayDescription(play);
@@ -15742,7 +15692,7 @@ async function handlePlaySave(args) {
15742
15692
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15743
15693
  };
15744
15694
  if (options.jsonOutput) {
15745
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
15695
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, result);
15746
15696
  } else {
15747
15697
  console.error(result.message);
15748
15698
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15764,7 +15714,7 @@ async function handlePlaySave(args) {
15764
15714
  };
15765
15715
  if (options.dryRun) {
15766
15716
  if (options.jsonOutput) {
15767
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, dryRun);
15717
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, dryRun);
15768
15718
  } else {
15769
15719
  console.log(`Dry run: ${playName}`);
15770
15720
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15773,7 +15723,7 @@ async function handlePlaySave(args) {
15773
15723
  }
15774
15724
  return 0;
15775
15725
  }
15776
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15726
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
15777
15727
  try {
15778
15728
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
15779
15729
  "cli.play_save_compile_manifests",
@@ -15809,7 +15759,7 @@ async function handlePlaySave(args) {
15809
15759
  }
15810
15760
  };
15811
15761
  if (options.jsonOutput) {
15812
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
15762
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, result);
15813
15763
  } else {
15814
15764
  console.log(
15815
15765
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15835,7 +15785,7 @@ async function handlePlayPublish(args) {
15835
15785
  }
15836
15786
  const { target: playName, useLatest } = options;
15837
15787
  let revisionId = options.revisionId;
15838
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15788
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
15839
15789
  if (isFileTarget2(playName)) {
15840
15790
  if (revisionId || useLatest) {
15841
15791
  console.error(
@@ -15867,7 +15817,7 @@ async function handlePlayPublish(args) {
15867
15817
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15868
15818
  };
15869
15819
  if (options.jsonOutput) {
15870
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result3);
15820
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, result3);
15871
15821
  } else {
15872
15822
  console.error(result3.message);
15873
15823
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15890,7 +15840,7 @@ async function handlePlayPublish(args) {
15890
15840
  };
15891
15841
  if (options.dryRun) {
15892
15842
  if (options.jsonOutput) {
15893
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, dryRun);
15843
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, dryRun);
15894
15844
  } else {
15895
15845
  console.log(`Dry run: ${rootPlayName}`);
15896
15846
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15948,17 +15898,17 @@ async function handlePlayPublish(args) {
15948
15898
  artifactHash,
15949
15899
  liveVersion: _nullishCoalesce(published.version, () => ( null)),
15950
15900
  revisionId: _nullishCoalesce(published.revisionId, () => ( null)),
15951
- previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _561 => _561.version]), () => ( null)),
15952
- previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _562 => _562.artifactHash]), () => ( null)),
15901
+ previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _559 => _559.version]), () => ( null)),
15902
+ previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _560 => _560.artifactHash]), () => ( null)),
15953
15903
  sourceBytes: {
15954
- before: _optionalChain([previousLive, 'optionalAccess', _563 => _563.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15904
+ before: _optionalChain([previousLive, 'optionalAccess', _561 => _561.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15955
15905
  after: Buffer.byteLength(graph.root.sourceCode, "utf8")
15956
15906
  },
15957
15907
  triggerMetadata: _nullishCoalesce(published.triggerMetadata, () => ( null)),
15958
15908
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15959
15909
  };
15960
15910
  if (options.jsonOutput) {
15961
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result2);
15911
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, result2);
15962
15912
  } else {
15963
15913
  printPublishReceipt({
15964
15914
  name: rootPlayName,
@@ -15989,14 +15939,14 @@ async function handlePlayPublish(args) {
15989
15939
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15990
15940
  latest: useLatest
15991
15941
  };
15992
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result2);
15942
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, result2);
15993
15943
  return 0;
15994
15944
  }
15995
15945
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
15996
15946
  if (useLatest) {
15997
15947
  const versions = await client.listPlayVersions(resolvedName);
15998
15948
  const latest = versions[0];
15999
- if (!_optionalChain([latest, 'optionalAccess', _564 => _564._id])) {
15949
+ if (!_optionalChain([latest, 'optionalAccess', _562 => _562._id])) {
16000
15950
  console.error(`No saved revisions found for ${resolvedName}.`);
16001
15951
  return 1;
16002
15952
  }
@@ -16013,7 +15963,7 @@ async function handlePlayPublish(args) {
16013
15963
  revisionId ? { revisionId } : {}
16014
15964
  );
16015
15965
  if (options.jsonOutput) {
16016
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
15966
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, result);
16017
15967
  } else {
16018
15968
  printPublishReceipt({
16019
15969
  name: result.name,
@@ -16053,7 +16003,7 @@ async function handlePlayDelete(args) {
16053
16003
  );
16054
16004
  return 2;
16055
16005
  }
16056
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
16006
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
16057
16007
  let detail;
16058
16008
  try {
16059
16009
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -16077,8 +16027,8 @@ async function handlePlayDelete(args) {
16077
16027
  name: resolvedName,
16078
16028
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
16079
16029
  };
16080
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
16081
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result2);
16030
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
16031
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, result2);
16082
16032
  } else {
16083
16033
  process.stdout.write(
16084
16034
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -16088,8 +16038,8 @@ async function handlePlayDelete(args) {
16088
16038
  return 0;
16089
16039
  }
16090
16040
  const result = await client.deletePlay(resolvedName);
16091
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
16092
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
16041
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
16042
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, result);
16093
16043
  return result.archived || result.alreadyArchived ? 0 : 4;
16094
16044
  }
16095
16045
  if (result.alreadyArchived) {
@@ -16128,13 +16078,13 @@ async function handlePlayRestore(args) {
16128
16078
  );
16129
16079
  return 2;
16130
16080
  }
16131
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
16081
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
16132
16082
  try {
16133
16083
  const result = await client.restorePlay(
16134
16084
  parseReferencedPlayTarget2(playName).playName
16135
16085
  );
16136
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
16137
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
16086
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
16087
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, result);
16138
16088
  return result.restored || result.alreadyActive ? 0 : 4;
16139
16089
  }
16140
16090
  if (result.alreadyActive) {
@@ -16247,21 +16197,21 @@ Common commands:
16247
16197
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16248
16198
  }
16249
16199
  };
16250
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, result2, {
16200
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, result2, {
16251
16201
  json: options.json,
16252
16202
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16253
16203
  `
16254
16204
  });
16255
16205
  return;
16256
16206
  }
16257
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
16207
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
16258
16208
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16259
16209
  throw new Error(
16260
16210
  "The submission belongs to a different API origin. Select its original host before recovery."
16261
16211
  );
16262
16212
  }
16263
16213
  const result = await client.startPlayRun(saved.request);
16264
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
16214
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
16265
16215
  { ...result },
16266
16216
  {
16267
16217
  json: options.json,
@@ -16297,7 +16247,7 @@ Examples:
16297
16247
  ).action(async (target, options) => {
16298
16248
  process.exitCode = await handlePlayCheck([
16299
16249
  target,
16300
- ..._chunkHRWUQJ4Kjs.jsonFieldArgs.call(void 0, options.json),
16250
+ ..._chunkDQ65ZVHNjs.jsonFieldArgs.call(void 0, options.json),
16301
16251
  ...options.full ? ["--full"] : []
16302
16252
  ]);
16303
16253
  });
@@ -16538,9 +16488,9 @@ Examples:
16538
16488
  const limit = Number(options.historyLimit);
16539
16489
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16540
16490
  throw new Error("--history-limit must be an integer from 1 to 30.");
16541
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
16491
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
16542
16492
  if (options.binding) {
16543
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0,
16493
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0,
16544
16494
  await client.getPlayTriggerHistory(options.binding, { limit })
16545
16495
  );
16546
16496
  return;
@@ -16548,7 +16498,7 @@ Examples:
16548
16498
  const result = await client.listPlayTriggerInventory({
16549
16499
  cursor: options.cursor
16550
16500
  });
16551
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
16501
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, {
16552
16502
  ...result,
16553
16503
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16554
16504
  });
@@ -16595,7 +16545,7 @@ Examples:
16595
16545
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16596
16546
  throw new Error("--group-by must be kind or trigger_source.");
16597
16547
  }
16598
- const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().getPlaysActivity({
16548
+ const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getPlaysActivity({
16599
16549
  timeZone: options.timeZone,
16600
16550
  days,
16601
16551
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16609,7 +16559,7 @@ Examples:
16609
16559
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16610
16560
  );
16611
16561
  }
16612
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
16562
+ _chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
16613
16563
  { ...result },
16614
16564
  {
16615
16565
  json: Boolean(options.json),
@@ -16638,7 +16588,7 @@ Examples:
16638
16588
  false
16639
16589
  );
16640
16590
  });
16641
- _chunkR4XZO6Z5js.registerDeprecatedSearchCommand.call(void 0,
16591
+ _chunkPSGEDGLTjs.registerDeprecatedSearchCommand.call(void 0,
16642
16592
  play,
16643
16593
  (options) => options.all ? ["plays"] : ["prebuilts"]
16644
16594
  );
@@ -16679,9 +16629,9 @@ Examples:
16679
16629
  "--json [fields]",
16680
16630
  "JSON output; optionally select comma-separated dotted paths"
16681
16631
  );
16682
- _chunkZMVJSS6Njs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16632
+ _chunkZAAKSJASjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16683
16633
  async (target, options) => {
16684
- const ownView = () => handlePlayDescribe(_chunkHRWUQJ4Kjs.describeArgs.call(void 0, target, options));
16634
+ const ownView = () => handlePlayDescribe(_chunkDQ65ZVHNjs.describeArgs.call(void 0, target, options));
16685
16635
  const [flagText] = [options.json].filter(
16686
16636
  (value) => typeof value === "string"
16687
16637
  );
@@ -16692,7 +16642,7 @@ Examples:
16692
16642
  process.exitCode = await ownView();
16693
16643
  return;
16694
16644
  }
16695
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-YKOE54ZO.js")));
16645
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-6WT74AOR.js")));
16696
16646
  process.exitCode = await describeAnything(
16697
16647
  name,
16698
16648
  {
@@ -16810,7 +16760,7 @@ Examples:
16810
16760
  deepline plays deployments <deployment-id>
16811
16761
  `
16812
16762
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16813
- async (id, options) => id ? _chunkK5T3EN6Djs.handleDeploymentGet.call(void 0, id, options) : _chunkK5T3EN6Djs.handleDeploymentsList.call(void 0, options)
16763
+ async (id, options) => id ? _chunkSO7RUVTYjs.handleDeploymentGet.call(void 0, id, options) : _chunkSO7RUVTYjs.handleDeploymentsList.call(void 0, options)
16814
16764
  );
16815
16765
  addPublishHelp(
16816
16766
  play.command("publish <target>").description(
@@ -16945,14 +16895,14 @@ Examples:
16945
16895
  const limit = Number(options.limit);
16946
16896
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
16947
16897
  throw new Error("--limit must be an integer from 1 to 1000.");
16948
- const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.rowHistory({
16898
+ const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().runs.rowHistory({
16949
16899
  playName: options.play,
16950
16900
  runId,
16951
16901
  tableNamespace: options.dataset,
16952
16902
  limit,
16953
16903
  cursor: options.cursor
16954
16904
  });
16955
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
16905
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, {
16956
16906
  ...result,
16957
16907
  ...result.nextCursor ? {
16958
16908
  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`
@@ -17017,7 +16967,7 @@ Examples:
17017
16967
  ).action(async (runId, options) => {
17018
16968
  process.exitCode = await handleRunGet([
17019
16969
  runId,
17020
- ..._chunkHRWUQJ4Kjs.jsonFieldArgs.call(void 0, options.json),
16970
+ ..._chunkDQ65ZVHNjs.jsonFieldArgs.call(void 0, options.json),
17021
16971
  ...options.webUrl ? ["--web-url"] : [],
17022
16972
  ...options.full ? ["--full"] : [],
17023
16973
  ...options.input ? ["--input"] : [],
@@ -17296,7 +17246,7 @@ Examples:
17296
17246
  ...options.allowEmpty ? ["--allow-empty"] : [],
17297
17247
  ...options.wait ? ["--wait"] : [],
17298
17248
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17299
- ..._chunkHRWUQJ4Kjs.jsonFieldArgs.call(void 0, options.json)
17249
+ ..._chunkDQ65ZVHNjs.jsonFieldArgs.call(void 0, options.json)
17300
17250
  ]);
17301
17251
  });
17302
17252
  const share = play.command("share").description(
@@ -17437,8 +17387,8 @@ function absolutePublicPlayUrl(path) {
17437
17387
  }
17438
17388
  function shareUrlFields(status) {
17439
17389
  return {
17440
- publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _565 => _565.share, 'optionalAccess', _566 => _566.publicPath])),
17441
- canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _567 => _567.share, 'optionalAccess', _568 => _568.canonicalPath]))
17390
+ publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _563 => _563.share, 'optionalAccess', _564 => _564.publicPath])),
17391
+ canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _565 => _565.share, 'optionalAccess', _566 => _566.canonicalPath]))
17442
17392
  };
17443
17393
  }
17444
17394
  function shareStatusForOutput(status) {
@@ -17462,10 +17412,10 @@ async function handlePlayShareStatus(args) {
17462
17412
  return 2;
17463
17413
  }
17464
17414
  const name = parseReferencedPlayTarget2(target).playName;
17465
- const status = await new (0, _chunk36ML3YKAjs.DeeplineClient)().getSharePage(name);
17415
+ const status = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getSharePage(name);
17466
17416
  const outputStatus = shareStatusForOutput(status);
17467
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17468
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, outputStatus);
17417
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
17418
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, outputStatus);
17469
17419
  return 0;
17470
17420
  }
17471
17421
  if (!outputStatus.share) {
@@ -17504,7 +17454,7 @@ async function handlePlaySharePublish(args) {
17504
17454
  return 2;
17505
17455
  }
17506
17456
  const name = parseReferencedPlayTarget2(target).playName;
17507
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
17457
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
17508
17458
  let revisionId = shareFlagValue(args, "--revision-id");
17509
17459
  let resolvedVersion;
17510
17460
  if (!revisionId) {
@@ -17535,8 +17485,8 @@ async function handlePlaySharePublish(args) {
17535
17485
  );
17536
17486
  if (!hasCompleted) {
17537
17487
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17538
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17539
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
17488
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
17489
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, {
17540
17490
  ok: false,
17541
17491
  code: "NO_SUCCESSFUL_RUN",
17542
17492
  message,
@@ -17560,8 +17510,8 @@ async function handlePlaySharePublish(args) {
17560
17510
  };
17561
17511
  if (args.includes("--dry-run")) {
17562
17512
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17563
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17564
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, plan);
17513
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
17514
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, plan);
17565
17515
  } else {
17566
17516
  console.log(
17567
17517
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17571,13 +17521,13 @@ async function handlePlaySharePublish(args) {
17571
17521
  }
17572
17522
  const status = await client.publishSharePage(name, request);
17573
17523
  const outputStatus = shareStatusForOutput(status);
17574
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17575
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, outputStatus);
17524
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
17525
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, outputStatus);
17576
17526
  return 0;
17577
17527
  }
17578
17528
  const urls = shareUrlFields(outputStatus);
17579
17529
  console.log(
17580
- `Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _569 => _569.share, 'optionalAccess', _570 => _570.publicPath]))), () => ( ""))}`
17530
+ `Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _567 => _567.share, 'optionalAccess', _568 => _568.publicPath]))), () => ( ""))}`
17581
17531
  );
17582
17532
  if (urls.canonicalUrl && urls.canonicalUrl !== urls.publicUrl) {
17583
17533
  console.log(`Version URL: ${urls.canonicalUrl}`);
@@ -17603,9 +17553,9 @@ async function handlePlayShareUpdate(args) {
17603
17553
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17604
17554
  ...seoIndexing ? { seoIndexing } : {}
17605
17555
  };
17606
- const status = await new (0, _chunk36ML3YKAjs.DeeplineClient)().updateSharePage(name, request);
17607
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17608
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, status);
17556
+ const status = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().updateSharePage(name, request);
17557
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
17558
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, status);
17609
17559
  return 0;
17610
17560
  }
17611
17561
  console.log(`Updated ${name} share settings.`);
@@ -17620,13 +17570,13 @@ async function handlePlayShareRegenerate(args) {
17620
17570
  return 2;
17621
17571
  }
17622
17572
  const name = parseReferencedPlayTarget2(target).playName;
17623
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
17573
+ const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
17624
17574
  let revisionId = shareFlagValue(args, "--revision-id");
17625
17575
  const versionFlag = shareFlagValue(args, "--version");
17626
17576
  if (!revisionId && versionFlag) {
17627
17577
  const versions = await client.listPlayVersions(name);
17628
17578
  const chosen = versions.find((r) => r.version === Number(versionFlag));
17629
- if (!_optionalChain([chosen, 'optionalAccess', _571 => _571._id])) {
17579
+ if (!_optionalChain([chosen, 'optionalAccess', _569 => _569._id])) {
17630
17580
  console.error(`Version ${versionFlag} not found for ${name}.`);
17631
17581
  return 4;
17632
17582
  }
@@ -17637,12 +17587,12 @@ async function handlePlayShareRegenerate(args) {
17637
17587
  revisionId ? { revisionId } : {}
17638
17588
  );
17639
17589
  const outputStatus = shareStatusForOutput(status);
17640
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17641
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, outputStatus);
17590
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
17591
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, outputStatus);
17642
17592
  return 0;
17643
17593
  }
17644
17594
  const urls = shareUrlFields(outputStatus);
17645
- const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _572 => _572.share, 'optionalAccess', _573 => _573.publishedRevisionId]) === revisionId;
17595
+ const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _570 => _570.share, 'optionalAccess', _571 => _571.publishedRevisionId]) === revisionId;
17646
17596
  console.log(
17647
17597
  `Regenerated public copy for ${name}${regeneratedPublishedRevision && urls.publicUrl ? `: ${urls.publicUrl}` : "."}`
17648
17598
  );
@@ -17663,9 +17613,9 @@ async function handlePlayShareUnpublish(args) {
17663
17613
  return 2;
17664
17614
  }
17665
17615
  const name = parseReferencedPlayTarget2(target).playName;
17666
- const status = await new (0, _chunk36ML3YKAjs.DeeplineClient)().unpublishSharePage(name);
17667
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17668
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, status);
17616
+ const status = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().unpublishSharePage(name);
17617
+ if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
17618
+ _chunkDQ65ZVHNjs.printCompactJson.call(void 0, status);
17669
17619
  return 0;
17670
17620
  }
17671
17621
  console.log(`Unpublished ${name}; the public page has been removed.`);
@@ -17736,7 +17686,4 @@ async function handlePlayShareUnpublish(args) {
17736
17686
 
17737
17687
 
17738
17688
 
17739
-
17740
-
17741
-
17742
- exports.resolveDatasetByName = resolveDatasetByName; exports.parsePlayRunHeaderFlag = parsePlayRunHeaderFlag; exports.parsePlayRunOptions = parsePlayRunOptions; exports.loadPlayBundler = loadPlayBundler; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.writePlayRunIdFile = writePlayRunIdFile; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.describeSleepUntil = describeSleepUntil; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.buildPlayDashboardUrl = buildPlayDashboardUrl; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.clampJsonPreviewText = clampJsonPreviewText; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.compactPlayStatus = compactPlayStatus; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.exportPlayStatusRows = exportPlayStatusRows; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayRun = handlePlayRun; exports.renderRunOverviewText = renderRunOverviewText; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunsRerun = handleRunsRerun; exports.handleRunsList = handleRunsList; exports.handleRunTail = handleRunTail; exports.handleRunLogs = handleRunLogs; exports.selectRunLogTailPage = selectRunLogTailPage; exports.handleRunEventSearch = handleRunEventSearch; exports.buildRunLogsText = buildRunLogsText; exports.resolveRunStopState = resolveRunStopState; exports.handleRunStop = handleRunStop; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.handleRunStopAll = handleRunStopAll; exports.handleRunExport = handleRunExport; exports.handlePlayGet = handlePlayGet; exports.handlePlayVersions = handlePlayVersions; exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.csvColumnLines = csvColumnLines; exports.describedPlay = describedPlay; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlaySave = handlePlaySave; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayRestore = handlePlayRestore; exports.registerPlayCommands = registerPlayCommands; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareUnpublish = handlePlayShareUnpublish;
17689
+ exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.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.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 = parsePlayRunHeaderFlag; exports.parsePlayRunOptions = parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writePlayRunIdFile = writePlayRunIdFile;