deepline 0.3.394 → 0.3.395

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 (106) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +30 -162
  2. package/dist/bundling-sources/sdk/src/index.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/plays/play-description.ts +167 -0
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/sdk/src/types.ts +1 -0
  6. package/dist/cli/{auth-OSXDAVCF.mjs → auth-NMQXZRS7.mjs} +4 -4
  7. package/dist/cli/auth-UYCOBAL5.js +39 -0
  8. package/dist/cli/{billing-ZNNKX3UR.mjs → billing-5MVXZRS6.mjs} +5 -4
  9. package/dist/cli/{billing-EKLYOXUY.js → billing-Z4JTGUU3.js} +76 -75
  10. package/dist/cli/{chunk-E23BQ5SC.js → chunk-36ML3YKA.js} +241 -349
  11. package/dist/cli/{chunk-XRQ2AQL7.mjs → chunk-3TRY7KAC.mjs} +2 -2
  12. package/dist/cli/{chunk-NR3DFKNF.mjs → chunk-47M6HPGP.mjs} +1 -1
  13. package/dist/cli/{chunk-RBJYWRCF.js → chunk-4KLCLLTO.js} +239 -237
  14. package/dist/cli/{chunk-CS6RAIVY.js → chunk-56IFFVIB.js} +4 -4
  15. package/dist/cli/chunk-5VCZ3WRH.mjs +129 -0
  16. package/dist/cli/{chunk-FJGW5GXU.mjs → chunk-6D7A2FSL.mjs} +1 -1
  17. package/dist/cli/{chunk-X63FDZJZ.mjs → chunk-7MVWUXOD.mjs} +3 -3
  18. package/dist/cli/{chunk-ZYBGA4AR.mjs → chunk-7XAM7KDW.mjs} +3 -3
  19. package/dist/cli/{chunk-BP33SIZF.mjs → chunk-BLYL3KOC.mjs} +1 -1
  20. package/dist/cli/{chunk-TJI2EN6K.mjs → chunk-BON3DRC6.mjs} +1 -1
  21. package/dist/cli/chunk-DRM3CMHL.js +129 -0
  22. package/dist/cli/{chunk-XXUDVEXK.mjs → chunk-EFLQHJZ6.mjs} +5 -5
  23. package/dist/cli/{chunk-JHIJIHFB.mjs → chunk-G4IWGRMK.mjs} +23 -131
  24. package/dist/cli/{chunk-KGNTKMRG.js → chunk-HRWUQJ4K.js} +6 -6
  25. package/dist/cli/{chunk-2MDDA7A4.js → chunk-K5T3EN6D.js} +26 -26
  26. package/dist/cli/{chunk-KI635JN4.js → chunk-LZLBR2SF.js} +50 -50
  27. package/dist/cli/{chunk-MLPU5SMZ.js → chunk-MYIBHORT.js} +2 -2
  28. package/dist/cli/{chunk-UXFSWG3Q.mjs → chunk-OCSG6X67.mjs} +4 -4
  29. package/dist/cli/{chunk-354JCXA2.js → chunk-PZ5BZ76S.js} +50 -50
  30. package/dist/cli/{chunk-VK6FYZLP.js → chunk-R4XZO6Z5.js} +8 -8
  31. package/dist/cli/{chunk-6YAUMG27.js → chunk-TO2MWPGR.js} +1 -1
  32. package/dist/cli/{chunk-QIQBYKLB.js → chunk-UCXK2DS4.js} +15 -15
  33. package/dist/cli/{chunk-KIUMEOM5.js → chunk-UKU6JM3S.js} +8 -8
  34. package/dist/cli/{chunk-4P27AXEA.js → chunk-VYLJJQ7Y.js} +65 -65
  35. package/dist/cli/{chunk-M57J2SK4.mjs → chunk-WCCKMLHL.mjs} +2 -2
  36. package/dist/cli/{chunk-5BB2RGAX.mjs → chunk-XMAPE2KH.mjs} +15 -13
  37. package/dist/cli/{chunk-MFB2VKBO.mjs → chunk-ZWH2TFA7.mjs} +2 -2
  38. package/dist/cli/{csv-LU7O75WE.js → csv-HTS5ZYQ4.js} +12 -12
  39. package/dist/cli/{csv-5AXRB35H.mjs → csv-SVOD5UBH.mjs} +3 -3
  40. package/dist/cli/{db-F7YTFKVM.js → db-7AP4P52N.js} +30 -29
  41. package/dist/cli/{db-7XP5UWEW.mjs → db-7QLNI3Q4.mjs} +5 -4
  42. package/dist/cli/{describe-K4ES5LIL.mjs → describe-DBRY5BNK.mjs} +10 -9
  43. package/dist/cli/{describe-FRH32RDV.js → describe-YKOE54ZO.js} +20 -19
  44. package/dist/cli/{executions-RZV5XPT2.js → executions-GRQXTB2P.js} +7 -6
  45. package/dist/cli/{executions-IEHEHJUO.mjs → executions-QNZTPNG4.mjs} +5 -4
  46. package/dist/cli/{feedback-FPUVZBAN.mjs → feedback-JMCSR624.mjs} +3 -3
  47. package/dist/cli/{feedback-3P65QTX3.js → feedback-ZOLA2KY7.js} +7 -7
  48. package/dist/cli/git-EJQLRK27.js +23 -0
  49. package/dist/cli/{git-GLVVP7TY.mjs → git-LJGL2IHS.mjs} +4 -4
  50. package/dist/cli/index.js +94 -94
  51. package/dist/cli/index.mjs +42 -42
  52. package/dist/cli/{legacy-noops-3MOI6NBM.mjs → legacy-noops-F23PKVBN.mjs} +4 -4
  53. package/dist/cli/{legacy-noops-XKSGZR7Q.js → legacy-noops-YSCIR2SD.js} +7 -7
  54. package/dist/cli/{monitors-FTBGNEFG.mjs → monitors-S4LOEL7W.mjs} +5 -4
  55. package/dist/cli/{monitors-NZ2DYNST.js → monitors-WMZ6HJZX.js} +86 -85
  56. package/dist/cli/{org-MCKDQXIV.js → org-PFHM5ZLY.js} +65 -64
  57. package/dist/cli/{org-V2J5RBCN.mjs → org-U3WA2NQM.mjs} +5 -4
  58. package/dist/cli/{play-AJFGME3B.mjs → play-AGSECQFN.mjs} +8 -7
  59. package/dist/cli/play-BR2LWGXK.js +159 -0
  60. package/dist/cli/{providers-I6RQJZFZ.mjs → providers-QBBRFBOH.mjs} +5 -4
  61. package/dist/cli/{providers-2JEZ2264.js → providers-XYMHLKCA.js} +8 -7
  62. package/dist/cli/{quickstart-BIDQDMO4.mjs → quickstart-5JTDGISY.mjs} +3 -3
  63. package/dist/cli/{quickstart-GJ2RPDU3.js → quickstart-IYGD6ZY3.js} +5 -5
  64. package/dist/cli/{search-ELRXFWG5.mjs → search-X6W6GRHS.mjs} +6 -5
  65. package/dist/cli/search-ZVSYH5GY.js +28 -0
  66. package/dist/cli/{secrets-SQXGZXIC.mjs → secrets-N55B67H6.mjs} +5 -4
  67. package/dist/cli/{secrets-53IT6VXD.js → secrets-UHG6OQFD.js} +14 -13
  68. package/dist/cli/{sessions-CAV5M77Y.js → sessions-57L5MGHN.js} +5 -5
  69. package/dist/cli/{sessions-2X5QF7SL.mjs → sessions-JTRSTDSS.mjs} +4 -4
  70. package/dist/cli/{settings-532WNAZO.js → settings-ATX4U5AS.js} +75 -74
  71. package/dist/cli/{settings-7P67VGCJ.mjs → settings-Q24HRAQI.mjs} +8 -7
  72. package/dist/cli/{setup-QGGBV2LE.mjs → setup-77ZWLVHT.mjs} +6 -6
  73. package/dist/cli/{setup-6L2VSUWJ.js → setup-EJCNOUCE.js} +41 -41
  74. package/dist/cli/skills-SPXUBLII.js +28 -0
  75. package/dist/cli/{skills-3FE62WBG.mjs → skills-XIS5AWQI.mjs} +4 -4
  76. package/dist/cli/tools-DBHUUZJX.js +42 -0
  77. package/dist/cli/{tools-DMR25DEF.mjs → tools-WCKLYEGQ.mjs} +7 -6
  78. package/dist/cli/{update-6RZMHJZP.mjs → update-UT5WANMV.mjs} +6 -6
  79. package/dist/cli/update-VSNFXRHJ.js +28 -0
  80. package/dist/cli/{workflow-TX4F2PIX.js → workflow-226QYUN2.js} +16 -15
  81. package/dist/cli/{workflow-L2DQRE6R.mjs → workflow-ZMX3L4ML.mjs} +6 -5
  82. package/dist/{client-C3O1Ipf3.d.ts → client-CivP-PAI.d.ts} +21 -12
  83. package/dist/{client-BktIPdIj.d.mts → client-hdFtwhTm.d.mts} +21 -12
  84. package/dist/index.d.mts +2 -2
  85. package/dist/index.d.ts +2 -2
  86. package/dist/index.js +7 -6
  87. package/dist/index.mjs +4 -3
  88. package/dist/install-integrity.json +81 -74
  89. package/dist/plays/play-description.d.mts +6 -0
  90. package/dist/plays/play-description.d.ts +6 -0
  91. package/dist/plays/play-description.js +9 -0
  92. package/dist/plays/play-description.mjs +9 -0
  93. package/dist/plays/run-request.d.mts +1 -1
  94. package/dist/plays/run-request.d.ts +1 -1
  95. package/dist/release.d.mts +1 -1
  96. package/dist/release.d.ts +1 -1
  97. package/dist/release.js +2 -2
  98. package/dist/release.mjs +1 -1
  99. package/package.json +6 -1
  100. package/dist/cli/auth-IHKISLJQ.js +0 -39
  101. package/dist/cli/git-MFFAWVVX.js +0 -23
  102. package/dist/cli/play-WLSN2EO2.js +0 -158
  103. package/dist/cli/search-5VN4YD4I.js +0 -27
  104. package/dist/cli/skills-S6NPZAN7.js +0 -28
  105. package/dist/cli/tools-647RLXQS.js +0 -41
  106. package/dist/cli/update-WVTSC3EM.js +0 -28
@@ -1,6 +1,10 @@
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
+
6
+
7
+
4
8
 
5
9
  var _chunkZMVJSS6Njs = require('./chunk-ZMVJSS6N.js');
6
10
 
@@ -19,11 +23,7 @@ var _chunkMH73HMPVjs = require('./chunk-MH73HMPV.js');
19
23
  var _chunkGSK6NHVMjs = require('./chunk-GSK6NHVM.js');
20
24
 
21
25
 
22
- var _chunkVK6FYZLPjs = require('./chunk-VK6FYZLP.js');
23
-
24
-
25
-
26
- var _chunk2MDDA7A4js = require('./chunk-2MDDA7A4.js');
26
+ var _chunkR4XZO6Z5js = require('./chunk-R4XZO6Z5.js');
27
27
 
28
28
 
29
29
 
@@ -40,19 +40,21 @@ var _chunkGEJDBXXMjs = require('./chunk-GEJDBXXM.js');
40
40
 
41
41
 
42
42
 
43
+ var _chunk36ML3YKAjs = require('./chunk-36ML3YKA.js');
44
+
43
45
 
44
46
 
45
- var _chunkE23BQ5SCjs = require('./chunk-E23BQ5SC.js');
46
47
 
47
48
 
48
49
 
49
50
 
50
51
 
51
52
 
53
+ var _chunkUHNDVD3Pjs = require('./chunk-UHNDVD3P.js');
52
54
 
53
55
 
54
56
 
55
- var _chunkUHNDVD3Pjs = require('./chunk-UHNDVD3P.js');
57
+ var _chunkDRM3CMHLjs = require('./chunk-DRM3CMHL.js');
56
58
 
57
59
 
58
60
 
@@ -75,10 +77,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
75
77
 
76
78
 
77
79
 
78
- var _chunkKGNTKMRGjs = require('./chunk-KGNTKMRG.js');
80
+ var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
79
81
 
80
82
 
81
- var _chunkCS6RAIVYjs = require('./chunk-CS6RAIVY.js');
83
+ var _chunk56IFFVIBjs = require('./chunk-56IFFVIB.js');
82
84
 
83
85
 
84
86
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -2062,7 +2064,7 @@ function resolveField(key, command) {
2062
2064
  function printSettings(result, json, name) {
2063
2065
  result = { ...result, settings: parsePlaySettings(result.settings) };
2064
2066
  const selected = fields.filter(([key]) => !name || key === name);
2065
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
2067
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2066
2068
  {
2067
2069
  ...result,
2068
2070
  settings: Object.fromEntries(
@@ -2106,7 +2108,7 @@ function registerPlaySettingsCommands(plays) {
2106
2108
  valueSyntax: field.cli.valueSyntax,
2107
2109
  examples: field.cli.examples
2108
2110
  }));
2109
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
2111
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2110
2112
  {
2111
2113
  fields: descriptions,
2112
2114
  render: {
@@ -2131,7 +2133,7 @@ function registerPlaySettingsCommands(plays) {
2131
2133
  async (options, command) => {
2132
2134
  if (options.name !== void 0) resolveField(options.name, command);
2133
2135
  printSettings(
2134
- await new (0, _chunkE23BQ5SCjs.DeeplineClient)().getPlaySettings(options.play),
2136
+ await new (0, _chunk36ML3YKAjs.DeeplineClient)().getPlaySettings(options.play),
2135
2137
  options.json,
2136
2138
  options.name
2137
2139
  );
@@ -2162,7 +2164,7 @@ function registerPlaySettingsCommands(plays) {
2162
2164
  );
2163
2165
  }
2164
2166
  if (options.dryRun) {
2165
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
2167
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2166
2168
  {
2167
2169
  dryRun: true,
2168
2170
  play,
@@ -2183,7 +2185,7 @@ function registerPlaySettingsCommands(plays) {
2183
2185
  return;
2184
2186
  }
2185
2187
  printSettings(
2186
- await new (0, _chunkE23BQ5SCjs.DeeplineClient)().updatePlaySettings(play, patch),
2188
+ await new (0, _chunk36ML3YKAjs.DeeplineClient)().updatePlaySettings(play, patch),
2187
2189
  options.json
2188
2190
  );
2189
2191
  };
@@ -2209,13 +2211,13 @@ function registerPlaySettingsCommands(plays) {
2209
2211
  "--root must be person or team; --limit must be 1\u2013100.",
2210
2212
  { exitCode: 2 }
2211
2213
  );
2212
- const page = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().listPlaySettingsPaths({
2214
+ const page = await new (0, _chunk36ML3YKAjs.DeeplineClient)().listPlaySettingsPaths({
2213
2215
  root: options.root,
2214
2216
  limit,
2215
2217
  cursor: options.cursor
2216
2218
  });
2217
2219
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2218
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
2220
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2219
2221
  {
2220
2222
  ...page,
2221
2223
  nextCommand,
@@ -2266,7 +2268,7 @@ function registerPlaySettingsCommands(plays) {
2266
2268
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2267
2269
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2268
2270
  };
2269
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
2271
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
2270
2272
  const paths = [];
2271
2273
  let cursor;
2272
2274
  do {
@@ -2328,7 +2330,7 @@ function registerPlaySettingsCommands(plays) {
2328
2330
  moved.push(move.playName);
2329
2331
  }
2330
2332
  }
2331
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
2333
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2332
2334
  {
2333
2335
  dryRun: Boolean(options.dryRun),
2334
2336
  from: options.from,
@@ -2456,7 +2458,7 @@ function triggerLines(view) {
2456
2458
  return lines;
2457
2459
  }
2458
2460
  function printView(view, json) {
2459
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
2461
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2460
2462
  {
2461
2463
  ...view,
2462
2464
  render: {
@@ -2469,7 +2471,7 @@ function printView(view, json) {
2469
2471
  );
2470
2472
  }
2471
2473
  function printResult(result, json) {
2472
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
2474
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2473
2475
  {
2474
2476
  ...result,
2475
2477
  render: {
@@ -2499,7 +2501,7 @@ async function mutate(command, options, build) {
2499
2501
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2500
2502
  }
2501
2503
  if (options.dryRun) {
2502
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
2504
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
2503
2505
  {
2504
2506
  dryRun: true,
2505
2507
  play: options.play,
@@ -2518,7 +2520,7 @@ async function mutate(command, options, build) {
2518
2520
  return;
2519
2521
  }
2520
2522
  printResult(
2521
- await new (0, _chunkE23BQ5SCjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2523
+ await new (0, _chunk36ML3YKAjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2522
2524
  options.json
2523
2525
  );
2524
2526
  }
@@ -2551,7 +2553,7 @@ function registerPlayTriggerConfigCommands(plays) {
2551
2553
  }).addHelpText("after", help2);
2552
2554
  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) => {
2553
2555
  printView(
2554
- await new (0, _chunkE23BQ5SCjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2556
+ await new (0, _chunk36ML3YKAjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2555
2557
  options.json
2556
2558
  );
2557
2559
  });
@@ -2595,7 +2597,7 @@ function registerPlayTriggerConfigCommands(plays) {
2595
2597
  if (options.auth === void 0) {
2596
2598
  if (secrets.length || options.header || options.signaturePrefix)
2597
2599
  usage(setWebhook, "--secret/--header need --auth.");
2598
- const current = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().getPlayTriggerConfig(
2600
+ const current = await new (0, _chunk36ML3YKAjs.DeeplineClient)().getPlayTriggerConfig(
2599
2601
  options.play
2600
2602
  );
2601
2603
  return {
@@ -2672,7 +2674,7 @@ var KIND_DESCRIPTIONS = {
2672
2674
  "receipt.skipped": "Saved work result: skipped.",
2673
2675
  "runtime.event": "Other event."
2674
2676
  };
2675
- var RUN_LOGS_KIND_HELP = _chunkE23BQ5SCjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2677
+ var RUN_LOGS_KIND_HELP = _chunk36ML3YKAjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2676
2678
  kind,
2677
2679
  description: KIND_DESCRIPTIONS[kind]
2678
2680
  }));
@@ -2809,9 +2811,9 @@ function configureRunQueryCommandErrors(command, resource) {
2809
2811
  const args = program.args;
2810
2812
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2811
2813
  error.exitCode = 2;
2812
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2813
- _chunkKGNTKMRGjs.printJsonError.call(void 0,
2814
- Object.assign(new (0, _chunkE23BQ5SCjs.RunEventQueryInputError)(error.message), {
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), {
2815
2817
  exitCode: 2,
2816
2818
  retryable: false
2817
2819
  })
@@ -2855,14 +2857,14 @@ function parseQuery(args, resource) {
2855
2857
  if (VALUE_FLAGS.has(flag)) {
2856
2858
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2857
2859
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2858
- throw new (0, _chunkE23BQ5SCjs.RunEventQueryInputError)(
2860
+ throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2859
2861
  `${flag} requires a value. Use ${flag} <value>.`
2860
2862
  );
2861
2863
  }
2862
2864
  if (flag === "--sum") sums.push(value);
2863
2865
  else {
2864
2866
  if (values[flag] !== void 0) {
2865
- throw new (0, _chunkE23BQ5SCjs.RunEventQueryInputError)(
2867
+ throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2866
2868
  `${flag} may only be supplied once.`
2867
2869
  );
2868
2870
  }
@@ -2876,12 +2878,12 @@ function parseQuery(args, resource) {
2876
2878
  }
2877
2879
  if (arg.startsWith("-")) {
2878
2880
  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.";
2879
- throw new (0, _chunkE23BQ5SCjs.RunEventQueryInputError)(
2881
+ throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2880
2882
  `Unsupported query flag ${flag}. ${correction}`
2881
2883
  );
2882
2884
  }
2883
2885
  if (runId !== void 0) {
2884
- throw new (0, _chunkE23BQ5SCjs.RunEventQueryInputError)(
2886
+ throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2885
2887
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2886
2888
  );
2887
2889
  }
@@ -2889,7 +2891,7 @@ function parseQuery(args, resource) {
2889
2891
  }
2890
2892
  if (switches.has("--fields")) {
2891
2893
  if (runId !== void 0) {
2892
- throw new (0, _chunkE23BQ5SCjs.RunEventQueryInputError)(
2894
+ throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2893
2895
  "--fields does not use a run ID. Omit the positional run ID."
2894
2896
  );
2895
2897
  }
@@ -2902,18 +2904,18 @@ function parseQuery(args, resource) {
2902
2904
  )
2903
2905
  ];
2904
2906
  if (incompatible.length) {
2905
- throw new (0, _chunkE23BQ5SCjs.RunEventQueryInputError)(
2907
+ throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2906
2908
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2907
2909
  );
2908
2910
  }
2909
2911
  }
2910
2912
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2911
- throw new (0, _chunkE23BQ5SCjs.RunEventQueryInputError)(
2913
+ throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2912
2914
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2913
2915
  );
2914
2916
  }
2915
2917
  if (sums.length && switches.has("--count")) {
2916
- throw new (0, _chunkE23BQ5SCjs.RunEventQueryInputError)(
2918
+ throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2917
2919
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2918
2920
  );
2919
2921
  }
@@ -2921,7 +2923,7 @@ function parseQuery(args, resource) {
2921
2923
  if (operation === "count") {
2922
2924
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2923
2925
  if (values[flag] !== void 0 || switches.has(flag)) {
2924
- throw new (0, _chunkE23BQ5SCjs.RunEventQueryInputError)(
2926
+ throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2925
2927
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2926
2928
  );
2927
2929
  }
@@ -2956,16 +2958,16 @@ function parseQuery(args, resource) {
2956
2958
  ];
2957
2959
  }
2958
2960
  }
2959
- const request = _chunkE23BQ5SCjs.normalizeRunEventOperationRequest.call(void 0, body);
2961
+ const request = _chunk36ML3YKAjs.normalizeRunEventOperationRequest.call(void 0, body);
2960
2962
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2961
2963
  const backend = values["--runtime-backend"];
2962
2964
  if (backend && backend !== "daytona" && backend !== "modal") {
2963
- throw new (0, _chunkE23BQ5SCjs.RunEventQueryInputError)(
2965
+ throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2964
2966
  "--runtime-backend must be daytona or modal."
2965
2967
  );
2966
2968
  }
2967
2969
  if (backend && !namespace) {
2968
- throw new (0, _chunkE23BQ5SCjs.RunEventQueryInputError)(
2970
+ throw new (0, _chunk36ML3YKAjs.RunEventQueryInputError)(
2969
2971
  "--runtime-backend requires --runtime-namespace."
2970
2972
  );
2971
2973
  }
@@ -3012,12 +3014,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3012
3014
  const failure = error instanceof Error ? error : new Error(String(error));
3013
3015
  const record3 = failure;
3014
3016
  const status = record3.statusCode;
3015
- const exitCode = error instanceof _chunkE23BQ5SCjs.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;
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;
3016
3018
  const diagnostic = Object.assign(failure, {
3017
3019
  exitCode,
3018
3020
  retryable: exitCode === 5
3019
3021
  });
3020
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) _chunkKGNTKMRGjs.printJsonError.call(void 0, diagnostic);
3022
+ if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) _chunkHRWUQJ4Kjs.printJsonError.call(void 0, diagnostic);
3021
3023
  else console.error(`Error: ${diagnostic.message}`);
3022
3024
  return exitCode;
3023
3025
  }
@@ -3032,7 +3034,7 @@ async function executeRunEventQuery(args, resource) {
3032
3034
  ...criteria
3033
3035
  } = request;
3034
3036
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3035
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
3037
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
3036
3038
  let result;
3037
3039
  if (request.operation === "fields") {
3038
3040
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3098,13 +3100,13 @@ async function executeRunEventQuery(args, resource) {
3098
3100
  lines.push(`Next page: ${nextPage}`);
3099
3101
  }
3100
3102
  }
3101
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
3103
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
3102
3104
  {
3103
3105
  ...result,
3104
3106
  ...nextPage ? { next: { page: nextPage } } : {},
3105
3107
  render: { sections: [{ title: `run ${resource}`, lines }] }
3106
3108
  },
3107
- { json: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3109
+ { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3108
3110
  ` }
3109
3111
  );
3110
3112
  return 0;
@@ -3924,7 +3926,7 @@ function checkedRunExample(plays, target) {
3924
3926
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3925
3927
  const base = `deepline plays run --file ${quote(target)}`;
3926
3928
  return {
3927
- command: `${base}${_chunkE23BQ5SCjs.playInputExampleArgs.call(void 0, schema)}`,
3929
+ command: `${base}${_chunkDRM3CMHLjs.playInputExampleArgs.call(void 0, schema)}`,
3928
3930
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema."
3929
3931
  };
3930
3932
  }
@@ -4022,7 +4024,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4022
4024
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4023
4025
  );
4024
4026
  }
4025
- const response = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().runs.getReceipts(runId, {
4027
+ const response = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.getReceipts(runId, {
4026
4028
  keys
4027
4029
  });
4028
4030
  const failed = response.receipts.filter(
@@ -4034,7 +4036,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4034
4036
  JSON.stringify(response, null, 2) + "\n",
4035
4037
  { flag: "wx", mode: 384 }
4036
4038
  );
4037
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
4039
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
4038
4040
  {
4039
4041
  runId,
4040
4042
  out: options.out,
@@ -4044,7 +4046,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4044
4046
  { json: true }
4045
4047
  );
4046
4048
  } else {
4047
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4049
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4048
4050
  }
4049
4051
  if (failed)
4050
4052
  process.exitCode = response.receipts.some(
@@ -4083,7 +4085,7 @@ includes nextCommand when another page is available.
4083
4085
  { exitCode: 2 }
4084
4086
  );
4085
4087
  }
4086
- const page = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().runs.children(parentRunId, {
4088
+ const page = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.children(parentRunId, {
4087
4089
  launchKey: options.launchKey,
4088
4090
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4089
4091
  limit
@@ -4098,7 +4100,7 @@ includes nextCommand when another page is available.
4098
4100
  "--limit",
4099
4101
  String(limit)
4100
4102
  ].join(" ") : null;
4101
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
4103
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
4102
4104
  {
4103
4105
  parentRunId,
4104
4106
  launchKey: options.launchKey,
@@ -4134,7 +4136,7 @@ async function handleRunsHistory(options) {
4134
4136
  throw new Error("--limit must be a positive integer.");
4135
4137
  }
4136
4138
  }
4137
- const page = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().runs.history({
4139
+ const page = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.history({
4138
4140
  cursor: options.cursor,
4139
4141
  orgId: options.org,
4140
4142
  search: options.search,
@@ -4150,7 +4152,7 @@ async function handleRunsHistory(options) {
4150
4152
  );
4151
4153
  }
4152
4154
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4153
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
4155
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
4154
4156
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4155
4157
  options.json ? { json: true } : {}
4156
4158
  );
@@ -4202,12 +4204,12 @@ async function runRunsRerunCommand(runId, options) {
4202
4204
  return 1;
4203
4205
  }
4204
4206
  }
4205
- const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().runs.rerun(runId, {
4207
+ const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.rerun(runId, {
4206
4208
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4207
4209
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4208
4210
  });
4209
- if (_chunkKGNTKMRGjs.shouldEmitJson.call(void 0, options.json)) {
4210
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, result, { json: true });
4211
+ if (_chunkHRWUQJ4Kjs.shouldEmitJson.call(void 0, options.json)) {
4212
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, result, { json: true });
4211
4213
  } else {
4212
4214
  console.log(
4213
4215
  result.deduplicated === true ? `
@@ -4475,7 +4477,7 @@ function projectRunDatasetCell(value) {
4475
4477
  const logicalValue = parseSerializedDatasetValue(value);
4476
4478
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
4477
4479
  if (typeof logicalValue === "object") {
4478
- return _chunkKGNTKMRGjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4480
+ return _chunkHRWUQJ4Kjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4479
4481
  }
4480
4482
  return logicalValue;
4481
4483
  }
@@ -6902,7 +6904,7 @@ function renderOutcome(outcome) {
6902
6904
  function printResult2(input) {
6903
6905
  const failed = input.status === "failed" || input.status === "cancelled";
6904
6906
  if (failed) process.exitCode = 1;
6905
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
6907
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
6906
6908
  {
6907
6909
  deployment: { ...input.deployment, status: input.status },
6908
6910
  plays: input.outcomes,
@@ -6927,7 +6929,7 @@ async function handlePlaysDeploy(directory, options) {
6927
6929
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6928
6930
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6929
6931
  });
6930
- const { http, config } = _chunkKGNTKMRGjs.getAuthedHttpClient.call(void 0, );
6932
+ const { http, config } = _chunkHRWUQJ4Kjs.getAuthedHttpClient.call(void 0, );
6931
6933
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6932
6934
  const startDeployment = () => http.post("/api/v2/deployments", {
6933
6935
  deliveryId,
@@ -6954,7 +6956,7 @@ async function handlePlaysDeploy(directory, options) {
6954
6956
  },
6955
6957
  {
6956
6958
  bundle: bundleDeployPlayFile,
6957
- fetchImpl: _chunkCS6RAIVYjs.fetchWithDeploymentProtection,
6959
+ fetchImpl: _chunk56IFFVIBjs.fetchWithDeploymentProtection,
6958
6960
  // The plays are already here: "opening" the source is naming it.
6959
6961
  openSource: async () => ({
6960
6962
  open: async () => ({ repoRoot: root })
@@ -7522,7 +7524,7 @@ function parseInputFlagValue(raw) {
7522
7524
  return raw;
7523
7525
  }
7524
7526
  function parsePlayRunOptions(args, initialInput = null) {
7525
- const selection = _chunkKGNTKMRGjs.parseJsonFields.call(void 0, args, "run");
7527
+ const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0, args, "run");
7526
7528
  args = selection.args;
7527
7529
  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.";
7528
7530
  let filePath = null;
@@ -7534,7 +7536,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7534
7536
  let revisionSelector = null;
7535
7537
  const watch = !args.includes("--no-wait");
7536
7538
  const dryRun = args.includes("--dry-run");
7537
- let jsonOutput = dryRun ? _chunkKGNTKMRGjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkKGNTKMRGjs.argsWantJson.call(void 0, args);
7539
+ let jsonOutput = dryRun ? _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
7538
7540
  const fullJson = args.includes("--full");
7539
7541
  const force = args.includes("--force");
7540
7542
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -7597,7 +7599,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7597
7599
  "--log-level requires one of: debug, info, warn, error."
7598
7600
  );
7599
7601
  }
7600
- const parsed = _chunkE23BQ5SCjs.parseLogLevel.call(void 0, value);
7602
+ const parsed = _chunk36ML3YKAjs.parseLogLevel.call(void 0, value);
7601
7603
  if (!parsed) {
7602
7604
  throw new Error(
7603
7605
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -7915,7 +7917,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7915
7917
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
7916
7918
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
7917
7919
  );
7918
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkE23BQ5SCjs.parseLogLevel.call(void 0, options.logLevel);
7920
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk36ML3YKAjs.parseLogLevel.call(void 0, options.logLevel);
7919
7921
  if (!logLevel)
7920
7922
  throw new Error("--log-level requires one of: debug, info, warn, error.");
7921
7923
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -7929,13 +7931,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7929
7931
  if (debugAlias || debugMapLatency && logLevel === "info")
7930
7932
  logLevel = "debug";
7931
7933
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
7932
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkKGNTKMRGjs.parseJsonFields.call(void 0,
7933
- [...fullJson ? ["--full"] : [], ..._chunkKGNTKMRGjs.jsonFieldArgs.call(void 0, options.json)],
7934
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0,
7935
+ [...fullJson ? ["--full"] : [], ..._chunkHRWUQJ4Kjs.jsonFieldArgs.call(void 0, options.json)],
7934
7936
  "run"
7935
7937
  ).fields;
7936
7938
  const watch = options.wait === false ? false : base.watch;
7937
7939
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
7938
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkKGNTKMRGjs.argsWantJson.call(void 0, []) : explicitJson;
7940
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, []) : explicitJson;
7939
7941
  const verboseLogs = Boolean(
7940
7942
  debugAlias || logLevel === "debug" || debugMapLatency
7941
7943
  );
@@ -7982,7 +7984,7 @@ function playAuthoringGraphPath(parent, filePath) {
7982
7984
  // src/cli/renderers/local-play-execution.ts
7983
7985
  function renderLocalPlayExecutionPlan(plan, options = {}) {
7984
7986
  if (options.dryRun) {
7985
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7987
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7986
7988
  return;
7987
7989
  }
7988
7990
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -8946,7 +8948,7 @@ function playStatusErrorText(status) {
8946
8948
  function isRetryablePendingStartFailure(status) {
8947
8949
  if (status.status !== "failed") return false;
8948
8950
  if (status.runId && status.runId !== "pending") return false;
8949
- return _chunkE23BQ5SCjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8951
+ return _chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8950
8952
  }
8951
8953
  function pendingStartFailureStatus(input) {
8952
8954
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -8973,13 +8975,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
8973
8975
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
8974
8976
  function watchSurfaceReaches(state, provenance, level) {
8975
8977
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
8976
- if (!_chunkE23BQ5SCjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8978
+ if (!_chunk36ML3YKAjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8977
8979
  return false;
8978
8980
  }
8979
- if (_chunkE23BQ5SCjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8981
+ if (_chunk36ML3YKAjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8980
8982
  return true;
8981
8983
  }
8982
- return state.verbose === true && _chunkE23BQ5SCjs.logProvenanceReaches.call(void 0, provenance, "debug");
8984
+ return state.verbose === true && _chunk36ML3YKAjs.logProvenanceReaches.call(void 0, provenance, "debug");
8983
8985
  }
8984
8986
  function getEventPayload(event) {
8985
8987
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -9486,7 +9488,7 @@ function resolveRunPlayName(status, runId) {
9486
9488
  }
9487
9489
  function openPlayDashboard(dashboardUrl, open2) {
9488
9490
  if (open2 && dashboardUrl) {
9489
- _chunkKGNTKMRGjs.openInBrowser.call(void 0, dashboardUrl);
9491
+ _chunkHRWUQJ4Kjs.openInBrowser.call(void 0, dashboardUrl);
9490
9492
  }
9491
9493
  }
9492
9494
  function printPlayLogLines(input) {
@@ -9548,7 +9550,7 @@ async function waitForPlayCompletionByWatch(input) {
9548
9550
  billing: false
9549
9551
  });
9550
9552
  } catch (error) {
9551
- if (_chunkE23BQ5SCjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9553
+ if (_chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9552
9554
  return null;
9553
9555
  }
9554
9556
  throw error;
@@ -9746,7 +9748,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9746
9748
  billing: false
9747
9749
  });
9748
9750
  } catch (error) {
9749
- if (_chunkE23BQ5SCjs.isTransientPlayRunReadError.call(void 0, error)) {
9751
+ if (_chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, error)) {
9750
9752
  return null;
9751
9753
  }
9752
9754
  throw error;
@@ -9954,7 +9956,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9954
9956
  lastPhase
9955
9957
  });
9956
9958
  }
9957
- if (lastKnownWorkflowId && _chunkE23BQ5SCjs.isTransientPlayRunReadError.call(void 0, error)) {
9959
+ if (lastKnownWorkflowId && _chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, error)) {
9958
9960
  if (timeout) {
9959
9961
  clearTimeout(timeout);
9960
9962
  }
@@ -9990,7 +9992,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9990
9992
  onRunAdmitted: confirmAdmission
9991
9993
  });
9992
9994
  }
9993
- if (!lastKnownWorkflowId && _chunkE23BQ5SCjs.isTransientPlayRunReadError.call(void 0, error)) {
9995
+ if (!lastKnownWorkflowId && _chunk36ML3YKAjs.isTransientPlayRunReadError.call(void 0, error)) {
9994
9996
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
9995
9997
  phase: "cli.play_start_stream_transient_failure",
9996
9998
  ms: Date.now() - startedAt,
@@ -10089,7 +10091,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10089
10091
  "logs"
10090
10092
  ]);
10091
10093
  function formatPlayLogLine(rawLine, state) {
10092
- const classified = _chunkE23BQ5SCjs.classifyLogLine.call(void 0, rawLine);
10094
+ const classified = _chunk36ML3YKAjs.classifyLogLine.call(void 0, rawLine);
10093
10095
  const line = classified.line;
10094
10096
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10095
10097
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _317 => _317[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10104,14 +10106,14 @@ function formatPlayLogLine(rawLine, state) {
10104
10106
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10105
10107
  const providerWait = formatProviderCapacityWaitLogLine(line);
10106
10108
  if (providerWait && !state.verbose) {
10107
- return _chunkE23BQ5SCjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10109
+ return _chunk36ML3YKAjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10108
10110
  }
10109
10111
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10110
10112
  if (mapProgress && !state.verbose) {
10111
- return _chunkE23BQ5SCjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10113
+ return _chunk36ML3YKAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10112
10114
  }
10113
10115
  if (/\[worker\] picked up run\b/.test(message)) {
10114
- if (!_chunkE23BQ5SCjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10116
+ if (!_chunk36ML3YKAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10115
10117
  return null;
10116
10118
  }
10117
10119
  if (state.emittedRunnerStarted) {
@@ -10124,7 +10126,7 @@ function formatPlayLogLine(rawLine, state) {
10124
10126
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10125
10127
  );
10126
10128
  if (mapStart) {
10127
- if (!_chunkE23BQ5SCjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10129
+ if (!_chunk36ML3YKAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10128
10130
  return null;
10129
10131
  }
10130
10132
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10134,7 +10136,7 @@ function formatPlayLogLine(rawLine, state) {
10134
10136
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10135
10137
  );
10136
10138
  if (mapDone) {
10137
- if (!_chunkE23BQ5SCjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10139
+ if (!_chunk36ML3YKAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10138
10140
  return null;
10139
10141
  }
10140
10142
  const [, results, executed, cached] = mapDone;
@@ -11421,7 +11423,7 @@ function formatRecentRunLogLines(value) {
11421
11423
  (line) => typeof line === "string"
11422
11424
  );
11423
11425
  if (tail.length === 0) return [];
11424
- const shown = tail.map((line) => _chunkE23BQ5SCjs.classifyLogLine.call(void 0, line)).filter(
11426
+ const shown = tail.map((line) => _chunk36ML3YKAjs.classifyLogLine.call(void 0, line)).filter(
11425
11427
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
11426
11428
  ).slice(-8);
11427
11429
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11704,7 +11706,7 @@ function writePlayResult(status, jsonOutput, options) {
11704
11706
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _398 => _398.hits]), () => ( null));
11705
11707
  if (jsonOutput) {
11706
11708
  const payload2 = _optionalChain([options, 'optionalAccess', _399 => _399.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11707
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
11709
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
11708
11710
  hits ? { ...payload2, hits } : payload2,
11709
11711
  { json: true, fields: _optionalChain([options, 'optionalAccess', _400 => _400.jsonFields]) }
11710
11712
  );
@@ -11720,7 +11722,7 @@ function writePlayResult(status, jsonOutput, options) {
11720
11722
  ...buildPlayCompletionTextLines(status),
11721
11723
  ...formatRunHitsLines(hits)
11722
11724
  ];
11723
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, displayPackage, {
11725
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, displayPackage, {
11724
11726
  json: false,
11725
11727
  text: `${lines2.join("\n")}
11726
11728
  `
@@ -11771,7 +11773,7 @@ function writePlayResult(status, jsonOutput, options) {
11771
11773
  lines.push(...buildBillingRollupTextLines(status));
11772
11774
  const compact = compactPlayStatus(status);
11773
11775
  const payload = _optionalChain([options, 'optionalAccess', _402 => _402.fullJson]) ? status : compact;
11774
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
11776
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
11775
11777
  {
11776
11778
  ...payload,
11777
11779
  render: {
@@ -12541,7 +12543,7 @@ function writeStartedPlayRun(input) {
12541
12543
  dashboardUrl: input.dashboardUrl,
12542
12544
  package: input.package
12543
12545
  };
12544
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12546
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12545
12547
  json: true,
12546
12548
  fields: input.jsonFields
12547
12549
  });
@@ -12563,7 +12565,7 @@ function writeStartedPlayRun(input) {
12563
12565
  input.progress.writeLine(output2, process.stdout);
12564
12566
  return;
12565
12567
  }
12566
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, input.package, {
12568
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, input.package, {
12567
12569
  json: false,
12568
12570
  text: `${output2}
12569
12571
  `
@@ -12592,7 +12594,7 @@ function writeStartedPlayRun(input) {
12592
12594
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12593
12595
  ];
12594
12596
  if (input.jsonOutput) {
12595
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12597
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12596
12598
  return;
12597
12599
  }
12598
12600
  if (input.dashboardUrl) {
@@ -12603,7 +12605,7 @@ function writeStartedPlayRun(input) {
12603
12605
  input.progress.writeLine(output, process.stdout);
12604
12606
  return;
12605
12607
  }
12606
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
12608
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
12607
12609
  {
12608
12610
  ...payload,
12609
12611
  render: { sections: [{ title: "play run", lines }] }
@@ -12613,7 +12615,7 @@ function writeStartedPlayRun(input) {
12613
12615
  );
12614
12616
  }
12615
12617
  function parsePlayCheckOptions(args) {
12616
- const selection = _chunkKGNTKMRGjs.parseJsonFields.call(void 0, args, "check");
12618
+ const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0, args, "check");
12617
12619
  args = selection.args;
12618
12620
  const target = args[0];
12619
12621
  if (!target || target.startsWith("-")) {
@@ -12625,7 +12627,7 @@ function parsePlayCheckOptions(args) {
12625
12627
  if (arg !== "--json" && arg !== "--full")
12626
12628
  throw new Error(`Unknown plays check option: ${arg}`);
12627
12629
  }
12628
- const jsonOutput = _chunkKGNTKMRGjs.argsWantJson.call(void 0, args);
12630
+ const jsonOutput = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
12629
12631
  return {
12630
12632
  target,
12631
12633
  jsonOutput,
@@ -12701,7 +12703,7 @@ ${PLAY_PUBLISH_USAGE}`
12701
12703
  useLatest,
12702
12704
  expectedArtifactHash,
12703
12705
  dryRun,
12704
- jsonOutput: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args)
12706
+ jsonOutput: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)
12705
12707
  };
12706
12708
  }
12707
12709
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12742,7 +12744,7 @@ ${PLAY_SAVE_USAGE}`);
12742
12744
  target,
12743
12745
  expectedArtifactHash,
12744
12746
  dryRun,
12745
- jsonOutput: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args)
12747
+ jsonOutput: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)
12746
12748
  };
12747
12749
  }
12748
12750
  function printScheduledPlayCapacity(capacity) {
@@ -12953,14 +12955,14 @@ function printBundledRuntimeWarning(bundle) {
12953
12955
  async function handlePlayCheck(args) {
12954
12956
  const options = parsePlayCheckOptions(args);
12955
12957
  if (!isFileTarget2(options.target)) {
12956
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
12958
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
12957
12959
  try {
12958
12960
  await assertCanonicalNamedPlayReference(client, options.target, {
12959
12961
  command: "check"
12960
12962
  });
12961
12963
  const play = await client.describePlay(
12962
12964
  parseReferencedPlayTarget2(options.target).playName,
12963
- { compact: true }
12965
+ { compact: true, pipeline: options.full }
12964
12966
  );
12965
12967
  const result = {
12966
12968
  kind: "play_check",
@@ -12982,7 +12984,7 @@ async function handlePlayCheck(args) {
12982
12984
  },
12983
12985
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12984
12986
  };
12985
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, result, {
12987
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, result, {
12986
12988
  json: options.jsonOutput,
12987
12989
  fields: options.jsonFields,
12988
12990
  text: renderPlayCheckOutput(result) + "\n"
@@ -12992,7 +12994,7 @@ async function handlePlayCheck(args) {
12992
12994
  const resolved = _path.resolve.call(void 0, options.target);
12993
12995
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12994
12996
  if (options.jsonOutput) {
12995
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
12997
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
12996
12998
  {
12997
12999
  kind: "play_check",
12998
13000
  checked: "named_contract",
@@ -13034,7 +13036,7 @@ async function handlePlayCheck(args) {
13034
13036
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
13035
13037
  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
13036
13038
  });
13037
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, output, {
13039
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, output, {
13038
13040
  json: options.jsonOutput,
13039
13041
  fields: options.jsonFields,
13040
13042
  text: renderPlayCheckOutput(output) + "\n"
@@ -13088,7 +13090,7 @@ async function checkOneExportedPlay(input) {
13088
13090
  }
13089
13091
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
13090
13092
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
13091
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
13093
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
13092
13094
  const integrationMode = resolveEvalIntegrationMode();
13093
13095
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
13094
13096
  playName: node.playName,
@@ -13165,7 +13167,7 @@ async function handleFileBackedRun(options, hooks) {
13165
13167
  );
13166
13168
  return 0;
13167
13169
  }
13168
- client = new (0, _chunkE23BQ5SCjs.DeeplineClient)(playRunClientOptions(options));
13170
+ client = new (0, _chunk36ML3YKAjs.DeeplineClient)(playRunClientOptions(options));
13169
13171
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
13170
13172
  if (canDeferCompilerManifest) {
13171
13173
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
@@ -13364,7 +13366,7 @@ async function handleNamedRun(options, hooks) {
13364
13366
  if (options.target.kind !== "name") {
13365
13367
  throw new Error("Expected a named play run target.");
13366
13368
  }
13367
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)(playRunClientOptions(options));
13369
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)(playRunClientOptions(options));
13368
13370
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
13369
13371
  const playName = options.target.name;
13370
13372
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -13561,7 +13563,7 @@ async function handlePlayRun(args, hooks) {
13561
13563
  JSON.stringify({
13562
13564
  version: 1,
13563
13565
  admissionState: "submitted_unknown",
13564
- baseUrl: new (0, _chunkE23BQ5SCjs.DeeplineClient)().baseUrl,
13566
+ baseUrl: new (0, _chunk36ML3YKAjs.DeeplineClient)().baseUrl,
13565
13567
  ...intent
13566
13568
  })
13567
13569
  );
@@ -13790,10 +13792,10 @@ function renderRunOverviewText(overview, extras = {}) {
13790
13792
  );
13791
13793
  return `${lines.join("\n")}
13792
13794
 
13793
- ${_chunkKGNTKMRGjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13795
+ ${_chunkHRWUQJ4Kjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13794
13796
  }
13795
13797
  async function handleRunGet(args) {
13796
- const selection = _chunkKGNTKMRGjs.parseJsonFields.call(void 0,
13798
+ const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0,
13797
13799
  args,
13798
13800
  args.includes("--config") ? "config" : "get"
13799
13801
  );
@@ -13806,7 +13808,7 @@ async function handleRunGet(args) {
13806
13808
  console.error(error instanceof Error ? error.message : usage2);
13807
13809
  return 1;
13808
13810
  }
13809
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
13811
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
13810
13812
  if (args.includes("--web-url")) {
13811
13813
  const status2 = await client.runs.get(runId, { full: false });
13812
13814
  const playName2 = resolveRunPlayName(status2, runId);
@@ -13815,7 +13817,7 @@ async function handleRunGet(args) {
13815
13817
  return 1;
13816
13818
  }
13817
13819
  const dashboardUrl2 = buildPlayDashboardUrl(client.baseUrl, playName2);
13818
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
13820
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13819
13821
  { dashboardUrl: dashboardUrl2 },
13820
13822
  { json: args.includes("--json"), text: `${dashboardUrl2}
13821
13823
  ` }
@@ -13835,7 +13837,7 @@ async function handleRunGet(args) {
13835
13837
  "This server does not support recorded configuration reads."
13836
13838
  );
13837
13839
  }
13838
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
13840
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13839
13841
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13840
13842
  { json: true, fields: selection.fields }
13841
13843
  );
@@ -13843,7 +13845,7 @@ async function handleRunGet(args) {
13843
13845
  }
13844
13846
  if (args.includes("--input")) {
13845
13847
  const input = await client.getRunInput(runId);
13846
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, input, { json: true });
13848
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, input, { json: true });
13847
13849
  return 0;
13848
13850
  }
13849
13851
  const full = args.includes("--full");
@@ -13859,8 +13861,8 @@ async function handleRunGet(args) {
13859
13861
  }) : status;
13860
13862
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
13861
13863
  const legacyDashboardUrl = legacyPlayName ? buildPlayDashboardUrl(client.baseUrl, legacyPlayName) : null;
13862
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
13863
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
13864
+ if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
13865
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13864
13866
  {
13865
13867
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
13866
13868
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
@@ -13870,7 +13872,7 @@ async function handleRunGet(args) {
13870
13872
  } else {
13871
13873
  writePlayResult(legacyStatus, false, { fullJson: full });
13872
13874
  if (legacyDashboardUrl)
13873
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
13875
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13874
13876
  { dashboardUrl: legacyDashboardUrl },
13875
13877
  { json: false, text: `play page: ${legacyDashboardUrl}
13876
13878
  ` }
@@ -13885,10 +13887,10 @@ async function handleRunGet(args) {
13885
13887
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
13886
13888
  ]);
13887
13889
  const hitLines = formatRunHitsLines(hits);
13888
- const json = _chunkKGNTKMRGjs.argsWantJson.call(void 0, args);
13890
+ const json = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
13889
13891
  const playName = resolveRunPlayName(status, runId);
13890
13892
  const dashboardUrl = playName ? buildPlayDashboardUrl(client.baseUrl, playName) : void 0;
13891
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
13893
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
13892
13894
  {
13893
13895
  ...overview,
13894
13896
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -13992,9 +13994,9 @@ async function handleRunLifecycleStatus(args) {
13992
13994
  console.error(error instanceof Error ? error.message : usage2);
13993
13995
  return 1;
13994
13996
  }
13995
- const status = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().runs.status(runId);
13996
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
13997
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, status, { json: true });
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 });
13998
14000
  return 0;
13999
14001
  }
14000
14002
  if (!status.available) {
@@ -14034,7 +14036,7 @@ async function handleRunsRerun(args) {
14034
14036
  console.error(error instanceof Error ? error.message : usage2);
14035
14037
  return 1;
14036
14038
  }
14037
- const options = { json: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args) };
14039
+ const options = { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) };
14038
14040
  for (let index = 0; index < args.length; index += 1) {
14039
14041
  if (args[index] === "--idempotency-key") {
14040
14042
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -14099,8 +14101,8 @@ ${usage2}
14099
14101
  Discover Plays: ${next.discover}
14100
14102
  Active runs: ${next.running}`
14101
14103
  );
14102
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
14103
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
14104
+ if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
14105
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14104
14106
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
14105
14107
  { json: true }
14106
14108
  );
@@ -14115,7 +14117,7 @@ Active runs: ${next.running}`
14115
14117
  console.error("--offset requires --play.");
14116
14118
  return 1;
14117
14119
  }
14118
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
14120
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14119
14121
  const page = await client.runs.listPage({
14120
14122
  ...playName ? { play: playName } : {},
14121
14123
  ...statusFilter ? { status: statusFilter } : {},
@@ -14184,7 +14186,7 @@ Active runs: ${next.running}`
14184
14186
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14185
14187
  );
14186
14188
  }
14187
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
14189
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14188
14190
  {
14189
14191
  runs,
14190
14192
  count: runs.length,
@@ -14198,7 +14200,7 @@ Active runs: ${next.running}`
14198
14200
  },
14199
14201
  render: { sections: [{ title: "runs", lines }] }
14200
14202
  },
14201
- { json: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args) }
14203
+ { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14202
14204
  );
14203
14205
  return 0;
14204
14206
  }
@@ -14228,7 +14230,7 @@ async function handleRunTail(args) {
14228
14230
  console.error("--log-level requires one of: debug, info, warn, error.");
14229
14231
  return 1;
14230
14232
  }
14231
- const parsed = _chunkE23BQ5SCjs.parseLogLevel.call(void 0, value);
14233
+ const parsed = _chunk36ML3YKAjs.parseLogLevel.call(void 0, value);
14232
14234
  if (!parsed) {
14233
14235
  console.error(
14234
14236
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14266,9 +14268,9 @@ async function handleRunTail(args) {
14266
14268
  );
14267
14269
  return 1;
14268
14270
  }
14269
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
14271
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14270
14272
  const jsonLines = args.includes("--jsonl");
14271
- const jsonOutput = !jsonLines && _chunkKGNTKMRGjs.argsWantJson.call(void 0, args);
14273
+ const jsonOutput = !jsonLines && _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
14272
14274
  const compact = args.includes("--compact");
14273
14275
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14274
14276
  const compactState = {
@@ -14349,7 +14351,7 @@ async function handleRunLogs(args) {
14349
14351
  ]);
14350
14352
  const cursorIndex = args.indexOf("--cursor");
14351
14353
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14352
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkE23BQ5SCjs.isRunLogsCursor.call(void 0, cursorValue));
14354
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk36ML3YKAjs.isRunLogsCursor.call(void 0, cursorValue));
14353
14355
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14354
14356
  return handleRunEventSearch(args);
14355
14357
  }
@@ -14383,7 +14385,7 @@ async function handleRunLogs(args) {
14383
14385
  console.error("--log-level requires one of: debug, info, warn, error.");
14384
14386
  return 1;
14385
14387
  }
14386
- const parsed = _chunkE23BQ5SCjs.parseLogLevel.call(void 0, value);
14388
+ const parsed = _chunk36ML3YKAjs.parseLogLevel.call(void 0, value);
14387
14389
  if (!parsed) {
14388
14390
  console.error(
14389
14391
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14430,12 +14432,12 @@ async function handleRunLogs(args) {
14430
14432
  );
14431
14433
  return 1;
14432
14434
  }
14433
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
14435
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14434
14436
  if (outPath) {
14435
14437
  const result2 = await client.runs.logs(runId, { all: true });
14436
- const logs = result2.entries.filter((line) => _chunkE23BQ5SCjs.logLevelReaches.call(void 0, _chunkE23BQ5SCjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkE23BQ5SCjs.classifyLogLine.call(void 0, line).line);
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);
14437
14439
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14438
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
14440
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14439
14441
  {
14440
14442
  runId: result2.runId,
14441
14443
  log_path: outPath,
@@ -14458,7 +14460,7 @@ async function handleRunLogs(args) {
14458
14460
  ]
14459
14461
  }
14460
14462
  },
14461
- { json: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args) }
14463
+ { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14462
14464
  );
14463
14465
  return 0;
14464
14466
  }
@@ -14489,7 +14491,7 @@ async function handleRunLogs(args) {
14489
14491
  }
14490
14492
  };
14491
14493
  const text = buildRunLogsText(filteredResult);
14492
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
14494
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14493
14495
  {
14494
14496
  runId: result.runId,
14495
14497
  totalCount: result.totalCount,
@@ -14513,7 +14515,7 @@ async function handleRunLogs(args) {
14513
14515
  render: { sections: [{ title: "run logs", lines: entries }] }
14514
14516
  },
14515
14517
  {
14516
- json: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args),
14518
+ json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args),
14517
14519
  text
14518
14520
  }
14519
14521
  );
@@ -14537,7 +14539,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14537
14539
  );
14538
14540
  }
14539
14541
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14540
- (entry) => _chunkE23BQ5SCjs.logLevelReaches.call(void 0, _chunkE23BQ5SCjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14542
+ (entry) => _chunk36ML3YKAjs.logLevelReaches.call(void 0, _chunk36ML3YKAjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14541
14543
  );
14542
14544
  const selected = matching.slice(-limit);
14543
14545
  const olderMatchesExist = matching.length > selected.length;
@@ -14547,7 +14549,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14547
14549
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _498 => _498.at, 'call', _499 => _499(-1), 'optionalAccess', _500 => _500.seq]), () => ( null)),
14548
14550
  truncated: result.truncated || olderMatchesExist,
14549
14551
  hasMore: olderMatchesExist,
14550
- nextCursor: olderMatchesExist ? _chunkE23BQ5SCjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14552
+ nextCursor: olderMatchesExist ? _chunk36ML3YKAjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14551
14553
  };
14552
14554
  }
14553
14555
  async function handleRunEventSearch(args) {
@@ -14614,7 +14616,7 @@ ${usage2}`);
14614
14616
  namespace,
14615
14617
  ...backend ? { backend } : {}
14616
14618
  } : void 0;
14617
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
14619
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14618
14620
  const result = await client.runs.searchEvents({
14619
14621
  ...runId ? { runId } : {},
14620
14622
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14686,7 +14688,7 @@ ${renderedDetails}` : ""}`;
14686
14688
  "--limit",
14687
14689
  String(limit)
14688
14690
  ].join(" ") : null;
14689
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
14691
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14690
14692
  {
14691
14693
  events,
14692
14694
  nextCursor: result.nextCursor,
@@ -14697,14 +14699,14 @@ ${renderedDetails}` : ""}`;
14697
14699
  render: { sections: [{ title: "runtime events", lines }] }
14698
14700
  },
14699
14701
  {
14700
- json: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args),
14702
+ json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args),
14701
14703
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14702
14704
  }
14703
14705
  );
14704
14706
  return 0;
14705
14707
  }
14706
14708
  function buildRunLogsText(result) {
14707
- const lines = result.entries.map((line) => _chunkE23BQ5SCjs.classifyLogLine.call(void 0, line).line);
14709
+ const lines = result.entries.map((line) => _chunk36ML3YKAjs.classifyLogLine.call(void 0, line).line);
14708
14710
  if (result.warning) {
14709
14711
  if (lines.length > 0) lines.push("");
14710
14712
  lines.push(`warning: ${result.warning}`);
@@ -14738,7 +14740,7 @@ async function handleRunStop(args) {
14738
14740
  reason = args[++index];
14739
14741
  }
14740
14742
  }
14741
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
14743
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14742
14744
  const result = await client.runs.stop(runId, { reason });
14743
14745
  const state = resolveRunStopState(result);
14744
14746
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14753,7 +14755,7 @@ async function handleRunStop(args) {
14753
14755
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14754
14756
  `inspect: deepline runs get ${runId} --full`
14755
14757
  ];
14756
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
14758
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14757
14759
  {
14758
14760
  ...cancelling,
14759
14761
  state,
@@ -14768,7 +14770,7 @@ async function handleRunStop(args) {
14768
14770
  ]
14769
14771
  }
14770
14772
  },
14771
- { json: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args) }
14773
+ { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14772
14774
  );
14773
14775
  return 0;
14774
14776
  }
@@ -14785,7 +14787,7 @@ async function handleRunStop(args) {
14785
14787
  ];
14786
14788
  process.stderr.write(`${lines2.join("\n")}
14787
14789
  `);
14788
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
14790
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14789
14791
  {
14790
14792
  ...result,
14791
14793
  render: {
@@ -14800,7 +14802,7 @@ async function handleRunStop(args) {
14800
14802
  ]
14801
14803
  }
14802
14804
  },
14803
- { json: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args) }
14805
+ { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14804
14806
  );
14805
14807
  return 1;
14806
14808
  }
@@ -14811,12 +14813,12 @@ async function handleRunStop(args) {
14811
14813
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14812
14814
  ] : []
14813
14815
  ];
14814
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
14816
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14815
14817
  {
14816
14818
  ...result,
14817
14819
  render: { sections: [{ title: "run stop", lines }] }
14818
14820
  },
14819
- { json: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args) }
14821
+ { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14820
14822
  );
14821
14823
  return 0;
14822
14824
  }
@@ -14866,18 +14868,18 @@ async function handleRunStopAll(args) {
14866
14868
  reason = args[++index];
14867
14869
  }
14868
14870
  }
14869
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
14871
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14870
14872
  if (dryRun) {
14871
14873
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14872
14874
  const lines2 = buildStopAllDryRunTextLines(result2);
14873
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
14875
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14874
14876
  {
14875
14877
  ...result2,
14876
14878
  render: {
14877
14879
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14878
14880
  }
14879
14881
  },
14880
- { json: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14882
+ { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14881
14883
  ` }
14882
14884
  );
14883
14885
  return 0;
@@ -14890,17 +14892,17 @@ async function handleRunStopAll(args) {
14890
14892
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14891
14893
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14892
14894
  ];
14893
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
14895
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
14894
14896
  {
14895
14897
  ...result,
14896
14898
  render: { sections: [{ title: "workspace stop-all", lines }] }
14897
14899
  },
14898
- { json: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args) }
14900
+ { json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args) }
14899
14901
  );
14900
14902
  return result.failed > 0 || result.partial ? 1 : 0;
14901
14903
  }
14902
14904
  async function handleRunExport(args) {
14903
- const selection = _chunkKGNTKMRGjs.parseJsonFields.call(void 0, args, "export");
14905
+ const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0, args, "export");
14904
14906
  args = selection.args;
14905
14907
  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]";
14906
14908
  let runId;
@@ -14959,16 +14961,16 @@ async function handleRunExport(args) {
14959
14961
  "INVALID_ARGUMENT"
14960
14962
  );
14961
14963
  }
14962
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
14964
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
14963
14965
  let status = await client.getPlayStatus(runId, { full: true });
14964
14966
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14965
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkKGNTKMRGjs.argsWantJson.call(void 0, args));
14967
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args));
14966
14968
  try {
14967
14969
  await waitForPlayCompletionByWatch({
14968
14970
  client,
14969
14971
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14970
14972
  workflowId: runId,
14971
- jsonOutput: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args),
14973
+ jsonOutput: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args),
14972
14974
  emitLogs: false,
14973
14975
  waitTimeoutMs,
14974
14976
  startedAt: Date.now(),
@@ -15068,8 +15070,8 @@ async function handleRunExport(args) {
15068
15070
  "utf-8"
15069
15071
  );
15070
15072
  }
15071
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, payload, {
15072
- json: _chunkKGNTKMRGjs.argsWantJson.call(void 0, args),
15073
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, payload, {
15074
+ json: _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args),
15073
15075
  fields: selection.fields,
15074
15076
  text: `${lines.join("\n")}
15075
15077
  `
@@ -15090,10 +15092,10 @@ async function handlePlayGet(args) {
15090
15092
  );
15091
15093
  return 2;
15092
15094
  }
15093
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
15095
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15094
15096
  const explicitJson = args.includes("--json");
15095
15097
  const sourceOutput = args.includes("--source");
15096
- const jsonOutput = sourceOutput ? explicitJson : _chunkKGNTKMRGjs.argsWantJson.call(void 0, args);
15098
+ const jsonOutput = sourceOutput ? explicitJson : _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
15097
15099
  const requestedRevisionFlags = [
15098
15100
  args.includes("--working"),
15099
15101
  args.includes("--live"),
@@ -15153,7 +15155,7 @@ async function handlePlayGet(args) {
15153
15155
  }
15154
15156
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15155
15157
  if (jsonOutput) {
15156
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, {
15158
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
15157
15159
  ...detail,
15158
15160
  ...materializedFile ? {
15159
15161
  message: loadedMessage,
@@ -15245,8 +15247,8 @@ async function handlePlayVersions(args) {
15245
15247
  console.error("Usage: deepline plays versions --name <name> [--json]");
15246
15248
  return 1;
15247
15249
  }
15248
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
15249
- const jsonOutput = _chunkKGNTKMRGjs.argsWantJson.call(void 0, args);
15250
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15251
+ const jsonOutput = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
15250
15252
  await assertCanonicalNamedPlayReference(client, playName, {
15251
15253
  command: "versions"
15252
15254
  });
@@ -15254,7 +15256,7 @@ async function handlePlayVersions(args) {
15254
15256
  parseReferencedPlayTarget2(playName).playName
15255
15257
  );
15256
15258
  if (jsonOutput) {
15257
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, { versions });
15259
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, { versions });
15258
15260
  return 0;
15259
15261
  }
15260
15262
  if (versions.length === 0) {
@@ -15286,9 +15288,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
15286
15288
  "signals"
15287
15289
  ];
15288
15290
  async function handlePlayList(args) {
15289
- const jsonOutput = _chunkKGNTKMRGjs.argsWantJson.call(void 0, args);
15291
+ const jsonOutput = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
15290
15292
  const showCost = args.includes("--show-cost");
15291
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
15293
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15292
15294
  const categoriesIndex = args.indexOf("--categories");
15293
15295
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _536 => _536[categoriesIndex + 1], 'optionalAccess', _537 => _537.trim, 'call', _538 => _538()]) : void 0;
15294
15296
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15385,7 +15387,7 @@ async function handlePlayList(args) {
15385
15387
  lines.push("List truncated \u2014 more plays are available.");
15386
15388
  lines.push(`Next page: ${nextPage}`);
15387
15389
  }
15388
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
15390
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
15389
15391
  {
15390
15392
  plays,
15391
15393
  count: plays.length,
@@ -15403,7 +15405,7 @@ async function handlePlayList(args) {
15403
15405
  }
15404
15406
  async function handlePlayPin(args, pinned) {
15405
15407
  const target = _optionalChain([args, 'access', _545 => _545.find, 'call', _546 => _546((arg) => !arg.startsWith("-")), 'optionalAccess', _547 => _547.trim, 'call', _548 => _548()]);
15406
- const jsonOutput = _chunkKGNTKMRGjs.argsWantJson.call(void 0, args);
15408
+ const jsonOutput = _chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args);
15407
15409
  const dryRun = args.includes("--dry-run");
15408
15410
  if (!target) {
15409
15411
  console.error(
@@ -15421,11 +15423,11 @@ async function handlePlayPin(args, pinned) {
15421
15423
  const name = parsedTarget.playName;
15422
15424
  const plan = { name, pinned, dryRun };
15423
15425
  if (dryRun) {
15424
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, plan);
15426
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, plan);
15425
15427
  return 0;
15426
15428
  }
15427
- const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().setPlayPinned(name, pinned);
15428
- if (jsonOutput) _chunkKGNTKMRGjs.printCompactJson.call(void 0, result);
15429
+ const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().setPlayPinned(name, pinned);
15430
+ if (jsonOutput) _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
15429
15431
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15430
15432
  return 0;
15431
15433
  }
@@ -15441,7 +15443,7 @@ function csvColumnLines(csvInput) {
15441
15443
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
15442
15444
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
15443
15445
  }),
15444
- _chunkE23BQ5SCjs.CSV_HEADER_MATCHING_NOTE
15446
+ _chunkDRM3CMHLjs.CSV_HEADER_MATCHING_NOTE
15445
15447
  ];
15446
15448
  }
15447
15449
  function describedPlay(play) {
@@ -15607,12 +15609,12 @@ async function handlePlayGrep(args) {
15607
15609
  console.error("Usage: deepline plays grep <query> [--json]");
15608
15610
  return 1;
15609
15611
  }
15610
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
15612
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15611
15613
  const results = (await client.listPlays({ grep: query })).map(
15612
15614
  summarizePlayGrepResult
15613
15615
  );
15614
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
15615
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, {
15616
+ if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
15617
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
15616
15618
  plays: results,
15617
15619
  count: results.length,
15618
15620
  query,
@@ -15635,7 +15637,7 @@ async function handlePlayGrep(args) {
15635
15637
  return 0;
15636
15638
  }
15637
15639
  async function handlePlayDescribe(args) {
15638
- const selection = _chunkKGNTKMRGjs.parseJsonFields.call(void 0, args, "describe");
15640
+ const selection = _chunkHRWUQJ4Kjs.parseJsonFields.call(void 0, args, "describe");
15639
15641
  args = selection.args;
15640
15642
  const playName = args[0];
15641
15643
  if (!playName) {
@@ -15669,8 +15671,8 @@ async function handlePlayDescribe(args) {
15669
15671
  `deepline plays check ${playName}`,
15670
15672
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15671
15673
  ];
15672
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
15673
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, {
15674
+ if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
15675
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
15674
15676
  ok: false,
15675
15677
  error: { message },
15676
15678
  next
@@ -15684,7 +15686,7 @@ async function handlePlayDescribe(args) {
15684
15686
  }
15685
15687
  return 2;
15686
15688
  }
15687
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
15689
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15688
15690
  await assertCanonicalNamedPlayReference(client, playName, {
15689
15691
  command: "describe"
15690
15692
  });
@@ -15694,9 +15696,9 @@ async function handlePlayDescribe(args) {
15694
15696
  compact: args.includes("--compact")
15695
15697
  }
15696
15698
  );
15697
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
15698
- if (selection.fields) _chunkKGNTKMRGjs.printJson.call(void 0, play, selection.fields);
15699
- else _chunkKGNTKMRGjs.printCompactJson.call(void 0, play);
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);
15700
15702
  return 0;
15701
15703
  }
15702
15704
  printPlayDescription(play);
@@ -15740,7 +15742,7 @@ async function handlePlaySave(args) {
15740
15742
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15741
15743
  };
15742
15744
  if (options.jsonOutput) {
15743
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, result);
15745
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
15744
15746
  } else {
15745
15747
  console.error(result.message);
15746
15748
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15762,7 +15764,7 @@ async function handlePlaySave(args) {
15762
15764
  };
15763
15765
  if (options.dryRun) {
15764
15766
  if (options.jsonOutput) {
15765
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, dryRun);
15767
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, dryRun);
15766
15768
  } else {
15767
15769
  console.log(`Dry run: ${playName}`);
15768
15770
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15771,7 +15773,7 @@ async function handlePlaySave(args) {
15771
15773
  }
15772
15774
  return 0;
15773
15775
  }
15774
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
15776
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15775
15777
  try {
15776
15778
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
15777
15779
  "cli.play_save_compile_manifests",
@@ -15807,7 +15809,7 @@ async function handlePlaySave(args) {
15807
15809
  }
15808
15810
  };
15809
15811
  if (options.jsonOutput) {
15810
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, result);
15812
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
15811
15813
  } else {
15812
15814
  console.log(
15813
15815
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15833,7 +15835,7 @@ async function handlePlayPublish(args) {
15833
15835
  }
15834
15836
  const { target: playName, useLatest } = options;
15835
15837
  let revisionId = options.revisionId;
15836
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
15838
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
15837
15839
  if (isFileTarget2(playName)) {
15838
15840
  if (revisionId || useLatest) {
15839
15841
  console.error(
@@ -15865,7 +15867,7 @@ async function handlePlayPublish(args) {
15865
15867
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15866
15868
  };
15867
15869
  if (options.jsonOutput) {
15868
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, result3);
15870
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result3);
15869
15871
  } else {
15870
15872
  console.error(result3.message);
15871
15873
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15888,7 +15890,7 @@ async function handlePlayPublish(args) {
15888
15890
  };
15889
15891
  if (options.dryRun) {
15890
15892
  if (options.jsonOutput) {
15891
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, dryRun);
15893
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, dryRun);
15892
15894
  } else {
15893
15895
  console.log(`Dry run: ${rootPlayName}`);
15894
15896
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15956,7 +15958,7 @@ async function handlePlayPublish(args) {
15956
15958
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15957
15959
  };
15958
15960
  if (options.jsonOutput) {
15959
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, result2);
15961
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result2);
15960
15962
  } else {
15961
15963
  printPublishReceipt({
15962
15964
  name: rootPlayName,
@@ -15987,7 +15989,7 @@ async function handlePlayPublish(args) {
15987
15989
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15988
15990
  latest: useLatest
15989
15991
  };
15990
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, result2);
15992
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result2);
15991
15993
  return 0;
15992
15994
  }
15993
15995
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -16011,7 +16013,7 @@ async function handlePlayPublish(args) {
16011
16013
  revisionId ? { revisionId } : {}
16012
16014
  );
16013
16015
  if (options.jsonOutput) {
16014
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, result);
16016
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
16015
16017
  } else {
16016
16018
  printPublishReceipt({
16017
16019
  name: result.name,
@@ -16051,7 +16053,7 @@ async function handlePlayDelete(args) {
16051
16053
  );
16052
16054
  return 2;
16053
16055
  }
16054
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
16056
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
16055
16057
  let detail;
16056
16058
  try {
16057
16059
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -16075,8 +16077,8 @@ async function handlePlayDelete(args) {
16075
16077
  name: resolvedName,
16076
16078
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
16077
16079
  };
16078
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
16079
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, result2);
16080
+ if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
16081
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result2);
16080
16082
  } else {
16081
16083
  process.stdout.write(
16082
16084
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -16086,8 +16088,8 @@ async function handlePlayDelete(args) {
16086
16088
  return 0;
16087
16089
  }
16088
16090
  const result = await client.deletePlay(resolvedName);
16089
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
16090
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, result);
16091
+ if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
16092
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
16091
16093
  return result.archived || result.alreadyArchived ? 0 : 4;
16092
16094
  }
16093
16095
  if (result.alreadyArchived) {
@@ -16126,13 +16128,13 @@ async function handlePlayRestore(args) {
16126
16128
  );
16127
16129
  return 2;
16128
16130
  }
16129
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
16131
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
16130
16132
  try {
16131
16133
  const result = await client.restorePlay(
16132
16134
  parseReferencedPlayTarget2(playName).playName
16133
16135
  );
16134
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
16135
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, result);
16136
+ if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
16137
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, result);
16136
16138
  return result.restored || result.alreadyActive ? 0 : 4;
16137
16139
  }
16138
16140
  if (result.alreadyActive) {
@@ -16245,21 +16247,21 @@ Common commands:
16245
16247
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16246
16248
  }
16247
16249
  };
16248
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0, result2, {
16250
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, result2, {
16249
16251
  json: options.json,
16250
16252
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16251
16253
  `
16252
16254
  });
16253
16255
  return;
16254
16256
  }
16255
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
16257
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
16256
16258
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16257
16259
  throw new Error(
16258
16260
  "The submission belongs to a different API origin. Select its original host before recovery."
16259
16261
  );
16260
16262
  }
16261
16263
  const result = await client.startPlayRun(saved.request);
16262
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
16264
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
16263
16265
  { ...result },
16264
16266
  {
16265
16267
  json: options.json,
@@ -16295,7 +16297,7 @@ Examples:
16295
16297
  ).action(async (target, options) => {
16296
16298
  process.exitCode = await handlePlayCheck([
16297
16299
  target,
16298
- ..._chunkKGNTKMRGjs.jsonFieldArgs.call(void 0, options.json),
16300
+ ..._chunkHRWUQJ4Kjs.jsonFieldArgs.call(void 0, options.json),
16299
16301
  ...options.full ? ["--full"] : []
16300
16302
  ]);
16301
16303
  });
@@ -16536,9 +16538,9 @@ Examples:
16536
16538
  const limit = Number(options.historyLimit);
16537
16539
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16538
16540
  throw new Error("--history-limit must be an integer from 1 to 30.");
16539
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
16541
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
16540
16542
  if (options.binding) {
16541
- _chunkKGNTKMRGjs.printCompactJson.call(void 0,
16543
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0,
16542
16544
  await client.getPlayTriggerHistory(options.binding, { limit })
16543
16545
  );
16544
16546
  return;
@@ -16546,7 +16548,7 @@ Examples:
16546
16548
  const result = await client.listPlayTriggerInventory({
16547
16549
  cursor: options.cursor
16548
16550
  });
16549
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, {
16551
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
16550
16552
  ...result,
16551
16553
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16552
16554
  });
@@ -16593,7 +16595,7 @@ Examples:
16593
16595
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16594
16596
  throw new Error("--group-by must be kind or trigger_source.");
16595
16597
  }
16596
- const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().getPlaysActivity({
16598
+ const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().getPlaysActivity({
16597
16599
  timeZone: options.timeZone,
16598
16600
  days,
16599
16601
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16607,7 +16609,7 @@ Examples:
16607
16609
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16608
16610
  );
16609
16611
  }
16610
- _chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
16612
+ _chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
16611
16613
  { ...result },
16612
16614
  {
16613
16615
  json: Boolean(options.json),
@@ -16636,7 +16638,7 @@ Examples:
16636
16638
  false
16637
16639
  );
16638
16640
  });
16639
- _chunkVK6FYZLPjs.registerDeprecatedSearchCommand.call(void 0,
16641
+ _chunkR4XZO6Z5js.registerDeprecatedSearchCommand.call(void 0,
16640
16642
  play,
16641
16643
  (options) => options.all ? ["plays"] : ["prebuilts"]
16642
16644
  );
@@ -16679,7 +16681,7 @@ Examples:
16679
16681
  );
16680
16682
  _chunkZMVJSS6Njs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16681
16683
  async (target, options) => {
16682
- const ownView = () => handlePlayDescribe(_chunkKGNTKMRGjs.describeArgs.call(void 0, target, options));
16684
+ const ownView = () => handlePlayDescribe(_chunkHRWUQJ4Kjs.describeArgs.call(void 0, target, options));
16683
16685
  const [flagText] = [options.json].filter(
16684
16686
  (value) => typeof value === "string"
16685
16687
  );
@@ -16690,7 +16692,7 @@ Examples:
16690
16692
  process.exitCode = await ownView();
16691
16693
  return;
16692
16694
  }
16693
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-FRH32RDV.js")));
16695
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-YKOE54ZO.js")));
16694
16696
  process.exitCode = await describeAnything(
16695
16697
  name,
16696
16698
  {
@@ -16808,7 +16810,7 @@ Examples:
16808
16810
  deepline plays deployments <deployment-id>
16809
16811
  `
16810
16812
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16811
- async (id, options) => id ? _chunk2MDDA7A4js.handleDeploymentGet.call(void 0, id, options) : _chunk2MDDA7A4js.handleDeploymentsList.call(void 0, options)
16813
+ async (id, options) => id ? _chunkK5T3EN6Djs.handleDeploymentGet.call(void 0, id, options) : _chunkK5T3EN6Djs.handleDeploymentsList.call(void 0, options)
16812
16814
  );
16813
16815
  addPublishHelp(
16814
16816
  play.command("publish <target>").description(
@@ -16943,14 +16945,14 @@ Examples:
16943
16945
  const limit = Number(options.limit);
16944
16946
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
16945
16947
  throw new Error("--limit must be an integer from 1 to 1000.");
16946
- const result = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().runs.rowHistory({
16948
+ const result = await new (0, _chunk36ML3YKAjs.DeeplineClient)().runs.rowHistory({
16947
16949
  playName: options.play,
16948
16950
  runId,
16949
16951
  tableNamespace: options.dataset,
16950
16952
  limit,
16951
16953
  cursor: options.cursor
16952
16954
  });
16953
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, {
16955
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
16954
16956
  ...result,
16955
16957
  ...result.nextCursor ? {
16956
16958
  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`
@@ -17015,7 +17017,7 @@ Examples:
17015
17017
  ).action(async (runId, options) => {
17016
17018
  process.exitCode = await handleRunGet([
17017
17019
  runId,
17018
- ..._chunkKGNTKMRGjs.jsonFieldArgs.call(void 0, options.json),
17020
+ ..._chunkHRWUQJ4Kjs.jsonFieldArgs.call(void 0, options.json),
17019
17021
  ...options.webUrl ? ["--web-url"] : [],
17020
17022
  ...options.full ? ["--full"] : [],
17021
17023
  ...options.input ? ["--input"] : [],
@@ -17294,7 +17296,7 @@ Examples:
17294
17296
  ...options.allowEmpty ? ["--allow-empty"] : [],
17295
17297
  ...options.wait ? ["--wait"] : [],
17296
17298
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17297
- ..._chunkKGNTKMRGjs.jsonFieldArgs.call(void 0, options.json)
17299
+ ..._chunkHRWUQJ4Kjs.jsonFieldArgs.call(void 0, options.json)
17298
17300
  ]);
17299
17301
  });
17300
17302
  const share = play.command("share").description(
@@ -17460,10 +17462,10 @@ async function handlePlayShareStatus(args) {
17460
17462
  return 2;
17461
17463
  }
17462
17464
  const name = parseReferencedPlayTarget2(target).playName;
17463
- const status = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().getSharePage(name);
17465
+ const status = await new (0, _chunk36ML3YKAjs.DeeplineClient)().getSharePage(name);
17464
17466
  const outputStatus = shareStatusForOutput(status);
17465
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
17466
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, outputStatus);
17467
+ if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17468
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, outputStatus);
17467
17469
  return 0;
17468
17470
  }
17469
17471
  if (!outputStatus.share) {
@@ -17502,7 +17504,7 @@ async function handlePlaySharePublish(args) {
17502
17504
  return 2;
17503
17505
  }
17504
17506
  const name = parseReferencedPlayTarget2(target).playName;
17505
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
17507
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
17506
17508
  let revisionId = shareFlagValue(args, "--revision-id");
17507
17509
  let resolvedVersion;
17508
17510
  if (!revisionId) {
@@ -17533,8 +17535,8 @@ async function handlePlaySharePublish(args) {
17533
17535
  );
17534
17536
  if (!hasCompleted) {
17535
17537
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17536
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
17537
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, {
17538
+ if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17539
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, {
17538
17540
  ok: false,
17539
17541
  code: "NO_SUCCESSFUL_RUN",
17540
17542
  message,
@@ -17558,8 +17560,8 @@ async function handlePlaySharePublish(args) {
17558
17560
  };
17559
17561
  if (args.includes("--dry-run")) {
17560
17562
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17561
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
17562
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, plan);
17563
+ if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17564
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, plan);
17563
17565
  } else {
17564
17566
  console.log(
17565
17567
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17569,8 +17571,8 @@ async function handlePlaySharePublish(args) {
17569
17571
  }
17570
17572
  const status = await client.publishSharePage(name, request);
17571
17573
  const outputStatus = shareStatusForOutput(status);
17572
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
17573
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, outputStatus);
17574
+ if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17575
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, outputStatus);
17574
17576
  return 0;
17575
17577
  }
17576
17578
  const urls = shareUrlFields(outputStatus);
@@ -17601,9 +17603,9 @@ async function handlePlayShareUpdate(args) {
17601
17603
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17602
17604
  ...seoIndexing ? { seoIndexing } : {}
17603
17605
  };
17604
- const status = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().updateSharePage(name, request);
17605
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
17606
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, status);
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);
17607
17609
  return 0;
17608
17610
  }
17609
17611
  console.log(`Updated ${name} share settings.`);
@@ -17618,7 +17620,7 @@ async function handlePlayShareRegenerate(args) {
17618
17620
  return 2;
17619
17621
  }
17620
17622
  const name = parseReferencedPlayTarget2(target).playName;
17621
- const client = new (0, _chunkE23BQ5SCjs.DeeplineClient)();
17623
+ const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
17622
17624
  let revisionId = shareFlagValue(args, "--revision-id");
17623
17625
  const versionFlag = shareFlagValue(args, "--version");
17624
17626
  if (!revisionId && versionFlag) {
@@ -17635,8 +17637,8 @@ async function handlePlayShareRegenerate(args) {
17635
17637
  revisionId ? { revisionId } : {}
17636
17638
  );
17637
17639
  const outputStatus = shareStatusForOutput(status);
17638
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
17639
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, outputStatus);
17640
+ if (_chunkHRWUQJ4Kjs.argsWantJson.call(void 0, args)) {
17641
+ _chunkHRWUQJ4Kjs.printCompactJson.call(void 0, outputStatus);
17640
17642
  return 0;
17641
17643
  }
17642
17644
  const urls = shareUrlFields(outputStatus);
@@ -17661,9 +17663,9 @@ async function handlePlayShareUnpublish(args) {
17661
17663
  return 2;
17662
17664
  }
17663
17665
  const name = parseReferencedPlayTarget2(target).playName;
17664
- const status = await new (0, _chunkE23BQ5SCjs.DeeplineClient)().unpublishSharePage(name);
17665
- if (_chunkKGNTKMRGjs.argsWantJson.call(void 0, args)) {
17666
- _chunkKGNTKMRGjs.printCompactJson.call(void 0, status);
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);
17667
17669
  return 0;
17668
17670
  }
17669
17671
  console.log(`Unpublished ${name}; the public page has been removed.`);