deepline 0.3.314 → 0.3.315

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 (103) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +12 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/types.ts +10 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +28 -0
  5. package/dist/bundling-sources/shared_libs/plays/docflow-binding-owner.ts +61 -11
  6. package/dist/cli/{auth-GWF55S3N.mjs → auth-OVWOO5NP.mjs} +4 -4
  7. package/dist/cli/auth-P2TTZU36.js +31 -0
  8. package/dist/cli/{billing-2YU6E2IF.js → billing-SRZL7UOH.js} +70 -70
  9. package/dist/cli/{billing-WWOJN7GV.mjs → billing-W3OXKWNE.mjs} +4 -4
  10. package/dist/cli/{chunk-VFRZG4OW.js → chunk-6BJACIVK.js} +1 -1
  11. package/dist/cli/{chunk-CPN2N6EZ.mjs → chunk-AO4IWPP7.mjs} +32 -8
  12. package/dist/cli/{chunk-25SPKKF2.mjs → chunk-AZWQJAQF.mjs} +1 -1
  13. package/dist/cli/{chunk-3CKNUJVZ.mjs → chunk-B473QUQU.mjs} +4 -4
  14. package/dist/cli/{chunk-ENQZV7NR.js → chunk-C5WSTXUB.js} +246 -222
  15. package/dist/cli/{chunk-YVMJTXEG.js → chunk-FGAK6FET.js} +26 -26
  16. package/dist/cli/{chunk-DR3S76BG.mjs → chunk-FTJQO757.mjs} +1 -1
  17. package/dist/cli/{chunk-JZZT4GAY.mjs → chunk-GK67FYMS.mjs} +5 -5
  18. package/dist/cli/{chunk-QB5MAFCU.mjs → chunk-HNKHMHJ7.mjs} +1 -1
  19. package/dist/cli/{chunk-IZTIBG7A.mjs → chunk-IGE7EJJY.mjs} +11 -1
  20. package/dist/cli/{chunk-3K6QD7Z3.mjs → chunk-JF4O5OMH.mjs} +1 -1
  21. package/dist/cli/{chunk-WTO3ITBC.mjs → chunk-L5TSFCJ6.mjs} +2 -2
  22. package/dist/cli/{chunk-JNUHGWB2.js → chunk-LOWURQMF.js} +50 -50
  23. package/dist/cli/{chunk-WDPRE6DU.js → chunk-OJP4FCCX.js} +48 -48
  24. package/dist/cli/{chunk-HTXZLCSP.mjs → chunk-OUIIYFG3.mjs} +2 -2
  25. package/dist/cli/{chunk-GSRDZD7R.js → chunk-OYJCNCUW.js} +2 -2
  26. package/dist/cli/{chunk-VBRO5QCI.js → chunk-PPONZ6IE.js} +15 -15
  27. package/dist/cli/{chunk-3A4LJUX6.mjs → chunk-R3IFZDJL.mjs} +2 -2
  28. package/dist/cli/{chunk-NG4WDOGN.js → chunk-SNFSO2AN.js} +6 -6
  29. package/dist/cli/{chunk-2Q2IKUL5.mjs → chunk-TQ3F77AC.mjs} +3 -3
  30. package/dist/cli/{chunk-VWW6VHQX.js → chunk-TQK662WG.js} +60 -60
  31. package/dist/cli/{chunk-OUHCJL5B.mjs → chunk-TZ5KUDPP.mjs} +1 -1
  32. package/dist/cli/{chunk-B5LUKLKH.js → chunk-URVZGYGG.js} +4 -4
  33. package/dist/cli/{chunk-MLEJ2FYH.js → chunk-VYK23G2C.js} +119 -109
  34. package/dist/cli/{chunk-ODEWOXWW.js → chunk-Y42UERUY.js} +6 -6
  35. package/dist/cli/{chunk-UZTTPEG2.js → chunk-YL42TF53.js} +6 -6
  36. package/dist/cli/client-CXFPFCIG.js +20 -0
  37. package/dist/cli/{client-EYGNDORT.mjs → client-WQ3J5BSH.mjs} +3 -3
  38. package/dist/cli/{csv-NZCN7SVV.mjs → csv-36ARCBNQ.mjs} +3 -3
  39. package/dist/cli/{csv-YOW5JMOH.js → csv-CENMEWDH.js} +12 -12
  40. package/dist/cli/{db-6BIYLZ6F.js → db-6DQZG6NB.js} +20 -20
  41. package/dist/cli/{db-HALJV3KY.mjs → db-JU7XLKQM.mjs} +4 -4
  42. package/dist/cli/{describe-KY2ZYGBR.mjs → describe-34ALEEFO.mjs} +8 -8
  43. package/dist/cli/{describe-WA6R2JSH.js → describe-VUD4AFBY.js} +15 -15
  44. package/dist/cli/{executions-NMCTN7XM.js → executions-H2UXS6FP.js} +6 -6
  45. package/dist/cli/{executions-CBOAN6KI.mjs → executions-H66BMN6N.mjs} +4 -4
  46. package/dist/cli/{feedback-FOMPE3DJ.mjs → feedback-Q7LXXLSH.mjs} +3 -3
  47. package/dist/cli/{feedback-ZZFDSCWS.js → feedback-YSYFQSAB.js} +6 -6
  48. package/dist/cli/git-SYFCYIFP.js +23 -0
  49. package/dist/cli/{git-YQR2NBCO.mjs → git-XV43NSWN.mjs} +4 -4
  50. package/dist/cli/index.js +74 -74
  51. package/dist/cli/index.mjs +31 -31
  52. package/dist/cli/{legacy-noops-XH2TFFI6.js → legacy-noops-RGDW6SCA.js} +7 -7
  53. package/dist/cli/{legacy-noops-KMU6P3K4.mjs → legacy-noops-Z2DTZQN3.mjs} +4 -4
  54. package/dist/cli/{monitors-5M3BZ5OR.js → monitors-I75KZ2BP.js} +85 -85
  55. package/dist/cli/{monitors-2ONK5L3I.mjs → monitors-OFQ56O4S.mjs} +4 -4
  56. package/dist/cli/{org-6MKULUZI.js → org-75AH6RIB.js} +60 -60
  57. package/dist/cli/{org-LR5BMCGL.mjs → org-ZYMCU6XO.mjs} +4 -4
  58. package/dist/cli/{play-4NOSD7DW.mjs → play-BKXM76DV.mjs} +7 -7
  59. package/dist/cli/play-OKXUWPMO.js +152 -0
  60. package/dist/cli/{providers-UBGIKGCA.mjs → providers-GWG2WFIY.mjs} +4 -4
  61. package/dist/cli/{providers-UFJD3VKF.js → providers-Z77MM7ID.js} +7 -7
  62. package/dist/cli/{quickstart-KDUKQRUH.mjs → quickstart-BGVIV374.mjs} +3 -3
  63. package/dist/cli/{quickstart-KQZHZE6C.js → quickstart-I4RECIQC.js} +5 -5
  64. package/dist/cli/search-3KISUDDT.js +26 -0
  65. package/dist/cli/{search-4BVOOS5Q.mjs → search-TIKBP3RE.mjs} +5 -5
  66. package/dist/cli/{secrets-TVXZ3WJ3.js → secrets-SNGRI4KS.js} +13 -13
  67. package/dist/cli/{secrets-YGV23N3N.mjs → secrets-YCHKLWKC.mjs} +4 -4
  68. package/dist/cli/{sessions-G7ROUW35.mjs → sessions-IRDG6ZRX.mjs} +4 -4
  69. package/dist/cli/{sessions-RWIQWDFD.js → sessions-WXLADGDX.js} +5 -5
  70. package/dist/cli/{settings-TG3E2NR7.js → settings-72J4BVF6.js} +74 -74
  71. package/dist/cli/{settings-QZEVGCXE.mjs → settings-KZALJDXW.mjs} +7 -7
  72. package/dist/cli/{setup-HUXINKOH.mjs → setup-4KCA7ESV.mjs} +6 -6
  73. package/dist/cli/{setup-3KDUNEEE.js → setup-FFB3KLFD.js} +41 -41
  74. package/dist/cli/{skills-LHU3DB7J.mjs → skills-MQZPYUQ3.mjs} +4 -4
  75. package/dist/cli/skills-XGOK4GRW.js +28 -0
  76. package/dist/cli/tools-LEAJ7EPW.js +38 -0
  77. package/dist/cli/{tools-J5WQ33BB.mjs → tools-M3WKRZ5T.mjs} +6 -6
  78. package/dist/cli/{update-T6744RM7.mjs → update-QJMNYGNF.mjs} +6 -6
  79. package/dist/cli/update-ZN6LDUHS.js +28 -0
  80. package/dist/cli/{workflow-YF5SQJLG.js → workflow-35UUOZ5E.js} +15 -15
  81. package/dist/cli/{workflow-CG2B65HD.mjs → workflow-6T2EUFCN.mjs} +5 -5
  82. package/dist/{client-CtVdLZux.d.mts → client-CvpZsBqt.d.mts} +12 -0
  83. package/dist/{client-OBwghxPC.d.ts → client-Dh_4Ph1R.d.ts} +12 -0
  84. package/dist/index.d.mts +2 -2
  85. package/dist/index.d.ts +2 -2
  86. package/dist/index.js +6 -6
  87. package/dist/index.mjs +3 -3
  88. package/dist/install-integrity.json +76 -76
  89. package/dist/plays/run-request.d.mts +1 -1
  90. package/dist/plays/run-request.d.ts +1 -1
  91. package/dist/release.d.mts +1 -1
  92. package/dist/release.d.ts +1 -1
  93. package/dist/release.js +2 -2
  94. package/dist/release.mjs +1 -1
  95. package/package.json +1 -1
  96. package/dist/cli/auth-QX2L4LPM.js +0 -31
  97. package/dist/cli/client-Z4VFNTUB.js +0 -20
  98. package/dist/cli/git-AC2ATBDK.js +0 -23
  99. package/dist/cli/play-U3CZ4F2W.js +0 -152
  100. package/dist/cli/search-Y7OTFRCI.js +0 -26
  101. package/dist/cli/skills-CO5YUWBK.js +0 -28
  102. package/dist/cli/tools-MWPT5X47.js +0 -38
  103. package/dist/cli/update-VVIJW7ZJ.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 _chunkUZTTPEG2js = require('./chunk-UZTTPEG2.js');
10
+ var _chunkYL42TF53js = require('./chunk-YL42TF53.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkYVMJTXEGjs = require('./chunk-YVMJTXEG.js');
14
+ var _chunkFGAK6FETjs = require('./chunk-FGAK6FET.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 _chunkMLEJ2FYHjs = require('./chunk-MLEJ2FYH.js');
37
+ var _chunkVYK23G2Cjs = require('./chunk-VYK23G2C.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 _chunkODEWOXWWjs = require('./chunk-ODEWOXWW.js');
69
+ var _chunkY42UERUYjs = require('./chunk-Y42UERUY.js');
70
70
 
71
71
 
72
- var _chunkB5LUKLKHjs = require('./chunk-B5LUKLKH.js');
72
+ var _chunkURVZGYGGjs = require('./chunk-URVZGYGG.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
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2064
+ _chunkY42UERUYjs.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
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2108
+ _chunkY42UERUYjs.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, _chunkMLEJ2FYHjs.DeeplineClient)().getPlaySettings(options.play),
2133
+ await new (0, _chunkVYK23G2Cjs.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
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2164
+ _chunkY42UERUYjs.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, _chunkMLEJ2FYHjs.DeeplineClient)().updatePlaySettings(play, patch),
2185
+ await new (0, _chunkVYK23G2Cjs.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, _chunkMLEJ2FYHjs.DeeplineClient)().listPlaySettingsPaths({
2211
+ const page = await new (0, _chunkVYK23G2Cjs.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
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2217
+ _chunkY42UERUYjs.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, _chunkMLEJ2FYHjs.DeeplineClient)();
2268
+ const client = new (0, _chunkVYK23G2Cjs.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
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2330
+ _chunkY42UERUYjs.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
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2458
+ _chunkY42UERUYjs.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
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2471
+ _chunkY42UERUYjs.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
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
2501
+ _chunkY42UERUYjs.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, _chunkMLEJ2FYHjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2520
+ await new (0, _chunkVYK23G2Cjs.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, _chunkMLEJ2FYHjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2553
+ await new (0, _chunkVYK23G2Cjs.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, _chunkMLEJ2FYHjs.DeeplineClient)().getPlayTriggerConfig(
2597
+ const current = await new (0, _chunkVYK23G2Cjs.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 = _chunkMLEJ2FYHjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2674
+ var RUN_LOGS_KIND_HELP = _chunkVYK23G2Cjs.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 (_chunkODEWOXWWjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2812
- _chunkODEWOXWWjs.printJsonError.call(void 0,
2813
- Object.assign(new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(error.message), {
2811
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2812
+ _chunkY42UERUYjs.printJsonError.call(void 0,
2813
+ Object.assign(new (0, _chunkVYK23G2Cjs.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, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2857
+ throw new (0, _chunkVYK23G2Cjs.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, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2864
+ throw new (0, _chunkVYK23G2Cjs.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, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2878
+ throw new (0, _chunkVYK23G2Cjs.RunEventQueryInputError)(
2879
2879
  `Unsupported query flag ${flag}. ${correction}`
2880
2880
  );
2881
2881
  }
2882
2882
  if (runId !== void 0) {
2883
- throw new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2883
+ throw new (0, _chunkVYK23G2Cjs.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, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2891
+ throw new (0, _chunkVYK23G2Cjs.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, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2904
+ throw new (0, _chunkVYK23G2Cjs.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, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2910
+ throw new (0, _chunkVYK23G2Cjs.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, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2915
+ throw new (0, _chunkVYK23G2Cjs.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, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2923
+ throw new (0, _chunkVYK23G2Cjs.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 = _chunkMLEJ2FYHjs.normalizeRunEventOperationRequest.call(void 0, body);
2958
+ const request = _chunkVYK23G2Cjs.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, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2962
+ throw new (0, _chunkVYK23G2Cjs.RunEventQueryInputError)(
2963
2963
  "--runtime-backend must be daytona or modal."
2964
2964
  );
2965
2965
  }
2966
2966
  if (backend && !namespace) {
2967
- throw new (0, _chunkMLEJ2FYHjs.RunEventQueryInputError)(
2967
+ throw new (0, _chunkVYK23G2Cjs.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 _chunkMLEJ2FYHjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3015
+ const exitCode = error instanceof _chunkVYK23G2Cjs.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 (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) _chunkODEWOXWWjs.printJsonError.call(void 0, diagnostic);
3020
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) _chunkY42UERUYjs.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, _chunkMLEJ2FYHjs.DeeplineClient)();
3035
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
3036
3036
  let result;
3037
3037
  if (request.operation === "fields") {
3038
3038
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3098,13 +3098,13 @@ async function executeRunEventQuery(args, resource) {
3098
3098
  lines.push(`Next page: ${nextPage}`);
3099
3099
  }
3100
3100
  }
3101
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
3101
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
3102
3102
  {
3103
3103
  ...result,
3104
3104
  ...nextPage ? { next: { page: nextPage } } : {},
3105
3105
  render: { sections: [{ title: `run ${resource}`, lines }] }
3106
3106
  },
3107
- { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3107
+ { json: _chunkY42UERUYjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3108
3108
  ` }
3109
3109
  );
3110
3110
  return 0;
@@ -3922,7 +3922,7 @@ function checkedRunExample(plays, target) {
3922
3922
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3923
3923
  const base = `deepline plays run --file ${quote(target)}`;
3924
3924
  return {
3925
- command: `${base}${_chunkMLEJ2FYHjs.playInputExampleArgs.call(void 0, schema)} --json`,
3925
+ command: `${base}${_chunkVYK23G2Cjs.playInputExampleArgs.call(void 0, schema)} --json`,
3926
3926
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema. Keep stderr separate from JSON stdout."
3927
3927
  };
3928
3928
  }
@@ -5540,7 +5540,7 @@ async function runPlayBootstrap(args) {
5540
5540
  return runMonitorBootstrap(args);
5541
5541
  }
5542
5542
  const options = parsePlayBootstrapOptions(args);
5543
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
5543
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
5544
5544
  const contracts = await loadBootstrapContracts(client, options);
5545
5545
  const csvContext = loadCsvContext(options.from);
5546
5546
  const source = generateBootstrapPlaySource({
@@ -5695,7 +5695,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5695
5695
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
5696
5696
  );
5697
5697
  }
5698
- const response = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().runs.getReceipts(runId, {
5698
+ const response = await new (0, _chunkVYK23G2Cjs.DeeplineClient)().runs.getReceipts(runId, {
5699
5699
  keys
5700
5700
  });
5701
5701
  const failed = response.receipts.filter(
@@ -5707,7 +5707,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5707
5707
  JSON.stringify(response, null, 2) + "\n",
5708
5708
  { flag: "wx", mode: 384 }
5709
5709
  );
5710
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
5710
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
5711
5711
  {
5712
5712
  runId,
5713
5713
  out: options.out,
@@ -5717,7 +5717,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5717
5717
  { json: true }
5718
5718
  );
5719
5719
  } else {
5720
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5720
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5721
5721
  }
5722
5722
  if (failed)
5723
5723
  process.exitCode = response.receipts.some(
@@ -5756,7 +5756,7 @@ includes nextCommand when another page is available.
5756
5756
  { exitCode: 2 }
5757
5757
  );
5758
5758
  }
5759
- const page = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().runs.children(parentRunId, {
5759
+ const page = await new (0, _chunkVYK23G2Cjs.DeeplineClient)().runs.children(parentRunId, {
5760
5760
  launchKey: options.launchKey,
5761
5761
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
5762
5762
  limit
@@ -5772,7 +5772,7 @@ includes nextCommand when another page is available.
5772
5772
  String(limit),
5773
5773
  "--json"
5774
5774
  ].join(" ") : null;
5775
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
5775
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
5776
5776
  {
5777
5777
  parentRunId,
5778
5778
  launchKey: options.launchKey,
@@ -5808,7 +5808,7 @@ async function handleRunsHistory(options) {
5808
5808
  throw new Error("--limit must be a positive integer.");
5809
5809
  }
5810
5810
  }
5811
- const page = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().runs.history({
5811
+ const page = await new (0, _chunkVYK23G2Cjs.DeeplineClient)().runs.history({
5812
5812
  cursor: options.cursor,
5813
5813
  orgId: options.org,
5814
5814
  search: options.search,
@@ -5824,7 +5824,7 @@ async function handleRunsHistory(options) {
5824
5824
  );
5825
5825
  }
5826
5826
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
5827
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
5827
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
5828
5828
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
5829
5829
  options.json ? { json: true } : {}
5830
5830
  );
@@ -6100,7 +6100,7 @@ function projectRunDatasetCell(value) {
6100
6100
  const logicalValue = parseSerializedDatasetValue(value);
6101
6101
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
6102
6102
  if (typeof logicalValue === "object") {
6103
- return _chunkODEWOXWWjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
6103
+ return _chunkY42UERUYjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
6104
6104
  }
6105
6105
  return logicalValue;
6106
6106
  }
@@ -8908,7 +8908,7 @@ function renderOutcome(outcome) {
8908
8908
  function printResult2(input) {
8909
8909
  const failed = input.status === "failed" || input.status === "cancelled";
8910
8910
  if (failed) process.exitCode = 1;
8911
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
8911
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
8912
8912
  {
8913
8913
  deployment: { ...input.deployment, status: input.status },
8914
8914
  plays: input.outcomes,
@@ -8933,7 +8933,7 @@ async function handlePlaysDeploy(directory, options) {
8933
8933
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
8934
8934
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
8935
8935
  });
8936
- const { http, config } = _chunkODEWOXWWjs.getAuthedHttpClient.call(void 0, );
8936
+ const { http, config } = _chunkY42UERUYjs.getAuthedHttpClient.call(void 0, );
8937
8937
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
8938
8938
  const startDeployment = () => http.post("/api/v2/deployments", {
8939
8939
  deliveryId,
@@ -8960,7 +8960,7 @@ async function handlePlaysDeploy(directory, options) {
8960
8960
  },
8961
8961
  {
8962
8962
  bundle: bundleDeployPlayFile,
8963
- fetchImpl: _chunkB5LUKLKHjs.fetchWithDeploymentProtection,
8963
+ fetchImpl: _chunkURVZGYGGjs.fetchWithDeploymentProtection,
8964
8964
  // The plays are already here: "opening" the source is naming it.
8965
8965
  openSource: async () => ({
8966
8966
  open: async () => ({ repoRoot: root })
@@ -10060,7 +10060,7 @@ function playStatusErrorText(status) {
10060
10060
  function isRetryablePendingStartFailure(status) {
10061
10061
  if (status.status !== "failed") return false;
10062
10062
  if (status.runId && status.runId !== "pending") return false;
10063
- return _chunkMLEJ2FYHjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
10063
+ return _chunkVYK23G2Cjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
10064
10064
  }
10065
10065
  function pendingStartFailureStatus(input) {
10066
10066
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -10087,13 +10087,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
10087
10087
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
10088
10088
  function watchSurfaceReaches(state, provenance, level) {
10089
10089
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
10090
- if (!_chunkMLEJ2FYHjs.logLevelReaches.call(void 0, level, minimumLevel)) {
10090
+ if (!_chunkVYK23G2Cjs.logLevelReaches.call(void 0, level, minimumLevel)) {
10091
10091
  return false;
10092
10092
  }
10093
- if (_chunkMLEJ2FYHjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
10093
+ if (_chunkVYK23G2Cjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
10094
10094
  return true;
10095
10095
  }
10096
- return state.verbose === true && _chunkMLEJ2FYHjs.logProvenanceReaches.call(void 0, provenance, "debug");
10096
+ return state.verbose === true && _chunkVYK23G2Cjs.logProvenanceReaches.call(void 0, provenance, "debug");
10097
10097
  }
10098
10098
  function getEventPayload(event) {
10099
10099
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -10595,7 +10595,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
10595
10595
  }
10596
10596
  function openPlayDashboard(dashboardUrl, open2) {
10597
10597
  if (open2 && dashboardUrl) {
10598
- _chunkODEWOXWWjs.openInBrowser.call(void 0, dashboardUrl);
10598
+ _chunkY42UERUYjs.openInBrowser.call(void 0, dashboardUrl);
10599
10599
  }
10600
10600
  }
10601
10601
  function printPlayLogLines(input) {
@@ -10657,7 +10657,7 @@ async function waitForPlayCompletionByWatch(input) {
10657
10657
  billing: false
10658
10658
  });
10659
10659
  } catch (error) {
10660
- if (_chunkMLEJ2FYHjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
10660
+ if (_chunkVYK23G2Cjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
10661
10661
  return null;
10662
10662
  }
10663
10663
  throw error;
@@ -10846,7 +10846,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10846
10846
  billing: false
10847
10847
  });
10848
10848
  } catch (error) {
10849
- if (_chunkMLEJ2FYHjs.isTransientPlayRunReadError.call(void 0, error)) {
10849
+ if (_chunkVYK23G2Cjs.isTransientPlayRunReadError.call(void 0, error)) {
10850
10850
  return null;
10851
10851
  }
10852
10852
  throw error;
@@ -11054,7 +11054,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11054
11054
  lastPhase
11055
11055
  });
11056
11056
  }
11057
- if (lastKnownWorkflowId && _chunkMLEJ2FYHjs.isTransientPlayRunReadError.call(void 0, error)) {
11057
+ if (lastKnownWorkflowId && _chunkVYK23G2Cjs.isTransientPlayRunReadError.call(void 0, error)) {
11058
11058
  if (timeout) {
11059
11059
  clearTimeout(timeout);
11060
11060
  }
@@ -11090,7 +11090,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11090
11090
  onRunAdmitted: confirmAdmission
11091
11091
  });
11092
11092
  }
11093
- if (!lastKnownWorkflowId && _chunkMLEJ2FYHjs.isTransientPlayRunReadError.call(void 0, error)) {
11093
+ if (!lastKnownWorkflowId && _chunkVYK23G2Cjs.isTransientPlayRunReadError.call(void 0, error)) {
11094
11094
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
11095
11095
  phase: "cli.play_start_stream_transient_failure",
11096
11096
  ms: Date.now() - startedAt,
@@ -11189,7 +11189,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
11189
11189
  "logs"
11190
11190
  ]);
11191
11191
  function formatPlayLogLine(rawLine, state) {
11192
- const classified = _chunkMLEJ2FYHjs.classifyLogLine.call(void 0, rawLine);
11192
+ const classified = _chunkVYK23G2Cjs.classifyLogLine.call(void 0, rawLine);
11193
11193
  const line = classified.line;
11194
11194
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
11195
11195
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _344 => _344[1]]) ? new Date(timestampMatch[1]) : null;
@@ -11204,14 +11204,14 @@ function formatPlayLogLine(rawLine, state) {
11204
11204
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
11205
11205
  const providerWait = formatProviderCapacityWaitLogLine(line);
11206
11206
  if (providerWait && !state.verbose) {
11207
- return _chunkMLEJ2FYHjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
11207
+ return _chunkVYK23G2Cjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
11208
11208
  }
11209
11209
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
11210
11210
  if (mapProgress && !state.verbose) {
11211
- return _chunkMLEJ2FYHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
11211
+ return _chunkVYK23G2Cjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
11212
11212
  }
11213
11213
  if (/\[worker\] picked up run\b/.test(message)) {
11214
- if (!_chunkMLEJ2FYHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11214
+ if (!_chunkVYK23G2Cjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11215
11215
  return null;
11216
11216
  }
11217
11217
  if (state.emittedRunnerStarted) {
@@ -11224,7 +11224,7 @@ function formatPlayLogLine(rawLine, state) {
11224
11224
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
11225
11225
  );
11226
11226
  if (mapStart) {
11227
- if (!_chunkMLEJ2FYHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11227
+ if (!_chunkVYK23G2Cjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11228
11228
  return null;
11229
11229
  }
11230
11230
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -11234,7 +11234,7 @@ function formatPlayLogLine(rawLine, state) {
11234
11234
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
11235
11235
  );
11236
11236
  if (mapDone) {
11237
- if (!_chunkMLEJ2FYHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11237
+ if (!_chunkVYK23G2Cjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11238
11238
  return null;
11239
11239
  }
11240
11240
  const [, results, executed, cached] = mapDone;
@@ -12523,7 +12523,7 @@ function formatRecentRunLogLines(value) {
12523
12523
  (line) => typeof line === "string"
12524
12524
  );
12525
12525
  if (tail.length === 0) return [];
12526
- const shown = tail.map((line) => _chunkMLEJ2FYHjs.classifyLogLine.call(void 0, line)).filter(
12526
+ const shown = tail.map((line) => _chunkVYK23G2Cjs.classifyLogLine.call(void 0, line)).filter(
12527
12527
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
12528
12528
  ).slice(-8);
12529
12529
  const total = readNonNegativeInteger(logs.totalCount);
@@ -12803,7 +12803,7 @@ function writePlayResult(status, jsonOutput, options) {
12803
12803
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _425 => _425.hits]), () => ( null));
12804
12804
  if (jsonOutput) {
12805
12805
  const payload2 = _optionalChain([options, 'optionalAccess', _426 => _426.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
12806
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
12806
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
12807
12807
  hits ? { ...payload2, hits } : payload2,
12808
12808
  { json: true, fields: _optionalChain([options, 'optionalAccess', _427 => _427.jsonFields]) }
12809
12809
  );
@@ -12819,7 +12819,7 @@ function writePlayResult(status, jsonOutput, options) {
12819
12819
  ...buildPlayCompletionTextLines(status),
12820
12820
  ...formatRunHitsLines(hits)
12821
12821
  ];
12822
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, displayPackage, {
12822
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0, displayPackage, {
12823
12823
  json: false,
12824
12824
  text: `${lines2.join("\n")}
12825
12825
  `
@@ -12870,7 +12870,7 @@ function writePlayResult(status, jsonOutput, options) {
12870
12870
  lines.push(...buildBillingRollupTextLines(status));
12871
12871
  const compact = compactPlayStatus(status);
12872
12872
  const payload = _optionalChain([options, 'optionalAccess', _429 => _429.fullJson]) ? status : compact;
12873
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
12873
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
12874
12874
  {
12875
12875
  ...payload,
12876
12876
  render: {
@@ -13630,7 +13630,7 @@ function writeStartedPlayRun(input) {
13630
13630
  dashboardUrl: input.dashboardUrl,
13631
13631
  package: input.package
13632
13632
  };
13633
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
13633
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
13634
13634
  json: true,
13635
13635
  fields: input.jsonFields
13636
13636
  });
@@ -13652,7 +13652,7 @@ function writeStartedPlayRun(input) {
13652
13652
  input.progress.writeLine(output2, process.stdout);
13653
13653
  return;
13654
13654
  }
13655
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, input.package, {
13655
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0, input.package, {
13656
13656
  json: false,
13657
13657
  text: `${output2}
13658
13658
  `
@@ -13681,7 +13681,7 @@ function writeStartedPlayRun(input) {
13681
13681
  ) ? [`Stop: deepline runs stop ${shellSingleQuote(input.runId)} --json`] : []
13682
13682
  ];
13683
13683
  if (input.jsonOutput) {
13684
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13684
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13685
13685
  return;
13686
13686
  }
13687
13687
  if (input.dashboardUrl) {
@@ -13692,7 +13692,7 @@ function writeStartedPlayRun(input) {
13692
13692
  input.progress.writeLine(output, process.stdout);
13693
13693
  return;
13694
13694
  }
13695
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
13695
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
13696
13696
  {
13697
13697
  ...payload,
13698
13698
  render: { sections: [{ title: "play run", lines }] }
@@ -13702,7 +13702,7 @@ function writeStartedPlayRun(input) {
13702
13702
  );
13703
13703
  }
13704
13704
  function parsePlayRunOptions(args) {
13705
- const selection = _chunkODEWOXWWjs.parseJsonFields.call(void 0, args, "run");
13705
+ const selection = _chunkY42UERUYjs.parseJsonFields.call(void 0, args, "run");
13706
13706
  args = selection.args;
13707
13707
  const usage2 = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and ctx.dataset guidance.";
13708
13708
  let filePath = null;
@@ -13711,7 +13711,7 @@ function parsePlayRunOptions(args) {
13711
13711
  let revisionId = null;
13712
13712
  let revisionSelector = null;
13713
13713
  const watch = !args.includes("--no-wait");
13714
- let jsonOutput = watch ? args.includes("--json") : _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
13714
+ let jsonOutput = watch ? args.includes("--json") : _chunkY42UERUYjs.argsWantJson.call(void 0, args);
13715
13715
  const fullJson = args.includes("--full");
13716
13716
  const force = args.includes("--force");
13717
13717
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -13758,7 +13758,7 @@ function parsePlayRunOptions(args) {
13758
13758
  "--log-level requires one of: debug, info, warn, error."
13759
13759
  );
13760
13760
  }
13761
- const parsed = _chunkMLEJ2FYHjs.parseLogLevel.call(void 0, value);
13761
+ const parsed = _chunkVYK23G2Cjs.parseLogLevel.call(void 0, value);
13762
13762
  if (!parsed) {
13763
13763
  throw new Error(
13764
13764
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -13985,7 +13985,7 @@ function parsePlayRunOptions(args) {
13985
13985
  };
13986
13986
  }
13987
13987
  function parsePlayCheckOptions(args) {
13988
- const selection = _chunkODEWOXWWjs.parseJsonFields.call(void 0, args, "check");
13988
+ const selection = _chunkY42UERUYjs.parseJsonFields.call(void 0, args, "check");
13989
13989
  args = selection.args;
13990
13990
  const target = args[0];
13991
13991
  if (!target || target.startsWith("-")) {
@@ -13997,7 +13997,7 @@ function parsePlayCheckOptions(args) {
13997
13997
  if (arg !== "--json" && arg !== "--full")
13998
13998
  throw new Error(`Unknown plays check option: ${arg}`);
13999
13999
  }
14000
- const jsonOutput = _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
14000
+ const jsonOutput = _chunkY42UERUYjs.argsWantJson.call(void 0, args);
14001
14001
  return {
14002
14002
  target,
14003
14003
  jsonOutput,
@@ -14073,7 +14073,7 @@ ${PLAY_PUBLISH_USAGE}`
14073
14073
  useLatest,
14074
14074
  expectedArtifactHash,
14075
14075
  dryRun,
14076
- jsonOutput: _chunkODEWOXWWjs.argsWantJson.call(void 0, args)
14076
+ jsonOutput: _chunkY42UERUYjs.argsWantJson.call(void 0, args)
14077
14077
  };
14078
14078
  }
14079
14079
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -14114,7 +14114,7 @@ ${PLAY_SAVE_USAGE}`);
14114
14114
  target,
14115
14115
  expectedArtifactHash,
14116
14116
  dryRun,
14117
- jsonOutput: _chunkODEWOXWWjs.argsWantJson.call(void 0, args)
14117
+ jsonOutput: _chunkY42UERUYjs.argsWantJson.call(void 0, args)
14118
14118
  };
14119
14119
  }
14120
14120
  function printScheduledPlayCapacity(capacity) {
@@ -14325,7 +14325,7 @@ function printBundledRuntimeWarning(bundle) {
14325
14325
  async function handlePlayCheck(args) {
14326
14326
  const options = parsePlayCheckOptions(args);
14327
14327
  if (!isFileTarget(options.target)) {
14328
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
14328
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
14329
14329
  try {
14330
14330
  await assertCanonicalNamedPlayReference(client, options.target, {
14331
14331
  command: "check"
@@ -14354,7 +14354,7 @@ async function handlePlayCheck(args) {
14354
14354
  },
14355
14355
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
14356
14356
  };
14357
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, result, {
14357
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0, result, {
14358
14358
  json: options.jsonOutput,
14359
14359
  fields: options.jsonFields,
14360
14360
  text: renderPlayCheckOutput(result) + "\n"
@@ -14364,7 +14364,7 @@ async function handlePlayCheck(args) {
14364
14364
  const resolved = _path.resolve.call(void 0, options.target);
14365
14365
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
14366
14366
  if (options.jsonOutput) {
14367
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
14367
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
14368
14368
  {
14369
14369
  kind: "play_check",
14370
14370
  checked: "named_contract",
@@ -14406,7 +14406,7 @@ async function handlePlayCheck(args) {
14406
14406
  detailsCommand: `deepline plays check ${shellQuote3(options.target)} --full --json`,
14407
14407
  publishCommand: _optionalChain([primary, 'optionalAccess', _475 => _475.result, 'access', _476 => _476.artifactHash]) ? `deepline plays publish ${shellQuote3(options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
14408
14408
  });
14409
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, output, {
14409
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0, output, {
14410
14410
  json: options.jsonOutput,
14411
14411
  fields: options.jsonFields,
14412
14412
  text: renderPlayCheckOutput(output) + "\n"
@@ -14468,7 +14468,7 @@ async function checkOneExportedPlay(input) {
14468
14468
  result: { valid: false, errors: descriptionErrors }
14469
14469
  };
14470
14470
  }
14471
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
14471
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
14472
14472
  const integrationMode = resolveEvalIntegrationMode();
14473
14473
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
14474
14474
  playName: node.playName,
@@ -14505,7 +14505,7 @@ async function handleFileBackedRun(options, hooks) {
14505
14505
  if (options.target.kind !== "file") {
14506
14506
  throw new Error("Expected a file-backed play run target.");
14507
14507
  }
14508
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)(playRunClientOptions(options));
14508
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)(playRunClientOptions(options));
14509
14509
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
14510
14510
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
14511
14511
  progress.phase("compiling play");
@@ -14719,7 +14719,7 @@ async function handleNamedRun(options, hooks) {
14719
14719
  if (options.target.kind !== "name") {
14720
14720
  throw new Error("Expected a named play run target.");
14721
14721
  }
14722
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)(playRunClientOptions(options));
14722
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)(playRunClientOptions(options));
14723
14723
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
14724
14724
  const playName = options.target.name;
14725
14725
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -15116,10 +15116,10 @@ function renderRunOverviewText(overview, extras = {}) {
15116
15116
  );
15117
15117
  return `${lines.join("\n")}
15118
15118
 
15119
- ${_chunkODEWOXWWjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
15119
+ ${_chunkY42UERUYjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
15120
15120
  }
15121
15121
  async function handleRunGet(args) {
15122
- const selection = _chunkODEWOXWWjs.parseJsonFields.call(void 0,
15122
+ const selection = _chunkY42UERUYjs.parseJsonFields.call(void 0,
15123
15123
  args,
15124
15124
  args.includes("--config") ? "config" : "get"
15125
15125
  );
@@ -15132,7 +15132,7 @@ async function handleRunGet(args) {
15132
15132
  console.error(error instanceof Error ? error.message : usage2);
15133
15133
  return 1;
15134
15134
  }
15135
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
15135
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
15136
15136
  if (args.includes("--config")) {
15137
15137
  if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
15138
15138
  console.error(
@@ -15146,7 +15146,7 @@ async function handleRunGet(args) {
15146
15146
  "This server does not support recorded configuration reads."
15147
15147
  );
15148
15148
  }
15149
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15149
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
15150
15150
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
15151
15151
  { json: true, fields: selection.fields }
15152
15152
  );
@@ -15154,7 +15154,7 @@ async function handleRunGet(args) {
15154
15154
  }
15155
15155
  if (args.includes("--input")) {
15156
15156
  const input = await client.getRunInput(runId);
15157
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, input, { json: true });
15157
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0, input, { json: true });
15158
15158
  return 0;
15159
15159
  }
15160
15160
  const full = args.includes("--full");
@@ -15167,8 +15167,8 @@ async function handleRunGet(args) {
15167
15167
  full: true,
15168
15168
  failedLogs: args.includes("--log-failed")
15169
15169
  }) : status;
15170
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
15171
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15170
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
15171
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
15172
15172
  full ? legacyStatus : compactPlayStatus(legacyStatus),
15173
15173
  { json: true, fields: selection.fields }
15174
15174
  );
@@ -15184,8 +15184,8 @@ async function handleRunGet(args) {
15184
15184
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
15185
15185
  ]);
15186
15186
  const hitLines = formatRunHitsLines(hits);
15187
- const json = _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
15188
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15187
+ const json = _chunkY42UERUYjs.argsWantJson.call(void 0, args);
15188
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
15189
15189
  {
15190
15190
  ...overview,
15191
15191
  credits,
@@ -15288,9 +15288,9 @@ async function handleRunLifecycleStatus(args) {
15288
15288
  console.error(error instanceof Error ? error.message : usage2);
15289
15289
  return 1;
15290
15290
  }
15291
- const status = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().runs.status(runId);
15292
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
15293
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, status, { json: true });
15291
+ const status = await new (0, _chunkVYK23G2Cjs.DeeplineClient)().runs.status(runId);
15292
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
15293
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0, status, { json: true });
15294
15294
  return 0;
15295
15295
  }
15296
15296
  if (!status.available) {
@@ -15364,12 +15364,12 @@ async function handleRunsRerun(args) {
15364
15364
  index += 1;
15365
15365
  }
15366
15366
  }
15367
- const result = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().runs.rerun(runId, {
15367
+ const result = await new (0, _chunkVYK23G2Cjs.DeeplineClient)().runs.rerun(runId, {
15368
15368
  ...idempotencyKey ? { idempotencyKey } : {},
15369
15369
  ...inputOverrides ? { inputOverrides } : {}
15370
15370
  });
15371
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
15372
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, result, { json: true });
15371
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
15372
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0, result, { json: true });
15373
15373
  } else {
15374
15374
  console.log(
15375
15375
  result.deduplicated === true ? `
@@ -15385,8 +15385,9 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
15385
15385
  return 0;
15386
15386
  }
15387
15387
  async function handleRunsList(args) {
15388
- const usage2 = "Usage: deepline runs list [--play <play-name>] [--status <status>] [--limit <count>] [--offset <count>] [--json]";
15388
+ const usage2 = "Usage: deepline runs list [--play <play-name>] [--node <mermaid-node-id>] [--status <status>] [--limit <count>] [--offset <count>] [--json]";
15389
15389
  let playName = null;
15390
+ let nodeId = null;
15390
15391
  let statusFilter = null;
15391
15392
  let limit;
15392
15393
  let offset;
@@ -15396,6 +15397,10 @@ async function handleRunsList(args) {
15396
15397
  playName = args[++index].trim();
15397
15398
  continue;
15398
15399
  }
15400
+ if (arg === "--node" && args[index + 1]) {
15401
+ nodeId = args[++index].trim();
15402
+ continue;
15403
+ }
15399
15404
  if (arg === "--status" && args[index + 1]) {
15400
15405
  statusFilter = args[++index].trim().toLowerCase();
15401
15406
  continue;
@@ -15434,22 +15439,27 @@ ${usage2}
15434
15439
  Discover Plays: ${next.discover}
15435
15440
  Active runs: ${next.running}`
15436
15441
  );
15437
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
15438
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15442
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
15443
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
15439
15444
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
15440
15445
  { json: true }
15441
15446
  );
15442
15447
  }
15443
15448
  return 1;
15444
15449
  }
15450
+ if (nodeId && !playName) {
15451
+ console.error("--node requires --play.");
15452
+ return 1;
15453
+ }
15445
15454
  if ((_nullishCoalesce(offset, () => ( 0))) > 0 && !playName) {
15446
15455
  console.error("--offset requires --play.");
15447
15456
  return 1;
15448
15457
  }
15449
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
15458
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
15450
15459
  const page = await client.runs.listPage({
15451
15460
  ...playName ? { play: playName } : {},
15452
15461
  ...statusFilter ? { status: statusFilter } : {},
15462
+ ...nodeId ? { node: nodeId } : {},
15453
15463
  ...limit !== void 0 ? { limit } : {},
15454
15464
  ...offset !== void 0 ? { offset } : {}
15455
15465
  });
@@ -15474,7 +15484,8 @@ Active runs: ${next.running}`
15474
15484
  executionTime: run.executionTime,
15475
15485
  billingTotalCredits: run.billingTotalCredits,
15476
15486
  billingMaxCreditsPerRun: run.billingMaxCreditsPerRun,
15477
- playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access', _512 => _512.memo, 'optionalAccess', _513 => _513.playName]))), () => ( playName)), () => ( null))
15487
+ playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access', _512 => _512.memo, 'optionalAccess', _513 => _513.playName]))), () => ( playName)), () => ( null)),
15488
+ ...nodeId ? { nodeObservation: _nullishCoalesce(run.nodeObservation, () => ( null)) } : {}
15478
15489
  }));
15479
15490
  const lines = runs.length === 0 ? [
15480
15491
  playName ? `No runs found for ${playName}.` : `No runs found for status ${statusFilter}.`
@@ -15489,6 +15500,19 @@ Active runs: ${next.running}`
15489
15500
  ];
15490
15501
  if (run.parentRunId) lines2.push(` parent: ${run.parentRunId}`);
15491
15502
  if (run.rootRunId) lines2.push(` root: ${run.rootRunId}`);
15503
+ if (nodeId && run.nodeObservation) {
15504
+ lines2.push(
15505
+ ` node ${nodeId} (${run.nodeObservation.status}, attempt ${run.nodeObservation.attempt})`
15506
+ );
15507
+ lines2.push(
15508
+ ` input: ${JSON.stringify(_nullishCoalesce(run.nodeObservation.inputs, () => ( {})))}`
15509
+ );
15510
+ lines2.push(
15511
+ ` output: ${JSON.stringify(_nullishCoalesce(run.nodeObservation.outputs, () => ( {})))}`
15512
+ );
15513
+ } else if (nodeId) {
15514
+ lines2.push(` node ${nodeId}: not recorded`);
15515
+ }
15492
15516
  return lines2.join("\n");
15493
15517
  });
15494
15518
  const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
@@ -15499,7 +15523,7 @@ Active runs: ${next.running}`
15499
15523
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
15500
15524
  );
15501
15525
  }
15502
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15526
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
15503
15527
  {
15504
15528
  runs,
15505
15529
  count: runs.length,
@@ -15513,7 +15537,7 @@ Active runs: ${next.running}`
15513
15537
  },
15514
15538
  render: { sections: [{ title: "runs", lines }] }
15515
15539
  },
15516
- { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args) }
15540
+ { json: _chunkY42UERUYjs.argsWantJson.call(void 0, args) }
15517
15541
  );
15518
15542
  return 0;
15519
15543
  }
@@ -15543,7 +15567,7 @@ async function handleRunTail(args) {
15543
15567
  console.error("--log-level requires one of: debug, info, warn, error.");
15544
15568
  return 1;
15545
15569
  }
15546
- const parsed = _chunkMLEJ2FYHjs.parseLogLevel.call(void 0, value);
15570
+ const parsed = _chunkVYK23G2Cjs.parseLogLevel.call(void 0, value);
15547
15571
  if (!parsed) {
15548
15572
  console.error(
15549
15573
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15581,9 +15605,9 @@ async function handleRunTail(args) {
15581
15605
  );
15582
15606
  return 1;
15583
15607
  }
15584
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
15608
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
15585
15609
  const jsonLines = args.includes("--jsonl");
15586
- const jsonOutput = !jsonLines && _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
15610
+ const jsonOutput = !jsonLines && _chunkY42UERUYjs.argsWantJson.call(void 0, args);
15587
15611
  const compact = args.includes("--compact");
15588
15612
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
15589
15613
  const compactState = {
@@ -15664,7 +15688,7 @@ async function handleRunLogs(args) {
15664
15688
  ]);
15665
15689
  const cursorIndex = args.indexOf("--cursor");
15666
15690
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
15667
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkMLEJ2FYHjs.isRunLogsCursor.call(void 0, cursorValue));
15691
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkVYK23G2Cjs.isRunLogsCursor.call(void 0, cursorValue));
15668
15692
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
15669
15693
  return handleRunEventSearch(args);
15670
15694
  }
@@ -15698,7 +15722,7 @@ async function handleRunLogs(args) {
15698
15722
  console.error("--log-level requires one of: debug, info, warn, error.");
15699
15723
  return 1;
15700
15724
  }
15701
- const parsed = _chunkMLEJ2FYHjs.parseLogLevel.call(void 0, value);
15725
+ const parsed = _chunkVYK23G2Cjs.parseLogLevel.call(void 0, value);
15702
15726
  if (!parsed) {
15703
15727
  console.error(
15704
15728
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15745,12 +15769,12 @@ async function handleRunLogs(args) {
15745
15769
  );
15746
15770
  return 1;
15747
15771
  }
15748
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
15772
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
15749
15773
  if (outPath) {
15750
15774
  const result2 = await client.runs.logs(runId, { all: true });
15751
- const logs = result2.entries.filter((line) => _chunkMLEJ2FYHjs.logLevelReaches.call(void 0, _chunkMLEJ2FYHjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkMLEJ2FYHjs.classifyLogLine.call(void 0, line).line);
15775
+ const logs = result2.entries.filter((line) => _chunkVYK23G2Cjs.logLevelReaches.call(void 0, _chunkVYK23G2Cjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkVYK23G2Cjs.classifyLogLine.call(void 0, line).line);
15752
15776
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
15753
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15777
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
15754
15778
  {
15755
15779
  runId: result2.runId,
15756
15780
  log_path: outPath,
@@ -15773,7 +15797,7 @@ async function handleRunLogs(args) {
15773
15797
  ]
15774
15798
  }
15775
15799
  },
15776
- { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args) }
15800
+ { json: _chunkY42UERUYjs.argsWantJson.call(void 0, args) }
15777
15801
  );
15778
15802
  return 0;
15779
15803
  }
@@ -15804,7 +15828,7 @@ async function handleRunLogs(args) {
15804
15828
  }
15805
15829
  };
15806
15830
  const text = buildRunLogsText(filteredResult);
15807
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
15831
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
15808
15832
  {
15809
15833
  runId: result.runId,
15810
15834
  totalCount: result.totalCount,
@@ -15828,7 +15852,7 @@ async function handleRunLogs(args) {
15828
15852
  render: { sections: [{ title: "run logs", lines: entries }] }
15829
15853
  },
15830
15854
  {
15831
- json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args),
15855
+ json: _chunkY42UERUYjs.argsWantJson.call(void 0, args),
15832
15856
  text
15833
15857
  }
15834
15858
  );
@@ -15852,7 +15876,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15852
15876
  );
15853
15877
  }
15854
15878
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
15855
- (entry) => _chunkMLEJ2FYHjs.logLevelReaches.call(void 0, _chunkMLEJ2FYHjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
15879
+ (entry) => _chunkVYK23G2Cjs.logLevelReaches.call(void 0, _chunkVYK23G2Cjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
15856
15880
  );
15857
15881
  const selected = matching.slice(-limit);
15858
15882
  const olderMatchesExist = matching.length > selected.length;
@@ -15862,7 +15886,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15862
15886
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _518 => _518.at, 'call', _519 => _519(-1), 'optionalAccess', _520 => _520.seq]), () => ( null)),
15863
15887
  truncated: result.truncated || olderMatchesExist,
15864
15888
  hasMore: olderMatchesExist,
15865
- nextCursor: olderMatchesExist ? _chunkMLEJ2FYHjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15889
+ nextCursor: olderMatchesExist ? _chunkVYK23G2Cjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15866
15890
  };
15867
15891
  }
15868
15892
  async function handleRunEventSearch(args) {
@@ -15929,7 +15953,7 @@ ${usage2}`);
15929
15953
  namespace,
15930
15954
  ...backend ? { backend } : {}
15931
15955
  } : void 0;
15932
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
15956
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
15933
15957
  const result = await client.runs.searchEvents({
15934
15958
  ...runId ? { runId } : {},
15935
15959
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -16002,7 +16026,7 @@ ${renderedDetails}` : ""}`;
16002
16026
  String(limit),
16003
16027
  "--json"
16004
16028
  ].join(" ") : null;
16005
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16029
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
16006
16030
  {
16007
16031
  events,
16008
16032
  nextCursor: result.nextCursor,
@@ -16013,14 +16037,14 @@ ${renderedDetails}` : ""}`;
16013
16037
  render: { sections: [{ title: "runtime events", lines }] }
16014
16038
  },
16015
16039
  {
16016
- json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args),
16040
+ json: _chunkY42UERUYjs.argsWantJson.call(void 0, args),
16017
16041
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
16018
16042
  }
16019
16043
  );
16020
16044
  return 0;
16021
16045
  }
16022
16046
  function buildRunLogsText(result) {
16023
- const lines = result.entries.map((line) => _chunkMLEJ2FYHjs.classifyLogLine.call(void 0, line).line);
16047
+ const lines = result.entries.map((line) => _chunkVYK23G2Cjs.classifyLogLine.call(void 0, line).line);
16024
16048
  if (result.warning) {
16025
16049
  if (lines.length > 0) lines.push("");
16026
16050
  lines.push(`warning: ${result.warning}`);
@@ -16054,7 +16078,7 @@ async function handleRunStop(args) {
16054
16078
  reason = args[++index];
16055
16079
  }
16056
16080
  }
16057
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16081
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
16058
16082
  const result = await client.runs.stop(runId, { reason });
16059
16083
  const state = resolveRunStopState(result);
16060
16084
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -16069,7 +16093,7 @@ async function handleRunStop(args) {
16069
16093
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
16070
16094
  `inspect: deepline runs get ${runId} --full --json`
16071
16095
  ];
16072
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16096
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
16073
16097
  {
16074
16098
  ...cancelling,
16075
16099
  state,
@@ -16084,7 +16108,7 @@ async function handleRunStop(args) {
16084
16108
  ]
16085
16109
  }
16086
16110
  },
16087
- { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args) }
16111
+ { json: _chunkY42UERUYjs.argsWantJson.call(void 0, args) }
16088
16112
  );
16089
16113
  return 0;
16090
16114
  }
@@ -16101,7 +16125,7 @@ async function handleRunStop(args) {
16101
16125
  ];
16102
16126
  process.stderr.write(`${lines2.join("\n")}
16103
16127
  `);
16104
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16128
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
16105
16129
  {
16106
16130
  ...result,
16107
16131
  render: {
@@ -16116,7 +16140,7 @@ async function handleRunStop(args) {
16116
16140
  ]
16117
16141
  }
16118
16142
  },
16119
- { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args) }
16143
+ { json: _chunkY42UERUYjs.argsWantJson.call(void 0, args) }
16120
16144
  );
16121
16145
  return 1;
16122
16146
  }
@@ -16127,12 +16151,12 @@ async function handleRunStop(args) {
16127
16151
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
16128
16152
  ] : []
16129
16153
  ];
16130
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16154
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
16131
16155
  {
16132
16156
  ...result,
16133
16157
  render: { sections: [{ title: "run stop", lines }] }
16134
16158
  },
16135
- { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args) }
16159
+ { json: _chunkY42UERUYjs.argsWantJson.call(void 0, args) }
16136
16160
  );
16137
16161
  return 0;
16138
16162
  }
@@ -16182,18 +16206,18 @@ async function handleRunStopAll(args) {
16182
16206
  reason = args[++index];
16183
16207
  }
16184
16208
  }
16185
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16209
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
16186
16210
  if (dryRun) {
16187
16211
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
16188
16212
  const lines2 = buildStopAllDryRunTextLines(result2);
16189
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16213
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
16190
16214
  {
16191
16215
  ...result2,
16192
16216
  render: {
16193
16217
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
16194
16218
  }
16195
16219
  },
16196
- { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
16220
+ { json: _chunkY42UERUYjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
16197
16221
  ` }
16198
16222
  );
16199
16223
  return 0;
@@ -16206,17 +16230,17 @@ async function handleRunStopAll(args) {
16206
16230
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
16207
16231
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
16208
16232
  ];
16209
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16233
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
16210
16234
  {
16211
16235
  ...result,
16212
16236
  render: { sections: [{ title: "workspace stop-all", lines }] }
16213
16237
  },
16214
- { json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args) }
16238
+ { json: _chunkY42UERUYjs.argsWantJson.call(void 0, args) }
16215
16239
  );
16216
16240
  return result.failed > 0 || result.partial ? 1 : 0;
16217
16241
  }
16218
16242
  async function handleRunExport(args) {
16219
- const selection = _chunkODEWOXWWjs.parseJsonFields.call(void 0, args, "export");
16243
+ const selection = _chunkY42UERUYjs.parseJsonFields.call(void 0, args, "export");
16220
16244
  args = selection.args;
16221
16245
  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]";
16222
16246
  let runId;
@@ -16275,16 +16299,16 @@ async function handleRunExport(args) {
16275
16299
  "INVALID_ARGUMENT"
16276
16300
  );
16277
16301
  }
16278
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16302
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
16279
16303
  let status = await client.getPlayStatus(runId, { full: true });
16280
16304
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
16281
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkODEWOXWWjs.argsWantJson.call(void 0, args));
16305
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkY42UERUYjs.argsWantJson.call(void 0, args));
16282
16306
  try {
16283
16307
  await waitForPlayCompletionByWatch({
16284
16308
  client,
16285
16309
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
16286
16310
  workflowId: runId,
16287
- jsonOutput: _chunkODEWOXWWjs.argsWantJson.call(void 0, args),
16311
+ jsonOutput: _chunkY42UERUYjs.argsWantJson.call(void 0, args),
16288
16312
  emitLogs: false,
16289
16313
  waitTimeoutMs,
16290
16314
  startedAt: Date.now(),
@@ -16383,8 +16407,8 @@ async function handleRunExport(args) {
16383
16407
  "utf-8"
16384
16408
  );
16385
16409
  }
16386
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0, payload, {
16387
- json: _chunkODEWOXWWjs.argsWantJson.call(void 0, args),
16410
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0, payload, {
16411
+ json: _chunkY42UERUYjs.argsWantJson.call(void 0, args),
16388
16412
  fields: selection.fields,
16389
16413
  text: `${lines.join("\n")}
16390
16414
  `
@@ -16405,10 +16429,10 @@ async function handlePlayGet(args) {
16405
16429
  );
16406
16430
  return 2;
16407
16431
  }
16408
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16432
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
16409
16433
  const explicitJson = args.includes("--json");
16410
16434
  const sourceOutput = args.includes("--source");
16411
- const jsonOutput = sourceOutput ? explicitJson : _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
16435
+ const jsonOutput = sourceOutput ? explicitJson : _chunkY42UERUYjs.argsWantJson.call(void 0, args);
16412
16436
  const requestedRevisionFlags = [
16413
16437
  args.includes("--working"),
16414
16438
  args.includes("--live"),
@@ -16468,7 +16492,7 @@ async function handlePlayGet(args) {
16468
16492
  }
16469
16493
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
16470
16494
  if (jsonOutput) {
16471
- _chunkODEWOXWWjs.printCompactJson.call(void 0, {
16495
+ _chunkY42UERUYjs.printCompactJson.call(void 0, {
16472
16496
  ...detail,
16473
16497
  ...materializedFile ? {
16474
16498
  message: loadedMessage,
@@ -16555,8 +16579,8 @@ async function handlePlayVersions(args) {
16555
16579
  console.error("Usage: deepline plays versions --name <name> [--json]");
16556
16580
  return 1;
16557
16581
  }
16558
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16559
- const jsonOutput = _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
16582
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
16583
+ const jsonOutput = _chunkY42UERUYjs.argsWantJson.call(void 0, args);
16560
16584
  await assertCanonicalNamedPlayReference(client, playName, {
16561
16585
  command: "versions"
16562
16586
  });
@@ -16564,7 +16588,7 @@ async function handlePlayVersions(args) {
16564
16588
  parseReferencedPlayTarget2(playName).playName
16565
16589
  );
16566
16590
  if (jsonOutput) {
16567
- _chunkODEWOXWWjs.printCompactJson.call(void 0, { versions });
16591
+ _chunkY42UERUYjs.printCompactJson.call(void 0, { versions });
16568
16592
  return 0;
16569
16593
  }
16570
16594
  if (versions.length === 0) {
@@ -16596,9 +16620,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
16596
16620
  "signals"
16597
16621
  ];
16598
16622
  async function handlePlayList(args) {
16599
- const jsonOutput = _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
16623
+ const jsonOutput = _chunkY42UERUYjs.argsWantJson.call(void 0, args);
16600
16624
  const showCost = args.includes("--show-cost");
16601
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16625
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
16602
16626
  const categoriesIndex = args.indexOf("--categories");
16603
16627
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _556 => _556[categoriesIndex + 1], 'optionalAccess', _557 => _557.trim, 'call', _558 => _558()]) : void 0;
16604
16628
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -16695,7 +16719,7 @@ async function handlePlayList(args) {
16695
16719
  lines.push("List truncated \u2014 more plays are available.");
16696
16720
  lines.push(`Next page: ${nextPage}`);
16697
16721
  }
16698
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
16722
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
16699
16723
  {
16700
16724
  plays,
16701
16725
  count: plays.length,
@@ -16713,7 +16737,7 @@ async function handlePlayList(args) {
16713
16737
  }
16714
16738
  async function handlePlayPin(args, pinned) {
16715
16739
  const target = _optionalChain([args, 'access', _565 => _565.find, 'call', _566 => _566((arg) => !arg.startsWith("-")), 'optionalAccess', _567 => _567.trim, 'call', _568 => _568()]);
16716
- const jsonOutput = _chunkODEWOXWWjs.argsWantJson.call(void 0, args);
16740
+ const jsonOutput = _chunkY42UERUYjs.argsWantJson.call(void 0, args);
16717
16741
  const dryRun = args.includes("--dry-run");
16718
16742
  if (!target) {
16719
16743
  console.error(
@@ -16731,11 +16755,11 @@ async function handlePlayPin(args, pinned) {
16731
16755
  const name = parsedTarget.playName;
16732
16756
  const plan = { name, pinned, dryRun };
16733
16757
  if (dryRun) {
16734
- _chunkODEWOXWWjs.printCompactJson.call(void 0, plan);
16758
+ _chunkY42UERUYjs.printCompactJson.call(void 0, plan);
16735
16759
  return 0;
16736
16760
  }
16737
- const result = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().setPlayPinned(name, pinned);
16738
- if (jsonOutput) _chunkODEWOXWWjs.printCompactJson.call(void 0, result);
16761
+ const result = await new (0, _chunkVYK23G2Cjs.DeeplineClient)().setPlayPinned(name, pinned);
16762
+ if (jsonOutput) _chunkY42UERUYjs.printCompactJson.call(void 0, result);
16739
16763
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
16740
16764
  return 0;
16741
16765
  }
@@ -16751,7 +16775,7 @@ function csvColumnLines(csvInput) {
16751
16775
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
16752
16776
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
16753
16777
  }),
16754
- _chunkMLEJ2FYHjs.CSV_HEADER_MATCHING_NOTE
16778
+ _chunkVYK23G2Cjs.CSV_HEADER_MATCHING_NOTE
16755
16779
  ];
16756
16780
  }
16757
16781
  function describedPlay(play) {
@@ -16895,12 +16919,12 @@ async function handlePlayGrep(args) {
16895
16919
  console.error("Usage: deepline plays grep <query> [--json]");
16896
16920
  return 1;
16897
16921
  }
16898
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16922
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
16899
16923
  const results = (await client.listPlays({ grep: query })).map(
16900
16924
  summarizePlayGrepResult
16901
16925
  );
16902
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
16903
- _chunkODEWOXWWjs.printCompactJson.call(void 0, {
16926
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
16927
+ _chunkY42UERUYjs.printCompactJson.call(void 0, {
16904
16928
  plays: results,
16905
16929
  count: results.length,
16906
16930
  query,
@@ -16923,7 +16947,7 @@ async function handlePlayGrep(args) {
16923
16947
  return 0;
16924
16948
  }
16925
16949
  async function handlePlayDescribe(args) {
16926
- const selection = _chunkODEWOXWWjs.parseJsonFields.call(void 0, args, "describe");
16950
+ const selection = _chunkY42UERUYjs.parseJsonFields.call(void 0, args, "describe");
16927
16951
  args = selection.args;
16928
16952
  const playName = args[0];
16929
16953
  if (!playName) {
@@ -16957,8 +16981,8 @@ async function handlePlayDescribe(args) {
16957
16981
  `deepline plays check ${playName}`,
16958
16982
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
16959
16983
  ];
16960
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
16961
- _chunkODEWOXWWjs.printCompactJson.call(void 0, {
16984
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
16985
+ _chunkY42UERUYjs.printCompactJson.call(void 0, {
16962
16986
  ok: false,
16963
16987
  error: { message },
16964
16988
  next
@@ -16972,7 +16996,7 @@ async function handlePlayDescribe(args) {
16972
16996
  }
16973
16997
  return 2;
16974
16998
  }
16975
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
16999
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
16976
17000
  await assertCanonicalNamedPlayReference(client, playName, {
16977
17001
  command: "describe"
16978
17002
  });
@@ -16982,9 +17006,9 @@ async function handlePlayDescribe(args) {
16982
17006
  compact: args.includes("--compact")
16983
17007
  }
16984
17008
  );
16985
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
16986
- if (selection.fields) _chunkODEWOXWWjs.printJson.call(void 0, play, selection.fields);
16987
- else _chunkODEWOXWWjs.printCompactJson.call(void 0, play);
17009
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
17010
+ if (selection.fields) _chunkY42UERUYjs.printJson.call(void 0, play, selection.fields);
17011
+ else _chunkY42UERUYjs.printCompactJson.call(void 0, play);
16988
17012
  return 0;
16989
17013
  }
16990
17014
  printPlayDescription(play);
@@ -17028,7 +17052,7 @@ async function handlePlaySave(args) {
17028
17052
  next: `deepline plays check ${shellQuote3(options.target)}`
17029
17053
  };
17030
17054
  if (options.jsonOutput) {
17031
- _chunkODEWOXWWjs.printCompactJson.call(void 0, result);
17055
+ _chunkY42UERUYjs.printCompactJson.call(void 0, result);
17032
17056
  } else {
17033
17057
  console.error(result.message);
17034
17058
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -17050,7 +17074,7 @@ async function handlePlaySave(args) {
17050
17074
  };
17051
17075
  if (options.dryRun) {
17052
17076
  if (options.jsonOutput) {
17053
- _chunkODEWOXWWjs.printCompactJson.call(void 0, dryRun);
17077
+ _chunkY42UERUYjs.printCompactJson.call(void 0, dryRun);
17054
17078
  } else {
17055
17079
  console.log(`Dry run: ${playName}`);
17056
17080
  console.log(` source: ${dryRun.sourceHash}`);
@@ -17059,7 +17083,7 @@ async function handlePlaySave(args) {
17059
17083
  }
17060
17084
  return 0;
17061
17085
  }
17062
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
17086
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
17063
17087
  try {
17064
17088
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
17065
17089
  "cli.play_save_compile_manifests",
@@ -17095,7 +17119,7 @@ async function handlePlaySave(args) {
17095
17119
  }
17096
17120
  };
17097
17121
  if (options.jsonOutput) {
17098
- _chunkODEWOXWWjs.printCompactJson.call(void 0, result);
17122
+ _chunkY42UERUYjs.printCompactJson.call(void 0, result);
17099
17123
  } else {
17100
17124
  console.log(
17101
17125
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -17121,7 +17145,7 @@ async function handlePlayPublish(args) {
17121
17145
  }
17122
17146
  const { target: playName, useLatest } = options;
17123
17147
  let revisionId = options.revisionId;
17124
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
17148
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
17125
17149
  if (isFileTarget(playName)) {
17126
17150
  if (revisionId || useLatest) {
17127
17151
  console.error(
@@ -17153,7 +17177,7 @@ async function handlePlayPublish(args) {
17153
17177
  next: `deepline plays check ${shellQuote3(playName)}`
17154
17178
  };
17155
17179
  if (options.jsonOutput) {
17156
- _chunkODEWOXWWjs.printCompactJson.call(void 0, result3);
17180
+ _chunkY42UERUYjs.printCompactJson.call(void 0, result3);
17157
17181
  } else {
17158
17182
  console.error(result3.message);
17159
17183
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -17176,7 +17200,7 @@ async function handlePlayPublish(args) {
17176
17200
  };
17177
17201
  if (options.dryRun) {
17178
17202
  if (options.jsonOutput) {
17179
- _chunkODEWOXWWjs.printCompactJson.call(void 0, dryRun);
17203
+ _chunkY42UERUYjs.printCompactJson.call(void 0, dryRun);
17180
17204
  } else {
17181
17205
  console.log(`Dry run: ${rootPlayName}`);
17182
17206
  console.log(` source: ${dryRun.sourceHash}`);
@@ -17244,7 +17268,7 @@ async function handlePlayPublish(args) {
17244
17268
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
17245
17269
  };
17246
17270
  if (options.jsonOutput) {
17247
- _chunkODEWOXWWjs.printCompactJson.call(void 0, result2);
17271
+ _chunkY42UERUYjs.printCompactJson.call(void 0, result2);
17248
17272
  } else {
17249
17273
  printPublishReceipt({
17250
17274
  name: rootPlayName,
@@ -17275,7 +17299,7 @@ async function handlePlayPublish(args) {
17275
17299
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
17276
17300
  latest: useLatest
17277
17301
  };
17278
- _chunkODEWOXWWjs.printCompactJson.call(void 0, result2);
17302
+ _chunkY42UERUYjs.printCompactJson.call(void 0, result2);
17279
17303
  return 0;
17280
17304
  }
17281
17305
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -17299,7 +17323,7 @@ async function handlePlayPublish(args) {
17299
17323
  revisionId ? { revisionId } : {}
17300
17324
  );
17301
17325
  if (options.jsonOutput) {
17302
- _chunkODEWOXWWjs.printCompactJson.call(void 0, result);
17326
+ _chunkY42UERUYjs.printCompactJson.call(void 0, result);
17303
17327
  } else {
17304
17328
  printPublishReceipt({
17305
17329
  name: result.name,
@@ -17339,7 +17363,7 @@ async function handlePlayDelete(args) {
17339
17363
  );
17340
17364
  return 2;
17341
17365
  }
17342
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
17366
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
17343
17367
  let detail;
17344
17368
  try {
17345
17369
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -17363,8 +17387,8 @@ async function handlePlayDelete(args) {
17363
17387
  name: resolvedName,
17364
17388
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
17365
17389
  };
17366
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
17367
- _chunkODEWOXWWjs.printCompactJson.call(void 0, result2);
17390
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
17391
+ _chunkY42UERUYjs.printCompactJson.call(void 0, result2);
17368
17392
  } else {
17369
17393
  process.stdout.write(
17370
17394
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -17374,8 +17398,8 @@ async function handlePlayDelete(args) {
17374
17398
  return 0;
17375
17399
  }
17376
17400
  const result = await client.deletePlay(resolvedName);
17377
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
17378
- _chunkODEWOXWWjs.printCompactJson.call(void 0, result);
17401
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
17402
+ _chunkY42UERUYjs.printCompactJson.call(void 0, result);
17379
17403
  return result.archived || result.alreadyArchived ? 0 : 4;
17380
17404
  }
17381
17405
  if (result.alreadyArchived) {
@@ -17414,13 +17438,13 @@ async function handlePlayRestore(args) {
17414
17438
  );
17415
17439
  return 2;
17416
17440
  }
17417
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
17441
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
17418
17442
  try {
17419
17443
  const result = await client.restorePlay(
17420
17444
  parseReferencedPlayTarget2(playName).playName
17421
17445
  );
17422
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
17423
- _chunkODEWOXWWjs.printCompactJson.call(void 0, result);
17446
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
17447
+ _chunkY42UERUYjs.printCompactJson.call(void 0, result);
17424
17448
  return result.restored || result.alreadyActive ? 0 : 4;
17425
17449
  }
17426
17450
  if (result.alreadyActive) {
@@ -17525,7 +17549,7 @@ Examples:
17525
17549
  ).action(async (target, options) => {
17526
17550
  process.exitCode = await handlePlayCheck([
17527
17551
  target,
17528
- ..._chunkODEWOXWWjs.jsonFieldArgs.call(void 0, options.json),
17552
+ ..._chunkY42UERUYjs.jsonFieldArgs.call(void 0, options.json),
17529
17553
  ...options.full ? ["--full"] : []
17530
17554
  ]);
17531
17555
  });
@@ -17712,7 +17736,7 @@ JSON field selection:
17712
17736
  ...options.maxConcurrentRows ? ["--max-concurrent-rows", options.maxConcurrentRows] : [],
17713
17737
  ...options.open ? ["--open"] : [],
17714
17738
  ...options.debugMapLatency ? ["--debug-map-latency"] : [],
17715
- ..._chunkODEWOXWWjs.jsonFieldArgs.call(void 0, options.json),
17739
+ ..._chunkY42UERUYjs.jsonFieldArgs.call(void 0, options.json),
17716
17740
  ...options.full ? ["--full"] : [],
17717
17741
  ...passthroughArgs
17718
17742
  ]);
@@ -17767,9 +17791,9 @@ Examples:
17767
17791
  const limit = Number(options.historyLimit);
17768
17792
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
17769
17793
  throw new Error("--history-limit must be an integer from 1 to 30.");
17770
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
17794
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
17771
17795
  if (options.binding) {
17772
- _chunkODEWOXWWjs.printCompactJson.call(void 0,
17796
+ _chunkY42UERUYjs.printCompactJson.call(void 0,
17773
17797
  await client.getPlayTriggerHistory(options.binding, { limit })
17774
17798
  );
17775
17799
  return;
@@ -17777,7 +17801,7 @@ Examples:
17777
17801
  const result = await client.listPlayTriggerInventory({
17778
17802
  cursor: options.cursor
17779
17803
  });
17780
- _chunkODEWOXWWjs.printCompactJson.call(void 0, {
17804
+ _chunkY42UERUYjs.printCompactJson.call(void 0, {
17781
17805
  ...result,
17782
17806
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
17783
17807
  });
@@ -17824,7 +17848,7 @@ Examples:
17824
17848
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
17825
17849
  throw new Error("--group-by must be kind or trigger_source.");
17826
17850
  }
17827
- const result = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().getPlaysActivity({
17851
+ const result = await new (0, _chunkVYK23G2Cjs.DeeplineClient)().getPlaysActivity({
17828
17852
  timeZone: options.timeZone,
17829
17853
  days,
17830
17854
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -17838,7 +17862,7 @@ Examples:
17838
17862
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
17839
17863
  );
17840
17864
  }
17841
- _chunkODEWOXWWjs.printCommandEnvelope.call(void 0,
17865
+ _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
17842
17866
  { ...result },
17843
17867
  {
17844
17868
  json: options.json || !process.stdout.isTTY,
@@ -17867,7 +17891,7 @@ Examples:
17867
17891
  false
17868
17892
  );
17869
17893
  });
17870
- _chunkUZTTPEG2js.registerDeprecatedSearchCommand.call(void 0,
17894
+ _chunkYL42TF53js.registerDeprecatedSearchCommand.call(void 0,
17871
17895
  play,
17872
17896
  (options) => options.all ? ["plays"] : ["prebuilts"]
17873
17897
  );
@@ -17911,7 +17935,7 @@ Examples:
17911
17935
  );
17912
17936
  _chunkXNL3SEMCjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
17913
17937
  async (target, options) => {
17914
- const ownView = () => handlePlayDescribe(_chunkODEWOXWWjs.describeArgs.call(void 0, target, options));
17938
+ const ownView = () => handlePlayDescribe(_chunkY42UERUYjs.describeArgs.call(void 0, target, options));
17915
17939
  const [flagText] = [options.json].filter(
17916
17940
  (value) => typeof value === "string"
17917
17941
  );
@@ -17922,7 +17946,7 @@ Examples:
17922
17946
  process.exitCode = await ownView();
17923
17947
  return;
17924
17948
  }
17925
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-WA6R2JSH.js")));
17949
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-VUD4AFBY.js")));
17926
17950
  process.exitCode = await describeAnything(
17927
17951
  name,
17928
17952
  {
@@ -18039,7 +18063,7 @@ Examples:
18039
18063
  deepline plays deployments <deployment-id>
18040
18064
  `
18041
18065
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
18042
- async (id, options) => id ? _chunkYVMJTXEGjs.handleDeploymentGet.call(void 0, id, options) : _chunkYVMJTXEGjs.handleDeploymentsList.call(void 0, options)
18066
+ async (id, options) => id ? _chunkFGAK6FETjs.handleDeploymentGet.call(void 0, id, options) : _chunkFGAK6FETjs.handleDeploymentsList.call(void 0, options)
18043
18067
  );
18044
18068
  addPublishHelp(
18045
18069
  play.command("publish <target>").description(
@@ -18219,7 +18243,7 @@ Examples:
18219
18243
  ).action(async (runId, options) => {
18220
18244
  process.exitCode = await handleRunGet([
18221
18245
  runId,
18222
- ..._chunkODEWOXWWjs.jsonFieldArgs.call(void 0, options.json),
18246
+ ..._chunkY42UERUYjs.jsonFieldArgs.call(void 0, options.json),
18223
18247
  ...options.full ? ["--full"] : [],
18224
18248
  ...options.input ? ["--input"] : [],
18225
18249
  ...options.config ? ["--config"] : [],
@@ -18494,7 +18518,7 @@ Examples:
18494
18518
  ...options.metadataOut ? ["--metadata-out", options.metadataOut] : [],
18495
18519
  ...options.wait ? ["--wait"] : [],
18496
18520
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
18497
- ..._chunkODEWOXWWjs.jsonFieldArgs.call(void 0, options.json)
18521
+ ..._chunkY42UERUYjs.jsonFieldArgs.call(void 0, options.json)
18498
18522
  ]);
18499
18523
  });
18500
18524
  const share = play.command("share").description(
@@ -18660,10 +18684,10 @@ async function handlePlayShareStatus(args) {
18660
18684
  return 2;
18661
18685
  }
18662
18686
  const name = parseReferencedPlayTarget2(target).playName;
18663
- const status = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().getSharePage(name);
18687
+ const status = await new (0, _chunkVYK23G2Cjs.DeeplineClient)().getSharePage(name);
18664
18688
  const outputStatus = shareStatusForOutput(status);
18665
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18666
- _chunkODEWOXWWjs.printCompactJson.call(void 0, outputStatus);
18689
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
18690
+ _chunkY42UERUYjs.printCompactJson.call(void 0, outputStatus);
18667
18691
  return 0;
18668
18692
  }
18669
18693
  if (!outputStatus.share) {
@@ -18702,7 +18726,7 @@ async function handlePlaySharePublish(args) {
18702
18726
  return 2;
18703
18727
  }
18704
18728
  const name = parseReferencedPlayTarget2(target).playName;
18705
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
18729
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
18706
18730
  let revisionId = shareFlagValue(args, "--revision-id");
18707
18731
  let resolvedVersion;
18708
18732
  if (!revisionId) {
@@ -18733,8 +18757,8 @@ async function handlePlaySharePublish(args) {
18733
18757
  );
18734
18758
  if (!hasCompleted) {
18735
18759
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
18736
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18737
- _chunkODEWOXWWjs.printCompactJson.call(void 0, {
18760
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
18761
+ _chunkY42UERUYjs.printCompactJson.call(void 0, {
18738
18762
  ok: false,
18739
18763
  code: "NO_SUCCESSFUL_RUN",
18740
18764
  message,
@@ -18758,8 +18782,8 @@ async function handlePlaySharePublish(args) {
18758
18782
  };
18759
18783
  if (args.includes("--dry-run")) {
18760
18784
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
18761
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18762
- _chunkODEWOXWWjs.printCompactJson.call(void 0, plan);
18785
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
18786
+ _chunkY42UERUYjs.printCompactJson.call(void 0, plan);
18763
18787
  } else {
18764
18788
  console.log(
18765
18789
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -18769,8 +18793,8 @@ async function handlePlaySharePublish(args) {
18769
18793
  }
18770
18794
  const status = await client.publishSharePage(name, request);
18771
18795
  const outputStatus = shareStatusForOutput(status);
18772
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18773
- _chunkODEWOXWWjs.printCompactJson.call(void 0, outputStatus);
18796
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
18797
+ _chunkY42UERUYjs.printCompactJson.call(void 0, outputStatus);
18774
18798
  return 0;
18775
18799
  }
18776
18800
  const urls = shareUrlFields(outputStatus);
@@ -18801,9 +18825,9 @@ async function handlePlayShareUpdate(args) {
18801
18825
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
18802
18826
  ...seoIndexing ? { seoIndexing } : {}
18803
18827
  };
18804
- const status = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().updateSharePage(name, request);
18805
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18806
- _chunkODEWOXWWjs.printCompactJson.call(void 0, status);
18828
+ const status = await new (0, _chunkVYK23G2Cjs.DeeplineClient)().updateSharePage(name, request);
18829
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
18830
+ _chunkY42UERUYjs.printCompactJson.call(void 0, status);
18807
18831
  return 0;
18808
18832
  }
18809
18833
  console.log(`Updated ${name} share settings.`);
@@ -18818,7 +18842,7 @@ async function handlePlayShareRegenerate(args) {
18818
18842
  return 2;
18819
18843
  }
18820
18844
  const name = parseReferencedPlayTarget2(target).playName;
18821
- const client = new (0, _chunkMLEJ2FYHjs.DeeplineClient)();
18845
+ const client = new (0, _chunkVYK23G2Cjs.DeeplineClient)();
18822
18846
  let revisionId = shareFlagValue(args, "--revision-id");
18823
18847
  const versionFlag = shareFlagValue(args, "--version");
18824
18848
  if (!revisionId && versionFlag) {
@@ -18835,8 +18859,8 @@ async function handlePlayShareRegenerate(args) {
18835
18859
  revisionId ? { revisionId } : {}
18836
18860
  );
18837
18861
  const outputStatus = shareStatusForOutput(status);
18838
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18839
- _chunkODEWOXWWjs.printCompactJson.call(void 0, outputStatus);
18862
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
18863
+ _chunkY42UERUYjs.printCompactJson.call(void 0, outputStatus);
18840
18864
  return 0;
18841
18865
  }
18842
18866
  const urls = shareUrlFields(outputStatus);
@@ -18861,9 +18885,9 @@ async function handlePlayShareUnpublish(args) {
18861
18885
  return 2;
18862
18886
  }
18863
18887
  const name = parseReferencedPlayTarget2(target).playName;
18864
- const status = await new (0, _chunkMLEJ2FYHjs.DeeplineClient)().unpublishSharePage(name);
18865
- if (_chunkODEWOXWWjs.argsWantJson.call(void 0, args)) {
18866
- _chunkODEWOXWWjs.printCompactJson.call(void 0, status);
18888
+ const status = await new (0, _chunkVYK23G2Cjs.DeeplineClient)().unpublishSharePage(name);
18889
+ if (_chunkY42UERUYjs.argsWantJson.call(void 0, args)) {
18890
+ _chunkY42UERUYjs.printCompactJson.call(void 0, status);
18867
18891
  return 0;
18868
18892
  }
18869
18893
  console.log(`Unpublished ${name}; the public page has been removed.`);