deepline 0.3.395 → 0.3.396

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 (107) 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/cli/{auth-NMQXZRS7.mjs → auth-3LTD62VL.mjs} +4 -4
  5. package/dist/cli/auth-562JPKOM.js +39 -0
  6. package/dist/cli/{billing-5MVXZRS6.mjs → billing-DP7ZAJBO.mjs} +5 -5
  7. package/dist/cli/{billing-Z4JTGUU3.js → billing-PA5OXEM5.js} +76 -76
  8. package/dist/cli/{chunk-BLYL3KOC.mjs → chunk-23GAA3YO.mjs} +1 -1
  9. package/dist/cli/{chunk-LZLBR2SF.js → chunk-2VOLOWYZ.js} +1087 -1056
  10. package/dist/cli/{chunk-EFLQHJZ6.mjs → chunk-3T4MCB5R.mjs} +1026 -995
  11. package/dist/cli/{chunk-VB6KECLU.mjs → chunk-5WNJF2T3.mjs} +102 -36
  12. package/dist/cli/{chunk-UKU6JM3S.js → chunk-772W2SAU.js} +8 -8
  13. package/dist/cli/{chunk-K5T3EN6D.js → chunk-7Z66NHUC.js} +26 -26
  14. package/dist/cli/{chunk-WCCKMLHL.mjs → chunk-AUYXWELC.mjs} +2 -2
  15. package/dist/cli/{chunk-PZ5BZ76S.js → chunk-AVHLATII.js} +50 -50
  16. package/dist/cli/{chunk-MYIBHORT.js → chunk-DC6LTULT.js} +2 -2
  17. package/dist/cli/{chunk-5VCZ3WRH.mjs → chunk-EIMG75BT.mjs} +1 -0
  18. package/dist/cli/{chunk-TO2MWPGR.js → chunk-GNN4MY5X.js} +1 -1
  19. package/dist/cli/{chunk-OCSG6X67.mjs → chunk-I4T4XAA2.mjs} +4 -4
  20. package/dist/cli/{chunk-ZWH2TFA7.mjs → chunk-JCN4DHF7.mjs} +2 -2
  21. package/dist/cli/{chunk-R4XZO6Z5.js → chunk-KAEZNPUM.js} +23 -8
  22. package/dist/cli/{chunk-DRM3CMHL.js → chunk-KXMNM4AQ.js} +2 -1
  23. package/dist/cli/{chunk-3TRY7KAC.mjs → chunk-LOGGNW4H.mjs} +2 -2
  24. package/dist/cli/{chunk-RDXFGPJU.js → chunk-LWERJUKN.js} +218 -218
  25. package/dist/cli/{chunk-UCXK2DS4.js → chunk-ME6XRFLY.js} +15 -15
  26. package/dist/cli/{chunk-G4IWGRMK.mjs → chunk-MR6XCBQJ.mjs} +2 -2
  27. package/dist/cli/{chunk-BON3DRC6.mjs → chunk-NHB5YUCS.mjs} +1 -1
  28. package/dist/cli/{chunk-ZMVJSS6N.js → chunk-NSOTASOP.js} +101 -35
  29. package/dist/cli/{chunk-7XAM7KDW.mjs → chunk-QHGPA362.mjs} +18 -3
  30. package/dist/cli/{chunk-VYLJJQ7Y.js → chunk-RMTASUAK.js} +65 -65
  31. package/dist/cli/{chunk-HRWUQJ4K.js → chunk-RTO5QZWT.js} +6 -6
  32. package/dist/cli/{chunk-7MVWUXOD.mjs → chunk-TLQ3FZOC.mjs} +3 -3
  33. package/dist/cli/{chunk-56IFFVIB.js → chunk-V7UP2F4U.js} +4 -4
  34. package/dist/cli/{chunk-6D7A2FSL.mjs → chunk-VE3U3SQC.mjs} +1 -1
  35. package/dist/cli/{chunk-36ML3YKA.js → chunk-WQJJNIMQ.js} +13 -13
  36. package/dist/cli/{chunk-47M6HPGP.mjs → chunk-XKZXO7D3.mjs} +1 -1
  37. package/dist/cli/{csv-SVOD5UBH.mjs → csv-RLRR74RQ.mjs} +3 -3
  38. package/dist/cli/{csv-HTS5ZYQ4.js → csv-TF576S77.js} +12 -12
  39. package/dist/cli/{db-7AP4P52N.js → db-FDBJUTFO.js} +30 -30
  40. package/dist/cli/{db-7QLNI3Q4.mjs → db-XORGNBIC.mjs} +5 -5
  41. package/dist/cli/{describe-DBRY5BNK.mjs → describe-6O2ENKTP.mjs} +86 -68
  42. package/dist/cli/{describe-YKOE54ZO.js → describe-EFWNECHI.js} +100 -82
  43. package/dist/cli/{executions-GRQXTB2P.js → executions-SFYAXPF4.js} +7 -7
  44. package/dist/cli/{executions-QNZTPNG4.mjs → executions-YPP7WR77.mjs} +5 -5
  45. package/dist/cli/{feedback-ZOLA2KY7.js → feedback-5UZFYMGB.js} +7 -7
  46. package/dist/cli/{feedback-JMCSR624.mjs → feedback-RBGA5ARU.mjs} +3 -3
  47. package/dist/cli/git-5LDY5ZID.js +23 -0
  48. package/dist/cli/{git-LJGL2IHS.mjs → git-IRSAJEK2.mjs} +4 -4
  49. package/dist/cli/index.js +94 -94
  50. package/dist/cli/index.mjs +38 -38
  51. package/dist/cli/{legacy-noops-YSCIR2SD.js → legacy-noops-CVAOQY2F.js} +7 -7
  52. package/dist/cli/{legacy-noops-F23PKVBN.mjs → legacy-noops-NA7N6ZOU.mjs} +4 -4
  53. package/dist/cli/{monitors-WMZ6HJZX.js → monitors-4OMRXCXP.js} +86 -86
  54. package/dist/cli/{monitors-S4LOEL7W.mjs → monitors-ILZ2XHYG.mjs} +5 -5
  55. package/dist/cli/{org-U3WA2NQM.mjs → org-QDDXAE3J.mjs} +5 -5
  56. package/dist/cli/{org-PFHM5ZLY.js → org-YGNJDD2X.js} +65 -65
  57. package/dist/cli/{chunk-4KLCLLTO.js → play-L535H26U.js} +266 -323
  58. package/dist/cli/{chunk-XMAPE2KH.mjs → play-VT6OHB2D.mjs} +72 -129
  59. package/dist/cli/{providers-XYMHLKCA.js → providers-GPZ6PQAL.js} +8 -8
  60. package/dist/cli/{providers-QBBRFBOH.mjs → providers-KG4W5MPK.mjs} +5 -5
  61. package/dist/cli/{quickstart-5JTDGISY.mjs → quickstart-2JDGTXIG.mjs} +3 -3
  62. package/dist/cli/{quickstart-IYGD6ZY3.js → quickstart-UI27S5LO.js} +5 -5
  63. package/dist/cli/search-MGWROZ33.js +28 -0
  64. package/dist/cli/{search-X6W6GRHS.mjs → search-PW3RAUX7.mjs} +6 -6
  65. package/dist/cli/{secrets-N55B67H6.mjs → secrets-HNOMK5A2.mjs} +5 -5
  66. package/dist/cli/{secrets-UHG6OQFD.js → secrets-WFAXOUZE.js} +14 -14
  67. package/dist/cli/{sessions-57L5MGHN.js → sessions-366KROUA.js} +5 -5
  68. package/dist/cli/{sessions-JTRSTDSS.mjs → sessions-XLX3E5UO.mjs} +4 -4
  69. package/dist/cli/{settings-ATX4U5AS.js → settings-GADAG2UK.js} +75 -75
  70. package/dist/cli/{settings-Q24HRAQI.mjs → settings-YNZ4YKCH.mjs} +8 -8
  71. package/dist/cli/{setup-77ZWLVHT.mjs → setup-PSEHIUXO.mjs} +6 -6
  72. package/dist/cli/{setup-EJCNOUCE.js → setup-R5YO7GT6.js} +41 -41
  73. package/dist/cli/skills-JF2LPEGM.js +28 -0
  74. package/dist/cli/{skills-XIS5AWQI.mjs → skills-LTQBP6CZ.mjs} +4 -4
  75. package/dist/cli/tools-CP2PEFRN.js +34 -0
  76. package/dist/cli/{tools-WCKLYEGQ.mjs → tools-UAXDWU63.mjs} +11 -19
  77. package/dist/cli/update-HZHZOU6C.js +28 -0
  78. package/dist/cli/{update-UT5WANMV.mjs → update-SMNIBIMS.mjs} +6 -6
  79. package/dist/cli/{workflow-226QYUN2.js → workflow-AOQVZHMD.js} +16 -16
  80. package/dist/cli/{workflow-ZMX3L4ML.mjs → workflow-IKGMBGF6.mjs} +6 -6
  81. package/dist/{client-CivP-PAI.d.ts → client-Bgis7F6-.d.ts} +2 -1
  82. package/dist/{client-hdFtwhTm.d.mts → client-DiGl8ska.d.mts} +2 -1
  83. package/dist/index.d.mts +2 -2
  84. package/dist/index.d.ts +2 -2
  85. package/dist/index.js +11 -11
  86. package/dist/index.mjs +9 -9
  87. package/dist/install-integrity.json +78 -80
  88. package/dist/plays/play-description.d.mts +1 -1
  89. package/dist/plays/play-description.d.ts +1 -1
  90. package/dist/plays/play-description.js +4 -2
  91. package/dist/plays/play-description.mjs +3 -1
  92. package/dist/plays/run-request.d.mts +1 -1
  93. package/dist/plays/run-request.d.ts +1 -1
  94. package/dist/release.d.mts +1 -1
  95. package/dist/release.d.ts +1 -1
  96. package/dist/release.js +2 -2
  97. package/dist/release.mjs +1 -1
  98. package/package.json +1 -1
  99. package/dist/cli/auth-UYCOBAL5.js +0 -39
  100. package/dist/cli/git-EJQLRK27.js +0 -23
  101. package/dist/cli/play-AGSECQFN.mjs +0 -159
  102. package/dist/cli/play-BR2LWGXK.js +0 -159
  103. package/dist/cli/search-ZVSYH5GY.js +0 -28
  104. package/dist/cli/skills-SPXUBLII.js +0 -28
  105. package/dist/cli/tools-DBHUUZJX.js +0 -42
  106. package/dist/cli/update-VSNFXRHJ.js +0 -28
  107. package/dist/cli/{chunk-KZZC33PY.mjs → chunk-H5KLUGY7.mjs} +214 -214
@@ -1,15 +1,15 @@
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');
5
4
 
5
+ var _chunkNSOTASOPjs = require('./chunk-NSOTASOP.js');
6
6
 
7
7
 
8
+ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
8
9
 
9
- var _chunkZMVJSS6Njs = require('./chunk-ZMVJSS6N.js');
10
10
 
11
11
 
12
- var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
12
+ var _chunk7Z66NHUCjs = require('./chunk-7Z66NHUC.js');
13
13
 
14
14
 
15
15
 
@@ -18,16 +18,18 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
18
18
 
19
19
 
20
20
  var _chunkMH73HMPVjs = require('./chunk-MH73HMPV.js');
21
+ require('./chunk-3KC45UVF.js');
21
22
 
22
23
 
23
24
  var _chunkGSK6NHVMjs = require('./chunk-GSK6NHVM.js');
24
25
 
25
26
 
26
- var _chunkR4XZO6Z5js = require('./chunk-R4XZO6Z5.js');
27
+ var _chunkKAEZNPUMjs = require('./chunk-KAEZNPUM.js');
27
28
 
28
29
 
29
30
 
30
31
  var _chunkGEJDBXXMjs = require('./chunk-GEJDBXXM.js');
32
+ require('./chunk-KB4SDX5S.js');
31
33
 
32
34
 
33
35
 
@@ -40,7 +42,8 @@ var _chunkGEJDBXXMjs = require('./chunk-GEJDBXXM.js');
40
42
 
41
43
 
42
44
 
43
- var _chunk36ML3YKAjs = require('./chunk-36ML3YKA.js');
45
+ var _chunkWQJJNIMQjs = require('./chunk-WQJJNIMQ.js');
46
+ require('./chunk-S6R3OX7B.js');
44
47
 
45
48
 
46
49
 
@@ -54,7 +57,8 @@ var _chunkUHNDVD3Pjs = require('./chunk-UHNDVD3P.js');
54
57
 
55
58
 
56
59
 
57
- var _chunkDRM3CMHLjs = require('./chunk-DRM3CMHL.js');
60
+ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
61
+ require('./chunk-XDVT3GOM.js');
58
62
 
59
63
 
60
64
 
@@ -77,13 +81,16 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
77
81
 
78
82
 
79
83
 
80
- var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
84
+ var _chunkRTO5QZWTjs = require('./chunk-RTO5QZWT.js');
81
85
 
82
86
 
83
- var _chunk56IFFVIBjs = require('./chunk-56IFFVIB.js');
87
+ var _chunkV7UP2F4Ujs = require('./chunk-V7UP2F4U.js');
88
+ require('./chunk-XNYIZMNQ.js');
84
89
 
85
90
 
86
91
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
92
+ require('./chunk-GNN4MY5X.js');
93
+ require('./chunk-OG64RBAC.js');
87
94
 
88
95
 
89
96
 
@@ -2064,7 +2071,7 @@ function resolveField(key, command) {
2064
2071
  function printSettings(result, json, name) {
2065
2072
  result = { ...result, settings: parsePlaySettings(result.settings) };
2066
2073
  const selected = fields.filter(([key]) => !name || key === name);
2067
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2074
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2068
2075
  {
2069
2076
  ...result,
2070
2077
  settings: Object.fromEntries(
@@ -2108,7 +2115,7 @@ function registerPlaySettingsCommands(plays) {
2108
2115
  valueSyntax: field.cli.valueSyntax,
2109
2116
  examples: field.cli.examples
2110
2117
  }));
2111
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2118
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2112
2119
  {
2113
2120
  fields: descriptions,
2114
2121
  render: {
@@ -2133,7 +2140,7 @@ function registerPlaySettingsCommands(plays) {
2133
2140
  async (options, command) => {
2134
2141
  if (options.name !== void 0) resolveField(options.name, command);
2135
2142
  printSettings(
2136
- await new (0, _chunk36ML3YKAjs.DeeplineClient)().getPlaySettings(options.play),
2143
+ await new (0, _chunkWQJJNIMQjs.DeeplineClient)().getPlaySettings(options.play),
2137
2144
  options.json,
2138
2145
  options.name
2139
2146
  );
@@ -2164,7 +2171,7 @@ function registerPlaySettingsCommands(plays) {
2164
2171
  );
2165
2172
  }
2166
2173
  if (options.dryRun) {
2167
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2174
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2168
2175
  {
2169
2176
  dryRun: true,
2170
2177
  play,
@@ -2185,7 +2192,7 @@ function registerPlaySettingsCommands(plays) {
2185
2192
  return;
2186
2193
  }
2187
2194
  printSettings(
2188
- await new (0, _chunk36ML3YKAjs.DeeplineClient)().updatePlaySettings(play, patch),
2195
+ await new (0, _chunkWQJJNIMQjs.DeeplineClient)().updatePlaySettings(play, patch),
2189
2196
  options.json
2190
2197
  );
2191
2198
  };
@@ -2211,13 +2218,13 @@ function registerPlaySettingsCommands(plays) {
2211
2218
  "--root must be person or team; --limit must be 1\u2013100.",
2212
2219
  { exitCode: 2 }
2213
2220
  );
2214
- const page = await new (0, _chunk36ML3YKAjs.DeeplineClient)().listPlaySettingsPaths({
2221
+ const page = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().listPlaySettingsPaths({
2215
2222
  root: options.root,
2216
2223
  limit,
2217
2224
  cursor: options.cursor
2218
2225
  });
2219
2226
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2220
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2227
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2221
2228
  {
2222
2229
  ...page,
2223
2230
  nextCommand,
@@ -2268,7 +2275,7 @@ function registerPlaySettingsCommands(plays) {
2268
2275
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2269
2276
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2270
2277
  };
2271
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
2278
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
2272
2279
  const paths = [];
2273
2280
  let cursor;
2274
2281
  do {
@@ -2330,7 +2337,7 @@ function registerPlaySettingsCommands(plays) {
2330
2337
  moved.push(move.playName);
2331
2338
  }
2332
2339
  }
2333
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2340
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2334
2341
  {
2335
2342
  dryRun: Boolean(options.dryRun),
2336
2343
  from: options.from,
@@ -2458,7 +2465,7 @@ function triggerLines(view) {
2458
2465
  return lines;
2459
2466
  }
2460
2467
  function printView(view, json) {
2461
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2468
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2462
2469
  {
2463
2470
  ...view,
2464
2471
  render: {
@@ -2471,7 +2478,7 @@ function printView(view, json) {
2471
2478
  );
2472
2479
  }
2473
2480
  function printResult(result, json) {
2474
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2481
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2475
2482
  {
2476
2483
  ...result,
2477
2484
  render: {
@@ -2501,7 +2508,7 @@ async function mutate(command, options, build) {
2501
2508
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2502
2509
  }
2503
2510
  if (options.dryRun) {
2504
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2511
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2505
2512
  {
2506
2513
  dryRun: true,
2507
2514
  play: options.play,
@@ -2520,7 +2527,7 @@ async function mutate(command, options, build) {
2520
2527
  return;
2521
2528
  }
2522
2529
  printResult(
2523
- await new (0, _chunk36ML3YKAjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2530
+ await new (0, _chunkWQJJNIMQjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2524
2531
  options.json
2525
2532
  );
2526
2533
  }
@@ -2553,7 +2560,7 @@ function registerPlayTriggerConfigCommands(plays) {
2553
2560
  }).addHelpText("after", help2);
2554
2561
  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
2562
  printView(
2556
- await new (0, _chunk36ML3YKAjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2563
+ await new (0, _chunkWQJJNIMQjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2557
2564
  options.json
2558
2565
  );
2559
2566
  });
@@ -2597,7 +2604,7 @@ function registerPlayTriggerConfigCommands(plays) {
2597
2604
  if (options.auth === void 0) {
2598
2605
  if (secrets.length || options.header || options.signaturePrefix)
2599
2606
  usage(setWebhook, "--secret/--header need --auth.");
2600
- const current = await new (0, _chunk36ML3YKAjs.DeeplineClient)().getPlayTriggerConfig(
2607
+ const current = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().getPlayTriggerConfig(
2601
2608
  options.play
2602
2609
  );
2603
2610
  return {
@@ -2674,7 +2681,7 @@ var KIND_DESCRIPTIONS = {
2674
2681
  "receipt.skipped": "Saved work result: skipped.",
2675
2682
  "runtime.event": "Other event."
2676
2683
  };
2677
- var RUN_LOGS_KIND_HELP = _chunk36ML3YKAjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2684
+ var RUN_LOGS_KIND_HELP = _chunkWQJJNIMQjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2678
2685
  kind,
2679
2686
  description: KIND_DESCRIPTIONS[kind]
2680
2687
  }));
@@ -2811,9 +2818,9 @@ function configureRunQueryCommandErrors(command, resource) {
2811
2818
  const args = program.args;
2812
2819
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2813
2820
  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), {
2821
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2822
+ _chunkRTO5QZWTjs.printJsonError.call(void 0,
2823
+ Object.assign(new (0, _chunkWQJJNIMQjs.RunEventQueryInputError)(error.message), {
2817
2824
  exitCode: 2,
2818
2825
  retryable: false
2819
2826
  })
@@ -2857,14 +2864,14 @@ function parseQuery(args, resource) {
2857
2864
  if (VALUE_FLAGS.has(flag)) {
2858
2865
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2859
2866
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2860
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2867
+ throw new (0, _chunkWQJJNIMQjs.RunEventQueryInputError)(
2861
2868
  `${flag} requires a value. Use ${flag} <value>.`
2862
2869
  );
2863
2870
  }
2864
2871
  if (flag === "--sum") sums.push(value);
2865
2872
  else {
2866
2873
  if (values[flag] !== void 0) {
2867
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2874
+ throw new (0, _chunkWQJJNIMQjs.RunEventQueryInputError)(
2868
2875
  `${flag} may only be supplied once.`
2869
2876
  );
2870
2877
  }
@@ -2878,12 +2885,12 @@ function parseQuery(args, resource) {
2878
2885
  }
2879
2886
  if (arg.startsWith("-")) {
2880
2887
  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)(
2888
+ throw new (0, _chunkWQJJNIMQjs.RunEventQueryInputError)(
2882
2889
  `Unsupported query flag ${flag}. ${correction}`
2883
2890
  );
2884
2891
  }
2885
2892
  if (runId !== void 0) {
2886
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2893
+ throw new (0, _chunkWQJJNIMQjs.RunEventQueryInputError)(
2887
2894
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2888
2895
  );
2889
2896
  }
@@ -2891,7 +2898,7 @@ function parseQuery(args, resource) {
2891
2898
  }
2892
2899
  if (switches.has("--fields")) {
2893
2900
  if (runId !== void 0) {
2894
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2901
+ throw new (0, _chunkWQJJNIMQjs.RunEventQueryInputError)(
2895
2902
  "--fields does not use a run ID. Omit the positional run ID."
2896
2903
  );
2897
2904
  }
@@ -2904,18 +2911,18 @@ function parseQuery(args, resource) {
2904
2911
  )
2905
2912
  ];
2906
2913
  if (incompatible.length) {
2907
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2914
+ throw new (0, _chunkWQJJNIMQjs.RunEventQueryInputError)(
2908
2915
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2909
2916
  );
2910
2917
  }
2911
2918
  }
2912
2919
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2913
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2920
+ throw new (0, _chunkWQJJNIMQjs.RunEventQueryInputError)(
2914
2921
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2915
2922
  );
2916
2923
  }
2917
2924
  if (sums.length && switches.has("--count")) {
2918
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2925
+ throw new (0, _chunkWQJJNIMQjs.RunEventQueryInputError)(
2919
2926
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2920
2927
  );
2921
2928
  }
@@ -2923,7 +2930,7 @@ function parseQuery(args, resource) {
2923
2930
  if (operation === "count") {
2924
2931
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2925
2932
  if (values[flag] !== void 0 || switches.has(flag)) {
2926
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2933
+ throw new (0, _chunkWQJJNIMQjs.RunEventQueryInputError)(
2927
2934
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2928
2935
  );
2929
2936
  }
@@ -2958,16 +2965,16 @@ function parseQuery(args, resource) {
2958
2965
  ];
2959
2966
  }
2960
2967
  }
2961
- const request = _chunk36ML3YKAjs.normalizeRunEventOperationRequest.call(void 0, body);
2968
+ const request = _chunkWQJJNIMQjs.normalizeRunEventOperationRequest.call(void 0, body);
2962
2969
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2963
2970
  const backend = values["--runtime-backend"];
2964
2971
  if (backend && backend !== "daytona" && backend !== "modal") {
2965
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2972
+ throw new (0, _chunkWQJJNIMQjs.RunEventQueryInputError)(
2966
2973
  "--runtime-backend must be daytona or modal."
2967
2974
  );
2968
2975
  }
2969
2976
  if (backend && !namespace) {
2970
- throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2977
+ throw new (0, _chunkWQJJNIMQjs.RunEventQueryInputError)(
2971
2978
  "--runtime-backend requires --runtime-namespace."
2972
2979
  );
2973
2980
  }
@@ -3014,12 +3021,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3014
3021
  const failure = error instanceof Error ? error : new Error(String(error));
3015
3022
  const record3 = failure;
3016
3023
  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;
3024
+ const exitCode = error instanceof _chunkWQJJNIMQjs.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
3025
  const diagnostic = Object.assign(failure, {
3019
3026
  exitCode,
3020
3027
  retryable: exitCode === 5
3021
3028
  });
3022
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) _chunkHRWUQJ4Kjs.printJsonError.call(void 0, diagnostic);
3029
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) _chunkRTO5QZWTjs.printJsonError.call(void 0, diagnostic);
3023
3030
  else console.error(`Error: ${diagnostic.message}`);
3024
3031
  return exitCode;
3025
3032
  }
@@ -3034,7 +3041,7 @@ async function executeRunEventQuery(args, resource) {
3034
3041
  ...criteria
3035
3042
  } = request;
3036
3043
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3037
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
3044
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
3038
3045
  let result;
3039
3046
  if (request.operation === "fields") {
3040
3047
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3100,13 +3107,13 @@ async function executeRunEventQuery(args, resource) {
3100
3107
  lines.push(`Next page: ${nextPage}`);
3101
3108
  }
3102
3109
  }
3103
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
3110
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
3104
3111
  {
3105
3112
  ...result,
3106
3113
  ...nextPage ? { next: { page: nextPage } } : {},
3107
3114
  render: { sections: [{ title: `run ${resource}`, lines }] }
3108
3115
  },
3109
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3116
+ { json: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3110
3117
  ` }
3111
3118
  );
3112
3119
  return 0;
@@ -3926,7 +3933,7 @@ function checkedRunExample(plays, target) {
3926
3933
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3927
3934
  const base = `deepline plays run --file ${quote(target)}`;
3928
3935
  return {
3929
- command: `${base}${_chunkDRM3CMHLjs.playInputExampleArgs.call(void 0, schema)}`,
3936
+ command: `${base}${_chunkKXMNM4AQjs.playInputExampleArgs.call(void 0, schema)}`,
3930
3937
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema."
3931
3938
  };
3932
3939
  }
@@ -4024,7 +4031,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4024
4031
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4025
4032
  );
4026
4033
  }
4027
- const response = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.getReceipts(runId, {
4034
+ const response = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().runs.getReceipts(runId, {
4028
4035
  keys
4029
4036
  });
4030
4037
  const failed = response.receipts.filter(
@@ -4036,7 +4043,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4036
4043
  JSON.stringify(response, null, 2) + "\n",
4037
4044
  { flag: "wx", mode: 384 }
4038
4045
  );
4039
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
4046
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
4040
4047
  {
4041
4048
  runId,
4042
4049
  out: options.out,
@@ -4046,7 +4053,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4046
4053
  { json: true }
4047
4054
  );
4048
4055
  } else {
4049
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4056
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4050
4057
  }
4051
4058
  if (failed)
4052
4059
  process.exitCode = response.receipts.some(
@@ -4085,7 +4092,7 @@ includes nextCommand when another page is available.
4085
4092
  { exitCode: 2 }
4086
4093
  );
4087
4094
  }
4088
- const page = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.children(parentRunId, {
4095
+ const page = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().runs.children(parentRunId, {
4089
4096
  launchKey: options.launchKey,
4090
4097
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4091
4098
  limit
@@ -4100,7 +4107,7 @@ includes nextCommand when another page is available.
4100
4107
  "--limit",
4101
4108
  String(limit)
4102
4109
  ].join(" ") : null;
4103
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
4110
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
4104
4111
  {
4105
4112
  parentRunId,
4106
4113
  launchKey: options.launchKey,
@@ -4136,7 +4143,7 @@ async function handleRunsHistory(options) {
4136
4143
  throw new Error("--limit must be a positive integer.");
4137
4144
  }
4138
4145
  }
4139
- const page = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.history({
4146
+ const page = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().runs.history({
4140
4147
  cursor: options.cursor,
4141
4148
  orgId: options.org,
4142
4149
  search: options.search,
@@ -4152,7 +4159,7 @@ async function handleRunsHistory(options) {
4152
4159
  );
4153
4160
  }
4154
4161
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4155
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
4162
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
4156
4163
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4157
4164
  options.json ? { json: true } : {}
4158
4165
  );
@@ -4204,12 +4211,12 @@ async function runRunsRerunCommand(runId, options) {
4204
4211
  return 1;
4205
4212
  }
4206
4213
  }
4207
- const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.rerun(runId, {
4214
+ const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().runs.rerun(runId, {
4208
4215
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4209
4216
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4210
4217
  });
4211
- if (_chunkHRWUQJ4Kjs.shouldEmitJson.call(void 0, options.json)) {
4212
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, result, { json: true });
4218
+ if (_chunkRTO5QZWTjs.shouldEmitJson.call(void 0, options.json)) {
4219
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, result, { json: true });
4213
4220
  } else {
4214
4221
  console.log(
4215
4222
  result.deduplicated === true ? `
@@ -4477,7 +4484,7 @@ function projectRunDatasetCell(value) {
4477
4484
  const logicalValue = parseSerializedDatasetValue(value);
4478
4485
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
4479
4486
  if (typeof logicalValue === "object") {
4480
- return _chunkHRWUQJ4Kjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4487
+ return _chunkRTO5QZWTjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4481
4488
  }
4482
4489
  return logicalValue;
4483
4490
  }
@@ -6904,7 +6911,7 @@ function renderOutcome(outcome) {
6904
6911
  function printResult2(input) {
6905
6912
  const failed = input.status === "failed" || input.status === "cancelled";
6906
6913
  if (failed) process.exitCode = 1;
6907
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
6914
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
6908
6915
  {
6909
6916
  deployment: { ...input.deployment, status: input.status },
6910
6917
  plays: input.outcomes,
@@ -6929,7 +6936,7 @@ async function handlePlaysDeploy(directory, options) {
6929
6936
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6930
6937
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6931
6938
  });
6932
- const { http, config } = _chunkHRWUQJ4Kjs.getAuthedHttpClient.call(void 0, );
6939
+ const { http, config } = _chunkRTO5QZWTjs.getAuthedHttpClient.call(void 0, );
6933
6940
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6934
6941
  const startDeployment = () => http.post("/api/v2/deployments", {
6935
6942
  deliveryId,
@@ -6956,7 +6963,7 @@ async function handlePlaysDeploy(directory, options) {
6956
6963
  },
6957
6964
  {
6958
6965
  bundle: bundleDeployPlayFile,
6959
- fetchImpl: _chunk56IFFVIBjs.fetchWithDeploymentProtection,
6966
+ fetchImpl: _chunkV7UP2F4Ujs.fetchWithDeploymentProtection,
6960
6967
  // The plays are already here: "opening" the source is naming it.
6961
6968
  openSource: async () => ({
6962
6969
  open: async () => ({ repoRoot: root })
@@ -7524,7 +7531,7 @@ function parseInputFlagValue(raw) {
7524
7531
  return raw;
7525
7532
  }
7526
7533
  function parsePlayRunOptions(args, initialInput = null) {
7527
- const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0, args, "run");
7534
+ const selection = _chunkRTO5QZWTjs.parseJsonFields.call(void 0, args, "run");
7528
7535
  args = selection.args;
7529
7536
  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
7537
  let filePath = null;
@@ -7536,7 +7543,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7536
7543
  let revisionSelector = null;
7537
7544
  const watch = !args.includes("--no-wait");
7538
7545
  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);
7546
+ let jsonOutput = dryRun ? _chunkRTO5QZWTjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkRTO5QZWTjs.argsWantJson.call(void 0, args);
7540
7547
  const fullJson = args.includes("--full");
7541
7548
  const force = args.includes("--force");
7542
7549
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -7599,7 +7606,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7599
7606
  "--log-level requires one of: debug, info, warn, error."
7600
7607
  );
7601
7608
  }
7602
- const parsed = _chunk36ML3YKAjs.parseLogLevel.call(void 0, value);
7609
+ const parsed = _chunkWQJJNIMQjs.parseLogLevel.call(void 0, value);
7603
7610
  if (!parsed) {
7604
7611
  throw new Error(
7605
7612
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -7917,7 +7924,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7917
7924
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
7918
7925
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
7919
7926
  );
7920
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk36ML3YKAjs.parseLogLevel.call(void 0, options.logLevel);
7927
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkWQJJNIMQjs.parseLogLevel.call(void 0, options.logLevel);
7921
7928
  if (!logLevel)
7922
7929
  throw new Error("--log-level requires one of: debug, info, warn, error.");
7923
7930
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -7931,13 +7938,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7931
7938
  if (debugAlias || debugMapLatency && logLevel === "info")
7932
7939
  logLevel = "debug";
7933
7940
  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)],
7941
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkRTO5QZWTjs.parseJsonFields.call(void 0,
7942
+ [...fullJson ? ["--full"] : [], ..._chunkRTO5QZWTjs.jsonFieldArgs.call(void 0, options.json)],
7936
7943
  "run"
7937
7944
  ).fields;
7938
7945
  const watch = options.wait === false ? false : base.watch;
7939
7946
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
7940
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, []) : explicitJson;
7947
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkRTO5QZWTjs.argsWantJson.call(void 0, []) : explicitJson;
7941
7948
  const verboseLogs = Boolean(
7942
7949
  debugAlias || logLevel === "debug" || debugMapLatency
7943
7950
  );
@@ -7984,7 +7991,7 @@ function playAuthoringGraphPath(parent, filePath) {
7984
7991
  // src/cli/renderers/local-play-execution.ts
7985
7992
  function renderLocalPlayExecutionPlan(plan, options = {}) {
7986
7993
  if (options.dryRun) {
7987
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7994
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7988
7995
  return;
7989
7996
  }
7990
7997
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -8948,7 +8955,7 @@ function playStatusErrorText(status) {
8948
8955
  function isRetryablePendingStartFailure(status) {
8949
8956
  if (status.status !== "failed") return false;
8950
8957
  if (status.runId && status.runId !== "pending") return false;
8951
- return _chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8958
+ return _chunkWQJJNIMQjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8952
8959
  }
8953
8960
  function pendingStartFailureStatus(input) {
8954
8961
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -8975,13 +8982,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
8975
8982
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
8976
8983
  function watchSurfaceReaches(state, provenance, level) {
8977
8984
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
8978
- if (!_chunk36ML3YKAjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8985
+ if (!_chunkWQJJNIMQjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8979
8986
  return false;
8980
8987
  }
8981
- if (_chunk36ML3YKAjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8988
+ if (_chunkWQJJNIMQjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8982
8989
  return true;
8983
8990
  }
8984
- return state.verbose === true && _chunk36ML3YKAjs.logProvenanceReaches.call(void 0, provenance, "debug");
8991
+ return state.verbose === true && _chunkWQJJNIMQjs.logProvenanceReaches.call(void 0, provenance, "debug");
8985
8992
  }
8986
8993
  function getEventPayload(event) {
8987
8994
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -9476,11 +9483,6 @@ function printPlayStatusHeartbeat(input) {
9476
9483
  input.state.lastStatusHeartbeatAt = now;
9477
9484
  input.progress.writeLine(line);
9478
9485
  }
9479
- function buildPlayDashboardUrl(baseUrl, playName) {
9480
- const trimmedBase = baseUrl.replace(/\/$/, "");
9481
- const encodedPlayName = encodeURIComponent(playName);
9482
- return `${trimmedBase}/dashboard/plays/${encodedPlayName}`;
9483
- }
9484
9486
  function resolveRunPlayName(status, runId) {
9485
9487
  const packaged = _optionalChain([status, 'access', _301 => _301.package, 'optionalAccess', _302 => _302.run, 'optionalAccess', _303 => _303.playName]);
9486
9488
  if (typeof packaged === "string" && packaged.trim()) return packaged.trim();
@@ -9488,7 +9490,7 @@ function resolveRunPlayName(status, runId) {
9488
9490
  }
9489
9491
  function openPlayDashboard(dashboardUrl, open2) {
9490
9492
  if (open2 && dashboardUrl) {
9491
- _chunkHRWUQJ4Kjs.openInBrowser.call(void 0, dashboardUrl);
9493
+ _chunkRTO5QZWTjs.openInBrowser.call(void 0, dashboardUrl);
9492
9494
  }
9493
9495
  }
9494
9496
  function printPlayLogLines(input) {
@@ -9550,7 +9552,7 @@ async function waitForPlayCompletionByWatch(input) {
9550
9552
  billing: false
9551
9553
  });
9552
9554
  } catch (error) {
9553
- if (_chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9555
+ if (_chunkWQJJNIMQjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9554
9556
  return null;
9555
9557
  }
9556
9558
  throw error;
@@ -9705,7 +9707,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9705
9707
  }
9706
9708
  async function startAndWaitForPlayCompletionByStreamOnce(input) {
9707
9709
  const startedAt = Date.now();
9708
- const dashboardUrl = buildPlayDashboardUrl(
9710
+ const dashboardUrl = _chunkNSOTASOPjs.buildPlayDashboardUrl.call(void 0,
9709
9711
  input.client.baseUrl,
9710
9712
  input.playName
9711
9713
  );
@@ -9748,7 +9750,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9748
9750
  billing: false
9749
9751
  });
9750
9752
  } catch (error) {
9751
- if (_chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, error)) {
9753
+ if (_chunkWQJJNIMQjs.isTransientPlayRunReadError.call(void 0, error)) {
9752
9754
  return null;
9753
9755
  }
9754
9756
  throw error;
@@ -9956,7 +9958,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9956
9958
  lastPhase
9957
9959
  });
9958
9960
  }
9959
- if (lastKnownWorkflowId && _chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, error)) {
9961
+ if (lastKnownWorkflowId && _chunkWQJJNIMQjs.isTransientPlayRunReadError.call(void 0, error)) {
9960
9962
  if (timeout) {
9961
9963
  clearTimeout(timeout);
9962
9964
  }
@@ -9992,7 +9994,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9992
9994
  onRunAdmitted: confirmAdmission
9993
9995
  });
9994
9996
  }
9995
- if (!lastKnownWorkflowId && _chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, error)) {
9997
+ if (!lastKnownWorkflowId && _chunkWQJJNIMQjs.isTransientPlayRunReadError.call(void 0, error)) {
9996
9998
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
9997
9999
  phase: "cli.play_start_stream_transient_failure",
9998
10000
  ms: Date.now() - startedAt,
@@ -10091,7 +10093,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10091
10093
  "logs"
10092
10094
  ]);
10093
10095
  function formatPlayLogLine(rawLine, state) {
10094
- const classified = _chunk36ML3YKAjs.classifyLogLine.call(void 0, rawLine);
10096
+ const classified = _chunkWQJJNIMQjs.classifyLogLine.call(void 0, rawLine);
10095
10097
  const line = classified.line;
10096
10098
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10097
10099
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _317 => _317[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10106,14 +10108,14 @@ function formatPlayLogLine(rawLine, state) {
10106
10108
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10107
10109
  const providerWait = formatProviderCapacityWaitLogLine(line);
10108
10110
  if (providerWait && !state.verbose) {
10109
- return _chunk36ML3YKAjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10111
+ return _chunkWQJJNIMQjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10110
10112
  }
10111
10113
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10112
10114
  if (mapProgress && !state.verbose) {
10113
- return _chunk36ML3YKAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10115
+ return _chunkWQJJNIMQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10114
10116
  }
10115
10117
  if (/\[worker\] picked up run\b/.test(message)) {
10116
- if (!_chunk36ML3YKAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10118
+ if (!_chunkWQJJNIMQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10117
10119
  return null;
10118
10120
  }
10119
10121
  if (state.emittedRunnerStarted) {
@@ -10126,7 +10128,7 @@ function formatPlayLogLine(rawLine, state) {
10126
10128
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10127
10129
  );
10128
10130
  if (mapStart) {
10129
- if (!_chunk36ML3YKAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10131
+ if (!_chunkWQJJNIMQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10130
10132
  return null;
10131
10133
  }
10132
10134
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10136,7 +10138,7 @@ function formatPlayLogLine(rawLine, state) {
10136
10138
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10137
10139
  );
10138
10140
  if (mapDone) {
10139
- if (!_chunk36ML3YKAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10141
+ if (!_chunkWQJJNIMQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10140
10142
  return null;
10141
10143
  }
10142
10144
  const [, results, executed, cached] = mapDone;
@@ -11423,7 +11425,7 @@ function formatRecentRunLogLines(value) {
11423
11425
  (line) => typeof line === "string"
11424
11426
  );
11425
11427
  if (tail.length === 0) return [];
11426
- const shown = tail.map((line) => _chunk36ML3YKAjs.classifyLogLine.call(void 0, line)).filter(
11428
+ const shown = tail.map((line) => _chunkWQJJNIMQjs.classifyLogLine.call(void 0, line)).filter(
11427
11429
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
11428
11430
  ).slice(-8);
11429
11431
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11702,11 +11704,11 @@ function buildPlayCompletionTextLines(status) {
11702
11704
  }
11703
11705
  function writePlayResult(status, jsonOutput, options) {
11704
11706
  const packaged = getPlayRunPackage(status);
11705
- if (status.package) _chunkZMVJSS6Njs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11707
+ if (status.package) _chunkNSOTASOPjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11706
11708
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _398 => _398.hits]), () => ( null));
11707
11709
  if (jsonOutput) {
11708
11710
  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,
11711
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
11710
11712
  hits ? { ...payload2, hits } : payload2,
11711
11713
  { json: true, fields: _optionalChain([options, 'optionalAccess', _400 => _400.jsonFields]) }
11712
11714
  );
@@ -11722,7 +11724,7 @@ function writePlayResult(status, jsonOutput, options) {
11722
11724
  ...buildPlayCompletionTextLines(status),
11723
11725
  ...formatRunHitsLines(hits)
11724
11726
  ];
11725
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, displayPackage, {
11727
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, displayPackage, {
11726
11728
  json: false,
11727
11729
  text: `${lines2.join("\n")}
11728
11730
  `
@@ -11773,7 +11775,7 @@ function writePlayResult(status, jsonOutput, options) {
11773
11775
  lines.push(...buildBillingRollupTextLines(status));
11774
11776
  const compact = compactPlayStatus(status);
11775
11777
  const payload = _optionalChain([options, 'optionalAccess', _402 => _402.fullJson]) ? status : compact;
11776
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
11778
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
11777
11779
  {
11778
11780
  ...payload,
11779
11781
  render: {
@@ -12530,7 +12532,7 @@ function renderServerResultView(value) {
12530
12532
  function writeStartedPlayRun(input) {
12531
12533
  if (input.package && isPlayRunPackageValue(input.package)) {
12532
12534
  const run = input.package.run;
12533
- _chunkZMVJSS6Njs.recordPlayTermination.call(void 0, {
12535
+ _chunkNSOTASOPjs.recordPlayTermination.call(void 0, {
12534
12536
  id: run.id,
12535
12537
  status: run.status,
12536
12538
  finishedAt: run.finishedAt
@@ -12543,7 +12545,7 @@ function writeStartedPlayRun(input) {
12543
12545
  dashboardUrl: input.dashboardUrl,
12544
12546
  package: input.package
12545
12547
  };
12546
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12548
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12547
12549
  json: true,
12548
12550
  fields: input.jsonFields
12549
12551
  });
@@ -12565,7 +12567,7 @@ function writeStartedPlayRun(input) {
12565
12567
  input.progress.writeLine(output2, process.stdout);
12566
12568
  return;
12567
12569
  }
12568
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, input.package, {
12570
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, input.package, {
12569
12571
  json: false,
12570
12572
  text: `${output2}
12571
12573
  `
@@ -12594,7 +12596,7 @@ function writeStartedPlayRun(input) {
12594
12596
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12595
12597
  ];
12596
12598
  if (input.jsonOutput) {
12597
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12599
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12598
12600
  return;
12599
12601
  }
12600
12602
  if (input.dashboardUrl) {
@@ -12605,7 +12607,7 @@ function writeStartedPlayRun(input) {
12605
12607
  input.progress.writeLine(output, process.stdout);
12606
12608
  return;
12607
12609
  }
12608
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
12610
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
12609
12611
  {
12610
12612
  ...payload,
12611
12613
  render: { sections: [{ title: "play run", lines }] }
@@ -12615,7 +12617,7 @@ function writeStartedPlayRun(input) {
12615
12617
  );
12616
12618
  }
12617
12619
  function parsePlayCheckOptions(args) {
12618
- const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0, args, "check");
12620
+ const selection = _chunkRTO5QZWTjs.parseJsonFields.call(void 0, args, "check");
12619
12621
  args = selection.args;
12620
12622
  const target = args[0];
12621
12623
  if (!target || target.startsWith("-")) {
@@ -12627,7 +12629,7 @@ function parsePlayCheckOptions(args) {
12627
12629
  if (arg !== "--json" && arg !== "--full")
12628
12630
  throw new Error(`Unknown plays check option: ${arg}`);
12629
12631
  }
12630
- const jsonOutput = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
12632
+ const jsonOutput = _chunkRTO5QZWTjs.argsWantJson.call(void 0, args);
12631
12633
  return {
12632
12634
  target,
12633
12635
  jsonOutput,
@@ -12703,7 +12705,7 @@ ${PLAY_PUBLISH_USAGE}`
12703
12705
  useLatest,
12704
12706
  expectedArtifactHash,
12705
12707
  dryRun,
12706
- jsonOutput: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)
12708
+ jsonOutput: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args)
12707
12709
  };
12708
12710
  }
12709
12711
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12744,7 +12746,7 @@ ${PLAY_SAVE_USAGE}`);
12744
12746
  target,
12745
12747
  expectedArtifactHash,
12746
12748
  dryRun,
12747
- jsonOutput: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)
12749
+ jsonOutput: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args)
12748
12750
  };
12749
12751
  }
12750
12752
  function printScheduledPlayCapacity(capacity) {
@@ -12955,7 +12957,7 @@ function printBundledRuntimeWarning(bundle) {
12955
12957
  async function handlePlayCheck(args) {
12956
12958
  const options = parsePlayCheckOptions(args);
12957
12959
  if (!isFileTarget2(options.target)) {
12958
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
12960
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
12959
12961
  try {
12960
12962
  await assertCanonicalNamedPlayReference(client, options.target, {
12961
12963
  command: "check"
@@ -12984,7 +12986,7 @@ async function handlePlayCheck(args) {
12984
12986
  },
12985
12987
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12986
12988
  };
12987
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, result, {
12989
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, result, {
12988
12990
  json: options.jsonOutput,
12989
12991
  fields: options.jsonFields,
12990
12992
  text: renderPlayCheckOutput(result) + "\n"
@@ -12994,7 +12996,7 @@ async function handlePlayCheck(args) {
12994
12996
  const resolved = _path.resolve.call(void 0, options.target);
12995
12997
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12996
12998
  if (options.jsonOutput) {
12997
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
12999
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
12998
13000
  {
12999
13001
  kind: "play_check",
13000
13002
  checked: "named_contract",
@@ -13036,7 +13038,7 @@ async function handlePlayCheck(args) {
13036
13038
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
13037
13039
  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
13040
  });
13039
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, output, {
13041
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, output, {
13040
13042
  json: options.jsonOutput,
13041
13043
  fields: options.jsonFields,
13042
13044
  text: renderPlayCheckOutput(output) + "\n"
@@ -13090,7 +13092,7 @@ async function checkOneExportedPlay(input) {
13090
13092
  }
13091
13093
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
13092
13094
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
13093
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
13095
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
13094
13096
  const integrationMode = resolveEvalIntegrationMode();
13095
13097
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
13096
13098
  playName: node.playName,
@@ -13167,7 +13169,7 @@ async function handleFileBackedRun(options, hooks) {
13167
13169
  );
13168
13170
  return 0;
13169
13171
  }
13170
- client = new (0, _chunk36ML3YKAjs.DeeplineClient)(playRunClientOptions(options));
13172
+ client = new (0, _chunkWQJJNIMQjs.DeeplineClient)(playRunClientOptions(options));
13171
13173
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
13172
13174
  if (canDeferCompilerManifest) {
13173
13175
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
@@ -13328,7 +13330,7 @@ async function handleFileBackedRun(options, hooks) {
13328
13330
  );
13329
13331
  await _optionalChain([hooks, 'optionalAccess', _462 => _462.onRunStarted, 'optionalCall', _463 => _463(started.workflowId)]);
13330
13332
  await _optionalChain([hooks, 'optionalAccess', _464 => _464.onRunAdmitted, 'optionalCall', _465 => _465(started.workflowId)]);
13331
- const resolvedDashboardUrl = buildPlayDashboardUrl(client.baseUrl, playName);
13333
+ const resolvedDashboardUrl = _chunkNSOTASOPjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
13332
13334
  openPlayDashboard(resolvedDashboardUrl, options.open);
13333
13335
  progress.phase("started run");
13334
13336
  progress.complete();
@@ -13366,7 +13368,7 @@ async function handleNamedRun(options, hooks) {
13366
13368
  if (options.target.kind !== "name") {
13367
13369
  throw new Error("Expected a named play run target.");
13368
13370
  }
13369
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)(playRunClientOptions(options));
13371
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)(playRunClientOptions(options));
13370
13372
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
13371
13373
  const playName = options.target.name;
13372
13374
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -13525,7 +13527,7 @@ async function handleNamedRun(options, hooks) {
13525
13527
  );
13526
13528
  await _optionalChain([hooks, 'optionalAccess', _473 => _473.onRunStarted, 'optionalCall', _474 => _474(started.workflowId)]);
13527
13529
  await _optionalChain([hooks, 'optionalAccess', _475 => _475.onRunAdmitted, 'optionalCall', _476 => _476(started.workflowId)]);
13528
- const resolvedDashboardUrl = buildPlayDashboardUrl(client.baseUrl, playName);
13530
+ const resolvedDashboardUrl = _chunkNSOTASOPjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
13529
13531
  openPlayDashboard(resolvedDashboardUrl, options.open);
13530
13532
  progress.phase("started run");
13531
13533
  progress.complete();
@@ -13563,7 +13565,7 @@ async function handlePlayRun(args, hooks) {
13563
13565
  JSON.stringify({
13564
13566
  version: 1,
13565
13567
  admissionState: "submitted_unknown",
13566
- baseUrl: new (0, _chunk36ML3YKAjs.DeeplineClient)().baseUrl,
13568
+ baseUrl: new (0, _chunkWQJJNIMQjs.DeeplineClient)().baseUrl,
13567
13569
  ...intent
13568
13570
  })
13569
13571
  );
@@ -13792,10 +13794,10 @@ function renderRunOverviewText(overview, extras = {}) {
13792
13794
  );
13793
13795
  return `${lines.join("\n")}
13794
13796
 
13795
- ${_chunkHRWUQJ4Kjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13797
+ ${_chunkRTO5QZWTjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13796
13798
  }
13797
13799
  async function handleRunGet(args) {
13798
- const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0,
13800
+ const selection = _chunkRTO5QZWTjs.parseJsonFields.call(void 0,
13799
13801
  args,
13800
13802
  args.includes("--config") ? "config" : "get"
13801
13803
  );
@@ -13808,7 +13810,7 @@ async function handleRunGet(args) {
13808
13810
  console.error(error instanceof Error ? error.message : usage2);
13809
13811
  return 1;
13810
13812
  }
13811
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
13813
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
13812
13814
  if (args.includes("--web-url")) {
13813
13815
  const status2 = await client.runs.get(runId, { full: false });
13814
13816
  const playName2 = resolveRunPlayName(status2, runId);
@@ -13816,8 +13818,8 @@ async function handleRunGet(args) {
13816
13818
  console.error(`Run ${runId} does not name its play; no play page URL.`);
13817
13819
  return 1;
13818
13820
  }
13819
- const dashboardUrl2 = buildPlayDashboardUrl(client.baseUrl, playName2);
13820
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13821
+ const dashboardUrl2 = _chunkNSOTASOPjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
13822
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
13821
13823
  { dashboardUrl: dashboardUrl2 },
13822
13824
  { json: args.includes("--json"), text: `${dashboardUrl2}
13823
13825
  ` }
@@ -13837,7 +13839,7 @@ async function handleRunGet(args) {
13837
13839
  "This server does not support recorded configuration reads."
13838
13840
  );
13839
13841
  }
13840
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13842
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
13841
13843
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13842
13844
  { json: true, fields: selection.fields }
13843
13845
  );
@@ -13845,7 +13847,7 @@ async function handleRunGet(args) {
13845
13847
  }
13846
13848
  if (args.includes("--input")) {
13847
13849
  const input = await client.getRunInput(runId);
13848
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, input, { json: true });
13850
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, input, { json: true });
13849
13851
  return 0;
13850
13852
  }
13851
13853
  const full = args.includes("--full");
@@ -13853,16 +13855,16 @@ async function handleRunGet(args) {
13853
13855
  full: false,
13854
13856
  failedLogs: args.includes("--log-failed")
13855
13857
  });
13856
- if (status.package) _chunkZMVJSS6Njs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13858
+ if (status.package) _chunkNSOTASOPjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13857
13859
  if (!status.package) {
13858
13860
  const legacyStatus = full ? await client.runs.get(runId, {
13859
13861
  full: true,
13860
13862
  failedLogs: args.includes("--log-failed")
13861
13863
  }) : status;
13862
13864
  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,
13865
+ const legacyDashboardUrl = legacyPlayName ? _chunkNSOTASOPjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
13866
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
13867
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
13866
13868
  {
13867
13869
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
13868
13870
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
@@ -13872,7 +13874,7 @@ async function handleRunGet(args) {
13872
13874
  } else {
13873
13875
  writePlayResult(legacyStatus, false, { fullJson: full });
13874
13876
  if (legacyDashboardUrl)
13875
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13877
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
13876
13878
  { dashboardUrl: legacyDashboardUrl },
13877
13879
  { json: false, text: `play page: ${legacyDashboardUrl}
13878
13880
  ` }
@@ -13887,10 +13889,10 @@ async function handleRunGet(args) {
13887
13889
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
13888
13890
  ]);
13889
13891
  const hitLines = formatRunHitsLines(hits);
13890
- const json = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
13892
+ const json = _chunkRTO5QZWTjs.argsWantJson.call(void 0, args);
13891
13893
  const playName = resolveRunPlayName(status, runId);
13892
- const dashboardUrl = playName ? buildPlayDashboardUrl(client.baseUrl, playName) : void 0;
13893
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13894
+ const dashboardUrl = playName ? _chunkNSOTASOPjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
13895
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
13894
13896
  {
13895
13897
  ...overview,
13896
13898
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -13994,9 +13996,9 @@ async function handleRunLifecycleStatus(args) {
13994
13996
  console.error(error instanceof Error ? error.message : usage2);
13995
13997
  return 1;
13996
13998
  }
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 });
13999
+ const status = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().runs.status(runId);
14000
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
14001
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, status, { json: true });
14000
14002
  return 0;
14001
14003
  }
14002
14004
  if (!status.available) {
@@ -14036,7 +14038,7 @@ async function handleRunsRerun(args) {
14036
14038
  console.error(error instanceof Error ? error.message : usage2);
14037
14039
  return 1;
14038
14040
  }
14039
- const options = { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) };
14041
+ const options = { json: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args) };
14040
14042
  for (let index = 0; index < args.length; index += 1) {
14041
14043
  if (args[index] === "--idempotency-key") {
14042
14044
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -14101,8 +14103,8 @@ ${usage2}
14101
14103
  Discover Plays: ${next.discover}
14102
14104
  Active runs: ${next.running}`
14103
14105
  );
14104
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
14105
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14106
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
14107
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
14106
14108
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
14107
14109
  { json: true }
14108
14110
  );
@@ -14117,7 +14119,7 @@ Active runs: ${next.running}`
14117
14119
  console.error("--offset requires --play.");
14118
14120
  return 1;
14119
14121
  }
14120
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14122
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
14121
14123
  const page = await client.runs.listPage({
14122
14124
  ...playName ? { play: playName } : {},
14123
14125
  ...statusFilter ? { status: statusFilter } : {},
@@ -14186,7 +14188,7 @@ Active runs: ${next.running}`
14186
14188
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14187
14189
  );
14188
14190
  }
14189
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14191
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
14190
14192
  {
14191
14193
  runs,
14192
14194
  count: runs.length,
@@ -14200,7 +14202,7 @@ Active runs: ${next.running}`
14200
14202
  },
14201
14203
  render: { sections: [{ title: "runs", lines }] }
14202
14204
  },
14203
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14205
+ { json: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args) }
14204
14206
  );
14205
14207
  return 0;
14206
14208
  }
@@ -14230,7 +14232,7 @@ async function handleRunTail(args) {
14230
14232
  console.error("--log-level requires one of: debug, info, warn, error.");
14231
14233
  return 1;
14232
14234
  }
14233
- const parsed = _chunk36ML3YKAjs.parseLogLevel.call(void 0, value);
14235
+ const parsed = _chunkWQJJNIMQjs.parseLogLevel.call(void 0, value);
14234
14236
  if (!parsed) {
14235
14237
  console.error(
14236
14238
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14268,9 +14270,9 @@ async function handleRunTail(args) {
14268
14270
  );
14269
14271
  return 1;
14270
14272
  }
14271
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14273
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
14272
14274
  const jsonLines = args.includes("--jsonl");
14273
- const jsonOutput = !jsonLines && _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
14275
+ const jsonOutput = !jsonLines && _chunkRTO5QZWTjs.argsWantJson.call(void 0, args);
14274
14276
  const compact = args.includes("--compact");
14275
14277
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14276
14278
  const compactState = {
@@ -14351,7 +14353,7 @@ async function handleRunLogs(args) {
14351
14353
  ]);
14352
14354
  const cursorIndex = args.indexOf("--cursor");
14353
14355
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14354
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk36ML3YKAjs.isRunLogsCursor.call(void 0, cursorValue));
14356
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkWQJJNIMQjs.isRunLogsCursor.call(void 0, cursorValue));
14355
14357
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14356
14358
  return handleRunEventSearch(args);
14357
14359
  }
@@ -14385,7 +14387,7 @@ async function handleRunLogs(args) {
14385
14387
  console.error("--log-level requires one of: debug, info, warn, error.");
14386
14388
  return 1;
14387
14389
  }
14388
- const parsed = _chunk36ML3YKAjs.parseLogLevel.call(void 0, value);
14390
+ const parsed = _chunkWQJJNIMQjs.parseLogLevel.call(void 0, value);
14389
14391
  if (!parsed) {
14390
14392
  console.error(
14391
14393
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14432,12 +14434,12 @@ async function handleRunLogs(args) {
14432
14434
  );
14433
14435
  return 1;
14434
14436
  }
14435
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14437
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
14436
14438
  if (outPath) {
14437
14439
  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);
14440
+ const logs = result2.entries.filter((line) => _chunkWQJJNIMQjs.logLevelReaches.call(void 0, _chunkWQJJNIMQjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkWQJJNIMQjs.classifyLogLine.call(void 0, line).line);
14439
14441
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14440
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14442
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
14441
14443
  {
14442
14444
  runId: result2.runId,
14443
14445
  log_path: outPath,
@@ -14460,7 +14462,7 @@ async function handleRunLogs(args) {
14460
14462
  ]
14461
14463
  }
14462
14464
  },
14463
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14465
+ { json: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args) }
14464
14466
  );
14465
14467
  return 0;
14466
14468
  }
@@ -14491,7 +14493,7 @@ async function handleRunLogs(args) {
14491
14493
  }
14492
14494
  };
14493
14495
  const text = buildRunLogsText(filteredResult);
14494
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14496
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
14495
14497
  {
14496
14498
  runId: result.runId,
14497
14499
  totalCount: result.totalCount,
@@ -14515,7 +14517,7 @@ async function handleRunLogs(args) {
14515
14517
  render: { sections: [{ title: "run logs", lines: entries }] }
14516
14518
  },
14517
14519
  {
14518
- json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args),
14520
+ json: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args),
14519
14521
  text
14520
14522
  }
14521
14523
  );
@@ -14539,7 +14541,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14539
14541
  );
14540
14542
  }
14541
14543
  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)
14544
+ (entry) => _chunkWQJJNIMQjs.logLevelReaches.call(void 0, _chunkWQJJNIMQjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14543
14545
  );
14544
14546
  const selected = matching.slice(-limit);
14545
14547
  const olderMatchesExist = matching.length > selected.length;
@@ -14549,7 +14551,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14549
14551
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _498 => _498.at, 'call', _499 => _499(-1), 'optionalAccess', _500 => _500.seq]), () => ( null)),
14550
14552
  truncated: result.truncated || olderMatchesExist,
14551
14553
  hasMore: olderMatchesExist,
14552
- nextCursor: olderMatchesExist ? _chunk36ML3YKAjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14554
+ nextCursor: olderMatchesExist ? _chunkWQJJNIMQjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14553
14555
  };
14554
14556
  }
14555
14557
  async function handleRunEventSearch(args) {
@@ -14616,7 +14618,7 @@ ${usage2}`);
14616
14618
  namespace,
14617
14619
  ...backend ? { backend } : {}
14618
14620
  } : void 0;
14619
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14621
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
14620
14622
  const result = await client.runs.searchEvents({
14621
14623
  ...runId ? { runId } : {},
14622
14624
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14688,7 +14690,7 @@ ${renderedDetails}` : ""}`;
14688
14690
  "--limit",
14689
14691
  String(limit)
14690
14692
  ].join(" ") : null;
14691
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14693
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
14692
14694
  {
14693
14695
  events,
14694
14696
  nextCursor: result.nextCursor,
@@ -14699,14 +14701,14 @@ ${renderedDetails}` : ""}`;
14699
14701
  render: { sections: [{ title: "runtime events", lines }] }
14700
14702
  },
14701
14703
  {
14702
- json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args),
14704
+ json: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args),
14703
14705
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14704
14706
  }
14705
14707
  );
14706
14708
  return 0;
14707
14709
  }
14708
14710
  function buildRunLogsText(result) {
14709
- const lines = result.entries.map((line) => _chunk36ML3YKAjs.classifyLogLine.call(void 0, line).line);
14711
+ const lines = result.entries.map((line) => _chunkWQJJNIMQjs.classifyLogLine.call(void 0, line).line);
14710
14712
  if (result.warning) {
14711
14713
  if (lines.length > 0) lines.push("");
14712
14714
  lines.push(`warning: ${result.warning}`);
@@ -14740,7 +14742,7 @@ async function handleRunStop(args) {
14740
14742
  reason = args[++index];
14741
14743
  }
14742
14744
  }
14743
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14745
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
14744
14746
  const result = await client.runs.stop(runId, { reason });
14745
14747
  const state = resolveRunStopState(result);
14746
14748
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14755,7 +14757,7 @@ async function handleRunStop(args) {
14755
14757
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14756
14758
  `inspect: deepline runs get ${runId} --full`
14757
14759
  ];
14758
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14760
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
14759
14761
  {
14760
14762
  ...cancelling,
14761
14763
  state,
@@ -14770,7 +14772,7 @@ async function handleRunStop(args) {
14770
14772
  ]
14771
14773
  }
14772
14774
  },
14773
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14775
+ { json: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args) }
14774
14776
  );
14775
14777
  return 0;
14776
14778
  }
@@ -14787,7 +14789,7 @@ async function handleRunStop(args) {
14787
14789
  ];
14788
14790
  process.stderr.write(`${lines2.join("\n")}
14789
14791
  `);
14790
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14792
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
14791
14793
  {
14792
14794
  ...result,
14793
14795
  render: {
@@ -14802,7 +14804,7 @@ async function handleRunStop(args) {
14802
14804
  ]
14803
14805
  }
14804
14806
  },
14805
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14807
+ { json: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args) }
14806
14808
  );
14807
14809
  return 1;
14808
14810
  }
@@ -14813,12 +14815,12 @@ async function handleRunStop(args) {
14813
14815
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14814
14816
  ] : []
14815
14817
  ];
14816
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14818
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
14817
14819
  {
14818
14820
  ...result,
14819
14821
  render: { sections: [{ title: "run stop", lines }] }
14820
14822
  },
14821
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14823
+ { json: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args) }
14822
14824
  );
14823
14825
  return 0;
14824
14826
  }
@@ -14868,18 +14870,18 @@ async function handleRunStopAll(args) {
14868
14870
  reason = args[++index];
14869
14871
  }
14870
14872
  }
14871
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14873
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
14872
14874
  if (dryRun) {
14873
14875
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14874
14876
  const lines2 = buildStopAllDryRunTextLines(result2);
14875
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14877
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
14876
14878
  {
14877
14879
  ...result2,
14878
14880
  render: {
14879
14881
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14880
14882
  }
14881
14883
  },
14882
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14884
+ { json: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14883
14885
  ` }
14884
14886
  );
14885
14887
  return 0;
@@ -14892,17 +14894,17 @@ async function handleRunStopAll(args) {
14892
14894
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14893
14895
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14894
14896
  ];
14895
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14897
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
14896
14898
  {
14897
14899
  ...result,
14898
14900
  render: { sections: [{ title: "workspace stop-all", lines }] }
14899
14901
  },
14900
- { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14902
+ { json: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args) }
14901
14903
  );
14902
14904
  return result.failed > 0 || result.partial ? 1 : 0;
14903
14905
  }
14904
14906
  async function handleRunExport(args) {
14905
- const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0, args, "export");
14907
+ const selection = _chunkRTO5QZWTjs.parseJsonFields.call(void 0, args, "export");
14906
14908
  args = selection.args;
14907
14909
  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
14910
  let runId;
@@ -14961,16 +14963,16 @@ async function handleRunExport(args) {
14961
14963
  "INVALID_ARGUMENT"
14962
14964
  );
14963
14965
  }
14964
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14966
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
14965
14967
  let status = await client.getPlayStatus(runId, { full: true });
14966
14968
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14967
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args));
14969
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkRTO5QZWTjs.argsWantJson.call(void 0, args));
14968
14970
  try {
14969
14971
  await waitForPlayCompletionByWatch({
14970
14972
  client,
14971
14973
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14972
14974
  workflowId: runId,
14973
- jsonOutput: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args),
14975
+ jsonOutput: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args),
14974
14976
  emitLogs: false,
14975
14977
  waitTimeoutMs,
14976
14978
  startedAt: Date.now(),
@@ -15070,8 +15072,8 @@ async function handleRunExport(args) {
15070
15072
  "utf-8"
15071
15073
  );
15072
15074
  }
15073
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, {
15074
- json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args),
15075
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, payload, {
15076
+ json: _chunkRTO5QZWTjs.argsWantJson.call(void 0, args),
15075
15077
  fields: selection.fields,
15076
15078
  text: `${lines.join("\n")}
15077
15079
  `
@@ -15092,10 +15094,10 @@ async function handlePlayGet(args) {
15092
15094
  );
15093
15095
  return 2;
15094
15096
  }
15095
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15097
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
15096
15098
  const explicitJson = args.includes("--json");
15097
15099
  const sourceOutput = args.includes("--source");
15098
- const jsonOutput = sourceOutput ? explicitJson : _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
15100
+ const jsonOutput = sourceOutput ? explicitJson : _chunkRTO5QZWTjs.argsWantJson.call(void 0, args);
15099
15101
  const requestedRevisionFlags = [
15100
15102
  args.includes("--working"),
15101
15103
  args.includes("--live"),
@@ -15155,7 +15157,7 @@ async function handlePlayGet(args) {
15155
15157
  }
15156
15158
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15157
15159
  if (jsonOutput) {
15158
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
15160
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, {
15159
15161
  ...detail,
15160
15162
  ...materializedFile ? {
15161
15163
  message: loadedMessage,
@@ -15247,8 +15249,8 @@ async function handlePlayVersions(args) {
15247
15249
  console.error("Usage: deepline plays versions --name <name> [--json]");
15248
15250
  return 1;
15249
15251
  }
15250
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15251
- const jsonOutput = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
15252
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
15253
+ const jsonOutput = _chunkRTO5QZWTjs.argsWantJson.call(void 0, args);
15252
15254
  await assertCanonicalNamedPlayReference(client, playName, {
15253
15255
  command: "versions"
15254
15256
  });
@@ -15256,7 +15258,7 @@ async function handlePlayVersions(args) {
15256
15258
  parseReferencedPlayTarget2(playName).playName
15257
15259
  );
15258
15260
  if (jsonOutput) {
15259
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, { versions });
15261
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, { versions });
15260
15262
  return 0;
15261
15263
  }
15262
15264
  if (versions.length === 0) {
@@ -15288,9 +15290,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
15288
15290
  "signals"
15289
15291
  ];
15290
15292
  async function handlePlayList(args) {
15291
- const jsonOutput = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
15293
+ const jsonOutput = _chunkRTO5QZWTjs.argsWantJson.call(void 0, args);
15292
15294
  const showCost = args.includes("--show-cost");
15293
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15295
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
15294
15296
  const categoriesIndex = args.indexOf("--categories");
15295
15297
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _536 => _536[categoriesIndex + 1], 'optionalAccess', _537 => _537.trim, 'call', _538 => _538()]) : void 0;
15296
15298
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15387,7 +15389,7 @@ async function handlePlayList(args) {
15387
15389
  lines.push("List truncated \u2014 more plays are available.");
15388
15390
  lines.push(`Next page: ${nextPage}`);
15389
15391
  }
15390
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
15392
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
15391
15393
  {
15392
15394
  plays,
15393
15395
  count: plays.length,
@@ -15405,7 +15407,7 @@ async function handlePlayList(args) {
15405
15407
  }
15406
15408
  async function handlePlayPin(args, pinned) {
15407
15409
  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);
15410
+ const jsonOutput = _chunkRTO5QZWTjs.argsWantJson.call(void 0, args);
15409
15411
  const dryRun = args.includes("--dry-run");
15410
15412
  if (!target) {
15411
15413
  console.error(
@@ -15423,11 +15425,11 @@ async function handlePlayPin(args, pinned) {
15423
15425
  const name = parsedTarget.playName;
15424
15426
  const plan = { name, pinned, dryRun };
15425
15427
  if (dryRun) {
15426
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, plan);
15428
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, plan);
15427
15429
  return 0;
15428
15430
  }
15429
- const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().setPlayPinned(name, pinned);
15430
- if (jsonOutput) _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
15431
+ const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().setPlayPinned(name, pinned);
15432
+ if (jsonOutput) _chunkRTO5QZWTjs.printCompactJson.call(void 0, result);
15431
15433
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15432
15434
  return 0;
15433
15435
  }
@@ -15443,65 +15445,9 @@ function csvColumnLines(csvInput) {
15443
15445
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
15444
15446
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
15445
15447
  }),
15446
- _chunkDRM3CMHLjs.CSV_HEADER_MATCHING_NOTE
15448
+ _chunkKXMNM4AQjs.CSV_HEADER_MATCHING_NOTE
15447
15449
  ];
15448
15450
  }
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
15451
  function printPlayDescription(play) {
15506
15452
  const reference = formatPlayListReference(play);
15507
15453
  const labels = [
@@ -15531,7 +15477,7 @@ function printPlayDescription(play) {
15531
15477
  console.log(` ${line}`);
15532
15478
  }
15533
15479
  }
15534
- if (_optionalChain([play, 'access', _551 => _551.toolCategories, 'optionalAccess', _552 => _552.length])) {
15480
+ if (_optionalChain([play, 'access', _549 => _549.toolCategories, 'optionalAccess', _550 => _550.length])) {
15535
15481
  console.log(` Tool categories: ${play.toolCategories.join(", ")}`);
15536
15482
  }
15537
15483
  if (play.aliases.length > 0) {
@@ -15576,7 +15522,7 @@ function printPlayDescription(play) {
15576
15522
  const runtimeLimit = formatPlayRuntimeLimit(play.runtimeLimit);
15577
15523
  if (runtimeLimit) {
15578
15524
  console.log(
15579
- ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _553 => _553.runtimeLimit, 'optionalAccess', _554 => _554.source]), () => ( "live"))})`
15525
+ ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _551 => _551.runtimeLimit, 'optionalAccess', _552 => _552.source]), () => ( "live"))})`
15580
15526
  );
15581
15527
  }
15582
15528
  printScheduledPlayCapacity(play.activeScheduledPlays);
@@ -15604,17 +15550,17 @@ function formatPlayGrepMatches(matches) {
15604
15550
  return matches.map((match) => `${match.field}: ${match.terms.join(", ")}`).join("; ");
15605
15551
  }
15606
15552
  async function handlePlayGrep(args) {
15607
- const query = _optionalChain([args, 'access', _555 => _555[0], 'optionalAccess', _556 => _556.trim, 'call', _557 => _557()]);
15553
+ const query = _optionalChain([args, 'access', _553 => _553[0], 'optionalAccess', _554 => _554.trim, 'call', _555 => _555()]);
15608
15554
  if (!query) {
15609
15555
  console.error("Usage: deepline plays grep <query> [--json]");
15610
15556
  return 1;
15611
15557
  }
15612
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15558
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
15613
15559
  const results = (await client.listPlays({ grep: query })).map(
15614
15560
  summarizePlayGrepResult
15615
15561
  );
15616
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
15617
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
15562
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
15563
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, {
15618
15564
  plays: results,
15619
15565
  count: results.length,
15620
15566
  query,
@@ -15628,7 +15574,7 @@ async function handlePlayGrep(args) {
15628
15574
  `
15629
15575
  );
15630
15576
  for (const result of results) {
15631
- console.log(_optionalChain([result, 'access', _558 => _558.displayName, 'optionalAccess', _559 => _559.trim, 'call', _560 => _560()]) || result.name);
15577
+ console.log(_optionalChain([result, 'access', _556 => _556.displayName, 'optionalAccess', _557 => _557.trim, 'call', _558 => _558()]) || result.name);
15632
15578
  const matches = formatPlayGrepMatches(result.matches);
15633
15579
  if (matches) console.log(` Matched: ${matches}`);
15634
15580
  console.log(` Describe: ${result.describe}`);
@@ -15637,7 +15583,7 @@ async function handlePlayGrep(args) {
15637
15583
  return 0;
15638
15584
  }
15639
15585
  async function handlePlayDescribe(args) {
15640
- const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0, args, "describe");
15586
+ const selection = _chunkRTO5QZWTjs.parseJsonFields.call(void 0, args, "describe");
15641
15587
  args = selection.args;
15642
15588
  const playName = args[0];
15643
15589
  if (!playName) {
@@ -15671,8 +15617,8 @@ async function handlePlayDescribe(args) {
15671
15617
  `deepline plays check ${playName}`,
15672
15618
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15673
15619
  ];
15674
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
15675
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
15620
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
15621
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, {
15676
15622
  ok: false,
15677
15623
  error: { message },
15678
15624
  next
@@ -15686,7 +15632,7 @@ async function handlePlayDescribe(args) {
15686
15632
  }
15687
15633
  return 2;
15688
15634
  }
15689
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15635
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
15690
15636
  await assertCanonicalNamedPlayReference(client, playName, {
15691
15637
  command: "describe"
15692
15638
  });
@@ -15696,9 +15642,9 @@ async function handlePlayDescribe(args) {
15696
15642
  compact: args.includes("--compact")
15697
15643
  }
15698
15644
  );
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);
15645
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
15646
+ if (selection.fields) _chunkRTO5QZWTjs.printJson.call(void 0, play, selection.fields);
15647
+ else _chunkRTO5QZWTjs.printCompactJson.call(void 0, play);
15702
15648
  return 0;
15703
15649
  }
15704
15650
  printPlayDescription(play);
@@ -15742,7 +15688,7 @@ async function handlePlaySave(args) {
15742
15688
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15743
15689
  };
15744
15690
  if (options.jsonOutput) {
15745
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
15691
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, result);
15746
15692
  } else {
15747
15693
  console.error(result.message);
15748
15694
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15764,7 +15710,7 @@ async function handlePlaySave(args) {
15764
15710
  };
15765
15711
  if (options.dryRun) {
15766
15712
  if (options.jsonOutput) {
15767
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, dryRun);
15713
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, dryRun);
15768
15714
  } else {
15769
15715
  console.log(`Dry run: ${playName}`);
15770
15716
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15773,7 +15719,7 @@ async function handlePlaySave(args) {
15773
15719
  }
15774
15720
  return 0;
15775
15721
  }
15776
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15722
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
15777
15723
  try {
15778
15724
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
15779
15725
  "cli.play_save_compile_manifests",
@@ -15809,7 +15755,7 @@ async function handlePlaySave(args) {
15809
15755
  }
15810
15756
  };
15811
15757
  if (options.jsonOutput) {
15812
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
15758
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, result);
15813
15759
  } else {
15814
15760
  console.log(
15815
15761
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15835,7 +15781,7 @@ async function handlePlayPublish(args) {
15835
15781
  }
15836
15782
  const { target: playName, useLatest } = options;
15837
15783
  let revisionId = options.revisionId;
15838
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15784
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
15839
15785
  if (isFileTarget2(playName)) {
15840
15786
  if (revisionId || useLatest) {
15841
15787
  console.error(
@@ -15867,7 +15813,7 @@ async function handlePlayPublish(args) {
15867
15813
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15868
15814
  };
15869
15815
  if (options.jsonOutput) {
15870
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result3);
15816
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, result3);
15871
15817
  } else {
15872
15818
  console.error(result3.message);
15873
15819
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15890,7 +15836,7 @@ async function handlePlayPublish(args) {
15890
15836
  };
15891
15837
  if (options.dryRun) {
15892
15838
  if (options.jsonOutput) {
15893
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, dryRun);
15839
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, dryRun);
15894
15840
  } else {
15895
15841
  console.log(`Dry run: ${rootPlayName}`);
15896
15842
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15948,17 +15894,17 @@ async function handlePlayPublish(args) {
15948
15894
  artifactHash,
15949
15895
  liveVersion: _nullishCoalesce(published.version, () => ( null)),
15950
15896
  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)),
15897
+ previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _559 => _559.version]), () => ( null)),
15898
+ previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _560 => _560.artifactHash]), () => ( null)),
15953
15899
  sourceBytes: {
15954
- before: _optionalChain([previousLive, 'optionalAccess', _563 => _563.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15900
+ before: _optionalChain([previousLive, 'optionalAccess', _561 => _561.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15955
15901
  after: Buffer.byteLength(graph.root.sourceCode, "utf8")
15956
15902
  },
15957
15903
  triggerMetadata: _nullishCoalesce(published.triggerMetadata, () => ( null)),
15958
15904
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15959
15905
  };
15960
15906
  if (options.jsonOutput) {
15961
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result2);
15907
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, result2);
15962
15908
  } else {
15963
15909
  printPublishReceipt({
15964
15910
  name: rootPlayName,
@@ -15989,14 +15935,14 @@ async function handlePlayPublish(args) {
15989
15935
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15990
15936
  latest: useLatest
15991
15937
  };
15992
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result2);
15938
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, result2);
15993
15939
  return 0;
15994
15940
  }
15995
15941
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
15996
15942
  if (useLatest) {
15997
15943
  const versions = await client.listPlayVersions(resolvedName);
15998
15944
  const latest = versions[0];
15999
- if (!_optionalChain([latest, 'optionalAccess', _564 => _564._id])) {
15945
+ if (!_optionalChain([latest, 'optionalAccess', _562 => _562._id])) {
16000
15946
  console.error(`No saved revisions found for ${resolvedName}.`);
16001
15947
  return 1;
16002
15948
  }
@@ -16013,7 +15959,7 @@ async function handlePlayPublish(args) {
16013
15959
  revisionId ? { revisionId } : {}
16014
15960
  );
16015
15961
  if (options.jsonOutput) {
16016
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
15962
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, result);
16017
15963
  } else {
16018
15964
  printPublishReceipt({
16019
15965
  name: result.name,
@@ -16053,7 +15999,7 @@ async function handlePlayDelete(args) {
16053
15999
  );
16054
16000
  return 2;
16055
16001
  }
16056
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
16002
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
16057
16003
  let detail;
16058
16004
  try {
16059
16005
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -16077,8 +16023,8 @@ async function handlePlayDelete(args) {
16077
16023
  name: resolvedName,
16078
16024
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
16079
16025
  };
16080
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
16081
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result2);
16026
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
16027
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, result2);
16082
16028
  } else {
16083
16029
  process.stdout.write(
16084
16030
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -16088,8 +16034,8 @@ async function handlePlayDelete(args) {
16088
16034
  return 0;
16089
16035
  }
16090
16036
  const result = await client.deletePlay(resolvedName);
16091
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
16092
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
16037
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
16038
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, result);
16093
16039
  return result.archived || result.alreadyArchived ? 0 : 4;
16094
16040
  }
16095
16041
  if (result.alreadyArchived) {
@@ -16128,13 +16074,13 @@ async function handlePlayRestore(args) {
16128
16074
  );
16129
16075
  return 2;
16130
16076
  }
16131
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
16077
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
16132
16078
  try {
16133
16079
  const result = await client.restorePlay(
16134
16080
  parseReferencedPlayTarget2(playName).playName
16135
16081
  );
16136
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
16137
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
16082
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
16083
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, result);
16138
16084
  return result.restored || result.alreadyActive ? 0 : 4;
16139
16085
  }
16140
16086
  if (result.alreadyActive) {
@@ -16247,21 +16193,21 @@ Common commands:
16247
16193
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16248
16194
  }
16249
16195
  };
16250
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, result2, {
16196
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0, result2, {
16251
16197
  json: options.json,
16252
16198
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16253
16199
  `
16254
16200
  });
16255
16201
  return;
16256
16202
  }
16257
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
16203
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
16258
16204
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16259
16205
  throw new Error(
16260
16206
  "The submission belongs to a different API origin. Select its original host before recovery."
16261
16207
  );
16262
16208
  }
16263
16209
  const result = await client.startPlayRun(saved.request);
16264
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
16210
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
16265
16211
  { ...result },
16266
16212
  {
16267
16213
  json: options.json,
@@ -16297,7 +16243,7 @@ Examples:
16297
16243
  ).action(async (target, options) => {
16298
16244
  process.exitCode = await handlePlayCheck([
16299
16245
  target,
16300
- ..._chunkHRWUQJ4Kjs.jsonFieldArgs.call(void 0, options.json),
16246
+ ..._chunkRTO5QZWTjs.jsonFieldArgs.call(void 0, options.json),
16301
16247
  ...options.full ? ["--full"] : []
16302
16248
  ]);
16303
16249
  });
@@ -16538,9 +16484,9 @@ Examples:
16538
16484
  const limit = Number(options.historyLimit);
16539
16485
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16540
16486
  throw new Error("--history-limit must be an integer from 1 to 30.");
16541
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
16487
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
16542
16488
  if (options.binding) {
16543
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0,
16489
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0,
16544
16490
  await client.getPlayTriggerHistory(options.binding, { limit })
16545
16491
  );
16546
16492
  return;
@@ -16548,7 +16494,7 @@ Examples:
16548
16494
  const result = await client.listPlayTriggerInventory({
16549
16495
  cursor: options.cursor
16550
16496
  });
16551
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
16497
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, {
16552
16498
  ...result,
16553
16499
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16554
16500
  });
@@ -16595,7 +16541,7 @@ Examples:
16595
16541
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16596
16542
  throw new Error("--group-by must be kind or trigger_source.");
16597
16543
  }
16598
- const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().getPlaysActivity({
16544
+ const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().getPlaysActivity({
16599
16545
  timeZone: options.timeZone,
16600
16546
  days,
16601
16547
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16609,7 +16555,7 @@ Examples:
16609
16555
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16610
16556
  );
16611
16557
  }
16612
- _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
16558
+ _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
16613
16559
  { ...result },
16614
16560
  {
16615
16561
  json: Boolean(options.json),
@@ -16638,7 +16584,7 @@ Examples:
16638
16584
  false
16639
16585
  );
16640
16586
  });
16641
- _chunkR4XZO6Z5js.registerDeprecatedSearchCommand.call(void 0,
16587
+ _chunkKAEZNPUMjs.registerDeprecatedSearchCommand.call(void 0,
16642
16588
  play,
16643
16589
  (options) => options.all ? ["plays"] : ["prebuilts"]
16644
16590
  );
@@ -16679,9 +16625,9 @@ Examples:
16679
16625
  "--json [fields]",
16680
16626
  "JSON output; optionally select comma-separated dotted paths"
16681
16627
  );
16682
- _chunkZMVJSS6Njs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16628
+ _chunkNSOTASOPjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16683
16629
  async (target, options) => {
16684
- const ownView = () => handlePlayDescribe(_chunkHRWUQJ4Kjs.describeArgs.call(void 0, target, options));
16630
+ const ownView = () => handlePlayDescribe(_chunkRTO5QZWTjs.describeArgs.call(void 0, target, options));
16685
16631
  const [flagText] = [options.json].filter(
16686
16632
  (value) => typeof value === "string"
16687
16633
  );
@@ -16692,7 +16638,7 @@ Examples:
16692
16638
  process.exitCode = await ownView();
16693
16639
  return;
16694
16640
  }
16695
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-YKOE54ZO.js")));
16641
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-EFWNECHI.js")));
16696
16642
  process.exitCode = await describeAnything(
16697
16643
  name,
16698
16644
  {
@@ -16810,7 +16756,7 @@ Examples:
16810
16756
  deepline plays deployments <deployment-id>
16811
16757
  `
16812
16758
  ).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)
16759
+ async (id, options) => id ? _chunk7Z66NHUCjs.handleDeploymentGet.call(void 0, id, options) : _chunk7Z66NHUCjs.handleDeploymentsList.call(void 0, options)
16814
16760
  );
16815
16761
  addPublishHelp(
16816
16762
  play.command("publish <target>").description(
@@ -16945,14 +16891,14 @@ Examples:
16945
16891
  const limit = Number(options.limit);
16946
16892
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
16947
16893
  throw new Error("--limit must be an integer from 1 to 1000.");
16948
- const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.rowHistory({
16894
+ const result = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().runs.rowHistory({
16949
16895
  playName: options.play,
16950
16896
  runId,
16951
16897
  tableNamespace: options.dataset,
16952
16898
  limit,
16953
16899
  cursor: options.cursor
16954
16900
  });
16955
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
16901
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, {
16956
16902
  ...result,
16957
16903
  ...result.nextCursor ? {
16958
16904
  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 +16963,7 @@ Examples:
17017
16963
  ).action(async (runId, options) => {
17018
16964
  process.exitCode = await handleRunGet([
17019
16965
  runId,
17020
- ..._chunkHRWUQJ4Kjs.jsonFieldArgs.call(void 0, options.json),
16966
+ ..._chunkRTO5QZWTjs.jsonFieldArgs.call(void 0, options.json),
17021
16967
  ...options.webUrl ? ["--web-url"] : [],
17022
16968
  ...options.full ? ["--full"] : [],
17023
16969
  ...options.input ? ["--input"] : [],
@@ -17296,7 +17242,7 @@ Examples:
17296
17242
  ...options.allowEmpty ? ["--allow-empty"] : [],
17297
17243
  ...options.wait ? ["--wait"] : [],
17298
17244
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17299
- ..._chunkHRWUQJ4Kjs.jsonFieldArgs.call(void 0, options.json)
17245
+ ..._chunkRTO5QZWTjs.jsonFieldArgs.call(void 0, options.json)
17300
17246
  ]);
17301
17247
  });
17302
17248
  const share = play.command("share").description(
@@ -17437,8 +17383,8 @@ function absolutePublicPlayUrl(path) {
17437
17383
  }
17438
17384
  function shareUrlFields(status) {
17439
17385
  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]))
17386
+ publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _563 => _563.share, 'optionalAccess', _564 => _564.publicPath])),
17387
+ canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _565 => _565.share, 'optionalAccess', _566 => _566.canonicalPath]))
17442
17388
  };
17443
17389
  }
17444
17390
  function shareStatusForOutput(status) {
@@ -17462,10 +17408,10 @@ async function handlePlayShareStatus(args) {
17462
17408
  return 2;
17463
17409
  }
17464
17410
  const name = parseReferencedPlayTarget2(target).playName;
17465
- const status = await new (0, _chunk36ML3YKAjs.DeeplineClient)().getSharePage(name);
17411
+ const status = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().getSharePage(name);
17466
17412
  const outputStatus = shareStatusForOutput(status);
17467
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17468
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, outputStatus);
17413
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
17414
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, outputStatus);
17469
17415
  return 0;
17470
17416
  }
17471
17417
  if (!outputStatus.share) {
@@ -17504,7 +17450,7 @@ async function handlePlaySharePublish(args) {
17504
17450
  return 2;
17505
17451
  }
17506
17452
  const name = parseReferencedPlayTarget2(target).playName;
17507
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
17453
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
17508
17454
  let revisionId = shareFlagValue(args, "--revision-id");
17509
17455
  let resolvedVersion;
17510
17456
  if (!revisionId) {
@@ -17535,8 +17481,8 @@ async function handlePlaySharePublish(args) {
17535
17481
  );
17536
17482
  if (!hasCompleted) {
17537
17483
  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, {
17484
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
17485
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, {
17540
17486
  ok: false,
17541
17487
  code: "NO_SUCCESSFUL_RUN",
17542
17488
  message,
@@ -17560,8 +17506,8 @@ async function handlePlaySharePublish(args) {
17560
17506
  };
17561
17507
  if (args.includes("--dry-run")) {
17562
17508
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17563
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17564
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, plan);
17509
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
17510
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, plan);
17565
17511
  } else {
17566
17512
  console.log(
17567
17513
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17571,13 +17517,13 @@ async function handlePlaySharePublish(args) {
17571
17517
  }
17572
17518
  const status = await client.publishSharePage(name, request);
17573
17519
  const outputStatus = shareStatusForOutput(status);
17574
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17575
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, outputStatus);
17520
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
17521
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, outputStatus);
17576
17522
  return 0;
17577
17523
  }
17578
17524
  const urls = shareUrlFields(outputStatus);
17579
17525
  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]))), () => ( ""))}`
17526
+ `Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _567 => _567.share, 'optionalAccess', _568 => _568.publicPath]))), () => ( ""))}`
17581
17527
  );
17582
17528
  if (urls.canonicalUrl && urls.canonicalUrl !== urls.publicUrl) {
17583
17529
  console.log(`Version URL: ${urls.canonicalUrl}`);
@@ -17603,9 +17549,9 @@ async function handlePlayShareUpdate(args) {
17603
17549
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17604
17550
  ...seoIndexing ? { seoIndexing } : {}
17605
17551
  };
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);
17552
+ const status = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().updateSharePage(name, request);
17553
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
17554
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, status);
17609
17555
  return 0;
17610
17556
  }
17611
17557
  console.log(`Updated ${name} share settings.`);
@@ -17620,13 +17566,13 @@ async function handlePlayShareRegenerate(args) {
17620
17566
  return 2;
17621
17567
  }
17622
17568
  const name = parseReferencedPlayTarget2(target).playName;
17623
- const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
17569
+ const client = new (0, _chunkWQJJNIMQjs.DeeplineClient)();
17624
17570
  let revisionId = shareFlagValue(args, "--revision-id");
17625
17571
  const versionFlag = shareFlagValue(args, "--version");
17626
17572
  if (!revisionId && versionFlag) {
17627
17573
  const versions = await client.listPlayVersions(name);
17628
17574
  const chosen = versions.find((r) => r.version === Number(versionFlag));
17629
- if (!_optionalChain([chosen, 'optionalAccess', _571 => _571._id])) {
17575
+ if (!_optionalChain([chosen, 'optionalAccess', _569 => _569._id])) {
17630
17576
  console.error(`Version ${versionFlag} not found for ${name}.`);
17631
17577
  return 4;
17632
17578
  }
@@ -17637,12 +17583,12 @@ async function handlePlayShareRegenerate(args) {
17637
17583
  revisionId ? { revisionId } : {}
17638
17584
  );
17639
17585
  const outputStatus = shareStatusForOutput(status);
17640
- if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17641
- _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, outputStatus);
17586
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
17587
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, outputStatus);
17642
17588
  return 0;
17643
17589
  }
17644
17590
  const urls = shareUrlFields(outputStatus);
17645
- const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _572 => _572.share, 'optionalAccess', _573 => _573.publishedRevisionId]) === revisionId;
17591
+ const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _570 => _570.share, 'optionalAccess', _571 => _571.publishedRevisionId]) === revisionId;
17646
17592
  console.log(
17647
17593
  `Regenerated public copy for ${name}${regeneratedPublishedRevision && urls.publicUrl ? `: ${urls.publicUrl}` : "."}`
17648
17594
  );
@@ -17663,9 +17609,9 @@ async function handlePlayShareUnpublish(args) {
17663
17609
  return 2;
17664
17610
  }
17665
17611
  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);
17612
+ const status = await new (0, _chunkWQJJNIMQjs.DeeplineClient)().unpublishSharePage(name);
17613
+ if (_chunkRTO5QZWTjs.argsWantJson.call(void 0, args)) {
17614
+ _chunkRTO5QZWTjs.printCompactJson.call(void 0, status);
17669
17615
  return 0;
17670
17616
  }
17671
17617
  console.log(`Unpublished ${name}; the public page has been removed.`);
@@ -17736,7 +17682,4 @@ async function handlePlayShareUnpublish(args) {
17736
17682
 
17737
17683
 
17738
17684
 
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;
17685
+ 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;