deepline 0.3.300 → 0.3.301

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 (85) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/run-log-buffer.ts +60 -0
  3. package/dist/cli/{auth-RVK23SLA.mjs → auth-DCN4DA2T.mjs} +4 -4
  4. package/dist/cli/auth-G2CKLPSX.js +31 -0
  5. package/dist/cli/{billing-6LEQNTUS.js → billing-OGWOCZOZ.js} +70 -70
  6. package/dist/cli/{billing-CBWRPMBG.mjs → billing-VLZNKJ4N.mjs} +4 -4
  7. package/dist/cli/{chunk-E6S4RTMG.mjs → chunk-57J4GHJG.mjs} +4 -4
  8. package/dist/cli/{chunk-N5A3LWPC.js → chunk-6JIXIMC5.js} +57 -57
  9. package/dist/cli/{chunk-RLDEQJQQ.mjs → chunk-6S2UJUVD.mjs} +2 -2
  10. package/dist/cli/{chunk-BW3WGFLG.js → chunk-7JA3CLD2.js} +48 -48
  11. package/dist/cli/{chunk-OKKAFDXS.js → chunk-7VBN7TU5.js} +15 -15
  12. package/dist/cli/{chunk-OCKGMK6B.js → chunk-AKWMFS7H.js} +2 -2
  13. package/dist/cli/{chunk-BFGSCAZ7.mjs → chunk-AXHRD6ME.mjs} +1 -1
  14. package/dist/cli/{chunk-BLANZQG2.mjs → chunk-D7WKHLLF.mjs} +2 -2
  15. package/dist/cli/{chunk-6CLYAWXK.js → chunk-FAQGAPKK.js} +4 -4
  16. package/dist/cli/{chunk-Z3RMVRCQ.mjs → chunk-GILGPI67.mjs} +1 -1
  17. package/dist/cli/{chunk-M5SHROFS.js → chunk-M6KBDWGI.js} +6 -6
  18. package/dist/cli/{chunk-GQISQAAZ.mjs → chunk-OILZKWKC.mjs} +2 -2
  19. package/dist/cli/{chunk-MFGPKFJC.mjs → chunk-PXJAS6X2.mjs} +1 -1
  20. package/dist/cli/{chunk-NMTG3N2J.js → chunk-QDFEF4PI.js} +6 -6
  21. package/dist/cli/{chunk-6AUI2MS4.mjs → chunk-RQKAKIVL.mjs} +1 -1
  22. package/dist/cli/{chunk-LH7IBCW2.mjs → chunk-SBUIMF2B.mjs} +3 -3
  23. package/dist/cli/{chunk-YLYVPHEG.mjs → chunk-SHQNCP2G.mjs} +1 -1
  24. package/dist/cli/{chunk-YR26QBMJ.js → chunk-TAPI3QLV.js} +1 -1
  25. package/dist/cli/{chunk-2C5H32YE.js → chunk-V7J7U63X.js} +6 -6
  26. package/dist/cli/{chunk-NXOML2N6.mjs → chunk-YBYPHZ4I.mjs} +1 -1
  27. package/dist/cli/{chunk-DRLNWL4W.js → chunk-YFRWD6LM.js} +6 -6
  28. package/dist/cli/{chunk-XUA3QCZU.js → chunk-ZNC3KU5O.js} +26 -26
  29. package/dist/cli/{client-6D6UBKDX.mjs → client-F7LPXBQS.mjs} +3 -3
  30. package/dist/cli/client-WTE3IK53.js +20 -0
  31. package/dist/cli/{csv-O4HDE34Y.js → csv-DTGOY553.js} +12 -12
  32. package/dist/cli/{csv-VK327Z63.mjs → csv-PFAL3PLE.mjs} +3 -3
  33. package/dist/cli/{db-TRNRYJL6.mjs → db-24PTJ6J5.mjs} +4 -4
  34. package/dist/cli/{db-IL35EIOE.js → db-B7JTWZQB.js} +20 -20
  35. package/dist/cli/{executions-CFWDNHOQ.js → executions-3CPX35CQ.js} +6 -6
  36. package/dist/cli/{executions-JEUBKNUA.mjs → executions-53BGMOYB.mjs} +4 -4
  37. package/dist/cli/{feedback-F7HXHQY3.js → feedback-4JPCFN6F.js} +6 -6
  38. package/dist/cli/{feedback-BSSEEXR2.mjs → feedback-GA6FF4UP.mjs} +3 -3
  39. package/dist/cli/{git-I3AAHTCJ.mjs → git-VXB6ZLJ3.mjs} +4 -4
  40. package/dist/cli/git-YTJCZVEL.js +23 -0
  41. package/dist/cli/index.js +73 -73
  42. package/dist/cli/index.mjs +30 -30
  43. package/dist/cli/{legacy-noops-KTRWO7NA.mjs → legacy-noops-7J5WN4M6.mjs} +4 -4
  44. package/dist/cli/{legacy-noops-HNN7WPWF.js → legacy-noops-ANYHW7ER.js} +7 -7
  45. package/dist/cli/{monitors-D64KB7G2.mjs → monitors-DXETJ5NX.mjs} +4 -4
  46. package/dist/cli/{monitors-4Y4M3ZJ3.js → monitors-EAV6KHOK.js} +85 -85
  47. package/dist/cli/{org-ELLMCZRC.js → org-3IVIYYVM.js} +60 -60
  48. package/dist/cli/{org-UGIVFU7B.mjs → org-B57DDLLC.mjs} +4 -4
  49. package/dist/cli/{play-LUNGZ5ZJ.mjs → play-FXABI2NH.mjs} +6 -6
  50. package/dist/cli/{play-NXV5UJYW.js → play-LNYRYGOT.js} +200 -200
  51. package/dist/cli/{providers-YCNHAEFJ.mjs → providers-LMZBXPLP.mjs} +4 -4
  52. package/dist/cli/{providers-AL6YIZVA.js → providers-SWHCMHUN.js} +7 -7
  53. package/dist/cli/{quickstart-R6AOCVA2.mjs → quickstart-PHGLWVGA.mjs} +3 -3
  54. package/dist/cli/{quickstart-LK5IBLYY.js → quickstart-YYKEMF5A.js} +5 -5
  55. package/dist/cli/{search-PGW2ZEZ3.js → search-CEBKSGXX.js} +6 -6
  56. package/dist/cli/{search-77YOO5TG.mjs → search-PHSXMXSV.mjs} +5 -5
  57. package/dist/cli/{secrets-5OV4C2UI.js → secrets-CWWMAPBB.js} +13 -13
  58. package/dist/cli/{secrets-OWNCPA6L.mjs → secrets-ZRVJ6GWI.mjs} +4 -4
  59. package/dist/cli/{sessions-NOLZ4NAQ.js → sessions-3HSV7W2M.js} +5 -5
  60. package/dist/cli/{sessions-RVJHCSYH.mjs → sessions-IXMB2B5R.mjs} +4 -4
  61. package/dist/cli/{settings-326S34JQ.js → settings-PGYWTWJ7.js} +74 -74
  62. package/dist/cli/{settings-LEYUQDYL.mjs → settings-XEM64DRR.mjs} +7 -7
  63. package/dist/cli/{setup-7RTEC2RE.js → setup-EOTIXFLU.js} +41 -41
  64. package/dist/cli/{setup-CNE25BAJ.mjs → setup-MCXGMDIV.mjs} +6 -6
  65. package/dist/cli/skills-3IXQN3KZ.js +28 -0
  66. package/dist/cli/{skills-R4EC4IXL.mjs → skills-4HXO76M7.mjs} +4 -4
  67. package/dist/cli/{tools-ZVTN62JI.js → tools-FMOJUYVW.js} +50 -50
  68. package/dist/cli/{tools-BEBLJVVA.mjs → tools-P3OULQFZ.mjs} +5 -5
  69. package/dist/cli/{update-5JG7TQZ4.mjs → update-2QXPDAIV.mjs} +6 -6
  70. package/dist/cli/update-H6I7437Q.js +28 -0
  71. package/dist/cli/{workflow-VTDHF75U.js → workflow-P2YQPB7Y.js} +15 -15
  72. package/dist/cli/{workflow-FQVZBGT3.mjs → workflow-VAJ3GV2W.mjs} +5 -5
  73. package/dist/index.js +6 -6
  74. package/dist/index.mjs +3 -3
  75. package/dist/install-integrity.json +68 -68
  76. package/dist/release.d.mts +1 -1
  77. package/dist/release.d.ts +1 -1
  78. package/dist/release.js +2 -2
  79. package/dist/release.mjs +1 -1
  80. package/package.json +1 -1
  81. package/dist/cli/auth-6JUPJXSW.js +0 -31
  82. package/dist/cli/client-HAGQESNI.js +0 -20
  83. package/dist/cli/git-T5WWT3DW.js +0 -23
  84. package/dist/cli/skills-SE54MI6I.js +0 -28
  85. package/dist/cli/update-IQYOCMLG.js +0 -28
@@ -1,13 +1,13 @@
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 _chunkXUA3QCZUjs = require('./chunk-XUA3QCZU.js');
4
+ var _chunkZNC3KU5Ojs = require('./chunk-ZNC3KU5O.js');
5
5
 
6
6
 
7
7
  var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
8
8
 
9
9
 
10
- var _chunkNMTG3N2Jjs = require('./chunk-NMTG3N2J.js');
10
+ var _chunkQDFEF4PIjs = require('./chunk-QDFEF4PI.js');
11
11
 
12
12
 
13
13
 
@@ -28,7 +28,7 @@ var _chunkSDK3ZA2Cjs = require('./chunk-SDK3ZA2C.js');
28
28
 
29
29
 
30
30
 
31
- var _chunkM5SHROFSjs = require('./chunk-M5SHROFS.js');
31
+ var _chunkM6KBDWGIjs = require('./chunk-M6KBDWGI.js');
32
32
 
33
33
 
34
34
 
@@ -59,12 +59,12 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
59
59
 
60
60
 
61
61
 
62
- var _chunkDRLNWL4Wjs = require('./chunk-DRLNWL4W.js');
62
+ var _chunkYFRWD6LMjs = require('./chunk-YFRWD6LM.js');
63
63
 
64
64
 
65
- var _chunk6CLYAWXKjs = require('./chunk-6CLYAWXK.js');
65
+ var _chunkFAQGAPKKjs = require('./chunk-FAQGAPKK.js');
66
66
  require('./chunk-XNYIZMNQ.js');
67
- require('./chunk-YR26QBMJ.js');
67
+ require('./chunk-TAPI3QLV.js');
68
68
 
69
69
 
70
70
 
@@ -2041,7 +2041,7 @@ function resolveField(key, command) {
2041
2041
  }
2042
2042
  function printSettings(result, json, name) {
2043
2043
  const selected = fields.filter(([key]) => !name || key === name);
2044
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
2044
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
2045
2045
  {
2046
2046
  ...result,
2047
2047
  settings: Object.fromEntries(
@@ -2085,7 +2085,7 @@ function registerPlaySettingsCommands(plays) {
2085
2085
  valueSyntax: field.cli.valueSyntax,
2086
2086
  examples: field.cli.examples
2087
2087
  }));
2088
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
2088
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
2089
2089
  {
2090
2090
  fields: descriptions,
2091
2091
  render: {
@@ -2110,7 +2110,7 @@ function registerPlaySettingsCommands(plays) {
2110
2110
  async (options, command) => {
2111
2111
  if (options.name !== void 0) resolveField(options.name, command);
2112
2112
  printSettings(
2113
- await new (0, _chunkM5SHROFSjs.DeeplineClient)().getPlaySettings(options.play),
2113
+ await new (0, _chunkM6KBDWGIjs.DeeplineClient)().getPlaySettings(options.play),
2114
2114
  options.json,
2115
2115
  options.name
2116
2116
  );
@@ -2141,7 +2141,7 @@ function registerPlaySettingsCommands(plays) {
2141
2141
  );
2142
2142
  }
2143
2143
  if (options.dryRun) {
2144
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
2144
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
2145
2145
  {
2146
2146
  dryRun: true,
2147
2147
  play,
@@ -2162,7 +2162,7 @@ function registerPlaySettingsCommands(plays) {
2162
2162
  return;
2163
2163
  }
2164
2164
  printSettings(
2165
- await new (0, _chunkM5SHROFSjs.DeeplineClient)().updatePlaySettings(play, patch),
2165
+ await new (0, _chunkM6KBDWGIjs.DeeplineClient)().updatePlaySettings(play, patch),
2166
2166
  options.json
2167
2167
  );
2168
2168
  };
@@ -2188,13 +2188,13 @@ function registerPlaySettingsCommands(plays) {
2188
2188
  "--root must be person or team; --limit must be 1\u2013100.",
2189
2189
  { exitCode: 2 }
2190
2190
  );
2191
- const page = await new (0, _chunkM5SHROFSjs.DeeplineClient)().listPlaySettingsPaths({
2191
+ const page = await new (0, _chunkM6KBDWGIjs.DeeplineClient)().listPlaySettingsPaths({
2192
2192
  root: options.root,
2193
2193
  limit,
2194
2194
  cursor: options.cursor
2195
2195
  });
2196
2196
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""} --json` : null;
2197
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
2197
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
2198
2198
  {
2199
2199
  ...page,
2200
2200
  nextCommand,
@@ -2245,7 +2245,7 @@ function registerPlaySettingsCommands(plays) {
2245
2245
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2246
2246
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2247
2247
  };
2248
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
2248
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
2249
2249
  const paths = [];
2250
2250
  let cursor;
2251
2251
  do {
@@ -2307,7 +2307,7 @@ function registerPlaySettingsCommands(plays) {
2307
2307
  moved.push(move.playName);
2308
2308
  }
2309
2309
  }
2310
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
2310
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
2311
2311
  {
2312
2312
  dryRun: Boolean(options.dryRun),
2313
2313
  from: options.from,
@@ -2435,7 +2435,7 @@ function triggerLines(view) {
2435
2435
  return lines;
2436
2436
  }
2437
2437
  function printView(view, json) {
2438
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
2438
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
2439
2439
  {
2440
2440
  ...view,
2441
2441
  render: {
@@ -2448,7 +2448,7 @@ function printView(view, json) {
2448
2448
  );
2449
2449
  }
2450
2450
  function printResult(result, json) {
2451
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
2451
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
2452
2452
  {
2453
2453
  ...result,
2454
2454
  render: {
@@ -2478,7 +2478,7 @@ async function mutate(command, options, build) {
2478
2478
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2479
2479
  }
2480
2480
  if (options.dryRun) {
2481
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
2481
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
2482
2482
  {
2483
2483
  dryRun: true,
2484
2484
  play: options.play,
@@ -2497,7 +2497,7 @@ async function mutate(command, options, build) {
2497
2497
  return;
2498
2498
  }
2499
2499
  printResult(
2500
- await new (0, _chunkM5SHROFSjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2500
+ await new (0, _chunkM6KBDWGIjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2501
2501
  options.json
2502
2502
  );
2503
2503
  }
@@ -2530,7 +2530,7 @@ function registerPlayTriggerConfigCommands(plays) {
2530
2530
  }).addHelpText("after", help2);
2531
2531
  trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON; automatic when piped").addHelpText("after", help2).action(async (options) => {
2532
2532
  printView(
2533
- await new (0, _chunkM5SHROFSjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2533
+ await new (0, _chunkM6KBDWGIjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2534
2534
  options.json
2535
2535
  );
2536
2536
  });
@@ -2574,7 +2574,7 @@ function registerPlayTriggerConfigCommands(plays) {
2574
2574
  if (options.auth === void 0) {
2575
2575
  if (secrets.length || options.header || options.signaturePrefix)
2576
2576
  usage(setWebhook, "--secret/--header need --auth.");
2577
- const current = await new (0, _chunkM5SHROFSjs.DeeplineClient)().getPlayTriggerConfig(
2577
+ const current = await new (0, _chunkM6KBDWGIjs.DeeplineClient)().getPlayTriggerConfig(
2578
2578
  options.play
2579
2579
  );
2580
2580
  return {
@@ -2651,7 +2651,7 @@ var KIND_DESCRIPTIONS = {
2651
2651
  "receipt.skipped": "Saved work result: skipped.",
2652
2652
  "runtime.event": "Other event."
2653
2653
  };
2654
- var RUN_LOGS_KIND_HELP = _chunkM5SHROFSjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2654
+ var RUN_LOGS_KIND_HELP = _chunkM6KBDWGIjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2655
2655
  kind,
2656
2656
  description: KIND_DESCRIPTIONS[kind]
2657
2657
  }));
@@ -3511,7 +3511,7 @@ function checkedRunExample(plays, target) {
3511
3511
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3512
3512
  const base = `deepline plays run --file ${quote(target)}`;
3513
3513
  return {
3514
- command: `${base}${_chunkM5SHROFSjs.playInputExampleArgs.call(void 0, schema)} --json`,
3514
+ command: `${base}${_chunkM6KBDWGIjs.playInputExampleArgs.call(void 0, schema)} --json`,
3515
3515
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema. Keep stderr separate from JSON stdout."
3516
3516
  };
3517
3517
  }
@@ -5129,7 +5129,7 @@ async function runPlayBootstrap(args) {
5129
5129
  return runMonitorBootstrap(args);
5130
5130
  }
5131
5131
  const options = parsePlayBootstrapOptions(args);
5132
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
5132
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
5133
5133
  const contracts = await loadBootstrapContracts(client, options);
5134
5134
  const csvContext = loadCsvContext(options.from);
5135
5135
  const source = generateBootstrapPlaySource({
@@ -5284,7 +5284,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5284
5284
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
5285
5285
  );
5286
5286
  }
5287
- const response = await new (0, _chunkM5SHROFSjs.DeeplineClient)().runs.getReceipts(runId, {
5287
+ const response = await new (0, _chunkM6KBDWGIjs.DeeplineClient)().runs.getReceipts(runId, {
5288
5288
  keys
5289
5289
  });
5290
5290
  const failed = response.receipts.filter(
@@ -5296,7 +5296,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5296
5296
  JSON.stringify(response, null, 2) + "\n",
5297
5297
  { flag: "wx", mode: 384 }
5298
5298
  );
5299
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
5299
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
5300
5300
  {
5301
5301
  runId,
5302
5302
  out: options.out,
@@ -5306,7 +5306,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5306
5306
  { json: true }
5307
5307
  );
5308
5308
  } else {
5309
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5309
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5310
5310
  }
5311
5311
  if (failed)
5312
5312
  process.exitCode = response.receipts.some(
@@ -5345,7 +5345,7 @@ includes nextCommand when another page is available.
5345
5345
  { exitCode: 2 }
5346
5346
  );
5347
5347
  }
5348
- const page = await new (0, _chunkM5SHROFSjs.DeeplineClient)().runs.children(parentRunId, {
5348
+ const page = await new (0, _chunkM6KBDWGIjs.DeeplineClient)().runs.children(parentRunId, {
5349
5349
  launchKey: options.launchKey,
5350
5350
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
5351
5351
  limit
@@ -5361,7 +5361,7 @@ includes nextCommand when another page is available.
5361
5361
  String(limit),
5362
5362
  "--json"
5363
5363
  ].join(" ") : null;
5364
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
5364
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
5365
5365
  {
5366
5366
  parentRunId,
5367
5367
  launchKey: options.launchKey,
@@ -5397,7 +5397,7 @@ async function handleRunsHistory(options) {
5397
5397
  throw new Error("--limit must be a positive integer.");
5398
5398
  }
5399
5399
  }
5400
- const page = await new (0, _chunkM5SHROFSjs.DeeplineClient)().runs.history({
5400
+ const page = await new (0, _chunkM6KBDWGIjs.DeeplineClient)().runs.history({
5401
5401
  cursor: options.cursor,
5402
5402
  orgId: options.org,
5403
5403
  search: options.search,
@@ -5413,7 +5413,7 @@ async function handleRunsHistory(options) {
5413
5413
  );
5414
5414
  }
5415
5415
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
5416
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
5416
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
5417
5417
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
5418
5418
  options.json ? { json: true } : {}
5419
5419
  );
@@ -5689,7 +5689,7 @@ function projectRunDatasetCell(value) {
5689
5689
  const logicalValue = parseSerializedDatasetValue(value);
5690
5690
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
5691
5691
  if (typeof logicalValue === "object") {
5692
- return _chunkDRLNWL4Wjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
5692
+ return _chunkYFRWD6LMjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
5693
5693
  }
5694
5694
  return logicalValue;
5695
5695
  }
@@ -8497,7 +8497,7 @@ function renderOutcome(outcome) {
8497
8497
  function printResult2(input) {
8498
8498
  const failed = input.status === "failed" || input.status === "cancelled";
8499
8499
  if (failed) process.exitCode = 1;
8500
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
8500
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
8501
8501
  {
8502
8502
  deployment: { ...input.deployment, status: input.status },
8503
8503
  plays: input.outcomes,
@@ -8522,7 +8522,7 @@ async function handlePlaysDeploy(directory, options) {
8522
8522
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
8523
8523
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
8524
8524
  });
8525
- const { http, config } = _chunkDRLNWL4Wjs.getAuthedHttpClient.call(void 0, );
8525
+ const { http, config } = _chunkYFRWD6LMjs.getAuthedHttpClient.call(void 0, );
8526
8526
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
8527
8527
  const startDeployment = () => http.post("/api/v2/deployments", {
8528
8528
  deliveryId,
@@ -8549,7 +8549,7 @@ async function handlePlaysDeploy(directory, options) {
8549
8549
  },
8550
8550
  {
8551
8551
  bundle: bundleDeployPlayFile,
8552
- fetchImpl: _chunk6CLYAWXKjs.fetchWithDeploymentProtection,
8552
+ fetchImpl: _chunkFAQGAPKKjs.fetchWithDeploymentProtection,
8553
8553
  // The plays are already here: "opening" the source is naming it.
8554
8554
  openSource: async () => ({
8555
8555
  open: async () => ({ repoRoot: root })
@@ -9651,7 +9651,7 @@ function playStatusErrorText(status) {
9651
9651
  function isRetryablePendingStartFailure(status) {
9652
9652
  if (status.status !== "failed") return false;
9653
9653
  if (status.runId && status.runId !== "pending") return false;
9654
- return _chunkM5SHROFSjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
9654
+ return _chunkM6KBDWGIjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
9655
9655
  }
9656
9656
  function pendingStartFailureStatus(input) {
9657
9657
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -9678,13 +9678,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
9678
9678
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
9679
9679
  function watchSurfaceReaches(state, provenance, level) {
9680
9680
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
9681
- if (!_chunkM5SHROFSjs.logLevelReaches.call(void 0, level, minimumLevel)) {
9681
+ if (!_chunkM6KBDWGIjs.logLevelReaches.call(void 0, level, minimumLevel)) {
9682
9682
  return false;
9683
9683
  }
9684
- if (_chunkM5SHROFSjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
9684
+ if (_chunkM6KBDWGIjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
9685
9685
  return true;
9686
9686
  }
9687
- return state.verbose === true && _chunkM5SHROFSjs.logProvenanceReaches.call(void 0, provenance, "debug");
9687
+ return state.verbose === true && _chunkM6KBDWGIjs.logProvenanceReaches.call(void 0, provenance, "debug");
9688
9688
  }
9689
9689
  function getEventPayload(event) {
9690
9690
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -10186,7 +10186,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
10186
10186
  }
10187
10187
  function openPlayDashboard(dashboardUrl, open2) {
10188
10188
  if (open2 && dashboardUrl) {
10189
- _chunkDRLNWL4Wjs.openInBrowser.call(void 0, dashboardUrl);
10189
+ _chunkYFRWD6LMjs.openInBrowser.call(void 0, dashboardUrl);
10190
10190
  }
10191
10191
  }
10192
10192
  function printPlayLogLines(input) {
@@ -10248,7 +10248,7 @@ async function waitForPlayCompletionByWatch(input) {
10248
10248
  billing: false
10249
10249
  });
10250
10250
  } catch (error) {
10251
- if (_chunkM5SHROFSjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
10251
+ if (_chunkM6KBDWGIjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
10252
10252
  return null;
10253
10253
  }
10254
10254
  throw error;
@@ -10437,7 +10437,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10437
10437
  billing: false
10438
10438
  });
10439
10439
  } catch (error) {
10440
- if (_chunkM5SHROFSjs.isTransientPlayRunReadError.call(void 0, error)) {
10440
+ if (_chunkM6KBDWGIjs.isTransientPlayRunReadError.call(void 0, error)) {
10441
10441
  return null;
10442
10442
  }
10443
10443
  throw error;
@@ -10645,7 +10645,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10645
10645
  lastPhase
10646
10646
  });
10647
10647
  }
10648
- if (lastKnownWorkflowId && _chunkM5SHROFSjs.isTransientPlayRunReadError.call(void 0, error)) {
10648
+ if (lastKnownWorkflowId && _chunkM6KBDWGIjs.isTransientPlayRunReadError.call(void 0, error)) {
10649
10649
  if (timeout) {
10650
10650
  clearTimeout(timeout);
10651
10651
  }
@@ -10681,7 +10681,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10681
10681
  onRunAdmitted: confirmAdmission
10682
10682
  });
10683
10683
  }
10684
- if (!lastKnownWorkflowId && _chunkM5SHROFSjs.isTransientPlayRunReadError.call(void 0, error)) {
10684
+ if (!lastKnownWorkflowId && _chunkM6KBDWGIjs.isTransientPlayRunReadError.call(void 0, error)) {
10685
10685
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
10686
10686
  phase: "cli.play_start_stream_transient_failure",
10687
10687
  ms: Date.now() - startedAt,
@@ -10780,7 +10780,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10780
10780
  "logs"
10781
10781
  ]);
10782
10782
  function formatPlayLogLine(rawLine, state) {
10783
- const classified = _chunkM5SHROFSjs.classifyLogLine.call(void 0, rawLine);
10783
+ const classified = _chunkM6KBDWGIjs.classifyLogLine.call(void 0, rawLine);
10784
10784
  const line = classified.line;
10785
10785
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10786
10786
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _343 => _343[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10795,14 +10795,14 @@ function formatPlayLogLine(rawLine, state) {
10795
10795
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10796
10796
  const providerWait = formatProviderCapacityWaitLogLine(line);
10797
10797
  if (providerWait && !state.verbose) {
10798
- return _chunkM5SHROFSjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10798
+ return _chunkM6KBDWGIjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10799
10799
  }
10800
10800
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10801
10801
  if (mapProgress && !state.verbose) {
10802
- return _chunkM5SHROFSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10802
+ return _chunkM6KBDWGIjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10803
10803
  }
10804
10804
  if (/\[worker\] picked up run\b/.test(message)) {
10805
- if (!_chunkM5SHROFSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10805
+ if (!_chunkM6KBDWGIjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10806
10806
  return null;
10807
10807
  }
10808
10808
  if (state.emittedRunnerStarted) {
@@ -10815,7 +10815,7 @@ function formatPlayLogLine(rawLine, state) {
10815
10815
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10816
10816
  );
10817
10817
  if (mapStart) {
10818
- if (!_chunkM5SHROFSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10818
+ if (!_chunkM6KBDWGIjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10819
10819
  return null;
10820
10820
  }
10821
10821
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10825,7 +10825,7 @@ function formatPlayLogLine(rawLine, state) {
10825
10825
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10826
10826
  );
10827
10827
  if (mapDone) {
10828
- if (!_chunkM5SHROFSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10828
+ if (!_chunkM6KBDWGIjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10829
10829
  return null;
10830
10830
  }
10831
10831
  const [, results, executed, cached] = mapDone;
@@ -12114,7 +12114,7 @@ function formatRecentRunLogLines(value) {
12114
12114
  (line) => typeof line === "string"
12115
12115
  );
12116
12116
  if (tail.length === 0) return [];
12117
- const shown = tail.map((line) => _chunkM5SHROFSjs.classifyLogLine.call(void 0, line)).filter(
12117
+ const shown = tail.map((line) => _chunkM6KBDWGIjs.classifyLogLine.call(void 0, line)).filter(
12118
12118
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
12119
12119
  ).slice(-8);
12120
12120
  const total = readNonNegativeInteger(logs.totalCount);
@@ -12394,7 +12394,7 @@ function writePlayResult(status, jsonOutput, options) {
12394
12394
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
12395
12395
  if (jsonOutput) {
12396
12396
  const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
12397
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
12397
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
12398
12398
  hits ? { ...payload2, hits } : payload2,
12399
12399
  { json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
12400
12400
  );
@@ -12410,7 +12410,7 @@ function writePlayResult(status, jsonOutput, options) {
12410
12410
  ...buildPlayCompletionTextLines(status),
12411
12411
  ...formatRunHitsLines(hits)
12412
12412
  ];
12413
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0, displayPackage, {
12413
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0, displayPackage, {
12414
12414
  json: false,
12415
12415
  text: `${lines2.join("\n")}
12416
12416
  `
@@ -12461,7 +12461,7 @@ function writePlayResult(status, jsonOutput, options) {
12461
12461
  lines.push(...buildBillingRollupTextLines(status));
12462
12462
  const compact = compactPlayStatus(status);
12463
12463
  const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
12464
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
12464
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
12465
12465
  {
12466
12466
  ...payload,
12467
12467
  render: {
@@ -13221,7 +13221,7 @@ function writeStartedPlayRun(input) {
13221
13221
  dashboardUrl: input.dashboardUrl,
13222
13222
  package: input.package
13223
13223
  };
13224
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
13224
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
13225
13225
  json: true,
13226
13226
  fields: input.jsonFields
13227
13227
  });
@@ -13243,7 +13243,7 @@ function writeStartedPlayRun(input) {
13243
13243
  input.progress.writeLine(output2, process.stdout);
13244
13244
  return;
13245
13245
  }
13246
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0, input.package, {
13246
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0, input.package, {
13247
13247
  json: false,
13248
13248
  text: `${output2}
13249
13249
  `
@@ -13272,7 +13272,7 @@ function writeStartedPlayRun(input) {
13272
13272
  ) ? [`Stop: deepline runs stop ${shellSingleQuote(input.runId)} --json`] : []
13273
13273
  ];
13274
13274
  if (input.jsonOutput) {
13275
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13275
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13276
13276
  return;
13277
13277
  }
13278
13278
  if (input.dashboardUrl) {
@@ -13283,7 +13283,7 @@ function writeStartedPlayRun(input) {
13283
13283
  input.progress.writeLine(output, process.stdout);
13284
13284
  return;
13285
13285
  }
13286
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
13286
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
13287
13287
  {
13288
13288
  ...payload,
13289
13289
  render: { sections: [{ title: "play run", lines }] }
@@ -13293,7 +13293,7 @@ function writeStartedPlayRun(input) {
13293
13293
  );
13294
13294
  }
13295
13295
  function parsePlayRunOptions(args) {
13296
- const selection = _chunkDRLNWL4Wjs.parseJsonFields.call(void 0, args, "run");
13296
+ const selection = _chunkYFRWD6LMjs.parseJsonFields.call(void 0, args, "run");
13297
13297
  args = selection.args;
13298
13298
  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.";
13299
13299
  let filePath = null;
@@ -13302,7 +13302,7 @@ function parsePlayRunOptions(args) {
13302
13302
  let revisionId = null;
13303
13303
  let revisionSelector = null;
13304
13304
  const watch = !args.includes("--no-wait");
13305
- let jsonOutput = watch ? args.includes("--json") : _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args);
13305
+ let jsonOutput = watch ? args.includes("--json") : _chunkYFRWD6LMjs.argsWantJson.call(void 0, args);
13306
13306
  const fullJson = args.includes("--full");
13307
13307
  const force = args.includes("--force");
13308
13308
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -13349,7 +13349,7 @@ function parsePlayRunOptions(args) {
13349
13349
  "--log-level requires one of: debug, info, warn, error."
13350
13350
  );
13351
13351
  }
13352
- const parsed = _chunkM5SHROFSjs.parseLogLevel.call(void 0, value);
13352
+ const parsed = _chunkM6KBDWGIjs.parseLogLevel.call(void 0, value);
13353
13353
  if (!parsed) {
13354
13354
  throw new Error(
13355
13355
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -13576,7 +13576,7 @@ function parsePlayRunOptions(args) {
13576
13576
  };
13577
13577
  }
13578
13578
  function parsePlayCheckOptions(args) {
13579
- const selection = _chunkDRLNWL4Wjs.parseJsonFields.call(void 0, args, "check");
13579
+ const selection = _chunkYFRWD6LMjs.parseJsonFields.call(void 0, args, "check");
13580
13580
  args = selection.args;
13581
13581
  const target = args[0];
13582
13582
  if (!target || target.startsWith("-")) {
@@ -13588,7 +13588,7 @@ function parsePlayCheckOptions(args) {
13588
13588
  if (arg !== "--json" && arg !== "--full")
13589
13589
  throw new Error(`Unknown plays check option: ${arg}`);
13590
13590
  }
13591
- const jsonOutput = _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args);
13591
+ const jsonOutput = _chunkYFRWD6LMjs.argsWantJson.call(void 0, args);
13592
13592
  return {
13593
13593
  target,
13594
13594
  jsonOutput,
@@ -13664,7 +13664,7 @@ ${PLAY_PUBLISH_USAGE}`
13664
13664
  useLatest,
13665
13665
  expectedArtifactHash,
13666
13666
  dryRun,
13667
- jsonOutput: _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)
13667
+ jsonOutput: _chunkYFRWD6LMjs.argsWantJson.call(void 0, args)
13668
13668
  };
13669
13669
  }
13670
13670
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -13705,7 +13705,7 @@ ${PLAY_SAVE_USAGE}`);
13705
13705
  target,
13706
13706
  expectedArtifactHash,
13707
13707
  dryRun,
13708
- jsonOutput: _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)
13708
+ jsonOutput: _chunkYFRWD6LMjs.argsWantJson.call(void 0, args)
13709
13709
  };
13710
13710
  }
13711
13711
  function printScheduledPlayCapacity(capacity) {
@@ -13916,7 +13916,7 @@ function printBundledRuntimeWarning(bundle) {
13916
13916
  async function handlePlayCheck(args) {
13917
13917
  const options = parsePlayCheckOptions(args);
13918
13918
  if (!isFileTarget(options.target)) {
13919
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
13919
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
13920
13920
  try {
13921
13921
  await assertCanonicalNamedPlayReference(client, options.target, {
13922
13922
  command: "check"
@@ -13945,7 +13945,7 @@ async function handlePlayCheck(args) {
13945
13945
  },
13946
13946
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
13947
13947
  };
13948
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0, result, {
13948
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0, result, {
13949
13949
  json: options.jsonOutput,
13950
13950
  fields: options.jsonFields,
13951
13951
  text: renderPlayCheckOutput(result) + "\n"
@@ -13955,7 +13955,7 @@ async function handlePlayCheck(args) {
13955
13955
  const resolved = _path.resolve.call(void 0, options.target);
13956
13956
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
13957
13957
  if (options.jsonOutput) {
13958
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
13958
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
13959
13959
  {
13960
13960
  kind: "play_check",
13961
13961
  checked: "named_contract",
@@ -13997,7 +13997,7 @@ async function handlePlayCheck(args) {
13997
13997
  detailsCommand: `deepline plays check ${shellQuote2(options.target)} --full --json`,
13998
13998
  publishCommand: _optionalChain([primary, 'optionalAccess', _474 => _474.result, 'access', _475 => _475.artifactHash]) ? `deepline plays publish ${shellQuote2(options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
13999
13999
  });
14000
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0, output, {
14000
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0, output, {
14001
14001
  json: options.jsonOutput,
14002
14002
  fields: options.jsonFields,
14003
14003
  text: renderPlayCheckOutput(output) + "\n"
@@ -14059,7 +14059,7 @@ async function checkOneExportedPlay(input) {
14059
14059
  result: { valid: false, errors: descriptionErrors }
14060
14060
  };
14061
14061
  }
14062
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
14062
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
14063
14063
  const integrationMode = resolveEvalIntegrationMode();
14064
14064
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
14065
14065
  playName: node.playName,
@@ -14096,7 +14096,7 @@ async function handleFileBackedRun(options, hooks) {
14096
14096
  if (options.target.kind !== "file") {
14097
14097
  throw new Error("Expected a file-backed play run target.");
14098
14098
  }
14099
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)(playRunClientOptions(options));
14099
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)(playRunClientOptions(options));
14100
14100
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
14101
14101
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
14102
14102
  progress.phase("compiling play");
@@ -14308,7 +14308,7 @@ async function handleNamedRun(options, hooks) {
14308
14308
  if (options.target.kind !== "name") {
14309
14309
  throw new Error("Expected a named play run target.");
14310
14310
  }
14311
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)(playRunClientOptions(options));
14311
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)(playRunClientOptions(options));
14312
14312
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
14313
14313
  const playName = options.target.name;
14314
14314
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -14705,10 +14705,10 @@ function renderRunOverviewText(overview, extras = {}) {
14705
14705
  );
14706
14706
  return `${lines.join("\n")}
14707
14707
 
14708
- ${_chunkDRLNWL4Wjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
14708
+ ${_chunkYFRWD6LMjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
14709
14709
  }
14710
14710
  async function handleRunGet(args) {
14711
- const selection = _chunkDRLNWL4Wjs.parseJsonFields.call(void 0,
14711
+ const selection = _chunkYFRWD6LMjs.parseJsonFields.call(void 0,
14712
14712
  args,
14713
14713
  args.includes("--config") ? "config" : "get"
14714
14714
  );
@@ -14721,7 +14721,7 @@ async function handleRunGet(args) {
14721
14721
  console.error(error instanceof Error ? error.message : usage2);
14722
14722
  return 1;
14723
14723
  }
14724
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
14724
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
14725
14725
  if (args.includes("--config")) {
14726
14726
  if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
14727
14727
  console.error(
@@ -14735,7 +14735,7 @@ async function handleRunGet(args) {
14735
14735
  "This server does not support recorded configuration reads."
14736
14736
  );
14737
14737
  }
14738
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
14738
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
14739
14739
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
14740
14740
  { json: true, fields: selection.fields }
14741
14741
  );
@@ -14743,7 +14743,7 @@ async function handleRunGet(args) {
14743
14743
  }
14744
14744
  if (args.includes("--input")) {
14745
14745
  const input = await client.getRunInput(runId);
14746
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0, input, { json: true });
14746
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0, input, { json: true });
14747
14747
  return 0;
14748
14748
  }
14749
14749
  const full = args.includes("--full");
@@ -14756,8 +14756,8 @@ async function handleRunGet(args) {
14756
14756
  full: true,
14757
14757
  failedLogs: args.includes("--log-failed")
14758
14758
  }) : status;
14759
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
14760
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
14759
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
14760
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
14761
14761
  full ? legacyStatus : compactPlayStatus(legacyStatus),
14762
14762
  { json: true, fields: selection.fields }
14763
14763
  );
@@ -14773,8 +14773,8 @@ async function handleRunGet(args) {
14773
14773
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
14774
14774
  ]);
14775
14775
  const hitLines = formatRunHitsLines(hits);
14776
- const json = _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args);
14777
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
14776
+ const json = _chunkYFRWD6LMjs.argsWantJson.call(void 0, args);
14777
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
14778
14778
  {
14779
14779
  ...overview,
14780
14780
  credits,
@@ -14877,9 +14877,9 @@ async function handleRunLifecycleStatus(args) {
14877
14877
  console.error(error instanceof Error ? error.message : usage2);
14878
14878
  return 1;
14879
14879
  }
14880
- const status = await new (0, _chunkM5SHROFSjs.DeeplineClient)().runs.status(runId);
14881
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
14882
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0, status, { json: true });
14880
+ const status = await new (0, _chunkM6KBDWGIjs.DeeplineClient)().runs.status(runId);
14881
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
14882
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0, status, { json: true });
14883
14883
  return 0;
14884
14884
  }
14885
14885
  if (!status.available) {
@@ -14953,12 +14953,12 @@ async function handleRunsRerun(args) {
14953
14953
  index += 1;
14954
14954
  }
14955
14955
  }
14956
- const result = await new (0, _chunkM5SHROFSjs.DeeplineClient)().runs.rerun(runId, {
14956
+ const result = await new (0, _chunkM6KBDWGIjs.DeeplineClient)().runs.rerun(runId, {
14957
14957
  ...idempotencyKey ? { idempotencyKey } : {},
14958
14958
  ...inputOverrides ? { inputOverrides } : {}
14959
14959
  });
14960
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
14961
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0, result, { json: true });
14960
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
14961
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0, result, { json: true });
14962
14962
  } else {
14963
14963
  console.log(
14964
14964
  result.deduplicated === true ? `
@@ -15023,8 +15023,8 @@ ${usage2}
15023
15023
  Discover Plays: ${next.discover}
15024
15024
  Active runs: ${next.running}`
15025
15025
  );
15026
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
15027
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
15026
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
15027
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
15028
15028
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
15029
15029
  { json: true }
15030
15030
  );
@@ -15035,7 +15035,7 @@ Active runs: ${next.running}`
15035
15035
  console.error("--offset requires --play.");
15036
15036
  return 1;
15037
15037
  }
15038
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
15038
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
15039
15039
  const page = await client.runs.listPage({
15040
15040
  ...playName ? { play: playName } : {},
15041
15041
  ...statusFilter ? { status: statusFilter } : {},
@@ -15088,7 +15088,7 @@ Active runs: ${next.running}`
15088
15088
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
15089
15089
  );
15090
15090
  }
15091
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
15091
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
15092
15092
  {
15093
15093
  runs,
15094
15094
  count: runs.length,
@@ -15102,7 +15102,7 @@ Active runs: ${next.running}`
15102
15102
  },
15103
15103
  render: { sections: [{ title: "runs", lines }] }
15104
15104
  },
15105
- { json: _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args) }
15105
+ { json: _chunkYFRWD6LMjs.argsWantJson.call(void 0, args) }
15106
15106
  );
15107
15107
  return 0;
15108
15108
  }
@@ -15132,7 +15132,7 @@ async function handleRunTail(args) {
15132
15132
  console.error("--log-level requires one of: debug, info, warn, error.");
15133
15133
  return 1;
15134
15134
  }
15135
- const parsed = _chunkM5SHROFSjs.parseLogLevel.call(void 0, value);
15135
+ const parsed = _chunkM6KBDWGIjs.parseLogLevel.call(void 0, value);
15136
15136
  if (!parsed) {
15137
15137
  console.error(
15138
15138
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15170,9 +15170,9 @@ async function handleRunTail(args) {
15170
15170
  );
15171
15171
  return 1;
15172
15172
  }
15173
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
15173
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
15174
15174
  const jsonLines = args.includes("--jsonl");
15175
- const jsonOutput = !jsonLines && _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args);
15175
+ const jsonOutput = !jsonLines && _chunkYFRWD6LMjs.argsWantJson.call(void 0, args);
15176
15176
  const compact = args.includes("--compact");
15177
15177
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
15178
15178
  const compactState = {
@@ -15252,7 +15252,7 @@ async function handleRunLogs(args) {
15252
15252
  ]);
15253
15253
  const cursorIndex = args.indexOf("--cursor");
15254
15254
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
15255
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkM5SHROFSjs.isRunLogsCursor.call(void 0, cursorValue));
15255
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkM6KBDWGIjs.isRunLogsCursor.call(void 0, cursorValue));
15256
15256
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
15257
15257
  return handleRunEventSearch(args);
15258
15258
  }
@@ -15286,7 +15286,7 @@ async function handleRunLogs(args) {
15286
15286
  console.error("--log-level requires one of: debug, info, warn, error.");
15287
15287
  return 1;
15288
15288
  }
15289
- const parsed = _chunkM5SHROFSjs.parseLogLevel.call(void 0, value);
15289
+ const parsed = _chunkM6KBDWGIjs.parseLogLevel.call(void 0, value);
15290
15290
  if (!parsed) {
15291
15291
  console.error(
15292
15292
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15333,12 +15333,12 @@ async function handleRunLogs(args) {
15333
15333
  );
15334
15334
  return 1;
15335
15335
  }
15336
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
15336
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
15337
15337
  if (outPath) {
15338
15338
  const result2 = await client.runs.logs(runId, { all: true });
15339
- const logs = result2.entries.filter((line) => _chunkM5SHROFSjs.logLevelReaches.call(void 0, _chunkM5SHROFSjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkM5SHROFSjs.classifyLogLine.call(void 0, line).line);
15339
+ const logs = result2.entries.filter((line) => _chunkM6KBDWGIjs.logLevelReaches.call(void 0, _chunkM6KBDWGIjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkM6KBDWGIjs.classifyLogLine.call(void 0, line).line);
15340
15340
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
15341
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
15341
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
15342
15342
  {
15343
15343
  runId: result2.runId,
15344
15344
  log_path: outPath,
@@ -15361,7 +15361,7 @@ async function handleRunLogs(args) {
15361
15361
  ]
15362
15362
  }
15363
15363
  },
15364
- { json: _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args) }
15364
+ { json: _chunkYFRWD6LMjs.argsWantJson.call(void 0, args) }
15365
15365
  );
15366
15366
  return 0;
15367
15367
  }
@@ -15392,7 +15392,7 @@ async function handleRunLogs(args) {
15392
15392
  }
15393
15393
  };
15394
15394
  const text = buildRunLogsText(filteredResult);
15395
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
15395
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
15396
15396
  {
15397
15397
  runId: result.runId,
15398
15398
  totalCount: result.totalCount,
@@ -15416,7 +15416,7 @@ async function handleRunLogs(args) {
15416
15416
  render: { sections: [{ title: "run logs", lines: entries }] }
15417
15417
  },
15418
15418
  {
15419
- json: _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args),
15419
+ json: _chunkYFRWD6LMjs.argsWantJson.call(void 0, args),
15420
15420
  text
15421
15421
  }
15422
15422
  );
@@ -15440,7 +15440,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15440
15440
  );
15441
15441
  }
15442
15442
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
15443
- (entry) => _chunkM5SHROFSjs.logLevelReaches.call(void 0, _chunkM5SHROFSjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
15443
+ (entry) => _chunkM6KBDWGIjs.logLevelReaches.call(void 0, _chunkM6KBDWGIjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
15444
15444
  );
15445
15445
  const selected = matching.slice(-limit);
15446
15446
  const olderMatchesExist = matching.length > selected.length;
@@ -15450,7 +15450,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15450
15450
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _517 => _517.at, 'call', _518 => _518(-1), 'optionalAccess', _519 => _519.seq]), () => ( null)),
15451
15451
  truncated: result.truncated || olderMatchesExist,
15452
15452
  hasMore: olderMatchesExist,
15453
- nextCursor: olderMatchesExist ? _chunkM5SHROFSjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15453
+ nextCursor: olderMatchesExist ? _chunkM6KBDWGIjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15454
15454
  };
15455
15455
  }
15456
15456
  async function handleRunEventSearch(args) {
@@ -15517,7 +15517,7 @@ ${usage2}`);
15517
15517
  namespace,
15518
15518
  ...backend ? { backend } : {}
15519
15519
  } : void 0;
15520
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
15520
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
15521
15521
  const result = await client.runs.searchEvents({
15522
15522
  ...runId ? { runId } : {},
15523
15523
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -15590,7 +15590,7 @@ ${renderedDetails}` : ""}`;
15590
15590
  String(limit),
15591
15591
  "--json"
15592
15592
  ].join(" ") : null;
15593
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
15593
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
15594
15594
  {
15595
15595
  events,
15596
15596
  nextCursor: result.nextCursor,
@@ -15601,14 +15601,14 @@ ${renderedDetails}` : ""}`;
15601
15601
  render: { sections: [{ title: "runtime events", lines }] }
15602
15602
  },
15603
15603
  {
15604
- json: _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args),
15604
+ json: _chunkYFRWD6LMjs.argsWantJson.call(void 0, args),
15605
15605
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
15606
15606
  }
15607
15607
  );
15608
15608
  return 0;
15609
15609
  }
15610
15610
  function buildRunLogsText(result) {
15611
- const lines = result.entries.map((line) => _chunkM5SHROFSjs.classifyLogLine.call(void 0, line).line);
15611
+ const lines = result.entries.map((line) => _chunkM6KBDWGIjs.classifyLogLine.call(void 0, line).line);
15612
15612
  if (result.warning) {
15613
15613
  if (lines.length > 0) lines.push("");
15614
15614
  lines.push(`warning: ${result.warning}`);
@@ -15642,7 +15642,7 @@ async function handleRunStop(args) {
15642
15642
  reason = args[++index];
15643
15643
  }
15644
15644
  }
15645
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
15645
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
15646
15646
  const result = await client.runs.stop(runId, { reason });
15647
15647
  const state = resolveRunStopState(result);
15648
15648
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -15657,7 +15657,7 @@ async function handleRunStop(args) {
15657
15657
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
15658
15658
  `inspect: deepline runs get ${runId} --full --json`
15659
15659
  ];
15660
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
15660
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
15661
15661
  {
15662
15662
  ...cancelling,
15663
15663
  state,
@@ -15672,7 +15672,7 @@ async function handleRunStop(args) {
15672
15672
  ]
15673
15673
  }
15674
15674
  },
15675
- { json: _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args) }
15675
+ { json: _chunkYFRWD6LMjs.argsWantJson.call(void 0, args) }
15676
15676
  );
15677
15677
  return 0;
15678
15678
  }
@@ -15689,7 +15689,7 @@ async function handleRunStop(args) {
15689
15689
  ];
15690
15690
  process.stderr.write(`${lines2.join("\n")}
15691
15691
  `);
15692
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
15692
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
15693
15693
  {
15694
15694
  ...result,
15695
15695
  render: {
@@ -15704,7 +15704,7 @@ async function handleRunStop(args) {
15704
15704
  ]
15705
15705
  }
15706
15706
  },
15707
- { json: _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args) }
15707
+ { json: _chunkYFRWD6LMjs.argsWantJson.call(void 0, args) }
15708
15708
  );
15709
15709
  return 1;
15710
15710
  }
@@ -15715,12 +15715,12 @@ async function handleRunStop(args) {
15715
15715
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
15716
15716
  ] : []
15717
15717
  ];
15718
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
15718
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
15719
15719
  {
15720
15720
  ...result,
15721
15721
  render: { sections: [{ title: "run stop", lines }] }
15722
15722
  },
15723
- { json: _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args) }
15723
+ { json: _chunkYFRWD6LMjs.argsWantJson.call(void 0, args) }
15724
15724
  );
15725
15725
  return 0;
15726
15726
  }
@@ -15770,18 +15770,18 @@ async function handleRunStopAll(args) {
15770
15770
  reason = args[++index];
15771
15771
  }
15772
15772
  }
15773
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
15773
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
15774
15774
  if (dryRun) {
15775
15775
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
15776
15776
  const lines2 = buildStopAllDryRunTextLines(result2);
15777
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
15777
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
15778
15778
  {
15779
15779
  ...result2,
15780
15780
  render: {
15781
15781
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
15782
15782
  }
15783
15783
  },
15784
- { json: _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
15784
+ { json: _chunkYFRWD6LMjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
15785
15785
  ` }
15786
15786
  );
15787
15787
  return 0;
@@ -15794,17 +15794,17 @@ async function handleRunStopAll(args) {
15794
15794
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
15795
15795
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
15796
15796
  ];
15797
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
15797
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
15798
15798
  {
15799
15799
  ...result,
15800
15800
  render: { sections: [{ title: "workspace stop-all", lines }] }
15801
15801
  },
15802
- { json: _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args) }
15802
+ { json: _chunkYFRWD6LMjs.argsWantJson.call(void 0, args) }
15803
15803
  );
15804
15804
  return result.failed > 0 || result.partial ? 1 : 0;
15805
15805
  }
15806
15806
  async function handleRunExport(args) {
15807
- const selection = _chunkDRLNWL4Wjs.parseJsonFields.call(void 0, args, "export");
15807
+ const selection = _chunkYFRWD6LMjs.parseJsonFields.call(void 0, args, "export");
15808
15808
  args = selection.args;
15809
15809
  const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--json]";
15810
15810
  let runId;
@@ -15863,16 +15863,16 @@ async function handleRunExport(args) {
15863
15863
  "INVALID_ARGUMENT"
15864
15864
  );
15865
15865
  }
15866
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
15866
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
15867
15867
  let status = await client.getPlayStatus(runId, { full: true });
15868
15868
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
15869
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args));
15869
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkYFRWD6LMjs.argsWantJson.call(void 0, args));
15870
15870
  try {
15871
15871
  await waitForPlayCompletionByWatch({
15872
15872
  client,
15873
15873
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
15874
15874
  workflowId: runId,
15875
- jsonOutput: _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args),
15875
+ jsonOutput: _chunkYFRWD6LMjs.argsWantJson.call(void 0, args),
15876
15876
  emitLogs: false,
15877
15877
  waitTimeoutMs,
15878
15878
  startedAt: Date.now(),
@@ -15971,8 +15971,8 @@ async function handleRunExport(args) {
15971
15971
  "utf-8"
15972
15972
  );
15973
15973
  }
15974
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0, payload, {
15975
- json: _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args),
15974
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0, payload, {
15975
+ json: _chunkYFRWD6LMjs.argsWantJson.call(void 0, args),
15976
15976
  fields: selection.fields,
15977
15977
  text: `${lines.join("\n")}
15978
15978
  `
@@ -15993,10 +15993,10 @@ async function handlePlayGet(args) {
15993
15993
  );
15994
15994
  return 2;
15995
15995
  }
15996
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
15996
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
15997
15997
  const explicitJson = args.includes("--json");
15998
15998
  const sourceOutput = args.includes("--source");
15999
- const jsonOutput = sourceOutput ? explicitJson : _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args);
15999
+ const jsonOutput = sourceOutput ? explicitJson : _chunkYFRWD6LMjs.argsWantJson.call(void 0, args);
16000
16000
  const requestedRevisionFlags = [
16001
16001
  args.includes("--working"),
16002
16002
  args.includes("--live"),
@@ -16056,7 +16056,7 @@ async function handlePlayGet(args) {
16056
16056
  }
16057
16057
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
16058
16058
  if (jsonOutput) {
16059
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, {
16059
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, {
16060
16060
  ...detail,
16061
16061
  ...materializedFile ? {
16062
16062
  message: loadedMessage,
@@ -16143,8 +16143,8 @@ async function handlePlayVersions(args) {
16143
16143
  console.error("Usage: deepline plays versions --name <name> [--json]");
16144
16144
  return 1;
16145
16145
  }
16146
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
16147
- const jsonOutput = _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args);
16146
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
16147
+ const jsonOutput = _chunkYFRWD6LMjs.argsWantJson.call(void 0, args);
16148
16148
  await assertCanonicalNamedPlayReference(client, playName, {
16149
16149
  command: "versions"
16150
16150
  });
@@ -16152,7 +16152,7 @@ async function handlePlayVersions(args) {
16152
16152
  parseReferencedPlayTarget2(playName).playName
16153
16153
  );
16154
16154
  if (jsonOutput) {
16155
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, { versions });
16155
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, { versions });
16156
16156
  return 0;
16157
16157
  }
16158
16158
  if (versions.length === 0) {
@@ -16184,9 +16184,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
16184
16184
  "signals"
16185
16185
  ];
16186
16186
  async function handlePlayList(args) {
16187
- const jsonOutput = _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args);
16187
+ const jsonOutput = _chunkYFRWD6LMjs.argsWantJson.call(void 0, args);
16188
16188
  const showCost = args.includes("--show-cost");
16189
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
16189
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
16190
16190
  const categoriesIndex = args.indexOf("--categories");
16191
16191
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _555 => _555[categoriesIndex + 1], 'optionalAccess', _556 => _556.trim, 'call', _557 => _557()]) : void 0;
16192
16192
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -16283,7 +16283,7 @@ async function handlePlayList(args) {
16283
16283
  lines.push("List truncated \u2014 more plays are available.");
16284
16284
  lines.push(`Next page: ${nextPage}`);
16285
16285
  }
16286
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
16286
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
16287
16287
  {
16288
16288
  plays,
16289
16289
  count: plays.length,
@@ -16301,7 +16301,7 @@ async function handlePlayList(args) {
16301
16301
  }
16302
16302
  async function handlePlayPin(args, pinned) {
16303
16303
  const target = _optionalChain([args, 'access', _564 => _564.find, 'call', _565 => _565((arg) => !arg.startsWith("-")), 'optionalAccess', _566 => _566.trim, 'call', _567 => _567()]);
16304
- const jsonOutput = _chunkDRLNWL4Wjs.argsWantJson.call(void 0, args);
16304
+ const jsonOutput = _chunkYFRWD6LMjs.argsWantJson.call(void 0, args);
16305
16305
  const dryRun = args.includes("--dry-run");
16306
16306
  if (!target) {
16307
16307
  console.error(
@@ -16319,11 +16319,11 @@ async function handlePlayPin(args, pinned) {
16319
16319
  const name = parsedTarget.playName;
16320
16320
  const plan = { name, pinned, dryRun };
16321
16321
  if (dryRun) {
16322
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, plan);
16322
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, plan);
16323
16323
  return 0;
16324
16324
  }
16325
- const result = await new (0, _chunkM5SHROFSjs.DeeplineClient)().setPlayPinned(name, pinned);
16326
- if (jsonOutput) _chunkDRLNWL4Wjs.printCompactJson.call(void 0, result);
16325
+ const result = await new (0, _chunkM6KBDWGIjs.DeeplineClient)().setPlayPinned(name, pinned);
16326
+ if (jsonOutput) _chunkYFRWD6LMjs.printCompactJson.call(void 0, result);
16327
16327
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
16328
16328
  return 0;
16329
16329
  }
@@ -16339,7 +16339,7 @@ function csvColumnLines(csvInput) {
16339
16339
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
16340
16340
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
16341
16341
  }),
16342
- _chunkM5SHROFSjs.CSV_HEADER_MATCHING_NOTE
16342
+ _chunkM6KBDWGIjs.CSV_HEADER_MATCHING_NOTE
16343
16343
  ];
16344
16344
  }
16345
16345
  function printPlayDescription(play) {
@@ -16446,12 +16446,12 @@ async function handlePlayGrep(args) {
16446
16446
  console.error("Usage: deepline plays grep <query> [--json]");
16447
16447
  return 1;
16448
16448
  }
16449
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
16449
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
16450
16450
  const results = (await client.listPlays({ grep: query })).map(
16451
16451
  summarizePlayGrepResult
16452
16452
  );
16453
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
16454
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, {
16453
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
16454
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, {
16455
16455
  plays: results,
16456
16456
  count: results.length,
16457
16457
  query,
@@ -16474,7 +16474,7 @@ async function handlePlayGrep(args) {
16474
16474
  return 0;
16475
16475
  }
16476
16476
  async function handlePlayDescribe(args) {
16477
- const selection = _chunkDRLNWL4Wjs.parseJsonFields.call(void 0, args, "describe");
16477
+ const selection = _chunkYFRWD6LMjs.parseJsonFields.call(void 0, args, "describe");
16478
16478
  args = selection.args;
16479
16479
  const playName = args[0];
16480
16480
  if (!playName) {
@@ -16508,8 +16508,8 @@ async function handlePlayDescribe(args) {
16508
16508
  `deepline plays check ${playName}`,
16509
16509
  ...definedName ? [`deepline plays describe <workspace>/${definedName}`] : []
16510
16510
  ];
16511
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
16512
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, {
16511
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
16512
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, {
16513
16513
  ok: false,
16514
16514
  error: { message },
16515
16515
  next
@@ -16523,7 +16523,7 @@ async function handlePlayDescribe(args) {
16523
16523
  }
16524
16524
  return 2;
16525
16525
  }
16526
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
16526
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
16527
16527
  await assertCanonicalNamedPlayReference(client, playName, {
16528
16528
  command: "describe"
16529
16529
  });
@@ -16533,9 +16533,9 @@ async function handlePlayDescribe(args) {
16533
16533
  compact: args.includes("--compact")
16534
16534
  }
16535
16535
  );
16536
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
16537
- if (selection.fields) _chunkDRLNWL4Wjs.printJson.call(void 0, play, selection.fields);
16538
- else _chunkDRLNWL4Wjs.printCompactJson.call(void 0, play);
16536
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
16537
+ if (selection.fields) _chunkYFRWD6LMjs.printJson.call(void 0, play, selection.fields);
16538
+ else _chunkYFRWD6LMjs.printCompactJson.call(void 0, play);
16539
16539
  return 0;
16540
16540
  }
16541
16541
  printPlayDescription(play);
@@ -16579,7 +16579,7 @@ async function handlePlaySave(args) {
16579
16579
  next: `deepline plays check ${shellQuote2(options.target)}`
16580
16580
  };
16581
16581
  if (options.jsonOutput) {
16582
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, result);
16582
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, result);
16583
16583
  } else {
16584
16584
  console.error(result.message);
16585
16585
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -16601,7 +16601,7 @@ async function handlePlaySave(args) {
16601
16601
  };
16602
16602
  if (options.dryRun) {
16603
16603
  if (options.jsonOutput) {
16604
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, dryRun);
16604
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, dryRun);
16605
16605
  } else {
16606
16606
  console.log(`Dry run: ${playName}`);
16607
16607
  console.log(` source: ${dryRun.sourceHash}`);
@@ -16610,7 +16610,7 @@ async function handlePlaySave(args) {
16610
16610
  }
16611
16611
  return 0;
16612
16612
  }
16613
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
16613
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
16614
16614
  try {
16615
16615
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
16616
16616
  "cli.play_save_compile_manifests",
@@ -16646,7 +16646,7 @@ async function handlePlaySave(args) {
16646
16646
  }
16647
16647
  };
16648
16648
  if (options.jsonOutput) {
16649
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, result);
16649
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, result);
16650
16650
  } else {
16651
16651
  console.log(
16652
16652
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -16672,7 +16672,7 @@ async function handlePlayPublish(args) {
16672
16672
  }
16673
16673
  const { target: playName, useLatest } = options;
16674
16674
  let revisionId = options.revisionId;
16675
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
16675
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
16676
16676
  if (isFileTarget(playName)) {
16677
16677
  if (revisionId || useLatest) {
16678
16678
  console.error(
@@ -16704,7 +16704,7 @@ async function handlePlayPublish(args) {
16704
16704
  next: `deepline plays check ${shellQuote2(playName)}`
16705
16705
  };
16706
16706
  if (options.jsonOutput) {
16707
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, result3);
16707
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, result3);
16708
16708
  } else {
16709
16709
  console.error(result3.message);
16710
16710
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -16727,7 +16727,7 @@ async function handlePlayPublish(args) {
16727
16727
  };
16728
16728
  if (options.dryRun) {
16729
16729
  if (options.jsonOutput) {
16730
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, dryRun);
16730
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, dryRun);
16731
16731
  } else {
16732
16732
  console.log(`Dry run: ${rootPlayName}`);
16733
16733
  console.log(` source: ${dryRun.sourceHash}`);
@@ -16795,7 +16795,7 @@ async function handlePlayPublish(args) {
16795
16795
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
16796
16796
  };
16797
16797
  if (options.jsonOutput) {
16798
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, result2);
16798
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, result2);
16799
16799
  } else {
16800
16800
  printPublishReceipt({
16801
16801
  name: rootPlayName,
@@ -16826,7 +16826,7 @@ async function handlePlayPublish(args) {
16826
16826
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
16827
16827
  latest: useLatest
16828
16828
  };
16829
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, result2);
16829
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, result2);
16830
16830
  return 0;
16831
16831
  }
16832
16832
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -16850,7 +16850,7 @@ async function handlePlayPublish(args) {
16850
16850
  revisionId ? { revisionId } : {}
16851
16851
  );
16852
16852
  if (options.jsonOutput) {
16853
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, result);
16853
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, result);
16854
16854
  } else {
16855
16855
  printPublishReceipt({
16856
16856
  name: result.name,
@@ -16890,7 +16890,7 @@ async function handlePlayDelete(args) {
16890
16890
  );
16891
16891
  return 2;
16892
16892
  }
16893
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
16893
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
16894
16894
  let detail;
16895
16895
  try {
16896
16896
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -16914,8 +16914,8 @@ async function handlePlayDelete(args) {
16914
16914
  name: resolvedName,
16915
16915
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
16916
16916
  };
16917
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
16918
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, result2);
16917
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
16918
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, result2);
16919
16919
  } else {
16920
16920
  process.stdout.write(
16921
16921
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -16925,8 +16925,8 @@ async function handlePlayDelete(args) {
16925
16925
  return 0;
16926
16926
  }
16927
16927
  const result = await client.deletePlay(resolvedName);
16928
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
16929
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, result);
16928
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
16929
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, result);
16930
16930
  return result.archived || result.alreadyArchived ? 0 : 4;
16931
16931
  }
16932
16932
  if (result.alreadyArchived) {
@@ -16965,13 +16965,13 @@ async function handlePlayRestore(args) {
16965
16965
  );
16966
16966
  return 2;
16967
16967
  }
16968
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
16968
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
16969
16969
  try {
16970
16970
  const result = await client.restorePlay(
16971
16971
  parseReferencedPlayTarget2(playName).playName
16972
16972
  );
16973
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
16974
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, result);
16973
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
16974
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, result);
16975
16975
  return result.restored || result.alreadyActive ? 0 : 4;
16976
16976
  }
16977
16977
  if (result.alreadyActive) {
@@ -17076,7 +17076,7 @@ Examples:
17076
17076
  ).action(async (target, options) => {
17077
17077
  process.exitCode = await handlePlayCheck([
17078
17078
  target,
17079
- ..._chunkDRLNWL4Wjs.jsonFieldArgs.call(void 0, options.json),
17079
+ ..._chunkYFRWD6LMjs.jsonFieldArgs.call(void 0, options.json),
17080
17080
  ...options.full ? ["--full"] : []
17081
17081
  ]);
17082
17082
  });
@@ -17263,7 +17263,7 @@ JSON field selection:
17263
17263
  ...options.maxConcurrentRows ? ["--max-concurrent-rows", options.maxConcurrentRows] : [],
17264
17264
  ...options.open ? ["--open"] : [],
17265
17265
  ...options.debugMapLatency ? ["--debug-map-latency"] : [],
17266
- ..._chunkDRLNWL4Wjs.jsonFieldArgs.call(void 0, options.json),
17266
+ ..._chunkYFRWD6LMjs.jsonFieldArgs.call(void 0, options.json),
17267
17267
  ...options.full ? ["--full"] : [],
17268
17268
  ...passthroughArgs
17269
17269
  ]);
@@ -17318,9 +17318,9 @@ Examples:
17318
17318
  const limit = Number(options.historyLimit);
17319
17319
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
17320
17320
  throw new Error("--history-limit must be an integer from 1 to 30.");
17321
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
17321
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
17322
17322
  if (options.binding) {
17323
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0,
17323
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0,
17324
17324
  await client.getPlayTriggerHistory(options.binding, { limit })
17325
17325
  );
17326
17326
  return;
@@ -17328,7 +17328,7 @@ Examples:
17328
17328
  const result = await client.listPlayTriggerInventory({
17329
17329
  cursor: options.cursor
17330
17330
  });
17331
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, {
17331
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, {
17332
17332
  ...result,
17333
17333
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
17334
17334
  });
@@ -17375,7 +17375,7 @@ Examples:
17375
17375
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
17376
17376
  throw new Error("--group-by must be kind or trigger_source.");
17377
17377
  }
17378
- const result = await new (0, _chunkM5SHROFSjs.DeeplineClient)().getPlaysActivity({
17378
+ const result = await new (0, _chunkM6KBDWGIjs.DeeplineClient)().getPlaysActivity({
17379
17379
  timeZone: options.timeZone,
17380
17380
  days,
17381
17381
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -17389,7 +17389,7 @@ Examples:
17389
17389
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
17390
17390
  );
17391
17391
  }
17392
- _chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
17392
+ _chunkYFRWD6LMjs.printCommandEnvelope.call(void 0,
17393
17393
  { ...result },
17394
17394
  {
17395
17395
  json: options.json || !process.stdout.isTTY,
@@ -17418,7 +17418,7 @@ Examples:
17418
17418
  false
17419
17419
  );
17420
17420
  });
17421
- _chunkNMTG3N2Jjs.registerDeprecatedSearchCommand.call(void 0,
17421
+ _chunkQDFEF4PIjs.registerDeprecatedSearchCommand.call(void 0,
17422
17422
  play,
17423
17423
  (options) => options.all ? ["plays"] : ["prebuilts"]
17424
17424
  );
@@ -17461,7 +17461,7 @@ Examples:
17461
17461
  "JSON output; optionally select comma-separated dotted paths"
17462
17462
  ).action(async (target, options) => {
17463
17463
  process.exitCode = await handlePlayDescribe(
17464
- _chunkDRLNWL4Wjs.describeArgs.call(void 0, target, options)
17464
+ _chunkYFRWD6LMjs.describeArgs.call(void 0, target, options)
17465
17465
  );
17466
17466
  });
17467
17467
  play.command("versions").description("List revisions for a named play.").addHelpText(
@@ -17568,7 +17568,7 @@ Examples:
17568
17568
  deepline plays deployments <deployment-id>
17569
17569
  `
17570
17570
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
17571
- async (id, options) => id ? _chunkXUA3QCZUjs.handleDeploymentGet.call(void 0, id, options) : _chunkXUA3QCZUjs.handleDeploymentsList.call(void 0, options)
17571
+ async (id, options) => id ? _chunkZNC3KU5Ojs.handleDeploymentGet.call(void 0, id, options) : _chunkZNC3KU5Ojs.handleDeploymentsList.call(void 0, options)
17572
17572
  );
17573
17573
  addPublishHelp(
17574
17574
  play.command("publish <target>").description(
@@ -17747,7 +17747,7 @@ Examples:
17747
17747
  ).action(async (runId, options) => {
17748
17748
  process.exitCode = await handleRunGet([
17749
17749
  runId,
17750
- ..._chunkDRLNWL4Wjs.jsonFieldArgs.call(void 0, options.json),
17750
+ ..._chunkYFRWD6LMjs.jsonFieldArgs.call(void 0, options.json),
17751
17751
  ...options.full ? ["--full"] : [],
17752
17752
  ...options.input ? ["--input"] : [],
17753
17753
  ...options.config ? ["--config"] : [],
@@ -18000,7 +18000,7 @@ Examples:
18000
18000
  ...options.metadataOut ? ["--metadata-out", options.metadataOut] : [],
18001
18001
  ...options.wait ? ["--wait"] : [],
18002
18002
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
18003
- ..._chunkDRLNWL4Wjs.jsonFieldArgs.call(void 0, options.json)
18003
+ ..._chunkYFRWD6LMjs.jsonFieldArgs.call(void 0, options.json)
18004
18004
  ]);
18005
18005
  });
18006
18006
  const share = play.command("share").description(
@@ -18166,10 +18166,10 @@ async function handlePlayShareStatus(args) {
18166
18166
  return 2;
18167
18167
  }
18168
18168
  const name = parseReferencedPlayTarget2(target).playName;
18169
- const status = await new (0, _chunkM5SHROFSjs.DeeplineClient)().getSharePage(name);
18169
+ const status = await new (0, _chunkM6KBDWGIjs.DeeplineClient)().getSharePage(name);
18170
18170
  const outputStatus = shareStatusForOutput(status);
18171
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
18172
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, outputStatus);
18171
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
18172
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, outputStatus);
18173
18173
  return 0;
18174
18174
  }
18175
18175
  if (!outputStatus.share) {
@@ -18208,7 +18208,7 @@ async function handlePlaySharePublish(args) {
18208
18208
  return 2;
18209
18209
  }
18210
18210
  const name = parseReferencedPlayTarget2(target).playName;
18211
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
18211
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
18212
18212
  let revisionId = shareFlagValue(args, "--revision-id");
18213
18213
  let resolvedVersion;
18214
18214
  if (!revisionId) {
@@ -18239,8 +18239,8 @@ async function handlePlaySharePublish(args) {
18239
18239
  );
18240
18240
  if (!hasCompleted) {
18241
18241
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
18242
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
18243
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, {
18242
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
18243
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, {
18244
18244
  ok: false,
18245
18245
  code: "NO_SUCCESSFUL_RUN",
18246
18246
  message,
@@ -18264,8 +18264,8 @@ async function handlePlaySharePublish(args) {
18264
18264
  };
18265
18265
  if (args.includes("--dry-run")) {
18266
18266
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
18267
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
18268
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, plan);
18267
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
18268
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, plan);
18269
18269
  } else {
18270
18270
  console.log(
18271
18271
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -18275,8 +18275,8 @@ async function handlePlaySharePublish(args) {
18275
18275
  }
18276
18276
  const status = await client.publishSharePage(name, request);
18277
18277
  const outputStatus = shareStatusForOutput(status);
18278
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
18279
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, outputStatus);
18278
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
18279
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, outputStatus);
18280
18280
  return 0;
18281
18281
  }
18282
18282
  const urls = shareUrlFields(outputStatus);
@@ -18307,9 +18307,9 @@ async function handlePlayShareUpdate(args) {
18307
18307
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
18308
18308
  ...seoIndexing ? { seoIndexing } : {}
18309
18309
  };
18310
- const status = await new (0, _chunkM5SHROFSjs.DeeplineClient)().updateSharePage(name, request);
18311
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
18312
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, status);
18310
+ const status = await new (0, _chunkM6KBDWGIjs.DeeplineClient)().updateSharePage(name, request);
18311
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
18312
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, status);
18313
18313
  return 0;
18314
18314
  }
18315
18315
  console.log(`Updated ${name} share settings.`);
@@ -18324,7 +18324,7 @@ async function handlePlayShareRegenerate(args) {
18324
18324
  return 2;
18325
18325
  }
18326
18326
  const name = parseReferencedPlayTarget2(target).playName;
18327
- const client = new (0, _chunkM5SHROFSjs.DeeplineClient)();
18327
+ const client = new (0, _chunkM6KBDWGIjs.DeeplineClient)();
18328
18328
  let revisionId = shareFlagValue(args, "--revision-id");
18329
18329
  const versionFlag = shareFlagValue(args, "--version");
18330
18330
  if (!revisionId && versionFlag) {
@@ -18341,8 +18341,8 @@ async function handlePlayShareRegenerate(args) {
18341
18341
  revisionId ? { revisionId } : {}
18342
18342
  );
18343
18343
  const outputStatus = shareStatusForOutput(status);
18344
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
18345
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, outputStatus);
18344
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
18345
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, outputStatus);
18346
18346
  return 0;
18347
18347
  }
18348
18348
  const urls = shareUrlFields(outputStatus);
@@ -18367,9 +18367,9 @@ async function handlePlayShareUnpublish(args) {
18367
18367
  return 2;
18368
18368
  }
18369
18369
  const name = parseReferencedPlayTarget2(target).playName;
18370
- const status = await new (0, _chunkM5SHROFSjs.DeeplineClient)().unpublishSharePage(name);
18371
- if (_chunkDRLNWL4Wjs.argsWantJson.call(void 0, args)) {
18372
- _chunkDRLNWL4Wjs.printCompactJson.call(void 0, status);
18370
+ const status = await new (0, _chunkM6KBDWGIjs.DeeplineClient)().unpublishSharePage(name);
18371
+ if (_chunkYFRWD6LMjs.argsWantJson.call(void 0, args)) {
18372
+ _chunkYFRWD6LMjs.printCompactJson.call(void 0, status);
18373
18373
  return 0;
18374
18374
  }
18375
18375
  console.log(`Unpublished ${name}; the public page has been removed.`);