deepline 0.3.312 → 0.3.313

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +60 -37
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +11 -6
  4. package/dist/cli/auth-56NYRTQK.js +31 -0
  5. package/dist/cli/{auth-ACDTPM3M.mjs → auth-LNA6WCQA.mjs} +4 -4
  6. package/dist/cli/{billing-FVBBJ77L.mjs → billing-D37QNIE3.mjs} +4 -4
  7. package/dist/cli/{billing-YTJFHEGU.js → billing-GJJUUCOZ.js} +70 -70
  8. package/dist/cli/{chunk-GTEDCRKC.mjs → chunk-3ZC4PHJ6.mjs} +1 -1
  9. package/dist/cli/{chunk-T4IJQKRE.js → chunk-4UXNEC5C.js} +26 -26
  10. package/dist/cli/{chunk-V7N6BJQD.js → chunk-6G7ZYA6E.js} +50 -50
  11. package/dist/cli/{chunk-6OGNRAS7.mjs → chunk-BLMO3JMZ.mjs} +2 -2
  12. package/dist/cli/{chunk-I25C4KL7.mjs → chunk-BS4GAUMH.mjs} +6 -6
  13. package/dist/cli/{chunk-ZH7KTVAB.mjs → chunk-CSH4PKPJ.mjs} +1 -1
  14. package/dist/cli/{chunk-WPTUKXIF.mjs → chunk-DOI3UBGV.mjs} +1 -1
  15. package/dist/cli/{chunk-YYU3PYVK.js → chunk-FJUIXWZF.js} +48 -48
  16. package/dist/cli/{chunk-TID5XLTZ.js → chunk-FSZTWQFK.js} +4 -4
  17. package/dist/cli/{chunk-6LLJWMYH.js → chunk-GQXEHX5X.js} +6 -6
  18. package/dist/cli/{chunk-AA66YTS7.mjs → chunk-HM2TSTCT.mjs} +1 -1
  19. package/dist/cli/{chunk-ZQJDRSR5.js → chunk-HY2SSFRI.js} +1 -1
  20. package/dist/cli/{chunk-7SW43OAX.js → chunk-I4FHFGMA.js} +60 -60
  21. package/dist/cli/{chunk-FQVTHBEH.js → chunk-JG2ZTDZV.js} +15 -15
  22. package/dist/cli/{chunk-6KKETQSI.js → chunk-KNGTN7NE.js} +6 -6
  23. package/dist/cli/{chunk-BRJOVSTH.js → chunk-MHETTUWR.js} +2 -2
  24. package/dist/cli/{chunk-NJNYWVEF.mjs → chunk-N2DXWS6W.mjs} +2 -2
  25. package/dist/cli/{chunk-NMZPK7LM.mjs → chunk-OTA5C7DD.mjs} +1 -1
  26. package/dist/cli/{chunk-QFSLMI42.js → chunk-P4N7233B.js} +220 -220
  27. package/dist/cli/{chunk-EHVJ7XXD.mjs → chunk-QCXDLOGA.mjs} +2 -2
  28. package/dist/cli/{chunk-VJDKV5RU.js → chunk-QQMKX7JW.js} +6 -6
  29. package/dist/cli/{chunk-MK4K5MQU.mjs → chunk-RDUS2EDE.mjs} +3 -3
  30. package/dist/cli/{chunk-OV6IFAXH.mjs → chunk-UQBMMN4U.mjs} +5 -5
  31. package/dist/cli/{chunk-ULI6UVV6.js → chunk-VSAYSOVC.js} +6 -6
  32. package/dist/cli/{chunk-ENSDO4SG.mjs → chunk-XFEPRIW7.mjs} +4 -4
  33. package/dist/cli/{chunk-NWFE4PGX.mjs → chunk-YZ5PP6TX.mjs} +1 -1
  34. package/dist/cli/{client-ENGOMTTU.mjs → client-6RVRZ4OY.mjs} +3 -3
  35. package/dist/cli/client-XUTMYJDL.js +20 -0
  36. package/dist/cli/{csv-6WOJC6NZ.js → csv-2UHRG67O.js} +12 -12
  37. package/dist/cli/{csv-ENKTPYAJ.mjs → csv-SBOHBKEG.mjs} +3 -3
  38. package/dist/cli/{db-DSCJZYJU.mjs → db-TUFTPYEA.mjs} +4 -4
  39. package/dist/cli/{db-BAEVP4QK.js → db-VRE7CLIQ.js} +20 -20
  40. package/dist/cli/{describe-X2AFAC4B.js → describe-GS5A2XH4.js} +15 -15
  41. package/dist/cli/{describe-PAUHJF7H.mjs → describe-WCBZTSOF.mjs} +8 -8
  42. package/dist/cli/{executions-LXS6NLCV.js → executions-ENMOOKWH.js} +6 -6
  43. package/dist/cli/{executions-R6JOR67D.mjs → executions-UTN3O372.mjs} +4 -4
  44. package/dist/cli/{feedback-HXP2D7K6.js → feedback-BLN6SIRG.js} +6 -6
  45. package/dist/cli/{feedback-CYRVNCGT.mjs → feedback-PXBA3AG7.mjs} +3 -3
  46. package/dist/cli/git-26D3VD2I.js +23 -0
  47. package/dist/cli/{git-XBYBZB4R.mjs → git-YDMIRW3Q.mjs} +4 -4
  48. package/dist/cli/index.js +74 -74
  49. package/dist/cli/index.mjs +31 -31
  50. package/dist/cli/{legacy-noops-AUNAFEZP.js → legacy-noops-CWTUWTDB.js} +7 -7
  51. package/dist/cli/{legacy-noops-OQP6VZKE.mjs → legacy-noops-OVG2SICQ.mjs} +4 -4
  52. package/dist/cli/{monitors-L2HAAPAL.mjs → monitors-ATIDXJA4.mjs} +4 -4
  53. package/dist/cli/{monitors-QSIZG3CJ.js → monitors-T63OPBTY.js} +85 -85
  54. package/dist/cli/{org-JUHQGBQE.js → org-7RVAPMRN.js} +60 -60
  55. package/dist/cli/{org-UCSN5XRC.mjs → org-NXKNIM3H.mjs} +4 -4
  56. package/dist/cli/{play-5AT2RB3M.mjs → play-B62OVHD4.mjs} +7 -7
  57. package/dist/cli/play-WM3NZVE7.js +152 -0
  58. package/dist/cli/{providers-CVG4L3VR.js → providers-EITVEGXD.js} +7 -7
  59. package/dist/cli/{providers-GVPAPZ4L.mjs → providers-U7B7JEYY.mjs} +4 -4
  60. package/dist/cli/{quickstart-7OIFIQG3.js → quickstart-G64F2XRU.js} +5 -5
  61. package/dist/cli/{quickstart-Y6ZU27LE.mjs → quickstart-VSWTYNJM.mjs} +3 -3
  62. package/dist/cli/{search-4I2Y2NKK.mjs → search-SKYTFKKF.mjs} +5 -5
  63. package/dist/cli/search-TXQJJQWY.js +26 -0
  64. package/dist/cli/{secrets-3Z4IUEBA.mjs → secrets-4DNS7KWS.mjs} +4 -4
  65. package/dist/cli/{secrets-O2UFLU52.js → secrets-JSFHSCGM.js} +13 -13
  66. package/dist/cli/{sessions-OMAXRY5I.mjs → sessions-HB7RQ4XN.mjs} +4 -4
  67. package/dist/cli/{sessions-T6MWWQRH.js → sessions-MLTYPPCG.js} +5 -5
  68. package/dist/cli/{settings-R4LO5NMY.js → settings-3PCKNBPU.js} +74 -74
  69. package/dist/cli/{settings-C47WXZY5.mjs → settings-BT5WCU65.mjs} +7 -7
  70. package/dist/cli/{setup-JPJVTIQ6.mjs → setup-EIWDTMCK.mjs} +6 -6
  71. package/dist/cli/{setup-FIUTV4DD.js → setup-EYZWTDJI.js} +41 -41
  72. package/dist/cli/skills-73T4BSDE.js +28 -0
  73. package/dist/cli/{skills-6WVTMKP5.mjs → skills-AQ3ORN2C.mjs} +4 -4
  74. package/dist/cli/{tools-TKS77TNU.mjs → tools-OFTB2BGP.mjs} +6 -6
  75. package/dist/cli/tools-ZGSOHWBY.js +38 -0
  76. package/dist/cli/{update-GD754XMA.mjs → update-ERQTFSAR.mjs} +6 -6
  77. package/dist/cli/update-L4V5TF7I.js +28 -0
  78. package/dist/cli/{workflow-OCUQCNXA.js → workflow-6D6NHUH4.js} +15 -15
  79. package/dist/cli/{workflow-YKQSPXQZ.mjs → workflow-SRLWGGBM.mjs} +5 -5
  80. package/dist/index.js +6 -6
  81. package/dist/index.mjs +3 -3
  82. package/dist/install-integrity.json +74 -74
  83. package/dist/release.d.mts +1 -1
  84. package/dist/release.d.ts +1 -1
  85. package/dist/release.js +2 -2
  86. package/dist/release.mjs +1 -1
  87. package/package.json +1 -1
  88. package/dist/cli/auth-TFDGA24W.js +0 -31
  89. package/dist/cli/client-T6YGH6TT.js +0 -20
  90. package/dist/cli/git-JOE2RM3Q.js +0 -23
  91. package/dist/cli/play-2SNMTZGK.js +0 -152
  92. package/dist/cli/search-DS36UHOX.js +0 -26
  93. package/dist/cli/skills-GLPKPF7R.js +0 -28
  94. package/dist/cli/tools-L3YLQ7BR.js +0 -38
  95. package/dist/cli/update-HXI35NME.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 _chunkVJDKV5RUjs = require('./chunk-VJDKV5RU.js');
10
+ var _chunkQQMKX7JWjs = require('./chunk-QQMKX7JW.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkT4IJQKREjs = require('./chunk-T4IJQKRE.js');
14
+ var _chunk4UXNEC5Cjs = require('./chunk-4UXNEC5C.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 _chunkULI6UVV6js = require('./chunk-ULI6UVV6.js');
37
+ var _chunkVSAYSOVCjs = require('./chunk-VSAYSOVC.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 _chunk6LLJWMYHjs = require('./chunk-6LLJWMYH.js');
69
+ var _chunkGQXEHX5Xjs = require('./chunk-GQXEHX5X.js');
70
70
 
71
71
 
72
- var _chunkTID5XLTZjs = require('./chunk-TID5XLTZ.js');
72
+ var _chunkFSZTWQFKjs = require('./chunk-FSZTWQFK.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
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
2064
+ _chunkGQXEHX5Xjs.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
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
2108
+ _chunkGQXEHX5Xjs.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, _chunkULI6UVV6js.DeeplineClient)().getPlaySettings(options.play),
2133
+ await new (0, _chunkVSAYSOVCjs.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
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
2164
+ _chunkGQXEHX5Xjs.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, _chunkULI6UVV6js.DeeplineClient)().updatePlaySettings(play, patch),
2185
+ await new (0, _chunkVSAYSOVCjs.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, _chunkULI6UVV6js.DeeplineClient)().listPlaySettingsPaths({
2211
+ const page = await new (0, _chunkVSAYSOVCjs.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
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
2217
+ _chunkGQXEHX5Xjs.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, _chunkULI6UVV6js.DeeplineClient)();
2268
+ const client = new (0, _chunkVSAYSOVCjs.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
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
2330
+ _chunkGQXEHX5Xjs.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
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
2458
+ _chunkGQXEHX5Xjs.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
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
2471
+ _chunkGQXEHX5Xjs.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
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
2501
+ _chunkGQXEHX5Xjs.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, _chunkULI6UVV6js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2520
+ await new (0, _chunkVSAYSOVCjs.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, _chunkULI6UVV6js.DeeplineClient)().getPlayTriggerConfig(options.play),
2553
+ await new (0, _chunkVSAYSOVCjs.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, _chunkULI6UVV6js.DeeplineClient)().getPlayTriggerConfig(
2597
+ const current = await new (0, _chunkVSAYSOVCjs.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 = _chunkULI6UVV6js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2674
+ var RUN_LOGS_KIND_HELP = _chunkVSAYSOVCjs.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 (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2812
- _chunk6LLJWMYHjs.printJsonError.call(void 0,
2813
- Object.assign(new (0, _chunkULI6UVV6js.RunEventQueryInputError)(error.message), {
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), {
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, _chunkULI6UVV6js.RunEventQueryInputError)(
2857
+ throw new (0, _chunkVSAYSOVCjs.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, _chunkULI6UVV6js.RunEventQueryInputError)(
2864
+ throw new (0, _chunkVSAYSOVCjs.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, _chunkULI6UVV6js.RunEventQueryInputError)(
2878
+ throw new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(
2879
2879
  `Unsupported query flag ${flag}. ${correction}`
2880
2880
  );
2881
2881
  }
2882
2882
  if (runId !== void 0) {
2883
- throw new (0, _chunkULI6UVV6js.RunEventQueryInputError)(
2883
+ throw new (0, _chunkVSAYSOVCjs.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, _chunkULI6UVV6js.RunEventQueryInputError)(
2891
+ throw new (0, _chunkVSAYSOVCjs.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, _chunkULI6UVV6js.RunEventQueryInputError)(
2904
+ throw new (0, _chunkVSAYSOVCjs.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, _chunkULI6UVV6js.RunEventQueryInputError)(
2910
+ throw new (0, _chunkVSAYSOVCjs.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, _chunkULI6UVV6js.RunEventQueryInputError)(
2915
+ throw new (0, _chunkVSAYSOVCjs.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, _chunkULI6UVV6js.RunEventQueryInputError)(
2923
+ throw new (0, _chunkVSAYSOVCjs.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 = _chunkULI6UVV6js.normalizeRunEventOperationRequest.call(void 0, body);
2958
+ const request = _chunkVSAYSOVCjs.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, _chunkULI6UVV6js.RunEventQueryInputError)(
2962
+ throw new (0, _chunkVSAYSOVCjs.RunEventQueryInputError)(
2963
2963
  "--runtime-backend must be daytona or modal."
2964
2964
  );
2965
2965
  }
2966
2966
  if (backend && !namespace) {
2967
- throw new (0, _chunkULI6UVV6js.RunEventQueryInputError)(
2967
+ throw new (0, _chunkVSAYSOVCjs.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 _chunkULI6UVV6js.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 _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;
3016
3016
  const diagnostic = Object.assign(failure, {
3017
3017
  exitCode,
3018
3018
  retryable: exitCode === 5
3019
3019
  });
3020
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) _chunk6LLJWMYHjs.printJsonError.call(void 0, diagnostic);
3020
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) _chunkGQXEHX5Xjs.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, _chunkULI6UVV6js.DeeplineClient)();
3035
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
3036
3036
  let result;
3037
3037
  if (request.operation === "fields") {
3038
3038
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3097,13 +3097,13 @@ async function executeRunEventQuery(args, resource) {
3097
3097
  lines.push(`Next page: ${nextPage}`);
3098
3098
  }
3099
3099
  }
3100
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
3100
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
3101
3101
  {
3102
3102
  ...result,
3103
3103
  ...nextPage ? { next: { page: nextPage } } : {},
3104
3104
  render: { sections: [{ title: `run ${resource}`, lines }] }
3105
3105
  },
3106
- { json: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3106
+ { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3107
3107
  ` }
3108
3108
  );
3109
3109
  return 0;
@@ -3921,7 +3921,7 @@ function checkedRunExample(plays, target) {
3921
3921
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3922
3922
  const base = `deepline plays run --file ${quote(target)}`;
3923
3923
  return {
3924
- command: `${base}${_chunkULI6UVV6js.playInputExampleArgs.call(void 0, schema)} --json`,
3924
+ command: `${base}${_chunkVSAYSOVCjs.playInputExampleArgs.call(void 0, schema)} --json`,
3925
3925
  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
3926
  };
3927
3927
  }
@@ -5539,7 +5539,7 @@ async function runPlayBootstrap(args) {
5539
5539
  return runMonitorBootstrap(args);
5540
5540
  }
5541
5541
  const options = parsePlayBootstrapOptions(args);
5542
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
5542
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
5543
5543
  const contracts = await loadBootstrapContracts(client, options);
5544
5544
  const csvContext = loadCsvContext(options.from);
5545
5545
  const source = generateBootstrapPlaySource({
@@ -5694,7 +5694,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5694
5694
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
5695
5695
  );
5696
5696
  }
5697
- const response = await new (0, _chunkULI6UVV6js.DeeplineClient)().runs.getReceipts(runId, {
5697
+ const response = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().runs.getReceipts(runId, {
5698
5698
  keys
5699
5699
  });
5700
5700
  const failed = response.receipts.filter(
@@ -5706,7 +5706,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5706
5706
  JSON.stringify(response, null, 2) + "\n",
5707
5707
  { flag: "wx", mode: 384 }
5708
5708
  );
5709
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
5709
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
5710
5710
  {
5711
5711
  runId,
5712
5712
  out: options.out,
@@ -5716,7 +5716,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5716
5716
  { json: true }
5717
5717
  );
5718
5718
  } else {
5719
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5719
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5720
5720
  }
5721
5721
  if (failed)
5722
5722
  process.exitCode = response.receipts.some(
@@ -5755,7 +5755,7 @@ includes nextCommand when another page is available.
5755
5755
  { exitCode: 2 }
5756
5756
  );
5757
5757
  }
5758
- const page = await new (0, _chunkULI6UVV6js.DeeplineClient)().runs.children(parentRunId, {
5758
+ const page = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().runs.children(parentRunId, {
5759
5759
  launchKey: options.launchKey,
5760
5760
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
5761
5761
  limit
@@ -5771,7 +5771,7 @@ includes nextCommand when another page is available.
5771
5771
  String(limit),
5772
5772
  "--json"
5773
5773
  ].join(" ") : null;
5774
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
5774
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
5775
5775
  {
5776
5776
  parentRunId,
5777
5777
  launchKey: options.launchKey,
@@ -5807,7 +5807,7 @@ async function handleRunsHistory(options) {
5807
5807
  throw new Error("--limit must be a positive integer.");
5808
5808
  }
5809
5809
  }
5810
- const page = await new (0, _chunkULI6UVV6js.DeeplineClient)().runs.history({
5810
+ const page = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().runs.history({
5811
5811
  cursor: options.cursor,
5812
5812
  orgId: options.org,
5813
5813
  search: options.search,
@@ -5823,7 +5823,7 @@ async function handleRunsHistory(options) {
5823
5823
  );
5824
5824
  }
5825
5825
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
5826
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
5826
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
5827
5827
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
5828
5828
  options.json ? { json: true } : {}
5829
5829
  );
@@ -6099,7 +6099,7 @@ function projectRunDatasetCell(value) {
6099
6099
  const logicalValue = parseSerializedDatasetValue(value);
6100
6100
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
6101
6101
  if (typeof logicalValue === "object") {
6102
- return _chunk6LLJWMYHjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
6102
+ return _chunkGQXEHX5Xjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
6103
6103
  }
6104
6104
  return logicalValue;
6105
6105
  }
@@ -8907,7 +8907,7 @@ function renderOutcome(outcome) {
8907
8907
  function printResult2(input) {
8908
8908
  const failed = input.status === "failed" || input.status === "cancelled";
8909
8909
  if (failed) process.exitCode = 1;
8910
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
8910
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
8911
8911
  {
8912
8912
  deployment: { ...input.deployment, status: input.status },
8913
8913
  plays: input.outcomes,
@@ -8932,7 +8932,7 @@ async function handlePlaysDeploy(directory, options) {
8932
8932
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
8933
8933
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
8934
8934
  });
8935
- const { http, config } = _chunk6LLJWMYHjs.getAuthedHttpClient.call(void 0, );
8935
+ const { http, config } = _chunkGQXEHX5Xjs.getAuthedHttpClient.call(void 0, );
8936
8936
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
8937
8937
  const startDeployment = () => http.post("/api/v2/deployments", {
8938
8938
  deliveryId,
@@ -8959,7 +8959,7 @@ async function handlePlaysDeploy(directory, options) {
8959
8959
  },
8960
8960
  {
8961
8961
  bundle: bundleDeployPlayFile,
8962
- fetchImpl: _chunkTID5XLTZjs.fetchWithDeploymentProtection,
8962
+ fetchImpl: _chunkFSZTWQFKjs.fetchWithDeploymentProtection,
8963
8963
  // The plays are already here: "opening" the source is naming it.
8964
8964
  openSource: async () => ({
8965
8965
  open: async () => ({ repoRoot: root })
@@ -10059,7 +10059,7 @@ function playStatusErrorText(status) {
10059
10059
  function isRetryablePendingStartFailure(status) {
10060
10060
  if (status.status !== "failed") return false;
10061
10061
  if (status.runId && status.runId !== "pending") return false;
10062
- return _chunkULI6UVV6js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
10062
+ return _chunkVSAYSOVCjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
10063
10063
  }
10064
10064
  function pendingStartFailureStatus(input) {
10065
10065
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -10086,13 +10086,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
10086
10086
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
10087
10087
  function watchSurfaceReaches(state, provenance, level) {
10088
10088
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
10089
- if (!_chunkULI6UVV6js.logLevelReaches.call(void 0, level, minimumLevel)) {
10089
+ if (!_chunkVSAYSOVCjs.logLevelReaches.call(void 0, level, minimumLevel)) {
10090
10090
  return false;
10091
10091
  }
10092
- if (_chunkULI6UVV6js.logProvenanceReaches.call(void 0, provenance, "watch")) {
10092
+ if (_chunkVSAYSOVCjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
10093
10093
  return true;
10094
10094
  }
10095
- return state.verbose === true && _chunkULI6UVV6js.logProvenanceReaches.call(void 0, provenance, "debug");
10095
+ return state.verbose === true && _chunkVSAYSOVCjs.logProvenanceReaches.call(void 0, provenance, "debug");
10096
10096
  }
10097
10097
  function getEventPayload(event) {
10098
10098
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -10594,7 +10594,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
10594
10594
  }
10595
10595
  function openPlayDashboard(dashboardUrl, open2) {
10596
10596
  if (open2 && dashboardUrl) {
10597
- _chunk6LLJWMYHjs.openInBrowser.call(void 0, dashboardUrl);
10597
+ _chunkGQXEHX5Xjs.openInBrowser.call(void 0, dashboardUrl);
10598
10598
  }
10599
10599
  }
10600
10600
  function printPlayLogLines(input) {
@@ -10656,7 +10656,7 @@ async function waitForPlayCompletionByWatch(input) {
10656
10656
  billing: false
10657
10657
  });
10658
10658
  } catch (error) {
10659
- if (_chunkULI6UVV6js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
10659
+ if (_chunkVSAYSOVCjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
10660
10660
  return null;
10661
10661
  }
10662
10662
  throw error;
@@ -10845,7 +10845,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10845
10845
  billing: false
10846
10846
  });
10847
10847
  } catch (error) {
10848
- if (_chunkULI6UVV6js.isTransientPlayRunReadError.call(void 0, error)) {
10848
+ if (_chunkVSAYSOVCjs.isTransientPlayRunReadError.call(void 0, error)) {
10849
10849
  return null;
10850
10850
  }
10851
10851
  throw error;
@@ -11053,7 +11053,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11053
11053
  lastPhase
11054
11054
  });
11055
11055
  }
11056
- if (lastKnownWorkflowId && _chunkULI6UVV6js.isTransientPlayRunReadError.call(void 0, error)) {
11056
+ if (lastKnownWorkflowId && _chunkVSAYSOVCjs.isTransientPlayRunReadError.call(void 0, error)) {
11057
11057
  if (timeout) {
11058
11058
  clearTimeout(timeout);
11059
11059
  }
@@ -11089,7 +11089,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11089
11089
  onRunAdmitted: confirmAdmission
11090
11090
  });
11091
11091
  }
11092
- if (!lastKnownWorkflowId && _chunkULI6UVV6js.isTransientPlayRunReadError.call(void 0, error)) {
11092
+ if (!lastKnownWorkflowId && _chunkVSAYSOVCjs.isTransientPlayRunReadError.call(void 0, error)) {
11093
11093
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
11094
11094
  phase: "cli.play_start_stream_transient_failure",
11095
11095
  ms: Date.now() - startedAt,
@@ -11188,7 +11188,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
11188
11188
  "logs"
11189
11189
  ]);
11190
11190
  function formatPlayLogLine(rawLine, state) {
11191
- const classified = _chunkULI6UVV6js.classifyLogLine.call(void 0, rawLine);
11191
+ const classified = _chunkVSAYSOVCjs.classifyLogLine.call(void 0, rawLine);
11192
11192
  const line = classified.line;
11193
11193
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
11194
11194
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _344 => _344[1]]) ? new Date(timestampMatch[1]) : null;
@@ -11203,14 +11203,14 @@ function formatPlayLogLine(rawLine, state) {
11203
11203
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
11204
11204
  const providerWait = formatProviderCapacityWaitLogLine(line);
11205
11205
  if (providerWait && !state.verbose) {
11206
- return _chunkULI6UVV6js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
11206
+ return _chunkVSAYSOVCjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
11207
11207
  }
11208
11208
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
11209
11209
  if (mapProgress && !state.verbose) {
11210
- return _chunkULI6UVV6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
11210
+ return _chunkVSAYSOVCjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
11211
11211
  }
11212
11212
  if (/\[worker\] picked up run\b/.test(message)) {
11213
- if (!_chunkULI6UVV6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11213
+ if (!_chunkVSAYSOVCjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11214
11214
  return null;
11215
11215
  }
11216
11216
  if (state.emittedRunnerStarted) {
@@ -11223,7 +11223,7 @@ function formatPlayLogLine(rawLine, state) {
11223
11223
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
11224
11224
  );
11225
11225
  if (mapStart) {
11226
- if (!_chunkULI6UVV6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11226
+ if (!_chunkVSAYSOVCjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11227
11227
  return null;
11228
11228
  }
11229
11229
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -11233,7 +11233,7 @@ function formatPlayLogLine(rawLine, state) {
11233
11233
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
11234
11234
  );
11235
11235
  if (mapDone) {
11236
- if (!_chunkULI6UVV6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11236
+ if (!_chunkVSAYSOVCjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11237
11237
  return null;
11238
11238
  }
11239
11239
  const [, results, executed, cached] = mapDone;
@@ -12522,7 +12522,7 @@ function formatRecentRunLogLines(value) {
12522
12522
  (line) => typeof line === "string"
12523
12523
  );
12524
12524
  if (tail.length === 0) return [];
12525
- const shown = tail.map((line) => _chunkULI6UVV6js.classifyLogLine.call(void 0, line)).filter(
12525
+ const shown = tail.map((line) => _chunkVSAYSOVCjs.classifyLogLine.call(void 0, line)).filter(
12526
12526
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
12527
12527
  ).slice(-8);
12528
12528
  const total = readNonNegativeInteger(logs.totalCount);
@@ -12802,7 +12802,7 @@ function writePlayResult(status, jsonOutput, options) {
12802
12802
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _425 => _425.hits]), () => ( null));
12803
12803
  if (jsonOutput) {
12804
12804
  const payload2 = _optionalChain([options, 'optionalAccess', _426 => _426.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
12805
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
12805
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
12806
12806
  hits ? { ...payload2, hits } : payload2,
12807
12807
  { json: true, fields: _optionalChain([options, 'optionalAccess', _427 => _427.jsonFields]) }
12808
12808
  );
@@ -12818,7 +12818,7 @@ function writePlayResult(status, jsonOutput, options) {
12818
12818
  ...buildPlayCompletionTextLines(status),
12819
12819
  ...formatRunHitsLines(hits)
12820
12820
  ];
12821
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0, displayPackage, {
12821
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, displayPackage, {
12822
12822
  json: false,
12823
12823
  text: `${lines2.join("\n")}
12824
12824
  `
@@ -12869,7 +12869,7 @@ function writePlayResult(status, jsonOutput, options) {
12869
12869
  lines.push(...buildBillingRollupTextLines(status));
12870
12870
  const compact = compactPlayStatus(status);
12871
12871
  const payload = _optionalChain([options, 'optionalAccess', _429 => _429.fullJson]) ? status : compact;
12872
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
12872
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
12873
12873
  {
12874
12874
  ...payload,
12875
12875
  render: {
@@ -13629,7 +13629,7 @@ function writeStartedPlayRun(input) {
13629
13629
  dashboardUrl: input.dashboardUrl,
13630
13630
  package: input.package
13631
13631
  };
13632
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
13632
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
13633
13633
  json: true,
13634
13634
  fields: input.jsonFields
13635
13635
  });
@@ -13651,7 +13651,7 @@ function writeStartedPlayRun(input) {
13651
13651
  input.progress.writeLine(output2, process.stdout);
13652
13652
  return;
13653
13653
  }
13654
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0, input.package, {
13654
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, input.package, {
13655
13655
  json: false,
13656
13656
  text: `${output2}
13657
13657
  `
@@ -13680,7 +13680,7 @@ function writeStartedPlayRun(input) {
13680
13680
  ) ? [`Stop: deepline runs stop ${shellSingleQuote(input.runId)} --json`] : []
13681
13681
  ];
13682
13682
  if (input.jsonOutput) {
13683
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13683
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13684
13684
  return;
13685
13685
  }
13686
13686
  if (input.dashboardUrl) {
@@ -13691,7 +13691,7 @@ function writeStartedPlayRun(input) {
13691
13691
  input.progress.writeLine(output, process.stdout);
13692
13692
  return;
13693
13693
  }
13694
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
13694
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
13695
13695
  {
13696
13696
  ...payload,
13697
13697
  render: { sections: [{ title: "play run", lines }] }
@@ -13701,7 +13701,7 @@ function writeStartedPlayRun(input) {
13701
13701
  );
13702
13702
  }
13703
13703
  function parsePlayRunOptions(args) {
13704
- const selection = _chunk6LLJWMYHjs.parseJsonFields.call(void 0, args, "run");
13704
+ const selection = _chunkGQXEHX5Xjs.parseJsonFields.call(void 0, args, "run");
13705
13705
  args = selection.args;
13706
13706
  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
13707
  let filePath = null;
@@ -13710,7 +13710,7 @@ function parsePlayRunOptions(args) {
13710
13710
  let revisionId = null;
13711
13711
  let revisionSelector = null;
13712
13712
  const watch = !args.includes("--no-wait");
13713
- let jsonOutput = watch ? args.includes("--json") : _chunk6LLJWMYHjs.argsWantJson.call(void 0, args);
13713
+ let jsonOutput = watch ? args.includes("--json") : _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
13714
13714
  const fullJson = args.includes("--full");
13715
13715
  const force = args.includes("--force");
13716
13716
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -13757,7 +13757,7 @@ function parsePlayRunOptions(args) {
13757
13757
  "--log-level requires one of: debug, info, warn, error."
13758
13758
  );
13759
13759
  }
13760
- const parsed = _chunkULI6UVV6js.parseLogLevel.call(void 0, value);
13760
+ const parsed = _chunkVSAYSOVCjs.parseLogLevel.call(void 0, value);
13761
13761
  if (!parsed) {
13762
13762
  throw new Error(
13763
13763
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -13984,7 +13984,7 @@ function parsePlayRunOptions(args) {
13984
13984
  };
13985
13985
  }
13986
13986
  function parsePlayCheckOptions(args) {
13987
- const selection = _chunk6LLJWMYHjs.parseJsonFields.call(void 0, args, "check");
13987
+ const selection = _chunkGQXEHX5Xjs.parseJsonFields.call(void 0, args, "check");
13988
13988
  args = selection.args;
13989
13989
  const target = args[0];
13990
13990
  if (!target || target.startsWith("-")) {
@@ -13996,7 +13996,7 @@ function parsePlayCheckOptions(args) {
13996
13996
  if (arg !== "--json" && arg !== "--full")
13997
13997
  throw new Error(`Unknown plays check option: ${arg}`);
13998
13998
  }
13999
- const jsonOutput = _chunk6LLJWMYHjs.argsWantJson.call(void 0, args);
13999
+ const jsonOutput = _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
14000
14000
  return {
14001
14001
  target,
14002
14002
  jsonOutput,
@@ -14072,7 +14072,7 @@ ${PLAY_PUBLISH_USAGE}`
14072
14072
  useLatest,
14073
14073
  expectedArtifactHash,
14074
14074
  dryRun,
14075
- jsonOutput: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args)
14075
+ jsonOutput: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)
14076
14076
  };
14077
14077
  }
14078
14078
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -14113,7 +14113,7 @@ ${PLAY_SAVE_USAGE}`);
14113
14113
  target,
14114
14114
  expectedArtifactHash,
14115
14115
  dryRun,
14116
- jsonOutput: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args)
14116
+ jsonOutput: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)
14117
14117
  };
14118
14118
  }
14119
14119
  function printScheduledPlayCapacity(capacity) {
@@ -14324,7 +14324,7 @@ function printBundledRuntimeWarning(bundle) {
14324
14324
  async function handlePlayCheck(args) {
14325
14325
  const options = parsePlayCheckOptions(args);
14326
14326
  if (!isFileTarget(options.target)) {
14327
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
14327
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
14328
14328
  try {
14329
14329
  await assertCanonicalNamedPlayReference(client, options.target, {
14330
14330
  command: "check"
@@ -14353,7 +14353,7 @@ async function handlePlayCheck(args) {
14353
14353
  },
14354
14354
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
14355
14355
  };
14356
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0, result, {
14356
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, result, {
14357
14357
  json: options.jsonOutput,
14358
14358
  fields: options.jsonFields,
14359
14359
  text: renderPlayCheckOutput(result) + "\n"
@@ -14363,7 +14363,7 @@ async function handlePlayCheck(args) {
14363
14363
  const resolved = _path.resolve.call(void 0, options.target);
14364
14364
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
14365
14365
  if (options.jsonOutput) {
14366
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
14366
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
14367
14367
  {
14368
14368
  kind: "play_check",
14369
14369
  checked: "named_contract",
@@ -14405,7 +14405,7 @@ async function handlePlayCheck(args) {
14405
14405
  detailsCommand: `deepline plays check ${shellQuote3(options.target)} --full --json`,
14406
14406
  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
14407
  });
14408
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0, output, {
14408
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, output, {
14409
14409
  json: options.jsonOutput,
14410
14410
  fields: options.jsonFields,
14411
14411
  text: renderPlayCheckOutput(output) + "\n"
@@ -14467,7 +14467,7 @@ async function checkOneExportedPlay(input) {
14467
14467
  result: { valid: false, errors: descriptionErrors }
14468
14468
  };
14469
14469
  }
14470
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
14470
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
14471
14471
  const integrationMode = resolveEvalIntegrationMode();
14472
14472
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
14473
14473
  playName: node.playName,
@@ -14504,7 +14504,7 @@ async function handleFileBackedRun(options, hooks) {
14504
14504
  if (options.target.kind !== "file") {
14505
14505
  throw new Error("Expected a file-backed play run target.");
14506
14506
  }
14507
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)(playRunClientOptions(options));
14507
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)(playRunClientOptions(options));
14508
14508
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
14509
14509
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
14510
14510
  progress.phase("compiling play");
@@ -14718,7 +14718,7 @@ async function handleNamedRun(options, hooks) {
14718
14718
  if (options.target.kind !== "name") {
14719
14719
  throw new Error("Expected a named play run target.");
14720
14720
  }
14721
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)(playRunClientOptions(options));
14721
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)(playRunClientOptions(options));
14722
14722
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
14723
14723
  const playName = options.target.name;
14724
14724
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -15115,10 +15115,10 @@ function renderRunOverviewText(overview, extras = {}) {
15115
15115
  );
15116
15116
  return `${lines.join("\n")}
15117
15117
 
15118
- ${_chunk6LLJWMYHjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
15118
+ ${_chunkGQXEHX5Xjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
15119
15119
  }
15120
15120
  async function handleRunGet(args) {
15121
- const selection = _chunk6LLJWMYHjs.parseJsonFields.call(void 0,
15121
+ const selection = _chunkGQXEHX5Xjs.parseJsonFields.call(void 0,
15122
15122
  args,
15123
15123
  args.includes("--config") ? "config" : "get"
15124
15124
  );
@@ -15131,7 +15131,7 @@ async function handleRunGet(args) {
15131
15131
  console.error(error instanceof Error ? error.message : usage2);
15132
15132
  return 1;
15133
15133
  }
15134
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
15134
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
15135
15135
  if (args.includes("--config")) {
15136
15136
  if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
15137
15137
  console.error(
@@ -15145,7 +15145,7 @@ async function handleRunGet(args) {
15145
15145
  "This server does not support recorded configuration reads."
15146
15146
  );
15147
15147
  }
15148
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
15148
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15149
15149
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
15150
15150
  { json: true, fields: selection.fields }
15151
15151
  );
@@ -15153,7 +15153,7 @@ async function handleRunGet(args) {
15153
15153
  }
15154
15154
  if (args.includes("--input")) {
15155
15155
  const input = await client.getRunInput(runId);
15156
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0, input, { json: true });
15156
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, input, { json: true });
15157
15157
  return 0;
15158
15158
  }
15159
15159
  const full = args.includes("--full");
@@ -15166,8 +15166,8 @@ async function handleRunGet(args) {
15166
15166
  full: true,
15167
15167
  failedLogs: args.includes("--log-failed")
15168
15168
  }) : status;
15169
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
15170
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
15169
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
15170
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15171
15171
  full ? legacyStatus : compactPlayStatus(legacyStatus),
15172
15172
  { json: true, fields: selection.fields }
15173
15173
  );
@@ -15183,8 +15183,8 @@ async function handleRunGet(args) {
15183
15183
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
15184
15184
  ]);
15185
15185
  const hitLines = formatRunHitsLines(hits);
15186
- const json = _chunk6LLJWMYHjs.argsWantJson.call(void 0, args);
15187
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
15186
+ const json = _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
15187
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15188
15188
  {
15189
15189
  ...overview,
15190
15190
  credits,
@@ -15287,9 +15287,9 @@ async function handleRunLifecycleStatus(args) {
15287
15287
  console.error(error instanceof Error ? error.message : usage2);
15288
15288
  return 1;
15289
15289
  }
15290
- const status = await new (0, _chunkULI6UVV6js.DeeplineClient)().runs.status(runId);
15291
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
15292
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0, status, { json: true });
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 });
15293
15293
  return 0;
15294
15294
  }
15295
15295
  if (!status.available) {
@@ -15363,12 +15363,12 @@ async function handleRunsRerun(args) {
15363
15363
  index += 1;
15364
15364
  }
15365
15365
  }
15366
- const result = await new (0, _chunkULI6UVV6js.DeeplineClient)().runs.rerun(runId, {
15366
+ const result = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().runs.rerun(runId, {
15367
15367
  ...idempotencyKey ? { idempotencyKey } : {},
15368
15368
  ...inputOverrides ? { inputOverrides } : {}
15369
15369
  });
15370
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
15371
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0, result, { json: true });
15370
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
15371
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, result, { json: true });
15372
15372
  } else {
15373
15373
  console.log(
15374
15374
  result.deduplicated === true ? `
@@ -15433,8 +15433,8 @@ ${usage2}
15433
15433
  Discover Plays: ${next.discover}
15434
15434
  Active runs: ${next.running}`
15435
15435
  );
15436
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
15437
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
15436
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
15437
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15438
15438
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
15439
15439
  { json: true }
15440
15440
  );
@@ -15445,7 +15445,7 @@ Active runs: ${next.running}`
15445
15445
  console.error("--offset requires --play.");
15446
15446
  return 1;
15447
15447
  }
15448
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
15448
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
15449
15449
  const page = await client.runs.listPage({
15450
15450
  ...playName ? { play: playName } : {},
15451
15451
  ...statusFilter ? { status: statusFilter } : {},
@@ -15498,7 +15498,7 @@ Active runs: ${next.running}`
15498
15498
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
15499
15499
  );
15500
15500
  }
15501
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
15501
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15502
15502
  {
15503
15503
  runs,
15504
15504
  count: runs.length,
@@ -15512,7 +15512,7 @@ Active runs: ${next.running}`
15512
15512
  },
15513
15513
  render: { sections: [{ title: "runs", lines }] }
15514
15514
  },
15515
- { json: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args) }
15515
+ { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args) }
15516
15516
  );
15517
15517
  return 0;
15518
15518
  }
@@ -15542,7 +15542,7 @@ async function handleRunTail(args) {
15542
15542
  console.error("--log-level requires one of: debug, info, warn, error.");
15543
15543
  return 1;
15544
15544
  }
15545
- const parsed = _chunkULI6UVV6js.parseLogLevel.call(void 0, value);
15545
+ const parsed = _chunkVSAYSOVCjs.parseLogLevel.call(void 0, value);
15546
15546
  if (!parsed) {
15547
15547
  console.error(
15548
15548
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15580,9 +15580,9 @@ async function handleRunTail(args) {
15580
15580
  );
15581
15581
  return 1;
15582
15582
  }
15583
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
15583
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
15584
15584
  const jsonLines = args.includes("--jsonl");
15585
- const jsonOutput = !jsonLines && _chunk6LLJWMYHjs.argsWantJson.call(void 0, args);
15585
+ const jsonOutput = !jsonLines && _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
15586
15586
  const compact = args.includes("--compact");
15587
15587
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
15588
15588
  const compactState = {
@@ -15663,7 +15663,7 @@ async function handleRunLogs(args) {
15663
15663
  ]);
15664
15664
  const cursorIndex = args.indexOf("--cursor");
15665
15665
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
15666
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkULI6UVV6js.isRunLogsCursor.call(void 0, cursorValue));
15666
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkVSAYSOVCjs.isRunLogsCursor.call(void 0, cursorValue));
15667
15667
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
15668
15668
  return handleRunEventSearch(args);
15669
15669
  }
@@ -15697,7 +15697,7 @@ async function handleRunLogs(args) {
15697
15697
  console.error("--log-level requires one of: debug, info, warn, error.");
15698
15698
  return 1;
15699
15699
  }
15700
- const parsed = _chunkULI6UVV6js.parseLogLevel.call(void 0, value);
15700
+ const parsed = _chunkVSAYSOVCjs.parseLogLevel.call(void 0, value);
15701
15701
  if (!parsed) {
15702
15702
  console.error(
15703
15703
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15744,12 +15744,12 @@ async function handleRunLogs(args) {
15744
15744
  );
15745
15745
  return 1;
15746
15746
  }
15747
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
15747
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
15748
15748
  if (outPath) {
15749
15749
  const result2 = await client.runs.logs(runId, { all: true });
15750
- const logs = result2.entries.filter((line) => _chunkULI6UVV6js.logLevelReaches.call(void 0, _chunkULI6UVV6js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkULI6UVV6js.classifyLogLine.call(void 0, line).line);
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
15751
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
15752
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
15752
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15753
15753
  {
15754
15754
  runId: result2.runId,
15755
15755
  log_path: outPath,
@@ -15772,7 +15772,7 @@ async function handleRunLogs(args) {
15772
15772
  ]
15773
15773
  }
15774
15774
  },
15775
- { json: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args) }
15775
+ { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args) }
15776
15776
  );
15777
15777
  return 0;
15778
15778
  }
@@ -15803,7 +15803,7 @@ async function handleRunLogs(args) {
15803
15803
  }
15804
15804
  };
15805
15805
  const text = buildRunLogsText(filteredResult);
15806
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
15806
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
15807
15807
  {
15808
15808
  runId: result.runId,
15809
15809
  totalCount: result.totalCount,
@@ -15827,7 +15827,7 @@ async function handleRunLogs(args) {
15827
15827
  render: { sections: [{ title: "run logs", lines: entries }] }
15828
15828
  },
15829
15829
  {
15830
- json: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args),
15830
+ json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args),
15831
15831
  text
15832
15832
  }
15833
15833
  );
@@ -15851,7 +15851,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15851
15851
  );
15852
15852
  }
15853
15853
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
15854
- (entry) => _chunkULI6UVV6js.logLevelReaches.call(void 0, _chunkULI6UVV6js.classifyLogLine.call(void 0, entry.line).level, logLevel)
15854
+ (entry) => _chunkVSAYSOVCjs.logLevelReaches.call(void 0, _chunkVSAYSOVCjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
15855
15855
  );
15856
15856
  const selected = matching.slice(-limit);
15857
15857
  const olderMatchesExist = matching.length > selected.length;
@@ -15861,7 +15861,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15861
15861
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _518 => _518.at, 'call', _519 => _519(-1), 'optionalAccess', _520 => _520.seq]), () => ( null)),
15862
15862
  truncated: result.truncated || olderMatchesExist,
15863
15863
  hasMore: olderMatchesExist,
15864
- nextCursor: olderMatchesExist ? _chunkULI6UVV6js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15864
+ nextCursor: olderMatchesExist ? _chunkVSAYSOVCjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15865
15865
  };
15866
15866
  }
15867
15867
  async function handleRunEventSearch(args) {
@@ -15928,7 +15928,7 @@ ${usage2}`);
15928
15928
  namespace,
15929
15929
  ...backend ? { backend } : {}
15930
15930
  } : void 0;
15931
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
15931
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
15932
15932
  const result = await client.runs.searchEvents({
15933
15933
  ...runId ? { runId } : {},
15934
15934
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -16001,7 +16001,7 @@ ${renderedDetails}` : ""}`;
16001
16001
  String(limit),
16002
16002
  "--json"
16003
16003
  ].join(" ") : null;
16004
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
16004
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16005
16005
  {
16006
16006
  events,
16007
16007
  nextCursor: result.nextCursor,
@@ -16012,14 +16012,14 @@ ${renderedDetails}` : ""}`;
16012
16012
  render: { sections: [{ title: "runtime events", lines }] }
16013
16013
  },
16014
16014
  {
16015
- json: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args),
16015
+ json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args),
16016
16016
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
16017
16017
  }
16018
16018
  );
16019
16019
  return 0;
16020
16020
  }
16021
16021
  function buildRunLogsText(result) {
16022
- const lines = result.entries.map((line) => _chunkULI6UVV6js.classifyLogLine.call(void 0, line).line);
16022
+ const lines = result.entries.map((line) => _chunkVSAYSOVCjs.classifyLogLine.call(void 0, line).line);
16023
16023
  if (result.warning) {
16024
16024
  if (lines.length > 0) lines.push("");
16025
16025
  lines.push(`warning: ${result.warning}`);
@@ -16053,7 +16053,7 @@ async function handleRunStop(args) {
16053
16053
  reason = args[++index];
16054
16054
  }
16055
16055
  }
16056
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
16056
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16057
16057
  const result = await client.runs.stop(runId, { reason });
16058
16058
  const state = resolveRunStopState(result);
16059
16059
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -16068,7 +16068,7 @@ async function handleRunStop(args) {
16068
16068
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
16069
16069
  `inspect: deepline runs get ${runId} --full --json`
16070
16070
  ];
16071
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
16071
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16072
16072
  {
16073
16073
  ...cancelling,
16074
16074
  state,
@@ -16083,7 +16083,7 @@ async function handleRunStop(args) {
16083
16083
  ]
16084
16084
  }
16085
16085
  },
16086
- { json: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args) }
16086
+ { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args) }
16087
16087
  );
16088
16088
  return 0;
16089
16089
  }
@@ -16100,7 +16100,7 @@ async function handleRunStop(args) {
16100
16100
  ];
16101
16101
  process.stderr.write(`${lines2.join("\n")}
16102
16102
  `);
16103
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
16103
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16104
16104
  {
16105
16105
  ...result,
16106
16106
  render: {
@@ -16115,7 +16115,7 @@ async function handleRunStop(args) {
16115
16115
  ]
16116
16116
  }
16117
16117
  },
16118
- { json: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args) }
16118
+ { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args) }
16119
16119
  );
16120
16120
  return 1;
16121
16121
  }
@@ -16126,12 +16126,12 @@ async function handleRunStop(args) {
16126
16126
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
16127
16127
  ] : []
16128
16128
  ];
16129
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
16129
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16130
16130
  {
16131
16131
  ...result,
16132
16132
  render: { sections: [{ title: "run stop", lines }] }
16133
16133
  },
16134
- { json: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args) }
16134
+ { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args) }
16135
16135
  );
16136
16136
  return 0;
16137
16137
  }
@@ -16181,18 +16181,18 @@ async function handleRunStopAll(args) {
16181
16181
  reason = args[++index];
16182
16182
  }
16183
16183
  }
16184
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
16184
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16185
16185
  if (dryRun) {
16186
16186
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
16187
16187
  const lines2 = buildStopAllDryRunTextLines(result2);
16188
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
16188
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16189
16189
  {
16190
16190
  ...result2,
16191
16191
  render: {
16192
16192
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
16193
16193
  }
16194
16194
  },
16195
- { json: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
16195
+ { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
16196
16196
  ` }
16197
16197
  );
16198
16198
  return 0;
@@ -16205,17 +16205,17 @@ async function handleRunStopAll(args) {
16205
16205
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
16206
16206
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
16207
16207
  ];
16208
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
16208
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16209
16209
  {
16210
16210
  ...result,
16211
16211
  render: { sections: [{ title: "workspace stop-all", lines }] }
16212
16212
  },
16213
- { json: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args) }
16213
+ { json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args) }
16214
16214
  );
16215
16215
  return result.failed > 0 || result.partial ? 1 : 0;
16216
16216
  }
16217
16217
  async function handleRunExport(args) {
16218
- const selection = _chunk6LLJWMYHjs.parseJsonFields.call(void 0, args, "export");
16218
+ const selection = _chunkGQXEHX5Xjs.parseJsonFields.call(void 0, args, "export");
16219
16219
  args = selection.args;
16220
16220
  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
16221
  let runId;
@@ -16274,16 +16274,16 @@ async function handleRunExport(args) {
16274
16274
  "INVALID_ARGUMENT"
16275
16275
  );
16276
16276
  }
16277
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
16277
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16278
16278
  let status = await client.getPlayStatus(runId, { full: true });
16279
16279
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
16280
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunk6LLJWMYHjs.argsWantJson.call(void 0, args));
16280
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args));
16281
16281
  try {
16282
16282
  await waitForPlayCompletionByWatch({
16283
16283
  client,
16284
16284
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
16285
16285
  workflowId: runId,
16286
- jsonOutput: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args),
16286
+ jsonOutput: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args),
16287
16287
  emitLogs: false,
16288
16288
  waitTimeoutMs,
16289
16289
  startedAt: Date.now(),
@@ -16382,8 +16382,8 @@ async function handleRunExport(args) {
16382
16382
  "utf-8"
16383
16383
  );
16384
16384
  }
16385
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0, payload, {
16386
- json: _chunk6LLJWMYHjs.argsWantJson.call(void 0, args),
16385
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0, payload, {
16386
+ json: _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args),
16387
16387
  fields: selection.fields,
16388
16388
  text: `${lines.join("\n")}
16389
16389
  `
@@ -16404,10 +16404,10 @@ async function handlePlayGet(args) {
16404
16404
  );
16405
16405
  return 2;
16406
16406
  }
16407
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
16407
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16408
16408
  const explicitJson = args.includes("--json");
16409
16409
  const sourceOutput = args.includes("--source");
16410
- const jsonOutput = sourceOutput ? explicitJson : _chunk6LLJWMYHjs.argsWantJson.call(void 0, args);
16410
+ const jsonOutput = sourceOutput ? explicitJson : _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
16411
16411
  const requestedRevisionFlags = [
16412
16412
  args.includes("--working"),
16413
16413
  args.includes("--live"),
@@ -16467,7 +16467,7 @@ async function handlePlayGet(args) {
16467
16467
  }
16468
16468
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
16469
16469
  if (jsonOutput) {
16470
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, {
16470
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, {
16471
16471
  ...detail,
16472
16472
  ...materializedFile ? {
16473
16473
  message: loadedMessage,
@@ -16554,8 +16554,8 @@ async function handlePlayVersions(args) {
16554
16554
  console.error("Usage: deepline plays versions --name <name> [--json]");
16555
16555
  return 1;
16556
16556
  }
16557
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
16558
- const jsonOutput = _chunk6LLJWMYHjs.argsWantJson.call(void 0, args);
16557
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16558
+ const jsonOutput = _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
16559
16559
  await assertCanonicalNamedPlayReference(client, playName, {
16560
16560
  command: "versions"
16561
16561
  });
@@ -16563,7 +16563,7 @@ async function handlePlayVersions(args) {
16563
16563
  parseReferencedPlayTarget2(playName).playName
16564
16564
  );
16565
16565
  if (jsonOutput) {
16566
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, { versions });
16566
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, { versions });
16567
16567
  return 0;
16568
16568
  }
16569
16569
  if (versions.length === 0) {
@@ -16595,9 +16595,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
16595
16595
  "signals"
16596
16596
  ];
16597
16597
  async function handlePlayList(args) {
16598
- const jsonOutput = _chunk6LLJWMYHjs.argsWantJson.call(void 0, args);
16598
+ const jsonOutput = _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
16599
16599
  const showCost = args.includes("--show-cost");
16600
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
16600
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16601
16601
  const categoriesIndex = args.indexOf("--categories");
16602
16602
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _556 => _556[categoriesIndex + 1], 'optionalAccess', _557 => _557.trim, 'call', _558 => _558()]) : void 0;
16603
16603
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -16694,7 +16694,7 @@ async function handlePlayList(args) {
16694
16694
  lines.push("List truncated \u2014 more plays are available.");
16695
16695
  lines.push(`Next page: ${nextPage}`);
16696
16696
  }
16697
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
16697
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
16698
16698
  {
16699
16699
  plays,
16700
16700
  count: plays.length,
@@ -16712,7 +16712,7 @@ async function handlePlayList(args) {
16712
16712
  }
16713
16713
  async function handlePlayPin(args, pinned) {
16714
16714
  const target = _optionalChain([args, 'access', _565 => _565.find, 'call', _566 => _566((arg) => !arg.startsWith("-")), 'optionalAccess', _567 => _567.trim, 'call', _568 => _568()]);
16715
- const jsonOutput = _chunk6LLJWMYHjs.argsWantJson.call(void 0, args);
16715
+ const jsonOutput = _chunkGQXEHX5Xjs.argsWantJson.call(void 0, args);
16716
16716
  const dryRun = args.includes("--dry-run");
16717
16717
  if (!target) {
16718
16718
  console.error(
@@ -16730,11 +16730,11 @@ async function handlePlayPin(args, pinned) {
16730
16730
  const name = parsedTarget.playName;
16731
16731
  const plan = { name, pinned, dryRun };
16732
16732
  if (dryRun) {
16733
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, plan);
16733
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, plan);
16734
16734
  return 0;
16735
16735
  }
16736
- const result = await new (0, _chunkULI6UVV6js.DeeplineClient)().setPlayPinned(name, pinned);
16737
- if (jsonOutput) _chunk6LLJWMYHjs.printCompactJson.call(void 0, result);
16736
+ const result = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().setPlayPinned(name, pinned);
16737
+ if (jsonOutput) _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result);
16738
16738
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
16739
16739
  return 0;
16740
16740
  }
@@ -16750,7 +16750,7 @@ function csvColumnLines(csvInput) {
16750
16750
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
16751
16751
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
16752
16752
  }),
16753
- _chunkULI6UVV6js.CSV_HEADER_MATCHING_NOTE
16753
+ _chunkVSAYSOVCjs.CSV_HEADER_MATCHING_NOTE
16754
16754
  ];
16755
16755
  }
16756
16756
  function describedPlay(play) {
@@ -16894,12 +16894,12 @@ async function handlePlayGrep(args) {
16894
16894
  console.error("Usage: deepline plays grep <query> [--json]");
16895
16895
  return 1;
16896
16896
  }
16897
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
16897
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16898
16898
  const results = (await client.listPlays({ grep: query })).map(
16899
16899
  summarizePlayGrepResult
16900
16900
  );
16901
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
16902
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, {
16901
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
16902
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, {
16903
16903
  plays: results,
16904
16904
  count: results.length,
16905
16905
  query,
@@ -16922,7 +16922,7 @@ async function handlePlayGrep(args) {
16922
16922
  return 0;
16923
16923
  }
16924
16924
  async function handlePlayDescribe(args) {
16925
- const selection = _chunk6LLJWMYHjs.parseJsonFields.call(void 0, args, "describe");
16925
+ const selection = _chunkGQXEHX5Xjs.parseJsonFields.call(void 0, args, "describe");
16926
16926
  args = selection.args;
16927
16927
  const playName = args[0];
16928
16928
  if (!playName) {
@@ -16956,8 +16956,8 @@ async function handlePlayDescribe(args) {
16956
16956
  `deepline plays check ${playName}`,
16957
16957
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
16958
16958
  ];
16959
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
16960
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, {
16959
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
16960
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, {
16961
16961
  ok: false,
16962
16962
  error: { message },
16963
16963
  next
@@ -16971,7 +16971,7 @@ async function handlePlayDescribe(args) {
16971
16971
  }
16972
16972
  return 2;
16973
16973
  }
16974
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
16974
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
16975
16975
  await assertCanonicalNamedPlayReference(client, playName, {
16976
16976
  command: "describe"
16977
16977
  });
@@ -16981,9 +16981,9 @@ async function handlePlayDescribe(args) {
16981
16981
  compact: args.includes("--compact")
16982
16982
  }
16983
16983
  );
16984
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
16985
- if (selection.fields) _chunk6LLJWMYHjs.printJson.call(void 0, play, selection.fields);
16986
- else _chunk6LLJWMYHjs.printCompactJson.call(void 0, play);
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);
16987
16987
  return 0;
16988
16988
  }
16989
16989
  printPlayDescription(play);
@@ -17027,7 +17027,7 @@ async function handlePlaySave(args) {
17027
17027
  next: `deepline plays check ${shellQuote3(options.target)}`
17028
17028
  };
17029
17029
  if (options.jsonOutput) {
17030
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, result);
17030
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result);
17031
17031
  } else {
17032
17032
  console.error(result.message);
17033
17033
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -17049,7 +17049,7 @@ async function handlePlaySave(args) {
17049
17049
  };
17050
17050
  if (options.dryRun) {
17051
17051
  if (options.jsonOutput) {
17052
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, dryRun);
17052
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, dryRun);
17053
17053
  } else {
17054
17054
  console.log(`Dry run: ${playName}`);
17055
17055
  console.log(` source: ${dryRun.sourceHash}`);
@@ -17058,7 +17058,7 @@ async function handlePlaySave(args) {
17058
17058
  }
17059
17059
  return 0;
17060
17060
  }
17061
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
17061
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
17062
17062
  try {
17063
17063
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
17064
17064
  "cli.play_save_compile_manifests",
@@ -17094,7 +17094,7 @@ async function handlePlaySave(args) {
17094
17094
  }
17095
17095
  };
17096
17096
  if (options.jsonOutput) {
17097
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, result);
17097
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result);
17098
17098
  } else {
17099
17099
  console.log(
17100
17100
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -17120,7 +17120,7 @@ async function handlePlayPublish(args) {
17120
17120
  }
17121
17121
  const { target: playName, useLatest } = options;
17122
17122
  let revisionId = options.revisionId;
17123
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
17123
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
17124
17124
  if (isFileTarget(playName)) {
17125
17125
  if (revisionId || useLatest) {
17126
17126
  console.error(
@@ -17152,7 +17152,7 @@ async function handlePlayPublish(args) {
17152
17152
  next: `deepline plays check ${shellQuote3(playName)}`
17153
17153
  };
17154
17154
  if (options.jsonOutput) {
17155
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, result3);
17155
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result3);
17156
17156
  } else {
17157
17157
  console.error(result3.message);
17158
17158
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -17175,7 +17175,7 @@ async function handlePlayPublish(args) {
17175
17175
  };
17176
17176
  if (options.dryRun) {
17177
17177
  if (options.jsonOutput) {
17178
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, dryRun);
17178
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, dryRun);
17179
17179
  } else {
17180
17180
  console.log(`Dry run: ${rootPlayName}`);
17181
17181
  console.log(` source: ${dryRun.sourceHash}`);
@@ -17243,7 +17243,7 @@ async function handlePlayPublish(args) {
17243
17243
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
17244
17244
  };
17245
17245
  if (options.jsonOutput) {
17246
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, result2);
17246
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result2);
17247
17247
  } else {
17248
17248
  printPublishReceipt({
17249
17249
  name: rootPlayName,
@@ -17274,7 +17274,7 @@ async function handlePlayPublish(args) {
17274
17274
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
17275
17275
  latest: useLatest
17276
17276
  };
17277
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, result2);
17277
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result2);
17278
17278
  return 0;
17279
17279
  }
17280
17280
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -17298,7 +17298,7 @@ async function handlePlayPublish(args) {
17298
17298
  revisionId ? { revisionId } : {}
17299
17299
  );
17300
17300
  if (options.jsonOutput) {
17301
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, result);
17301
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result);
17302
17302
  } else {
17303
17303
  printPublishReceipt({
17304
17304
  name: result.name,
@@ -17338,7 +17338,7 @@ async function handlePlayDelete(args) {
17338
17338
  );
17339
17339
  return 2;
17340
17340
  }
17341
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
17341
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
17342
17342
  let detail;
17343
17343
  try {
17344
17344
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -17362,8 +17362,8 @@ async function handlePlayDelete(args) {
17362
17362
  name: resolvedName,
17363
17363
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
17364
17364
  };
17365
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
17366
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, result2);
17365
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
17366
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result2);
17367
17367
  } else {
17368
17368
  process.stdout.write(
17369
17369
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -17373,8 +17373,8 @@ async function handlePlayDelete(args) {
17373
17373
  return 0;
17374
17374
  }
17375
17375
  const result = await client.deletePlay(resolvedName);
17376
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
17377
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, result);
17376
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
17377
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result);
17378
17378
  return result.archived || result.alreadyArchived ? 0 : 4;
17379
17379
  }
17380
17380
  if (result.alreadyArchived) {
@@ -17413,13 +17413,13 @@ async function handlePlayRestore(args) {
17413
17413
  );
17414
17414
  return 2;
17415
17415
  }
17416
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
17416
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
17417
17417
  try {
17418
17418
  const result = await client.restorePlay(
17419
17419
  parseReferencedPlayTarget2(playName).playName
17420
17420
  );
17421
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
17422
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, result);
17421
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
17422
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, result);
17423
17423
  return result.restored || result.alreadyActive ? 0 : 4;
17424
17424
  }
17425
17425
  if (result.alreadyActive) {
@@ -17524,7 +17524,7 @@ Examples:
17524
17524
  ).action(async (target, options) => {
17525
17525
  process.exitCode = await handlePlayCheck([
17526
17526
  target,
17527
- ..._chunk6LLJWMYHjs.jsonFieldArgs.call(void 0, options.json),
17527
+ ..._chunkGQXEHX5Xjs.jsonFieldArgs.call(void 0, options.json),
17528
17528
  ...options.full ? ["--full"] : []
17529
17529
  ]);
17530
17530
  });
@@ -17711,7 +17711,7 @@ JSON field selection:
17711
17711
  ...options.maxConcurrentRows ? ["--max-concurrent-rows", options.maxConcurrentRows] : [],
17712
17712
  ...options.open ? ["--open"] : [],
17713
17713
  ...options.debugMapLatency ? ["--debug-map-latency"] : [],
17714
- ..._chunk6LLJWMYHjs.jsonFieldArgs.call(void 0, options.json),
17714
+ ..._chunkGQXEHX5Xjs.jsonFieldArgs.call(void 0, options.json),
17715
17715
  ...options.full ? ["--full"] : [],
17716
17716
  ...passthroughArgs
17717
17717
  ]);
@@ -17766,9 +17766,9 @@ Examples:
17766
17766
  const limit = Number(options.historyLimit);
17767
17767
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
17768
17768
  throw new Error("--history-limit must be an integer from 1 to 30.");
17769
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
17769
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
17770
17770
  if (options.binding) {
17771
- _chunk6LLJWMYHjs.printCompactJson.call(void 0,
17771
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0,
17772
17772
  await client.getPlayTriggerHistory(options.binding, { limit })
17773
17773
  );
17774
17774
  return;
@@ -17776,7 +17776,7 @@ Examples:
17776
17776
  const result = await client.listPlayTriggerInventory({
17777
17777
  cursor: options.cursor
17778
17778
  });
17779
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, {
17779
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, {
17780
17780
  ...result,
17781
17781
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
17782
17782
  });
@@ -17823,7 +17823,7 @@ Examples:
17823
17823
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
17824
17824
  throw new Error("--group-by must be kind or trigger_source.");
17825
17825
  }
17826
- const result = await new (0, _chunkULI6UVV6js.DeeplineClient)().getPlaysActivity({
17826
+ const result = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().getPlaysActivity({
17827
17827
  timeZone: options.timeZone,
17828
17828
  days,
17829
17829
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -17837,7 +17837,7 @@ Examples:
17837
17837
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
17838
17838
  );
17839
17839
  }
17840
- _chunk6LLJWMYHjs.printCommandEnvelope.call(void 0,
17840
+ _chunkGQXEHX5Xjs.printCommandEnvelope.call(void 0,
17841
17841
  { ...result },
17842
17842
  {
17843
17843
  json: options.json || !process.stdout.isTTY,
@@ -17866,7 +17866,7 @@ Examples:
17866
17866
  false
17867
17867
  );
17868
17868
  });
17869
- _chunkVJDKV5RUjs.registerDeprecatedSearchCommand.call(void 0,
17869
+ _chunkQQMKX7JWjs.registerDeprecatedSearchCommand.call(void 0,
17870
17870
  play,
17871
17871
  (options) => options.all ? ["plays"] : ["prebuilts"]
17872
17872
  );
@@ -17910,7 +17910,7 @@ Examples:
17910
17910
  );
17911
17911
  _chunkXNL3SEMCjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
17912
17912
  async (target, options) => {
17913
- const ownView = () => handlePlayDescribe(_chunk6LLJWMYHjs.describeArgs.call(void 0, target, options));
17913
+ const ownView = () => handlePlayDescribe(_chunkGQXEHX5Xjs.describeArgs.call(void 0, target, options));
17914
17914
  const [flagText] = [options.json].filter(
17915
17915
  (value) => typeof value === "string"
17916
17916
  );
@@ -17921,7 +17921,7 @@ Examples:
17921
17921
  process.exitCode = await ownView();
17922
17922
  return;
17923
17923
  }
17924
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-X2AFAC4B.js")));
17924
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-GS5A2XH4.js")));
17925
17925
  process.exitCode = await describeAnything(
17926
17926
  name,
17927
17927
  {
@@ -18038,7 +18038,7 @@ Examples:
18038
18038
  deepline plays deployments <deployment-id>
18039
18039
  `
18040
18040
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
18041
- async (id, options) => id ? _chunkT4IJQKREjs.handleDeploymentGet.call(void 0, id, options) : _chunkT4IJQKREjs.handleDeploymentsList.call(void 0, options)
18041
+ async (id, options) => id ? _chunk4UXNEC5Cjs.handleDeploymentGet.call(void 0, id, options) : _chunk4UXNEC5Cjs.handleDeploymentsList.call(void 0, options)
18042
18042
  );
18043
18043
  addPublishHelp(
18044
18044
  play.command("publish <target>").description(
@@ -18218,7 +18218,7 @@ Examples:
18218
18218
  ).action(async (runId, options) => {
18219
18219
  process.exitCode = await handleRunGet([
18220
18220
  runId,
18221
- ..._chunk6LLJWMYHjs.jsonFieldArgs.call(void 0, options.json),
18221
+ ..._chunkGQXEHX5Xjs.jsonFieldArgs.call(void 0, options.json),
18222
18222
  ...options.full ? ["--full"] : [],
18223
18223
  ...options.input ? ["--input"] : [],
18224
18224
  ...options.config ? ["--config"] : [],
@@ -18493,7 +18493,7 @@ Examples:
18493
18493
  ...options.metadataOut ? ["--metadata-out", options.metadataOut] : [],
18494
18494
  ...options.wait ? ["--wait"] : [],
18495
18495
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
18496
- ..._chunk6LLJWMYHjs.jsonFieldArgs.call(void 0, options.json)
18496
+ ..._chunkGQXEHX5Xjs.jsonFieldArgs.call(void 0, options.json)
18497
18497
  ]);
18498
18498
  });
18499
18499
  const share = play.command("share").description(
@@ -18659,10 +18659,10 @@ async function handlePlayShareStatus(args) {
18659
18659
  return 2;
18660
18660
  }
18661
18661
  const name = parseReferencedPlayTarget2(target).playName;
18662
- const status = await new (0, _chunkULI6UVV6js.DeeplineClient)().getSharePage(name);
18662
+ const status = await new (0, _chunkVSAYSOVCjs.DeeplineClient)().getSharePage(name);
18663
18663
  const outputStatus = shareStatusForOutput(status);
18664
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
18665
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, outputStatus);
18664
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
18665
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, outputStatus);
18666
18666
  return 0;
18667
18667
  }
18668
18668
  if (!outputStatus.share) {
@@ -18701,7 +18701,7 @@ async function handlePlaySharePublish(args) {
18701
18701
  return 2;
18702
18702
  }
18703
18703
  const name = parseReferencedPlayTarget2(target).playName;
18704
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
18704
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
18705
18705
  let revisionId = shareFlagValue(args, "--revision-id");
18706
18706
  let resolvedVersion;
18707
18707
  if (!revisionId) {
@@ -18732,8 +18732,8 @@ async function handlePlaySharePublish(args) {
18732
18732
  );
18733
18733
  if (!hasCompleted) {
18734
18734
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
18735
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
18736
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, {
18735
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
18736
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, {
18737
18737
  ok: false,
18738
18738
  code: "NO_SUCCESSFUL_RUN",
18739
18739
  message,
@@ -18757,8 +18757,8 @@ async function handlePlaySharePublish(args) {
18757
18757
  };
18758
18758
  if (args.includes("--dry-run")) {
18759
18759
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
18760
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
18761
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, plan);
18760
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
18761
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, plan);
18762
18762
  } else {
18763
18763
  console.log(
18764
18764
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -18768,8 +18768,8 @@ async function handlePlaySharePublish(args) {
18768
18768
  }
18769
18769
  const status = await client.publishSharePage(name, request);
18770
18770
  const outputStatus = shareStatusForOutput(status);
18771
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
18772
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, outputStatus);
18771
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
18772
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, outputStatus);
18773
18773
  return 0;
18774
18774
  }
18775
18775
  const urls = shareUrlFields(outputStatus);
@@ -18800,9 +18800,9 @@ async function handlePlayShareUpdate(args) {
18800
18800
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
18801
18801
  ...seoIndexing ? { seoIndexing } : {}
18802
18802
  };
18803
- const status = await new (0, _chunkULI6UVV6js.DeeplineClient)().updateSharePage(name, request);
18804
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
18805
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, status);
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);
18806
18806
  return 0;
18807
18807
  }
18808
18808
  console.log(`Updated ${name} share settings.`);
@@ -18817,7 +18817,7 @@ async function handlePlayShareRegenerate(args) {
18817
18817
  return 2;
18818
18818
  }
18819
18819
  const name = parseReferencedPlayTarget2(target).playName;
18820
- const client = new (0, _chunkULI6UVV6js.DeeplineClient)();
18820
+ const client = new (0, _chunkVSAYSOVCjs.DeeplineClient)();
18821
18821
  let revisionId = shareFlagValue(args, "--revision-id");
18822
18822
  const versionFlag = shareFlagValue(args, "--version");
18823
18823
  if (!revisionId && versionFlag) {
@@ -18834,8 +18834,8 @@ async function handlePlayShareRegenerate(args) {
18834
18834
  revisionId ? { revisionId } : {}
18835
18835
  );
18836
18836
  const outputStatus = shareStatusForOutput(status);
18837
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
18838
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, outputStatus);
18837
+ if (_chunkGQXEHX5Xjs.argsWantJson.call(void 0, args)) {
18838
+ _chunkGQXEHX5Xjs.printCompactJson.call(void 0, outputStatus);
18839
18839
  return 0;
18840
18840
  }
18841
18841
  const urls = shareUrlFields(outputStatus);
@@ -18860,9 +18860,9 @@ async function handlePlayShareUnpublish(args) {
18860
18860
  return 2;
18861
18861
  }
18862
18862
  const name = parseReferencedPlayTarget2(target).playName;
18863
- const status = await new (0, _chunkULI6UVV6js.DeeplineClient)().unpublishSharePage(name);
18864
- if (_chunk6LLJWMYHjs.argsWantJson.call(void 0, args)) {
18865
- _chunk6LLJWMYHjs.printCompactJson.call(void 0, status);
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);
18866
18866
  return 0;
18867
18867
  }
18868
18868
  console.log(`Unpublished ${name}; the public page has been removed.`);