deepline 0.3.376 → 0.3.377

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 (92) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/{auth-MLCDUTJY.mjs → auth-3SJMD5GS.mjs} +4 -4
  3. package/dist/cli/auth-C54HQ3XR.js +35 -0
  4. package/dist/cli/{billing-IONI4V7P.js → billing-IN4CGRX5.js} +73 -73
  5. package/dist/cli/{billing-OUGNDBL4.mjs → billing-N4PYTCSM.mjs} +4 -4
  6. package/dist/cli/{chunk-7LX2G2PU.mjs → chunk-3H5U7XCU.mjs} +1 -1
  7. package/dist/cli/{chunk-6EYTKUDI.js → chunk-4T62V4WC.js} +2 -2
  8. package/dist/cli/{chunk-VNBAOWN3.mjs → chunk-7EEPWHRK.mjs} +6 -6
  9. package/dist/cli/{chunk-H7SLESX6.mjs → chunk-ATK45XHI.mjs} +1 -1
  10. package/dist/cli/{chunk-Y4MXBE3V.js → chunk-BBONZ7CN.js} +8 -8
  11. package/dist/cli/{chunk-Y5W5IIA4.js → chunk-CEUIAIUI.js} +57 -57
  12. package/dist/cli/{chunk-GMRWUGXB.mjs → chunk-CUKV3EXY.mjs} +3 -3
  13. package/dist/cli/{chunk-47X6MQ7J.js → chunk-D3GRDNJO.js} +60 -60
  14. package/dist/cli/{chunk-V7ZREPSD.mjs → chunk-DW7BDVZY.mjs} +4 -4
  15. package/dist/cli/{chunk-SPZNLE2D.mjs → chunk-FVFKLSMD.mjs} +2 -2
  16. package/dist/cli/{chunk-ETUV6RRK.js → chunk-GPM3AZXB.js} +9 -9
  17. package/dist/cli/{chunk-34KUUN3Z.js → chunk-HYMVGRZP.js} +50 -50
  18. package/dist/cli/{chunk-4V2Q3JO6.js → chunk-IHXLIPY3.js} +15 -15
  19. package/dist/cli/{chunk-HDB4GAWY.mjs → chunk-JMDMPIGV.mjs} +1 -1
  20. package/dist/cli/{chunk-KHZ6WEVF.js → chunk-KHZQCKZ6.js} +26 -26
  21. package/dist/cli/{chunk-7ZZSGV4A.js → chunk-LJCC26EK.js} +1 -1
  22. package/dist/cli/{chunk-VL5ERG22.mjs → chunk-M2RT2YVB.mjs} +2 -2
  23. package/dist/cli/{chunk-L6OSOKS6.mjs → chunk-MDMP2VS2.mjs} +12 -8
  24. package/dist/cli/{chunk-5HJHTZI6.mjs → chunk-OEVLOA6Y.mjs} +1 -1
  25. package/dist/cli/{chunk-ZXFGA2VK.js → chunk-ON7BSEMT.js} +8 -8
  26. package/dist/cli/{chunk-YXQ7SRL3.mjs → chunk-OWJRRGZH.mjs} +2 -2
  27. package/dist/cli/{chunk-MHRDXS7J.mjs → chunk-SHPLCIOL.mjs} +1 -1
  28. package/dist/cli/{chunk-QSH5CHRI.js → chunk-SQPNP3IQ.js} +6 -6
  29. package/dist/cli/{chunk-UE2UHYT3.mjs → chunk-VB6KECLU.mjs} +57 -6
  30. package/dist/cli/{chunk-UABI2T3Z.mjs → chunk-VD6KRRST.mjs} +2 -2
  31. package/dist/cli/{chunk-5HDB7XXT.js → chunk-VEUTINSL.js} +240 -236
  32. package/dist/cli/{chunk-N6KIEYZV.js → chunk-Y72FFPX5.js} +4 -4
  33. package/dist/cli/{chunk-A6ZTYKYF.js → chunk-ZMVJSS6N.js} +63 -12
  34. package/dist/cli/{csv-NITSP7QJ.mjs → csv-747TCRJS.mjs} +3 -3
  35. package/dist/cli/{csv-LPC7BGZ2.js → csv-JHBQL7PV.js} +12 -12
  36. package/dist/cli/{db-JVDYEXNC.mjs → db-42NBKURO.mjs} +4 -4
  37. package/dist/cli/{db-WGD54UKM.js → db-FGCCQJ64.js} +29 -29
  38. package/dist/cli/{describe-SVMLA6SN.mjs → describe-E6WVN74T.mjs} +11 -9
  39. package/dist/cli/{describe-GA7LSJRY.js → describe-PJYBUSVL.js} +30 -28
  40. package/dist/cli/{executions-P47HEI4N.js → executions-5P5ZJCRJ.js} +6 -6
  41. package/dist/cli/{executions-CXBJDGMU.mjs → executions-UF7KP7B6.mjs} +4 -4
  42. package/dist/cli/{feedback-34OSXUQ2.mjs → feedback-BFXXUVXK.mjs} +3 -3
  43. package/dist/cli/{feedback-GWKWE5CU.js → feedback-S43D42JP.js} +7 -7
  44. package/dist/cli/git-C6PRTVHM.js +23 -0
  45. package/dist/cli/{git-YAROF6D3.mjs → git-TNNTQ5IJ.mjs} +4 -4
  46. package/dist/cli/index.js +82 -82
  47. package/dist/cli/index.mjs +32 -32
  48. package/dist/cli/{legacy-noops-2G55OKIU.mjs → legacy-noops-3ZEHUFE4.mjs} +4 -4
  49. package/dist/cli/{legacy-noops-MDZQL3QH.js → legacy-noops-SYWQBRUI.js} +7 -7
  50. package/dist/cli/{monitors-KUGKMABN.mjs → monitors-DAU53OC5.mjs} +4 -4
  51. package/dist/cli/{monitors-X7QYWFSP.js → monitors-GTBPXIN7.js} +85 -85
  52. package/dist/cli/{org-CNBBAN4W.mjs → org-4TGDZ2ZL.mjs} +4 -4
  53. package/dist/cli/{org-6XL3IBT2.js → org-G77WDHXX.js} +64 -64
  54. package/dist/cli/play-LNKMZFTI.js +155 -0
  55. package/dist/cli/{play-33ZMPAR5.mjs → play-OZV6FDMR.mjs} +8 -8
  56. package/dist/cli/{providers-3OSQNFPE.mjs → providers-FPTHZSZH.mjs} +4 -4
  57. package/dist/cli/{providers-5POAURDT.js → providers-GHS5B4FX.js} +7 -7
  58. package/dist/cli/{quickstart-QICTOOW6.mjs → quickstart-ADJZVPQR.mjs} +3 -3
  59. package/dist/cli/{quickstart-LQGPDJTS.js → quickstart-TGO5N665.js} +5 -5
  60. package/dist/cli/{search-HBIX4SF4.mjs → search-B7BRMMFR.mjs} +5 -5
  61. package/dist/cli/search-L6K36YWC.js +26 -0
  62. package/dist/cli/{secrets-6MRGZPHT.mjs → secrets-A4UK4TMU.mjs} +4 -4
  63. package/dist/cli/{secrets-QKPBNQ3E.js → secrets-FDREPCLL.js} +13 -13
  64. package/dist/cli/{sessions-NODY2OW4.mjs → sessions-2UJPBSAV.mjs} +4 -4
  65. package/dist/cli/{sessions-NP7BLZD2.js → sessions-KQSHUEEV.js} +5 -5
  66. package/dist/cli/{settings-JCEIOTNL.mjs → settings-BZ5JTH67.mjs} +7 -7
  67. package/dist/cli/{settings-42QHXUB2.js → settings-XZSSJUSS.js} +74 -74
  68. package/dist/cli/{setup-3QR4RGMG.mjs → setup-DIQPCI6O.mjs} +6 -6
  69. package/dist/cli/{setup-5XXWP54Y.js → setup-GQO2XQLS.js} +41 -41
  70. package/dist/cli/{skills-U4OMXLNS.mjs → skills-6ZJBKK6M.mjs} +4 -4
  71. package/dist/cli/skills-VSIYWK7T.js +28 -0
  72. package/dist/cli/tools-L7A6ITNQ.js +40 -0
  73. package/dist/cli/{tools-45OROEZQ.mjs → tools-NKGWJUGR.mjs} +7 -7
  74. package/dist/cli/{update-2XCRMJ4R.mjs → update-I3H7FXIF.mjs} +6 -6
  75. package/dist/cli/update-IP3GCUVX.js +28 -0
  76. package/dist/cli/{workflow-47P4LQNC.js → workflow-J3FZEW4S.js} +15 -15
  77. package/dist/cli/{workflow-7X3GCOPY.mjs → workflow-XFRG5G5H.mjs} +5 -5
  78. package/dist/index.js +6 -6
  79. package/dist/index.mjs +3 -3
  80. package/dist/install-integrity.json +74 -74
  81. package/dist/release.d.mts +1 -1
  82. package/dist/release.d.ts +1 -1
  83. package/dist/release.js +2 -2
  84. package/dist/release.mjs +1 -1
  85. package/package.json +1 -1
  86. package/dist/cli/auth-BTFXJQLT.js +0 -35
  87. package/dist/cli/git-MIPISCON.js +0 -23
  88. package/dist/cli/play-3CM3P2DS.js +0 -155
  89. package/dist/cli/search-A2YLJ4I5.js +0 -26
  90. package/dist/cli/skills-4JJEAA66.js +0 -28
  91. package/dist/cli/tools-FDCFSA7W.js +0 -40
  92. package/dist/cli/update-VYL4TXIE.js +0 -28
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkA6ZTYKYFjs = require('./chunk-A6ZTYKYF.js');
5
+ var _chunkZMVJSS6Njs = require('./chunk-ZMVJSS6N.js');
6
6
 
7
7
 
8
8
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
@@ -19,11 +19,11 @@ var _chunkQGKPTBRRjs = require('./chunk-QGKPTBRR.js');
19
19
  var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
20
20
 
21
21
 
22
- var _chunkZXFGA2VKjs = require('./chunk-ZXFGA2VK.js');
22
+ var _chunkON7BSEMTjs = require('./chunk-ON7BSEMT.js');
23
23
 
24
24
 
25
25
 
26
- var _chunkKHZ6WEVFjs = require('./chunk-KHZ6WEVF.js');
26
+ var _chunkKHZQCKZ6js = require('./chunk-KHZQCKZ6.js');
27
27
 
28
28
 
29
29
 
@@ -42,7 +42,7 @@ var _chunkGEJDBXXMjs = require('./chunk-GEJDBXXM.js');
42
42
 
43
43
 
44
44
 
45
- var _chunkETUV6RRKjs = require('./chunk-ETUV6RRK.js');
45
+ var _chunkGPM3AZXBjs = require('./chunk-GPM3AZXB.js');
46
46
 
47
47
 
48
48
 
@@ -75,10 +75,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
75
75
 
76
76
 
77
77
 
78
- var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
78
+ var _chunkSQPNP3IQjs = require('./chunk-SQPNP3IQ.js');
79
79
 
80
80
 
81
- var _chunkN6KIEYZVjs = require('./chunk-N6KIEYZV.js');
81
+ var _chunkY72FFPX5js = require('./chunk-Y72FFPX5.js');
82
82
 
83
83
 
84
84
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -2062,7 +2062,7 @@ function resolveField(key, command) {
2062
2062
  function printSettings(result, json, name) {
2063
2063
  result = { ...result, settings: parsePlaySettings(result.settings) };
2064
2064
  const selected = fields.filter(([key]) => !name || key === name);
2065
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
2065
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
2066
2066
  {
2067
2067
  ...result,
2068
2068
  settings: Object.fromEntries(
@@ -2106,7 +2106,7 @@ function registerPlaySettingsCommands(plays) {
2106
2106
  valueSyntax: field.cli.valueSyntax,
2107
2107
  examples: field.cli.examples
2108
2108
  }));
2109
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
2109
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
2110
2110
  {
2111
2111
  fields: descriptions,
2112
2112
  render: {
@@ -2131,7 +2131,7 @@ function registerPlaySettingsCommands(plays) {
2131
2131
  async (options, command) => {
2132
2132
  if (options.name !== void 0) resolveField(options.name, command);
2133
2133
  printSettings(
2134
- await new (0, _chunkETUV6RRKjs.DeeplineClient)().getPlaySettings(options.play),
2134
+ await new (0, _chunkGPM3AZXBjs.DeeplineClient)().getPlaySettings(options.play),
2135
2135
  options.json,
2136
2136
  options.name
2137
2137
  );
@@ -2162,7 +2162,7 @@ function registerPlaySettingsCommands(plays) {
2162
2162
  );
2163
2163
  }
2164
2164
  if (options.dryRun) {
2165
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
2165
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
2166
2166
  {
2167
2167
  dryRun: true,
2168
2168
  play,
@@ -2183,7 +2183,7 @@ function registerPlaySettingsCommands(plays) {
2183
2183
  return;
2184
2184
  }
2185
2185
  printSettings(
2186
- await new (0, _chunkETUV6RRKjs.DeeplineClient)().updatePlaySettings(play, patch),
2186
+ await new (0, _chunkGPM3AZXBjs.DeeplineClient)().updatePlaySettings(play, patch),
2187
2187
  options.json
2188
2188
  );
2189
2189
  };
@@ -2209,13 +2209,13 @@ function registerPlaySettingsCommands(plays) {
2209
2209
  "--root must be person or team; --limit must be 1\u2013100.",
2210
2210
  { exitCode: 2 }
2211
2211
  );
2212
- const page = await new (0, _chunkETUV6RRKjs.DeeplineClient)().listPlaySettingsPaths({
2212
+ const page = await new (0, _chunkGPM3AZXBjs.DeeplineClient)().listPlaySettingsPaths({
2213
2213
  root: options.root,
2214
2214
  limit,
2215
2215
  cursor: options.cursor
2216
2216
  });
2217
2217
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2218
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
2218
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
2219
2219
  {
2220
2220
  ...page,
2221
2221
  nextCommand,
@@ -2266,7 +2266,7 @@ function registerPlaySettingsCommands(plays) {
2266
2266
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2267
2267
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2268
2268
  };
2269
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
2269
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
2270
2270
  const paths = [];
2271
2271
  let cursor;
2272
2272
  do {
@@ -2328,7 +2328,7 @@ function registerPlaySettingsCommands(plays) {
2328
2328
  moved.push(move.playName);
2329
2329
  }
2330
2330
  }
2331
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
2331
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
2332
2332
  {
2333
2333
  dryRun: Boolean(options.dryRun),
2334
2334
  from: options.from,
@@ -2456,7 +2456,7 @@ function triggerLines(view) {
2456
2456
  return lines;
2457
2457
  }
2458
2458
  function printView(view, json) {
2459
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
2459
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
2460
2460
  {
2461
2461
  ...view,
2462
2462
  render: {
@@ -2469,7 +2469,7 @@ function printView(view, json) {
2469
2469
  );
2470
2470
  }
2471
2471
  function printResult(result, json) {
2472
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
2472
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
2473
2473
  {
2474
2474
  ...result,
2475
2475
  render: {
@@ -2499,7 +2499,7 @@ async function mutate(command, options, build) {
2499
2499
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2500
2500
  }
2501
2501
  if (options.dryRun) {
2502
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
2502
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
2503
2503
  {
2504
2504
  dryRun: true,
2505
2505
  play: options.play,
@@ -2518,7 +2518,7 @@ async function mutate(command, options, build) {
2518
2518
  return;
2519
2519
  }
2520
2520
  printResult(
2521
- await new (0, _chunkETUV6RRKjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2521
+ await new (0, _chunkGPM3AZXBjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2522
2522
  options.json
2523
2523
  );
2524
2524
  }
@@ -2551,7 +2551,7 @@ function registerPlayTriggerConfigCommands(plays) {
2551
2551
  }).addHelpText("after", help2);
2552
2552
  trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
2553
2553
  printView(
2554
- await new (0, _chunkETUV6RRKjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2554
+ await new (0, _chunkGPM3AZXBjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2555
2555
  options.json
2556
2556
  );
2557
2557
  });
@@ -2595,7 +2595,7 @@ function registerPlayTriggerConfigCommands(plays) {
2595
2595
  if (options.auth === void 0) {
2596
2596
  if (secrets.length || options.header || options.signaturePrefix)
2597
2597
  usage(setWebhook, "--secret/--header need --auth.");
2598
- const current = await new (0, _chunkETUV6RRKjs.DeeplineClient)().getPlayTriggerConfig(
2598
+ const current = await new (0, _chunkGPM3AZXBjs.DeeplineClient)().getPlayTriggerConfig(
2599
2599
  options.play
2600
2600
  );
2601
2601
  return {
@@ -2672,7 +2672,7 @@ var KIND_DESCRIPTIONS = {
2672
2672
  "receipt.skipped": "Saved work result: skipped.",
2673
2673
  "runtime.event": "Other event."
2674
2674
  };
2675
- var RUN_LOGS_KIND_HELP = _chunkETUV6RRKjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2675
+ var RUN_LOGS_KIND_HELP = _chunkGPM3AZXBjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2676
2676
  kind,
2677
2677
  description: KIND_DESCRIPTIONS[kind]
2678
2678
  }));
@@ -2809,9 +2809,9 @@ function configureRunQueryCommandErrors(command, resource) {
2809
2809
  const args = program.args;
2810
2810
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2811
2811
  error.exitCode = 2;
2812
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2813
- _chunkQSH5CHRIjs.printJsonError.call(void 0,
2814
- Object.assign(new (0, _chunkETUV6RRKjs.RunEventQueryInputError)(error.message), {
2812
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2813
+ _chunkSQPNP3IQjs.printJsonError.call(void 0,
2814
+ Object.assign(new (0, _chunkGPM3AZXBjs.RunEventQueryInputError)(error.message), {
2815
2815
  exitCode: 2,
2816
2816
  retryable: false
2817
2817
  })
@@ -2855,14 +2855,14 @@ function parseQuery(args, resource) {
2855
2855
  if (VALUE_FLAGS.has(flag)) {
2856
2856
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2857
2857
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2858
- throw new (0, _chunkETUV6RRKjs.RunEventQueryInputError)(
2858
+ throw new (0, _chunkGPM3AZXBjs.RunEventQueryInputError)(
2859
2859
  `${flag} requires a value. Use ${flag} <value>.`
2860
2860
  );
2861
2861
  }
2862
2862
  if (flag === "--sum") sums.push(value);
2863
2863
  else {
2864
2864
  if (values[flag] !== void 0) {
2865
- throw new (0, _chunkETUV6RRKjs.RunEventQueryInputError)(
2865
+ throw new (0, _chunkGPM3AZXBjs.RunEventQueryInputError)(
2866
2866
  `${flag} may only be supplied once.`
2867
2867
  );
2868
2868
  }
@@ -2876,12 +2876,12 @@ function parseQuery(args, resource) {
2876
2876
  }
2877
2877
  if (arg.startsWith("-")) {
2878
2878
  const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
2879
- throw new (0, _chunkETUV6RRKjs.RunEventQueryInputError)(
2879
+ throw new (0, _chunkGPM3AZXBjs.RunEventQueryInputError)(
2880
2880
  `Unsupported query flag ${flag}. ${correction}`
2881
2881
  );
2882
2882
  }
2883
2883
  if (runId !== void 0) {
2884
- throw new (0, _chunkETUV6RRKjs.RunEventQueryInputError)(
2884
+ throw new (0, _chunkGPM3AZXBjs.RunEventQueryInputError)(
2885
2885
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2886
2886
  );
2887
2887
  }
@@ -2889,7 +2889,7 @@ function parseQuery(args, resource) {
2889
2889
  }
2890
2890
  if (switches.has("--fields")) {
2891
2891
  if (runId !== void 0) {
2892
- throw new (0, _chunkETUV6RRKjs.RunEventQueryInputError)(
2892
+ throw new (0, _chunkGPM3AZXBjs.RunEventQueryInputError)(
2893
2893
  "--fields does not use a run ID. Omit the positional run ID."
2894
2894
  );
2895
2895
  }
@@ -2902,18 +2902,18 @@ function parseQuery(args, resource) {
2902
2902
  )
2903
2903
  ];
2904
2904
  if (incompatible.length) {
2905
- throw new (0, _chunkETUV6RRKjs.RunEventQueryInputError)(
2905
+ throw new (0, _chunkGPM3AZXBjs.RunEventQueryInputError)(
2906
2906
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2907
2907
  );
2908
2908
  }
2909
2909
  }
2910
2910
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2911
- throw new (0, _chunkETUV6RRKjs.RunEventQueryInputError)(
2911
+ throw new (0, _chunkGPM3AZXBjs.RunEventQueryInputError)(
2912
2912
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2913
2913
  );
2914
2914
  }
2915
2915
  if (sums.length && switches.has("--count")) {
2916
- throw new (0, _chunkETUV6RRKjs.RunEventQueryInputError)(
2916
+ throw new (0, _chunkGPM3AZXBjs.RunEventQueryInputError)(
2917
2917
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2918
2918
  );
2919
2919
  }
@@ -2921,7 +2921,7 @@ function parseQuery(args, resource) {
2921
2921
  if (operation === "count") {
2922
2922
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2923
2923
  if (values[flag] !== void 0 || switches.has(flag)) {
2924
- throw new (0, _chunkETUV6RRKjs.RunEventQueryInputError)(
2924
+ throw new (0, _chunkGPM3AZXBjs.RunEventQueryInputError)(
2925
2925
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2926
2926
  );
2927
2927
  }
@@ -2956,16 +2956,16 @@ function parseQuery(args, resource) {
2956
2956
  ];
2957
2957
  }
2958
2958
  }
2959
- const request = _chunkETUV6RRKjs.normalizeRunEventOperationRequest.call(void 0, body);
2959
+ const request = _chunkGPM3AZXBjs.normalizeRunEventOperationRequest.call(void 0, body);
2960
2960
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2961
2961
  const backend = values["--runtime-backend"];
2962
2962
  if (backend && backend !== "daytona" && backend !== "modal") {
2963
- throw new (0, _chunkETUV6RRKjs.RunEventQueryInputError)(
2963
+ throw new (0, _chunkGPM3AZXBjs.RunEventQueryInputError)(
2964
2964
  "--runtime-backend must be daytona or modal."
2965
2965
  );
2966
2966
  }
2967
2967
  if (backend && !namespace) {
2968
- throw new (0, _chunkETUV6RRKjs.RunEventQueryInputError)(
2968
+ throw new (0, _chunkGPM3AZXBjs.RunEventQueryInputError)(
2969
2969
  "--runtime-backend requires --runtime-namespace."
2970
2970
  );
2971
2971
  }
@@ -3012,12 +3012,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3012
3012
  const failure = error instanceof Error ? error : new Error(String(error));
3013
3013
  const record3 = failure;
3014
3014
  const status = record3.statusCode;
3015
- const exitCode = error instanceof _chunkETUV6RRKjs.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;
3015
+ const exitCode = error instanceof _chunkGPM3AZXBjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3016
3016
  const diagnostic = Object.assign(failure, {
3017
3017
  exitCode,
3018
3018
  retryable: exitCode === 5
3019
3019
  });
3020
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) _chunkQSH5CHRIjs.printJsonError.call(void 0, diagnostic);
3020
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) _chunkSQPNP3IQjs.printJsonError.call(void 0, diagnostic);
3021
3021
  else console.error(`Error: ${diagnostic.message}`);
3022
3022
  return exitCode;
3023
3023
  }
@@ -3032,7 +3032,7 @@ async function executeRunEventQuery(args, resource) {
3032
3032
  ...criteria
3033
3033
  } = request;
3034
3034
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3035
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
3035
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
3036
3036
  let result;
3037
3037
  if (request.operation === "fields") {
3038
3038
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3098,13 +3098,13 @@ async function executeRunEventQuery(args, resource) {
3098
3098
  lines.push(`Next page: ${nextPage}`);
3099
3099
  }
3100
3100
  }
3101
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
3101
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
3102
3102
  {
3103
3103
  ...result,
3104
3104
  ...nextPage ? { next: { page: nextPage } } : {},
3105
3105
  render: { sections: [{ title: `run ${resource}`, lines }] }
3106
3106
  },
3107
- { json: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3107
+ { json: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3108
3108
  ` }
3109
3109
  );
3110
3110
  return 0;
@@ -3924,7 +3924,7 @@ function checkedRunExample(plays, target) {
3924
3924
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3925
3925
  const base = `deepline plays run --file ${quote(target)}`;
3926
3926
  return {
3927
- command: `${base}${_chunkETUV6RRKjs.playInputExampleArgs.call(void 0, schema)}`,
3927
+ command: `${base}${_chunkGPM3AZXBjs.playInputExampleArgs.call(void 0, schema)}`,
3928
3928
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema."
3929
3929
  };
3930
3930
  }
@@ -4022,7 +4022,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4022
4022
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4023
4023
  );
4024
4024
  }
4025
- const response = await new (0, _chunkETUV6RRKjs.DeeplineClient)().runs.getReceipts(runId, {
4025
+ const response = await new (0, _chunkGPM3AZXBjs.DeeplineClient)().runs.getReceipts(runId, {
4026
4026
  keys
4027
4027
  });
4028
4028
  const failed = response.receipts.filter(
@@ -4034,7 +4034,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4034
4034
  JSON.stringify(response, null, 2) + "\n",
4035
4035
  { flag: "wx", mode: 384 }
4036
4036
  );
4037
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
4037
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
4038
4038
  {
4039
4039
  runId,
4040
4040
  out: options.out,
@@ -4044,7 +4044,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4044
4044
  { json: true }
4045
4045
  );
4046
4046
  } else {
4047
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4047
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4048
4048
  }
4049
4049
  if (failed)
4050
4050
  process.exitCode = response.receipts.some(
@@ -4083,7 +4083,7 @@ includes nextCommand when another page is available.
4083
4083
  { exitCode: 2 }
4084
4084
  );
4085
4085
  }
4086
- const page = await new (0, _chunkETUV6RRKjs.DeeplineClient)().runs.children(parentRunId, {
4086
+ const page = await new (0, _chunkGPM3AZXBjs.DeeplineClient)().runs.children(parentRunId, {
4087
4087
  launchKey: options.launchKey,
4088
4088
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4089
4089
  limit
@@ -4098,7 +4098,7 @@ includes nextCommand when another page is available.
4098
4098
  "--limit",
4099
4099
  String(limit)
4100
4100
  ].join(" ") : null;
4101
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
4101
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
4102
4102
  {
4103
4103
  parentRunId,
4104
4104
  launchKey: options.launchKey,
@@ -4134,7 +4134,7 @@ async function handleRunsHistory(options) {
4134
4134
  throw new Error("--limit must be a positive integer.");
4135
4135
  }
4136
4136
  }
4137
- const page = await new (0, _chunkETUV6RRKjs.DeeplineClient)().runs.history({
4137
+ const page = await new (0, _chunkGPM3AZXBjs.DeeplineClient)().runs.history({
4138
4138
  cursor: options.cursor,
4139
4139
  orgId: options.org,
4140
4140
  search: options.search,
@@ -4150,7 +4150,7 @@ async function handleRunsHistory(options) {
4150
4150
  );
4151
4151
  }
4152
4152
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4153
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
4153
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
4154
4154
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4155
4155
  options.json ? { json: true } : {}
4156
4156
  );
@@ -4202,12 +4202,12 @@ async function runRunsRerunCommand(runId, options) {
4202
4202
  return 1;
4203
4203
  }
4204
4204
  }
4205
- const result = await new (0, _chunkETUV6RRKjs.DeeplineClient)().runs.rerun(runId, {
4205
+ const result = await new (0, _chunkGPM3AZXBjs.DeeplineClient)().runs.rerun(runId, {
4206
4206
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4207
4207
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4208
4208
  });
4209
- if (_chunkQSH5CHRIjs.shouldEmitJson.call(void 0, options.json)) {
4210
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, result, { json: true });
4209
+ if (_chunkSQPNP3IQjs.shouldEmitJson.call(void 0, options.json)) {
4210
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, result, { json: true });
4211
4211
  } else {
4212
4212
  console.log(
4213
4213
  result.deduplicated === true ? `
@@ -4475,7 +4475,7 @@ function projectRunDatasetCell(value) {
4475
4475
  const logicalValue = parseSerializedDatasetValue(value);
4476
4476
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
4477
4477
  if (typeof logicalValue === "object") {
4478
- return _chunkQSH5CHRIjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4478
+ return _chunkSQPNP3IQjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4479
4479
  }
4480
4480
  return logicalValue;
4481
4481
  }
@@ -6892,7 +6892,7 @@ function renderOutcome(outcome) {
6892
6892
  function printResult2(input) {
6893
6893
  const failed = input.status === "failed" || input.status === "cancelled";
6894
6894
  if (failed) process.exitCode = 1;
6895
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
6895
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
6896
6896
  {
6897
6897
  deployment: { ...input.deployment, status: input.status },
6898
6898
  plays: input.outcomes,
@@ -6917,7 +6917,7 @@ async function handlePlaysDeploy(directory, options) {
6917
6917
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6918
6918
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6919
6919
  });
6920
- const { http, config } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
6920
+ const { http, config } = _chunkSQPNP3IQjs.getAuthedHttpClient.call(void 0, );
6921
6921
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6922
6922
  const startDeployment = () => http.post("/api/v2/deployments", {
6923
6923
  deliveryId,
@@ -6944,7 +6944,7 @@ async function handlePlaysDeploy(directory, options) {
6944
6944
  },
6945
6945
  {
6946
6946
  bundle: bundleDeployPlayFile,
6947
- fetchImpl: _chunkN6KIEYZVjs.fetchWithDeploymentProtection,
6947
+ fetchImpl: _chunkY72FFPX5js.fetchWithDeploymentProtection,
6948
6948
  // The plays are already here: "opening" the source is naming it.
6949
6949
  openSource: async () => ({
6950
6950
  open: async () => ({ repoRoot: root })
@@ -7512,7 +7512,7 @@ function parseInputFlagValue(raw) {
7512
7512
  return raw;
7513
7513
  }
7514
7514
  function parsePlayRunOptions(args, initialInput = null) {
7515
- const selection = _chunkQSH5CHRIjs.parseJsonFields.call(void 0, args, "run");
7515
+ const selection = _chunkSQPNP3IQjs.parseJsonFields.call(void 0, args, "run");
7516
7516
  args = selection.args;
7517
7517
  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.";
7518
7518
  let filePath = null;
@@ -7522,7 +7522,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7522
7522
  let revisionSelector = null;
7523
7523
  const watch = !args.includes("--no-wait");
7524
7524
  const dryRun = args.includes("--dry-run");
7525
- let jsonOutput = dryRun ? _chunkQSH5CHRIjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkQSH5CHRIjs.argsWantJson.call(void 0, args);
7525
+ let jsonOutput = dryRun ? _chunkSQPNP3IQjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkSQPNP3IQjs.argsWantJson.call(void 0, args);
7526
7526
  const fullJson = args.includes("--full");
7527
7527
  const force = args.includes("--force");
7528
7528
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -7569,7 +7569,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7569
7569
  "--log-level requires one of: debug, info, warn, error."
7570
7570
  );
7571
7571
  }
7572
- const parsed = _chunkETUV6RRKjs.parseLogLevel.call(void 0, value);
7572
+ const parsed = _chunkGPM3AZXBjs.parseLogLevel.call(void 0, value);
7573
7573
  if (!parsed) {
7574
7574
  throw new Error(
7575
7575
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -7876,7 +7876,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7876
7876
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
7877
7877
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
7878
7878
  );
7879
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkETUV6RRKjs.parseLogLevel.call(void 0, options.logLevel);
7879
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkGPM3AZXBjs.parseLogLevel.call(void 0, options.logLevel);
7880
7880
  if (!logLevel)
7881
7881
  throw new Error("--log-level requires one of: debug, info, warn, error.");
7882
7882
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -7890,13 +7890,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7890
7890
  if (debugAlias || debugMapLatency && logLevel === "info")
7891
7891
  logLevel = "debug";
7892
7892
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
7893
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkQSH5CHRIjs.parseJsonFields.call(void 0,
7894
- [...fullJson ? ["--full"] : [], ..._chunkQSH5CHRIjs.jsonFieldArgs.call(void 0, options.json)],
7893
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkSQPNP3IQjs.parseJsonFields.call(void 0,
7894
+ [...fullJson ? ["--full"] : [], ..._chunkSQPNP3IQjs.jsonFieldArgs.call(void 0, options.json)],
7895
7895
  "run"
7896
7896
  ).fields;
7897
7897
  const watch = options.wait === false ? false : base.watch;
7898
7898
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
7899
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkQSH5CHRIjs.argsWantJson.call(void 0, []) : explicitJson;
7899
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkSQPNP3IQjs.argsWantJson.call(void 0, []) : explicitJson;
7900
7900
  const verboseLogs = Boolean(
7901
7901
  debugAlias || logLevel === "debug" || debugMapLatency
7902
7902
  );
@@ -7940,7 +7940,7 @@ function playAuthoringGraphPath(parent, filePath) {
7940
7940
  // src/cli/renderers/local-play-execution.ts
7941
7941
  function renderLocalPlayExecutionPlan(plan, options = {}) {
7942
7942
  if (options.dryRun) {
7943
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7943
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7944
7944
  return;
7945
7945
  }
7946
7946
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -8904,7 +8904,7 @@ function playStatusErrorText(status) {
8904
8904
  function isRetryablePendingStartFailure(status) {
8905
8905
  if (status.status !== "failed") return false;
8906
8906
  if (status.runId && status.runId !== "pending") return false;
8907
- return _chunkETUV6RRKjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8907
+ return _chunkGPM3AZXBjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8908
8908
  }
8909
8909
  function pendingStartFailureStatus(input) {
8910
8910
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -8931,13 +8931,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
8931
8931
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
8932
8932
  function watchSurfaceReaches(state, provenance, level) {
8933
8933
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
8934
- if (!_chunkETUV6RRKjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8934
+ if (!_chunkGPM3AZXBjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8935
8935
  return false;
8936
8936
  }
8937
- if (_chunkETUV6RRKjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8937
+ if (_chunkGPM3AZXBjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8938
8938
  return true;
8939
8939
  }
8940
- return state.verbose === true && _chunkETUV6RRKjs.logProvenanceReaches.call(void 0, provenance, "debug");
8940
+ return state.verbose === true && _chunkGPM3AZXBjs.logProvenanceReaches.call(void 0, provenance, "debug");
8941
8941
  }
8942
8942
  function getEventPayload(event) {
8943
8943
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -9439,7 +9439,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
9439
9439
  }
9440
9440
  function openPlayDashboard(dashboardUrl, open2) {
9441
9441
  if (open2 && dashboardUrl) {
9442
- _chunkQSH5CHRIjs.openInBrowser.call(void 0, dashboardUrl);
9442
+ _chunkSQPNP3IQjs.openInBrowser.call(void 0, dashboardUrl);
9443
9443
  }
9444
9444
  }
9445
9445
  function printPlayLogLines(input) {
@@ -9501,7 +9501,7 @@ async function waitForPlayCompletionByWatch(input) {
9501
9501
  billing: false
9502
9502
  });
9503
9503
  } catch (error) {
9504
- if (_chunkETUV6RRKjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9504
+ if (_chunkGPM3AZXBjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9505
9505
  return null;
9506
9506
  }
9507
9507
  throw error;
@@ -9690,7 +9690,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9690
9690
  billing: false
9691
9691
  });
9692
9692
  } catch (error) {
9693
- if (_chunkETUV6RRKjs.isTransientPlayRunReadError.call(void 0, error)) {
9693
+ if (_chunkGPM3AZXBjs.isTransientPlayRunReadError.call(void 0, error)) {
9694
9694
  return null;
9695
9695
  }
9696
9696
  throw error;
@@ -9898,7 +9898,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9898
9898
  lastPhase
9899
9899
  });
9900
9900
  }
9901
- if (lastKnownWorkflowId && _chunkETUV6RRKjs.isTransientPlayRunReadError.call(void 0, error)) {
9901
+ if (lastKnownWorkflowId && _chunkGPM3AZXBjs.isTransientPlayRunReadError.call(void 0, error)) {
9902
9902
  if (timeout) {
9903
9903
  clearTimeout(timeout);
9904
9904
  }
@@ -9934,7 +9934,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9934
9934
  onRunAdmitted: confirmAdmission
9935
9935
  });
9936
9936
  }
9937
- if (!lastKnownWorkflowId && _chunkETUV6RRKjs.isTransientPlayRunReadError.call(void 0, error)) {
9937
+ if (!lastKnownWorkflowId && _chunkGPM3AZXBjs.isTransientPlayRunReadError.call(void 0, error)) {
9938
9938
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
9939
9939
  phase: "cli.play_start_stream_transient_failure",
9940
9940
  ms: Date.now() - startedAt,
@@ -10033,7 +10033,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10033
10033
  "logs"
10034
10034
  ]);
10035
10035
  function formatPlayLogLine(rawLine, state) {
10036
- const classified = _chunkETUV6RRKjs.classifyLogLine.call(void 0, rawLine);
10036
+ const classified = _chunkGPM3AZXBjs.classifyLogLine.call(void 0, rawLine);
10037
10037
  const line = classified.line;
10038
10038
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10039
10039
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _308 => _308[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10048,14 +10048,14 @@ function formatPlayLogLine(rawLine, state) {
10048
10048
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10049
10049
  const providerWait = formatProviderCapacityWaitLogLine(line);
10050
10050
  if (providerWait && !state.verbose) {
10051
- return _chunkETUV6RRKjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10051
+ return _chunkGPM3AZXBjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10052
10052
  }
10053
10053
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10054
10054
  if (mapProgress && !state.verbose) {
10055
- return _chunkETUV6RRKjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10055
+ return _chunkGPM3AZXBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10056
10056
  }
10057
10057
  if (/\[worker\] picked up run\b/.test(message)) {
10058
- if (!_chunkETUV6RRKjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10058
+ if (!_chunkGPM3AZXBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10059
10059
  return null;
10060
10060
  }
10061
10061
  if (state.emittedRunnerStarted) {
@@ -10068,7 +10068,7 @@ function formatPlayLogLine(rawLine, state) {
10068
10068
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10069
10069
  );
10070
10070
  if (mapStart) {
10071
- if (!_chunkETUV6RRKjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10071
+ if (!_chunkGPM3AZXBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10072
10072
  return null;
10073
10073
  }
10074
10074
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10078,7 +10078,7 @@ function formatPlayLogLine(rawLine, state) {
10078
10078
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10079
10079
  );
10080
10080
  if (mapDone) {
10081
- if (!_chunkETUV6RRKjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10081
+ if (!_chunkGPM3AZXBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10082
10082
  return null;
10083
10083
  }
10084
10084
  const [, results, executed, cached] = mapDone;
@@ -11365,7 +11365,7 @@ function formatRecentRunLogLines(value) {
11365
11365
  (line) => typeof line === "string"
11366
11366
  );
11367
11367
  if (tail.length === 0) return [];
11368
- const shown = tail.map((line) => _chunkETUV6RRKjs.classifyLogLine.call(void 0, line)).filter(
11368
+ const shown = tail.map((line) => _chunkGPM3AZXBjs.classifyLogLine.call(void 0, line)).filter(
11369
11369
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
11370
11370
  ).slice(-8);
11371
11371
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11641,11 +11641,11 @@ function buildPlayCompletionTextLines(status) {
11641
11641
  }
11642
11642
  function writePlayResult(status, jsonOutput, options) {
11643
11643
  const packaged = getPlayRunPackage(status);
11644
- if (status.package) _chunkA6ZTYKYFjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11644
+ if (status.package) _chunkZMVJSS6Njs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11645
11645
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _389 => _389.hits]), () => ( null));
11646
11646
  if (jsonOutput) {
11647
11647
  const payload2 = _optionalChain([options, 'optionalAccess', _390 => _390.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11648
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
11648
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
11649
11649
  hits ? { ...payload2, hits } : payload2,
11650
11650
  { json: true, fields: _optionalChain([options, 'optionalAccess', _391 => _391.jsonFields]) }
11651
11651
  );
@@ -11661,7 +11661,7 @@ function writePlayResult(status, jsonOutput, options) {
11661
11661
  ...buildPlayCompletionTextLines(status),
11662
11662
  ...formatRunHitsLines(hits)
11663
11663
  ];
11664
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, displayPackage, {
11664
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, displayPackage, {
11665
11665
  json: false,
11666
11666
  text: `${lines2.join("\n")}
11667
11667
  `
@@ -11712,7 +11712,7 @@ function writePlayResult(status, jsonOutput, options) {
11712
11712
  lines.push(...buildBillingRollupTextLines(status));
11713
11713
  const compact = compactPlayStatus(status);
11714
11714
  const payload = _optionalChain([options, 'optionalAccess', _393 => _393.fullJson]) ? status : compact;
11715
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
11715
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
11716
11716
  {
11717
11717
  ...payload,
11718
11718
  render: {
@@ -12469,7 +12469,7 @@ function renderServerResultView(value) {
12469
12469
  function writeStartedPlayRun(input) {
12470
12470
  if (input.package && isPlayRunPackageValue(input.package)) {
12471
12471
  const run = input.package.run;
12472
- _chunkA6ZTYKYFjs.recordPlayTermination.call(void 0, {
12472
+ _chunkZMVJSS6Njs.recordPlayTermination.call(void 0, {
12473
12473
  id: run.id,
12474
12474
  status: run.status,
12475
12475
  finishedAt: run.finishedAt
@@ -12482,7 +12482,7 @@ function writeStartedPlayRun(input) {
12482
12482
  dashboardUrl: input.dashboardUrl,
12483
12483
  package: input.package
12484
12484
  };
12485
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12485
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12486
12486
  json: true,
12487
12487
  fields: input.jsonFields
12488
12488
  });
@@ -12504,7 +12504,7 @@ function writeStartedPlayRun(input) {
12504
12504
  input.progress.writeLine(output2, process.stdout);
12505
12505
  return;
12506
12506
  }
12507
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, input.package, {
12507
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, input.package, {
12508
12508
  json: false,
12509
12509
  text: `${output2}
12510
12510
  `
@@ -12533,7 +12533,7 @@ function writeStartedPlayRun(input) {
12533
12533
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12534
12534
  ];
12535
12535
  if (input.jsonOutput) {
12536
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12536
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12537
12537
  return;
12538
12538
  }
12539
12539
  if (input.dashboardUrl) {
@@ -12544,7 +12544,7 @@ function writeStartedPlayRun(input) {
12544
12544
  input.progress.writeLine(output, process.stdout);
12545
12545
  return;
12546
12546
  }
12547
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
12547
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
12548
12548
  {
12549
12549
  ...payload,
12550
12550
  render: { sections: [{ title: "play run", lines }] }
@@ -12554,7 +12554,7 @@ function writeStartedPlayRun(input) {
12554
12554
  );
12555
12555
  }
12556
12556
  function parsePlayCheckOptions(args) {
12557
- const selection = _chunkQSH5CHRIjs.parseJsonFields.call(void 0, args, "check");
12557
+ const selection = _chunkSQPNP3IQjs.parseJsonFields.call(void 0, args, "check");
12558
12558
  args = selection.args;
12559
12559
  const target = args[0];
12560
12560
  if (!target || target.startsWith("-")) {
@@ -12566,7 +12566,7 @@ function parsePlayCheckOptions(args) {
12566
12566
  if (arg !== "--json" && arg !== "--full")
12567
12567
  throw new Error(`Unknown plays check option: ${arg}`);
12568
12568
  }
12569
- const jsonOutput = _chunkQSH5CHRIjs.argsWantJson.call(void 0, args);
12569
+ const jsonOutput = _chunkSQPNP3IQjs.argsWantJson.call(void 0, args);
12570
12570
  return {
12571
12571
  target,
12572
12572
  jsonOutput,
@@ -12642,7 +12642,7 @@ ${PLAY_PUBLISH_USAGE}`
12642
12642
  useLatest,
12643
12643
  expectedArtifactHash,
12644
12644
  dryRun,
12645
- jsonOutput: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args)
12645
+ jsonOutput: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args)
12646
12646
  };
12647
12647
  }
12648
12648
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12683,7 +12683,7 @@ ${PLAY_SAVE_USAGE}`);
12683
12683
  target,
12684
12684
  expectedArtifactHash,
12685
12685
  dryRun,
12686
- jsonOutput: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args)
12686
+ jsonOutput: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args)
12687
12687
  };
12688
12688
  }
12689
12689
  function printScheduledPlayCapacity(capacity) {
@@ -12894,7 +12894,7 @@ function printBundledRuntimeWarning(bundle) {
12894
12894
  async function handlePlayCheck(args) {
12895
12895
  const options = parsePlayCheckOptions(args);
12896
12896
  if (!isFileTarget2(options.target)) {
12897
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
12897
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
12898
12898
  try {
12899
12899
  await assertCanonicalNamedPlayReference(client, options.target, {
12900
12900
  command: "check"
@@ -12923,7 +12923,7 @@ async function handlePlayCheck(args) {
12923
12923
  },
12924
12924
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12925
12925
  };
12926
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, result, {
12926
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, result, {
12927
12927
  json: options.jsonOutput,
12928
12928
  fields: options.jsonFields,
12929
12929
  text: renderPlayCheckOutput(result) + "\n"
@@ -12933,7 +12933,7 @@ async function handlePlayCheck(args) {
12933
12933
  const resolved = _path.resolve.call(void 0, options.target);
12934
12934
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12935
12935
  if (options.jsonOutput) {
12936
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
12936
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
12937
12937
  {
12938
12938
  kind: "play_check",
12939
12939
  checked: "named_contract",
@@ -12975,7 +12975,7 @@ async function handlePlayCheck(args) {
12975
12975
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
12976
12976
  publishCommand: _optionalChain([primary, 'optionalAccess', _440 => _440.result, 'access', _441 => _441.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
12977
12977
  });
12978
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, output, {
12978
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, output, {
12979
12979
  json: options.jsonOutput,
12980
12980
  fields: options.jsonFields,
12981
12981
  text: renderPlayCheckOutput(output) + "\n"
@@ -13029,7 +13029,7 @@ async function checkOneExportedPlay(input) {
13029
13029
  }
13030
13030
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
13031
13031
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
13032
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
13032
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
13033
13033
  const integrationMode = resolveEvalIntegrationMode();
13034
13034
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
13035
13035
  playName: node.playName,
@@ -13106,7 +13106,7 @@ async function handleFileBackedRun(options, hooks) {
13106
13106
  );
13107
13107
  return 0;
13108
13108
  }
13109
- client = new (0, _chunkETUV6RRKjs.DeeplineClient)(playRunClientOptions(options));
13109
+ client = new (0, _chunkGPM3AZXBjs.DeeplineClient)(playRunClientOptions(options));
13110
13110
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
13111
13111
  if (canDeferCompilerManifest) {
13112
13112
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
@@ -13301,7 +13301,7 @@ async function handleNamedRun(options, hooks) {
13301
13301
  if (options.target.kind !== "name") {
13302
13302
  throw new Error("Expected a named play run target.");
13303
13303
  }
13304
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)(playRunClientOptions(options));
13304
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)(playRunClientOptions(options));
13305
13305
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
13306
13306
  const playName = options.target.name;
13307
13307
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -13698,10 +13698,10 @@ function renderRunOverviewText(overview, extras = {}) {
13698
13698
  );
13699
13699
  return `${lines.join("\n")}
13700
13700
 
13701
- ${_chunkQSH5CHRIjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13701
+ ${_chunkSQPNP3IQjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13702
13702
  }
13703
13703
  async function handleRunGet(args) {
13704
- const selection = _chunkQSH5CHRIjs.parseJsonFields.call(void 0,
13704
+ const selection = _chunkSQPNP3IQjs.parseJsonFields.call(void 0,
13705
13705
  args,
13706
13706
  args.includes("--config") ? "config" : "get"
13707
13707
  );
@@ -13714,7 +13714,7 @@ async function handleRunGet(args) {
13714
13714
  console.error(error instanceof Error ? error.message : usage2);
13715
13715
  return 1;
13716
13716
  }
13717
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
13717
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
13718
13718
  if (args.includes("--config")) {
13719
13719
  if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
13720
13720
  console.error(
@@ -13728,7 +13728,7 @@ async function handleRunGet(args) {
13728
13728
  "This server does not support recorded configuration reads."
13729
13729
  );
13730
13730
  }
13731
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
13731
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
13732
13732
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13733
13733
  { json: true, fields: selection.fields }
13734
13734
  );
@@ -13736,7 +13736,7 @@ async function handleRunGet(args) {
13736
13736
  }
13737
13737
  if (args.includes("--input")) {
13738
13738
  const input = await client.getRunInput(runId);
13739
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, input, { json: true });
13739
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, input, { json: true });
13740
13740
  return 0;
13741
13741
  }
13742
13742
  const full = args.includes("--full");
@@ -13744,14 +13744,14 @@ async function handleRunGet(args) {
13744
13744
  full: false,
13745
13745
  failedLogs: args.includes("--log-failed")
13746
13746
  });
13747
- if (status.package) _chunkA6ZTYKYFjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13747
+ if (status.package) _chunkZMVJSS6Njs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13748
13748
  if (!status.package) {
13749
13749
  const legacyStatus = full ? await client.runs.get(runId, {
13750
13750
  full: true,
13751
13751
  failedLogs: args.includes("--log-failed")
13752
13752
  }) : status;
13753
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
13754
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
13753
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
13754
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
13755
13755
  full ? legacyStatus : compactPlayStatus(legacyStatus),
13756
13756
  { json: true, fields: selection.fields }
13757
13757
  );
@@ -13767,8 +13767,8 @@ async function handleRunGet(args) {
13767
13767
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
13768
13768
  ]);
13769
13769
  const hitLines = formatRunHitsLines(hits);
13770
- const json = _chunkQSH5CHRIjs.argsWantJson.call(void 0, args);
13771
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
13770
+ const json = _chunkSQPNP3IQjs.argsWantJson.call(void 0, args);
13771
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
13772
13772
  {
13773
13773
  ...overview,
13774
13774
  credits,
@@ -13871,9 +13871,9 @@ async function handleRunLifecycleStatus(args) {
13871
13871
  console.error(error instanceof Error ? error.message : usage2);
13872
13872
  return 1;
13873
13873
  }
13874
- const status = await new (0, _chunkETUV6RRKjs.DeeplineClient)().runs.status(runId);
13875
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
13876
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, status, { json: true });
13874
+ const status = await new (0, _chunkGPM3AZXBjs.DeeplineClient)().runs.status(runId);
13875
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
13876
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, status, { json: true });
13877
13877
  return 0;
13878
13878
  }
13879
13879
  if (!status.available) {
@@ -13913,7 +13913,7 @@ async function handleRunsRerun(args) {
13913
13913
  console.error(error instanceof Error ? error.message : usage2);
13914
13914
  return 1;
13915
13915
  }
13916
- const options = { json: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args) };
13916
+ const options = { json: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args) };
13917
13917
  for (let index = 0; index < args.length; index += 1) {
13918
13918
  if (args[index] === "--idempotency-key") {
13919
13919
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -13978,8 +13978,8 @@ ${usage2}
13978
13978
  Discover Plays: ${next.discover}
13979
13979
  Active runs: ${next.running}`
13980
13980
  );
13981
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
13982
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
13981
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
13982
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
13983
13983
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
13984
13984
  { json: true }
13985
13985
  );
@@ -13994,7 +13994,7 @@ Active runs: ${next.running}`
13994
13994
  console.error("--offset requires --play.");
13995
13995
  return 1;
13996
13996
  }
13997
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
13997
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
13998
13998
  const page = await client.runs.listPage({
13999
13999
  ...playName ? { play: playName } : {},
14000
14000
  ...statusFilter ? { status: statusFilter } : {},
@@ -14063,7 +14063,7 @@ Active runs: ${next.running}`
14063
14063
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14064
14064
  );
14065
14065
  }
14066
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
14066
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
14067
14067
  {
14068
14068
  runs,
14069
14069
  count: runs.length,
@@ -14077,7 +14077,7 @@ Active runs: ${next.running}`
14077
14077
  },
14078
14078
  render: { sections: [{ title: "runs", lines }] }
14079
14079
  },
14080
- { json: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args) }
14080
+ { json: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args) }
14081
14081
  );
14082
14082
  return 0;
14083
14083
  }
@@ -14107,7 +14107,7 @@ async function handleRunTail(args) {
14107
14107
  console.error("--log-level requires one of: debug, info, warn, error.");
14108
14108
  return 1;
14109
14109
  }
14110
- const parsed = _chunkETUV6RRKjs.parseLogLevel.call(void 0, value);
14110
+ const parsed = _chunkGPM3AZXBjs.parseLogLevel.call(void 0, value);
14111
14111
  if (!parsed) {
14112
14112
  console.error(
14113
14113
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14145,9 +14145,9 @@ async function handleRunTail(args) {
14145
14145
  );
14146
14146
  return 1;
14147
14147
  }
14148
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
14148
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
14149
14149
  const jsonLines = args.includes("--jsonl");
14150
- const jsonOutput = !jsonLines && _chunkQSH5CHRIjs.argsWantJson.call(void 0, args);
14150
+ const jsonOutput = !jsonLines && _chunkSQPNP3IQjs.argsWantJson.call(void 0, args);
14151
14151
  const compact = args.includes("--compact");
14152
14152
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14153
14153
  const compactState = {
@@ -14228,7 +14228,7 @@ async function handleRunLogs(args) {
14228
14228
  ]);
14229
14229
  const cursorIndex = args.indexOf("--cursor");
14230
14230
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14231
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkETUV6RRKjs.isRunLogsCursor.call(void 0, cursorValue));
14231
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkGPM3AZXBjs.isRunLogsCursor.call(void 0, cursorValue));
14232
14232
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14233
14233
  return handleRunEventSearch(args);
14234
14234
  }
@@ -14262,7 +14262,7 @@ async function handleRunLogs(args) {
14262
14262
  console.error("--log-level requires one of: debug, info, warn, error.");
14263
14263
  return 1;
14264
14264
  }
14265
- const parsed = _chunkETUV6RRKjs.parseLogLevel.call(void 0, value);
14265
+ const parsed = _chunkGPM3AZXBjs.parseLogLevel.call(void 0, value);
14266
14266
  if (!parsed) {
14267
14267
  console.error(
14268
14268
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14309,12 +14309,12 @@ async function handleRunLogs(args) {
14309
14309
  );
14310
14310
  return 1;
14311
14311
  }
14312
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
14312
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
14313
14313
  if (outPath) {
14314
14314
  const result2 = await client.runs.logs(runId, { all: true });
14315
- const logs = result2.entries.filter((line) => _chunkETUV6RRKjs.logLevelReaches.call(void 0, _chunkETUV6RRKjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkETUV6RRKjs.classifyLogLine.call(void 0, line).line);
14315
+ const logs = result2.entries.filter((line) => _chunkGPM3AZXBjs.logLevelReaches.call(void 0, _chunkGPM3AZXBjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkGPM3AZXBjs.classifyLogLine.call(void 0, line).line);
14316
14316
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14317
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
14317
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
14318
14318
  {
14319
14319
  runId: result2.runId,
14320
14320
  log_path: outPath,
@@ -14337,7 +14337,7 @@ async function handleRunLogs(args) {
14337
14337
  ]
14338
14338
  }
14339
14339
  },
14340
- { json: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args) }
14340
+ { json: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args) }
14341
14341
  );
14342
14342
  return 0;
14343
14343
  }
@@ -14368,7 +14368,7 @@ async function handleRunLogs(args) {
14368
14368
  }
14369
14369
  };
14370
14370
  const text = buildRunLogsText(filteredResult);
14371
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
14371
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
14372
14372
  {
14373
14373
  runId: result.runId,
14374
14374
  totalCount: result.totalCount,
@@ -14392,7 +14392,7 @@ async function handleRunLogs(args) {
14392
14392
  render: { sections: [{ title: "run logs", lines: entries }] }
14393
14393
  },
14394
14394
  {
14395
- json: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args),
14395
+ json: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args),
14396
14396
  text
14397
14397
  }
14398
14398
  );
@@ -14416,7 +14416,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14416
14416
  );
14417
14417
  }
14418
14418
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14419
- (entry) => _chunkETUV6RRKjs.logLevelReaches.call(void 0, _chunkETUV6RRKjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14419
+ (entry) => _chunkGPM3AZXBjs.logLevelReaches.call(void 0, _chunkGPM3AZXBjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14420
14420
  );
14421
14421
  const selected = matching.slice(-limit);
14422
14422
  const olderMatchesExist = matching.length > selected.length;
@@ -14426,7 +14426,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14426
14426
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _483 => _483.at, 'call', _484 => _484(-1), 'optionalAccess', _485 => _485.seq]), () => ( null)),
14427
14427
  truncated: result.truncated || olderMatchesExist,
14428
14428
  hasMore: olderMatchesExist,
14429
- nextCursor: olderMatchesExist ? _chunkETUV6RRKjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14429
+ nextCursor: olderMatchesExist ? _chunkGPM3AZXBjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14430
14430
  };
14431
14431
  }
14432
14432
  async function handleRunEventSearch(args) {
@@ -14493,7 +14493,7 @@ ${usage2}`);
14493
14493
  namespace,
14494
14494
  ...backend ? { backend } : {}
14495
14495
  } : void 0;
14496
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
14496
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
14497
14497
  const result = await client.runs.searchEvents({
14498
14498
  ...runId ? { runId } : {},
14499
14499
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14565,7 +14565,7 @@ ${renderedDetails}` : ""}`;
14565
14565
  "--limit",
14566
14566
  String(limit)
14567
14567
  ].join(" ") : null;
14568
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
14568
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
14569
14569
  {
14570
14570
  events,
14571
14571
  nextCursor: result.nextCursor,
@@ -14576,14 +14576,14 @@ ${renderedDetails}` : ""}`;
14576
14576
  render: { sections: [{ title: "runtime events", lines }] }
14577
14577
  },
14578
14578
  {
14579
- json: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args),
14579
+ json: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args),
14580
14580
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14581
14581
  }
14582
14582
  );
14583
14583
  return 0;
14584
14584
  }
14585
14585
  function buildRunLogsText(result) {
14586
- const lines = result.entries.map((line) => _chunkETUV6RRKjs.classifyLogLine.call(void 0, line).line);
14586
+ const lines = result.entries.map((line) => _chunkGPM3AZXBjs.classifyLogLine.call(void 0, line).line);
14587
14587
  if (result.warning) {
14588
14588
  if (lines.length > 0) lines.push("");
14589
14589
  lines.push(`warning: ${result.warning}`);
@@ -14617,7 +14617,7 @@ async function handleRunStop(args) {
14617
14617
  reason = args[++index];
14618
14618
  }
14619
14619
  }
14620
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
14620
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
14621
14621
  const result = await client.runs.stop(runId, { reason });
14622
14622
  const state = resolveRunStopState(result);
14623
14623
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14632,7 +14632,7 @@ async function handleRunStop(args) {
14632
14632
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14633
14633
  `inspect: deepline runs get ${runId} --full`
14634
14634
  ];
14635
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
14635
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
14636
14636
  {
14637
14637
  ...cancelling,
14638
14638
  state,
@@ -14647,7 +14647,7 @@ async function handleRunStop(args) {
14647
14647
  ]
14648
14648
  }
14649
14649
  },
14650
- { json: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args) }
14650
+ { json: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args) }
14651
14651
  );
14652
14652
  return 0;
14653
14653
  }
@@ -14664,7 +14664,7 @@ async function handleRunStop(args) {
14664
14664
  ];
14665
14665
  process.stderr.write(`${lines2.join("\n")}
14666
14666
  `);
14667
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
14667
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
14668
14668
  {
14669
14669
  ...result,
14670
14670
  render: {
@@ -14679,7 +14679,7 @@ async function handleRunStop(args) {
14679
14679
  ]
14680
14680
  }
14681
14681
  },
14682
- { json: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args) }
14682
+ { json: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args) }
14683
14683
  );
14684
14684
  return 1;
14685
14685
  }
@@ -14690,12 +14690,12 @@ async function handleRunStop(args) {
14690
14690
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14691
14691
  ] : []
14692
14692
  ];
14693
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
14693
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
14694
14694
  {
14695
14695
  ...result,
14696
14696
  render: { sections: [{ title: "run stop", lines }] }
14697
14697
  },
14698
- { json: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args) }
14698
+ { json: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args) }
14699
14699
  );
14700
14700
  return 0;
14701
14701
  }
@@ -14745,18 +14745,18 @@ async function handleRunStopAll(args) {
14745
14745
  reason = args[++index];
14746
14746
  }
14747
14747
  }
14748
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
14748
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
14749
14749
  if (dryRun) {
14750
14750
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14751
14751
  const lines2 = buildStopAllDryRunTextLines(result2);
14752
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
14752
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
14753
14753
  {
14754
14754
  ...result2,
14755
14755
  render: {
14756
14756
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14757
14757
  }
14758
14758
  },
14759
- { json: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14759
+ { json: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14760
14760
  ` }
14761
14761
  );
14762
14762
  return 0;
@@ -14769,17 +14769,17 @@ async function handleRunStopAll(args) {
14769
14769
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14770
14770
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14771
14771
  ];
14772
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
14772
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
14773
14773
  {
14774
14774
  ...result,
14775
14775
  render: { sections: [{ title: "workspace stop-all", lines }] }
14776
14776
  },
14777
- { json: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args) }
14777
+ { json: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args) }
14778
14778
  );
14779
14779
  return result.failed > 0 || result.partial ? 1 : 0;
14780
14780
  }
14781
14781
  async function handleRunExport(args) {
14782
- const selection = _chunkQSH5CHRIjs.parseJsonFields.call(void 0, args, "export");
14782
+ const selection = _chunkSQPNP3IQjs.parseJsonFields.call(void 0, args, "export");
14783
14783
  args = selection.args;
14784
14784
  const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
14785
14785
  let runId;
@@ -14838,16 +14838,16 @@ async function handleRunExport(args) {
14838
14838
  "INVALID_ARGUMENT"
14839
14839
  );
14840
14840
  }
14841
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
14841
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
14842
14842
  let status = await client.getPlayStatus(runId, { full: true });
14843
14843
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14844
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkQSH5CHRIjs.argsWantJson.call(void 0, args));
14844
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkSQPNP3IQjs.argsWantJson.call(void 0, args));
14845
14845
  try {
14846
14846
  await waitForPlayCompletionByWatch({
14847
14847
  client,
14848
14848
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14849
14849
  workflowId: runId,
14850
- jsonOutput: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args),
14850
+ jsonOutput: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args),
14851
14851
  emitLogs: false,
14852
14852
  waitTimeoutMs,
14853
14853
  startedAt: Date.now(),
@@ -14947,8 +14947,8 @@ async function handleRunExport(args) {
14947
14947
  "utf-8"
14948
14948
  );
14949
14949
  }
14950
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, payload, {
14951
- json: _chunkQSH5CHRIjs.argsWantJson.call(void 0, args),
14950
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0, payload, {
14951
+ json: _chunkSQPNP3IQjs.argsWantJson.call(void 0, args),
14952
14952
  fields: selection.fields,
14953
14953
  text: `${lines.join("\n")}
14954
14954
  `
@@ -14969,10 +14969,10 @@ async function handlePlayGet(args) {
14969
14969
  );
14970
14970
  return 2;
14971
14971
  }
14972
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
14972
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
14973
14973
  const explicitJson = args.includes("--json");
14974
14974
  const sourceOutput = args.includes("--source");
14975
- const jsonOutput = sourceOutput ? explicitJson : _chunkQSH5CHRIjs.argsWantJson.call(void 0, args);
14975
+ const jsonOutput = sourceOutput ? explicitJson : _chunkSQPNP3IQjs.argsWantJson.call(void 0, args);
14976
14976
  const requestedRevisionFlags = [
14977
14977
  args.includes("--working"),
14978
14978
  args.includes("--live"),
@@ -15032,7 +15032,7 @@ async function handlePlayGet(args) {
15032
15032
  }
15033
15033
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15034
15034
  if (jsonOutput) {
15035
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, {
15035
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, {
15036
15036
  ...detail,
15037
15037
  ...materializedFile ? {
15038
15038
  message: loadedMessage,
@@ -15124,8 +15124,8 @@ async function handlePlayVersions(args) {
15124
15124
  console.error("Usage: deepline plays versions --name <name> [--json]");
15125
15125
  return 1;
15126
15126
  }
15127
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
15128
- const jsonOutput = _chunkQSH5CHRIjs.argsWantJson.call(void 0, args);
15127
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
15128
+ const jsonOutput = _chunkSQPNP3IQjs.argsWantJson.call(void 0, args);
15129
15129
  await assertCanonicalNamedPlayReference(client, playName, {
15130
15130
  command: "versions"
15131
15131
  });
@@ -15133,7 +15133,7 @@ async function handlePlayVersions(args) {
15133
15133
  parseReferencedPlayTarget2(playName).playName
15134
15134
  );
15135
15135
  if (jsonOutput) {
15136
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, { versions });
15136
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, { versions });
15137
15137
  return 0;
15138
15138
  }
15139
15139
  if (versions.length === 0) {
@@ -15165,9 +15165,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
15165
15165
  "signals"
15166
15166
  ];
15167
15167
  async function handlePlayList(args) {
15168
- const jsonOutput = _chunkQSH5CHRIjs.argsWantJson.call(void 0, args);
15168
+ const jsonOutput = _chunkSQPNP3IQjs.argsWantJson.call(void 0, args);
15169
15169
  const showCost = args.includes("--show-cost");
15170
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
15170
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
15171
15171
  const categoriesIndex = args.indexOf("--categories");
15172
15172
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _521 => _521[categoriesIndex + 1], 'optionalAccess', _522 => _522.trim, 'call', _523 => _523()]) : void 0;
15173
15173
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15264,7 +15264,7 @@ async function handlePlayList(args) {
15264
15264
  lines.push("List truncated \u2014 more plays are available.");
15265
15265
  lines.push(`Next page: ${nextPage}`);
15266
15266
  }
15267
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
15267
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
15268
15268
  {
15269
15269
  plays,
15270
15270
  count: plays.length,
@@ -15282,7 +15282,7 @@ async function handlePlayList(args) {
15282
15282
  }
15283
15283
  async function handlePlayPin(args, pinned) {
15284
15284
  const target = _optionalChain([args, 'access', _530 => _530.find, 'call', _531 => _531((arg) => !arg.startsWith("-")), 'optionalAccess', _532 => _532.trim, 'call', _533 => _533()]);
15285
- const jsonOutput = _chunkQSH5CHRIjs.argsWantJson.call(void 0, args);
15285
+ const jsonOutput = _chunkSQPNP3IQjs.argsWantJson.call(void 0, args);
15286
15286
  const dryRun = args.includes("--dry-run");
15287
15287
  if (!target) {
15288
15288
  console.error(
@@ -15300,11 +15300,11 @@ async function handlePlayPin(args, pinned) {
15300
15300
  const name = parsedTarget.playName;
15301
15301
  const plan = { name, pinned, dryRun };
15302
15302
  if (dryRun) {
15303
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, plan);
15303
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, plan);
15304
15304
  return 0;
15305
15305
  }
15306
- const result = await new (0, _chunkETUV6RRKjs.DeeplineClient)().setPlayPinned(name, pinned);
15307
- if (jsonOutput) _chunkQSH5CHRIjs.printCompactJson.call(void 0, result);
15306
+ const result = await new (0, _chunkGPM3AZXBjs.DeeplineClient)().setPlayPinned(name, pinned);
15307
+ if (jsonOutput) _chunkSQPNP3IQjs.printCompactJson.call(void 0, result);
15308
15308
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15309
15309
  return 0;
15310
15310
  }
@@ -15320,7 +15320,7 @@ function csvColumnLines(csvInput) {
15320
15320
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
15321
15321
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
15322
15322
  }),
15323
- _chunkETUV6RRKjs.CSV_HEADER_MATCHING_NOTE
15323
+ _chunkGPM3AZXBjs.CSV_HEADER_MATCHING_NOTE
15324
15324
  ];
15325
15325
  }
15326
15326
  function describedPlay(play) {
@@ -15333,14 +15333,14 @@ function describedPlay(play) {
15333
15333
  "columns",
15334
15334
  ...Array.isArray(csv.runLevelControlFields) ? csv.runLevelControlFields.map(String) : []
15335
15335
  ]);
15336
- const declared = _chunkA6ZTYKYFjs.schemaFields.call(void 0, play.inputSchema).map((field) => field.name);
15337
- const rowNames = _chunkA6ZTYKYFjs.schemaFields.call(void 0, csv.rowInputSchema).map((field) => field.name);
15336
+ const declared = _chunkZMVJSS6Njs.schemaFields.call(void 0, play.inputSchema).map((field) => field.name);
15337
+ const rowNames = _chunkZMVJSS6Njs.schemaFields.call(void 0, csv.rowInputSchema).map((field) => field.name);
15338
15338
  const replaced = play.csvInput ? (rowNames.length > 0 ? rowNames : declared).filter(
15339
15339
  (name) => declared.includes(name) && !alongside.has(name)
15340
15340
  ) : [];
15341
15341
  const exclusive = replaced.length ? { field: csvField2, with: replaced } : void 0;
15342
15342
  const headers = isRecord2(csv.defaultColumns) ? csv.defaultColumns : {};
15343
- const rowInputs = _chunkA6ZTYKYFjs.schemaFields.call(void 0, csv.rowInputSchema).map((field) => {
15343
+ const rowInputs = _chunkZMVJSS6Njs.schemaFields.call(void 0, csv.rowInputSchema).map((field) => {
15344
15344
  const header = [headers[field.name]].flat().filter((name) => name && name !== field.name).join(" or ");
15345
15345
  return header ? {
15346
15346
  ...field,
@@ -15349,7 +15349,7 @@ function describedPlay(play) {
15349
15349
  });
15350
15350
  const rowOutput = _nullishCoalesce(play.rowOutputSchema, () => ( {}));
15351
15351
  const added = isRecord2(rowOutput.addedColumns) ? rowOutput.addedColumns : {};
15352
- const rowOutputs = _chunkA6ZTYKYFjs.schemaFields.call(void 0,
15352
+ const rowOutputs = _chunkZMVJSS6Njs.schemaFields.call(void 0,
15353
15353
  Object.keys(added).length ? { properties: added } : rowOutput
15354
15354
  ).map((field) => ({ ...field, required: true }));
15355
15355
  return {
@@ -15359,10 +15359,14 @@ function describedPlay(play) {
15359
15359
  ...play.description ? { description: play.description } : {},
15360
15360
  ...play.observedCost ? { cost: play.observedCost.displayText } : {},
15361
15361
  guidance: [],
15362
- inputs: _chunkA6ZTYKYFjs.schemaFields.call(void 0, play.inputSchema),
15363
- outputs: _chunkA6ZTYKYFjs.schemaFields.call(void 0, play.outputSchema),
15362
+ inputs: _chunkZMVJSS6Njs.schemaFields.call(void 0, play.inputSchema),
15363
+ outputs: _chunkZMVJSS6Njs.schemaFields.call(void 0, play.outputSchema),
15364
15364
  ...rowInputs.length ? { rowInputs } : {},
15365
- ...rowOutputs.length ? { rowOutputs } : {},
15365
+ ...typeof csv.inputField === "string" ? { csvInput: csv.inputField } : {},
15366
+ ...rowOutputs.length ? {
15367
+ rowOutputs,
15368
+ rowOutputsAddToSource: Object.keys(added).length > 0 || rowOutput.preservesSourceColumns === true
15369
+ } : {},
15366
15370
  runner: {
15367
15371
  via: "play",
15368
15372
  reference,
@@ -15482,12 +15486,12 @@ async function handlePlayGrep(args) {
15482
15486
  console.error("Usage: deepline plays grep <query> [--json]");
15483
15487
  return 1;
15484
15488
  }
15485
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
15489
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
15486
15490
  const results = (await client.listPlays({ grep: query })).map(
15487
15491
  summarizePlayGrepResult
15488
15492
  );
15489
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
15490
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, {
15493
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
15494
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, {
15491
15495
  plays: results,
15492
15496
  count: results.length,
15493
15497
  query,
@@ -15510,7 +15514,7 @@ async function handlePlayGrep(args) {
15510
15514
  return 0;
15511
15515
  }
15512
15516
  async function handlePlayDescribe(args) {
15513
- const selection = _chunkQSH5CHRIjs.parseJsonFields.call(void 0, args, "describe");
15517
+ const selection = _chunkSQPNP3IQjs.parseJsonFields.call(void 0, args, "describe");
15514
15518
  args = selection.args;
15515
15519
  const playName = args[0];
15516
15520
  if (!playName) {
@@ -15544,8 +15548,8 @@ async function handlePlayDescribe(args) {
15544
15548
  `deepline plays check ${playName}`,
15545
15549
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15546
15550
  ];
15547
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
15548
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, {
15551
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
15552
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, {
15549
15553
  ok: false,
15550
15554
  error: { message },
15551
15555
  next
@@ -15559,7 +15563,7 @@ async function handlePlayDescribe(args) {
15559
15563
  }
15560
15564
  return 2;
15561
15565
  }
15562
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
15566
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
15563
15567
  await assertCanonicalNamedPlayReference(client, playName, {
15564
15568
  command: "describe"
15565
15569
  });
@@ -15569,9 +15573,9 @@ async function handlePlayDescribe(args) {
15569
15573
  compact: args.includes("--compact")
15570
15574
  }
15571
15575
  );
15572
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
15573
- if (selection.fields) _chunkQSH5CHRIjs.printJson.call(void 0, play, selection.fields);
15574
- else _chunkQSH5CHRIjs.printCompactJson.call(void 0, play);
15576
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
15577
+ if (selection.fields) _chunkSQPNP3IQjs.printJson.call(void 0, play, selection.fields);
15578
+ else _chunkSQPNP3IQjs.printCompactJson.call(void 0, play);
15575
15579
  return 0;
15576
15580
  }
15577
15581
  printPlayDescription(play);
@@ -15615,7 +15619,7 @@ async function handlePlaySave(args) {
15615
15619
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15616
15620
  };
15617
15621
  if (options.jsonOutput) {
15618
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, result);
15622
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, result);
15619
15623
  } else {
15620
15624
  console.error(result.message);
15621
15625
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15637,7 +15641,7 @@ async function handlePlaySave(args) {
15637
15641
  };
15638
15642
  if (options.dryRun) {
15639
15643
  if (options.jsonOutput) {
15640
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, dryRun);
15644
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, dryRun);
15641
15645
  } else {
15642
15646
  console.log(`Dry run: ${playName}`);
15643
15647
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15646,7 +15650,7 @@ async function handlePlaySave(args) {
15646
15650
  }
15647
15651
  return 0;
15648
15652
  }
15649
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
15653
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
15650
15654
  try {
15651
15655
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
15652
15656
  "cli.play_save_compile_manifests",
@@ -15682,7 +15686,7 @@ async function handlePlaySave(args) {
15682
15686
  }
15683
15687
  };
15684
15688
  if (options.jsonOutput) {
15685
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, result);
15689
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, result);
15686
15690
  } else {
15687
15691
  console.log(
15688
15692
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15708,7 +15712,7 @@ async function handlePlayPublish(args) {
15708
15712
  }
15709
15713
  const { target: playName, useLatest } = options;
15710
15714
  let revisionId = options.revisionId;
15711
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
15715
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
15712
15716
  if (isFileTarget2(playName)) {
15713
15717
  if (revisionId || useLatest) {
15714
15718
  console.error(
@@ -15740,7 +15744,7 @@ async function handlePlayPublish(args) {
15740
15744
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15741
15745
  };
15742
15746
  if (options.jsonOutput) {
15743
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, result3);
15747
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, result3);
15744
15748
  } else {
15745
15749
  console.error(result3.message);
15746
15750
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15763,7 +15767,7 @@ async function handlePlayPublish(args) {
15763
15767
  };
15764
15768
  if (options.dryRun) {
15765
15769
  if (options.jsonOutput) {
15766
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, dryRun);
15770
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, dryRun);
15767
15771
  } else {
15768
15772
  console.log(`Dry run: ${rootPlayName}`);
15769
15773
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15831,7 +15835,7 @@ async function handlePlayPublish(args) {
15831
15835
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15832
15836
  };
15833
15837
  if (options.jsonOutput) {
15834
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, result2);
15838
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, result2);
15835
15839
  } else {
15836
15840
  printPublishReceipt({
15837
15841
  name: rootPlayName,
@@ -15862,7 +15866,7 @@ async function handlePlayPublish(args) {
15862
15866
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15863
15867
  latest: useLatest
15864
15868
  };
15865
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, result2);
15869
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, result2);
15866
15870
  return 0;
15867
15871
  }
15868
15872
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -15886,7 +15890,7 @@ async function handlePlayPublish(args) {
15886
15890
  revisionId ? { revisionId } : {}
15887
15891
  );
15888
15892
  if (options.jsonOutput) {
15889
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, result);
15893
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, result);
15890
15894
  } else {
15891
15895
  printPublishReceipt({
15892
15896
  name: result.name,
@@ -15926,7 +15930,7 @@ async function handlePlayDelete(args) {
15926
15930
  );
15927
15931
  return 2;
15928
15932
  }
15929
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
15933
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
15930
15934
  let detail;
15931
15935
  try {
15932
15936
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -15950,8 +15954,8 @@ async function handlePlayDelete(args) {
15950
15954
  name: resolvedName,
15951
15955
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
15952
15956
  };
15953
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
15954
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, result2);
15957
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
15958
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, result2);
15955
15959
  } else {
15956
15960
  process.stdout.write(
15957
15961
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -15961,8 +15965,8 @@ async function handlePlayDelete(args) {
15961
15965
  return 0;
15962
15966
  }
15963
15967
  const result = await client.deletePlay(resolvedName);
15964
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
15965
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, result);
15968
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
15969
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, result);
15966
15970
  return result.archived || result.alreadyArchived ? 0 : 4;
15967
15971
  }
15968
15972
  if (result.alreadyArchived) {
@@ -16001,13 +16005,13 @@ async function handlePlayRestore(args) {
16001
16005
  );
16002
16006
  return 2;
16003
16007
  }
16004
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
16008
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
16005
16009
  try {
16006
16010
  const result = await client.restorePlay(
16007
16011
  parseReferencedPlayTarget2(playName).playName
16008
16012
  );
16009
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
16010
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, result);
16013
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
16014
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, result);
16011
16015
  return result.restored || result.alreadyActive ? 0 : 4;
16012
16016
  }
16013
16017
  if (result.alreadyActive) {
@@ -16113,7 +16117,7 @@ Examples:
16113
16117
  ).action(async (target, options) => {
16114
16118
  process.exitCode = await handlePlayCheck([
16115
16119
  target,
16116
- ..._chunkQSH5CHRIjs.jsonFieldArgs.call(void 0, options.json),
16120
+ ..._chunkSQPNP3IQjs.jsonFieldArgs.call(void 0, options.json),
16117
16121
  ...options.full ? ["--full"] : []
16118
16122
  ]);
16119
16123
  });
@@ -16340,9 +16344,9 @@ Examples:
16340
16344
  const limit = Number(options.historyLimit);
16341
16345
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16342
16346
  throw new Error("--history-limit must be an integer from 1 to 30.");
16343
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
16347
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
16344
16348
  if (options.binding) {
16345
- _chunkQSH5CHRIjs.printCompactJson.call(void 0,
16349
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0,
16346
16350
  await client.getPlayTriggerHistory(options.binding, { limit })
16347
16351
  );
16348
16352
  return;
@@ -16350,7 +16354,7 @@ Examples:
16350
16354
  const result = await client.listPlayTriggerInventory({
16351
16355
  cursor: options.cursor
16352
16356
  });
16353
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, {
16357
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, {
16354
16358
  ...result,
16355
16359
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16356
16360
  });
@@ -16397,7 +16401,7 @@ Examples:
16397
16401
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16398
16402
  throw new Error("--group-by must be kind or trigger_source.");
16399
16403
  }
16400
- const result = await new (0, _chunkETUV6RRKjs.DeeplineClient)().getPlaysActivity({
16404
+ const result = await new (0, _chunkGPM3AZXBjs.DeeplineClient)().getPlaysActivity({
16401
16405
  timeZone: options.timeZone,
16402
16406
  days,
16403
16407
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16411,7 +16415,7 @@ Examples:
16411
16415
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16412
16416
  );
16413
16417
  }
16414
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
16418
+ _chunkSQPNP3IQjs.printCommandEnvelope.call(void 0,
16415
16419
  { ...result },
16416
16420
  {
16417
16421
  json: Boolean(options.json),
@@ -16440,7 +16444,7 @@ Examples:
16440
16444
  false
16441
16445
  );
16442
16446
  });
16443
- _chunkZXFGA2VKjs.registerDeprecatedSearchCommand.call(void 0,
16447
+ _chunkON7BSEMTjs.registerDeprecatedSearchCommand.call(void 0,
16444
16448
  play,
16445
16449
  (options) => options.all ? ["plays"] : ["prebuilts"]
16446
16450
  );
@@ -16481,9 +16485,9 @@ Examples:
16481
16485
  "--json [fields]",
16482
16486
  "JSON output; optionally select comma-separated dotted paths"
16483
16487
  );
16484
- _chunkA6ZTYKYFjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16488
+ _chunkZMVJSS6Njs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16485
16489
  async (target, options) => {
16486
- const ownView = () => handlePlayDescribe(_chunkQSH5CHRIjs.describeArgs.call(void 0, target, options));
16490
+ const ownView = () => handlePlayDescribe(_chunkSQPNP3IQjs.describeArgs.call(void 0, target, options));
16487
16491
  const [flagText] = [options.json].filter(
16488
16492
  (value) => typeof value === "string"
16489
16493
  );
@@ -16494,7 +16498,7 @@ Examples:
16494
16498
  process.exitCode = await ownView();
16495
16499
  return;
16496
16500
  }
16497
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-GA7LSJRY.js")));
16501
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-PJYBUSVL.js")));
16498
16502
  process.exitCode = await describeAnything(
16499
16503
  name,
16500
16504
  {
@@ -16612,7 +16616,7 @@ Examples:
16612
16616
  deepline plays deployments <deployment-id>
16613
16617
  `
16614
16618
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16615
- async (id, options) => id ? _chunkKHZ6WEVFjs.handleDeploymentGet.call(void 0, id, options) : _chunkKHZ6WEVFjs.handleDeploymentsList.call(void 0, options)
16619
+ async (id, options) => id ? _chunkKHZQCKZ6js.handleDeploymentGet.call(void 0, id, options) : _chunkKHZQCKZ6js.handleDeploymentsList.call(void 0, options)
16616
16620
  );
16617
16621
  addPublishHelp(
16618
16622
  play.command("publish <target>").description(
@@ -16791,7 +16795,7 @@ Examples:
16791
16795
  ).action(async (runId, options) => {
16792
16796
  process.exitCode = await handleRunGet([
16793
16797
  runId,
16794
- ..._chunkQSH5CHRIjs.jsonFieldArgs.call(void 0, options.json),
16798
+ ..._chunkSQPNP3IQjs.jsonFieldArgs.call(void 0, options.json),
16795
16799
  ...options.full ? ["--full"] : [],
16796
16800
  ...options.input ? ["--input"] : [],
16797
16801
  ...options.config ? ["--config"] : [],
@@ -17066,7 +17070,7 @@ Examples:
17066
17070
  ...options.allowEmpty ? ["--allow-empty"] : [],
17067
17071
  ...options.wait ? ["--wait"] : [],
17068
17072
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17069
- ..._chunkQSH5CHRIjs.jsonFieldArgs.call(void 0, options.json)
17073
+ ..._chunkSQPNP3IQjs.jsonFieldArgs.call(void 0, options.json)
17070
17074
  ]);
17071
17075
  });
17072
17076
  const share = play.command("share").description(
@@ -17232,10 +17236,10 @@ async function handlePlayShareStatus(args) {
17232
17236
  return 2;
17233
17237
  }
17234
17238
  const name = parseReferencedPlayTarget2(target).playName;
17235
- const status = await new (0, _chunkETUV6RRKjs.DeeplineClient)().getSharePage(name);
17239
+ const status = await new (0, _chunkGPM3AZXBjs.DeeplineClient)().getSharePage(name);
17236
17240
  const outputStatus = shareStatusForOutput(status);
17237
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
17238
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, outputStatus);
17241
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
17242
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, outputStatus);
17239
17243
  return 0;
17240
17244
  }
17241
17245
  if (!outputStatus.share) {
@@ -17274,7 +17278,7 @@ async function handlePlaySharePublish(args) {
17274
17278
  return 2;
17275
17279
  }
17276
17280
  const name = parseReferencedPlayTarget2(target).playName;
17277
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
17281
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
17278
17282
  let revisionId = shareFlagValue(args, "--revision-id");
17279
17283
  let resolvedVersion;
17280
17284
  if (!revisionId) {
@@ -17305,8 +17309,8 @@ async function handlePlaySharePublish(args) {
17305
17309
  );
17306
17310
  if (!hasCompleted) {
17307
17311
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17308
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
17309
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, {
17312
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
17313
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, {
17310
17314
  ok: false,
17311
17315
  code: "NO_SUCCESSFUL_RUN",
17312
17316
  message,
@@ -17330,8 +17334,8 @@ async function handlePlaySharePublish(args) {
17330
17334
  };
17331
17335
  if (args.includes("--dry-run")) {
17332
17336
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17333
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
17334
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, plan);
17337
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
17338
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, plan);
17335
17339
  } else {
17336
17340
  console.log(
17337
17341
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17341,8 +17345,8 @@ async function handlePlaySharePublish(args) {
17341
17345
  }
17342
17346
  const status = await client.publishSharePage(name, request);
17343
17347
  const outputStatus = shareStatusForOutput(status);
17344
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
17345
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, outputStatus);
17348
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
17349
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, outputStatus);
17346
17350
  return 0;
17347
17351
  }
17348
17352
  const urls = shareUrlFields(outputStatus);
@@ -17373,9 +17377,9 @@ async function handlePlayShareUpdate(args) {
17373
17377
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17374
17378
  ...seoIndexing ? { seoIndexing } : {}
17375
17379
  };
17376
- const status = await new (0, _chunkETUV6RRKjs.DeeplineClient)().updateSharePage(name, request);
17377
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
17378
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, status);
17380
+ const status = await new (0, _chunkGPM3AZXBjs.DeeplineClient)().updateSharePage(name, request);
17381
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
17382
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, status);
17379
17383
  return 0;
17380
17384
  }
17381
17385
  console.log(`Updated ${name} share settings.`);
@@ -17390,7 +17394,7 @@ async function handlePlayShareRegenerate(args) {
17390
17394
  return 2;
17391
17395
  }
17392
17396
  const name = parseReferencedPlayTarget2(target).playName;
17393
- const client = new (0, _chunkETUV6RRKjs.DeeplineClient)();
17397
+ const client = new (0, _chunkGPM3AZXBjs.DeeplineClient)();
17394
17398
  let revisionId = shareFlagValue(args, "--revision-id");
17395
17399
  const versionFlag = shareFlagValue(args, "--version");
17396
17400
  if (!revisionId && versionFlag) {
@@ -17407,8 +17411,8 @@ async function handlePlayShareRegenerate(args) {
17407
17411
  revisionId ? { revisionId } : {}
17408
17412
  );
17409
17413
  const outputStatus = shareStatusForOutput(status);
17410
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
17411
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, outputStatus);
17414
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
17415
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, outputStatus);
17412
17416
  return 0;
17413
17417
  }
17414
17418
  const urls = shareUrlFields(outputStatus);
@@ -17433,9 +17437,9 @@ async function handlePlayShareUnpublish(args) {
17433
17437
  return 2;
17434
17438
  }
17435
17439
  const name = parseReferencedPlayTarget2(target).playName;
17436
- const status = await new (0, _chunkETUV6RRKjs.DeeplineClient)().unpublishSharePage(name);
17437
- if (_chunkQSH5CHRIjs.argsWantJson.call(void 0, args)) {
17438
- _chunkQSH5CHRIjs.printCompactJson.call(void 0, status);
17440
+ const status = await new (0, _chunkGPM3AZXBjs.DeeplineClient)().unpublishSharePage(name);
17441
+ if (_chunkSQPNP3IQjs.argsWantJson.call(void 0, args)) {
17442
+ _chunkSQPNP3IQjs.printCompactJson.call(void 0, status);
17439
17443
  return 0;
17440
17444
  }
17441
17445
  console.log(`Unpublished ${name}; the public page has been removed.`);