deepline 0.3.353 → 0.3.355

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 (95) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +3 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +54 -40
  4. package/dist/cli/{auth-FVIZVTCB.mjs → auth-3IQKHFUS.mjs} +4 -4
  5. package/dist/cli/auth-Q4OX2XOA.js +31 -0
  6. package/dist/cli/{billing-PYTYGWPG.mjs → billing-2O2HPRIQ.mjs} +4 -4
  7. package/dist/cli/{billing-NWL7KQPZ.js → billing-QACLO2L4.js} +73 -73
  8. package/dist/cli/{chunk-NFEQHNDQ.js → chunk-56UZ4LCT.js} +26 -26
  9. package/dist/cli/{chunk-ZDEO3EGW.mjs → chunk-5TFTY4H5.mjs} +1 -1
  10. package/dist/cli/{chunk-ZCCXX55K.js → chunk-63CWWQE6.js} +45 -45
  11. package/dist/cli/{chunk-D477W2OQ.mjs → chunk-64YA2SCL.mjs} +4 -4
  12. package/dist/cli/{chunk-IVGFLYQ6.mjs → chunk-6745OKK5.mjs} +1 -1
  13. package/dist/cli/{chunk-GFLHAA2O.mjs → chunk-B2C2PR6I.mjs} +1 -1
  14. package/dist/cli/{chunk-2UWRFDI4.js → chunk-CG5JEYRX.js} +60 -60
  15. package/dist/cli/{chunk-55XOA2VW.js → chunk-CKBJ2PQR.js} +8 -8
  16. package/dist/cli/{chunk-HU4SUDWU.js → chunk-CL6NZN6X.js} +224 -224
  17. package/dist/cli/{chunk-VALAAQQM.js → chunk-CQXFJZ57.js} +48 -48
  18. package/dist/cli/{chunk-CXMSK2VV.mjs → chunk-DYWM3EZG.mjs} +2 -2
  19. package/dist/cli/{chunk-BVHUTDCW.mjs → chunk-FC2SOWXT.mjs} +5 -5
  20. package/dist/cli/{chunk-Z6LVVOOJ.js → chunk-GGM6CX2R.js} +15 -15
  21. package/dist/cli/{chunk-DY253DRK.mjs → chunk-IQJBKSMD.mjs} +2 -2
  22. package/dist/cli/{chunk-R2T4HQ64.js → chunk-J2WSV37F.js} +6 -6
  23. package/dist/cli/{chunk-M4UPRX3M.js → chunk-J6I4RSDG.js} +8 -8
  24. package/dist/cli/{chunk-NPU4SMKT.js → chunk-PGBSGPQ3.js} +9 -9
  25. package/dist/cli/{chunk-XI5IMY45.js → chunk-QYKLKWQO.js} +2 -2
  26. package/dist/cli/{chunk-RRDCBCRI.mjs → chunk-R2O2BKDH.mjs} +1 -1
  27. package/dist/cli/{chunk-U3FUXTIB.mjs → chunk-SDZW7NSO.mjs} +1 -1
  28. package/dist/cli/{chunk-EDEO7NG4.js → chunk-TKWCYYIM.js} +1 -1
  29. package/dist/cli/{chunk-NZNUDZDW.mjs → chunk-UAPP5IVJ.mjs} +2 -2
  30. package/dist/cli/{chunk-LLI4RITH.mjs → chunk-USB6LFMD.mjs} +3 -3
  31. package/dist/cli/{chunk-CQQ5N4YO.mjs → chunk-VALEHQXO.mjs} +2 -2
  32. package/dist/cli/{chunk-JHPVZR6F.js → chunk-WMULUP2K.js} +4 -4
  33. package/dist/cli/{chunk-37F4EUJA.mjs → chunk-XXC7ST6U.mjs} +6 -6
  34. package/dist/cli/client-ISC4LLIX.js +20 -0
  35. package/dist/cli/{client-IH7I5D7T.mjs → client-QQMVHMOY.mjs} +3 -3
  36. package/dist/cli/{csv-TJIWKUCX.js → csv-DQBAUFB6.js} +12 -12
  37. package/dist/cli/{csv-G5WXNCLQ.mjs → csv-DWIYPLLH.mjs} +3 -3
  38. package/dist/cli/{db-EBHV2MGE.mjs → db-LFLTGHKA.mjs} +4 -4
  39. package/dist/cli/{db-3DCS2JXS.js → db-QET2DLHP.js} +29 -29
  40. package/dist/cli/{describe-QUOLGZKH.mjs → describe-LR5QXOKB.mjs} +8 -8
  41. package/dist/cli/{describe-5XKBPWD7.js → describe-Z2YFVBNO.js} +15 -15
  42. package/dist/cli/{executions-NYIOENKH.js → executions-5T2TL6CL.js} +6 -6
  43. package/dist/cli/{executions-EERWIJ5I.mjs → executions-ARKMIMHM.mjs} +4 -4
  44. package/dist/cli/{feedback-Z2I5MQYZ.js → feedback-4POM6CBJ.js} +7 -7
  45. package/dist/cli/{feedback-4RYJJCYL.mjs → feedback-YAEIOXMS.mjs} +3 -3
  46. package/dist/cli/{git-EMU7AKX3.mjs → git-OCMBR5FC.mjs} +4 -4
  47. package/dist/cli/git-RZCZI3ER.js +23 -0
  48. package/dist/cli/index.js +79 -79
  49. package/dist/cli/index.mjs +31 -31
  50. package/dist/cli/{legacy-noops-HHLNM523.mjs → legacy-noops-DCZUS7ES.mjs} +4 -4
  51. package/dist/cli/{legacy-noops-BEUYYRSU.js → legacy-noops-IKM26VQP.js} +7 -7
  52. package/dist/cli/{monitors-BVJSHUV4.mjs → monitors-FYDK5HOY.mjs} +4 -4
  53. package/dist/cli/{monitors-KQXLMPZ4.js → monitors-P5FGTRL3.js} +85 -85
  54. package/dist/cli/{org-HRYNVOUH.js → org-HAQEVMOO.js} +60 -60
  55. package/dist/cli/{org-KSROOKSJ.mjs → org-P3EKASXE.mjs} +4 -4
  56. package/dist/cli/{play-PGFW6PFE.mjs → play-VQPA3FJM.mjs} +7 -7
  57. package/dist/cli/play-YEQ4JQUW.js +153 -0
  58. package/dist/cli/{providers-EUKJK6ZE.mjs → providers-ATI5HUBZ.mjs} +4 -4
  59. package/dist/cli/{providers-BJM725CV.js → providers-M34KOQTE.js} +7 -7
  60. package/dist/cli/{quickstart-72JYHUJC.mjs → quickstart-7YP5G2PM.mjs} +3 -3
  61. package/dist/cli/{quickstart-FEERYTYY.js → quickstart-WBAHFDVT.js} +5 -5
  62. package/dist/cli/{search-LUAIOM56.mjs → search-5DI73SZD.mjs} +5 -5
  63. package/dist/cli/search-USWDT7PW.js +26 -0
  64. package/dist/cli/{secrets-J65QCH57.js → secrets-C4HJ7BTJ.js} +13 -13
  65. package/dist/cli/{secrets-YYFRYS2Z.mjs → secrets-F6TOYGUG.mjs} +4 -4
  66. package/dist/cli/{sessions-WBA67YYT.mjs → sessions-JG5Y4YHP.mjs} +4 -4
  67. package/dist/cli/{sessions-FWUUEK6V.js → sessions-P6ED3JWC.js} +5 -5
  68. package/dist/cli/{settings-I7AZ4JVI.js → settings-UVT6MUZH.js} +74 -74
  69. package/dist/cli/{settings-RUMTSUE5.mjs → settings-YERL4MKN.mjs} +7 -7
  70. package/dist/cli/{setup-BHRRNT5C.mjs → setup-C6NYXZX4.mjs} +6 -6
  71. package/dist/cli/{setup-R3IUFNDP.js → setup-LREJO56L.js} +41 -41
  72. package/dist/cli/{skills-EKD5O7GQ.mjs → skills-4HU5RV5M.mjs} +4 -4
  73. package/dist/cli/skills-74GBPOGS.js +28 -0
  74. package/dist/cli/tools-GUFCJGVW.js +40 -0
  75. package/dist/cli/{tools-L5OA2343.mjs → tools-SR46KMKA.mjs} +6 -6
  76. package/dist/cli/update-K47QQUCB.js +28 -0
  77. package/dist/cli/{update-UUHL6FER.mjs → update-XFV6ELFK.mjs} +6 -6
  78. package/dist/cli/{workflow-7NBSG5OT.js → workflow-E2BSA6OI.js} +15 -15
  79. package/dist/cli/{workflow-V24VHOQT.mjs → workflow-OHS4NXMP.mjs} +5 -5
  80. package/dist/index.js +6 -6
  81. package/dist/index.mjs +3 -3
  82. package/dist/install-integrity.json +74 -74
  83. package/dist/release.d.mts +1 -1
  84. package/dist/release.d.ts +1 -1
  85. package/dist/release.js +2 -2
  86. package/dist/release.mjs +1 -1
  87. package/package.json +1 -1
  88. package/dist/cli/auth-GJZ3S4QH.js +0 -31
  89. package/dist/cli/client-Z6BCEGFA.js +0 -20
  90. package/dist/cli/git-QYQ5ZFIG.js +0 -23
  91. package/dist/cli/play-CRHUA45Q.js +0 -153
  92. package/dist/cli/search-X25S2U54.js +0 -26
  93. package/dist/cli/skills-OOZ5SDVB.js +0 -28
  94. package/dist/cli/tools-MYH33NTL.js +0 -40
  95. package/dist/cli/update-EWNPE3NF.js +0 -28
@@ -11,11 +11,11 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
11
11
  var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
12
12
 
13
13
 
14
- var _chunkM4UPRX3Mjs = require('./chunk-M4UPRX3M.js');
14
+ var _chunkJ6I4RSDGjs = require('./chunk-J6I4RSDG.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkNFEQHNDQjs = require('./chunk-NFEQHNDQ.js');
18
+ var _chunk56UZ4LCTjs = require('./chunk-56UZ4LCT.js');
19
19
 
20
20
 
21
21
 
@@ -34,7 +34,7 @@ var _chunkGEJDBXXMjs = require('./chunk-GEJDBXXM.js');
34
34
 
35
35
 
36
36
 
37
- var _chunkNPU4SMKTjs = require('./chunk-NPU4SMKT.js');
37
+ var _chunkPGBSGPQ3js = require('./chunk-PGBSGPQ3.js');
38
38
 
39
39
 
40
40
 
@@ -67,10 +67,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
67
67
 
68
68
 
69
69
 
70
- var _chunkR2T4HQ64js = require('./chunk-R2T4HQ64.js');
70
+ var _chunkJ2WSV37Fjs = require('./chunk-J2WSV37F.js');
71
71
 
72
72
 
73
- var _chunkJHPVZR6Fjs = require('./chunk-JHPVZR6F.js');
73
+ var _chunkWMULUP2Kjs = require('./chunk-WMULUP2K.js');
74
74
 
75
75
 
76
76
 
@@ -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
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
2065
+ _chunkJ2WSV37Fjs.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
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
2109
+ _chunkJ2WSV37Fjs.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, _chunkNPU4SMKTjs.DeeplineClient)().getPlaySettings(options.play),
2134
+ await new (0, _chunkPGBSGPQ3js.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
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
2165
+ _chunkJ2WSV37Fjs.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, _chunkNPU4SMKTjs.DeeplineClient)().updatePlaySettings(play, patch),
2186
+ await new (0, _chunkPGBSGPQ3js.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, _chunkNPU4SMKTjs.DeeplineClient)().listPlaySettingsPaths({
2212
+ const page = await new (0, _chunkPGBSGPQ3js.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}` : ""} --json` : null;
2218
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
2218
+ _chunkJ2WSV37Fjs.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, _chunkNPU4SMKTjs.DeeplineClient)();
2269
+ const client = new (0, _chunkPGBSGPQ3js.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
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
2331
+ _chunkJ2WSV37Fjs.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
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
2459
+ _chunkJ2WSV37Fjs.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
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
2472
+ _chunkJ2WSV37Fjs.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
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
2502
+ _chunkJ2WSV37Fjs.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, _chunkNPU4SMKTjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2521
+ await new (0, _chunkPGBSGPQ3js.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; automatic when piped").addHelpText("after", help2).action(async (options) => {
2553
2553
  printView(
2554
- await new (0, _chunkNPU4SMKTjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2554
+ await new (0, _chunkPGBSGPQ3js.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, _chunkNPU4SMKTjs.DeeplineClient)().getPlayTriggerConfig(
2598
+ const current = await new (0, _chunkPGBSGPQ3js.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 = _chunkNPU4SMKTjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2675
+ var RUN_LOGS_KIND_HELP = _chunkPGBSGPQ3js.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 (_chunkR2T4HQ64js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2813
- _chunkR2T4HQ64js.printJsonError.call(void 0,
2814
- Object.assign(new (0, _chunkNPU4SMKTjs.RunEventQueryInputError)(error.message), {
2812
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2813
+ _chunkJ2WSV37Fjs.printJsonError.call(void 0,
2814
+ Object.assign(new (0, _chunkPGBSGPQ3js.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, _chunkNPU4SMKTjs.RunEventQueryInputError)(
2858
+ throw new (0, _chunkPGBSGPQ3js.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, _chunkNPU4SMKTjs.RunEventQueryInputError)(
2865
+ throw new (0, _chunkPGBSGPQ3js.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, _chunkNPU4SMKTjs.RunEventQueryInputError)(
2879
+ throw new (0, _chunkPGBSGPQ3js.RunEventQueryInputError)(
2880
2880
  `Unsupported query flag ${flag}. ${correction}`
2881
2881
  );
2882
2882
  }
2883
2883
  if (runId !== void 0) {
2884
- throw new (0, _chunkNPU4SMKTjs.RunEventQueryInputError)(
2884
+ throw new (0, _chunkPGBSGPQ3js.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, _chunkNPU4SMKTjs.RunEventQueryInputError)(
2892
+ throw new (0, _chunkPGBSGPQ3js.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, _chunkNPU4SMKTjs.RunEventQueryInputError)(
2905
+ throw new (0, _chunkPGBSGPQ3js.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, _chunkNPU4SMKTjs.RunEventQueryInputError)(
2911
+ throw new (0, _chunkPGBSGPQ3js.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, _chunkNPU4SMKTjs.RunEventQueryInputError)(
2916
+ throw new (0, _chunkPGBSGPQ3js.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, _chunkNPU4SMKTjs.RunEventQueryInputError)(
2924
+ throw new (0, _chunkPGBSGPQ3js.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 = _chunkNPU4SMKTjs.normalizeRunEventOperationRequest.call(void 0, body);
2959
+ const request = _chunkPGBSGPQ3js.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, _chunkNPU4SMKTjs.RunEventQueryInputError)(
2963
+ throw new (0, _chunkPGBSGPQ3js.RunEventQueryInputError)(
2964
2964
  "--runtime-backend must be daytona or modal."
2965
2965
  );
2966
2966
  }
2967
2967
  if (backend && !namespace) {
2968
- throw new (0, _chunkNPU4SMKTjs.RunEventQueryInputError)(
2968
+ throw new (0, _chunkPGBSGPQ3js.RunEventQueryInputError)(
2969
2969
  "--runtime-backend requires --runtime-namespace."
2970
2970
  );
2971
2971
  }
@@ -3013,12 +3013,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3013
3013
  const failure = error instanceof Error ? error : new Error(String(error));
3014
3014
  const record3 = failure;
3015
3015
  const status = record3.statusCode;
3016
- const exitCode = error instanceof _chunkNPU4SMKTjs.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
+ const exitCode = error instanceof _chunkPGBSGPQ3js.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3017
3017
  const diagnostic = Object.assign(failure, {
3018
3018
  exitCode,
3019
3019
  retryable: exitCode === 5
3020
3020
  });
3021
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) _chunkR2T4HQ64js.printJsonError.call(void 0, diagnostic);
3021
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) _chunkJ2WSV37Fjs.printJsonError.call(void 0, diagnostic);
3022
3022
  else console.error(`Error: ${diagnostic.message}`);
3023
3023
  return exitCode;
3024
3024
  }
@@ -3033,7 +3033,7 @@ async function executeRunEventQuery(args, resource) {
3033
3033
  ...criteria
3034
3034
  } = request;
3035
3035
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3036
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
3036
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
3037
3037
  let result;
3038
3038
  if (request.operation === "fields") {
3039
3039
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3099,13 +3099,13 @@ async function executeRunEventQuery(args, resource) {
3099
3099
  lines.push(`Next page: ${nextPage}`);
3100
3100
  }
3101
3101
  }
3102
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
3102
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
3103
3103
  {
3104
3104
  ...result,
3105
3105
  ...nextPage ? { next: { page: nextPage } } : {},
3106
3106
  render: { sections: [{ title: `run ${resource}`, lines }] }
3107
3107
  },
3108
- { json: _chunkR2T4HQ64js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3108
+ { json: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3109
3109
  ` }
3110
3110
  );
3111
3111
  return 0;
@@ -3925,7 +3925,7 @@ function checkedRunExample(plays, target) {
3925
3925
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3926
3926
  const base = `deepline plays run --file ${quote(target)}`;
3927
3927
  return {
3928
- command: `${base}${_chunkNPU4SMKTjs.playInputExampleArgs.call(void 0, schema)} --json`,
3928
+ command: `${base}${_chunkPGBSGPQ3js.playInputExampleArgs.call(void 0, schema)} --json`,
3929
3929
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema. Keep stderr separate from JSON stdout."
3930
3930
  };
3931
3931
  }
@@ -4023,7 +4023,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4023
4023
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4024
4024
  );
4025
4025
  }
4026
- const response = await new (0, _chunkNPU4SMKTjs.DeeplineClient)().runs.getReceipts(runId, {
4026
+ const response = await new (0, _chunkPGBSGPQ3js.DeeplineClient)().runs.getReceipts(runId, {
4027
4027
  keys
4028
4028
  });
4029
4029
  const failed = response.receipts.filter(
@@ -4035,7 +4035,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4035
4035
  JSON.stringify(response, null, 2) + "\n",
4036
4036
  { flag: "wx", mode: 384 }
4037
4037
  );
4038
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
4038
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
4039
4039
  {
4040
4040
  runId,
4041
4041
  out: options.out,
@@ -4045,7 +4045,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4045
4045
  { json: true }
4046
4046
  );
4047
4047
  } else {
4048
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4048
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4049
4049
  }
4050
4050
  if (failed)
4051
4051
  process.exitCode = response.receipts.some(
@@ -4084,7 +4084,7 @@ includes nextCommand when another page is available.
4084
4084
  { exitCode: 2 }
4085
4085
  );
4086
4086
  }
4087
- const page = await new (0, _chunkNPU4SMKTjs.DeeplineClient)().runs.children(parentRunId, {
4087
+ const page = await new (0, _chunkPGBSGPQ3js.DeeplineClient)().runs.children(parentRunId, {
4088
4088
  launchKey: options.launchKey,
4089
4089
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4090
4090
  limit
@@ -4100,7 +4100,7 @@ includes nextCommand when another page is available.
4100
4100
  String(limit),
4101
4101
  "--json"
4102
4102
  ].join(" ") : null;
4103
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
4103
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
4104
4104
  {
4105
4105
  parentRunId,
4106
4106
  launchKey: options.launchKey,
@@ -4136,7 +4136,7 @@ async function handleRunsHistory(options) {
4136
4136
  throw new Error("--limit must be a positive integer.");
4137
4137
  }
4138
4138
  }
4139
- const page = await new (0, _chunkNPU4SMKTjs.DeeplineClient)().runs.history({
4139
+ const page = await new (0, _chunkPGBSGPQ3js.DeeplineClient)().runs.history({
4140
4140
  cursor: options.cursor,
4141
4141
  orgId: options.org,
4142
4142
  search: options.search,
@@ -4152,7 +4152,7 @@ async function handleRunsHistory(options) {
4152
4152
  );
4153
4153
  }
4154
4154
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4155
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
4155
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
4156
4156
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4157
4157
  options.json ? { json: true } : {}
4158
4158
  );
@@ -4204,12 +4204,12 @@ async function runRunsRerunCommand(runId, options) {
4204
4204
  return 1;
4205
4205
  }
4206
4206
  }
4207
- const result = await new (0, _chunkNPU4SMKTjs.DeeplineClient)().runs.rerun(runId, {
4207
+ const result = await new (0, _chunkPGBSGPQ3js.DeeplineClient)().runs.rerun(runId, {
4208
4208
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4209
4209
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4210
4210
  });
4211
- if (_chunkR2T4HQ64js.shouldEmitJson.call(void 0, options.json)) {
4212
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, result, { json: true });
4211
+ if (_chunkJ2WSV37Fjs.shouldEmitJson.call(void 0, options.json)) {
4212
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, result, { json: true });
4213
4213
  } else {
4214
4214
  console.log(
4215
4215
  result.deduplicated === true ? `
@@ -4477,7 +4477,7 @@ function projectRunDatasetCell(value) {
4477
4477
  const logicalValue = parseSerializedDatasetValue(value);
4478
4478
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
4479
4479
  if (typeof logicalValue === "object") {
4480
- return _chunkR2T4HQ64js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4480
+ return _chunkJ2WSV37Fjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4481
4481
  }
4482
4482
  return logicalValue;
4483
4483
  }
@@ -6894,7 +6894,7 @@ function renderOutcome(outcome) {
6894
6894
  function printResult2(input) {
6895
6895
  const failed = input.status === "failed" || input.status === "cancelled";
6896
6896
  if (failed) process.exitCode = 1;
6897
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
6897
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
6898
6898
  {
6899
6899
  deployment: { ...input.deployment, status: input.status },
6900
6900
  plays: input.outcomes,
@@ -6919,7 +6919,7 @@ async function handlePlaysDeploy(directory, options) {
6919
6919
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6920
6920
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6921
6921
  });
6922
- const { http, config } = _chunkR2T4HQ64js.getAuthedHttpClient.call(void 0, );
6922
+ const { http, config } = _chunkJ2WSV37Fjs.getAuthedHttpClient.call(void 0, );
6923
6923
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6924
6924
  const startDeployment = () => http.post("/api/v2/deployments", {
6925
6925
  deliveryId,
@@ -6946,7 +6946,7 @@ async function handlePlaysDeploy(directory, options) {
6946
6946
  },
6947
6947
  {
6948
6948
  bundle: bundleDeployPlayFile,
6949
- fetchImpl: _chunkJHPVZR6Fjs.fetchWithDeploymentProtection,
6949
+ fetchImpl: _chunkWMULUP2Kjs.fetchWithDeploymentProtection,
6950
6950
  // The plays are already here: "opening" the source is naming it.
6951
6951
  openSource: async () => ({
6952
6952
  open: async () => ({ repoRoot: root })
@@ -7514,7 +7514,7 @@ function parseInputFlagValue(raw) {
7514
7514
  return raw;
7515
7515
  }
7516
7516
  function parsePlayRunOptions(args, initialInput = null) {
7517
- const selection = _chunkR2T4HQ64js.parseJsonFields.call(void 0, args, "run");
7517
+ const selection = _chunkJ2WSV37Fjs.parseJsonFields.call(void 0, args, "run");
7518
7518
  args = selection.args;
7519
7519
  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.";
7520
7520
  let filePath = null;
@@ -7524,7 +7524,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7524
7524
  let revisionSelector = null;
7525
7525
  const watch = !args.includes("--no-wait");
7526
7526
  const dryRun = args.includes("--dry-run");
7527
- let jsonOutput = dryRun ? _chunkR2T4HQ64js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkR2T4HQ64js.argsWantJson.call(void 0, args);
7527
+ let jsonOutput = dryRun ? _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args);
7528
7528
  const fullJson = args.includes("--full");
7529
7529
  const force = args.includes("--force");
7530
7530
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -7571,7 +7571,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7571
7571
  "--log-level requires one of: debug, info, warn, error."
7572
7572
  );
7573
7573
  }
7574
- const parsed = _chunkNPU4SMKTjs.parseLogLevel.call(void 0, value);
7574
+ const parsed = _chunkPGBSGPQ3js.parseLogLevel.call(void 0, value);
7575
7575
  if (!parsed) {
7576
7576
  throw new Error(
7577
7577
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -7878,7 +7878,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7878
7878
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
7879
7879
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
7880
7880
  );
7881
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkNPU4SMKTjs.parseLogLevel.call(void 0, options.logLevel);
7881
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkPGBSGPQ3js.parseLogLevel.call(void 0, options.logLevel);
7882
7882
  if (!logLevel)
7883
7883
  throw new Error("--log-level requires one of: debug, info, warn, error.");
7884
7884
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -7892,13 +7892,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7892
7892
  if (debugAlias || debugMapLatency && logLevel === "info")
7893
7893
  logLevel = "debug";
7894
7894
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
7895
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkR2T4HQ64js.parseJsonFields.call(void 0,
7896
- [...fullJson ? ["--full"] : [], ..._chunkR2T4HQ64js.jsonFieldArgs.call(void 0, options.json)],
7895
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkJ2WSV37Fjs.parseJsonFields.call(void 0,
7896
+ [...fullJson ? ["--full"] : [], ..._chunkJ2WSV37Fjs.jsonFieldArgs.call(void 0, options.json)],
7897
7897
  "run"
7898
7898
  ).fields;
7899
7899
  const watch = options.wait === false ? false : base.watch;
7900
7900
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
7901
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkR2T4HQ64js.argsWantJson.call(void 0, []) : explicitJson;
7901
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkJ2WSV37Fjs.argsWantJson.call(void 0, []) : explicitJson;
7902
7902
  const verboseLogs = Boolean(
7903
7903
  debugAlias || logLevel === "debug" || debugMapLatency
7904
7904
  );
@@ -7942,7 +7942,7 @@ function playAuthoringGraphPath(parent, filePath) {
7942
7942
  // src/cli/renderers/local-play-execution.ts
7943
7943
  function renderLocalPlayExecutionPlan(plan, options = {}) {
7944
7944
  if (options.dryRun) {
7945
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7945
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7946
7946
  return;
7947
7947
  }
7948
7948
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -8898,7 +8898,7 @@ function playStatusErrorText(status) {
8898
8898
  function isRetryablePendingStartFailure(status) {
8899
8899
  if (status.status !== "failed") return false;
8900
8900
  if (status.runId && status.runId !== "pending") return false;
8901
- return _chunkNPU4SMKTjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8901
+ return _chunkPGBSGPQ3js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8902
8902
  }
8903
8903
  function pendingStartFailureStatus(input) {
8904
8904
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -8925,13 +8925,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
8925
8925
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
8926
8926
  function watchSurfaceReaches(state, provenance, level) {
8927
8927
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
8928
- if (!_chunkNPU4SMKTjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8928
+ if (!_chunkPGBSGPQ3js.logLevelReaches.call(void 0, level, minimumLevel)) {
8929
8929
  return false;
8930
8930
  }
8931
- if (_chunkNPU4SMKTjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8931
+ if (_chunkPGBSGPQ3js.logProvenanceReaches.call(void 0, provenance, "watch")) {
8932
8932
  return true;
8933
8933
  }
8934
- return state.verbose === true && _chunkNPU4SMKTjs.logProvenanceReaches.call(void 0, provenance, "debug");
8934
+ return state.verbose === true && _chunkPGBSGPQ3js.logProvenanceReaches.call(void 0, provenance, "debug");
8935
8935
  }
8936
8936
  function getEventPayload(event) {
8937
8937
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -9433,7 +9433,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
9433
9433
  }
9434
9434
  function openPlayDashboard(dashboardUrl, open2) {
9435
9435
  if (open2 && dashboardUrl) {
9436
- _chunkR2T4HQ64js.openInBrowser.call(void 0, dashboardUrl);
9436
+ _chunkJ2WSV37Fjs.openInBrowser.call(void 0, dashboardUrl);
9437
9437
  }
9438
9438
  }
9439
9439
  function printPlayLogLines(input) {
@@ -9495,7 +9495,7 @@ async function waitForPlayCompletionByWatch(input) {
9495
9495
  billing: false
9496
9496
  });
9497
9497
  } catch (error) {
9498
- if (_chunkNPU4SMKTjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9498
+ if (_chunkPGBSGPQ3js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9499
9499
  return null;
9500
9500
  }
9501
9501
  throw error;
@@ -9684,7 +9684,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9684
9684
  billing: false
9685
9685
  });
9686
9686
  } catch (error) {
9687
- if (_chunkNPU4SMKTjs.isTransientPlayRunReadError.call(void 0, error)) {
9687
+ if (_chunkPGBSGPQ3js.isTransientPlayRunReadError.call(void 0, error)) {
9688
9688
  return null;
9689
9689
  }
9690
9690
  throw error;
@@ -9892,7 +9892,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9892
9892
  lastPhase
9893
9893
  });
9894
9894
  }
9895
- if (lastKnownWorkflowId && _chunkNPU4SMKTjs.isTransientPlayRunReadError.call(void 0, error)) {
9895
+ if (lastKnownWorkflowId && _chunkPGBSGPQ3js.isTransientPlayRunReadError.call(void 0, error)) {
9896
9896
  if (timeout) {
9897
9897
  clearTimeout(timeout);
9898
9898
  }
@@ -9928,7 +9928,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9928
9928
  onRunAdmitted: confirmAdmission
9929
9929
  });
9930
9930
  }
9931
- if (!lastKnownWorkflowId && _chunkNPU4SMKTjs.isTransientPlayRunReadError.call(void 0, error)) {
9931
+ if (!lastKnownWorkflowId && _chunkPGBSGPQ3js.isTransientPlayRunReadError.call(void 0, error)) {
9932
9932
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
9933
9933
  phase: "cli.play_start_stream_transient_failure",
9934
9934
  ms: Date.now() - startedAt,
@@ -10027,7 +10027,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10027
10027
  "logs"
10028
10028
  ]);
10029
10029
  function formatPlayLogLine(rawLine, state) {
10030
- const classified = _chunkNPU4SMKTjs.classifyLogLine.call(void 0, rawLine);
10030
+ const classified = _chunkPGBSGPQ3js.classifyLogLine.call(void 0, rawLine);
10031
10031
  const line = classified.line;
10032
10032
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10033
10033
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _308 => _308[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10042,14 +10042,14 @@ function formatPlayLogLine(rawLine, state) {
10042
10042
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10043
10043
  const providerWait = formatProviderCapacityWaitLogLine(line);
10044
10044
  if (providerWait && !state.verbose) {
10045
- return _chunkNPU4SMKTjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10045
+ return _chunkPGBSGPQ3js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10046
10046
  }
10047
10047
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10048
10048
  if (mapProgress && !state.verbose) {
10049
- return _chunkNPU4SMKTjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10049
+ return _chunkPGBSGPQ3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10050
10050
  }
10051
10051
  if (/\[worker\] picked up run\b/.test(message)) {
10052
- if (!_chunkNPU4SMKTjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10052
+ if (!_chunkPGBSGPQ3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10053
10053
  return null;
10054
10054
  }
10055
10055
  if (state.emittedRunnerStarted) {
@@ -10062,7 +10062,7 @@ function formatPlayLogLine(rawLine, state) {
10062
10062
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10063
10063
  );
10064
10064
  if (mapStart) {
10065
- if (!_chunkNPU4SMKTjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10065
+ if (!_chunkPGBSGPQ3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10066
10066
  return null;
10067
10067
  }
10068
10068
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10072,7 +10072,7 @@ function formatPlayLogLine(rawLine, state) {
10072
10072
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10073
10073
  );
10074
10074
  if (mapDone) {
10075
- if (!_chunkNPU4SMKTjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10075
+ if (!_chunkPGBSGPQ3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10076
10076
  return null;
10077
10077
  }
10078
10078
  const [, results, executed, cached] = mapDone;
@@ -11361,7 +11361,7 @@ function formatRecentRunLogLines(value) {
11361
11361
  (line) => typeof line === "string"
11362
11362
  );
11363
11363
  if (tail.length === 0) return [];
11364
- const shown = tail.map((line) => _chunkNPU4SMKTjs.classifyLogLine.call(void 0, line)).filter(
11364
+ const shown = tail.map((line) => _chunkPGBSGPQ3js.classifyLogLine.call(void 0, line)).filter(
11365
11365
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
11366
11366
  ).slice(-8);
11367
11367
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11641,7 +11641,7 @@ function writePlayResult(status, jsonOutput, options) {
11641
11641
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _389 => _389.hits]), () => ( null));
11642
11642
  if (jsonOutput) {
11643
11643
  const payload2 = _optionalChain([options, 'optionalAccess', _390 => _390.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11644
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
11644
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
11645
11645
  hits ? { ...payload2, hits } : payload2,
11646
11646
  { json: true, fields: _optionalChain([options, 'optionalAccess', _391 => _391.jsonFields]) }
11647
11647
  );
@@ -11657,7 +11657,7 @@ function writePlayResult(status, jsonOutput, options) {
11657
11657
  ...buildPlayCompletionTextLines(status),
11658
11658
  ...formatRunHitsLines(hits)
11659
11659
  ];
11660
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, displayPackage, {
11660
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, displayPackage, {
11661
11661
  json: false,
11662
11662
  text: `${lines2.join("\n")}
11663
11663
  `
@@ -11708,7 +11708,7 @@ function writePlayResult(status, jsonOutput, options) {
11708
11708
  lines.push(...buildBillingRollupTextLines(status));
11709
11709
  const compact = compactPlayStatus(status);
11710
11710
  const payload = _optionalChain([options, 'optionalAccess', _393 => _393.fullJson]) ? status : compact;
11711
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
11711
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
11712
11712
  {
11713
11713
  ...payload,
11714
11714
  render: {
@@ -12480,7 +12480,7 @@ function writeStartedPlayRun(input) {
12480
12480
  dashboardUrl: input.dashboardUrl,
12481
12481
  package: input.package
12482
12482
  };
12483
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12483
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12484
12484
  json: true,
12485
12485
  fields: input.jsonFields
12486
12486
  });
@@ -12502,7 +12502,7 @@ function writeStartedPlayRun(input) {
12502
12502
  input.progress.writeLine(output2, process.stdout);
12503
12503
  return;
12504
12504
  }
12505
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, input.package, {
12505
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, input.package, {
12506
12506
  json: false,
12507
12507
  text: `${output2}
12508
12508
  `
@@ -12531,7 +12531,7 @@ function writeStartedPlayRun(input) {
12531
12531
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)} --json`] : []
12532
12532
  ];
12533
12533
  if (input.jsonOutput) {
12534
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12534
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12535
12535
  return;
12536
12536
  }
12537
12537
  if (input.dashboardUrl) {
@@ -12542,7 +12542,7 @@ function writeStartedPlayRun(input) {
12542
12542
  input.progress.writeLine(output, process.stdout);
12543
12543
  return;
12544
12544
  }
12545
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
12545
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
12546
12546
  {
12547
12547
  ...payload,
12548
12548
  render: { sections: [{ title: "play run", lines }] }
@@ -12552,7 +12552,7 @@ function writeStartedPlayRun(input) {
12552
12552
  );
12553
12553
  }
12554
12554
  function parsePlayCheckOptions(args) {
12555
- const selection = _chunkR2T4HQ64js.parseJsonFields.call(void 0, args, "check");
12555
+ const selection = _chunkJ2WSV37Fjs.parseJsonFields.call(void 0, args, "check");
12556
12556
  args = selection.args;
12557
12557
  const target = args[0];
12558
12558
  if (!target || target.startsWith("-")) {
@@ -12564,7 +12564,7 @@ function parsePlayCheckOptions(args) {
12564
12564
  if (arg !== "--json" && arg !== "--full")
12565
12565
  throw new Error(`Unknown plays check option: ${arg}`);
12566
12566
  }
12567
- const jsonOutput = _chunkR2T4HQ64js.argsWantJson.call(void 0, args);
12567
+ const jsonOutput = _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args);
12568
12568
  return {
12569
12569
  target,
12570
12570
  jsonOutput,
@@ -12640,7 +12640,7 @@ ${PLAY_PUBLISH_USAGE}`
12640
12640
  useLatest,
12641
12641
  expectedArtifactHash,
12642
12642
  dryRun,
12643
- jsonOutput: _chunkR2T4HQ64js.argsWantJson.call(void 0, args)
12643
+ jsonOutput: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)
12644
12644
  };
12645
12645
  }
12646
12646
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12681,7 +12681,7 @@ ${PLAY_SAVE_USAGE}`);
12681
12681
  target,
12682
12682
  expectedArtifactHash,
12683
12683
  dryRun,
12684
- jsonOutput: _chunkR2T4HQ64js.argsWantJson.call(void 0, args)
12684
+ jsonOutput: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)
12685
12685
  };
12686
12686
  }
12687
12687
  function printScheduledPlayCapacity(capacity) {
@@ -12892,7 +12892,7 @@ function printBundledRuntimeWarning(bundle) {
12892
12892
  async function handlePlayCheck(args) {
12893
12893
  const options = parsePlayCheckOptions(args);
12894
12894
  if (!isFileTarget2(options.target)) {
12895
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
12895
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
12896
12896
  try {
12897
12897
  await assertCanonicalNamedPlayReference(client, options.target, {
12898
12898
  command: "check"
@@ -12921,7 +12921,7 @@ async function handlePlayCheck(args) {
12921
12921
  },
12922
12922
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12923
12923
  };
12924
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, result, {
12924
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, result, {
12925
12925
  json: options.jsonOutput,
12926
12926
  fields: options.jsonFields,
12927
12927
  text: renderPlayCheckOutput(result) + "\n"
@@ -12931,7 +12931,7 @@ async function handlePlayCheck(args) {
12931
12931
  const resolved = _path.resolve.call(void 0, options.target);
12932
12932
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12933
12933
  if (options.jsonOutput) {
12934
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
12934
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
12935
12935
  {
12936
12936
  kind: "play_check",
12937
12937
  checked: "named_contract",
@@ -12973,7 +12973,7 @@ async function handlePlayCheck(args) {
12973
12973
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full --json`,
12974
12974
  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
12975
12975
  });
12976
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, output, {
12976
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, output, {
12977
12977
  json: options.jsonOutput,
12978
12978
  fields: options.jsonFields,
12979
12979
  text: renderPlayCheckOutput(output) + "\n"
@@ -13027,7 +13027,7 @@ async function checkOneExportedPlay(input) {
13027
13027
  }
13028
13028
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
13029
13029
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
13030
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
13030
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
13031
13031
  const integrationMode = resolveEvalIntegrationMode();
13032
13032
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
13033
13033
  playName: node.playName,
@@ -13104,7 +13104,7 @@ async function handleFileBackedRun(options, hooks) {
13104
13104
  );
13105
13105
  return 0;
13106
13106
  }
13107
- client = new (0, _chunkNPU4SMKTjs.DeeplineClient)(playRunClientOptions(options));
13107
+ client = new (0, _chunkPGBSGPQ3js.DeeplineClient)(playRunClientOptions(options));
13108
13108
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
13109
13109
  if (canDeferCompilerManifest) {
13110
13110
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
@@ -13299,7 +13299,7 @@ async function handleNamedRun(options, hooks) {
13299
13299
  if (options.target.kind !== "name") {
13300
13300
  throw new Error("Expected a named play run target.");
13301
13301
  }
13302
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)(playRunClientOptions(options));
13302
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)(playRunClientOptions(options));
13303
13303
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
13304
13304
  const playName = options.target.name;
13305
13305
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -13696,10 +13696,10 @@ function renderRunOverviewText(overview, extras = {}) {
13696
13696
  );
13697
13697
  return `${lines.join("\n")}
13698
13698
 
13699
- ${_chunkR2T4HQ64js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13699
+ ${_chunkJ2WSV37Fjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13700
13700
  }
13701
13701
  async function handleRunGet(args) {
13702
- const selection = _chunkR2T4HQ64js.parseJsonFields.call(void 0,
13702
+ const selection = _chunkJ2WSV37Fjs.parseJsonFields.call(void 0,
13703
13703
  args,
13704
13704
  args.includes("--config") ? "config" : "get"
13705
13705
  );
@@ -13712,7 +13712,7 @@ async function handleRunGet(args) {
13712
13712
  console.error(error instanceof Error ? error.message : usage2);
13713
13713
  return 1;
13714
13714
  }
13715
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
13715
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
13716
13716
  if (args.includes("--config")) {
13717
13717
  if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
13718
13718
  console.error(
@@ -13726,7 +13726,7 @@ async function handleRunGet(args) {
13726
13726
  "This server does not support recorded configuration reads."
13727
13727
  );
13728
13728
  }
13729
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
13729
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
13730
13730
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13731
13731
  { json: true, fields: selection.fields }
13732
13732
  );
@@ -13734,7 +13734,7 @@ async function handleRunGet(args) {
13734
13734
  }
13735
13735
  if (args.includes("--input")) {
13736
13736
  const input = await client.getRunInput(runId);
13737
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, input, { json: true });
13737
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, input, { json: true });
13738
13738
  return 0;
13739
13739
  }
13740
13740
  const full = args.includes("--full");
@@ -13748,8 +13748,8 @@ async function handleRunGet(args) {
13748
13748
  full: true,
13749
13749
  failedLogs: args.includes("--log-failed")
13750
13750
  }) : status;
13751
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
13752
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
13751
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
13752
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
13753
13753
  full ? legacyStatus : compactPlayStatus(legacyStatus),
13754
13754
  { json: true, fields: selection.fields }
13755
13755
  );
@@ -13765,8 +13765,8 @@ async function handleRunGet(args) {
13765
13765
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
13766
13766
  ]);
13767
13767
  const hitLines = formatRunHitsLines(hits);
13768
- const json = _chunkR2T4HQ64js.argsWantJson.call(void 0, args);
13769
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
13768
+ const json = _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args);
13769
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
13770
13770
  {
13771
13771
  ...overview,
13772
13772
  credits,
@@ -13869,9 +13869,9 @@ async function handleRunLifecycleStatus(args) {
13869
13869
  console.error(error instanceof Error ? error.message : usage2);
13870
13870
  return 1;
13871
13871
  }
13872
- const status = await new (0, _chunkNPU4SMKTjs.DeeplineClient)().runs.status(runId);
13873
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
13874
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, status, { json: true });
13872
+ const status = await new (0, _chunkPGBSGPQ3js.DeeplineClient)().runs.status(runId);
13873
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
13874
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, status, { json: true });
13875
13875
  return 0;
13876
13876
  }
13877
13877
  if (!status.available) {
@@ -13911,7 +13911,7 @@ async function handleRunsRerun(args) {
13911
13911
  console.error(error instanceof Error ? error.message : usage2);
13912
13912
  return 1;
13913
13913
  }
13914
- const options = { json: _chunkR2T4HQ64js.argsWantJson.call(void 0, args) };
13914
+ const options = { json: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args) };
13915
13915
  for (let index = 0; index < args.length; index += 1) {
13916
13916
  if (args[index] === "--idempotency-key") {
13917
13917
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -13976,8 +13976,8 @@ ${usage2}
13976
13976
  Discover Plays: ${next.discover}
13977
13977
  Active runs: ${next.running}`
13978
13978
  );
13979
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
13980
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
13979
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
13980
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
13981
13981
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
13982
13982
  { json: true }
13983
13983
  );
@@ -13992,7 +13992,7 @@ Active runs: ${next.running}`
13992
13992
  console.error("--offset requires --play.");
13993
13993
  return 1;
13994
13994
  }
13995
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
13995
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
13996
13996
  const page = await client.runs.listPage({
13997
13997
  ...playName ? { play: playName } : {},
13998
13998
  ...statusFilter ? { status: statusFilter } : {},
@@ -14061,7 +14061,7 @@ Active runs: ${next.running}`
14061
14061
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14062
14062
  );
14063
14063
  }
14064
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
14064
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
14065
14065
  {
14066
14066
  runs,
14067
14067
  count: runs.length,
@@ -14075,7 +14075,7 @@ Active runs: ${next.running}`
14075
14075
  },
14076
14076
  render: { sections: [{ title: "runs", lines }] }
14077
14077
  },
14078
- { json: _chunkR2T4HQ64js.argsWantJson.call(void 0, args) }
14078
+ { json: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args) }
14079
14079
  );
14080
14080
  return 0;
14081
14081
  }
@@ -14105,7 +14105,7 @@ async function handleRunTail(args) {
14105
14105
  console.error("--log-level requires one of: debug, info, warn, error.");
14106
14106
  return 1;
14107
14107
  }
14108
- const parsed = _chunkNPU4SMKTjs.parseLogLevel.call(void 0, value);
14108
+ const parsed = _chunkPGBSGPQ3js.parseLogLevel.call(void 0, value);
14109
14109
  if (!parsed) {
14110
14110
  console.error(
14111
14111
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14143,9 +14143,9 @@ async function handleRunTail(args) {
14143
14143
  );
14144
14144
  return 1;
14145
14145
  }
14146
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
14146
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
14147
14147
  const jsonLines = args.includes("--jsonl");
14148
- const jsonOutput = !jsonLines && _chunkR2T4HQ64js.argsWantJson.call(void 0, args);
14148
+ const jsonOutput = !jsonLines && _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args);
14149
14149
  const compact = args.includes("--compact");
14150
14150
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14151
14151
  const compactState = {
@@ -14226,7 +14226,7 @@ async function handleRunLogs(args) {
14226
14226
  ]);
14227
14227
  const cursorIndex = args.indexOf("--cursor");
14228
14228
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14229
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkNPU4SMKTjs.isRunLogsCursor.call(void 0, cursorValue));
14229
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkPGBSGPQ3js.isRunLogsCursor.call(void 0, cursorValue));
14230
14230
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14231
14231
  return handleRunEventSearch(args);
14232
14232
  }
@@ -14260,7 +14260,7 @@ async function handleRunLogs(args) {
14260
14260
  console.error("--log-level requires one of: debug, info, warn, error.");
14261
14261
  return 1;
14262
14262
  }
14263
- const parsed = _chunkNPU4SMKTjs.parseLogLevel.call(void 0, value);
14263
+ const parsed = _chunkPGBSGPQ3js.parseLogLevel.call(void 0, value);
14264
14264
  if (!parsed) {
14265
14265
  console.error(
14266
14266
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14307,12 +14307,12 @@ async function handleRunLogs(args) {
14307
14307
  );
14308
14308
  return 1;
14309
14309
  }
14310
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
14310
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
14311
14311
  if (outPath) {
14312
14312
  const result2 = await client.runs.logs(runId, { all: true });
14313
- const logs = result2.entries.filter((line) => _chunkNPU4SMKTjs.logLevelReaches.call(void 0, _chunkNPU4SMKTjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkNPU4SMKTjs.classifyLogLine.call(void 0, line).line);
14313
+ const logs = result2.entries.filter((line) => _chunkPGBSGPQ3js.logLevelReaches.call(void 0, _chunkPGBSGPQ3js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkPGBSGPQ3js.classifyLogLine.call(void 0, line).line);
14314
14314
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14315
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
14315
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
14316
14316
  {
14317
14317
  runId: result2.runId,
14318
14318
  log_path: outPath,
@@ -14335,7 +14335,7 @@ async function handleRunLogs(args) {
14335
14335
  ]
14336
14336
  }
14337
14337
  },
14338
- { json: _chunkR2T4HQ64js.argsWantJson.call(void 0, args) }
14338
+ { json: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args) }
14339
14339
  );
14340
14340
  return 0;
14341
14341
  }
@@ -14366,7 +14366,7 @@ async function handleRunLogs(args) {
14366
14366
  }
14367
14367
  };
14368
14368
  const text = buildRunLogsText(filteredResult);
14369
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
14369
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
14370
14370
  {
14371
14371
  runId: result.runId,
14372
14372
  totalCount: result.totalCount,
@@ -14390,7 +14390,7 @@ async function handleRunLogs(args) {
14390
14390
  render: { sections: [{ title: "run logs", lines: entries }] }
14391
14391
  },
14392
14392
  {
14393
- json: _chunkR2T4HQ64js.argsWantJson.call(void 0, args),
14393
+ json: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args),
14394
14394
  text
14395
14395
  }
14396
14396
  );
@@ -14414,7 +14414,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14414
14414
  );
14415
14415
  }
14416
14416
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14417
- (entry) => _chunkNPU4SMKTjs.logLevelReaches.call(void 0, _chunkNPU4SMKTjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14417
+ (entry) => _chunkPGBSGPQ3js.logLevelReaches.call(void 0, _chunkPGBSGPQ3js.classifyLogLine.call(void 0, entry.line).level, logLevel)
14418
14418
  );
14419
14419
  const selected = matching.slice(-limit);
14420
14420
  const olderMatchesExist = matching.length > selected.length;
@@ -14424,7 +14424,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14424
14424
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _483 => _483.at, 'call', _484 => _484(-1), 'optionalAccess', _485 => _485.seq]), () => ( null)),
14425
14425
  truncated: result.truncated || olderMatchesExist,
14426
14426
  hasMore: olderMatchesExist,
14427
- nextCursor: olderMatchesExist ? _chunkNPU4SMKTjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14427
+ nextCursor: olderMatchesExist ? _chunkPGBSGPQ3js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14428
14428
  };
14429
14429
  }
14430
14430
  async function handleRunEventSearch(args) {
@@ -14491,7 +14491,7 @@ ${usage2}`);
14491
14491
  namespace,
14492
14492
  ...backend ? { backend } : {}
14493
14493
  } : void 0;
14494
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
14494
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
14495
14495
  const result = await client.runs.searchEvents({
14496
14496
  ...runId ? { runId } : {},
14497
14497
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14564,7 +14564,7 @@ ${renderedDetails}` : ""}`;
14564
14564
  String(limit),
14565
14565
  "--json"
14566
14566
  ].join(" ") : null;
14567
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
14567
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
14568
14568
  {
14569
14569
  events,
14570
14570
  nextCursor: result.nextCursor,
@@ -14575,14 +14575,14 @@ ${renderedDetails}` : ""}`;
14575
14575
  render: { sections: [{ title: "runtime events", lines }] }
14576
14576
  },
14577
14577
  {
14578
- json: _chunkR2T4HQ64js.argsWantJson.call(void 0, args),
14578
+ json: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args),
14579
14579
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14580
14580
  }
14581
14581
  );
14582
14582
  return 0;
14583
14583
  }
14584
14584
  function buildRunLogsText(result) {
14585
- const lines = result.entries.map((line) => _chunkNPU4SMKTjs.classifyLogLine.call(void 0, line).line);
14585
+ const lines = result.entries.map((line) => _chunkPGBSGPQ3js.classifyLogLine.call(void 0, line).line);
14586
14586
  if (result.warning) {
14587
14587
  if (lines.length > 0) lines.push("");
14588
14588
  lines.push(`warning: ${result.warning}`);
@@ -14616,7 +14616,7 @@ async function handleRunStop(args) {
14616
14616
  reason = args[++index];
14617
14617
  }
14618
14618
  }
14619
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
14619
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
14620
14620
  const result = await client.runs.stop(runId, { reason });
14621
14621
  const state = resolveRunStopState(result);
14622
14622
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14631,7 +14631,7 @@ async function handleRunStop(args) {
14631
14631
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14632
14632
  `inspect: deepline runs get ${runId} --full --json`
14633
14633
  ];
14634
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
14634
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
14635
14635
  {
14636
14636
  ...cancelling,
14637
14637
  state,
@@ -14646,7 +14646,7 @@ async function handleRunStop(args) {
14646
14646
  ]
14647
14647
  }
14648
14648
  },
14649
- { json: _chunkR2T4HQ64js.argsWantJson.call(void 0, args) }
14649
+ { json: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args) }
14650
14650
  );
14651
14651
  return 0;
14652
14652
  }
@@ -14663,7 +14663,7 @@ async function handleRunStop(args) {
14663
14663
  ];
14664
14664
  process.stderr.write(`${lines2.join("\n")}
14665
14665
  `);
14666
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
14666
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
14667
14667
  {
14668
14668
  ...result,
14669
14669
  render: {
@@ -14678,7 +14678,7 @@ async function handleRunStop(args) {
14678
14678
  ]
14679
14679
  }
14680
14680
  },
14681
- { json: _chunkR2T4HQ64js.argsWantJson.call(void 0, args) }
14681
+ { json: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args) }
14682
14682
  );
14683
14683
  return 1;
14684
14684
  }
@@ -14689,12 +14689,12 @@ async function handleRunStop(args) {
14689
14689
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14690
14690
  ] : []
14691
14691
  ];
14692
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
14692
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
14693
14693
  {
14694
14694
  ...result,
14695
14695
  render: { sections: [{ title: "run stop", lines }] }
14696
14696
  },
14697
- { json: _chunkR2T4HQ64js.argsWantJson.call(void 0, args) }
14697
+ { json: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args) }
14698
14698
  );
14699
14699
  return 0;
14700
14700
  }
@@ -14744,18 +14744,18 @@ async function handleRunStopAll(args) {
14744
14744
  reason = args[++index];
14745
14745
  }
14746
14746
  }
14747
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
14747
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
14748
14748
  if (dryRun) {
14749
14749
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14750
14750
  const lines2 = buildStopAllDryRunTextLines(result2);
14751
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
14751
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
14752
14752
  {
14753
14753
  ...result2,
14754
14754
  render: {
14755
14755
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14756
14756
  }
14757
14757
  },
14758
- { json: _chunkR2T4HQ64js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14758
+ { json: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14759
14759
  ` }
14760
14760
  );
14761
14761
  return 0;
@@ -14768,17 +14768,17 @@ async function handleRunStopAll(args) {
14768
14768
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14769
14769
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14770
14770
  ];
14771
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
14771
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
14772
14772
  {
14773
14773
  ...result,
14774
14774
  render: { sections: [{ title: "workspace stop-all", lines }] }
14775
14775
  },
14776
- { json: _chunkR2T4HQ64js.argsWantJson.call(void 0, args) }
14776
+ { json: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args) }
14777
14777
  );
14778
14778
  return result.failed > 0 || result.partial ? 1 : 0;
14779
14779
  }
14780
14780
  async function handleRunExport(args) {
14781
- const selection = _chunkR2T4HQ64js.parseJsonFields.call(void 0, args, "export");
14781
+ const selection = _chunkJ2WSV37Fjs.parseJsonFields.call(void 0, args, "export");
14782
14782
  args = selection.args;
14783
14783
  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]";
14784
14784
  let runId;
@@ -14837,16 +14837,16 @@ async function handleRunExport(args) {
14837
14837
  "INVALID_ARGUMENT"
14838
14838
  );
14839
14839
  }
14840
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
14840
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
14841
14841
  let status = await client.getPlayStatus(runId, { full: true });
14842
14842
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14843
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkR2T4HQ64js.argsWantJson.call(void 0, args));
14843
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args));
14844
14844
  try {
14845
14845
  await waitForPlayCompletionByWatch({
14846
14846
  client,
14847
14847
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14848
14848
  workflowId: runId,
14849
- jsonOutput: _chunkR2T4HQ64js.argsWantJson.call(void 0, args),
14849
+ jsonOutput: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args),
14850
14850
  emitLogs: false,
14851
14851
  waitTimeoutMs,
14852
14852
  startedAt: Date.now(),
@@ -14946,8 +14946,8 @@ async function handleRunExport(args) {
14946
14946
  "utf-8"
14947
14947
  );
14948
14948
  }
14949
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, payload, {
14950
- json: _chunkR2T4HQ64js.argsWantJson.call(void 0, args),
14949
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, payload, {
14950
+ json: _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args),
14951
14951
  fields: selection.fields,
14952
14952
  text: `${lines.join("\n")}
14953
14953
  `
@@ -14968,10 +14968,10 @@ async function handlePlayGet(args) {
14968
14968
  );
14969
14969
  return 2;
14970
14970
  }
14971
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
14971
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
14972
14972
  const explicitJson = args.includes("--json");
14973
14973
  const sourceOutput = args.includes("--source");
14974
- const jsonOutput = sourceOutput ? explicitJson : _chunkR2T4HQ64js.argsWantJson.call(void 0, args);
14974
+ const jsonOutput = sourceOutput ? explicitJson : _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args);
14975
14975
  const requestedRevisionFlags = [
14976
14976
  args.includes("--working"),
14977
14977
  args.includes("--live"),
@@ -15031,7 +15031,7 @@ async function handlePlayGet(args) {
15031
15031
  }
15032
15032
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15033
15033
  if (jsonOutput) {
15034
- _chunkR2T4HQ64js.printCompactJson.call(void 0, {
15034
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, {
15035
15035
  ...detail,
15036
15036
  ...materializedFile ? {
15037
15037
  message: loadedMessage,
@@ -15118,8 +15118,8 @@ async function handlePlayVersions(args) {
15118
15118
  console.error("Usage: deepline plays versions --name <name> [--json]");
15119
15119
  return 1;
15120
15120
  }
15121
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
15122
- const jsonOutput = _chunkR2T4HQ64js.argsWantJson.call(void 0, args);
15121
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
15122
+ const jsonOutput = _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args);
15123
15123
  await assertCanonicalNamedPlayReference(client, playName, {
15124
15124
  command: "versions"
15125
15125
  });
@@ -15127,7 +15127,7 @@ async function handlePlayVersions(args) {
15127
15127
  parseReferencedPlayTarget2(playName).playName
15128
15128
  );
15129
15129
  if (jsonOutput) {
15130
- _chunkR2T4HQ64js.printCompactJson.call(void 0, { versions });
15130
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, { versions });
15131
15131
  return 0;
15132
15132
  }
15133
15133
  if (versions.length === 0) {
@@ -15159,9 +15159,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
15159
15159
  "signals"
15160
15160
  ];
15161
15161
  async function handlePlayList(args) {
15162
- const jsonOutput = _chunkR2T4HQ64js.argsWantJson.call(void 0, args);
15162
+ const jsonOutput = _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args);
15163
15163
  const showCost = args.includes("--show-cost");
15164
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
15164
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
15165
15165
  const categoriesIndex = args.indexOf("--categories");
15166
15166
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _521 => _521[categoriesIndex + 1], 'optionalAccess', _522 => _522.trim, 'call', _523 => _523()]) : void 0;
15167
15167
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15258,7 +15258,7 @@ async function handlePlayList(args) {
15258
15258
  lines.push("List truncated \u2014 more plays are available.");
15259
15259
  lines.push(`Next page: ${nextPage}`);
15260
15260
  }
15261
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
15261
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
15262
15262
  {
15263
15263
  plays,
15264
15264
  count: plays.length,
@@ -15276,7 +15276,7 @@ async function handlePlayList(args) {
15276
15276
  }
15277
15277
  async function handlePlayPin(args, pinned) {
15278
15278
  const target = _optionalChain([args, 'access', _530 => _530.find, 'call', _531 => _531((arg) => !arg.startsWith("-")), 'optionalAccess', _532 => _532.trim, 'call', _533 => _533()]);
15279
- const jsonOutput = _chunkR2T4HQ64js.argsWantJson.call(void 0, args);
15279
+ const jsonOutput = _chunkJ2WSV37Fjs.argsWantJson.call(void 0, args);
15280
15280
  const dryRun = args.includes("--dry-run");
15281
15281
  if (!target) {
15282
15282
  console.error(
@@ -15294,11 +15294,11 @@ async function handlePlayPin(args, pinned) {
15294
15294
  const name = parsedTarget.playName;
15295
15295
  const plan = { name, pinned, dryRun };
15296
15296
  if (dryRun) {
15297
- _chunkR2T4HQ64js.printCompactJson.call(void 0, plan);
15297
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, plan);
15298
15298
  return 0;
15299
15299
  }
15300
- const result = await new (0, _chunkNPU4SMKTjs.DeeplineClient)().setPlayPinned(name, pinned);
15301
- if (jsonOutput) _chunkR2T4HQ64js.printCompactJson.call(void 0, result);
15300
+ const result = await new (0, _chunkPGBSGPQ3js.DeeplineClient)().setPlayPinned(name, pinned);
15301
+ if (jsonOutput) _chunkJ2WSV37Fjs.printCompactJson.call(void 0, result);
15302
15302
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15303
15303
  return 0;
15304
15304
  }
@@ -15314,7 +15314,7 @@ function csvColumnLines(csvInput) {
15314
15314
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
15315
15315
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
15316
15316
  }),
15317
- _chunkNPU4SMKTjs.CSV_HEADER_MATCHING_NOTE
15317
+ _chunkPGBSGPQ3js.CSV_HEADER_MATCHING_NOTE
15318
15318
  ];
15319
15319
  }
15320
15320
  function describedPlay(play) {
@@ -15458,12 +15458,12 @@ async function handlePlayGrep(args) {
15458
15458
  console.error("Usage: deepline plays grep <query> [--json]");
15459
15459
  return 1;
15460
15460
  }
15461
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
15461
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
15462
15462
  const results = (await client.listPlays({ grep: query })).map(
15463
15463
  summarizePlayGrepResult
15464
15464
  );
15465
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
15466
- _chunkR2T4HQ64js.printCompactJson.call(void 0, {
15465
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
15466
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, {
15467
15467
  plays: results,
15468
15468
  count: results.length,
15469
15469
  query,
@@ -15486,7 +15486,7 @@ async function handlePlayGrep(args) {
15486
15486
  return 0;
15487
15487
  }
15488
15488
  async function handlePlayDescribe(args) {
15489
- const selection = _chunkR2T4HQ64js.parseJsonFields.call(void 0, args, "describe");
15489
+ const selection = _chunkJ2WSV37Fjs.parseJsonFields.call(void 0, args, "describe");
15490
15490
  args = selection.args;
15491
15491
  const playName = args[0];
15492
15492
  if (!playName) {
@@ -15520,8 +15520,8 @@ async function handlePlayDescribe(args) {
15520
15520
  `deepline plays check ${playName}`,
15521
15521
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15522
15522
  ];
15523
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
15524
- _chunkR2T4HQ64js.printCompactJson.call(void 0, {
15523
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
15524
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, {
15525
15525
  ok: false,
15526
15526
  error: { message },
15527
15527
  next
@@ -15535,7 +15535,7 @@ async function handlePlayDescribe(args) {
15535
15535
  }
15536
15536
  return 2;
15537
15537
  }
15538
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
15538
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
15539
15539
  await assertCanonicalNamedPlayReference(client, playName, {
15540
15540
  command: "describe"
15541
15541
  });
@@ -15545,9 +15545,9 @@ async function handlePlayDescribe(args) {
15545
15545
  compact: args.includes("--compact")
15546
15546
  }
15547
15547
  );
15548
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
15549
- if (selection.fields) _chunkR2T4HQ64js.printJson.call(void 0, play, selection.fields);
15550
- else _chunkR2T4HQ64js.printCompactJson.call(void 0, play);
15548
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
15549
+ if (selection.fields) _chunkJ2WSV37Fjs.printJson.call(void 0, play, selection.fields);
15550
+ else _chunkJ2WSV37Fjs.printCompactJson.call(void 0, play);
15551
15551
  return 0;
15552
15552
  }
15553
15553
  printPlayDescription(play);
@@ -15591,7 +15591,7 @@ async function handlePlaySave(args) {
15591
15591
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15592
15592
  };
15593
15593
  if (options.jsonOutput) {
15594
- _chunkR2T4HQ64js.printCompactJson.call(void 0, result);
15594
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, result);
15595
15595
  } else {
15596
15596
  console.error(result.message);
15597
15597
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15613,7 +15613,7 @@ async function handlePlaySave(args) {
15613
15613
  };
15614
15614
  if (options.dryRun) {
15615
15615
  if (options.jsonOutput) {
15616
- _chunkR2T4HQ64js.printCompactJson.call(void 0, dryRun);
15616
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, dryRun);
15617
15617
  } else {
15618
15618
  console.log(`Dry run: ${playName}`);
15619
15619
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15622,7 +15622,7 @@ async function handlePlaySave(args) {
15622
15622
  }
15623
15623
  return 0;
15624
15624
  }
15625
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
15625
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
15626
15626
  try {
15627
15627
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
15628
15628
  "cli.play_save_compile_manifests",
@@ -15658,7 +15658,7 @@ async function handlePlaySave(args) {
15658
15658
  }
15659
15659
  };
15660
15660
  if (options.jsonOutput) {
15661
- _chunkR2T4HQ64js.printCompactJson.call(void 0, result);
15661
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, result);
15662
15662
  } else {
15663
15663
  console.log(
15664
15664
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15684,7 +15684,7 @@ async function handlePlayPublish(args) {
15684
15684
  }
15685
15685
  const { target: playName, useLatest } = options;
15686
15686
  let revisionId = options.revisionId;
15687
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
15687
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
15688
15688
  if (isFileTarget2(playName)) {
15689
15689
  if (revisionId || useLatest) {
15690
15690
  console.error(
@@ -15716,7 +15716,7 @@ async function handlePlayPublish(args) {
15716
15716
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15717
15717
  };
15718
15718
  if (options.jsonOutput) {
15719
- _chunkR2T4HQ64js.printCompactJson.call(void 0, result3);
15719
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, result3);
15720
15720
  } else {
15721
15721
  console.error(result3.message);
15722
15722
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15739,7 +15739,7 @@ async function handlePlayPublish(args) {
15739
15739
  };
15740
15740
  if (options.dryRun) {
15741
15741
  if (options.jsonOutput) {
15742
- _chunkR2T4HQ64js.printCompactJson.call(void 0, dryRun);
15742
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, dryRun);
15743
15743
  } else {
15744
15744
  console.log(`Dry run: ${rootPlayName}`);
15745
15745
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15807,7 +15807,7 @@ async function handlePlayPublish(args) {
15807
15807
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15808
15808
  };
15809
15809
  if (options.jsonOutput) {
15810
- _chunkR2T4HQ64js.printCompactJson.call(void 0, result2);
15810
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, result2);
15811
15811
  } else {
15812
15812
  printPublishReceipt({
15813
15813
  name: rootPlayName,
@@ -15838,7 +15838,7 @@ async function handlePlayPublish(args) {
15838
15838
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15839
15839
  latest: useLatest
15840
15840
  };
15841
- _chunkR2T4HQ64js.printCompactJson.call(void 0, result2);
15841
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, result2);
15842
15842
  return 0;
15843
15843
  }
15844
15844
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -15862,7 +15862,7 @@ async function handlePlayPublish(args) {
15862
15862
  revisionId ? { revisionId } : {}
15863
15863
  );
15864
15864
  if (options.jsonOutput) {
15865
- _chunkR2T4HQ64js.printCompactJson.call(void 0, result);
15865
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, result);
15866
15866
  } else {
15867
15867
  printPublishReceipt({
15868
15868
  name: result.name,
@@ -15902,7 +15902,7 @@ async function handlePlayDelete(args) {
15902
15902
  );
15903
15903
  return 2;
15904
15904
  }
15905
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
15905
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
15906
15906
  let detail;
15907
15907
  try {
15908
15908
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -15926,8 +15926,8 @@ async function handlePlayDelete(args) {
15926
15926
  name: resolvedName,
15927
15927
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
15928
15928
  };
15929
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
15930
- _chunkR2T4HQ64js.printCompactJson.call(void 0, result2);
15929
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
15930
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, result2);
15931
15931
  } else {
15932
15932
  process.stdout.write(
15933
15933
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -15937,8 +15937,8 @@ async function handlePlayDelete(args) {
15937
15937
  return 0;
15938
15938
  }
15939
15939
  const result = await client.deletePlay(resolvedName);
15940
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
15941
- _chunkR2T4HQ64js.printCompactJson.call(void 0, result);
15940
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
15941
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, result);
15942
15942
  return result.archived || result.alreadyArchived ? 0 : 4;
15943
15943
  }
15944
15944
  if (result.alreadyArchived) {
@@ -15977,13 +15977,13 @@ async function handlePlayRestore(args) {
15977
15977
  );
15978
15978
  return 2;
15979
15979
  }
15980
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
15980
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
15981
15981
  try {
15982
15982
  const result = await client.restorePlay(
15983
15983
  parseReferencedPlayTarget2(playName).playName
15984
15984
  );
15985
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
15986
- _chunkR2T4HQ64js.printCompactJson.call(void 0, result);
15985
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
15986
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, result);
15987
15987
  return result.restored || result.alreadyActive ? 0 : 4;
15988
15988
  }
15989
15989
  if (result.alreadyActive) {
@@ -16090,7 +16090,7 @@ Examples:
16090
16090
  ).action(async (target, options) => {
16091
16091
  process.exitCode = await handlePlayCheck([
16092
16092
  target,
16093
- ..._chunkR2T4HQ64js.jsonFieldArgs.call(void 0, options.json),
16093
+ ..._chunkJ2WSV37Fjs.jsonFieldArgs.call(void 0, options.json),
16094
16094
  ...options.full ? ["--full"] : []
16095
16095
  ]);
16096
16096
  });
@@ -16318,9 +16318,9 @@ Examples:
16318
16318
  const limit = Number(options.historyLimit);
16319
16319
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16320
16320
  throw new Error("--history-limit must be an integer from 1 to 30.");
16321
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
16321
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
16322
16322
  if (options.binding) {
16323
- _chunkR2T4HQ64js.printCompactJson.call(void 0,
16323
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0,
16324
16324
  await client.getPlayTriggerHistory(options.binding, { limit })
16325
16325
  );
16326
16326
  return;
@@ -16328,7 +16328,7 @@ Examples:
16328
16328
  const result = await client.listPlayTriggerInventory({
16329
16329
  cursor: options.cursor
16330
16330
  });
16331
- _chunkR2T4HQ64js.printCompactJson.call(void 0, {
16331
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, {
16332
16332
  ...result,
16333
16333
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
16334
16334
  });
@@ -16375,7 +16375,7 @@ Examples:
16375
16375
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16376
16376
  throw new Error("--group-by must be kind or trigger_source.");
16377
16377
  }
16378
- const result = await new (0, _chunkNPU4SMKTjs.DeeplineClient)().getPlaysActivity({
16378
+ const result = await new (0, _chunkPGBSGPQ3js.DeeplineClient)().getPlaysActivity({
16379
16379
  timeZone: options.timeZone,
16380
16380
  days,
16381
16381
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16389,7 +16389,7 @@ Examples:
16389
16389
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16390
16390
  );
16391
16391
  }
16392
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
16392
+ _chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
16393
16393
  { ...result },
16394
16394
  {
16395
16395
  json: options.json || !process.stdout.isTTY,
@@ -16418,7 +16418,7 @@ Examples:
16418
16418
  false
16419
16419
  );
16420
16420
  });
16421
- _chunkM4UPRX3Mjs.registerDeprecatedSearchCommand.call(void 0,
16421
+ _chunkJ6I4RSDGjs.registerDeprecatedSearchCommand.call(void 0,
16422
16422
  play,
16423
16423
  (options) => options.all ? ["plays"] : ["prebuilts"]
16424
16424
  );
@@ -16462,7 +16462,7 @@ Examples:
16462
16462
  );
16463
16463
  _chunkMX53GIOBjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16464
16464
  async (target, options) => {
16465
- const ownView = () => handlePlayDescribe(_chunkR2T4HQ64js.describeArgs.call(void 0, target, options));
16465
+ const ownView = () => handlePlayDescribe(_chunkJ2WSV37Fjs.describeArgs.call(void 0, target, options));
16466
16466
  const [flagText] = [options.json].filter(
16467
16467
  (value) => typeof value === "string"
16468
16468
  );
@@ -16473,7 +16473,7 @@ Examples:
16473
16473
  process.exitCode = await ownView();
16474
16474
  return;
16475
16475
  }
16476
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-5XKBPWD7.js")));
16476
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-Z2YFVBNO.js")));
16477
16477
  process.exitCode = await describeAnything(
16478
16478
  name,
16479
16479
  {
@@ -16590,7 +16590,7 @@ Examples:
16590
16590
  deepline plays deployments <deployment-id>
16591
16591
  `
16592
16592
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
16593
- async (id, options) => id ? _chunkNFEQHNDQjs.handleDeploymentGet.call(void 0, id, options) : _chunkNFEQHNDQjs.handleDeploymentsList.call(void 0, options)
16593
+ async (id, options) => id ? _chunk56UZ4LCTjs.handleDeploymentGet.call(void 0, id, options) : _chunk56UZ4LCTjs.handleDeploymentsList.call(void 0, options)
16594
16594
  );
16595
16595
  addPublishHelp(
16596
16596
  play.command("publish <target>").description(
@@ -16770,7 +16770,7 @@ Examples:
16770
16770
  ).action(async (runId, options) => {
16771
16771
  process.exitCode = await handleRunGet([
16772
16772
  runId,
16773
- ..._chunkR2T4HQ64js.jsonFieldArgs.call(void 0, options.json),
16773
+ ..._chunkJ2WSV37Fjs.jsonFieldArgs.call(void 0, options.json),
16774
16774
  ...options.full ? ["--full"] : [],
16775
16775
  ...options.input ? ["--input"] : [],
16776
16776
  ...options.config ? ["--config"] : [],
@@ -17046,7 +17046,7 @@ Examples:
17046
17046
  ...options.allowEmpty ? ["--allow-empty"] : [],
17047
17047
  ...options.wait ? ["--wait"] : [],
17048
17048
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17049
- ..._chunkR2T4HQ64js.jsonFieldArgs.call(void 0, options.json)
17049
+ ..._chunkJ2WSV37Fjs.jsonFieldArgs.call(void 0, options.json)
17050
17050
  ]);
17051
17051
  });
17052
17052
  const share = play.command("share").description(
@@ -17212,10 +17212,10 @@ async function handlePlayShareStatus(args) {
17212
17212
  return 2;
17213
17213
  }
17214
17214
  const name = parseReferencedPlayTarget2(target).playName;
17215
- const status = await new (0, _chunkNPU4SMKTjs.DeeplineClient)().getSharePage(name);
17215
+ const status = await new (0, _chunkPGBSGPQ3js.DeeplineClient)().getSharePage(name);
17216
17216
  const outputStatus = shareStatusForOutput(status);
17217
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
17218
- _chunkR2T4HQ64js.printCompactJson.call(void 0, outputStatus);
17217
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
17218
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, outputStatus);
17219
17219
  return 0;
17220
17220
  }
17221
17221
  if (!outputStatus.share) {
@@ -17254,7 +17254,7 @@ async function handlePlaySharePublish(args) {
17254
17254
  return 2;
17255
17255
  }
17256
17256
  const name = parseReferencedPlayTarget2(target).playName;
17257
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
17257
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
17258
17258
  let revisionId = shareFlagValue(args, "--revision-id");
17259
17259
  let resolvedVersion;
17260
17260
  if (!revisionId) {
@@ -17285,8 +17285,8 @@ async function handlePlaySharePublish(args) {
17285
17285
  );
17286
17286
  if (!hasCompleted) {
17287
17287
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17288
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
17289
- _chunkR2T4HQ64js.printCompactJson.call(void 0, {
17288
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
17289
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, {
17290
17290
  ok: false,
17291
17291
  code: "NO_SUCCESSFUL_RUN",
17292
17292
  message,
@@ -17310,8 +17310,8 @@ async function handlePlaySharePublish(args) {
17310
17310
  };
17311
17311
  if (args.includes("--dry-run")) {
17312
17312
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17313
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
17314
- _chunkR2T4HQ64js.printCompactJson.call(void 0, plan);
17313
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
17314
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, plan);
17315
17315
  } else {
17316
17316
  console.log(
17317
17317
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17321,8 +17321,8 @@ async function handlePlaySharePublish(args) {
17321
17321
  }
17322
17322
  const status = await client.publishSharePage(name, request);
17323
17323
  const outputStatus = shareStatusForOutput(status);
17324
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
17325
- _chunkR2T4HQ64js.printCompactJson.call(void 0, outputStatus);
17324
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
17325
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, outputStatus);
17326
17326
  return 0;
17327
17327
  }
17328
17328
  const urls = shareUrlFields(outputStatus);
@@ -17353,9 +17353,9 @@ async function handlePlayShareUpdate(args) {
17353
17353
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17354
17354
  ...seoIndexing ? { seoIndexing } : {}
17355
17355
  };
17356
- const status = await new (0, _chunkNPU4SMKTjs.DeeplineClient)().updateSharePage(name, request);
17357
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
17358
- _chunkR2T4HQ64js.printCompactJson.call(void 0, status);
17356
+ const status = await new (0, _chunkPGBSGPQ3js.DeeplineClient)().updateSharePage(name, request);
17357
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
17358
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, status);
17359
17359
  return 0;
17360
17360
  }
17361
17361
  console.log(`Updated ${name} share settings.`);
@@ -17370,7 +17370,7 @@ async function handlePlayShareRegenerate(args) {
17370
17370
  return 2;
17371
17371
  }
17372
17372
  const name = parseReferencedPlayTarget2(target).playName;
17373
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
17373
+ const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
17374
17374
  let revisionId = shareFlagValue(args, "--revision-id");
17375
17375
  const versionFlag = shareFlagValue(args, "--version");
17376
17376
  if (!revisionId && versionFlag) {
@@ -17387,8 +17387,8 @@ async function handlePlayShareRegenerate(args) {
17387
17387
  revisionId ? { revisionId } : {}
17388
17388
  );
17389
17389
  const outputStatus = shareStatusForOutput(status);
17390
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
17391
- _chunkR2T4HQ64js.printCompactJson.call(void 0, outputStatus);
17390
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
17391
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, outputStatus);
17392
17392
  return 0;
17393
17393
  }
17394
17394
  const urls = shareUrlFields(outputStatus);
@@ -17413,9 +17413,9 @@ async function handlePlayShareUnpublish(args) {
17413
17413
  return 2;
17414
17414
  }
17415
17415
  const name = parseReferencedPlayTarget2(target).playName;
17416
- const status = await new (0, _chunkNPU4SMKTjs.DeeplineClient)().unpublishSharePage(name);
17417
- if (_chunkR2T4HQ64js.argsWantJson.call(void 0, args)) {
17418
- _chunkR2T4HQ64js.printCompactJson.call(void 0, status);
17416
+ const status = await new (0, _chunkPGBSGPQ3js.DeeplineClient)().unpublishSharePage(name);
17417
+ if (_chunkJ2WSV37Fjs.argsWantJson.call(void 0, args)) {
17418
+ _chunkJ2WSV37Fjs.printCompactJson.call(void 0, status);
17419
17419
  return 0;
17420
17420
  }
17421
17421
  console.log(`Unpublished ${name}; the public page has been removed.`);