deepline 0.3.331 → 0.3.333

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 (102) hide show
  1. package/dist/bundling-sources/sdk/src/billing-idempotency.ts +5 -1
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +26 -23
  4. package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +16 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +30 -9
  6. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +95 -24
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +132 -37
  9. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +6 -3
  10. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +87 -3
  11. package/dist/cli/auth-26GA3RM6.js +31 -0
  12. package/dist/cli/{auth-TVTO43JD.mjs → auth-OQ356CEE.mjs} +4 -4
  13. package/dist/cli/{billing-Y4EX5FFA.js → billing-3APFTHNY.js} +71 -71
  14. package/dist/cli/{billing-FBZ5CCU7.mjs → billing-7YVHLDMO.mjs} +4 -4
  15. package/dist/cli/{chunk-RI57LHLC.mjs → chunk-2CLENWOQ.mjs} +1 -1
  16. package/dist/cli/{chunk-KGZPY524.js → chunk-3WQJWQ5T.js} +60 -60
  17. package/dist/cli/{chunk-YIYK57LW.mjs → chunk-4DUEB2WO.mjs} +2 -2
  18. package/dist/cli/{chunk-T7E5KIPE.js → chunk-5A44CWQE.js} +48 -48
  19. package/dist/cli/{chunk-VEP3POWB.mjs → chunk-5UN6KLD2.mjs} +1 -1
  20. package/dist/cli/{chunk-L4CJXV7D.js → chunk-64CZWDWT.js} +8 -8
  21. package/dist/cli/{chunk-RRJ6AA5L.mjs → chunk-6JPZJ5W7.mjs} +2 -2
  22. package/dist/cli/{chunk-BXZN544J.mjs → chunk-ABVOFJAE.mjs} +1 -1
  23. package/dist/cli/{chunk-NHR3O4OV.js → chunk-AFVETOG3.js} +15 -15
  24. package/dist/cli/{chunk-4JYLNJMD.mjs → chunk-AGGDEQDF.mjs} +1 -1
  25. package/dist/cli/{chunk-LFV2A7GB.js → chunk-DROPDYOD.js} +1 -1
  26. package/dist/cli/{chunk-ZGWURYZK.js → chunk-F2QKAGST.js} +10 -10
  27. package/dist/cli/{chunk-O52SKQQT.mjs → chunk-F2XAQHQC.mjs} +4 -4
  28. package/dist/cli/{chunk-CKAZY2JT.mjs → chunk-H5SORD7Q.mjs} +2 -2
  29. package/dist/cli/{chunk-DU72PAVF.mjs → chunk-HNX3RC6V.mjs} +1 -1
  30. package/dist/cli/{chunk-YCYWPBRV.js → chunk-IDEK4DND.js} +2 -2
  31. package/dist/cli/{chunk-MDQOGPQY.js → chunk-IYFKFNEB.js} +225 -225
  32. package/dist/cli/{chunk-KXWOO3GI.js → chunk-KBXHB5P3.js} +26 -26
  33. package/dist/cli/{chunk-HG5NWSN2.mjs → chunk-KREEYWVL.mjs} +6 -6
  34. package/dist/cli/{chunk-EGRTGSNS.mjs → chunk-N5KGBQPG.mjs} +3 -3
  35. package/dist/cli/{chunk-PS5BFY2W.mjs → chunk-NI4FJRFJ.mjs} +5 -5
  36. package/dist/cli/{chunk-XZG75ELG.js → chunk-PRZ4S4NU.js} +6 -6
  37. package/dist/cli/{chunk-RX2WWVZ7.js → chunk-STVJ7ZPD.js} +6 -6
  38. package/dist/cli/{chunk-QEI6SNAT.mjs → chunk-SXX4ST3D.mjs} +2 -2
  39. package/dist/cli/{chunk-ELDOV5XG.js → chunk-UHHTRBJF.js} +45 -45
  40. package/dist/cli/{chunk-3AQ3L2NX.js → chunk-V77J5ISS.js} +4 -4
  41. package/dist/cli/client-IZRTEBU4.js +20 -0
  42. package/dist/cli/{client-Q7J5R5PT.mjs → client-WKS7HQRP.mjs} +3 -3
  43. package/dist/cli/{csv-WBEF4KIZ.js → csv-MMW6EKKD.js} +12 -12
  44. package/dist/cli/{csv-RVG3V4YX.mjs → csv-ZFY2LD2K.mjs} +3 -3
  45. package/dist/cli/{db-4SPPGSEV.js → db-FMOQU6QW.js} +29 -29
  46. package/dist/cli/{db-AVIQ5WHJ.mjs → db-Q2NJVILC.mjs} +4 -4
  47. package/dist/cli/{describe-IQ3FOLGV.js → describe-4KG2JAQV.js} +15 -15
  48. package/dist/cli/{describe-4UA6N4YX.mjs → describe-EWP7DMNU.mjs} +8 -8
  49. package/dist/cli/{executions-VCULCPYR.mjs → executions-UOD7FWEE.mjs} +4 -4
  50. package/dist/cli/{executions-3ZUK3YJB.js → executions-Y4XSGKN6.js} +6 -6
  51. package/dist/cli/{feedback-SZLTZXWC.mjs → feedback-3F3EURZC.mjs} +3 -3
  52. package/dist/cli/{feedback-7YKDOMWW.js → feedback-TEJJUXDI.js} +6 -6
  53. package/dist/cli/{git-H4YS7TQW.mjs → git-5YM22RGA.mjs} +4 -4
  54. package/dist/cli/git-GNEZSTVF.js +23 -0
  55. package/dist/cli/index.js +79 -79
  56. package/dist/cli/index.mjs +31 -31
  57. package/dist/cli/{legacy-noops-K6U4YL3K.mjs → legacy-noops-D5XBVUHS.mjs} +4 -4
  58. package/dist/cli/{legacy-noops-GU7X3U2Y.js → legacy-noops-T5OUSXMR.js} +7 -7
  59. package/dist/cli/{monitors-2HHSSSDD.mjs → monitors-LPZNYNQW.mjs} +4 -4
  60. package/dist/cli/{monitors-IUEWN2VX.js → monitors-VI7VBQRP.js} +85 -85
  61. package/dist/cli/{org-6NBBO7G3.mjs → org-BYIDOMJB.mjs} +4 -4
  62. package/dist/cli/{org-E5TYEFPX.js → org-OBGIV5QE.js} +60 -60
  63. package/dist/cli/play-5JYRSXAL.js +153 -0
  64. package/dist/cli/{play-C2BQ4MJG.mjs → play-Y5PQQRBO.mjs} +7 -7
  65. package/dist/cli/{providers-N2LG7Y3E.mjs → providers-GEGIGKOL.mjs} +4 -4
  66. package/dist/cli/{providers-FM6LWHA4.js → providers-VH6J7FFY.js} +7 -7
  67. package/dist/cli/{quickstart-GQQ6ODNU.mjs → quickstart-GHITFT27.mjs} +3 -3
  68. package/dist/cli/{quickstart-I4K6ZDU6.js → quickstart-ZQX5XNHG.js} +5 -5
  69. package/dist/cli/{search-NKDQSOQ5.mjs → search-AFX3DYAC.mjs} +5 -5
  70. package/dist/cli/search-YIXGQFXA.js +26 -0
  71. package/dist/cli/{secrets-FGKGASDL.mjs → secrets-4EOVXQJM.mjs} +4 -4
  72. package/dist/cli/{secrets-BBI5NYLT.js → secrets-F37M7D7R.js} +13 -13
  73. package/dist/cli/{sessions-7MWWKIUT.mjs → sessions-RX5SFHDI.mjs} +4 -4
  74. package/dist/cli/{sessions-YUTDWUVR.js → sessions-T57Q72GD.js} +5 -5
  75. package/dist/cli/{settings-U55P74SS.js → settings-3FVWW7GL.js} +74 -74
  76. package/dist/cli/{settings-JGJWBESE.mjs → settings-764O5ZEH.mjs} +7 -7
  77. package/dist/cli/{setup-XYIDQ46U.js → setup-FQVRVTR6.js} +41 -41
  78. package/dist/cli/{setup-7D577YQO.mjs → setup-X7OAHFTO.mjs} +6 -6
  79. package/dist/cli/skills-DPGB67XX.js +28 -0
  80. package/dist/cli/{skills-Y6WBNBPF.mjs → skills-O6ILHPV5.mjs} +4 -4
  81. package/dist/cli/{tools-OPTIBRZP.mjs → tools-HL4SQG35.mjs} +6 -6
  82. package/dist/cli/tools-WZCXSXER.js +40 -0
  83. package/dist/cli/update-63MANY7U.js +28 -0
  84. package/dist/cli/{update-HKJQ762M.mjs → update-A3P2RSIB.mjs} +6 -6
  85. package/dist/cli/{workflow-2ZOG35IA.mjs → workflow-44424AVE.mjs} +5 -5
  86. package/dist/cli/{workflow-EBIKBXXC.js → workflow-62AGKI6T.js} +15 -15
  87. package/dist/index.js +6 -6
  88. package/dist/index.mjs +3 -3
  89. package/dist/install-integrity.json +74 -74
  90. package/dist/release.d.mts +1 -1
  91. package/dist/release.d.ts +1 -1
  92. package/dist/release.js +2 -2
  93. package/dist/release.mjs +1 -1
  94. package/package.json +1 -1
  95. package/dist/cli/auth-YYTF3NO4.js +0 -31
  96. package/dist/cli/client-46KHPTTQ.js +0 -20
  97. package/dist/cli/git-DCZP3E3P.js +0 -23
  98. package/dist/cli/play-MPDZPEYN.js +0 -153
  99. package/dist/cli/search-6G6FUVTJ.js +0 -26
  100. package/dist/cli/skills-PXHET5MG.js +0 -28
  101. package/dist/cli/tools-BCSXPN5X.js +0 -40
  102. package/dist/cli/update-2NXG3NKT.js +0 -28
@@ -10,11 +10,11 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
10
10
  var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
11
11
 
12
12
 
13
- var _chunkL4CJXV7Djs = require('./chunk-L4CJXV7D.js');
13
+ var _chunk64CZWDWTjs = require('./chunk-64CZWDWT.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkKXWOO3GIjs = require('./chunk-KXWOO3GI.js');
17
+ var _chunkKBXHB5P3js = require('./chunk-KBXHB5P3.js');
18
18
 
19
19
 
20
20
 
@@ -39,7 +39,7 @@ var _chunkLVEDPCLJjs = require('./chunk-LVEDPCLJ.js');
39
39
 
40
40
 
41
41
 
42
- var _chunkZGWURYZKjs = require('./chunk-ZGWURYZK.js');
42
+ var _chunkF2QKAGSTjs = require('./chunk-F2QKAGST.js');
43
43
 
44
44
 
45
45
 
@@ -72,10 +72,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
72
72
 
73
73
 
74
74
 
75
- var _chunkXZG75ELGjs = require('./chunk-XZG75ELG.js');
75
+ var _chunkPRZ4S4NUjs = require('./chunk-PRZ4S4NU.js');
76
76
 
77
77
 
78
- var _chunk3AQ3L2NXjs = require('./chunk-3AQ3L2NX.js');
78
+ var _chunkV77J5ISSjs = require('./chunk-V77J5ISS.js');
79
79
 
80
80
 
81
81
 
@@ -2067,7 +2067,7 @@ function resolveField(key, command) {
2067
2067
  function printSettings(result, json, name) {
2068
2068
  result = { ...result, settings: parsePlaySettings(result.settings) };
2069
2069
  const selected = fields.filter(([key]) => !name || key === name);
2070
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
2070
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
2071
2071
  {
2072
2072
  ...result,
2073
2073
  settings: Object.fromEntries(
@@ -2111,7 +2111,7 @@ function registerPlaySettingsCommands(plays) {
2111
2111
  valueSyntax: field.cli.valueSyntax,
2112
2112
  examples: field.cli.examples
2113
2113
  }));
2114
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
2114
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
2115
2115
  {
2116
2116
  fields: descriptions,
2117
2117
  render: {
@@ -2136,7 +2136,7 @@ function registerPlaySettingsCommands(plays) {
2136
2136
  async (options, command) => {
2137
2137
  if (options.name !== void 0) resolveField(options.name, command);
2138
2138
  printSettings(
2139
- await new (0, _chunkZGWURYZKjs.DeeplineClient)().getPlaySettings(options.play),
2139
+ await new (0, _chunkF2QKAGSTjs.DeeplineClient)().getPlaySettings(options.play),
2140
2140
  options.json,
2141
2141
  options.name
2142
2142
  );
@@ -2167,7 +2167,7 @@ function registerPlaySettingsCommands(plays) {
2167
2167
  );
2168
2168
  }
2169
2169
  if (options.dryRun) {
2170
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
2170
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
2171
2171
  {
2172
2172
  dryRun: true,
2173
2173
  play,
@@ -2188,7 +2188,7 @@ function registerPlaySettingsCommands(plays) {
2188
2188
  return;
2189
2189
  }
2190
2190
  printSettings(
2191
- await new (0, _chunkZGWURYZKjs.DeeplineClient)().updatePlaySettings(play, patch),
2191
+ await new (0, _chunkF2QKAGSTjs.DeeplineClient)().updatePlaySettings(play, patch),
2192
2192
  options.json
2193
2193
  );
2194
2194
  };
@@ -2214,13 +2214,13 @@ function registerPlaySettingsCommands(plays) {
2214
2214
  "--root must be person or team; --limit must be 1\u2013100.",
2215
2215
  { exitCode: 2 }
2216
2216
  );
2217
- const page = await new (0, _chunkZGWURYZKjs.DeeplineClient)().listPlaySettingsPaths({
2217
+ const page = await new (0, _chunkF2QKAGSTjs.DeeplineClient)().listPlaySettingsPaths({
2218
2218
  root: options.root,
2219
2219
  limit,
2220
2220
  cursor: options.cursor
2221
2221
  });
2222
2222
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""} --json` : null;
2223
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
2223
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
2224
2224
  {
2225
2225
  ...page,
2226
2226
  nextCommand,
@@ -2271,7 +2271,7 @@ function registerPlaySettingsCommands(plays) {
2271
2271
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2272
2272
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2273
2273
  };
2274
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
2274
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
2275
2275
  const paths = [];
2276
2276
  let cursor;
2277
2277
  do {
@@ -2333,7 +2333,7 @@ function registerPlaySettingsCommands(plays) {
2333
2333
  moved.push(move.playName);
2334
2334
  }
2335
2335
  }
2336
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
2336
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
2337
2337
  {
2338
2338
  dryRun: Boolean(options.dryRun),
2339
2339
  from: options.from,
@@ -2461,7 +2461,7 @@ function triggerLines(view) {
2461
2461
  return lines;
2462
2462
  }
2463
2463
  function printView(view, json) {
2464
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
2464
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
2465
2465
  {
2466
2466
  ...view,
2467
2467
  render: {
@@ -2474,7 +2474,7 @@ function printView(view, json) {
2474
2474
  );
2475
2475
  }
2476
2476
  function printResult(result, json) {
2477
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
2477
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
2478
2478
  {
2479
2479
  ...result,
2480
2480
  render: {
@@ -2504,7 +2504,7 @@ async function mutate(command, options, build) {
2504
2504
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2505
2505
  }
2506
2506
  if (options.dryRun) {
2507
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
2507
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
2508
2508
  {
2509
2509
  dryRun: true,
2510
2510
  play: options.play,
@@ -2523,7 +2523,7 @@ async function mutate(command, options, build) {
2523
2523
  return;
2524
2524
  }
2525
2525
  printResult(
2526
- await new (0, _chunkZGWURYZKjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2526
+ await new (0, _chunkF2QKAGSTjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2527
2527
  options.json
2528
2528
  );
2529
2529
  }
@@ -2556,7 +2556,7 @@ function registerPlayTriggerConfigCommands(plays) {
2556
2556
  }).addHelpText("after", help2);
2557
2557
  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) => {
2558
2558
  printView(
2559
- await new (0, _chunkZGWURYZKjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2559
+ await new (0, _chunkF2QKAGSTjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2560
2560
  options.json
2561
2561
  );
2562
2562
  });
@@ -2600,7 +2600,7 @@ function registerPlayTriggerConfigCommands(plays) {
2600
2600
  if (options.auth === void 0) {
2601
2601
  if (secrets.length || options.header || options.signaturePrefix)
2602
2602
  usage(setWebhook, "--secret/--header need --auth.");
2603
- const current = await new (0, _chunkZGWURYZKjs.DeeplineClient)().getPlayTriggerConfig(
2603
+ const current = await new (0, _chunkF2QKAGSTjs.DeeplineClient)().getPlayTriggerConfig(
2604
2604
  options.play
2605
2605
  );
2606
2606
  return {
@@ -2677,7 +2677,7 @@ var KIND_DESCRIPTIONS = {
2677
2677
  "receipt.skipped": "Saved work result: skipped.",
2678
2678
  "runtime.event": "Other event."
2679
2679
  };
2680
- var RUN_LOGS_KIND_HELP = _chunkZGWURYZKjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2680
+ var RUN_LOGS_KIND_HELP = _chunkF2QKAGSTjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2681
2681
  kind,
2682
2682
  description: KIND_DESCRIPTIONS[kind]
2683
2683
  }));
@@ -2814,9 +2814,9 @@ function configureRunQueryCommandErrors(command, resource) {
2814
2814
  const args = program.args;
2815
2815
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2816
2816
  error.exitCode = 2;
2817
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2818
- _chunkXZG75ELGjs.printJsonError.call(void 0,
2819
- Object.assign(new (0, _chunkZGWURYZKjs.RunEventQueryInputError)(error.message), {
2817
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2818
+ _chunkPRZ4S4NUjs.printJsonError.call(void 0,
2819
+ Object.assign(new (0, _chunkF2QKAGSTjs.RunEventQueryInputError)(error.message), {
2820
2820
  exitCode: 2,
2821
2821
  retryable: false
2822
2822
  })
@@ -2860,14 +2860,14 @@ function parseQuery(args, resource) {
2860
2860
  if (VALUE_FLAGS.has(flag)) {
2861
2861
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2862
2862
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2863
- throw new (0, _chunkZGWURYZKjs.RunEventQueryInputError)(
2863
+ throw new (0, _chunkF2QKAGSTjs.RunEventQueryInputError)(
2864
2864
  `${flag} requires a value. Use ${flag} <value>.`
2865
2865
  );
2866
2866
  }
2867
2867
  if (flag === "--sum") sums.push(value);
2868
2868
  else {
2869
2869
  if (values[flag] !== void 0) {
2870
- throw new (0, _chunkZGWURYZKjs.RunEventQueryInputError)(
2870
+ throw new (0, _chunkF2QKAGSTjs.RunEventQueryInputError)(
2871
2871
  `${flag} may only be supplied once.`
2872
2872
  );
2873
2873
  }
@@ -2881,12 +2881,12 @@ function parseQuery(args, resource) {
2881
2881
  }
2882
2882
  if (arg.startsWith("-")) {
2883
2883
  const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
2884
- throw new (0, _chunkZGWURYZKjs.RunEventQueryInputError)(
2884
+ throw new (0, _chunkF2QKAGSTjs.RunEventQueryInputError)(
2885
2885
  `Unsupported query flag ${flag}. ${correction}`
2886
2886
  );
2887
2887
  }
2888
2888
  if (runId !== void 0) {
2889
- throw new (0, _chunkZGWURYZKjs.RunEventQueryInputError)(
2889
+ throw new (0, _chunkF2QKAGSTjs.RunEventQueryInputError)(
2890
2890
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2891
2891
  );
2892
2892
  }
@@ -2894,7 +2894,7 @@ function parseQuery(args, resource) {
2894
2894
  }
2895
2895
  if (switches.has("--fields")) {
2896
2896
  if (runId !== void 0) {
2897
- throw new (0, _chunkZGWURYZKjs.RunEventQueryInputError)(
2897
+ throw new (0, _chunkF2QKAGSTjs.RunEventQueryInputError)(
2898
2898
  "--fields does not use a run ID. Omit the positional run ID."
2899
2899
  );
2900
2900
  }
@@ -2907,18 +2907,18 @@ function parseQuery(args, resource) {
2907
2907
  )
2908
2908
  ];
2909
2909
  if (incompatible.length) {
2910
- throw new (0, _chunkZGWURYZKjs.RunEventQueryInputError)(
2910
+ throw new (0, _chunkF2QKAGSTjs.RunEventQueryInputError)(
2911
2911
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2912
2912
  );
2913
2913
  }
2914
2914
  }
2915
2915
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2916
- throw new (0, _chunkZGWURYZKjs.RunEventQueryInputError)(
2916
+ throw new (0, _chunkF2QKAGSTjs.RunEventQueryInputError)(
2917
2917
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2918
2918
  );
2919
2919
  }
2920
2920
  if (sums.length && switches.has("--count")) {
2921
- throw new (0, _chunkZGWURYZKjs.RunEventQueryInputError)(
2921
+ throw new (0, _chunkF2QKAGSTjs.RunEventQueryInputError)(
2922
2922
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2923
2923
  );
2924
2924
  }
@@ -2926,7 +2926,7 @@ function parseQuery(args, resource) {
2926
2926
  if (operation === "count") {
2927
2927
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2928
2928
  if (values[flag] !== void 0 || switches.has(flag)) {
2929
- throw new (0, _chunkZGWURYZKjs.RunEventQueryInputError)(
2929
+ throw new (0, _chunkF2QKAGSTjs.RunEventQueryInputError)(
2930
2930
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2931
2931
  );
2932
2932
  }
@@ -2961,16 +2961,16 @@ function parseQuery(args, resource) {
2961
2961
  ];
2962
2962
  }
2963
2963
  }
2964
- const request = _chunkZGWURYZKjs.normalizeRunEventOperationRequest.call(void 0, body);
2964
+ const request = _chunkF2QKAGSTjs.normalizeRunEventOperationRequest.call(void 0, body);
2965
2965
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2966
2966
  const backend = values["--runtime-backend"];
2967
2967
  if (backend && backend !== "daytona" && backend !== "modal") {
2968
- throw new (0, _chunkZGWURYZKjs.RunEventQueryInputError)(
2968
+ throw new (0, _chunkF2QKAGSTjs.RunEventQueryInputError)(
2969
2969
  "--runtime-backend must be daytona or modal."
2970
2970
  );
2971
2971
  }
2972
2972
  if (backend && !namespace) {
2973
- throw new (0, _chunkZGWURYZKjs.RunEventQueryInputError)(
2973
+ throw new (0, _chunkF2QKAGSTjs.RunEventQueryInputError)(
2974
2974
  "--runtime-backend requires --runtime-namespace."
2975
2975
  );
2976
2976
  }
@@ -3018,12 +3018,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3018
3018
  const failure = error instanceof Error ? error : new Error(String(error));
3019
3019
  const record3 = failure;
3020
3020
  const status = record3.statusCode;
3021
- const exitCode = error instanceof _chunkZGWURYZKjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3021
+ const exitCode = error instanceof _chunkF2QKAGSTjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3022
3022
  const diagnostic = Object.assign(failure, {
3023
3023
  exitCode,
3024
3024
  retryable: exitCode === 5
3025
3025
  });
3026
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) _chunkXZG75ELGjs.printJsonError.call(void 0, diagnostic);
3026
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) _chunkPRZ4S4NUjs.printJsonError.call(void 0, diagnostic);
3027
3027
  else console.error(`Error: ${diagnostic.message}`);
3028
3028
  return exitCode;
3029
3029
  }
@@ -3038,7 +3038,7 @@ async function executeRunEventQuery(args, resource) {
3038
3038
  ...criteria
3039
3039
  } = request;
3040
3040
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3041
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
3041
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
3042
3042
  let result;
3043
3043
  if (request.operation === "fields") {
3044
3044
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3104,13 +3104,13 @@ async function executeRunEventQuery(args, resource) {
3104
3104
  lines.push(`Next page: ${nextPage}`);
3105
3105
  }
3106
3106
  }
3107
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
3107
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
3108
3108
  {
3109
3109
  ...result,
3110
3110
  ...nextPage ? { next: { page: nextPage } } : {},
3111
3111
  render: { sections: [{ title: `run ${resource}`, lines }] }
3112
3112
  },
3113
- { json: _chunkXZG75ELGjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3113
+ { json: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3114
3114
  ` }
3115
3115
  );
3116
3116
  return 0;
@@ -3930,7 +3930,7 @@ function checkedRunExample(plays, target) {
3930
3930
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3931
3931
  const base = `deepline plays run --file ${quote(target)}`;
3932
3932
  return {
3933
- command: `${base}${_chunkZGWURYZKjs.playInputExampleArgs.call(void 0, schema)} --json`,
3933
+ command: `${base}${_chunkF2QKAGSTjs.playInputExampleArgs.call(void 0, schema)} --json`,
3934
3934
  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."
3935
3935
  };
3936
3936
  }
@@ -5553,7 +5553,7 @@ async function runPlayBootstrap(args) {
5553
5553
  return runMonitorBootstrap(args);
5554
5554
  }
5555
5555
  const options = parsePlayBootstrapOptions(args);
5556
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
5556
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
5557
5557
  const contracts = await loadBootstrapContracts(client, options);
5558
5558
  const csvContext = loadCsvContext(options.from);
5559
5559
  const source = generateBootstrapPlaySource({
@@ -5708,7 +5708,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5708
5708
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
5709
5709
  );
5710
5710
  }
5711
- const response = await new (0, _chunkZGWURYZKjs.DeeplineClient)().runs.getReceipts(runId, {
5711
+ const response = await new (0, _chunkF2QKAGSTjs.DeeplineClient)().runs.getReceipts(runId, {
5712
5712
  keys
5713
5713
  });
5714
5714
  const failed = response.receipts.filter(
@@ -5720,7 +5720,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5720
5720
  JSON.stringify(response, null, 2) + "\n",
5721
5721
  { flag: "wx", mode: 384 }
5722
5722
  );
5723
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
5723
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
5724
5724
  {
5725
5725
  runId,
5726
5726
  out: options.out,
@@ -5730,7 +5730,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5730
5730
  { json: true }
5731
5731
  );
5732
5732
  } else {
5733
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5733
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5734
5734
  }
5735
5735
  if (failed)
5736
5736
  process.exitCode = response.receipts.some(
@@ -5769,7 +5769,7 @@ includes nextCommand when another page is available.
5769
5769
  { exitCode: 2 }
5770
5770
  );
5771
5771
  }
5772
- const page = await new (0, _chunkZGWURYZKjs.DeeplineClient)().runs.children(parentRunId, {
5772
+ const page = await new (0, _chunkF2QKAGSTjs.DeeplineClient)().runs.children(parentRunId, {
5773
5773
  launchKey: options.launchKey,
5774
5774
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
5775
5775
  limit
@@ -5785,7 +5785,7 @@ includes nextCommand when another page is available.
5785
5785
  String(limit),
5786
5786
  "--json"
5787
5787
  ].join(" ") : null;
5788
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
5788
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
5789
5789
  {
5790
5790
  parentRunId,
5791
5791
  launchKey: options.launchKey,
@@ -5821,7 +5821,7 @@ async function handleRunsHistory(options) {
5821
5821
  throw new Error("--limit must be a positive integer.");
5822
5822
  }
5823
5823
  }
5824
- const page = await new (0, _chunkZGWURYZKjs.DeeplineClient)().runs.history({
5824
+ const page = await new (0, _chunkF2QKAGSTjs.DeeplineClient)().runs.history({
5825
5825
  cursor: options.cursor,
5826
5826
  orgId: options.org,
5827
5827
  search: options.search,
@@ -5837,7 +5837,7 @@ async function handleRunsHistory(options) {
5837
5837
  );
5838
5838
  }
5839
5839
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
5840
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
5840
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
5841
5841
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
5842
5842
  options.json ? { json: true } : {}
5843
5843
  );
@@ -5889,12 +5889,12 @@ async function runRunsRerunCommand(runId, options) {
5889
5889
  return 1;
5890
5890
  }
5891
5891
  }
5892
- const result = await new (0, _chunkZGWURYZKjs.DeeplineClient)().runs.rerun(runId, {
5892
+ const result = await new (0, _chunkF2QKAGSTjs.DeeplineClient)().runs.rerun(runId, {
5893
5893
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
5894
5894
  ...inputOverrides === void 0 ? {} : { inputOverrides }
5895
5895
  });
5896
- if (_chunkXZG75ELGjs.shouldEmitJson.call(void 0, options.json)) {
5897
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0, result, { json: true });
5896
+ if (_chunkPRZ4S4NUjs.shouldEmitJson.call(void 0, options.json)) {
5897
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0, result, { json: true });
5898
5898
  } else {
5899
5899
  console.log(
5900
5900
  result.deduplicated === true ? `
@@ -6162,7 +6162,7 @@ function projectRunDatasetCell(value) {
6162
6162
  const logicalValue = parseSerializedDatasetValue(value);
6163
6163
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
6164
6164
  if (typeof logicalValue === "object") {
6165
- return _chunkXZG75ELGjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
6165
+ return _chunkPRZ4S4NUjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
6166
6166
  }
6167
6167
  return logicalValue;
6168
6168
  }
@@ -8579,7 +8579,7 @@ function renderOutcome(outcome) {
8579
8579
  function printResult2(input) {
8580
8580
  const failed = input.status === "failed" || input.status === "cancelled";
8581
8581
  if (failed) process.exitCode = 1;
8582
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
8582
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
8583
8583
  {
8584
8584
  deployment: { ...input.deployment, status: input.status },
8585
8585
  plays: input.outcomes,
@@ -8604,7 +8604,7 @@ async function handlePlaysDeploy(directory, options) {
8604
8604
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
8605
8605
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
8606
8606
  });
8607
- const { http, config } = _chunkXZG75ELGjs.getAuthedHttpClient.call(void 0, );
8607
+ const { http, config } = _chunkPRZ4S4NUjs.getAuthedHttpClient.call(void 0, );
8608
8608
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
8609
8609
  const startDeployment = () => http.post("/api/v2/deployments", {
8610
8610
  deliveryId,
@@ -8631,7 +8631,7 @@ async function handlePlaysDeploy(directory, options) {
8631
8631
  },
8632
8632
  {
8633
8633
  bundle: bundleDeployPlayFile,
8634
- fetchImpl: _chunk3AQ3L2NXjs.fetchWithDeploymentProtection,
8634
+ fetchImpl: _chunkV77J5ISSjs.fetchWithDeploymentProtection,
8635
8635
  // The plays are already here: "opening" the source is naming it.
8636
8636
  openSource: async () => ({
8637
8637
  open: async () => ({ repoRoot: root })
@@ -9199,7 +9199,7 @@ function parseInputFlagValue(raw) {
9199
9199
  return raw;
9200
9200
  }
9201
9201
  function parsePlayRunOptions(args, initialInput = null) {
9202
- const selection = _chunkXZG75ELGjs.parseJsonFields.call(void 0, args, "run");
9202
+ const selection = _chunkPRZ4S4NUjs.parseJsonFields.call(void 0, args, "run");
9203
9203
  args = selection.args;
9204
9204
  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.";
9205
9205
  let filePath = null;
@@ -9209,7 +9209,7 @@ function parsePlayRunOptions(args, initialInput = null) {
9209
9209
  let revisionSelector = null;
9210
9210
  const watch = !args.includes("--no-wait");
9211
9211
  const dryRun = args.includes("--dry-run");
9212
- let jsonOutput = dryRun ? _chunkXZG75ELGjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkXZG75ELGjs.argsWantJson.call(void 0, args);
9212
+ let jsonOutput = dryRun ? _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args);
9213
9213
  const fullJson = args.includes("--full");
9214
9214
  const force = args.includes("--force");
9215
9215
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -9256,7 +9256,7 @@ function parsePlayRunOptions(args, initialInput = null) {
9256
9256
  "--log-level requires one of: debug, info, warn, error."
9257
9257
  );
9258
9258
  }
9259
- const parsed = _chunkZGWURYZKjs.parseLogLevel.call(void 0, value);
9259
+ const parsed = _chunkF2QKAGSTjs.parseLogLevel.call(void 0, value);
9260
9260
  if (!parsed) {
9261
9261
  throw new Error(
9262
9262
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -9563,7 +9563,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
9563
9563
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
9564
9564
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
9565
9565
  );
9566
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkZGWURYZKjs.parseLogLevel.call(void 0, options.logLevel);
9566
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkF2QKAGSTjs.parseLogLevel.call(void 0, options.logLevel);
9567
9567
  if (!logLevel)
9568
9568
  throw new Error("--log-level requires one of: debug, info, warn, error.");
9569
9569
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -9577,13 +9577,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
9577
9577
  if (debugAlias || debugMapLatency && logLevel === "info")
9578
9578
  logLevel = "debug";
9579
9579
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
9580
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkXZG75ELGjs.parseJsonFields.call(void 0,
9581
- [...fullJson ? ["--full"] : [], ..._chunkXZG75ELGjs.jsonFieldArgs.call(void 0, options.json)],
9580
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkPRZ4S4NUjs.parseJsonFields.call(void 0,
9581
+ [...fullJson ? ["--full"] : [], ..._chunkPRZ4S4NUjs.jsonFieldArgs.call(void 0, options.json)],
9582
9582
  "run"
9583
9583
  ).fields;
9584
9584
  const watch = options.wait === false ? false : base.watch;
9585
9585
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
9586
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkXZG75ELGjs.argsWantJson.call(void 0, []) : explicitJson;
9586
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkPRZ4S4NUjs.argsWantJson.call(void 0, []) : explicitJson;
9587
9587
  const verboseLogs = Boolean(
9588
9588
  debugAlias || logLevel === "debug" || debugMapLatency
9589
9589
  );
@@ -9627,7 +9627,7 @@ function playAuthoringGraphPath(parent, filePath) {
9627
9627
  // src/cli/renderers/local-play-execution.ts
9628
9628
  function renderLocalPlayExecutionPlan(plan, options = {}) {
9629
9629
  if (options.dryRun) {
9630
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
9630
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
9631
9631
  return;
9632
9632
  }
9633
9633
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -10593,7 +10593,7 @@ function playStatusErrorText(status) {
10593
10593
  function isRetryablePendingStartFailure(status) {
10594
10594
  if (status.status !== "failed") return false;
10595
10595
  if (status.runId && status.runId !== "pending") return false;
10596
- return _chunkZGWURYZKjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
10596
+ return _chunkF2QKAGSTjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
10597
10597
  }
10598
10598
  function pendingStartFailureStatus(input) {
10599
10599
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -10620,13 +10620,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
10620
10620
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
10621
10621
  function watchSurfaceReaches(state, provenance, level) {
10622
10622
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
10623
- if (!_chunkZGWURYZKjs.logLevelReaches.call(void 0, level, minimumLevel)) {
10623
+ if (!_chunkF2QKAGSTjs.logLevelReaches.call(void 0, level, minimumLevel)) {
10624
10624
  return false;
10625
10625
  }
10626
- if (_chunkZGWURYZKjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
10626
+ if (_chunkF2QKAGSTjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
10627
10627
  return true;
10628
10628
  }
10629
- return state.verbose === true && _chunkZGWURYZKjs.logProvenanceReaches.call(void 0, provenance, "debug");
10629
+ return state.verbose === true && _chunkF2QKAGSTjs.logProvenanceReaches.call(void 0, provenance, "debug");
10630
10630
  }
10631
10631
  function getEventPayload(event) {
10632
10632
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -11128,7 +11128,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
11128
11128
  }
11129
11129
  function openPlayDashboard(dashboardUrl, open2) {
11130
11130
  if (open2 && dashboardUrl) {
11131
- _chunkXZG75ELGjs.openInBrowser.call(void 0, dashboardUrl);
11131
+ _chunkPRZ4S4NUjs.openInBrowser.call(void 0, dashboardUrl);
11132
11132
  }
11133
11133
  }
11134
11134
  function printPlayLogLines(input) {
@@ -11190,7 +11190,7 @@ async function waitForPlayCompletionByWatch(input) {
11190
11190
  billing: false
11191
11191
  });
11192
11192
  } catch (error) {
11193
- if (_chunkZGWURYZKjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
11193
+ if (_chunkF2QKAGSTjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
11194
11194
  return null;
11195
11195
  }
11196
11196
  throw error;
@@ -11379,7 +11379,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11379
11379
  billing: false
11380
11380
  });
11381
11381
  } catch (error) {
11382
- if (_chunkZGWURYZKjs.isTransientPlayRunReadError.call(void 0, error)) {
11382
+ if (_chunkF2QKAGSTjs.isTransientPlayRunReadError.call(void 0, error)) {
11383
11383
  return null;
11384
11384
  }
11385
11385
  throw error;
@@ -11587,7 +11587,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11587
11587
  lastPhase
11588
11588
  });
11589
11589
  }
11590
- if (lastKnownWorkflowId && _chunkZGWURYZKjs.isTransientPlayRunReadError.call(void 0, error)) {
11590
+ if (lastKnownWorkflowId && _chunkF2QKAGSTjs.isTransientPlayRunReadError.call(void 0, error)) {
11591
11591
  if (timeout) {
11592
11592
  clearTimeout(timeout);
11593
11593
  }
@@ -11623,7 +11623,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11623
11623
  onRunAdmitted: confirmAdmission
11624
11624
  });
11625
11625
  }
11626
- if (!lastKnownWorkflowId && _chunkZGWURYZKjs.isTransientPlayRunReadError.call(void 0, error)) {
11626
+ if (!lastKnownWorkflowId && _chunkF2QKAGSTjs.isTransientPlayRunReadError.call(void 0, error)) {
11627
11627
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
11628
11628
  phase: "cli.play_start_stream_transient_failure",
11629
11629
  ms: Date.now() - startedAt,
@@ -11722,7 +11722,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
11722
11722
  "logs"
11723
11723
  ]);
11724
11724
  function formatPlayLogLine(rawLine, state) {
11725
- const classified = _chunkZGWURYZKjs.classifyLogLine.call(void 0, rawLine);
11725
+ const classified = _chunkF2QKAGSTjs.classifyLogLine.call(void 0, rawLine);
11726
11726
  const line = classified.line;
11727
11727
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
11728
11728
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _351 => _351[1]]) ? new Date(timestampMatch[1]) : null;
@@ -11737,14 +11737,14 @@ function formatPlayLogLine(rawLine, state) {
11737
11737
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
11738
11738
  const providerWait = formatProviderCapacityWaitLogLine(line);
11739
11739
  if (providerWait && !state.verbose) {
11740
- return _chunkZGWURYZKjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
11740
+ return _chunkF2QKAGSTjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
11741
11741
  }
11742
11742
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
11743
11743
  if (mapProgress && !state.verbose) {
11744
- return _chunkZGWURYZKjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
11744
+ return _chunkF2QKAGSTjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
11745
11745
  }
11746
11746
  if (/\[worker\] picked up run\b/.test(message)) {
11747
- if (!_chunkZGWURYZKjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11747
+ if (!_chunkF2QKAGSTjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11748
11748
  return null;
11749
11749
  }
11750
11750
  if (state.emittedRunnerStarted) {
@@ -11757,7 +11757,7 @@ function formatPlayLogLine(rawLine, state) {
11757
11757
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
11758
11758
  );
11759
11759
  if (mapStart) {
11760
- if (!_chunkZGWURYZKjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11760
+ if (!_chunkF2QKAGSTjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11761
11761
  return null;
11762
11762
  }
11763
11763
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -11767,7 +11767,7 @@ function formatPlayLogLine(rawLine, state) {
11767
11767
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
11768
11768
  );
11769
11769
  if (mapDone) {
11770
- if (!_chunkZGWURYZKjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11770
+ if (!_chunkF2QKAGSTjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11771
11771
  return null;
11772
11772
  }
11773
11773
  const [, results, executed, cached] = mapDone;
@@ -13056,7 +13056,7 @@ function formatRecentRunLogLines(value) {
13056
13056
  (line) => typeof line === "string"
13057
13057
  );
13058
13058
  if (tail.length === 0) return [];
13059
- const shown = tail.map((line) => _chunkZGWURYZKjs.classifyLogLine.call(void 0, line)).filter(
13059
+ const shown = tail.map((line) => _chunkF2QKAGSTjs.classifyLogLine.call(void 0, line)).filter(
13060
13060
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
13061
13061
  ).slice(-8);
13062
13062
  const total = readNonNegativeInteger(logs.totalCount);
@@ -13335,7 +13335,7 @@ function writePlayResult(status, jsonOutput, options) {
13335
13335
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _432 => _432.hits]), () => ( null));
13336
13336
  if (jsonOutput) {
13337
13337
  const payload2 = _optionalChain([options, 'optionalAccess', _433 => _433.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
13338
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
13338
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
13339
13339
  hits ? { ...payload2, hits } : payload2,
13340
13340
  { json: true, fields: _optionalChain([options, 'optionalAccess', _434 => _434.jsonFields]) }
13341
13341
  );
@@ -13351,7 +13351,7 @@ function writePlayResult(status, jsonOutput, options) {
13351
13351
  ...buildPlayCompletionTextLines(status),
13352
13352
  ...formatRunHitsLines(hits)
13353
13353
  ];
13354
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0, displayPackage, {
13354
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0, displayPackage, {
13355
13355
  json: false,
13356
13356
  text: `${lines2.join("\n")}
13357
13357
  `
@@ -13402,7 +13402,7 @@ function writePlayResult(status, jsonOutput, options) {
13402
13402
  lines.push(...buildBillingRollupTextLines(status));
13403
13403
  const compact = compactPlayStatus(status);
13404
13404
  const payload = _optionalChain([options, 'optionalAccess', _436 => _436.fullJson]) ? status : compact;
13405
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
13405
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
13406
13406
  {
13407
13407
  ...payload,
13408
13408
  render: {
@@ -14159,7 +14159,7 @@ function writeStartedPlayRun(input) {
14159
14159
  dashboardUrl: input.dashboardUrl,
14160
14160
  package: input.package
14161
14161
  };
14162
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
14162
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
14163
14163
  json: true,
14164
14164
  fields: input.jsonFields
14165
14165
  });
@@ -14181,7 +14181,7 @@ function writeStartedPlayRun(input) {
14181
14181
  input.progress.writeLine(output2, process.stdout);
14182
14182
  return;
14183
14183
  }
14184
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0, input.package, {
14184
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0, input.package, {
14185
14185
  json: false,
14186
14186
  text: `${output2}
14187
14187
  `
@@ -14210,7 +14210,7 @@ function writeStartedPlayRun(input) {
14210
14210
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)} --json`] : []
14211
14211
  ];
14212
14212
  if (input.jsonOutput) {
14213
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
14213
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
14214
14214
  return;
14215
14215
  }
14216
14216
  if (input.dashboardUrl) {
@@ -14221,7 +14221,7 @@ function writeStartedPlayRun(input) {
14221
14221
  input.progress.writeLine(output, process.stdout);
14222
14222
  return;
14223
14223
  }
14224
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
14224
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
14225
14225
  {
14226
14226
  ...payload,
14227
14227
  render: { sections: [{ title: "play run", lines }] }
@@ -14231,7 +14231,7 @@ function writeStartedPlayRun(input) {
14231
14231
  );
14232
14232
  }
14233
14233
  function parsePlayCheckOptions(args) {
14234
- const selection = _chunkXZG75ELGjs.parseJsonFields.call(void 0, args, "check");
14234
+ const selection = _chunkPRZ4S4NUjs.parseJsonFields.call(void 0, args, "check");
14235
14235
  args = selection.args;
14236
14236
  const target = args[0];
14237
14237
  if (!target || target.startsWith("-")) {
@@ -14243,7 +14243,7 @@ function parsePlayCheckOptions(args) {
14243
14243
  if (arg !== "--json" && arg !== "--full")
14244
14244
  throw new Error(`Unknown plays check option: ${arg}`);
14245
14245
  }
14246
- const jsonOutput = _chunkXZG75ELGjs.argsWantJson.call(void 0, args);
14246
+ const jsonOutput = _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args);
14247
14247
  return {
14248
14248
  target,
14249
14249
  jsonOutput,
@@ -14319,7 +14319,7 @@ ${PLAY_PUBLISH_USAGE}`
14319
14319
  useLatest,
14320
14320
  expectedArtifactHash,
14321
14321
  dryRun,
14322
- jsonOutput: _chunkXZG75ELGjs.argsWantJson.call(void 0, args)
14322
+ jsonOutput: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)
14323
14323
  };
14324
14324
  }
14325
14325
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -14360,7 +14360,7 @@ ${PLAY_SAVE_USAGE}`);
14360
14360
  target,
14361
14361
  expectedArtifactHash,
14362
14362
  dryRun,
14363
- jsonOutput: _chunkXZG75ELGjs.argsWantJson.call(void 0, args)
14363
+ jsonOutput: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)
14364
14364
  };
14365
14365
  }
14366
14366
  function printScheduledPlayCapacity(capacity) {
@@ -14571,7 +14571,7 @@ function printBundledRuntimeWarning(bundle) {
14571
14571
  async function handlePlayCheck(args) {
14572
14572
  const options = parsePlayCheckOptions(args);
14573
14573
  if (!isFileTarget2(options.target)) {
14574
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
14574
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
14575
14575
  try {
14576
14576
  await assertCanonicalNamedPlayReference(client, options.target, {
14577
14577
  command: "check"
@@ -14600,7 +14600,7 @@ async function handlePlayCheck(args) {
14600
14600
  },
14601
14601
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
14602
14602
  };
14603
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0, result, {
14603
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0, result, {
14604
14604
  json: options.jsonOutput,
14605
14605
  fields: options.jsonFields,
14606
14606
  text: renderPlayCheckOutput(result) + "\n"
@@ -14610,7 +14610,7 @@ async function handlePlayCheck(args) {
14610
14610
  const resolved = _path.resolve.call(void 0, options.target);
14611
14611
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
14612
14612
  if (options.jsonOutput) {
14613
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
14613
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
14614
14614
  {
14615
14615
  kind: "play_check",
14616
14616
  checked: "named_contract",
@@ -14652,7 +14652,7 @@ async function handlePlayCheck(args) {
14652
14652
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full --json`,
14653
14653
  publishCommand: _optionalChain([primary, 'optionalAccess', _482 => _482.result, 'access', _483 => _483.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
14654
14654
  });
14655
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0, output, {
14655
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0, output, {
14656
14656
  json: options.jsonOutput,
14657
14657
  fields: options.jsonFields,
14658
14658
  text: renderPlayCheckOutput(output) + "\n"
@@ -14714,7 +14714,7 @@ async function checkOneExportedPlay(input) {
14714
14714
  result: { valid: false, errors: descriptionErrors }
14715
14715
  };
14716
14716
  }
14717
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
14717
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
14718
14718
  const integrationMode = resolveEvalIntegrationMode();
14719
14719
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
14720
14720
  playName: node.playName,
@@ -14788,7 +14788,7 @@ async function handleFileBackedRun(options, hooks) {
14788
14788
  );
14789
14789
  return 0;
14790
14790
  }
14791
- client = new (0, _chunkZGWURYZKjs.DeeplineClient)(playRunClientOptions(options));
14791
+ client = new (0, _chunkF2QKAGSTjs.DeeplineClient)(playRunClientOptions(options));
14792
14792
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
14793
14793
  if (canDeferCompilerManifest) {
14794
14794
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
@@ -14983,7 +14983,7 @@ async function handleNamedRun(options, hooks) {
14983
14983
  if (options.target.kind !== "name") {
14984
14984
  throw new Error("Expected a named play run target.");
14985
14985
  }
14986
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)(playRunClientOptions(options));
14986
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)(playRunClientOptions(options));
14987
14987
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
14988
14988
  const playName = options.target.name;
14989
14989
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -15380,10 +15380,10 @@ function renderRunOverviewText(overview, extras = {}) {
15380
15380
  );
15381
15381
  return `${lines.join("\n")}
15382
15382
 
15383
- ${_chunkXZG75ELGjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
15383
+ ${_chunkPRZ4S4NUjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
15384
15384
  }
15385
15385
  async function handleRunGet(args) {
15386
- const selection = _chunkXZG75ELGjs.parseJsonFields.call(void 0,
15386
+ const selection = _chunkPRZ4S4NUjs.parseJsonFields.call(void 0,
15387
15387
  args,
15388
15388
  args.includes("--config") ? "config" : "get"
15389
15389
  );
@@ -15396,7 +15396,7 @@ async function handleRunGet(args) {
15396
15396
  console.error(error instanceof Error ? error.message : usage2);
15397
15397
  return 1;
15398
15398
  }
15399
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
15399
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
15400
15400
  if (args.includes("--config")) {
15401
15401
  if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
15402
15402
  console.error(
@@ -15410,7 +15410,7 @@ async function handleRunGet(args) {
15410
15410
  "This server does not support recorded configuration reads."
15411
15411
  );
15412
15412
  }
15413
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
15413
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
15414
15414
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
15415
15415
  { json: true, fields: selection.fields }
15416
15416
  );
@@ -15418,7 +15418,7 @@ async function handleRunGet(args) {
15418
15418
  }
15419
15419
  if (args.includes("--input")) {
15420
15420
  const input = await client.getRunInput(runId);
15421
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0, input, { json: true });
15421
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0, input, { json: true });
15422
15422
  return 0;
15423
15423
  }
15424
15424
  const full = args.includes("--full");
@@ -15431,8 +15431,8 @@ async function handleRunGet(args) {
15431
15431
  full: true,
15432
15432
  failedLogs: args.includes("--log-failed")
15433
15433
  }) : status;
15434
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
15435
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
15434
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
15435
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
15436
15436
  full ? legacyStatus : compactPlayStatus(legacyStatus),
15437
15437
  { json: true, fields: selection.fields }
15438
15438
  );
@@ -15448,8 +15448,8 @@ async function handleRunGet(args) {
15448
15448
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
15449
15449
  ]);
15450
15450
  const hitLines = formatRunHitsLines(hits);
15451
- const json = _chunkXZG75ELGjs.argsWantJson.call(void 0, args);
15452
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
15451
+ const json = _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args);
15452
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
15453
15453
  {
15454
15454
  ...overview,
15455
15455
  credits,
@@ -15552,9 +15552,9 @@ async function handleRunLifecycleStatus(args) {
15552
15552
  console.error(error instanceof Error ? error.message : usage2);
15553
15553
  return 1;
15554
15554
  }
15555
- const status = await new (0, _chunkZGWURYZKjs.DeeplineClient)().runs.status(runId);
15556
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
15557
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0, status, { json: true });
15555
+ const status = await new (0, _chunkF2QKAGSTjs.DeeplineClient)().runs.status(runId);
15556
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
15557
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0, status, { json: true });
15558
15558
  return 0;
15559
15559
  }
15560
15560
  if (!status.available) {
@@ -15594,7 +15594,7 @@ async function handleRunsRerun(args) {
15594
15594
  console.error(error instanceof Error ? error.message : usage2);
15595
15595
  return 1;
15596
15596
  }
15597
- const options = { json: _chunkXZG75ELGjs.argsWantJson.call(void 0, args) };
15597
+ const options = { json: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args) };
15598
15598
  for (let index = 0; index < args.length; index += 1) {
15599
15599
  if (args[index] === "--idempotency-key") {
15600
15600
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -15659,8 +15659,8 @@ ${usage2}
15659
15659
  Discover Plays: ${next.discover}
15660
15660
  Active runs: ${next.running}`
15661
15661
  );
15662
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
15663
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
15662
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
15663
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
15664
15664
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
15665
15665
  { json: true }
15666
15666
  );
@@ -15675,7 +15675,7 @@ Active runs: ${next.running}`
15675
15675
  console.error("--offset requires --play.");
15676
15676
  return 1;
15677
15677
  }
15678
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
15678
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
15679
15679
  const page = await client.runs.listPage({
15680
15680
  ...playName ? { play: playName } : {},
15681
15681
  ...statusFilter ? { status: statusFilter } : {},
@@ -15744,7 +15744,7 @@ Active runs: ${next.running}`
15744
15744
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
15745
15745
  );
15746
15746
  }
15747
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
15747
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
15748
15748
  {
15749
15749
  runs,
15750
15750
  count: runs.length,
@@ -15758,7 +15758,7 @@ Active runs: ${next.running}`
15758
15758
  },
15759
15759
  render: { sections: [{ title: "runs", lines }] }
15760
15760
  },
15761
- { json: _chunkXZG75ELGjs.argsWantJson.call(void 0, args) }
15761
+ { json: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args) }
15762
15762
  );
15763
15763
  return 0;
15764
15764
  }
@@ -15788,7 +15788,7 @@ async function handleRunTail(args) {
15788
15788
  console.error("--log-level requires one of: debug, info, warn, error.");
15789
15789
  return 1;
15790
15790
  }
15791
- const parsed = _chunkZGWURYZKjs.parseLogLevel.call(void 0, value);
15791
+ const parsed = _chunkF2QKAGSTjs.parseLogLevel.call(void 0, value);
15792
15792
  if (!parsed) {
15793
15793
  console.error(
15794
15794
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15826,9 +15826,9 @@ async function handleRunTail(args) {
15826
15826
  );
15827
15827
  return 1;
15828
15828
  }
15829
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
15829
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
15830
15830
  const jsonLines = args.includes("--jsonl");
15831
- const jsonOutput = !jsonLines && _chunkXZG75ELGjs.argsWantJson.call(void 0, args);
15831
+ const jsonOutput = !jsonLines && _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args);
15832
15832
  const compact = args.includes("--compact");
15833
15833
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
15834
15834
  const compactState = {
@@ -15909,7 +15909,7 @@ async function handleRunLogs(args) {
15909
15909
  ]);
15910
15910
  const cursorIndex = args.indexOf("--cursor");
15911
15911
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
15912
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkZGWURYZKjs.isRunLogsCursor.call(void 0, cursorValue));
15912
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkF2QKAGSTjs.isRunLogsCursor.call(void 0, cursorValue));
15913
15913
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
15914
15914
  return handleRunEventSearch(args);
15915
15915
  }
@@ -15943,7 +15943,7 @@ async function handleRunLogs(args) {
15943
15943
  console.error("--log-level requires one of: debug, info, warn, error.");
15944
15944
  return 1;
15945
15945
  }
15946
- const parsed = _chunkZGWURYZKjs.parseLogLevel.call(void 0, value);
15946
+ const parsed = _chunkF2QKAGSTjs.parseLogLevel.call(void 0, value);
15947
15947
  if (!parsed) {
15948
15948
  console.error(
15949
15949
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15990,12 +15990,12 @@ async function handleRunLogs(args) {
15990
15990
  );
15991
15991
  return 1;
15992
15992
  }
15993
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
15993
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
15994
15994
  if (outPath) {
15995
15995
  const result2 = await client.runs.logs(runId, { all: true });
15996
- const logs = result2.entries.filter((line) => _chunkZGWURYZKjs.logLevelReaches.call(void 0, _chunkZGWURYZKjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkZGWURYZKjs.classifyLogLine.call(void 0, line).line);
15996
+ const logs = result2.entries.filter((line) => _chunkF2QKAGSTjs.logLevelReaches.call(void 0, _chunkF2QKAGSTjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkF2QKAGSTjs.classifyLogLine.call(void 0, line).line);
15997
15997
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
15998
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
15998
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
15999
15999
  {
16000
16000
  runId: result2.runId,
16001
16001
  log_path: outPath,
@@ -16018,7 +16018,7 @@ async function handleRunLogs(args) {
16018
16018
  ]
16019
16019
  }
16020
16020
  },
16021
- { json: _chunkXZG75ELGjs.argsWantJson.call(void 0, args) }
16021
+ { json: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args) }
16022
16022
  );
16023
16023
  return 0;
16024
16024
  }
@@ -16049,7 +16049,7 @@ async function handleRunLogs(args) {
16049
16049
  }
16050
16050
  };
16051
16051
  const text = buildRunLogsText(filteredResult);
16052
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
16052
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
16053
16053
  {
16054
16054
  runId: result.runId,
16055
16055
  totalCount: result.totalCount,
@@ -16073,7 +16073,7 @@ async function handleRunLogs(args) {
16073
16073
  render: { sections: [{ title: "run logs", lines: entries }] }
16074
16074
  },
16075
16075
  {
16076
- json: _chunkXZG75ELGjs.argsWantJson.call(void 0, args),
16076
+ json: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args),
16077
16077
  text
16078
16078
  }
16079
16079
  );
@@ -16097,7 +16097,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
16097
16097
  );
16098
16098
  }
16099
16099
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
16100
- (entry) => _chunkZGWURYZKjs.logLevelReaches.call(void 0, _chunkZGWURYZKjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
16100
+ (entry) => _chunkF2QKAGSTjs.logLevelReaches.call(void 0, _chunkF2QKAGSTjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
16101
16101
  );
16102
16102
  const selected = matching.slice(-limit);
16103
16103
  const olderMatchesExist = matching.length > selected.length;
@@ -16107,7 +16107,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
16107
16107
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _525 => _525.at, 'call', _526 => _526(-1), 'optionalAccess', _527 => _527.seq]), () => ( null)),
16108
16108
  truncated: result.truncated || olderMatchesExist,
16109
16109
  hasMore: olderMatchesExist,
16110
- nextCursor: olderMatchesExist ? _chunkZGWURYZKjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
16110
+ nextCursor: olderMatchesExist ? _chunkF2QKAGSTjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
16111
16111
  };
16112
16112
  }
16113
16113
  async function handleRunEventSearch(args) {
@@ -16174,7 +16174,7 @@ ${usage2}`);
16174
16174
  namespace,
16175
16175
  ...backend ? { backend } : {}
16176
16176
  } : void 0;
16177
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
16177
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
16178
16178
  const result = await client.runs.searchEvents({
16179
16179
  ...runId ? { runId } : {},
16180
16180
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -16247,7 +16247,7 @@ ${renderedDetails}` : ""}`;
16247
16247
  String(limit),
16248
16248
  "--json"
16249
16249
  ].join(" ") : null;
16250
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
16250
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
16251
16251
  {
16252
16252
  events,
16253
16253
  nextCursor: result.nextCursor,
@@ -16258,14 +16258,14 @@ ${renderedDetails}` : ""}`;
16258
16258
  render: { sections: [{ title: "runtime events", lines }] }
16259
16259
  },
16260
16260
  {
16261
- json: _chunkXZG75ELGjs.argsWantJson.call(void 0, args),
16261
+ json: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args),
16262
16262
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
16263
16263
  }
16264
16264
  );
16265
16265
  return 0;
16266
16266
  }
16267
16267
  function buildRunLogsText(result) {
16268
- const lines = result.entries.map((line) => _chunkZGWURYZKjs.classifyLogLine.call(void 0, line).line);
16268
+ const lines = result.entries.map((line) => _chunkF2QKAGSTjs.classifyLogLine.call(void 0, line).line);
16269
16269
  if (result.warning) {
16270
16270
  if (lines.length > 0) lines.push("");
16271
16271
  lines.push(`warning: ${result.warning}`);
@@ -16299,7 +16299,7 @@ async function handleRunStop(args) {
16299
16299
  reason = args[++index];
16300
16300
  }
16301
16301
  }
16302
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
16302
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
16303
16303
  const result = await client.runs.stop(runId, { reason });
16304
16304
  const state = resolveRunStopState(result);
16305
16305
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -16314,7 +16314,7 @@ async function handleRunStop(args) {
16314
16314
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
16315
16315
  `inspect: deepline runs get ${runId} --full --json`
16316
16316
  ];
16317
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
16317
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
16318
16318
  {
16319
16319
  ...cancelling,
16320
16320
  state,
@@ -16329,7 +16329,7 @@ async function handleRunStop(args) {
16329
16329
  ]
16330
16330
  }
16331
16331
  },
16332
- { json: _chunkXZG75ELGjs.argsWantJson.call(void 0, args) }
16332
+ { json: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args) }
16333
16333
  );
16334
16334
  return 0;
16335
16335
  }
@@ -16346,7 +16346,7 @@ async function handleRunStop(args) {
16346
16346
  ];
16347
16347
  process.stderr.write(`${lines2.join("\n")}
16348
16348
  `);
16349
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
16349
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
16350
16350
  {
16351
16351
  ...result,
16352
16352
  render: {
@@ -16361,7 +16361,7 @@ async function handleRunStop(args) {
16361
16361
  ]
16362
16362
  }
16363
16363
  },
16364
- { json: _chunkXZG75ELGjs.argsWantJson.call(void 0, args) }
16364
+ { json: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args) }
16365
16365
  );
16366
16366
  return 1;
16367
16367
  }
@@ -16372,12 +16372,12 @@ async function handleRunStop(args) {
16372
16372
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
16373
16373
  ] : []
16374
16374
  ];
16375
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
16375
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
16376
16376
  {
16377
16377
  ...result,
16378
16378
  render: { sections: [{ title: "run stop", lines }] }
16379
16379
  },
16380
- { json: _chunkXZG75ELGjs.argsWantJson.call(void 0, args) }
16380
+ { json: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args) }
16381
16381
  );
16382
16382
  return 0;
16383
16383
  }
@@ -16427,18 +16427,18 @@ async function handleRunStopAll(args) {
16427
16427
  reason = args[++index];
16428
16428
  }
16429
16429
  }
16430
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
16430
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
16431
16431
  if (dryRun) {
16432
16432
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
16433
16433
  const lines2 = buildStopAllDryRunTextLines(result2);
16434
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
16434
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
16435
16435
  {
16436
16436
  ...result2,
16437
16437
  render: {
16438
16438
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
16439
16439
  }
16440
16440
  },
16441
- { json: _chunkXZG75ELGjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
16441
+ { json: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
16442
16442
  ` }
16443
16443
  );
16444
16444
  return 0;
@@ -16451,17 +16451,17 @@ async function handleRunStopAll(args) {
16451
16451
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
16452
16452
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
16453
16453
  ];
16454
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
16454
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
16455
16455
  {
16456
16456
  ...result,
16457
16457
  render: { sections: [{ title: "workspace stop-all", lines }] }
16458
16458
  },
16459
- { json: _chunkXZG75ELGjs.argsWantJson.call(void 0, args) }
16459
+ { json: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args) }
16460
16460
  );
16461
16461
  return result.failed > 0 || result.partial ? 1 : 0;
16462
16462
  }
16463
16463
  async function handleRunExport(args) {
16464
- const selection = _chunkXZG75ELGjs.parseJsonFields.call(void 0, args, "export");
16464
+ const selection = _chunkPRZ4S4NUjs.parseJsonFields.call(void 0, args, "export");
16465
16465
  args = selection.args;
16466
16466
  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]";
16467
16467
  let runId;
@@ -16520,16 +16520,16 @@ async function handleRunExport(args) {
16520
16520
  "INVALID_ARGUMENT"
16521
16521
  );
16522
16522
  }
16523
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
16523
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
16524
16524
  let status = await client.getPlayStatus(runId, { full: true });
16525
16525
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
16526
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkXZG75ELGjs.argsWantJson.call(void 0, args));
16526
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args));
16527
16527
  try {
16528
16528
  await waitForPlayCompletionByWatch({
16529
16529
  client,
16530
16530
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
16531
16531
  workflowId: runId,
16532
- jsonOutput: _chunkXZG75ELGjs.argsWantJson.call(void 0, args),
16532
+ jsonOutput: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args),
16533
16533
  emitLogs: false,
16534
16534
  waitTimeoutMs,
16535
16535
  startedAt: Date.now(),
@@ -16628,8 +16628,8 @@ async function handleRunExport(args) {
16628
16628
  "utf-8"
16629
16629
  );
16630
16630
  }
16631
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0, payload, {
16632
- json: _chunkXZG75ELGjs.argsWantJson.call(void 0, args),
16631
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0, payload, {
16632
+ json: _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args),
16633
16633
  fields: selection.fields,
16634
16634
  text: `${lines.join("\n")}
16635
16635
  `
@@ -16650,10 +16650,10 @@ async function handlePlayGet(args) {
16650
16650
  );
16651
16651
  return 2;
16652
16652
  }
16653
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
16653
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
16654
16654
  const explicitJson = args.includes("--json");
16655
16655
  const sourceOutput = args.includes("--source");
16656
- const jsonOutput = sourceOutput ? explicitJson : _chunkXZG75ELGjs.argsWantJson.call(void 0, args);
16656
+ const jsonOutput = sourceOutput ? explicitJson : _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args);
16657
16657
  const requestedRevisionFlags = [
16658
16658
  args.includes("--working"),
16659
16659
  args.includes("--live"),
@@ -16713,7 +16713,7 @@ async function handlePlayGet(args) {
16713
16713
  }
16714
16714
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
16715
16715
  if (jsonOutput) {
16716
- _chunkXZG75ELGjs.printCompactJson.call(void 0, {
16716
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, {
16717
16717
  ...detail,
16718
16718
  ...materializedFile ? {
16719
16719
  message: loadedMessage,
@@ -16800,8 +16800,8 @@ async function handlePlayVersions(args) {
16800
16800
  console.error("Usage: deepline plays versions --name <name> [--json]");
16801
16801
  return 1;
16802
16802
  }
16803
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
16804
- const jsonOutput = _chunkXZG75ELGjs.argsWantJson.call(void 0, args);
16803
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
16804
+ const jsonOutput = _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args);
16805
16805
  await assertCanonicalNamedPlayReference(client, playName, {
16806
16806
  command: "versions"
16807
16807
  });
@@ -16809,7 +16809,7 @@ async function handlePlayVersions(args) {
16809
16809
  parseReferencedPlayTarget3(playName).playName
16810
16810
  );
16811
16811
  if (jsonOutput) {
16812
- _chunkXZG75ELGjs.printCompactJson.call(void 0, { versions });
16812
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, { versions });
16813
16813
  return 0;
16814
16814
  }
16815
16815
  if (versions.length === 0) {
@@ -16841,9 +16841,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
16841
16841
  "signals"
16842
16842
  ];
16843
16843
  async function handlePlayList(args) {
16844
- const jsonOutput = _chunkXZG75ELGjs.argsWantJson.call(void 0, args);
16844
+ const jsonOutput = _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args);
16845
16845
  const showCost = args.includes("--show-cost");
16846
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
16846
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
16847
16847
  const categoriesIndex = args.indexOf("--categories");
16848
16848
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _563 => _563[categoriesIndex + 1], 'optionalAccess', _564 => _564.trim, 'call', _565 => _565()]) : void 0;
16849
16849
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -16940,7 +16940,7 @@ async function handlePlayList(args) {
16940
16940
  lines.push("List truncated \u2014 more plays are available.");
16941
16941
  lines.push(`Next page: ${nextPage}`);
16942
16942
  }
16943
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
16943
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
16944
16944
  {
16945
16945
  plays,
16946
16946
  count: plays.length,
@@ -16958,7 +16958,7 @@ async function handlePlayList(args) {
16958
16958
  }
16959
16959
  async function handlePlayPin(args, pinned) {
16960
16960
  const target = _optionalChain([args, 'access', _572 => _572.find, 'call', _573 => _573((arg) => !arg.startsWith("-")), 'optionalAccess', _574 => _574.trim, 'call', _575 => _575()]);
16961
- const jsonOutput = _chunkXZG75ELGjs.argsWantJson.call(void 0, args);
16961
+ const jsonOutput = _chunkPRZ4S4NUjs.argsWantJson.call(void 0, args);
16962
16962
  const dryRun = args.includes("--dry-run");
16963
16963
  if (!target) {
16964
16964
  console.error(
@@ -16976,11 +16976,11 @@ async function handlePlayPin(args, pinned) {
16976
16976
  const name = parsedTarget.playName;
16977
16977
  const plan = { name, pinned, dryRun };
16978
16978
  if (dryRun) {
16979
- _chunkXZG75ELGjs.printCompactJson.call(void 0, plan);
16979
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, plan);
16980
16980
  return 0;
16981
16981
  }
16982
- const result = await new (0, _chunkZGWURYZKjs.DeeplineClient)().setPlayPinned(name, pinned);
16983
- if (jsonOutput) _chunkXZG75ELGjs.printCompactJson.call(void 0, result);
16982
+ const result = await new (0, _chunkF2QKAGSTjs.DeeplineClient)().setPlayPinned(name, pinned);
16983
+ if (jsonOutput) _chunkPRZ4S4NUjs.printCompactJson.call(void 0, result);
16984
16984
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
16985
16985
  return 0;
16986
16986
  }
@@ -16996,7 +16996,7 @@ function csvColumnLines(csvInput) {
16996
16996
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
16997
16997
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
16998
16998
  }),
16999
- _chunkZGWURYZKjs.CSV_HEADER_MATCHING_NOTE
16999
+ _chunkF2QKAGSTjs.CSV_HEADER_MATCHING_NOTE
17000
17000
  ];
17001
17001
  }
17002
17002
  function describedPlay(play) {
@@ -17140,12 +17140,12 @@ async function handlePlayGrep(args) {
17140
17140
  console.error("Usage: deepline plays grep <query> [--json]");
17141
17141
  return 1;
17142
17142
  }
17143
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
17143
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
17144
17144
  const results = (await client.listPlays({ grep: query })).map(
17145
17145
  summarizePlayGrepResult
17146
17146
  );
17147
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
17148
- _chunkXZG75ELGjs.printCompactJson.call(void 0, {
17147
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
17148
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, {
17149
17149
  plays: results,
17150
17150
  count: results.length,
17151
17151
  query,
@@ -17168,7 +17168,7 @@ async function handlePlayGrep(args) {
17168
17168
  return 0;
17169
17169
  }
17170
17170
  async function handlePlayDescribe(args) {
17171
- const selection = _chunkXZG75ELGjs.parseJsonFields.call(void 0, args, "describe");
17171
+ const selection = _chunkPRZ4S4NUjs.parseJsonFields.call(void 0, args, "describe");
17172
17172
  args = selection.args;
17173
17173
  const playName = args[0];
17174
17174
  if (!playName) {
@@ -17202,8 +17202,8 @@ async function handlePlayDescribe(args) {
17202
17202
  `deepline plays check ${playName}`,
17203
17203
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
17204
17204
  ];
17205
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
17206
- _chunkXZG75ELGjs.printCompactJson.call(void 0, {
17205
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
17206
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, {
17207
17207
  ok: false,
17208
17208
  error: { message },
17209
17209
  next
@@ -17217,7 +17217,7 @@ async function handlePlayDescribe(args) {
17217
17217
  }
17218
17218
  return 2;
17219
17219
  }
17220
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
17220
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
17221
17221
  await assertCanonicalNamedPlayReference(client, playName, {
17222
17222
  command: "describe"
17223
17223
  });
@@ -17227,9 +17227,9 @@ async function handlePlayDescribe(args) {
17227
17227
  compact: args.includes("--compact")
17228
17228
  }
17229
17229
  );
17230
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
17231
- if (selection.fields) _chunkXZG75ELGjs.printJson.call(void 0, play, selection.fields);
17232
- else _chunkXZG75ELGjs.printCompactJson.call(void 0, play);
17230
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
17231
+ if (selection.fields) _chunkPRZ4S4NUjs.printJson.call(void 0, play, selection.fields);
17232
+ else _chunkPRZ4S4NUjs.printCompactJson.call(void 0, play);
17233
17233
  return 0;
17234
17234
  }
17235
17235
  printPlayDescription(play);
@@ -17273,7 +17273,7 @@ async function handlePlaySave(args) {
17273
17273
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
17274
17274
  };
17275
17275
  if (options.jsonOutput) {
17276
- _chunkXZG75ELGjs.printCompactJson.call(void 0, result);
17276
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, result);
17277
17277
  } else {
17278
17278
  console.error(result.message);
17279
17279
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -17295,7 +17295,7 @@ async function handlePlaySave(args) {
17295
17295
  };
17296
17296
  if (options.dryRun) {
17297
17297
  if (options.jsonOutput) {
17298
- _chunkXZG75ELGjs.printCompactJson.call(void 0, dryRun);
17298
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, dryRun);
17299
17299
  } else {
17300
17300
  console.log(`Dry run: ${playName}`);
17301
17301
  console.log(` source: ${dryRun.sourceHash}`);
@@ -17304,7 +17304,7 @@ async function handlePlaySave(args) {
17304
17304
  }
17305
17305
  return 0;
17306
17306
  }
17307
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
17307
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
17308
17308
  try {
17309
17309
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
17310
17310
  "cli.play_save_compile_manifests",
@@ -17340,7 +17340,7 @@ async function handlePlaySave(args) {
17340
17340
  }
17341
17341
  };
17342
17342
  if (options.jsonOutput) {
17343
- _chunkXZG75ELGjs.printCompactJson.call(void 0, result);
17343
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, result);
17344
17344
  } else {
17345
17345
  console.log(
17346
17346
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -17366,7 +17366,7 @@ async function handlePlayPublish(args) {
17366
17366
  }
17367
17367
  const { target: playName, useLatest } = options;
17368
17368
  let revisionId = options.revisionId;
17369
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
17369
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
17370
17370
  if (isFileTarget2(playName)) {
17371
17371
  if (revisionId || useLatest) {
17372
17372
  console.error(
@@ -17398,7 +17398,7 @@ async function handlePlayPublish(args) {
17398
17398
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
17399
17399
  };
17400
17400
  if (options.jsonOutput) {
17401
- _chunkXZG75ELGjs.printCompactJson.call(void 0, result3);
17401
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, result3);
17402
17402
  } else {
17403
17403
  console.error(result3.message);
17404
17404
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -17421,7 +17421,7 @@ async function handlePlayPublish(args) {
17421
17421
  };
17422
17422
  if (options.dryRun) {
17423
17423
  if (options.jsonOutput) {
17424
- _chunkXZG75ELGjs.printCompactJson.call(void 0, dryRun);
17424
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, dryRun);
17425
17425
  } else {
17426
17426
  console.log(`Dry run: ${rootPlayName}`);
17427
17427
  console.log(` source: ${dryRun.sourceHash}`);
@@ -17489,7 +17489,7 @@ async function handlePlayPublish(args) {
17489
17489
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
17490
17490
  };
17491
17491
  if (options.jsonOutput) {
17492
- _chunkXZG75ELGjs.printCompactJson.call(void 0, result2);
17492
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, result2);
17493
17493
  } else {
17494
17494
  printPublishReceipt({
17495
17495
  name: rootPlayName,
@@ -17520,7 +17520,7 @@ async function handlePlayPublish(args) {
17520
17520
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
17521
17521
  latest: useLatest
17522
17522
  };
17523
- _chunkXZG75ELGjs.printCompactJson.call(void 0, result2);
17523
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, result2);
17524
17524
  return 0;
17525
17525
  }
17526
17526
  const resolvedName = parseReferencedPlayTarget3(playName).playName;
@@ -17544,7 +17544,7 @@ async function handlePlayPublish(args) {
17544
17544
  revisionId ? { revisionId } : {}
17545
17545
  );
17546
17546
  if (options.jsonOutput) {
17547
- _chunkXZG75ELGjs.printCompactJson.call(void 0, result);
17547
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, result);
17548
17548
  } else {
17549
17549
  printPublishReceipt({
17550
17550
  name: result.name,
@@ -17584,7 +17584,7 @@ async function handlePlayDelete(args) {
17584
17584
  );
17585
17585
  return 2;
17586
17586
  }
17587
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
17587
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
17588
17588
  let detail;
17589
17589
  try {
17590
17590
  detail = await client.getPlay(parseReferencedPlayTarget3(playName).playName);
@@ -17608,8 +17608,8 @@ async function handlePlayDelete(args) {
17608
17608
  name: resolvedName,
17609
17609
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
17610
17610
  };
17611
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
17612
- _chunkXZG75ELGjs.printCompactJson.call(void 0, result2);
17611
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
17612
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, result2);
17613
17613
  } else {
17614
17614
  process.stdout.write(
17615
17615
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -17619,8 +17619,8 @@ async function handlePlayDelete(args) {
17619
17619
  return 0;
17620
17620
  }
17621
17621
  const result = await client.deletePlay(resolvedName);
17622
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
17623
- _chunkXZG75ELGjs.printCompactJson.call(void 0, result);
17622
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
17623
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, result);
17624
17624
  return result.archived || result.alreadyArchived ? 0 : 4;
17625
17625
  }
17626
17626
  if (result.alreadyArchived) {
@@ -17659,13 +17659,13 @@ async function handlePlayRestore(args) {
17659
17659
  );
17660
17660
  return 2;
17661
17661
  }
17662
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
17662
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
17663
17663
  try {
17664
17664
  const result = await client.restorePlay(
17665
17665
  parseReferencedPlayTarget3(playName).playName
17666
17666
  );
17667
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
17668
- _chunkXZG75ELGjs.printCompactJson.call(void 0, result);
17667
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
17668
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, result);
17669
17669
  return result.restored || result.alreadyActive ? 0 : 4;
17670
17670
  }
17671
17671
  if (result.alreadyActive) {
@@ -17772,7 +17772,7 @@ Examples:
17772
17772
  ).action(async (target, options) => {
17773
17773
  process.exitCode = await handlePlayCheck([
17774
17774
  target,
17775
- ..._chunkXZG75ELGjs.jsonFieldArgs.call(void 0, options.json),
17775
+ ..._chunkPRZ4S4NUjs.jsonFieldArgs.call(void 0, options.json),
17776
17776
  ...options.full ? ["--full"] : []
17777
17777
  ]);
17778
17778
  });
@@ -18001,9 +18001,9 @@ Examples:
18001
18001
  const limit = Number(options.historyLimit);
18002
18002
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
18003
18003
  throw new Error("--history-limit must be an integer from 1 to 30.");
18004
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
18004
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
18005
18005
  if (options.binding) {
18006
- _chunkXZG75ELGjs.printCompactJson.call(void 0,
18006
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0,
18007
18007
  await client.getPlayTriggerHistory(options.binding, { limit })
18008
18008
  );
18009
18009
  return;
@@ -18011,7 +18011,7 @@ Examples:
18011
18011
  const result = await client.listPlayTriggerInventory({
18012
18012
  cursor: options.cursor
18013
18013
  });
18014
- _chunkXZG75ELGjs.printCompactJson.call(void 0, {
18014
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, {
18015
18015
  ...result,
18016
18016
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
18017
18017
  });
@@ -18058,7 +18058,7 @@ Examples:
18058
18058
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
18059
18059
  throw new Error("--group-by must be kind or trigger_source.");
18060
18060
  }
18061
- const result = await new (0, _chunkZGWURYZKjs.DeeplineClient)().getPlaysActivity({
18061
+ const result = await new (0, _chunkF2QKAGSTjs.DeeplineClient)().getPlaysActivity({
18062
18062
  timeZone: options.timeZone,
18063
18063
  days,
18064
18064
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -18072,7 +18072,7 @@ Examples:
18072
18072
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
18073
18073
  );
18074
18074
  }
18075
- _chunkXZG75ELGjs.printCommandEnvelope.call(void 0,
18075
+ _chunkPRZ4S4NUjs.printCommandEnvelope.call(void 0,
18076
18076
  { ...result },
18077
18077
  {
18078
18078
  json: options.json || !process.stdout.isTTY,
@@ -18101,7 +18101,7 @@ Examples:
18101
18101
  false
18102
18102
  );
18103
18103
  });
18104
- _chunkL4CJXV7Djs.registerDeprecatedSearchCommand.call(void 0,
18104
+ _chunk64CZWDWTjs.registerDeprecatedSearchCommand.call(void 0,
18105
18105
  play,
18106
18106
  (options) => options.all ? ["plays"] : ["prebuilts"]
18107
18107
  );
@@ -18145,7 +18145,7 @@ Examples:
18145
18145
  );
18146
18146
  _chunkAFNEQ43Jjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
18147
18147
  async (target, options) => {
18148
- const ownView = () => handlePlayDescribe(_chunkXZG75ELGjs.describeArgs.call(void 0, target, options));
18148
+ const ownView = () => handlePlayDescribe(_chunkPRZ4S4NUjs.describeArgs.call(void 0, target, options));
18149
18149
  const [flagText] = [options.json].filter(
18150
18150
  (value) => typeof value === "string"
18151
18151
  );
@@ -18156,7 +18156,7 @@ Examples:
18156
18156
  process.exitCode = await ownView();
18157
18157
  return;
18158
18158
  }
18159
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-IQ3FOLGV.js")));
18159
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-4KG2JAQV.js")));
18160
18160
  process.exitCode = await describeAnything(
18161
18161
  name,
18162
18162
  {
@@ -18273,7 +18273,7 @@ Examples:
18273
18273
  deepline plays deployments <deployment-id>
18274
18274
  `
18275
18275
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
18276
- async (id, options) => id ? _chunkKXWOO3GIjs.handleDeploymentGet.call(void 0, id, options) : _chunkKXWOO3GIjs.handleDeploymentsList.call(void 0, options)
18276
+ async (id, options) => id ? _chunkKBXHB5P3js.handleDeploymentGet.call(void 0, id, options) : _chunkKBXHB5P3js.handleDeploymentsList.call(void 0, options)
18277
18277
  );
18278
18278
  addPublishHelp(
18279
18279
  play.command("publish <target>").description(
@@ -18453,7 +18453,7 @@ Examples:
18453
18453
  ).action(async (runId, options) => {
18454
18454
  process.exitCode = await handleRunGet([
18455
18455
  runId,
18456
- ..._chunkXZG75ELGjs.jsonFieldArgs.call(void 0, options.json),
18456
+ ..._chunkPRZ4S4NUjs.jsonFieldArgs.call(void 0, options.json),
18457
18457
  ...options.full ? ["--full"] : [],
18458
18458
  ...options.input ? ["--input"] : [],
18459
18459
  ...options.config ? ["--config"] : [],
@@ -18726,7 +18726,7 @@ Examples:
18726
18726
  ...options.metadataOut ? ["--metadata-out", options.metadataOut] : [],
18727
18727
  ...options.wait ? ["--wait"] : [],
18728
18728
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
18729
- ..._chunkXZG75ELGjs.jsonFieldArgs.call(void 0, options.json)
18729
+ ..._chunkPRZ4S4NUjs.jsonFieldArgs.call(void 0, options.json)
18730
18730
  ]);
18731
18731
  });
18732
18732
  const share = play.command("share").description(
@@ -18892,10 +18892,10 @@ async function handlePlayShareStatus(args) {
18892
18892
  return 2;
18893
18893
  }
18894
18894
  const name = parseReferencedPlayTarget3(target).playName;
18895
- const status = await new (0, _chunkZGWURYZKjs.DeeplineClient)().getSharePage(name);
18895
+ const status = await new (0, _chunkF2QKAGSTjs.DeeplineClient)().getSharePage(name);
18896
18896
  const outputStatus = shareStatusForOutput(status);
18897
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
18898
- _chunkXZG75ELGjs.printCompactJson.call(void 0, outputStatus);
18897
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
18898
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, outputStatus);
18899
18899
  return 0;
18900
18900
  }
18901
18901
  if (!outputStatus.share) {
@@ -18934,7 +18934,7 @@ async function handlePlaySharePublish(args) {
18934
18934
  return 2;
18935
18935
  }
18936
18936
  const name = parseReferencedPlayTarget3(target).playName;
18937
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
18937
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
18938
18938
  let revisionId = shareFlagValue(args, "--revision-id");
18939
18939
  let resolvedVersion;
18940
18940
  if (!revisionId) {
@@ -18965,8 +18965,8 @@ async function handlePlaySharePublish(args) {
18965
18965
  );
18966
18966
  if (!hasCompleted) {
18967
18967
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
18968
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
18969
- _chunkXZG75ELGjs.printCompactJson.call(void 0, {
18968
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
18969
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, {
18970
18970
  ok: false,
18971
18971
  code: "NO_SUCCESSFUL_RUN",
18972
18972
  message,
@@ -18990,8 +18990,8 @@ async function handlePlaySharePublish(args) {
18990
18990
  };
18991
18991
  if (args.includes("--dry-run")) {
18992
18992
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
18993
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
18994
- _chunkXZG75ELGjs.printCompactJson.call(void 0, plan);
18993
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
18994
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, plan);
18995
18995
  } else {
18996
18996
  console.log(
18997
18997
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -19001,8 +19001,8 @@ async function handlePlaySharePublish(args) {
19001
19001
  }
19002
19002
  const status = await client.publishSharePage(name, request);
19003
19003
  const outputStatus = shareStatusForOutput(status);
19004
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
19005
- _chunkXZG75ELGjs.printCompactJson.call(void 0, outputStatus);
19004
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
19005
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, outputStatus);
19006
19006
  return 0;
19007
19007
  }
19008
19008
  const urls = shareUrlFields(outputStatus);
@@ -19033,9 +19033,9 @@ async function handlePlayShareUpdate(args) {
19033
19033
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
19034
19034
  ...seoIndexing ? { seoIndexing } : {}
19035
19035
  };
19036
- const status = await new (0, _chunkZGWURYZKjs.DeeplineClient)().updateSharePage(name, request);
19037
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
19038
- _chunkXZG75ELGjs.printCompactJson.call(void 0, status);
19036
+ const status = await new (0, _chunkF2QKAGSTjs.DeeplineClient)().updateSharePage(name, request);
19037
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
19038
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, status);
19039
19039
  return 0;
19040
19040
  }
19041
19041
  console.log(`Updated ${name} share settings.`);
@@ -19050,7 +19050,7 @@ async function handlePlayShareRegenerate(args) {
19050
19050
  return 2;
19051
19051
  }
19052
19052
  const name = parseReferencedPlayTarget3(target).playName;
19053
- const client = new (0, _chunkZGWURYZKjs.DeeplineClient)();
19053
+ const client = new (0, _chunkF2QKAGSTjs.DeeplineClient)();
19054
19054
  let revisionId = shareFlagValue(args, "--revision-id");
19055
19055
  const versionFlag = shareFlagValue(args, "--version");
19056
19056
  if (!revisionId && versionFlag) {
@@ -19067,8 +19067,8 @@ async function handlePlayShareRegenerate(args) {
19067
19067
  revisionId ? { revisionId } : {}
19068
19068
  );
19069
19069
  const outputStatus = shareStatusForOutput(status);
19070
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
19071
- _chunkXZG75ELGjs.printCompactJson.call(void 0, outputStatus);
19070
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
19071
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, outputStatus);
19072
19072
  return 0;
19073
19073
  }
19074
19074
  const urls = shareUrlFields(outputStatus);
@@ -19093,9 +19093,9 @@ async function handlePlayShareUnpublish(args) {
19093
19093
  return 2;
19094
19094
  }
19095
19095
  const name = parseReferencedPlayTarget3(target).playName;
19096
- const status = await new (0, _chunkZGWURYZKjs.DeeplineClient)().unpublishSharePage(name);
19097
- if (_chunkXZG75ELGjs.argsWantJson.call(void 0, args)) {
19098
- _chunkXZG75ELGjs.printCompactJson.call(void 0, status);
19096
+ const status = await new (0, _chunkF2QKAGSTjs.DeeplineClient)().unpublishSharePage(name);
19097
+ if (_chunkPRZ4S4NUjs.argsWantJson.call(void 0, args)) {
19098
+ _chunkPRZ4S4NUjs.printCompactJson.call(void 0, status);
19099
19099
  return 0;
19100
19100
  }
19101
19101
  console.log(`Unpublished ${name}; the public page has been removed.`);