deepline 0.3.313 → 0.3.314

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 (100) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +50 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/run-event-query.ts +15 -2
  4. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +210 -2
  5. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +226 -14
  6. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +4 -18
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +5 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +66 -14
  9. package/dist/cli/{auth-LNA6WCQA.mjs → auth-GWF55S3N.mjs} +4 -4
  10. package/dist/cli/auth-QX2L4LPM.js +31 -0
  11. package/dist/cli/{billing-GJJUUCOZ.js → billing-2YU6E2IF.js} +70 -70
  12. package/dist/cli/{billing-D37QNIE3.mjs → billing-WWOJN7GV.mjs} +4 -4
  13. package/dist/cli/{chunk-DOI3UBGV.mjs → chunk-25SPKKF2.mjs} +1 -1
  14. package/dist/cli/{chunk-RDUS2EDE.mjs → chunk-2Q2IKUL5.mjs} +3 -3
  15. package/dist/cli/{chunk-QCXDLOGA.mjs → chunk-3A4LJUX6.mjs} +2 -2
  16. package/dist/cli/{chunk-XFEPRIW7.mjs → chunk-3CKNUJVZ.mjs} +4 -4
  17. package/dist/cli/{chunk-HM2TSTCT.mjs → chunk-3K6QD7Z3.mjs} +1 -1
  18. package/dist/cli/{chunk-FSZTWQFK.js → chunk-B5LUKLKH.js} +4 -4
  19. package/dist/cli/{chunk-BS4GAUMH.mjs → chunk-CPN2N6EZ.mjs} +7 -6
  20. package/dist/cli/{chunk-3ZC4PHJ6.mjs → chunk-DR3S76BG.mjs} +1 -1
  21. package/dist/cli/{chunk-P4N7233B.js → chunk-ENQZV7NR.js} +221 -220
  22. package/dist/cli/{chunk-MHETTUWR.js → chunk-GSRDZD7R.js} +2 -2
  23. package/dist/cli/{chunk-BLMO3JMZ.mjs → chunk-HTXZLCSP.mjs} +2 -2
  24. package/dist/cli/{chunk-YZ5PP6TX.mjs → chunk-IZTIBG7A.mjs} +13 -3
  25. package/dist/cli/{chunk-6G7ZYA6E.js → chunk-JNUHGWB2.js} +50 -50
  26. package/dist/cli/{chunk-UQBMMN4U.mjs → chunk-JZZT4GAY.mjs} +5 -5
  27. package/dist/cli/{chunk-VSAYSOVC.js → chunk-MLEJ2FYH.js} +212 -202
  28. package/dist/cli/{chunk-KNGTN7NE.js → chunk-NG4WDOGN.js} +6 -6
  29. package/dist/cli/{chunk-GQXEHX5X.js → chunk-ODEWOXWW.js} +6 -6
  30. package/dist/cli/{chunk-OTA5C7DD.mjs → chunk-OUHCJL5B.mjs} +1 -1
  31. package/dist/cli/{chunk-CSH4PKPJ.mjs → chunk-QB5MAFCU.mjs} +1 -1
  32. package/dist/cli/{chunk-QQMKX7JW.js → chunk-UZTTPEG2.js} +6 -6
  33. package/dist/cli/{chunk-JG2ZTDZV.js → chunk-VBRO5QCI.js} +15 -15
  34. package/dist/cli/{chunk-HY2SSFRI.js → chunk-VFRZG4OW.js} +1 -1
  35. package/dist/cli/{chunk-I4FHFGMA.js → chunk-VWW6VHQX.js} +60 -60
  36. package/dist/cli/{chunk-FJUIXWZF.js → chunk-WDPRE6DU.js} +48 -48
  37. package/dist/cli/{chunk-N2DXWS6W.mjs → chunk-WTO3ITBC.mjs} +2 -2
  38. package/dist/cli/{chunk-4UXNEC5C.js → chunk-YVMJTXEG.js} +26 -26
  39. package/dist/cli/{client-6RVRZ4OY.mjs → client-EYGNDORT.mjs} +3 -3
  40. package/dist/cli/client-Z4VFNTUB.js +20 -0
  41. package/dist/cli/{csv-SBOHBKEG.mjs → csv-NZCN7SVV.mjs} +3 -3
  42. package/dist/cli/{csv-2UHRG67O.js → csv-YOW5JMOH.js} +12 -12
  43. package/dist/cli/{db-VRE7CLIQ.js → db-6BIYLZ6F.js} +20 -20
  44. package/dist/cli/{db-TUFTPYEA.mjs → db-HALJV3KY.mjs} +4 -4
  45. package/dist/cli/{describe-WCBZTSOF.mjs → describe-KY2ZYGBR.mjs} +8 -8
  46. package/dist/cli/{describe-GS5A2XH4.js → describe-WA6R2JSH.js} +15 -15
  47. package/dist/cli/{executions-UTN3O372.mjs → executions-CBOAN6KI.mjs} +4 -4
  48. package/dist/cli/{executions-ENMOOKWH.js → executions-NMCTN7XM.js} +6 -6
  49. package/dist/cli/{feedback-PXBA3AG7.mjs → feedback-FOMPE3DJ.mjs} +3 -3
  50. package/dist/cli/{feedback-BLN6SIRG.js → feedback-ZZFDSCWS.js} +6 -6
  51. package/dist/cli/git-AC2ATBDK.js +23 -0
  52. package/dist/cli/{git-YDMIRW3Q.mjs → git-YQR2NBCO.mjs} +4 -4
  53. package/dist/cli/index.js +74 -74
  54. package/dist/cli/index.mjs +31 -31
  55. package/dist/cli/{legacy-noops-OVG2SICQ.mjs → legacy-noops-KMU6P3K4.mjs} +4 -4
  56. package/dist/cli/{legacy-noops-CWTUWTDB.js → legacy-noops-XH2TFFI6.js} +7 -7
  57. package/dist/cli/{monitors-ATIDXJA4.mjs → monitors-2ONK5L3I.mjs} +4 -4
  58. package/dist/cli/{monitors-T63OPBTY.js → monitors-5M3BZ5OR.js} +85 -85
  59. package/dist/cli/{org-7RVAPMRN.js → org-6MKULUZI.js} +60 -60
  60. package/dist/cli/{org-NXKNIM3H.mjs → org-LR5BMCGL.mjs} +4 -4
  61. package/dist/cli/{play-B62OVHD4.mjs → play-4NOSD7DW.mjs} +7 -7
  62. package/dist/cli/play-U3CZ4F2W.js +152 -0
  63. package/dist/cli/{providers-U7B7JEYY.mjs → providers-UBGIKGCA.mjs} +4 -4
  64. package/dist/cli/{providers-EITVEGXD.js → providers-UFJD3VKF.js} +7 -7
  65. package/dist/cli/{quickstart-VSWTYNJM.mjs → quickstart-KDUKQRUH.mjs} +3 -3
  66. package/dist/cli/{quickstart-G64F2XRU.js → quickstart-KQZHZE6C.js} +5 -5
  67. package/dist/cli/{search-SKYTFKKF.mjs → search-4BVOOS5Q.mjs} +5 -5
  68. package/dist/cli/search-Y7OTFRCI.js +26 -0
  69. package/dist/cli/{secrets-JSFHSCGM.js → secrets-TVXZ3WJ3.js} +13 -13
  70. package/dist/cli/{secrets-4DNS7KWS.mjs → secrets-YGV23N3N.mjs} +4 -4
  71. package/dist/cli/{sessions-HB7RQ4XN.mjs → sessions-G7ROUW35.mjs} +4 -4
  72. package/dist/cli/{sessions-MLTYPPCG.js → sessions-RWIQWDFD.js} +5 -5
  73. package/dist/cli/{settings-BT5WCU65.mjs → settings-QZEVGCXE.mjs} +7 -7
  74. package/dist/cli/{settings-3PCKNBPU.js → settings-TG3E2NR7.js} +74 -74
  75. package/dist/cli/{setup-EYZWTDJI.js → setup-3KDUNEEE.js} +41 -41
  76. package/dist/cli/{setup-EIWDTMCK.mjs → setup-HUXINKOH.mjs} +6 -6
  77. package/dist/cli/skills-CO5YUWBK.js +28 -0
  78. package/dist/cli/{skills-AQ3ORN2C.mjs → skills-LHU3DB7J.mjs} +4 -4
  79. package/dist/cli/{tools-OFTB2BGP.mjs → tools-J5WQ33BB.mjs} +6 -6
  80. package/dist/cli/tools-MWPT5X47.js +38 -0
  81. package/dist/cli/{update-ERQTFSAR.mjs → update-T6744RM7.mjs} +6 -6
  82. package/dist/cli/update-VVIJW7ZJ.js +28 -0
  83. package/dist/cli/{workflow-SRLWGGBM.mjs → workflow-CG2B65HD.mjs} +5 -5
  84. package/dist/cli/{workflow-6D6NHUH4.js → workflow-YF5SQJLG.js} +15 -15
  85. package/dist/index.js +6 -6
  86. package/dist/index.mjs +3 -3
  87. package/dist/install-integrity.json +74 -74
  88. package/dist/release.d.mts +1 -1
  89. package/dist/release.d.ts +1 -1
  90. package/dist/release.js +2 -2
  91. package/dist/release.mjs +1 -1
  92. package/package.json +1 -1
  93. package/dist/cli/auth-56NYRTQK.js +0 -31
  94. package/dist/cli/client-XUTMYJDL.js +0 -20
  95. package/dist/cli/git-26D3VD2I.js +0 -23
  96. package/dist/cli/play-WM3NZVE7.js +0 -152
  97. package/dist/cli/search-TXQJJQWY.js +0 -26
  98. package/dist/cli/skills-73T4BSDE.js +0 -28
  99. package/dist/cli/tools-ZGSOHWBY.js +0 -38
  100. package/dist/cli/update-L4V5TF7I.js +0 -28
@@ -7,11 +7,11 @@ var _chunkXNL3SEMCjs = require('./chunk-XNL3SEMC.js');
7
7
  var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
8
8
 
9
9
 
10
- var _chunkQQMKX7JWjs = require('./chunk-QQMKX7JW.js');
10
+ var _chunkUZTTPEG2js = require('./chunk-UZTTPEG2.js');
11
11
 
12
12
 
13
13
 
14
- var _chunk4UXNEC5Cjs = require('./chunk-4UXNEC5C.js');
14
+ var _chunkYVMJTXEGjs = require('./chunk-YVMJTXEG.js');
15
15
 
16
16
 
17
17
 
@@ -34,7 +34,7 @@ var _chunkSDK3ZA2Cjs = require('./chunk-SDK3ZA2C.js');
34
34
 
35
35
 
36
36
 
37
- var _chunkVSAYSOVCjs = require('./chunk-VSAYSOVC.js');
37
+ var _chunkMLEJ2FYHjs = require('./chunk-MLEJ2FYH.js');
38
38
 
39
39
 
40
40
 
@@ -66,10 +66,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
66
66
 
67
67
 
68
68
 
69
- var _chunkGQXEHX5Xjs = require('./chunk-GQXEHX5X.js');
69
+ var _chunkODEWOXWWjs = require('./chunk-ODEWOXWW.js');
70
70
 
71
71
 
72
- var _chunkFSZTWQFKjs = require('./chunk-FSZTWQFK.js');
72
+ var _chunkB5LUKLKHjs = require('./chunk-B5LUKLKH.js');
73
73
 
74
74
 
75
75
 
@@ -2061,7 +2061,7 @@ function resolveField(key, command) {
2061
2061
  function printSettings(result, json, name) {
2062
2062
  result = { ...result, settings: parsePlaySettings(result.settings) };
2063
2063
  const selected = fields.filter(([key]) => !name || key === name);
2064
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
2064
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2065
2065
  {
2066
2066
  ...result,
2067
2067
  settings: Object.fromEntries(
@@ -2105,7 +2105,7 @@ function registerPlaySettingsCommands(plays) {
2105
2105
  valueSyntax: field.cli.valueSyntax,
2106
2106
  examples: field.cli.examples
2107
2107
  }));
2108
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
2108
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2109
2109
  {
2110
2110
  fields: descriptions,
2111
2111
  render: {
@@ -2130,7 +2130,7 @@ function registerPlaySettingsCommands(plays) {
2130
2130
  async (options, command) => {
2131
2131
  if (options.name !== void 0) resolveField(options.name, command);
2132
2132
  printSettings(
2133
- await new (0, _chunkVSAYSOVCjs.DeeplineClient)().getPlaySettings(options.play),
2133
+ await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().getPlaySettings(options.play),
2134
2134
  options.json,
2135
2135
  options.name
2136
2136
  );
@@ -2161,7 +2161,7 @@ function registerPlaySettingsCommands(plays) {
2161
2161
  );
2162
2162
  }
2163
2163
  if (options.dryRun) {
2164
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
2164
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2165
2165
  {
2166
2166
  dryRun: true,
2167
2167
  play,
@@ -2182,7 +2182,7 @@ function registerPlaySettingsCommands(plays) {
2182
2182
  return;
2183
2183
  }
2184
2184
  printSettings(
2185
- await new (0, _chunkVSAYSOVCjs.DeeplineClient)().updatePlaySettings(play, patch),
2185
+ await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().updatePlaySettings(play, patch),
2186
2186
  options.json
2187
2187
  );
2188
2188
  };
@@ -2208,13 +2208,13 @@ function registerPlaySettingsCommands(plays) {
2208
2208
  "--root must be person or team; --limit must be 1\u2013100.",
2209
2209
  { exitCode: 2 }
2210
2210
  );
2211
- const page = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().listPlaySettingsPaths({
2211
+ const page = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().listPlaySettingsPaths({
2212
2212
  root: options.root,
2213
2213
  limit,
2214
2214
  cursor: options.cursor
2215
2215
  });
2216
2216
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""} --json` : null;
2217
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
2217
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2218
2218
  {
2219
2219
  ...page,
2220
2220
  nextCommand,
@@ -2265,7 +2265,7 @@ function registerPlaySettingsCommands(plays) {
2265
2265
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2266
2266
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2267
2267
  };
2268
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
2268
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
2269
2269
  const paths = [];
2270
2270
  let cursor;
2271
2271
  do {
@@ -2327,7 +2327,7 @@ function registerPlaySettingsCommands(plays) {
2327
2327
  moved.push(move.playName);
2328
2328
  }
2329
2329
  }
2330
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
2330
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2331
2331
  {
2332
2332
  dryRun: Boolean(options.dryRun),
2333
2333
  from: options.from,
@@ -2455,7 +2455,7 @@ function triggerLines(view) {
2455
2455
  return lines;
2456
2456
  }
2457
2457
  function printView(view, json) {
2458
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
2458
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2459
2459
  {
2460
2460
  ...view,
2461
2461
  render: {
@@ -2468,7 +2468,7 @@ function printView(view, json) {
2468
2468
  );
2469
2469
  }
2470
2470
  function printResult(result, json) {
2471
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
2471
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2472
2472
  {
2473
2473
  ...result,
2474
2474
  render: {
@@ -2498,7 +2498,7 @@ async function mutate(command, options, build) {
2498
2498
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2499
2499
  }
2500
2500
  if (options.dryRun) {
2501
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
2501
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2502
2502
  {
2503
2503
  dryRun: true,
2504
2504
  play: options.play,
@@ -2517,7 +2517,7 @@ async function mutate(command, options, build) {
2517
2517
  return;
2518
2518
  }
2519
2519
  printResult(
2520
- await new (0, _chunkVSAYSOVCjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2520
+ await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2521
2521
  options.json
2522
2522
  );
2523
2523
  }
@@ -2550,7 +2550,7 @@ function registerPlayTriggerConfigCommands(plays) {
2550
2550
  }).addHelpText("after", help2);
2551
2551
  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) => {
2552
2552
  printView(
2553
- await new (0, _chunkVSAYSOVCjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2553
+ await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2554
2554
  options.json
2555
2555
  );
2556
2556
  });
@@ -2594,7 +2594,7 @@ function registerPlayTriggerConfigCommands(plays) {
2594
2594
  if (options.auth === void 0) {
2595
2595
  if (secrets.length || options.header || options.signaturePrefix)
2596
2596
  usage(setWebhook, "--secret/--header need --auth.");
2597
- const current = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().getPlayTriggerConfig(
2597
+ const current = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().getPlayTriggerConfig(
2598
2598
  options.play
2599
2599
  );
2600
2600
  return {
@@ -2671,7 +2671,7 @@ var KIND_DESCRIPTIONS = {
2671
2671
  "receipt.skipped": "Saved work result: skipped.",
2672
2672
  "runtime.event": "Other event."
2673
2673
  };
2674
- var RUN_LOGS_KIND_HELP = _chunkVSAYSOVCjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2674
+ var RUN_LOGS_KIND_HELP = _chunkMLEJ2FYHjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2675
2675
  kind,
2676
2676
  description: KIND_DESCRIPTIONS[kind]
2677
2677
  }));
@@ -2808,9 +2808,9 @@ function configureRunQueryCommandErrors(command, resource) {
2808
2808
  const args = program.args;
2809
2809
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2810
2810
  error.exitCode = 2;
2811
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2812
- _chunkGQXEHX5Xjs.printJsonError.call(void 0,
2813
- Object.assign(new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(error.message), {
2811
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2812
+ _chunkODEWOXWWjs.printJsonError.call(void 0,
2813
+ Object.assign(new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(error.message), {
2814
2814
  exitCode: 2,
2815
2815
  retryable: false
2816
2816
  })
@@ -2854,14 +2854,14 @@ function parseQuery(args, resource) {
2854
2854
  if (VALUE_FLAGS.has(flag)) {
2855
2855
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2856
2856
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2857
- throw new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(
2857
+ throw new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2858
2858
  `${flag} requires a value. Use ${flag} <value>.`
2859
2859
  );
2860
2860
  }
2861
2861
  if (flag === "--sum") sums.push(value);
2862
2862
  else {
2863
2863
  if (values[flag] !== void 0) {
2864
- throw new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(
2864
+ throw new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2865
2865
  `${flag} may only be supplied once.`
2866
2866
  );
2867
2867
  }
@@ -2875,12 +2875,12 @@ function parseQuery(args, resource) {
2875
2875
  }
2876
2876
  if (arg.startsWith("-")) {
2877
2877
  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.";
2878
- throw new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(
2878
+ throw new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2879
2879
  `Unsupported query flag ${flag}. ${correction}`
2880
2880
  );
2881
2881
  }
2882
2882
  if (runId !== void 0) {
2883
- throw new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(
2883
+ throw new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2884
2884
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2885
2885
  );
2886
2886
  }
@@ -2888,7 +2888,7 @@ function parseQuery(args, resource) {
2888
2888
  }
2889
2889
  if (switches.has("--fields")) {
2890
2890
  if (runId !== void 0) {
2891
- throw new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(
2891
+ throw new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2892
2892
  "--fields does not use a run ID. Omit the positional run ID."
2893
2893
  );
2894
2894
  }
@@ -2901,18 +2901,18 @@ function parseQuery(args, resource) {
2901
2901
  )
2902
2902
  ];
2903
2903
  if (incompatible.length) {
2904
- throw new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(
2904
+ throw new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2905
2905
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2906
2906
  );
2907
2907
  }
2908
2908
  }
2909
2909
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2910
- throw new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(
2910
+ throw new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2911
2911
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2912
2912
  );
2913
2913
  }
2914
2914
  if (sums.length && switches.has("--count")) {
2915
- throw new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(
2915
+ throw new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2916
2916
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2917
2917
  );
2918
2918
  }
@@ -2920,7 +2920,7 @@ function parseQuery(args, resource) {
2920
2920
  if (operation === "count") {
2921
2921
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2922
2922
  if (values[flag] !== void 0 || switches.has(flag)) {
2923
- throw new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(
2923
+ throw new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2924
2924
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2925
2925
  );
2926
2926
  }
@@ -2955,16 +2955,16 @@ function parseQuery(args, resource) {
2955
2955
  ];
2956
2956
  }
2957
2957
  }
2958
- const request = _chunkVSAYSOVCjs.normalizeRunEventOperationRequest.call(void 0, body);
2958
+ const request = _chunkMLEJ2FYHjs.normalizeRunEventOperationRequest.call(void 0, body);
2959
2959
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2960
2960
  const backend = values["--runtime-backend"];
2961
2961
  if (backend && backend !== "daytona" && backend !== "modal") {
2962
- throw new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(
2962
+ throw new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2963
2963
  "--runtime-backend must be daytona or modal."
2964
2964
  );
2965
2965
  }
2966
2966
  if (backend && !namespace) {
2967
- throw new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(
2967
+ throw new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2968
2968
  "--runtime-backend requires --runtime-namespace."
2969
2969
  );
2970
2970
  }
@@ -3012,12 +3012,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3012
3012
  const failure = error instanceof Error ? error : new Error(String(error));
3013
3013
  const record3 = failure;
3014
3014
  const status = record3.statusCode;
3015
- const exitCode = error instanceof _chunkVSAYSOVCjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3015
+ const exitCode = error instanceof _chunkMLEJ2FYHjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3016
3016
  const diagnostic = Object.assign(failure, {
3017
3017
  exitCode,
3018
3018
  retryable: exitCode === 5
3019
3019
  });
3020
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) _chunkGQXEHX5Xjs.printJsonError.call(void 0, diagnostic);
3020
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) _chunkODEWOXWWjs.printJsonError.call(void 0, diagnostic);
3021
3021
  else console.error(`Error: ${diagnostic.message}`);
3022
3022
  return exitCode;
3023
3023
  }
@@ -3032,7 +3032,7 @@ async function executeRunEventQuery(args, resource) {
3032
3032
  ...criteria
3033
3033
  } = request;
3034
3034
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3035
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
3035
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
3036
3036
  let result;
3037
3037
  if (request.operation === "fields") {
3038
3038
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3090,6 +3090,7 @@ async function executeRunEventQuery(args, resource) {
3090
3090
  if (lines.length === 0) lines.push(`0 matching retained ${resource}.`);
3091
3091
  }
3092
3092
  lines.push(
3093
+ `Searched UTC: ${result.query.since} (inclusive) to ${result.query.until} (exclusive).`,
3093
3094
  `Retained history since ${result.retention.retainedSince} (${result.retention.retentionDays} days).`
3094
3095
  );
3095
3096
  if ("page" in result && result.page.nextCursor) {
@@ -3097,13 +3098,13 @@ async function executeRunEventQuery(args, resource) {
3097
3098
  lines.push(`Next page: ${nextPage}`);
3098
3099
  }
3099
3100
  }
3100
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
3101
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
3101
3102
  {
3102
3103
  ...result,
3103
3104
  ...nextPage ? { next: { page: nextPage } } : {},
3104
3105
  render: { sections: [{ title: `run ${resource}`, lines }] }
3105
3106
  },
3106
- { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3107
+ { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3107
3108
  ` }
3108
3109
  );
3109
3110
  return 0;
@@ -3921,7 +3922,7 @@ function checkedRunExample(plays, target) {
3921
3922
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3922
3923
  const base = `deepline plays run --file ${quote(target)}`;
3923
3924
  return {
3924
- command: `${base}${_chunkVSAYSOVCjs.playInputExampleArgs.call(void 0, schema)} --json`,
3925
+ command: `${base}${_chunkMLEJ2FYHjs.playInputExampleArgs.call(void 0, schema)} --json`,
3925
3926
  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."
3926
3927
  };
3927
3928
  }
@@ -5539,7 +5540,7 @@ async function runPlayBootstrap(args) {
5539
5540
  return runMonitorBootstrap(args);
5540
5541
  }
5541
5542
  const options = parsePlayBootstrapOptions(args);
5542
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
5543
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
5543
5544
  const contracts = await loadBootstrapContracts(client, options);
5544
5545
  const csvContext = loadCsvContext(options.from);
5545
5546
  const source = generateBootstrapPlaySource({
@@ -5694,7 +5695,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5694
5695
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
5695
5696
  );
5696
5697
  }
5697
- const response = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().runs.getReceipts(runId, {
5698
+ const response = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().runs.getReceipts(runId, {
5698
5699
  keys
5699
5700
  });
5700
5701
  const failed = response.receipts.filter(
@@ -5706,7 +5707,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5706
5707
  JSON.stringify(response, null, 2) + "\n",
5707
5708
  { flag: "wx", mode: 384 }
5708
5709
  );
5709
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
5710
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
5710
5711
  {
5711
5712
  runId,
5712
5713
  out: options.out,
@@ -5716,7 +5717,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5716
5717
  { json: true }
5717
5718
  );
5718
5719
  } else {
5719
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5720
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5720
5721
  }
5721
5722
  if (failed)
5722
5723
  process.exitCode = response.receipts.some(
@@ -5755,7 +5756,7 @@ includes nextCommand when another page is available.
5755
5756
  { exitCode: 2 }
5756
5757
  );
5757
5758
  }
5758
- const page = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().runs.children(parentRunId, {
5759
+ const page = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().runs.children(parentRunId, {
5759
5760
  launchKey: options.launchKey,
5760
5761
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
5761
5762
  limit
@@ -5771,7 +5772,7 @@ includes nextCommand when another page is available.
5771
5772
  String(limit),
5772
5773
  "--json"
5773
5774
  ].join(" ") : null;
5774
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
5775
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
5775
5776
  {
5776
5777
  parentRunId,
5777
5778
  launchKey: options.launchKey,
@@ -5807,7 +5808,7 @@ async function handleRunsHistory(options) {
5807
5808
  throw new Error("--limit must be a positive integer.");
5808
5809
  }
5809
5810
  }
5810
- const page = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().runs.history({
5811
+ const page = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().runs.history({
5811
5812
  cursor: options.cursor,
5812
5813
  orgId: options.org,
5813
5814
  search: options.search,
@@ -5823,7 +5824,7 @@ async function handleRunsHistory(options) {
5823
5824
  );
5824
5825
  }
5825
5826
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
5826
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
5827
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
5827
5828
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
5828
5829
  options.json ? { json: true } : {}
5829
5830
  );
@@ -6099,7 +6100,7 @@ function projectRunDatasetCell(value) {
6099
6100
  const logicalValue = parseSerializedDatasetValue(value);
6100
6101
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
6101
6102
  if (typeof logicalValue === "object") {
6102
- return _chunkGQXEHX5Xjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
6103
+ return _chunkODEWOXWWjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
6103
6104
  }
6104
6105
  return logicalValue;
6105
6106
  }
@@ -8907,7 +8908,7 @@ function renderOutcome(outcome) {
8907
8908
  function printResult2(input) {
8908
8909
  const failed = input.status === "failed" || input.status === "cancelled";
8909
8910
  if (failed) process.exitCode = 1;
8910
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
8911
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
8911
8912
  {
8912
8913
  deployment: { ...input.deployment, status: input.status },
8913
8914
  plays: input.outcomes,
@@ -8932,7 +8933,7 @@ async function handlePlaysDeploy(directory, options) {
8932
8933
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
8933
8934
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
8934
8935
  });
8935
- const { http, config } = _chunkGQXEHX5Xjs.getAuthedHttpClient.call(void 0, );
8936
+ const { http, config } = _chunkODEWOXWWjs.getAuthedHttpClient.call(void 0, );
8936
8937
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
8937
8938
  const startDeployment = () => http.post("/api/v2/deployments", {
8938
8939
  deliveryId,
@@ -8959,7 +8960,7 @@ async function handlePlaysDeploy(directory, options) {
8959
8960
  },
8960
8961
  {
8961
8962
  bundle: bundleDeployPlayFile,
8962
- fetchImpl: _chunkFSZTWQFKjs.fetchWithDeploymentProtection,
8963
+ fetchImpl: _chunkB5LUKLKHjs.fetchWithDeploymentProtection,
8963
8964
  // The plays are already here: "opening" the source is naming it.
8964
8965
  openSource: async () => ({
8965
8966
  open: async () => ({ repoRoot: root })
@@ -10059,7 +10060,7 @@ function playStatusErrorText(status) {
10059
10060
  function isRetryablePendingStartFailure(status) {
10060
10061
  if (status.status !== "failed") return false;
10061
10062
  if (status.runId && status.runId !== "pending") return false;
10062
- return _chunkVSAYSOVCjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
10063
+ return _chunkMLEJ2FYHjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
10063
10064
  }
10064
10065
  function pendingStartFailureStatus(input) {
10065
10066
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -10086,13 +10087,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
10086
10087
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
10087
10088
  function watchSurfaceReaches(state, provenance, level) {
10088
10089
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
10089
- if (!_chunkVSAYSOVCjs.logLevelReaches.call(void 0, level, minimumLevel)) {
10090
+ if (!_chunkMLEJ2FYHjs.logLevelReaches.call(void 0, level, minimumLevel)) {
10090
10091
  return false;
10091
10092
  }
10092
- if (_chunkVSAYSOVCjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
10093
+ if (_chunkMLEJ2FYHjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
10093
10094
  return true;
10094
10095
  }
10095
- return state.verbose === true && _chunkVSAYSOVCjs.logProvenanceReaches.call(void 0, provenance, "debug");
10096
+ return state.verbose === true && _chunkMLEJ2FYHjs.logProvenanceReaches.call(void 0, provenance, "debug");
10096
10097
  }
10097
10098
  function getEventPayload(event) {
10098
10099
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -10594,7 +10595,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
10594
10595
  }
10595
10596
  function openPlayDashboard(dashboardUrl, open2) {
10596
10597
  if (open2 && dashboardUrl) {
10597
- _chunkGQXEHX5Xjs.openInBrowser.call(void 0, dashboardUrl);
10598
+ _chunkODEWOXWWjs.openInBrowser.call(void 0, dashboardUrl);
10598
10599
  }
10599
10600
  }
10600
10601
  function printPlayLogLines(input) {
@@ -10656,7 +10657,7 @@ async function waitForPlayCompletionByWatch(input) {
10656
10657
  billing: false
10657
10658
  });
10658
10659
  } catch (error) {
10659
- if (_chunkVSAYSOVCjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
10660
+ if (_chunkMLEJ2FYHjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
10660
10661
  return null;
10661
10662
  }
10662
10663
  throw error;
@@ -10845,7 +10846,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10845
10846
  billing: false
10846
10847
  });
10847
10848
  } catch (error) {
10848
- if (_chunkVSAYSOVCjs.isTransientPlayRunReadError.call(void 0, error)) {
10849
+ if (_chunkMLEJ2FYHjs.isTransientPlayRunReadError.call(void 0, error)) {
10849
10850
  return null;
10850
10851
  }
10851
10852
  throw error;
@@ -11053,7 +11054,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11053
11054
  lastPhase
11054
11055
  });
11055
11056
  }
11056
- if (lastKnownWorkflowId && _chunkVSAYSOVCjs.isTransientPlayRunReadError.call(void 0, error)) {
11057
+ if (lastKnownWorkflowId && _chunkMLEJ2FYHjs.isTransientPlayRunReadError.call(void 0, error)) {
11057
11058
  if (timeout) {
11058
11059
  clearTimeout(timeout);
11059
11060
  }
@@ -11089,7 +11090,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11089
11090
  onRunAdmitted: confirmAdmission
11090
11091
  });
11091
11092
  }
11092
- if (!lastKnownWorkflowId && _chunkVSAYSOVCjs.isTransientPlayRunReadError.call(void 0, error)) {
11093
+ if (!lastKnownWorkflowId && _chunkMLEJ2FYHjs.isTransientPlayRunReadError.call(void 0, error)) {
11093
11094
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
11094
11095
  phase: "cli.play_start_stream_transient_failure",
11095
11096
  ms: Date.now() - startedAt,
@@ -11188,7 +11189,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
11188
11189
  "logs"
11189
11190
  ]);
11190
11191
  function formatPlayLogLine(rawLine, state) {
11191
- const classified = _chunkVSAYSOVCjs.classifyLogLine.call(void 0, rawLine);
11192
+ const classified = _chunkMLEJ2FYHjs.classifyLogLine.call(void 0, rawLine);
11192
11193
  const line = classified.line;
11193
11194
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
11194
11195
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _344 => _344[1]]) ? new Date(timestampMatch[1]) : null;
@@ -11203,14 +11204,14 @@ function formatPlayLogLine(rawLine, state) {
11203
11204
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
11204
11205
  const providerWait = formatProviderCapacityWaitLogLine(line);
11205
11206
  if (providerWait && !state.verbose) {
11206
- return _chunkVSAYSOVCjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
11207
+ return _chunkMLEJ2FYHjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
11207
11208
  }
11208
11209
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
11209
11210
  if (mapProgress && !state.verbose) {
11210
- return _chunkVSAYSOVCjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
11211
+ return _chunkMLEJ2FYHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
11211
11212
  }
11212
11213
  if (/\[worker\] picked up run\b/.test(message)) {
11213
- if (!_chunkVSAYSOVCjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11214
+ if (!_chunkMLEJ2FYHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11214
11215
  return null;
11215
11216
  }
11216
11217
  if (state.emittedRunnerStarted) {
@@ -11223,7 +11224,7 @@ function formatPlayLogLine(rawLine, state) {
11223
11224
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
11224
11225
  );
11225
11226
  if (mapStart) {
11226
- if (!_chunkVSAYSOVCjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11227
+ if (!_chunkMLEJ2FYHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11227
11228
  return null;
11228
11229
  }
11229
11230
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -11233,7 +11234,7 @@ function formatPlayLogLine(rawLine, state) {
11233
11234
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
11234
11235
  );
11235
11236
  if (mapDone) {
11236
- if (!_chunkVSAYSOVCjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11237
+ if (!_chunkMLEJ2FYHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11237
11238
  return null;
11238
11239
  }
11239
11240
  const [, results, executed, cached] = mapDone;
@@ -12522,7 +12523,7 @@ function formatRecentRunLogLines(value) {
12522
12523
  (line) => typeof line === "string"
12523
12524
  );
12524
12525
  if (tail.length === 0) return [];
12525
- const shown = tail.map((line) => _chunkVSAYSOVCjs.classifyLogLine.call(void 0, line)).filter(
12526
+ const shown = tail.map((line) => _chunkMLEJ2FYHjs.classifyLogLine.call(void 0, line)).filter(
12526
12527
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
12527
12528
  ).slice(-8);
12528
12529
  const total = readNonNegativeInteger(logs.totalCount);
@@ -12802,7 +12803,7 @@ function writePlayResult(status, jsonOutput, options) {
12802
12803
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _425 => _425.hits]), () => ( null));
12803
12804
  if (jsonOutput) {
12804
12805
  const payload2 = _optionalChain([options, 'optionalAccess', _426 => _426.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
12805
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
12806
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
12806
12807
  hits ? { ...payload2, hits } : payload2,
12807
12808
  { json: true, fields: _optionalChain([options, 'optionalAccess', _427 => _427.jsonFields]) }
12808
12809
  );
@@ -12818,7 +12819,7 @@ function writePlayResult(status, jsonOutput, options) {
12818
12819
  ...buildPlayCompletionTextLines(status),
12819
12820
  ...formatRunHitsLines(hits)
12820
12821
  ];
12821
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, displayPackage, {
12822
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, displayPackage, {
12822
12823
  json: false,
12823
12824
  text: `${lines2.join("\n")}
12824
12825
  `
@@ -12869,7 +12870,7 @@ function writePlayResult(status, jsonOutput, options) {
12869
12870
  lines.push(...buildBillingRollupTextLines(status));
12870
12871
  const compact = compactPlayStatus(status);
12871
12872
  const payload = _optionalChain([options, 'optionalAccess', _429 => _429.fullJson]) ? status : compact;
12872
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
12873
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
12873
12874
  {
12874
12875
  ...payload,
12875
12876
  render: {
@@ -13629,7 +13630,7 @@ function writeStartedPlayRun(input) {
13629
13630
  dashboardUrl: input.dashboardUrl,
13630
13631
  package: input.package
13631
13632
  };
13632
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
13633
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
13633
13634
  json: true,
13634
13635
  fields: input.jsonFields
13635
13636
  });
@@ -13651,7 +13652,7 @@ function writeStartedPlayRun(input) {
13651
13652
  input.progress.writeLine(output2, process.stdout);
13652
13653
  return;
13653
13654
  }
13654
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, input.package, {
13655
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, input.package, {
13655
13656
  json: false,
13656
13657
  text: `${output2}
13657
13658
  `
@@ -13680,7 +13681,7 @@ function writeStartedPlayRun(input) {
13680
13681
  ) ? [`Stop: deepline runs stop ${shellSingleQuote(input.runId)} --json`] : []
13681
13682
  ];
13682
13683
  if (input.jsonOutput) {
13683
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13684
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13684
13685
  return;
13685
13686
  }
13686
13687
  if (input.dashboardUrl) {
@@ -13691,7 +13692,7 @@ function writeStartedPlayRun(input) {
13691
13692
  input.progress.writeLine(output, process.stdout);
13692
13693
  return;
13693
13694
  }
13694
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
13695
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
13695
13696
  {
13696
13697
  ...payload,
13697
13698
  render: { sections: [{ title: "play run", lines }] }
@@ -13701,7 +13702,7 @@ function writeStartedPlayRun(input) {
13701
13702
  );
13702
13703
  }
13703
13704
  function parsePlayRunOptions(args) {
13704
- const selection = _chunkGQXEHX5Xjs.parseJsonFields.call(void 0, args, "run");
13705
+ const selection = _chunkODEWOXWWjs.parseJsonFields.call(void 0, args, "run");
13705
13706
  args = selection.args;
13706
13707
  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.";
13707
13708
  let filePath = null;
@@ -13710,7 +13711,7 @@ function parsePlayRunOptions(args) {
13710
13711
  let revisionId = null;
13711
13712
  let revisionSelector = null;
13712
13713
  const watch = !args.includes("--no-wait");
13713
- let jsonOutput = watch ? args.includes("--json") : _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
13714
+ let jsonOutput = watch ? args.includes("--json") : _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
13714
13715
  const fullJson = args.includes("--full");
13715
13716
  const force = args.includes("--force");
13716
13717
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -13757,7 +13758,7 @@ function parsePlayRunOptions(args) {
13757
13758
  "--log-level requires one of: debug, info, warn, error."
13758
13759
  );
13759
13760
  }
13760
- const parsed = _chunkVSAYSOVCjs.parseLogLevel.call(void 0, value);
13761
+ const parsed = _chunkMLEJ2FYHjs.parseLogLevel.call(void 0, value);
13761
13762
  if (!parsed) {
13762
13763
  throw new Error(
13763
13764
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -13984,7 +13985,7 @@ function parsePlayRunOptions(args) {
13984
13985
  };
13985
13986
  }
13986
13987
  function parsePlayCheckOptions(args) {
13987
- const selection = _chunkGQXEHX5Xjs.parseJsonFields.call(void 0, args, "check");
13988
+ const selection = _chunkODEWOXWWjs.parseJsonFields.call(void 0, args, "check");
13988
13989
  args = selection.args;
13989
13990
  const target = args[0];
13990
13991
  if (!target || target.startsWith("-")) {
@@ -13996,7 +13997,7 @@ function parsePlayCheckOptions(args) {
13996
13997
  if (arg !== "--json" && arg !== "--full")
13997
13998
  throw new Error(`Unknown plays check option: ${arg}`);
13998
13999
  }
13999
- const jsonOutput = _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
14000
+ const jsonOutput = _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
14000
14001
  return {
14001
14002
  target,
14002
14003
  jsonOutput,
@@ -14072,7 +14073,7 @@ ${PLAY_PUBLISH_USAGE}`
14072
14073
  useLatest,
14073
14074
  expectedArtifactHash,
14074
14075
  dryRun,
14075
- jsonOutput: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)
14076
+ jsonOutput: _chunkODEWOXWWjs.argsWantJson.call(void 0, args)
14076
14077
  };
14077
14078
  }
14078
14079
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -14113,7 +14114,7 @@ ${PLAY_SAVE_USAGE}`);
14113
14114
  target,
14114
14115
  expectedArtifactHash,
14115
14116
  dryRun,
14116
- jsonOutput: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)
14117
+ jsonOutput: _chunkODEWOXWWjs.argsWantJson.call(void 0, args)
14117
14118
  };
14118
14119
  }
14119
14120
  function printScheduledPlayCapacity(capacity) {
@@ -14324,7 +14325,7 @@ function printBundledRuntimeWarning(bundle) {
14324
14325
  async function handlePlayCheck(args) {
14325
14326
  const options = parsePlayCheckOptions(args);
14326
14327
  if (!isFileTarget(options.target)) {
14327
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
14328
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
14328
14329
  try {
14329
14330
  await assertCanonicalNamedPlayReference(client, options.target, {
14330
14331
  command: "check"
@@ -14353,7 +14354,7 @@ async function handlePlayCheck(args) {
14353
14354
  },
14354
14355
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
14355
14356
  };
14356
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, result, {
14357
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, result, {
14357
14358
  json: options.jsonOutput,
14358
14359
  fields: options.jsonFields,
14359
14360
  text: renderPlayCheckOutput(result) + "\n"
@@ -14363,7 +14364,7 @@ async function handlePlayCheck(args) {
14363
14364
  const resolved = _path.resolve.call(void 0, options.target);
14364
14365
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
14365
14366
  if (options.jsonOutput) {
14366
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
14367
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
14367
14368
  {
14368
14369
  kind: "play_check",
14369
14370
  checked: "named_contract",
@@ -14405,7 +14406,7 @@ async function handlePlayCheck(args) {
14405
14406
  detailsCommand: `deepline plays check ${shellQuote3(options.target)} --full --json`,
14406
14407
  publishCommand: _optionalChain([primary, 'optionalAccess', _475 => _475.result, 'access', _476 => _476.artifactHash]) ? `deepline plays publish ${shellQuote3(options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
14407
14408
  });
14408
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, output, {
14409
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, output, {
14409
14410
  json: options.jsonOutput,
14410
14411
  fields: options.jsonFields,
14411
14412
  text: renderPlayCheckOutput(output) + "\n"
@@ -14467,7 +14468,7 @@ async function checkOneExportedPlay(input) {
14467
14468
  result: { valid: false, errors: descriptionErrors }
14468
14469
  };
14469
14470
  }
14470
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
14471
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
14471
14472
  const integrationMode = resolveEvalIntegrationMode();
14472
14473
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
14473
14474
  playName: node.playName,
@@ -14504,7 +14505,7 @@ async function handleFileBackedRun(options, hooks) {
14504
14505
  if (options.target.kind !== "file") {
14505
14506
  throw new Error("Expected a file-backed play run target.");
14506
14507
  }
14507
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)(playRunClientOptions(options));
14508
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)(playRunClientOptions(options));
14508
14509
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
14509
14510
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
14510
14511
  progress.phase("compiling play");
@@ -14718,7 +14719,7 @@ async function handleNamedRun(options, hooks) {
14718
14719
  if (options.target.kind !== "name") {
14719
14720
  throw new Error("Expected a named play run target.");
14720
14721
  }
14721
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)(playRunClientOptions(options));
14722
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)(playRunClientOptions(options));
14722
14723
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
14723
14724
  const playName = options.target.name;
14724
14725
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -15115,10 +15116,10 @@ function renderRunOverviewText(overview, extras = {}) {
15115
15116
  );
15116
15117
  return `${lines.join("\n")}
15117
15118
 
15118
- ${_chunkGQXEHX5Xjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
15119
+ ${_chunkODEWOXWWjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
15119
15120
  }
15120
15121
  async function handleRunGet(args) {
15121
- const selection = _chunkGQXEHX5Xjs.parseJsonFields.call(void 0,
15122
+ const selection = _chunkODEWOXWWjs.parseJsonFields.call(void 0,
15122
15123
  args,
15123
15124
  args.includes("--config") ? "config" : "get"
15124
15125
  );
@@ -15131,7 +15132,7 @@ async function handleRunGet(args) {
15131
15132
  console.error(error instanceof Error ? error.message : usage2);
15132
15133
  return 1;
15133
15134
  }
15134
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
15135
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
15135
15136
  if (args.includes("--config")) {
15136
15137
  if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
15137
15138
  console.error(
@@ -15145,7 +15146,7 @@ async function handleRunGet(args) {
15145
15146
  "This server does not support recorded configuration reads."
15146
15147
  );
15147
15148
  }
15148
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15149
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15149
15150
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
15150
15151
  { json: true, fields: selection.fields }
15151
15152
  );
@@ -15153,7 +15154,7 @@ async function handleRunGet(args) {
15153
15154
  }
15154
15155
  if (args.includes("--input")) {
15155
15156
  const input = await client.getRunInput(runId);
15156
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, input, { json: true });
15157
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, input, { json: true });
15157
15158
  return 0;
15158
15159
  }
15159
15160
  const full = args.includes("--full");
@@ -15166,8 +15167,8 @@ async function handleRunGet(args) {
15166
15167
  full: true,
15167
15168
  failedLogs: args.includes("--log-failed")
15168
15169
  }) : status;
15169
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
15170
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15170
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
15171
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15171
15172
  full ? legacyStatus : compactPlayStatus(legacyStatus),
15172
15173
  { json: true, fields: selection.fields }
15173
15174
  );
@@ -15183,8 +15184,8 @@ async function handleRunGet(args) {
15183
15184
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
15184
15185
  ]);
15185
15186
  const hitLines = formatRunHitsLines(hits);
15186
- const json = _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
15187
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15187
+ const json = _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
15188
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15188
15189
  {
15189
15190
  ...overview,
15190
15191
  credits,
@@ -15287,9 +15288,9 @@ async function handleRunLifecycleStatus(args) {
15287
15288
  console.error(error instanceof Error ? error.message : usage2);
15288
15289
  return 1;
15289
15290
  }
15290
- const status = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().runs.status(runId);
15291
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
15292
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, status, { json: true });
15291
+ const status = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().runs.status(runId);
15292
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
15293
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, status, { json: true });
15293
15294
  return 0;
15294
15295
  }
15295
15296
  if (!status.available) {
@@ -15363,12 +15364,12 @@ async function handleRunsRerun(args) {
15363
15364
  index += 1;
15364
15365
  }
15365
15366
  }
15366
- const result = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().runs.rerun(runId, {
15367
+ const result = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().runs.rerun(runId, {
15367
15368
  ...idempotencyKey ? { idempotencyKey } : {},
15368
15369
  ...inputOverrides ? { inputOverrides } : {}
15369
15370
  });
15370
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
15371
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, result, { json: true });
15371
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
15372
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, result, { json: true });
15372
15373
  } else {
15373
15374
  console.log(
15374
15375
  result.deduplicated === true ? `
@@ -15433,8 +15434,8 @@ ${usage2}
15433
15434
  Discover Plays: ${next.discover}
15434
15435
  Active runs: ${next.running}`
15435
15436
  );
15436
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
15437
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15437
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
15438
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15438
15439
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
15439
15440
  { json: true }
15440
15441
  );
@@ -15445,7 +15446,7 @@ Active runs: ${next.running}`
15445
15446
  console.error("--offset requires --play.");
15446
15447
  return 1;
15447
15448
  }
15448
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
15449
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
15449
15450
  const page = await client.runs.listPage({
15450
15451
  ...playName ? { play: playName } : {},
15451
15452
  ...statusFilter ? { status: statusFilter } : {},
@@ -15498,7 +15499,7 @@ Active runs: ${next.running}`
15498
15499
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
15499
15500
  );
15500
15501
  }
15501
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15502
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15502
15503
  {
15503
15504
  runs,
15504
15505
  count: runs.length,
@@ -15512,7 +15513,7 @@ Active runs: ${next.running}`
15512
15513
  },
15513
15514
  render: { sections: [{ title: "runs", lines }] }
15514
15515
  },
15515
- { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args) }
15516
+ { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args) }
15516
15517
  );
15517
15518
  return 0;
15518
15519
  }
@@ -15542,7 +15543,7 @@ async function handleRunTail(args) {
15542
15543
  console.error("--log-level requires one of: debug, info, warn, error.");
15543
15544
  return 1;
15544
15545
  }
15545
- const parsed = _chunkVSAYSOVCjs.parseLogLevel.call(void 0, value);
15546
+ const parsed = _chunkMLEJ2FYHjs.parseLogLevel.call(void 0, value);
15546
15547
  if (!parsed) {
15547
15548
  console.error(
15548
15549
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15580,9 +15581,9 @@ async function handleRunTail(args) {
15580
15581
  );
15581
15582
  return 1;
15582
15583
  }
15583
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
15584
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
15584
15585
  const jsonLines = args.includes("--jsonl");
15585
- const jsonOutput = !jsonLines && _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
15586
+ const jsonOutput = !jsonLines && _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
15586
15587
  const compact = args.includes("--compact");
15587
15588
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
15588
15589
  const compactState = {
@@ -15663,7 +15664,7 @@ async function handleRunLogs(args) {
15663
15664
  ]);
15664
15665
  const cursorIndex = args.indexOf("--cursor");
15665
15666
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
15666
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkVSAYSOVCjs.isRunLogsCursor.call(void 0, cursorValue));
15667
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkMLEJ2FYHjs.isRunLogsCursor.call(void 0, cursorValue));
15667
15668
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
15668
15669
  return handleRunEventSearch(args);
15669
15670
  }
@@ -15697,7 +15698,7 @@ async function handleRunLogs(args) {
15697
15698
  console.error("--log-level requires one of: debug, info, warn, error.");
15698
15699
  return 1;
15699
15700
  }
15700
- const parsed = _chunkVSAYSOVCjs.parseLogLevel.call(void 0, value);
15701
+ const parsed = _chunkMLEJ2FYHjs.parseLogLevel.call(void 0, value);
15701
15702
  if (!parsed) {
15702
15703
  console.error(
15703
15704
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15744,12 +15745,12 @@ async function handleRunLogs(args) {
15744
15745
  );
15745
15746
  return 1;
15746
15747
  }
15747
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
15748
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
15748
15749
  if (outPath) {
15749
15750
  const result2 = await client.runs.logs(runId, { all: true });
15750
- const logs = result2.entries.filter((line) => _chunkVSAYSOVCjs.logLevelReaches.call(void 0, _chunkVSAYSOVCjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkVSAYSOVCjs.classifyLogLine.call(void 0, line).line);
15751
+ const logs = result2.entries.filter((line) => _chunkMLEJ2FYHjs.logLevelReaches.call(void 0, _chunkMLEJ2FYHjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkMLEJ2FYHjs.classifyLogLine.call(void 0, line).line);
15751
15752
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
15752
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15753
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15753
15754
  {
15754
15755
  runId: result2.runId,
15755
15756
  log_path: outPath,
@@ -15772,7 +15773,7 @@ async function handleRunLogs(args) {
15772
15773
  ]
15773
15774
  }
15774
15775
  },
15775
- { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args) }
15776
+ { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args) }
15776
15777
  );
15777
15778
  return 0;
15778
15779
  }
@@ -15803,7 +15804,7 @@ async function handleRunLogs(args) {
15803
15804
  }
15804
15805
  };
15805
15806
  const text = buildRunLogsText(filteredResult);
15806
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15807
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15807
15808
  {
15808
15809
  runId: result.runId,
15809
15810
  totalCount: result.totalCount,
@@ -15827,7 +15828,7 @@ async function handleRunLogs(args) {
15827
15828
  render: { sections: [{ title: "run logs", lines: entries }] }
15828
15829
  },
15829
15830
  {
15830
- json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args),
15831
+ json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args),
15831
15832
  text
15832
15833
  }
15833
15834
  );
@@ -15851,7 +15852,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15851
15852
  );
15852
15853
  }
15853
15854
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
15854
- (entry) => _chunkVSAYSOVCjs.logLevelReaches.call(void 0, _chunkVSAYSOVCjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
15855
+ (entry) => _chunkMLEJ2FYHjs.logLevelReaches.call(void 0, _chunkMLEJ2FYHjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
15855
15856
  );
15856
15857
  const selected = matching.slice(-limit);
15857
15858
  const olderMatchesExist = matching.length > selected.length;
@@ -15861,7 +15862,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15861
15862
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _518 => _518.at, 'call', _519 => _519(-1), 'optionalAccess', _520 => _520.seq]), () => ( null)),
15862
15863
  truncated: result.truncated || olderMatchesExist,
15863
15864
  hasMore: olderMatchesExist,
15864
- nextCursor: olderMatchesExist ? _chunkVSAYSOVCjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15865
+ nextCursor: olderMatchesExist ? _chunkMLEJ2FYHjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15865
15866
  };
15866
15867
  }
15867
15868
  async function handleRunEventSearch(args) {
@@ -15928,7 +15929,7 @@ ${usage2}`);
15928
15929
  namespace,
15929
15930
  ...backend ? { backend } : {}
15930
15931
  } : void 0;
15931
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
15932
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
15932
15933
  const result = await client.runs.searchEvents({
15933
15934
  ...runId ? { runId } : {},
15934
15935
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -16001,7 +16002,7 @@ ${renderedDetails}` : ""}`;
16001
16002
  String(limit),
16002
16003
  "--json"
16003
16004
  ].join(" ") : null;
16004
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16005
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16005
16006
  {
16006
16007
  events,
16007
16008
  nextCursor: result.nextCursor,
@@ -16012,14 +16013,14 @@ ${renderedDetails}` : ""}`;
16012
16013
  render: { sections: [{ title: "runtime events", lines }] }
16013
16014
  },
16014
16015
  {
16015
- json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args),
16016
+ json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args),
16016
16017
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
16017
16018
  }
16018
16019
  );
16019
16020
  return 0;
16020
16021
  }
16021
16022
  function buildRunLogsText(result) {
16022
- const lines = result.entries.map((line) => _chunkVSAYSOVCjs.classifyLogLine.call(void 0, line).line);
16023
+ const lines = result.entries.map((line) => _chunkMLEJ2FYHjs.classifyLogLine.call(void 0, line).line);
16023
16024
  if (result.warning) {
16024
16025
  if (lines.length > 0) lines.push("");
16025
16026
  lines.push(`warning: ${result.warning}`);
@@ -16053,7 +16054,7 @@ async function handleRunStop(args) {
16053
16054
  reason = args[++index];
16054
16055
  }
16055
16056
  }
16056
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16057
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16057
16058
  const result = await client.runs.stop(runId, { reason });
16058
16059
  const state = resolveRunStopState(result);
16059
16060
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -16068,7 +16069,7 @@ async function handleRunStop(args) {
16068
16069
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
16069
16070
  `inspect: deepline runs get ${runId} --full --json`
16070
16071
  ];
16071
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16072
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16072
16073
  {
16073
16074
  ...cancelling,
16074
16075
  state,
@@ -16083,7 +16084,7 @@ async function handleRunStop(args) {
16083
16084
  ]
16084
16085
  }
16085
16086
  },
16086
- { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args) }
16087
+ { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args) }
16087
16088
  );
16088
16089
  return 0;
16089
16090
  }
@@ -16100,7 +16101,7 @@ async function handleRunStop(args) {
16100
16101
  ];
16101
16102
  process.stderr.write(`${lines2.join("\n")}
16102
16103
  `);
16103
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16104
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16104
16105
  {
16105
16106
  ...result,
16106
16107
  render: {
@@ -16115,7 +16116,7 @@ async function handleRunStop(args) {
16115
16116
  ]
16116
16117
  }
16117
16118
  },
16118
- { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args) }
16119
+ { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args) }
16119
16120
  );
16120
16121
  return 1;
16121
16122
  }
@@ -16126,12 +16127,12 @@ async function handleRunStop(args) {
16126
16127
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
16127
16128
  ] : []
16128
16129
  ];
16129
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16130
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16130
16131
  {
16131
16132
  ...result,
16132
16133
  render: { sections: [{ title: "run stop", lines }] }
16133
16134
  },
16134
- { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args) }
16135
+ { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args) }
16135
16136
  );
16136
16137
  return 0;
16137
16138
  }
@@ -16181,18 +16182,18 @@ async function handleRunStopAll(args) {
16181
16182
  reason = args[++index];
16182
16183
  }
16183
16184
  }
16184
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16185
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16185
16186
  if (dryRun) {
16186
16187
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
16187
16188
  const lines2 = buildStopAllDryRunTextLines(result2);
16188
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16189
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16189
16190
  {
16190
16191
  ...result2,
16191
16192
  render: {
16192
16193
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
16193
16194
  }
16194
16195
  },
16195
- { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
16196
+ { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
16196
16197
  ` }
16197
16198
  );
16198
16199
  return 0;
@@ -16205,17 +16206,17 @@ async function handleRunStopAll(args) {
16205
16206
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
16206
16207
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
16207
16208
  ];
16208
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16209
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16209
16210
  {
16210
16211
  ...result,
16211
16212
  render: { sections: [{ title: "workspace stop-all", lines }] }
16212
16213
  },
16213
- { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args) }
16214
+ { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args) }
16214
16215
  );
16215
16216
  return result.failed > 0 || result.partial ? 1 : 0;
16216
16217
  }
16217
16218
  async function handleRunExport(args) {
16218
- const selection = _chunkGQXEHX5Xjs.parseJsonFields.call(void 0, args, "export");
16219
+ const selection = _chunkODEWOXWWjs.parseJsonFields.call(void 0, args, "export");
16219
16220
  args = selection.args;
16220
16221
  const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--json]";
16221
16222
  let runId;
@@ -16274,16 +16275,16 @@ async function handleRunExport(args) {
16274
16275
  "INVALID_ARGUMENT"
16275
16276
  );
16276
16277
  }
16277
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16278
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16278
16279
  let status = await client.getPlayStatus(runId, { full: true });
16279
16280
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
16280
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args));
16281
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkODEWOXWWjs.argsWantJson.call(void 0, args));
16281
16282
  try {
16282
16283
  await waitForPlayCompletionByWatch({
16283
16284
  client,
16284
16285
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
16285
16286
  workflowId: runId,
16286
- jsonOutput: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args),
16287
+ jsonOutput: _chunkODEWOXWWjs.argsWantJson.call(void 0, args),
16287
16288
  emitLogs: false,
16288
16289
  waitTimeoutMs,
16289
16290
  startedAt: Date.now(),
@@ -16382,8 +16383,8 @@ async function handleRunExport(args) {
16382
16383
  "utf-8"
16383
16384
  );
16384
16385
  }
16385
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, payload, {
16386
- json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args),
16386
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, payload, {
16387
+ json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args),
16387
16388
  fields: selection.fields,
16388
16389
  text: `${lines.join("\n")}
16389
16390
  `
@@ -16404,10 +16405,10 @@ async function handlePlayGet(args) {
16404
16405
  );
16405
16406
  return 2;
16406
16407
  }
16407
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16408
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16408
16409
  const explicitJson = args.includes("--json");
16409
16410
  const sourceOutput = args.includes("--source");
16410
- const jsonOutput = sourceOutput ? explicitJson : _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
16411
+ const jsonOutput = sourceOutput ? explicitJson : _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
16411
16412
  const requestedRevisionFlags = [
16412
16413
  args.includes("--working"),
16413
16414
  args.includes("--live"),
@@ -16467,7 +16468,7 @@ async function handlePlayGet(args) {
16467
16468
  }
16468
16469
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
16469
16470
  if (jsonOutput) {
16470
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, {
16471
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, {
16471
16472
  ...detail,
16472
16473
  ...materializedFile ? {
16473
16474
  message: loadedMessage,
@@ -16554,8 +16555,8 @@ async function handlePlayVersions(args) {
16554
16555
  console.error("Usage: deepline plays versions --name <name> [--json]");
16555
16556
  return 1;
16556
16557
  }
16557
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16558
- const jsonOutput = _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
16558
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16559
+ const jsonOutput = _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
16559
16560
  await assertCanonicalNamedPlayReference(client, playName, {
16560
16561
  command: "versions"
16561
16562
  });
@@ -16563,7 +16564,7 @@ async function handlePlayVersions(args) {
16563
16564
  parseReferencedPlayTarget2(playName).playName
16564
16565
  );
16565
16566
  if (jsonOutput) {
16566
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, { versions });
16567
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, { versions });
16567
16568
  return 0;
16568
16569
  }
16569
16570
  if (versions.length === 0) {
@@ -16595,9 +16596,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
16595
16596
  "signals"
16596
16597
  ];
16597
16598
  async function handlePlayList(args) {
16598
- const jsonOutput = _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
16599
+ const jsonOutput = _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
16599
16600
  const showCost = args.includes("--show-cost");
16600
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16601
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16601
16602
  const categoriesIndex = args.indexOf("--categories");
16602
16603
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _556 => _556[categoriesIndex + 1], 'optionalAccess', _557 => _557.trim, 'call', _558 => _558()]) : void 0;
16603
16604
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -16694,7 +16695,7 @@ async function handlePlayList(args) {
16694
16695
  lines.push("List truncated \u2014 more plays are available.");
16695
16696
  lines.push(`Next page: ${nextPage}`);
16696
16697
  }
16697
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16698
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16698
16699
  {
16699
16700
  plays,
16700
16701
  count: plays.length,
@@ -16712,7 +16713,7 @@ async function handlePlayList(args) {
16712
16713
  }
16713
16714
  async function handlePlayPin(args, pinned) {
16714
16715
  const target = _optionalChain([args, 'access', _565 => _565.find, 'call', _566 => _566((arg) => !arg.startsWith("-")), 'optionalAccess', _567 => _567.trim, 'call', _568 => _568()]);
16715
- const jsonOutput = _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
16716
+ const jsonOutput = _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
16716
16717
  const dryRun = args.includes("--dry-run");
16717
16718
  if (!target) {
16718
16719
  console.error(
@@ -16730,11 +16731,11 @@ async function handlePlayPin(args, pinned) {
16730
16731
  const name = parsedTarget.playName;
16731
16732
  const plan = { name, pinned, dryRun };
16732
16733
  if (dryRun) {
16733
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, plan);
16734
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, plan);
16734
16735
  return 0;
16735
16736
  }
16736
- const result = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().setPlayPinned(name, pinned);
16737
- if (jsonOutput) _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result);
16737
+ const result = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().setPlayPinned(name, pinned);
16738
+ if (jsonOutput) _chunkODEWOXWWjs.printCompactJson.call(void 0, result);
16738
16739
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
16739
16740
  return 0;
16740
16741
  }
@@ -16750,7 +16751,7 @@ function csvColumnLines(csvInput) {
16750
16751
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
16751
16752
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
16752
16753
  }),
16753
- _chunkVSAYSOVCjs.CSV_HEADER_MATCHING_NOTE
16754
+ _chunkMLEJ2FYHjs.CSV_HEADER_MATCHING_NOTE
16754
16755
  ];
16755
16756
  }
16756
16757
  function describedPlay(play) {
@@ -16894,12 +16895,12 @@ async function handlePlayGrep(args) {
16894
16895
  console.error("Usage: deepline plays grep <query> [--json]");
16895
16896
  return 1;
16896
16897
  }
16897
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16898
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16898
16899
  const results = (await client.listPlays({ grep: query })).map(
16899
16900
  summarizePlayGrepResult
16900
16901
  );
16901
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
16902
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, {
16902
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
16903
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, {
16903
16904
  plays: results,
16904
16905
  count: results.length,
16905
16906
  query,
@@ -16922,7 +16923,7 @@ async function handlePlayGrep(args) {
16922
16923
  return 0;
16923
16924
  }
16924
16925
  async function handlePlayDescribe(args) {
16925
- const selection = _chunkGQXEHX5Xjs.parseJsonFields.call(void 0, args, "describe");
16926
+ const selection = _chunkODEWOXWWjs.parseJsonFields.call(void 0, args, "describe");
16926
16927
  args = selection.args;
16927
16928
  const playName = args[0];
16928
16929
  if (!playName) {
@@ -16956,8 +16957,8 @@ async function handlePlayDescribe(args) {
16956
16957
  `deepline plays check ${playName}`,
16957
16958
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
16958
16959
  ];
16959
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
16960
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, {
16960
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
16961
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, {
16961
16962
  ok: false,
16962
16963
  error: { message },
16963
16964
  next
@@ -16971,7 +16972,7 @@ async function handlePlayDescribe(args) {
16971
16972
  }
16972
16973
  return 2;
16973
16974
  }
16974
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16975
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16975
16976
  await assertCanonicalNamedPlayReference(client, playName, {
16976
16977
  command: "describe"
16977
16978
  });
@@ -16981,9 +16982,9 @@ async function handlePlayDescribe(args) {
16981
16982
  compact: args.includes("--compact")
16982
16983
  }
16983
16984
  );
16984
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
16985
- if (selection.fields) _chunkGQXEHX5Xjs.printJson.call(void 0, play, selection.fields);
16986
- else _chunkGQXEHX5Xjs.printCompactJson.call(void 0, play);
16985
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
16986
+ if (selection.fields) _chunkODEWOXWWjs.printJson.call(void 0, play, selection.fields);
16987
+ else _chunkODEWOXWWjs.printCompactJson.call(void 0, play);
16987
16988
  return 0;
16988
16989
  }
16989
16990
  printPlayDescription(play);
@@ -17027,7 +17028,7 @@ async function handlePlaySave(args) {
17027
17028
  next: `deepline plays check ${shellQuote3(options.target)}`
17028
17029
  };
17029
17030
  if (options.jsonOutput) {
17030
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result);
17031
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, result);
17031
17032
  } else {
17032
17033
  console.error(result.message);
17033
17034
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -17049,7 +17050,7 @@ async function handlePlaySave(args) {
17049
17050
  };
17050
17051
  if (options.dryRun) {
17051
17052
  if (options.jsonOutput) {
17052
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, dryRun);
17053
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, dryRun);
17053
17054
  } else {
17054
17055
  console.log(`Dry run: ${playName}`);
17055
17056
  console.log(` source: ${dryRun.sourceHash}`);
@@ -17058,7 +17059,7 @@ async function handlePlaySave(args) {
17058
17059
  }
17059
17060
  return 0;
17060
17061
  }
17061
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
17062
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
17062
17063
  try {
17063
17064
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
17064
17065
  "cli.play_save_compile_manifests",
@@ -17094,7 +17095,7 @@ async function handlePlaySave(args) {
17094
17095
  }
17095
17096
  };
17096
17097
  if (options.jsonOutput) {
17097
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result);
17098
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, result);
17098
17099
  } else {
17099
17100
  console.log(
17100
17101
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -17120,7 +17121,7 @@ async function handlePlayPublish(args) {
17120
17121
  }
17121
17122
  const { target: playName, useLatest } = options;
17122
17123
  let revisionId = options.revisionId;
17123
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
17124
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
17124
17125
  if (isFileTarget(playName)) {
17125
17126
  if (revisionId || useLatest) {
17126
17127
  console.error(
@@ -17152,7 +17153,7 @@ async function handlePlayPublish(args) {
17152
17153
  next: `deepline plays check ${shellQuote3(playName)}`
17153
17154
  };
17154
17155
  if (options.jsonOutput) {
17155
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result3);
17156
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, result3);
17156
17157
  } else {
17157
17158
  console.error(result3.message);
17158
17159
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -17175,7 +17176,7 @@ async function handlePlayPublish(args) {
17175
17176
  };
17176
17177
  if (options.dryRun) {
17177
17178
  if (options.jsonOutput) {
17178
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, dryRun);
17179
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, dryRun);
17179
17180
  } else {
17180
17181
  console.log(`Dry run: ${rootPlayName}`);
17181
17182
  console.log(` source: ${dryRun.sourceHash}`);
@@ -17243,7 +17244,7 @@ async function handlePlayPublish(args) {
17243
17244
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
17244
17245
  };
17245
17246
  if (options.jsonOutput) {
17246
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result2);
17247
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, result2);
17247
17248
  } else {
17248
17249
  printPublishReceipt({
17249
17250
  name: rootPlayName,
@@ -17274,7 +17275,7 @@ async function handlePlayPublish(args) {
17274
17275
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
17275
17276
  latest: useLatest
17276
17277
  };
17277
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result2);
17278
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, result2);
17278
17279
  return 0;
17279
17280
  }
17280
17281
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -17298,7 +17299,7 @@ async function handlePlayPublish(args) {
17298
17299
  revisionId ? { revisionId } : {}
17299
17300
  );
17300
17301
  if (options.jsonOutput) {
17301
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result);
17302
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, result);
17302
17303
  } else {
17303
17304
  printPublishReceipt({
17304
17305
  name: result.name,
@@ -17338,7 +17339,7 @@ async function handlePlayDelete(args) {
17338
17339
  );
17339
17340
  return 2;
17340
17341
  }
17341
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
17342
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
17342
17343
  let detail;
17343
17344
  try {
17344
17345
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -17362,8 +17363,8 @@ async function handlePlayDelete(args) {
17362
17363
  name: resolvedName,
17363
17364
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
17364
17365
  };
17365
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
17366
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result2);
17366
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
17367
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, result2);
17367
17368
  } else {
17368
17369
  process.stdout.write(
17369
17370
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -17373,8 +17374,8 @@ async function handlePlayDelete(args) {
17373
17374
  return 0;
17374
17375
  }
17375
17376
  const result = await client.deletePlay(resolvedName);
17376
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
17377
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result);
17377
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
17378
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, result);
17378
17379
  return result.archived || result.alreadyArchived ? 0 : 4;
17379
17380
  }
17380
17381
  if (result.alreadyArchived) {
@@ -17413,13 +17414,13 @@ async function handlePlayRestore(args) {
17413
17414
  );
17414
17415
  return 2;
17415
17416
  }
17416
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
17417
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
17417
17418
  try {
17418
17419
  const result = await client.restorePlay(
17419
17420
  parseReferencedPlayTarget2(playName).playName
17420
17421
  );
17421
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
17422
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result);
17422
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
17423
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, result);
17423
17424
  return result.restored || result.alreadyActive ? 0 : 4;
17424
17425
  }
17425
17426
  if (result.alreadyActive) {
@@ -17524,7 +17525,7 @@ Examples:
17524
17525
  ).action(async (target, options) => {
17525
17526
  process.exitCode = await handlePlayCheck([
17526
17527
  target,
17527
- ..._chunkGQXEHX5Xjs.jsonFieldArgs.call(void 0, options.json),
17528
+ ..._chunkODEWOXWWjs.jsonFieldArgs.call(void 0, options.json),
17528
17529
  ...options.full ? ["--full"] : []
17529
17530
  ]);
17530
17531
  });
@@ -17711,7 +17712,7 @@ JSON field selection:
17711
17712
  ...options.maxConcurrentRows ? ["--max-concurrent-rows", options.maxConcurrentRows] : [],
17712
17713
  ...options.open ? ["--open"] : [],
17713
17714
  ...options.debugMapLatency ? ["--debug-map-latency"] : [],
17714
- ..._chunkGQXEHX5Xjs.jsonFieldArgs.call(void 0, options.json),
17715
+ ..._chunkODEWOXWWjs.jsonFieldArgs.call(void 0, options.json),
17715
17716
  ...options.full ? ["--full"] : [],
17716
17717
  ...passthroughArgs
17717
17718
  ]);
@@ -17766,9 +17767,9 @@ Examples:
17766
17767
  const limit = Number(options.historyLimit);
17767
17768
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
17768
17769
  throw new Error("--history-limit must be an integer from 1 to 30.");
17769
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
17770
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
17770
17771
  if (options.binding) {
17771
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0,
17772
+ _chunkODEWOXWWjs.printCompactJson.call(void 0,
17772
17773
  await client.getPlayTriggerHistory(options.binding, { limit })
17773
17774
  );
17774
17775
  return;
@@ -17776,7 +17777,7 @@ Examples:
17776
17777
  const result = await client.listPlayTriggerInventory({
17777
17778
  cursor: options.cursor
17778
17779
  });
17779
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, {
17780
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, {
17780
17781
  ...result,
17781
17782
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
17782
17783
  });
@@ -17823,7 +17824,7 @@ Examples:
17823
17824
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
17824
17825
  throw new Error("--group-by must be kind or trigger_source.");
17825
17826
  }
17826
- const result = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().getPlaysActivity({
17827
+ const result = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().getPlaysActivity({
17827
17828
  timeZone: options.timeZone,
17828
17829
  days,
17829
17830
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -17837,7 +17838,7 @@ Examples:
17837
17838
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
17838
17839
  );
17839
17840
  }
17840
- _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
17841
+ _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
17841
17842
  { ...result },
17842
17843
  {
17843
17844
  json: options.json || !process.stdout.isTTY,
@@ -17866,7 +17867,7 @@ Examples:
17866
17867
  false
17867
17868
  );
17868
17869
  });
17869
- _chunkQQMKX7JWjs.registerDeprecatedSearchCommand.call(void 0,
17870
+ _chunkUZTTPEG2js.registerDeprecatedSearchCommand.call(void 0,
17870
17871
  play,
17871
17872
  (options) => options.all ? ["plays"] : ["prebuilts"]
17872
17873
  );
@@ -17910,7 +17911,7 @@ Examples:
17910
17911
  );
17911
17912
  _chunkXNL3SEMCjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
17912
17913
  async (target, options) => {
17913
- const ownView = () => handlePlayDescribe(_chunkGQXEHX5Xjs.describeArgs.call(void 0, target, options));
17914
+ const ownView = () => handlePlayDescribe(_chunkODEWOXWWjs.describeArgs.call(void 0, target, options));
17914
17915
  const [flagText] = [options.json].filter(
17915
17916
  (value) => typeof value === "string"
17916
17917
  );
@@ -17921,7 +17922,7 @@ Examples:
17921
17922
  process.exitCode = await ownView();
17922
17923
  return;
17923
17924
  }
17924
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-GS5A2XH4.js")));
17925
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-WA6R2JSH.js")));
17925
17926
  process.exitCode = await describeAnything(
17926
17927
  name,
17927
17928
  {
@@ -18038,7 +18039,7 @@ Examples:
18038
18039
  deepline plays deployments <deployment-id>
18039
18040
  `
18040
18041
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
18041
- async (id, options) => id ? _chunk4UXNEC5Cjs.handleDeploymentGet.call(void 0, id, options) : _chunk4UXNEC5Cjs.handleDeploymentsList.call(void 0, options)
18042
+ async (id, options) => id ? _chunkYVMJTXEGjs.handleDeploymentGet.call(void 0, id, options) : _chunkYVMJTXEGjs.handleDeploymentsList.call(void 0, options)
18042
18043
  );
18043
18044
  addPublishHelp(
18044
18045
  play.command("publish <target>").description(
@@ -18218,7 +18219,7 @@ Examples:
18218
18219
  ).action(async (runId, options) => {
18219
18220
  process.exitCode = await handleRunGet([
18220
18221
  runId,
18221
- ..._chunkGQXEHX5Xjs.jsonFieldArgs.call(void 0, options.json),
18222
+ ..._chunkODEWOXWWjs.jsonFieldArgs.call(void 0, options.json),
18222
18223
  ...options.full ? ["--full"] : [],
18223
18224
  ...options.input ? ["--input"] : [],
18224
18225
  ...options.config ? ["--config"] : [],
@@ -18493,7 +18494,7 @@ Examples:
18493
18494
  ...options.metadataOut ? ["--metadata-out", options.metadataOut] : [],
18494
18495
  ...options.wait ? ["--wait"] : [],
18495
18496
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
18496
- ..._chunkGQXEHX5Xjs.jsonFieldArgs.call(void 0, options.json)
18497
+ ..._chunkODEWOXWWjs.jsonFieldArgs.call(void 0, options.json)
18497
18498
  ]);
18498
18499
  });
18499
18500
  const share = play.command("share").description(
@@ -18659,10 +18660,10 @@ async function handlePlayShareStatus(args) {
18659
18660
  return 2;
18660
18661
  }
18661
18662
  const name = parseReferencedPlayTarget2(target).playName;
18662
- const status = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().getSharePage(name);
18663
+ const status = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().getSharePage(name);
18663
18664
  const outputStatus = shareStatusForOutput(status);
18664
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
18665
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, outputStatus);
18665
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18666
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, outputStatus);
18666
18667
  return 0;
18667
18668
  }
18668
18669
  if (!outputStatus.share) {
@@ -18701,7 +18702,7 @@ async function handlePlaySharePublish(args) {
18701
18702
  return 2;
18702
18703
  }
18703
18704
  const name = parseReferencedPlayTarget2(target).playName;
18704
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
18705
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
18705
18706
  let revisionId = shareFlagValue(args, "--revision-id");
18706
18707
  let resolvedVersion;
18707
18708
  if (!revisionId) {
@@ -18732,8 +18733,8 @@ async function handlePlaySharePublish(args) {
18732
18733
  );
18733
18734
  if (!hasCompleted) {
18734
18735
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
18735
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
18736
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, {
18736
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18737
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, {
18737
18738
  ok: false,
18738
18739
  code: "NO_SUCCESSFUL_RUN",
18739
18740
  message,
@@ -18757,8 +18758,8 @@ async function handlePlaySharePublish(args) {
18757
18758
  };
18758
18759
  if (args.includes("--dry-run")) {
18759
18760
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
18760
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
18761
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, plan);
18761
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18762
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, plan);
18762
18763
  } else {
18763
18764
  console.log(
18764
18765
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -18768,8 +18769,8 @@ async function handlePlaySharePublish(args) {
18768
18769
  }
18769
18770
  const status = await client.publishSharePage(name, request);
18770
18771
  const outputStatus = shareStatusForOutput(status);
18771
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
18772
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, outputStatus);
18772
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18773
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, outputStatus);
18773
18774
  return 0;
18774
18775
  }
18775
18776
  const urls = shareUrlFields(outputStatus);
@@ -18800,9 +18801,9 @@ async function handlePlayShareUpdate(args) {
18800
18801
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
18801
18802
  ...seoIndexing ? { seoIndexing } : {}
18802
18803
  };
18803
- const status = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().updateSharePage(name, request);
18804
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
18805
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, status);
18804
+ const status = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().updateSharePage(name, request);
18805
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18806
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, status);
18806
18807
  return 0;
18807
18808
  }
18808
18809
  console.log(`Updated ${name} share settings.`);
@@ -18817,7 +18818,7 @@ async function handlePlayShareRegenerate(args) {
18817
18818
  return 2;
18818
18819
  }
18819
18820
  const name = parseReferencedPlayTarget2(target).playName;
18820
- const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
18821
+ const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
18821
18822
  let revisionId = shareFlagValue(args, "--revision-id");
18822
18823
  const versionFlag = shareFlagValue(args, "--version");
18823
18824
  if (!revisionId && versionFlag) {
@@ -18834,8 +18835,8 @@ async function handlePlayShareRegenerate(args) {
18834
18835
  revisionId ? { revisionId } : {}
18835
18836
  );
18836
18837
  const outputStatus = shareStatusForOutput(status);
18837
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
18838
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, outputStatus);
18838
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18839
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, outputStatus);
18839
18840
  return 0;
18840
18841
  }
18841
18842
  const urls = shareUrlFields(outputStatus);
@@ -18860,9 +18861,9 @@ async function handlePlayShareUnpublish(args) {
18860
18861
  return 2;
18861
18862
  }
18862
18863
  const name = parseReferencedPlayTarget2(target).playName;
18863
- const status = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().unpublishSharePage(name);
18864
- if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
18865
- _chunkGQXEHX5Xjs.printCompactJson.call(void 0, status);
18864
+ const status = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().unpublishSharePage(name);
18865
+ if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18866
+ _chunkODEWOXWWjs.printCompactJson.call(void 0, status);
18866
18867
  return 0;
18867
18868
  }
18868
18869
  console.log(`Unpublished ${name}; the public page has been removed.`);