deepline 0.3.297 → 0.3.299

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 (91) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/monitors/quickstart-prompts.ts +15 -0
  3. package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +9 -98
  4. package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +15 -2
  5. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +3 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +80 -33
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +115 -59
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +15 -3
  9. package/dist/cli/auth-4WFBFN3L.js +31 -0
  10. package/dist/cli/{auth-FOHTQKQV.mjs → auth-GWIEEZWL.mjs} +4 -4
  11. package/dist/cli/{billing-NRKIBTKJ.js → billing-K5EVUVEH.js} +70 -70
  12. package/dist/cli/{billing-ZY3KZNZD.mjs → billing-O5RAKWXK.mjs} +4 -4
  13. package/dist/cli/{chunk-VIOM5OEQ.js → chunk-2BISKKLW.js} +58 -58
  14. package/dist/cli/{chunk-YH2XATMF.js → chunk-3M3LQJUV.js} +26 -26
  15. package/dist/cli/{chunk-FSPE246W.js → chunk-4B7VWFHW.js} +15 -15
  16. package/dist/cli/{chunk-YCCDPYIV.mjs → chunk-5465KL4F.mjs} +4 -4
  17. package/dist/cli/{chunk-QPBTAYNK.mjs → chunk-6ECTEH6V.mjs} +2 -2
  18. package/dist/cli/{chunk-4NYMO67X.js → chunk-ACSNZYU3.js} +2 -2
  19. package/dist/cli/{chunk-ZXJWXNGA.mjs → chunk-BQ63LCEL.mjs} +3 -3
  20. package/dist/cli/{chunk-PYXPP7NX.mjs → chunk-CJBMCJW7.mjs} +1 -1
  21. package/dist/cli/{chunk-B52G7BYN.js → chunk-CL4YLYGW.js} +6 -6
  22. package/dist/cli/{chunk-FHO5PO6Q.js → chunk-D2P4AM5M.js} +6 -6
  23. package/dist/cli/{chunk-OSUS6K5I.js → chunk-DMTWRFPD.js} +4 -4
  24. package/dist/cli/{chunk-PLKA4WFH.mjs → chunk-FKKCGFQ2.mjs} +3 -3
  25. package/dist/cli/{chunk-DBZX2IWV.mjs → chunk-FT2TIKOX.mjs} +2 -2
  26. package/dist/cli/{chunk-R2COLUYE.mjs → chunk-QAEIUQPS.mjs} +1 -1
  27. package/dist/cli/{chunk-IJGJKU4L.js → chunk-REFGDIMC.js} +1 -1
  28. package/dist/cli/{chunk-YFPOHUWQ.mjs → chunk-S34ZVHGJ.mjs} +1 -1
  29. package/dist/cli/{chunk-QIJ32UEW.js → chunk-SJK2LSDQ.js} +6 -6
  30. package/dist/cli/{chunk-SZJM7D7W.mjs → chunk-TRSF2X3K.mjs} +1 -1
  31. package/dist/cli/{chunk-AC3SC3AC.mjs → chunk-W2N5FICT.mjs} +1 -1
  32. package/dist/cli/{chunk-34A5RSXF.js → chunk-WF7XMZAC.js} +6 -6
  33. package/dist/cli/{chunk-V24XJVLX.js → chunk-XUMCCIOY.js} +48 -48
  34. package/dist/cli/{chunk-R5BISWXF.mjs → chunk-ZWUOF7WR.mjs} +1 -1
  35. package/dist/cli/{client-65MCTEMR.mjs → client-OXUEAZD2.mjs} +3 -3
  36. package/dist/cli/client-ZBLK3VOY.js +20 -0
  37. package/dist/cli/{csv-SHCW3IJL.js → csv-J24BXLDP.js} +12 -12
  38. package/dist/cli/{csv-TJWBSMR2.mjs → csv-NV6QBRGT.mjs} +3 -3
  39. package/dist/cli/{db-DN6YHQTC.js → db-FL4N5LXG.js} +20 -20
  40. package/dist/cli/{db-K7QXXM5C.mjs → db-IY4LHKLR.mjs} +4 -4
  41. package/dist/cli/{executions-FRQO6SJF.mjs → executions-72PNXJWI.mjs} +4 -4
  42. package/dist/cli/{executions-2POJWTCH.js → executions-OYGLF6K2.js} +6 -6
  43. package/dist/cli/{feedback-A6232HB5.mjs → feedback-NGPJBTUS.mjs} +3 -3
  44. package/dist/cli/{feedback-EEYZOH3S.js → feedback-WHOLOKBU.js} +6 -6
  45. package/dist/cli/git-GD5I7YOP.js +23 -0
  46. package/dist/cli/{git-FRVNZNIA.mjs → git-HQKCORLT.mjs} +4 -4
  47. package/dist/cli/index.js +73 -73
  48. package/dist/cli/index.mjs +30 -30
  49. package/dist/cli/{legacy-noops-NREP3YMQ.js → legacy-noops-5RHXWONK.js} +7 -7
  50. package/dist/cli/{legacy-noops-WEN2VQKS.mjs → legacy-noops-MCAHTGPU.mjs} +4 -4
  51. package/dist/cli/{monitors-EHHO4IGT.js → monitors-MC4QEQ7N.js} +85 -85
  52. package/dist/cli/{monitors-2F7GLG24.mjs → monitors-X2KE6CL6.mjs} +4 -4
  53. package/dist/cli/{org-TTFZKSMD.js → org-75TWPW5D.js} +60 -60
  54. package/dist/cli/{org-JONFO5PV.mjs → org-YW6EKMHL.mjs} +4 -4
  55. package/dist/cli/{play-N3JMRLKG.js → play-CAMPEI5I.js} +200 -200
  56. package/dist/cli/{play-Y7U2XU2K.mjs → play-DEBY5SCV.mjs} +6 -6
  57. package/dist/cli/{providers-CWPT5L3U.mjs → providers-IA77P6YJ.mjs} +4 -4
  58. package/dist/cli/{providers-I4V4QCOM.js → providers-VNOHQ2AS.js} +7 -7
  59. package/dist/cli/{quickstart-UBONJ6EY.mjs → quickstart-K7HQS543.mjs} +3 -3
  60. package/dist/cli/{quickstart-2DDUIWC5.js → quickstart-LDTV2HGI.js} +5 -5
  61. package/dist/cli/{search-BHCCYLF2.mjs → search-536X3UCU.mjs} +5 -5
  62. package/dist/cli/{search-Z72FUFXL.js → search-SN5OPRXZ.js} +6 -6
  63. package/dist/cli/{secrets-AE22MX42.js → secrets-2EW56WXT.js} +13 -13
  64. package/dist/cli/{secrets-BGD4PNTG.mjs → secrets-B3AJVZEX.mjs} +4 -4
  65. package/dist/cli/{sessions-7SIBBFHF.js → sessions-3VDMBHNS.js} +5 -5
  66. package/dist/cli/{sessions-JYSG6SUN.mjs → sessions-WBJUUGWS.mjs} +4 -4
  67. package/dist/cli/{settings-LCA42CL3.js → settings-KABYSG3X.js} +74 -74
  68. package/dist/cli/{settings-4XWN4JFT.mjs → settings-RLDDNKLV.mjs} +7 -7
  69. package/dist/cli/{setup-NID2M4GQ.js → setup-CSOSGT4H.js} +41 -41
  70. package/dist/cli/{setup-WMOKDWHV.mjs → setup-LXS6GANX.mjs} +6 -6
  71. package/dist/cli/{skills-6IL3LQUJ.mjs → skills-63SF5XTZ.mjs} +4 -4
  72. package/dist/cli/skills-C7MLZJEK.js +28 -0
  73. package/dist/cli/{tools-BOIRKQA4.mjs → tools-HNP35FVR.mjs} +5 -5
  74. package/dist/cli/{tools-TZLX4WAL.js → tools-RHL5K6UA.js} +50 -50
  75. package/dist/cli/{update-VF3BB3R7.mjs → update-BIUXK2GK.mjs} +6 -6
  76. package/dist/cli/update-NFJGKKZ6.js +28 -0
  77. package/dist/cli/{workflow-RUTOLKOS.js → workflow-45YNQNPE.js} +15 -15
  78. package/dist/cli/{workflow-UZKD5KU2.mjs → workflow-EKLCRCUD.mjs} +5 -5
  79. package/dist/index.js +6 -6
  80. package/dist/index.mjs +3 -3
  81. package/dist/install-integrity.json +68 -68
  82. package/dist/release.d.mts +1 -1
  83. package/dist/release.d.ts +1 -1
  84. package/dist/release.js +2 -2
  85. package/dist/release.mjs +1 -1
  86. package/package.json +1 -1
  87. package/dist/cli/auth-DLGUNY3B.js +0 -31
  88. package/dist/cli/client-QLERARAF.js +0 -20
  89. package/dist/cli/git-SZHVHZWU.js +0 -23
  90. package/dist/cli/skills-AYCZ4UXS.js +0 -28
  91. package/dist/cli/update-EEFUC76J.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 _chunkYH2XATMFjs = require('./chunk-YH2XATMF.js');
4
+ var _chunk3M3LQJUVjs = require('./chunk-3M3LQJUV.js');
5
5
 
6
6
 
7
7
  var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
8
8
 
9
9
 
10
- var _chunkFHO5PO6Qjs = require('./chunk-FHO5PO6Q.js');
10
+ var _chunkD2P4AM5Mjs = require('./chunk-D2P4AM5M.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 _chunkQIJ32UEWjs = require('./chunk-QIJ32UEW.js');
31
+ var _chunkSJK2LSDQjs = require('./chunk-SJK2LSDQ.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 _chunk34A5RSXFjs = require('./chunk-34A5RSXF.js');
62
+ var _chunkWF7XMZACjs = require('./chunk-WF7XMZAC.js');
63
63
 
64
64
 
65
- var _chunkOSUS6K5Ijs = require('./chunk-OSUS6K5I.js');
65
+ var _chunkDMTWRFPDjs = require('./chunk-DMTWRFPD.js');
66
66
  require('./chunk-XNYIZMNQ.js');
67
- require('./chunk-IJGJKU4L.js');
67
+ require('./chunk-REFGDIMC.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
2044
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
2088
+ _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)().getPlaySettings(options.play),
2113
+ await new (0, _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
2144
+ _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)().updatePlaySettings(play, patch),
2165
+ await new (0, _chunkSJK2LSDQjs.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, _chunkQIJ32UEWjs.DeeplineClient)().listPlaySettingsPaths({
2191
+ const page = await new (0, _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
2197
+ _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
2248
+ const client = new (0, _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
2310
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
2438
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
2451
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
2481
+ _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2500
+ await new (0, _chunkSJK2LSDQjs.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, _chunkQIJ32UEWjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2533
+ await new (0, _chunkSJK2LSDQjs.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, _chunkQIJ32UEWjs.DeeplineClient)().getPlayTriggerConfig(
2577
+ const current = await new (0, _chunkSJK2LSDQjs.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 = _chunkQIJ32UEWjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2654
+ var RUN_LOGS_KIND_HELP = _chunkSJK2LSDQjs.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}${_chunkQIJ32UEWjs.playInputExampleArgs.call(void 0, schema)} --json`,
3514
+ command: `${base}${_chunkSJK2LSDQjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
5132
+ const client = new (0, _chunkSJK2LSDQjs.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, _chunkQIJ32UEWjs.DeeplineClient)().runs.getReceipts(runId, {
5287
+ const response = await new (0, _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
5299
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5309
+ _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)().runs.children(parentRunId, {
5348
+ const page = await new (0, _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
5364
+ _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)().runs.history({
5400
+ const page = await new (0, _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
5416
+ _chunkWF7XMZACjs.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 _chunk34A5RSXFjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
5692
+ return _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
8500
+ _chunkWF7XMZACjs.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 } = _chunk34A5RSXFjs.getAuthedHttpClient.call(void 0, );
8525
+ const { http, config } = _chunkWF7XMZACjs.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: _chunkOSUS6K5Ijs.fetchWithDeploymentProtection,
8552
+ fetchImpl: _chunkDMTWRFPDjs.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 _chunkQIJ32UEWjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
9654
+ return _chunkSJK2LSDQjs.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 (!_chunkQIJ32UEWjs.logLevelReaches.call(void 0, level, minimumLevel)) {
9681
+ if (!_chunkSJK2LSDQjs.logLevelReaches.call(void 0, level, minimumLevel)) {
9682
9682
  return false;
9683
9683
  }
9684
- if (_chunkQIJ32UEWjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
9684
+ if (_chunkSJK2LSDQjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
9685
9685
  return true;
9686
9686
  }
9687
- return state.verbose === true && _chunkQIJ32UEWjs.logProvenanceReaches.call(void 0, provenance, "debug");
9687
+ return state.verbose === true && _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.openInBrowser.call(void 0, dashboardUrl);
10189
+ _chunkWF7XMZACjs.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 (_chunkQIJ32UEWjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
10251
+ if (_chunkSJK2LSDQjs.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 (_chunkQIJ32UEWjs.isTransientPlayRunReadError.call(void 0, error)) {
10440
+ if (_chunkSJK2LSDQjs.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 && _chunkQIJ32UEWjs.isTransientPlayRunReadError.call(void 0, error)) {
10648
+ if (lastKnownWorkflowId && _chunkSJK2LSDQjs.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 && _chunkQIJ32UEWjs.isTransientPlayRunReadError.call(void 0, error)) {
10684
+ if (!lastKnownWorkflowId && _chunkSJK2LSDQjs.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 = _chunkQIJ32UEWjs.classifyLogLine.call(void 0, rawLine);
10783
+ const classified = _chunkSJK2LSDQjs.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 _chunkQIJ32UEWjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10798
+ return _chunkSJK2LSDQjs.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 _chunkQIJ32UEWjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10802
+ return _chunkSJK2LSDQjs.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 (!_chunkQIJ32UEWjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10805
+ if (!_chunkSJK2LSDQjs.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 (!_chunkQIJ32UEWjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10818
+ if (!_chunkSJK2LSDQjs.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 (!_chunkQIJ32UEWjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10828
+ if (!_chunkSJK2LSDQjs.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) => _chunkQIJ32UEWjs.classifyLogLine.call(void 0, line)).filter(
12117
+ const shown = tail.map((line) => _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
12397
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0, displayPackage, {
12413
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
12464
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
13224
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0, input.package, {
13246
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13275
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
13286
+ _chunkWF7XMZACjs.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 = _chunk34A5RSXFjs.parseJsonFields.call(void 0, args, "run");
13296
+ const selection = _chunkWF7XMZACjs.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") : _chunk34A5RSXFjs.argsWantJson.call(void 0, args);
13305
+ let jsonOutput = watch ? args.includes("--json") : _chunkWF7XMZACjs.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 = _chunkQIJ32UEWjs.parseLogLevel.call(void 0, value);
13352
+ const parsed = _chunkSJK2LSDQjs.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 = _chunk34A5RSXFjs.parseJsonFields.call(void 0, args, "check");
13579
+ const selection = _chunkWF7XMZACjs.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 = _chunk34A5RSXFjs.argsWantJson.call(void 0, args);
13591
+ const jsonOutput = _chunkWF7XMZACjs.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: _chunk34A5RSXFjs.argsWantJson.call(void 0, args)
13667
+ jsonOutput: _chunkWF7XMZACjs.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: _chunk34A5RSXFjs.argsWantJson.call(void 0, args)
13708
+ jsonOutput: _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
13919
+ const client = new (0, _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0, result, {
13948
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
13958
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0, output, {
14000
+ _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
14062
+ const client = new (0, _chunkSJK2LSDQjs.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, _chunkQIJ32UEWjs.DeeplineClient)(playRunClientOptions(options));
14099
+ const client = new (0, _chunkSJK2LSDQjs.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, _chunkQIJ32UEWjs.DeeplineClient)(playRunClientOptions(options));
14311
+ const client = new (0, _chunkSJK2LSDQjs.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
- ${_chunk34A5RSXFjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
14708
+ ${_chunkWF7XMZACjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
14709
14709
  }
14710
14710
  async function handleRunGet(args) {
14711
- const selection = _chunk34A5RSXFjs.parseJsonFields.call(void 0,
14711
+ const selection = _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
14724
+ const client = new (0, _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
14738
+ _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0, input, { json: true });
14746
+ _chunkWF7XMZACjs.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 (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
14760
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
14759
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
14760
+ _chunkWF7XMZACjs.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 = _chunk34A5RSXFjs.argsWantJson.call(void 0, args);
14777
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
14776
+ const json = _chunkWF7XMZACjs.argsWantJson.call(void 0, args);
14777
+ _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)().runs.status(runId);
14881
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
14882
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0, status, { json: true });
14880
+ const status = await new (0, _chunkSJK2LSDQjs.DeeplineClient)().runs.status(runId);
14881
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
14882
+ _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)().runs.rerun(runId, {
14956
+ const result = await new (0, _chunkSJK2LSDQjs.DeeplineClient)().runs.rerun(runId, {
14957
14957
  ...idempotencyKey ? { idempotencyKey } : {},
14958
14958
  ...inputOverrides ? { inputOverrides } : {}
14959
14959
  });
14960
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
14961
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0, result, { json: true });
14960
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
14961
+ _chunkWF7XMZACjs.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 (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
15027
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
15026
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
15027
+ _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
15038
+ const client = new (0, _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
15091
+ _chunkWF7XMZACjs.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: _chunk34A5RSXFjs.argsWantJson.call(void 0, args) }
15105
+ { json: _chunkWF7XMZACjs.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 = _chunkQIJ32UEWjs.parseLogLevel.call(void 0, value);
15135
+ const parsed = _chunkSJK2LSDQjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
15173
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
15174
15174
  const jsonLines = args.includes("--jsonl");
15175
- const jsonOutput = !jsonLines && _chunk34A5RSXFjs.argsWantJson.call(void 0, args);
15175
+ const jsonOutput = !jsonLines && _chunkWF7XMZACjs.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 && _chunkQIJ32UEWjs.isRunLogsCursor.call(void 0, cursorValue));
15255
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkSJK2LSDQjs.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 = _chunkQIJ32UEWjs.parseLogLevel.call(void 0, value);
15289
+ const parsed = _chunkSJK2LSDQjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
15336
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
15337
15337
  if (outPath) {
15338
15338
  const result2 = await client.runs.logs(runId, { all: true });
15339
- const logs = result2.entries.filter((line) => _chunkQIJ32UEWjs.logLevelReaches.call(void 0, _chunkQIJ32UEWjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkQIJ32UEWjs.classifyLogLine.call(void 0, line).line);
15339
+ const logs = result2.entries.filter((line) => _chunkSJK2LSDQjs.logLevelReaches.call(void 0, _chunkSJK2LSDQjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkSJK2LSDQjs.classifyLogLine.call(void 0, line).line);
15340
15340
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
15341
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
15341
+ _chunkWF7XMZACjs.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: _chunk34A5RSXFjs.argsWantJson.call(void 0, args) }
15364
+ { json: _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
15395
+ _chunkWF7XMZACjs.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: _chunk34A5RSXFjs.argsWantJson.call(void 0, args),
15419
+ json: _chunkWF7XMZACjs.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) => _chunkQIJ32UEWjs.logLevelReaches.call(void 0, _chunkQIJ32UEWjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
15443
+ (entry) => _chunkSJK2LSDQjs.logLevelReaches.call(void 0, _chunkSJK2LSDQjs.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 ? _chunkQIJ32UEWjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15453
+ nextCursor: olderMatchesExist ? _chunkSJK2LSDQjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
15520
+ const client = new (0, _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
15593
+ _chunkWF7XMZACjs.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: _chunk34A5RSXFjs.argsWantJson.call(void 0, args),
15604
+ json: _chunkWF7XMZACjs.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) => _chunkQIJ32UEWjs.classifyLogLine.call(void 0, line).line);
15611
+ const lines = result.entries.map((line) => _chunkSJK2LSDQjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
15645
+ const client = new (0, _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
15660
+ _chunkWF7XMZACjs.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: _chunk34A5RSXFjs.argsWantJson.call(void 0, args) }
15675
+ { json: _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
15692
+ _chunkWF7XMZACjs.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: _chunk34A5RSXFjs.argsWantJson.call(void 0, args) }
15707
+ { json: _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
15718
+ _chunkWF7XMZACjs.printCommandEnvelope.call(void 0,
15719
15719
  {
15720
15720
  ...result,
15721
15721
  render: { sections: [{ title: "run stop", lines }] }
15722
15722
  },
15723
- { json: _chunk34A5RSXFjs.argsWantJson.call(void 0, args) }
15723
+ { json: _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
15773
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
15774
15774
  if (dryRun) {
15775
15775
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
15776
15776
  const lines2 = buildStopAllDryRunTextLines(result2);
15777
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
15777
+ _chunkWF7XMZACjs.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: _chunk34A5RSXFjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
15784
+ { json: _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
15797
+ _chunkWF7XMZACjs.printCommandEnvelope.call(void 0,
15798
15798
  {
15799
15799
  ...result,
15800
15800
  render: { sections: [{ title: "workspace stop-all", lines }] }
15801
15801
  },
15802
- { json: _chunk34A5RSXFjs.argsWantJson.call(void 0, args) }
15802
+ { json: _chunkWF7XMZACjs.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 = _chunk34A5RSXFjs.parseJsonFields.call(void 0, args, "export");
15807
+ const selection = _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
15866
+ const client = new (0, _chunkSJK2LSDQjs.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, !_chunk34A5RSXFjs.argsWantJson.call(void 0, args));
15869
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkWF7XMZACjs.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: _chunk34A5RSXFjs.argsWantJson.call(void 0, args),
15875
+ jsonOutput: _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0, payload, {
15975
- json: _chunk34A5RSXFjs.argsWantJson.call(void 0, args),
15974
+ _chunkWF7XMZACjs.printCommandEnvelope.call(void 0, payload, {
15975
+ json: _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
15996
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
15997
15997
  const explicitJson = args.includes("--json");
15998
15998
  const sourceOutput = args.includes("--source");
15999
- const jsonOutput = sourceOutput ? explicitJson : _chunk34A5RSXFjs.argsWantJson.call(void 0, args);
15999
+ const jsonOutput = sourceOutput ? explicitJson : _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCompactJson.call(void 0, {
16059
+ _chunkWF7XMZACjs.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, _chunkQIJ32UEWjs.DeeplineClient)();
16147
- const jsonOutput = _chunk34A5RSXFjs.argsWantJson.call(void 0, args);
16146
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
16147
+ const jsonOutput = _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCompactJson.call(void 0, { versions });
16155
+ _chunkWF7XMZACjs.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 = _chunk34A5RSXFjs.argsWantJson.call(void 0, args);
16187
+ const jsonOutput = _chunkWF7XMZACjs.argsWantJson.call(void 0, args);
16188
16188
  const showCost = args.includes("--show-cost");
16189
- const client = new (0, _chunkQIJ32UEWjs.DeeplineClient)();
16189
+ const client = new (0, _chunkSJK2LSDQjs.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
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
16286
+ _chunkWF7XMZACjs.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 = _chunk34A5RSXFjs.argsWantJson.call(void 0, args);
16304
+ const jsonOutput = _chunkWF7XMZACjs.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
- _chunk34A5RSXFjs.printCompactJson.call(void 0, plan);
16322
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, plan);
16323
16323
  return 0;
16324
16324
  }
16325
- const result = await new (0, _chunkQIJ32UEWjs.DeeplineClient)().setPlayPinned(name, pinned);
16326
- if (jsonOutput) _chunk34A5RSXFjs.printCompactJson.call(void 0, result);
16325
+ const result = await new (0, _chunkSJK2LSDQjs.DeeplineClient)().setPlayPinned(name, pinned);
16326
+ if (jsonOutput) _chunkWF7XMZACjs.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
- _chunkQIJ32UEWjs.CSV_HEADER_MATCHING_NOTE
16342
+ _chunkSJK2LSDQjs.CSV_HEADER_MATCHING_NOTE
16343
16343
  ];
16344
16344
  }
16345
16345
  function printPlayDescription(play) {
@@ -16443,12 +16443,12 @@ async function handlePlayGrep(args) {
16443
16443
  console.error("Usage: deepline plays grep <query> [--json]");
16444
16444
  return 1;
16445
16445
  }
16446
- const client = new (0, _chunkQIJ32UEWjs.DeeplineClient)();
16446
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
16447
16447
  const results = (await client.listPlays({ grep: query })).map(
16448
16448
  summarizePlayGrepResult
16449
16449
  );
16450
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
16451
- _chunk34A5RSXFjs.printCompactJson.call(void 0, {
16450
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
16451
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, {
16452
16452
  plays: results,
16453
16453
  count: results.length,
16454
16454
  query,
@@ -16471,7 +16471,7 @@ async function handlePlayGrep(args) {
16471
16471
  return 0;
16472
16472
  }
16473
16473
  async function handlePlayDescribe(args) {
16474
- const selection = _chunk34A5RSXFjs.parseJsonFields.call(void 0, args, "describe");
16474
+ const selection = _chunkWF7XMZACjs.parseJsonFields.call(void 0, args, "describe");
16475
16475
  args = selection.args;
16476
16476
  const playName = args[0];
16477
16477
  if (!playName) {
@@ -16505,8 +16505,8 @@ async function handlePlayDescribe(args) {
16505
16505
  `deepline plays check ${playName}`,
16506
16506
  ...definedName ? [`deepline plays describe <workspace>/${definedName}`] : []
16507
16507
  ];
16508
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
16509
- _chunk34A5RSXFjs.printCompactJson.call(void 0, {
16508
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
16509
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, {
16510
16510
  ok: false,
16511
16511
  error: { message },
16512
16512
  next
@@ -16520,7 +16520,7 @@ async function handlePlayDescribe(args) {
16520
16520
  }
16521
16521
  return 2;
16522
16522
  }
16523
- const client = new (0, _chunkQIJ32UEWjs.DeeplineClient)();
16523
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
16524
16524
  await assertCanonicalNamedPlayReference(client, playName, {
16525
16525
  command: "describe"
16526
16526
  });
@@ -16530,9 +16530,9 @@ async function handlePlayDescribe(args) {
16530
16530
  compact: args.includes("--compact")
16531
16531
  }
16532
16532
  );
16533
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
16534
- if (selection.fields) _chunk34A5RSXFjs.printJson.call(void 0, play, selection.fields);
16535
- else _chunk34A5RSXFjs.printCompactJson.call(void 0, play);
16533
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
16534
+ if (selection.fields) _chunkWF7XMZACjs.printJson.call(void 0, play, selection.fields);
16535
+ else _chunkWF7XMZACjs.printCompactJson.call(void 0, play);
16536
16536
  return 0;
16537
16537
  }
16538
16538
  printPlayDescription(play);
@@ -16576,7 +16576,7 @@ async function handlePlaySave(args) {
16576
16576
  next: `deepline plays check ${shellQuote2(options.target)}`
16577
16577
  };
16578
16578
  if (options.jsonOutput) {
16579
- _chunk34A5RSXFjs.printCompactJson.call(void 0, result);
16579
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, result);
16580
16580
  } else {
16581
16581
  console.error(result.message);
16582
16582
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -16598,7 +16598,7 @@ async function handlePlaySave(args) {
16598
16598
  };
16599
16599
  if (options.dryRun) {
16600
16600
  if (options.jsonOutput) {
16601
- _chunk34A5RSXFjs.printCompactJson.call(void 0, dryRun);
16601
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, dryRun);
16602
16602
  } else {
16603
16603
  console.log(`Dry run: ${playName}`);
16604
16604
  console.log(` source: ${dryRun.sourceHash}`);
@@ -16607,7 +16607,7 @@ async function handlePlaySave(args) {
16607
16607
  }
16608
16608
  return 0;
16609
16609
  }
16610
- const client = new (0, _chunkQIJ32UEWjs.DeeplineClient)();
16610
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
16611
16611
  try {
16612
16612
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
16613
16613
  "cli.play_save_compile_manifests",
@@ -16643,7 +16643,7 @@ async function handlePlaySave(args) {
16643
16643
  }
16644
16644
  };
16645
16645
  if (options.jsonOutput) {
16646
- _chunk34A5RSXFjs.printCompactJson.call(void 0, result);
16646
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, result);
16647
16647
  } else {
16648
16648
  console.log(
16649
16649
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -16669,7 +16669,7 @@ async function handlePlayPublish(args) {
16669
16669
  }
16670
16670
  const { target: playName, useLatest } = options;
16671
16671
  let revisionId = options.revisionId;
16672
- const client = new (0, _chunkQIJ32UEWjs.DeeplineClient)();
16672
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
16673
16673
  if (isFileTarget(playName)) {
16674
16674
  if (revisionId || useLatest) {
16675
16675
  console.error(
@@ -16701,7 +16701,7 @@ async function handlePlayPublish(args) {
16701
16701
  next: `deepline plays check ${shellQuote2(playName)}`
16702
16702
  };
16703
16703
  if (options.jsonOutput) {
16704
- _chunk34A5RSXFjs.printCompactJson.call(void 0, result3);
16704
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, result3);
16705
16705
  } else {
16706
16706
  console.error(result3.message);
16707
16707
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -16724,7 +16724,7 @@ async function handlePlayPublish(args) {
16724
16724
  };
16725
16725
  if (options.dryRun) {
16726
16726
  if (options.jsonOutput) {
16727
- _chunk34A5RSXFjs.printCompactJson.call(void 0, dryRun);
16727
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, dryRun);
16728
16728
  } else {
16729
16729
  console.log(`Dry run: ${rootPlayName}`);
16730
16730
  console.log(` source: ${dryRun.sourceHash}`);
@@ -16792,7 +16792,7 @@ async function handlePlayPublish(args) {
16792
16792
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
16793
16793
  };
16794
16794
  if (options.jsonOutput) {
16795
- _chunk34A5RSXFjs.printCompactJson.call(void 0, result2);
16795
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, result2);
16796
16796
  } else {
16797
16797
  printPublishReceipt({
16798
16798
  name: rootPlayName,
@@ -16823,7 +16823,7 @@ async function handlePlayPublish(args) {
16823
16823
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
16824
16824
  latest: useLatest
16825
16825
  };
16826
- _chunk34A5RSXFjs.printCompactJson.call(void 0, result2);
16826
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, result2);
16827
16827
  return 0;
16828
16828
  }
16829
16829
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -16847,7 +16847,7 @@ async function handlePlayPublish(args) {
16847
16847
  revisionId ? { revisionId } : {}
16848
16848
  );
16849
16849
  if (options.jsonOutput) {
16850
- _chunk34A5RSXFjs.printCompactJson.call(void 0, result);
16850
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, result);
16851
16851
  } else {
16852
16852
  printPublishReceipt({
16853
16853
  name: result.name,
@@ -16887,7 +16887,7 @@ async function handlePlayDelete(args) {
16887
16887
  );
16888
16888
  return 2;
16889
16889
  }
16890
- const client = new (0, _chunkQIJ32UEWjs.DeeplineClient)();
16890
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
16891
16891
  let detail;
16892
16892
  try {
16893
16893
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -16911,8 +16911,8 @@ async function handlePlayDelete(args) {
16911
16911
  name: resolvedName,
16912
16912
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
16913
16913
  };
16914
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
16915
- _chunk34A5RSXFjs.printCompactJson.call(void 0, result2);
16914
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
16915
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, result2);
16916
16916
  } else {
16917
16917
  process.stdout.write(
16918
16918
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -16922,8 +16922,8 @@ async function handlePlayDelete(args) {
16922
16922
  return 0;
16923
16923
  }
16924
16924
  const result = await client.deletePlay(resolvedName);
16925
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
16926
- _chunk34A5RSXFjs.printCompactJson.call(void 0, result);
16925
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
16926
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, result);
16927
16927
  return result.archived || result.alreadyArchived ? 0 : 4;
16928
16928
  }
16929
16929
  if (result.alreadyArchived) {
@@ -16962,13 +16962,13 @@ async function handlePlayRestore(args) {
16962
16962
  );
16963
16963
  return 2;
16964
16964
  }
16965
- const client = new (0, _chunkQIJ32UEWjs.DeeplineClient)();
16965
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
16966
16966
  try {
16967
16967
  const result = await client.restorePlay(
16968
16968
  parseReferencedPlayTarget2(playName).playName
16969
16969
  );
16970
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
16971
- _chunk34A5RSXFjs.printCompactJson.call(void 0, result);
16970
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
16971
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, result);
16972
16972
  return result.restored || result.alreadyActive ? 0 : 4;
16973
16973
  }
16974
16974
  if (result.alreadyActive) {
@@ -17073,7 +17073,7 @@ Examples:
17073
17073
  ).action(async (target, options) => {
17074
17074
  process.exitCode = await handlePlayCheck([
17075
17075
  target,
17076
- ..._chunk34A5RSXFjs.jsonFieldArgs.call(void 0, options.json),
17076
+ ..._chunkWF7XMZACjs.jsonFieldArgs.call(void 0, options.json),
17077
17077
  ...options.full ? ["--full"] : []
17078
17078
  ]);
17079
17079
  });
@@ -17260,7 +17260,7 @@ JSON field selection:
17260
17260
  ...options.maxConcurrentRows ? ["--max-concurrent-rows", options.maxConcurrentRows] : [],
17261
17261
  ...options.open ? ["--open"] : [],
17262
17262
  ...options.debugMapLatency ? ["--debug-map-latency"] : [],
17263
- ..._chunk34A5RSXFjs.jsonFieldArgs.call(void 0, options.json),
17263
+ ..._chunkWF7XMZACjs.jsonFieldArgs.call(void 0, options.json),
17264
17264
  ...options.full ? ["--full"] : [],
17265
17265
  ...passthroughArgs
17266
17266
  ]);
@@ -17315,9 +17315,9 @@ Examples:
17315
17315
  const limit = Number(options.historyLimit);
17316
17316
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
17317
17317
  throw new Error("--history-limit must be an integer from 1 to 30.");
17318
- const client = new (0, _chunkQIJ32UEWjs.DeeplineClient)();
17318
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
17319
17319
  if (options.binding) {
17320
- _chunk34A5RSXFjs.printCompactJson.call(void 0,
17320
+ _chunkWF7XMZACjs.printCompactJson.call(void 0,
17321
17321
  await client.getPlayTriggerHistory(options.binding, { limit })
17322
17322
  );
17323
17323
  return;
@@ -17325,7 +17325,7 @@ Examples:
17325
17325
  const result = await client.listPlayTriggerInventory({
17326
17326
  cursor: options.cursor
17327
17327
  });
17328
- _chunk34A5RSXFjs.printCompactJson.call(void 0, {
17328
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, {
17329
17329
  ...result,
17330
17330
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
17331
17331
  });
@@ -17372,7 +17372,7 @@ Examples:
17372
17372
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
17373
17373
  throw new Error("--group-by must be kind or trigger_source.");
17374
17374
  }
17375
- const result = await new (0, _chunkQIJ32UEWjs.DeeplineClient)().getPlaysActivity({
17375
+ const result = await new (0, _chunkSJK2LSDQjs.DeeplineClient)().getPlaysActivity({
17376
17376
  timeZone: options.timeZone,
17377
17377
  days,
17378
17378
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -17386,7 +17386,7 @@ Examples:
17386
17386
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
17387
17387
  );
17388
17388
  }
17389
- _chunk34A5RSXFjs.printCommandEnvelope.call(void 0,
17389
+ _chunkWF7XMZACjs.printCommandEnvelope.call(void 0,
17390
17390
  { ...result },
17391
17391
  {
17392
17392
  json: options.json || !process.stdout.isTTY,
@@ -17415,7 +17415,7 @@ Examples:
17415
17415
  false
17416
17416
  );
17417
17417
  });
17418
- _chunkFHO5PO6Qjs.registerDeprecatedSearchCommand.call(void 0,
17418
+ _chunkD2P4AM5Mjs.registerDeprecatedSearchCommand.call(void 0,
17419
17419
  play,
17420
17420
  (options) => options.all ? ["plays"] : ["prebuilts"]
17421
17421
  );
@@ -17458,7 +17458,7 @@ Examples:
17458
17458
  "JSON output; optionally select comma-separated dotted paths"
17459
17459
  ).action(async (target, options) => {
17460
17460
  process.exitCode = await handlePlayDescribe(
17461
- _chunk34A5RSXFjs.describeArgs.call(void 0, target, options)
17461
+ _chunkWF7XMZACjs.describeArgs.call(void 0, target, options)
17462
17462
  );
17463
17463
  });
17464
17464
  play.command("versions").description("List revisions for a named play.").addHelpText(
@@ -17565,7 +17565,7 @@ Examples:
17565
17565
  deepline plays deployments <deployment-id>
17566
17566
  `
17567
17567
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
17568
- async (id, options) => id ? _chunkYH2XATMFjs.handleDeploymentGet.call(void 0, id, options) : _chunkYH2XATMFjs.handleDeploymentsList.call(void 0, options)
17568
+ async (id, options) => id ? _chunk3M3LQJUVjs.handleDeploymentGet.call(void 0, id, options) : _chunk3M3LQJUVjs.handleDeploymentsList.call(void 0, options)
17569
17569
  );
17570
17570
  addPublishHelp(
17571
17571
  play.command("publish <target>").description(
@@ -17744,7 +17744,7 @@ Examples:
17744
17744
  ).action(async (runId, options) => {
17745
17745
  process.exitCode = await handleRunGet([
17746
17746
  runId,
17747
- ..._chunk34A5RSXFjs.jsonFieldArgs.call(void 0, options.json),
17747
+ ..._chunkWF7XMZACjs.jsonFieldArgs.call(void 0, options.json),
17748
17748
  ...options.full ? ["--full"] : [],
17749
17749
  ...options.input ? ["--input"] : [],
17750
17750
  ...options.config ? ["--config"] : [],
@@ -17997,7 +17997,7 @@ Examples:
17997
17997
  ...options.metadataOut ? ["--metadata-out", options.metadataOut] : [],
17998
17998
  ...options.wait ? ["--wait"] : [],
17999
17999
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
18000
- ..._chunk34A5RSXFjs.jsonFieldArgs.call(void 0, options.json)
18000
+ ..._chunkWF7XMZACjs.jsonFieldArgs.call(void 0, options.json)
18001
18001
  ]);
18002
18002
  });
18003
18003
  const share = play.command("share").description(
@@ -18163,10 +18163,10 @@ async function handlePlayShareStatus(args) {
18163
18163
  return 2;
18164
18164
  }
18165
18165
  const name = parseReferencedPlayTarget2(target).playName;
18166
- const status = await new (0, _chunkQIJ32UEWjs.DeeplineClient)().getSharePage(name);
18166
+ const status = await new (0, _chunkSJK2LSDQjs.DeeplineClient)().getSharePage(name);
18167
18167
  const outputStatus = shareStatusForOutput(status);
18168
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
18169
- _chunk34A5RSXFjs.printCompactJson.call(void 0, outputStatus);
18168
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
18169
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, outputStatus);
18170
18170
  return 0;
18171
18171
  }
18172
18172
  if (!outputStatus.share) {
@@ -18205,7 +18205,7 @@ async function handlePlaySharePublish(args) {
18205
18205
  return 2;
18206
18206
  }
18207
18207
  const name = parseReferencedPlayTarget2(target).playName;
18208
- const client = new (0, _chunkQIJ32UEWjs.DeeplineClient)();
18208
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
18209
18209
  let revisionId = shareFlagValue(args, "--revision-id");
18210
18210
  let resolvedVersion;
18211
18211
  if (!revisionId) {
@@ -18236,8 +18236,8 @@ async function handlePlaySharePublish(args) {
18236
18236
  );
18237
18237
  if (!hasCompleted) {
18238
18238
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
18239
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
18240
- _chunk34A5RSXFjs.printCompactJson.call(void 0, {
18239
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
18240
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, {
18241
18241
  ok: false,
18242
18242
  code: "NO_SUCCESSFUL_RUN",
18243
18243
  message,
@@ -18261,8 +18261,8 @@ async function handlePlaySharePublish(args) {
18261
18261
  };
18262
18262
  if (args.includes("--dry-run")) {
18263
18263
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
18264
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
18265
- _chunk34A5RSXFjs.printCompactJson.call(void 0, plan);
18264
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
18265
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, plan);
18266
18266
  } else {
18267
18267
  console.log(
18268
18268
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -18272,8 +18272,8 @@ async function handlePlaySharePublish(args) {
18272
18272
  }
18273
18273
  const status = await client.publishSharePage(name, request);
18274
18274
  const outputStatus = shareStatusForOutput(status);
18275
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
18276
- _chunk34A5RSXFjs.printCompactJson.call(void 0, outputStatus);
18275
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
18276
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, outputStatus);
18277
18277
  return 0;
18278
18278
  }
18279
18279
  const urls = shareUrlFields(outputStatus);
@@ -18304,9 +18304,9 @@ async function handlePlayShareUpdate(args) {
18304
18304
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
18305
18305
  ...seoIndexing ? { seoIndexing } : {}
18306
18306
  };
18307
- const status = await new (0, _chunkQIJ32UEWjs.DeeplineClient)().updateSharePage(name, request);
18308
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
18309
- _chunk34A5RSXFjs.printCompactJson.call(void 0, status);
18307
+ const status = await new (0, _chunkSJK2LSDQjs.DeeplineClient)().updateSharePage(name, request);
18308
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
18309
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, status);
18310
18310
  return 0;
18311
18311
  }
18312
18312
  console.log(`Updated ${name} share settings.`);
@@ -18321,7 +18321,7 @@ async function handlePlayShareRegenerate(args) {
18321
18321
  return 2;
18322
18322
  }
18323
18323
  const name = parseReferencedPlayTarget2(target).playName;
18324
- const client = new (0, _chunkQIJ32UEWjs.DeeplineClient)();
18324
+ const client = new (0, _chunkSJK2LSDQjs.DeeplineClient)();
18325
18325
  let revisionId = shareFlagValue(args, "--revision-id");
18326
18326
  const versionFlag = shareFlagValue(args, "--version");
18327
18327
  if (!revisionId && versionFlag) {
@@ -18338,8 +18338,8 @@ async function handlePlayShareRegenerate(args) {
18338
18338
  revisionId ? { revisionId } : {}
18339
18339
  );
18340
18340
  const outputStatus = shareStatusForOutput(status);
18341
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
18342
- _chunk34A5RSXFjs.printCompactJson.call(void 0, outputStatus);
18341
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
18342
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, outputStatus);
18343
18343
  return 0;
18344
18344
  }
18345
18345
  const urls = shareUrlFields(outputStatus);
@@ -18364,9 +18364,9 @@ async function handlePlayShareUnpublish(args) {
18364
18364
  return 2;
18365
18365
  }
18366
18366
  const name = parseReferencedPlayTarget2(target).playName;
18367
- const status = await new (0, _chunkQIJ32UEWjs.DeeplineClient)().unpublishSharePage(name);
18368
- if (_chunk34A5RSXFjs.argsWantJson.call(void 0, args)) {
18369
- _chunk34A5RSXFjs.printCompactJson.call(void 0, status);
18367
+ const status = await new (0, _chunkSJK2LSDQjs.DeeplineClient)().unpublishSharePage(name);
18368
+ if (_chunkWF7XMZACjs.argsWantJson.call(void 0, args)) {
18369
+ _chunkWF7XMZACjs.printCompactJson.call(void 0, status);
18370
18370
  return 0;
18371
18371
  }
18372
18372
  console.log(`Unpublished ${name}; the public page has been removed.`);