deepline 0.3.364 → 0.3.366

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 (96) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +53 -20
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +9 -2
  4. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +12 -8
  5. package/dist/cli/auth-AV5JNWDX.js +33 -0
  6. package/dist/cli/{auth-AENUBFFJ.mjs → auth-TZ75C4ZF.mjs} +4 -4
  7. package/dist/cli/{billing-7YMKPYGM.mjs → billing-EWUOK4GO.mjs} +4 -4
  8. package/dist/cli/{billing-LATMZUM4.js → billing-HVC2GZIO.js} +73 -73
  9. package/dist/cli/{chunk-SVTTXV4G.mjs → chunk-34VVYOOS.mjs} +2 -2
  10. package/dist/cli/{chunk-BEUEGHA4.js → chunk-4MW7PFKR.js} +2 -2
  11. package/dist/cli/{chunk-4S34WZXL.mjs → chunk-4TTEGFR2.mjs} +1 -1
  12. package/dist/cli/{chunk-4JEWNPBO.mjs → chunk-6IHGYDQ2.mjs} +1 -1
  13. package/dist/cli/{chunk-6RCWXWL2.js → chunk-7CM4UYZQ.js} +9 -9
  14. package/dist/cli/{chunk-4DP6SNP5.mjs → chunk-AA27IFNY.mjs} +2 -2
  15. package/dist/cli/{chunk-3WNXXXUR.mjs → chunk-ACTYDJXL.mjs} +2 -2
  16. package/dist/cli/{chunk-VPUCZSIS.mjs → chunk-B7Z67XDJ.mjs} +6 -6
  17. package/dist/cli/{chunk-RNVO2NHH.js → chunk-BLVYVSKP.js} +4 -4
  18. package/dist/cli/{chunk-TZJHPJEX.mjs → chunk-CGQYV3DP.mjs} +5 -5
  19. package/dist/cli/{chunk-XABOQZ4R.js → chunk-DLKBP5OO.js} +45 -45
  20. package/dist/cli/{chunk-6NPZL4HA.js → chunk-EHMD3F4H.js} +26 -26
  21. package/dist/cli/{chunk-WNO7IIFN.js → chunk-F3M4MBWP.js} +224 -224
  22. package/dist/cli/{chunk-SW2I3DBK.mjs → chunk-FLDG3DHC.mjs} +2 -2
  23. package/dist/cli/{chunk-6NTOQXMC.js → chunk-GY2CP5CD.js} +15 -15
  24. package/dist/cli/{chunk-3PNTOTQK.mjs → chunk-HGTB7UDS.mjs} +1 -1
  25. package/dist/cli/{chunk-PXA5K5CH.js → chunk-HN36RO6X.js} +1 -1
  26. package/dist/cli/{chunk-LIEDEDMI.mjs → chunk-HQKAEQYO.mjs} +1 -1
  27. package/dist/cli/{chunk-Y225FAT3.mjs → chunk-HWQDC632.mjs} +3 -3
  28. package/dist/cli/{chunk-6SOSQ7MJ.js → chunk-NL2SM3PJ.js} +60 -60
  29. package/dist/cli/{chunk-ZEMABHFI.mjs → chunk-POZOZVP4.mjs} +4 -4
  30. package/dist/cli/{chunk-UJCEPJQS.js → chunk-Q7EHVVXL.js} +8 -8
  31. package/dist/cli/{chunk-GHV63LHK.mjs → chunk-QGOX4BEC.mjs} +1 -1
  32. package/dist/cli/{chunk-PZVTEGO3.js → chunk-R2KRYCMG.js} +8 -8
  33. package/dist/cli/{chunk-SR5XJPYZ.js → chunk-WQU6JKI7.js} +6 -6
  34. package/dist/cli/{chunk-EJ2JJS4B.js → chunk-ZMPLBWCO.js} +50 -50
  35. package/dist/cli/{client-5C7EWE2I.mjs → client-XGLW3H5N.mjs} +3 -3
  36. package/dist/cli/client-XVB5TOJ3.js +20 -0
  37. package/dist/cli/{csv-HQMLZZHT.mjs → csv-CSRHORRP.mjs} +3 -3
  38. package/dist/cli/{csv-KTXBVBID.js → csv-D2FZPBLE.js} +12 -12
  39. package/dist/cli/{db-LWGWX7JH.js → db-FBTYUJNE.js} +29 -29
  40. package/dist/cli/{db-TTRXGC6L.mjs → db-SMPCTNYW.mjs} +4 -4
  41. package/dist/cli/{describe-4TPO6SJ7.mjs → describe-O7DAHKCV.mjs} +8 -8
  42. package/dist/cli/{describe-BHXNMNW4.js → describe-YLIQOYIQ.js} +15 -15
  43. package/dist/cli/{executions-EYEB344B.mjs → executions-3JT2QJF3.mjs} +4 -4
  44. package/dist/cli/{executions-TUWWCJII.js → executions-5WWOQBZA.js} +6 -6
  45. package/dist/cli/{feedback-T3DIQUIY.js → feedback-JM2AYBUJ.js} +7 -7
  46. package/dist/cli/{feedback-B7KMX5Q7.mjs → feedback-NLO2YSK4.mjs} +3 -3
  47. package/dist/cli/git-7ZQJCYJA.js +23 -0
  48. package/dist/cli/{git-FBNXXKNZ.mjs → git-SXG2PCY3.mjs} +4 -4
  49. package/dist/cli/index.js +82 -82
  50. package/dist/cli/index.mjs +32 -32
  51. package/dist/cli/{legacy-noops-CUTE7NQM.mjs → legacy-noops-7FHORR7V.mjs} +4 -4
  52. package/dist/cli/{legacy-noops-NRL7F5CQ.js → legacy-noops-FPP5XP4I.js} +7 -7
  53. package/dist/cli/{monitors-OCADR2JY.mjs → monitors-Z4R2PECQ.mjs} +4 -4
  54. package/dist/cli/{monitors-MZ4ED4ZB.js → monitors-ZHSUOPCC.js} +85 -85
  55. package/dist/cli/{org-ZOORMY2P.js → org-NQYIPCDY.js} +157 -60
  56. package/dist/cli/{org-EGY6QPC2.mjs → org-SS2INCPG.mjs} +101 -4
  57. package/dist/cli/play-6SFL4F4A.js +153 -0
  58. package/dist/cli/{play-UWOXSZ5S.mjs → play-TNMFBICT.mjs} +7 -7
  59. package/dist/cli/{providers-6LEQ2IWJ.mjs → providers-AXYAEJCA.mjs} +4 -4
  60. package/dist/cli/{providers-ARFRC3BO.js → providers-ZGGKKO2C.js} +7 -7
  61. package/dist/cli/{quickstart-7KOYCNWZ.mjs → quickstart-2O4QL5GW.mjs} +3 -3
  62. package/dist/cli/{quickstart-FTAH5VJS.js → quickstart-2SLJX4FM.js} +5 -5
  63. package/dist/cli/{search-F72JTURT.mjs → search-BM6PCZM3.mjs} +5 -5
  64. package/dist/cli/search-BNQV6EUD.js +26 -0
  65. package/dist/cli/{secrets-Q46WCJV5.mjs → secrets-536MUJQU.mjs} +4 -4
  66. package/dist/cli/{secrets-RRLXGTKD.js → secrets-US4VXQHS.js} +13 -13
  67. package/dist/cli/{sessions-M6VVMEB7.mjs → sessions-25GZ6Q77.mjs} +4 -4
  68. package/dist/cli/{sessions-5E7N7PV4.js → sessions-EBL2YYVN.js} +5 -5
  69. package/dist/cli/{settings-FAMIU4TW.mjs → settings-CVJFIHPL.mjs} +7 -7
  70. package/dist/cli/{settings-DM2R5WKS.js → settings-LJ5JD3SD.js} +74 -74
  71. package/dist/cli/{setup-T3GYC7VU.js → setup-M5CL4OR2.js} +41 -41
  72. package/dist/cli/{setup-72X5PM4V.mjs → setup-X7KWBX3R.mjs} +6 -6
  73. package/dist/cli/{skills-JMZVXK4C.mjs → skills-HQS57Z3Z.mjs} +4 -4
  74. package/dist/cli/skills-LSNI3TO5.js +28 -0
  75. package/dist/cli/{tools-NWPWZ6MB.mjs → tools-RZVJKDMA.mjs} +6 -6
  76. package/dist/cli/tools-TPVFLJDX.js +40 -0
  77. package/dist/cli/{update-ICF4SXJY.mjs → update-7EHG6ZRX.mjs} +6 -6
  78. package/dist/cli/update-TW3326K2.js +28 -0
  79. package/dist/cli/{workflow-RC5HBGYX.mjs → workflow-5D32EFY7.mjs} +5 -5
  80. package/dist/cli/{workflow-JPKNILNY.js → workflow-6EU3N2FH.js} +15 -15
  81. package/dist/index.js +6 -6
  82. package/dist/index.mjs +3 -3
  83. package/dist/install-integrity.json +74 -74
  84. package/dist/release.d.mts +1 -1
  85. package/dist/release.d.ts +1 -1
  86. package/dist/release.js +2 -2
  87. package/dist/release.mjs +1 -1
  88. package/package.json +1 -1
  89. package/dist/cli/auth-2LRYSEPY.js +0 -33
  90. package/dist/cli/client-UU566CHL.js +0 -20
  91. package/dist/cli/git-6EBZTPWN.js +0 -23
  92. package/dist/cli/play-PWZRGMFT.js +0 -153
  93. package/dist/cli/search-FNJ5RAJG.js +0 -26
  94. package/dist/cli/skills-FXSNHINV.js +0 -28
  95. package/dist/cli/tools-EDJJXAQK.js +0 -40
  96. package/dist/cli/update-WZYLWV3J.js +0 -28
@@ -19,11 +19,11 @@ var _chunkQGKPTBRRjs = require('./chunk-QGKPTBRR.js');
19
19
  var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
20
20
 
21
21
 
22
- var _chunkUJCEPJQSjs = require('./chunk-UJCEPJQS.js');
22
+ var _chunkQ7EHVVXLjs = require('./chunk-Q7EHVVXL.js');
23
23
 
24
24
 
25
25
 
26
- var _chunk6NPZL4HAjs = require('./chunk-6NPZL4HA.js');
26
+ var _chunkEHMD3F4Hjs = require('./chunk-EHMD3F4H.js');
27
27
 
28
28
 
29
29
 
@@ -42,7 +42,7 @@ var _chunkGEJDBXXMjs = require('./chunk-GEJDBXXM.js');
42
42
 
43
43
 
44
44
 
45
- var _chunk6RCWXWL2js = require('./chunk-6RCWXWL2.js');
45
+ var _chunk7CM4UYZQjs = require('./chunk-7CM4UYZQ.js');
46
46
 
47
47
 
48
48
 
@@ -75,10 +75,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
75
75
 
76
76
 
77
77
 
78
- var _chunkSR5XJPYZjs = require('./chunk-SR5XJPYZ.js');
78
+ var _chunkWQU6JKI7js = require('./chunk-WQU6JKI7.js');
79
79
 
80
80
 
81
- var _chunkRNVO2NHHjs = require('./chunk-RNVO2NHH.js');
81
+ var _chunkBLVYVSKPjs = require('./chunk-BLVYVSKP.js');
82
82
 
83
83
 
84
84
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -2062,7 +2062,7 @@ function resolveField(key, command) {
2062
2062
  function printSettings(result, json, name) {
2063
2063
  result = { ...result, settings: parsePlaySettings(result.settings) };
2064
2064
  const selected = fields.filter(([key]) => !name || key === name);
2065
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
2065
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
2066
2066
  {
2067
2067
  ...result,
2068
2068
  settings: Object.fromEntries(
@@ -2106,7 +2106,7 @@ function registerPlaySettingsCommands(plays) {
2106
2106
  valueSyntax: field.cli.valueSyntax,
2107
2107
  examples: field.cli.examples
2108
2108
  }));
2109
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
2109
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
2110
2110
  {
2111
2111
  fields: descriptions,
2112
2112
  render: {
@@ -2131,7 +2131,7 @@ function registerPlaySettingsCommands(plays) {
2131
2131
  async (options, command) => {
2132
2132
  if (options.name !== void 0) resolveField(options.name, command);
2133
2133
  printSettings(
2134
- await new (0, _chunk6RCWXWL2js.DeeplineClient)().getPlaySettings(options.play),
2134
+ await new (0, _chunk7CM4UYZQjs.DeeplineClient)().getPlaySettings(options.play),
2135
2135
  options.json,
2136
2136
  options.name
2137
2137
  );
@@ -2162,7 +2162,7 @@ function registerPlaySettingsCommands(plays) {
2162
2162
  );
2163
2163
  }
2164
2164
  if (options.dryRun) {
2165
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
2165
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
2166
2166
  {
2167
2167
  dryRun: true,
2168
2168
  play,
@@ -2183,7 +2183,7 @@ function registerPlaySettingsCommands(plays) {
2183
2183
  return;
2184
2184
  }
2185
2185
  printSettings(
2186
- await new (0, _chunk6RCWXWL2js.DeeplineClient)().updatePlaySettings(play, patch),
2186
+ await new (0, _chunk7CM4UYZQjs.DeeplineClient)().updatePlaySettings(play, patch),
2187
2187
  options.json
2188
2188
  );
2189
2189
  };
@@ -2209,13 +2209,13 @@ function registerPlaySettingsCommands(plays) {
2209
2209
  "--root must be person or team; --limit must be 1\u2013100.",
2210
2210
  { exitCode: 2 }
2211
2211
  );
2212
- const page = await new (0, _chunk6RCWXWL2js.DeeplineClient)().listPlaySettingsPaths({
2212
+ const page = await new (0, _chunk7CM4UYZQjs.DeeplineClient)().listPlaySettingsPaths({
2213
2213
  root: options.root,
2214
2214
  limit,
2215
2215
  cursor: options.cursor
2216
2216
  });
2217
2217
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""} --json` : null;
2218
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
2218
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
2219
2219
  {
2220
2220
  ...page,
2221
2221
  nextCommand,
@@ -2266,7 +2266,7 @@ function registerPlaySettingsCommands(plays) {
2266
2266
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2267
2267
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2268
2268
  };
2269
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
2269
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
2270
2270
  const paths = [];
2271
2271
  let cursor;
2272
2272
  do {
@@ -2328,7 +2328,7 @@ function registerPlaySettingsCommands(plays) {
2328
2328
  moved.push(move.playName);
2329
2329
  }
2330
2330
  }
2331
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
2331
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
2332
2332
  {
2333
2333
  dryRun: Boolean(options.dryRun),
2334
2334
  from: options.from,
@@ -2456,7 +2456,7 @@ function triggerLines(view) {
2456
2456
  return lines;
2457
2457
  }
2458
2458
  function printView(view, json) {
2459
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
2459
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
2460
2460
  {
2461
2461
  ...view,
2462
2462
  render: {
@@ -2469,7 +2469,7 @@ function printView(view, json) {
2469
2469
  );
2470
2470
  }
2471
2471
  function printResult(result, json) {
2472
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
2472
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
2473
2473
  {
2474
2474
  ...result,
2475
2475
  render: {
@@ -2499,7 +2499,7 @@ async function mutate(command, options, build) {
2499
2499
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2500
2500
  }
2501
2501
  if (options.dryRun) {
2502
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
2502
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
2503
2503
  {
2504
2504
  dryRun: true,
2505
2505
  play: options.play,
@@ -2518,7 +2518,7 @@ async function mutate(command, options, build) {
2518
2518
  return;
2519
2519
  }
2520
2520
  printResult(
2521
- await new (0, _chunk6RCWXWL2js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2521
+ await new (0, _chunk7CM4UYZQjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2522
2522
  options.json
2523
2523
  );
2524
2524
  }
@@ -2551,7 +2551,7 @@ function registerPlayTriggerConfigCommands(plays) {
2551
2551
  }).addHelpText("after", help2);
2552
2552
  trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON; automatic when piped").addHelpText("after", help2).action(async (options) => {
2553
2553
  printView(
2554
- await new (0, _chunk6RCWXWL2js.DeeplineClient)().getPlayTriggerConfig(options.play),
2554
+ await new (0, _chunk7CM4UYZQjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2555
2555
  options.json
2556
2556
  );
2557
2557
  });
@@ -2595,7 +2595,7 @@ function registerPlayTriggerConfigCommands(plays) {
2595
2595
  if (options.auth === void 0) {
2596
2596
  if (secrets.length || options.header || options.signaturePrefix)
2597
2597
  usage(setWebhook, "--secret/--header need --auth.");
2598
- const current = await new (0, _chunk6RCWXWL2js.DeeplineClient)().getPlayTriggerConfig(
2598
+ const current = await new (0, _chunk7CM4UYZQjs.DeeplineClient)().getPlayTriggerConfig(
2599
2599
  options.play
2600
2600
  );
2601
2601
  return {
@@ -2672,7 +2672,7 @@ var KIND_DESCRIPTIONS = {
2672
2672
  "receipt.skipped": "Saved work result: skipped.",
2673
2673
  "runtime.event": "Other event."
2674
2674
  };
2675
- var RUN_LOGS_KIND_HELP = _chunk6RCWXWL2js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2675
+ var RUN_LOGS_KIND_HELP = _chunk7CM4UYZQjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2676
2676
  kind,
2677
2677
  description: KIND_DESCRIPTIONS[kind]
2678
2678
  }));
@@ -2809,9 +2809,9 @@ function configureRunQueryCommandErrors(command, resource) {
2809
2809
  const args = program.args;
2810
2810
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2811
2811
  error.exitCode = 2;
2812
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2813
- _chunkSR5XJPYZjs.printJsonError.call(void 0,
2814
- Object.assign(new (0, _chunk6RCWXWL2js.RunEventQueryInputError)(error.message), {
2812
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2813
+ _chunkWQU6JKI7js.printJsonError.call(void 0,
2814
+ Object.assign(new (0, _chunk7CM4UYZQjs.RunEventQueryInputError)(error.message), {
2815
2815
  exitCode: 2,
2816
2816
  retryable: false
2817
2817
  })
@@ -2855,14 +2855,14 @@ function parseQuery(args, resource) {
2855
2855
  if (VALUE_FLAGS.has(flag)) {
2856
2856
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2857
2857
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2858
- throw new (0, _chunk6RCWXWL2js.RunEventQueryInputError)(
2858
+ throw new (0, _chunk7CM4UYZQjs.RunEventQueryInputError)(
2859
2859
  `${flag} requires a value. Use ${flag} <value>.`
2860
2860
  );
2861
2861
  }
2862
2862
  if (flag === "--sum") sums.push(value);
2863
2863
  else {
2864
2864
  if (values[flag] !== void 0) {
2865
- throw new (0, _chunk6RCWXWL2js.RunEventQueryInputError)(
2865
+ throw new (0, _chunk7CM4UYZQjs.RunEventQueryInputError)(
2866
2866
  `${flag} may only be supplied once.`
2867
2867
  );
2868
2868
  }
@@ -2876,12 +2876,12 @@ function parseQuery(args, resource) {
2876
2876
  }
2877
2877
  if (arg.startsWith("-")) {
2878
2878
  const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
2879
- throw new (0, _chunk6RCWXWL2js.RunEventQueryInputError)(
2879
+ throw new (0, _chunk7CM4UYZQjs.RunEventQueryInputError)(
2880
2880
  `Unsupported query flag ${flag}. ${correction}`
2881
2881
  );
2882
2882
  }
2883
2883
  if (runId !== void 0) {
2884
- throw new (0, _chunk6RCWXWL2js.RunEventQueryInputError)(
2884
+ throw new (0, _chunk7CM4UYZQjs.RunEventQueryInputError)(
2885
2885
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2886
2886
  );
2887
2887
  }
@@ -2889,7 +2889,7 @@ function parseQuery(args, resource) {
2889
2889
  }
2890
2890
  if (switches.has("--fields")) {
2891
2891
  if (runId !== void 0) {
2892
- throw new (0, _chunk6RCWXWL2js.RunEventQueryInputError)(
2892
+ throw new (0, _chunk7CM4UYZQjs.RunEventQueryInputError)(
2893
2893
  "--fields does not use a run ID. Omit the positional run ID."
2894
2894
  );
2895
2895
  }
@@ -2902,18 +2902,18 @@ function parseQuery(args, resource) {
2902
2902
  )
2903
2903
  ];
2904
2904
  if (incompatible.length) {
2905
- throw new (0, _chunk6RCWXWL2js.RunEventQueryInputError)(
2905
+ throw new (0, _chunk7CM4UYZQjs.RunEventQueryInputError)(
2906
2906
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2907
2907
  );
2908
2908
  }
2909
2909
  }
2910
2910
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2911
- throw new (0, _chunk6RCWXWL2js.RunEventQueryInputError)(
2911
+ throw new (0, _chunk7CM4UYZQjs.RunEventQueryInputError)(
2912
2912
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2913
2913
  );
2914
2914
  }
2915
2915
  if (sums.length && switches.has("--count")) {
2916
- throw new (0, _chunk6RCWXWL2js.RunEventQueryInputError)(
2916
+ throw new (0, _chunk7CM4UYZQjs.RunEventQueryInputError)(
2917
2917
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2918
2918
  );
2919
2919
  }
@@ -2921,7 +2921,7 @@ function parseQuery(args, resource) {
2921
2921
  if (operation === "count") {
2922
2922
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2923
2923
  if (values[flag] !== void 0 || switches.has(flag)) {
2924
- throw new (0, _chunk6RCWXWL2js.RunEventQueryInputError)(
2924
+ throw new (0, _chunk7CM4UYZQjs.RunEventQueryInputError)(
2925
2925
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2926
2926
  );
2927
2927
  }
@@ -2956,16 +2956,16 @@ function parseQuery(args, resource) {
2956
2956
  ];
2957
2957
  }
2958
2958
  }
2959
- const request = _chunk6RCWXWL2js.normalizeRunEventOperationRequest.call(void 0, body);
2959
+ const request = _chunk7CM4UYZQjs.normalizeRunEventOperationRequest.call(void 0, body);
2960
2960
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2961
2961
  const backend = values["--runtime-backend"];
2962
2962
  if (backend && backend !== "daytona" && backend !== "modal") {
2963
- throw new (0, _chunk6RCWXWL2js.RunEventQueryInputError)(
2963
+ throw new (0, _chunk7CM4UYZQjs.RunEventQueryInputError)(
2964
2964
  "--runtime-backend must be daytona or modal."
2965
2965
  );
2966
2966
  }
2967
2967
  if (backend && !namespace) {
2968
- throw new (0, _chunk6RCWXWL2js.RunEventQueryInputError)(
2968
+ throw new (0, _chunk7CM4UYZQjs.RunEventQueryInputError)(
2969
2969
  "--runtime-backend requires --runtime-namespace."
2970
2970
  );
2971
2971
  }
@@ -3013,12 +3013,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3013
3013
  const failure = error instanceof Error ? error : new Error(String(error));
3014
3014
  const record3 = failure;
3015
3015
  const status = record3.statusCode;
3016
- const exitCode = error instanceof _chunk6RCWXWL2js.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3016
+ const exitCode = error instanceof _chunk7CM4UYZQjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3017
3017
  const diagnostic = Object.assign(failure, {
3018
3018
  exitCode,
3019
3019
  retryable: exitCode === 5
3020
3020
  });
3021
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) _chunkSR5XJPYZjs.printJsonError.call(void 0, diagnostic);
3021
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) _chunkWQU6JKI7js.printJsonError.call(void 0, diagnostic);
3022
3022
  else console.error(`Error: ${diagnostic.message}`);
3023
3023
  return exitCode;
3024
3024
  }
@@ -3033,7 +3033,7 @@ async function executeRunEventQuery(args, resource) {
3033
3033
  ...criteria
3034
3034
  } = request;
3035
3035
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3036
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
3036
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
3037
3037
  let result;
3038
3038
  if (request.operation === "fields") {
3039
3039
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3099,13 +3099,13 @@ async function executeRunEventQuery(args, resource) {
3099
3099
  lines.push(`Next page: ${nextPage}`);
3100
3100
  }
3101
3101
  }
3102
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
3102
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
3103
3103
  {
3104
3104
  ...result,
3105
3105
  ...nextPage ? { next: { page: nextPage } } : {},
3106
3106
  render: { sections: [{ title: `run ${resource}`, lines }] }
3107
3107
  },
3108
- { json: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3108
+ { json: _chunkWQU6JKI7js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3109
3109
  ` }
3110
3110
  );
3111
3111
  return 0;
@@ -3925,7 +3925,7 @@ function checkedRunExample(plays, target) {
3925
3925
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3926
3926
  const base = `deepline plays run --file ${quote(target)}`;
3927
3927
  return {
3928
- command: `${base}${_chunk6RCWXWL2js.playInputExampleArgs.call(void 0, schema)} --json`,
3928
+ command: `${base}${_chunk7CM4UYZQjs.playInputExampleArgs.call(void 0, schema)} --json`,
3929
3929
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema. Keep stderr separate from JSON stdout."
3930
3930
  };
3931
3931
  }
@@ -4023,7 +4023,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4023
4023
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4024
4024
  );
4025
4025
  }
4026
- const response = await new (0, _chunk6RCWXWL2js.DeeplineClient)().runs.getReceipts(runId, {
4026
+ const response = await new (0, _chunk7CM4UYZQjs.DeeplineClient)().runs.getReceipts(runId, {
4027
4027
  keys
4028
4028
  });
4029
4029
  const failed = response.receipts.filter(
@@ -4035,7 +4035,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4035
4035
  JSON.stringify(response, null, 2) + "\n",
4036
4036
  { flag: "wx", mode: 384 }
4037
4037
  );
4038
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
4038
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
4039
4039
  {
4040
4040
  runId,
4041
4041
  out: options.out,
@@ -4045,7 +4045,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4045
4045
  { json: true }
4046
4046
  );
4047
4047
  } else {
4048
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4048
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4049
4049
  }
4050
4050
  if (failed)
4051
4051
  process.exitCode = response.receipts.some(
@@ -4084,7 +4084,7 @@ includes nextCommand when another page is available.
4084
4084
  { exitCode: 2 }
4085
4085
  );
4086
4086
  }
4087
- const page = await new (0, _chunk6RCWXWL2js.DeeplineClient)().runs.children(parentRunId, {
4087
+ const page = await new (0, _chunk7CM4UYZQjs.DeeplineClient)().runs.children(parentRunId, {
4088
4088
  launchKey: options.launchKey,
4089
4089
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4090
4090
  limit
@@ -4100,7 +4100,7 @@ includes nextCommand when another page is available.
4100
4100
  String(limit),
4101
4101
  "--json"
4102
4102
  ].join(" ") : null;
4103
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
4103
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
4104
4104
  {
4105
4105
  parentRunId,
4106
4106
  launchKey: options.launchKey,
@@ -4136,7 +4136,7 @@ async function handleRunsHistory(options) {
4136
4136
  throw new Error("--limit must be a positive integer.");
4137
4137
  }
4138
4138
  }
4139
- const page = await new (0, _chunk6RCWXWL2js.DeeplineClient)().runs.history({
4139
+ const page = await new (0, _chunk7CM4UYZQjs.DeeplineClient)().runs.history({
4140
4140
  cursor: options.cursor,
4141
4141
  orgId: options.org,
4142
4142
  search: options.search,
@@ -4152,7 +4152,7 @@ async function handleRunsHistory(options) {
4152
4152
  );
4153
4153
  }
4154
4154
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4155
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
4155
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
4156
4156
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4157
4157
  options.json ? { json: true } : {}
4158
4158
  );
@@ -4204,12 +4204,12 @@ async function runRunsRerunCommand(runId, options) {
4204
4204
  return 1;
4205
4205
  }
4206
4206
  }
4207
- const result = await new (0, _chunk6RCWXWL2js.DeeplineClient)().runs.rerun(runId, {
4207
+ const result = await new (0, _chunk7CM4UYZQjs.DeeplineClient)().runs.rerun(runId, {
4208
4208
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4209
4209
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4210
4210
  });
4211
- if (_chunkSR5XJPYZjs.shouldEmitJson.call(void 0, options.json)) {
4212
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0, result, { json: true });
4211
+ if (_chunkWQU6JKI7js.shouldEmitJson.call(void 0, options.json)) {
4212
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0, result, { json: true });
4213
4213
  } else {
4214
4214
  console.log(
4215
4215
  result.deduplicated === true ? `
@@ -4477,7 +4477,7 @@ function projectRunDatasetCell(value) {
4477
4477
  const logicalValue = parseSerializedDatasetValue(value);
4478
4478
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
4479
4479
  if (typeof logicalValue === "object") {
4480
- return _chunkSR5XJPYZjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4480
+ return _chunkWQU6JKI7js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4481
4481
  }
4482
4482
  return logicalValue;
4483
4483
  }
@@ -6894,7 +6894,7 @@ function renderOutcome(outcome) {
6894
6894
  function printResult2(input) {
6895
6895
  const failed = input.status === "failed" || input.status === "cancelled";
6896
6896
  if (failed) process.exitCode = 1;
6897
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
6897
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
6898
6898
  {
6899
6899
  deployment: { ...input.deployment, status: input.status },
6900
6900
  plays: input.outcomes,
@@ -6919,7 +6919,7 @@ async function handlePlaysDeploy(directory, options) {
6919
6919
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6920
6920
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6921
6921
  });
6922
- const { http, config } = _chunkSR5XJPYZjs.getAuthedHttpClient.call(void 0, );
6922
+ const { http, config } = _chunkWQU6JKI7js.getAuthedHttpClient.call(void 0, );
6923
6923
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6924
6924
  const startDeployment = () => http.post("/api/v2/deployments", {
6925
6925
  deliveryId,
@@ -6946,7 +6946,7 @@ async function handlePlaysDeploy(directory, options) {
6946
6946
  },
6947
6947
  {
6948
6948
  bundle: bundleDeployPlayFile,
6949
- fetchImpl: _chunkRNVO2NHHjs.fetchWithDeploymentProtection,
6949
+ fetchImpl: _chunkBLVYVSKPjs.fetchWithDeploymentProtection,
6950
6950
  // The plays are already here: "opening" the source is naming it.
6951
6951
  openSource: async () => ({
6952
6952
  open: async () => ({ repoRoot: root })
@@ -7514,7 +7514,7 @@ function parseInputFlagValue(raw) {
7514
7514
  return raw;
7515
7515
  }
7516
7516
  function parsePlayRunOptions(args, initialInput = null) {
7517
- const selection = _chunkSR5XJPYZjs.parseJsonFields.call(void 0, args, "run");
7517
+ const selection = _chunkWQU6JKI7js.parseJsonFields.call(void 0, args, "run");
7518
7518
  args = selection.args;
7519
7519
  const usage2 = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and ctx.dataset guidance.";
7520
7520
  let filePath = null;
@@ -7524,7 +7524,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7524
7524
  let revisionSelector = null;
7525
7525
  const watch = !args.includes("--no-wait");
7526
7526
  const dryRun = args.includes("--dry-run");
7527
- let jsonOutput = dryRun ? _chunkSR5XJPYZjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkSR5XJPYZjs.argsWantJson.call(void 0, args);
7527
+ let jsonOutput = dryRun ? _chunkWQU6JKI7js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkWQU6JKI7js.argsWantJson.call(void 0, args);
7528
7528
  const fullJson = args.includes("--full");
7529
7529
  const force = args.includes("--force");
7530
7530
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -7571,7 +7571,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7571
7571
  "--log-level requires one of: debug, info, warn, error."
7572
7572
  );
7573
7573
  }
7574
- const parsed = _chunk6RCWXWL2js.parseLogLevel.call(void 0, value);
7574
+ const parsed = _chunk7CM4UYZQjs.parseLogLevel.call(void 0, value);
7575
7575
  if (!parsed) {
7576
7576
  throw new Error(
7577
7577
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -7878,7 +7878,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7878
7878
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
7879
7879
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
7880
7880
  );
7881
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk6RCWXWL2js.parseLogLevel.call(void 0, options.logLevel);
7881
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk7CM4UYZQjs.parseLogLevel.call(void 0, options.logLevel);
7882
7882
  if (!logLevel)
7883
7883
  throw new Error("--log-level requires one of: debug, info, warn, error.");
7884
7884
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -7892,13 +7892,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7892
7892
  if (debugAlias || debugMapLatency && logLevel === "info")
7893
7893
  logLevel = "debug";
7894
7894
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
7895
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkSR5XJPYZjs.parseJsonFields.call(void 0,
7896
- [...fullJson ? ["--full"] : [], ..._chunkSR5XJPYZjs.jsonFieldArgs.call(void 0, options.json)],
7895
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkWQU6JKI7js.parseJsonFields.call(void 0,
7896
+ [...fullJson ? ["--full"] : [], ..._chunkWQU6JKI7js.jsonFieldArgs.call(void 0, options.json)],
7897
7897
  "run"
7898
7898
  ).fields;
7899
7899
  const watch = options.wait === false ? false : base.watch;
7900
7900
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
7901
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkSR5XJPYZjs.argsWantJson.call(void 0, []) : explicitJson;
7901
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkWQU6JKI7js.argsWantJson.call(void 0, []) : explicitJson;
7902
7902
  const verboseLogs = Boolean(
7903
7903
  debugAlias || logLevel === "debug" || debugMapLatency
7904
7904
  );
@@ -7942,7 +7942,7 @@ function playAuthoringGraphPath(parent, filePath) {
7942
7942
  // src/cli/renderers/local-play-execution.ts
7943
7943
  function renderLocalPlayExecutionPlan(plan, options = {}) {
7944
7944
  if (options.dryRun) {
7945
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7945
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7946
7946
  return;
7947
7947
  }
7948
7948
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -8898,7 +8898,7 @@ function playStatusErrorText(status) {
8898
8898
  function isRetryablePendingStartFailure(status) {
8899
8899
  if (status.status !== "failed") return false;
8900
8900
  if (status.runId && status.runId !== "pending") return false;
8901
- return _chunk6RCWXWL2js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8901
+ return _chunk7CM4UYZQjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8902
8902
  }
8903
8903
  function pendingStartFailureStatus(input) {
8904
8904
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -8925,13 +8925,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
8925
8925
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
8926
8926
  function watchSurfaceReaches(state, provenance, level) {
8927
8927
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
8928
- if (!_chunk6RCWXWL2js.logLevelReaches.call(void 0, level, minimumLevel)) {
8928
+ if (!_chunk7CM4UYZQjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8929
8929
  return false;
8930
8930
  }
8931
- if (_chunk6RCWXWL2js.logProvenanceReaches.call(void 0, provenance, "watch")) {
8931
+ if (_chunk7CM4UYZQjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8932
8932
  return true;
8933
8933
  }
8934
- return state.verbose === true && _chunk6RCWXWL2js.logProvenanceReaches.call(void 0, provenance, "debug");
8934
+ return state.verbose === true && _chunk7CM4UYZQjs.logProvenanceReaches.call(void 0, provenance, "debug");
8935
8935
  }
8936
8936
  function getEventPayload(event) {
8937
8937
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -9433,7 +9433,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
9433
9433
  }
9434
9434
  function openPlayDashboard(dashboardUrl, open2) {
9435
9435
  if (open2 && dashboardUrl) {
9436
- _chunkSR5XJPYZjs.openInBrowser.call(void 0, dashboardUrl);
9436
+ _chunkWQU6JKI7js.openInBrowser.call(void 0, dashboardUrl);
9437
9437
  }
9438
9438
  }
9439
9439
  function printPlayLogLines(input) {
@@ -9495,7 +9495,7 @@ async function waitForPlayCompletionByWatch(input) {
9495
9495
  billing: false
9496
9496
  });
9497
9497
  } catch (error) {
9498
- if (_chunk6RCWXWL2js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9498
+ if (_chunk7CM4UYZQjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9499
9499
  return null;
9500
9500
  }
9501
9501
  throw error;
@@ -9684,7 +9684,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9684
9684
  billing: false
9685
9685
  });
9686
9686
  } catch (error) {
9687
- if (_chunk6RCWXWL2js.isTransientPlayRunReadError.call(void 0, error)) {
9687
+ if (_chunk7CM4UYZQjs.isTransientPlayRunReadError.call(void 0, error)) {
9688
9688
  return null;
9689
9689
  }
9690
9690
  throw error;
@@ -9892,7 +9892,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9892
9892
  lastPhase
9893
9893
  });
9894
9894
  }
9895
- if (lastKnownWorkflowId && _chunk6RCWXWL2js.isTransientPlayRunReadError.call(void 0, error)) {
9895
+ if (lastKnownWorkflowId && _chunk7CM4UYZQjs.isTransientPlayRunReadError.call(void 0, error)) {
9896
9896
  if (timeout) {
9897
9897
  clearTimeout(timeout);
9898
9898
  }
@@ -9928,7 +9928,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9928
9928
  onRunAdmitted: confirmAdmission
9929
9929
  });
9930
9930
  }
9931
- if (!lastKnownWorkflowId && _chunk6RCWXWL2js.isTransientPlayRunReadError.call(void 0, error)) {
9931
+ if (!lastKnownWorkflowId && _chunk7CM4UYZQjs.isTransientPlayRunReadError.call(void 0, error)) {
9932
9932
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
9933
9933
  phase: "cli.play_start_stream_transient_failure",
9934
9934
  ms: Date.now() - startedAt,
@@ -10027,7 +10027,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10027
10027
  "logs"
10028
10028
  ]);
10029
10029
  function formatPlayLogLine(rawLine, state) {
10030
- const classified = _chunk6RCWXWL2js.classifyLogLine.call(void 0, rawLine);
10030
+ const classified = _chunk7CM4UYZQjs.classifyLogLine.call(void 0, rawLine);
10031
10031
  const line = classified.line;
10032
10032
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10033
10033
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _308 => _308[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10042,14 +10042,14 @@ function formatPlayLogLine(rawLine, state) {
10042
10042
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10043
10043
  const providerWait = formatProviderCapacityWaitLogLine(line);
10044
10044
  if (providerWait && !state.verbose) {
10045
- return _chunk6RCWXWL2js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10045
+ return _chunk7CM4UYZQjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10046
10046
  }
10047
10047
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10048
10048
  if (mapProgress && !state.verbose) {
10049
- return _chunk6RCWXWL2js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10049
+ return _chunk7CM4UYZQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10050
10050
  }
10051
10051
  if (/\[worker\] picked up run\b/.test(message)) {
10052
- if (!_chunk6RCWXWL2js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10052
+ if (!_chunk7CM4UYZQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10053
10053
  return null;
10054
10054
  }
10055
10055
  if (state.emittedRunnerStarted) {
@@ -10062,7 +10062,7 @@ function formatPlayLogLine(rawLine, state) {
10062
10062
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10063
10063
  );
10064
10064
  if (mapStart) {
10065
- if (!_chunk6RCWXWL2js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10065
+ if (!_chunk7CM4UYZQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10066
10066
  return null;
10067
10067
  }
10068
10068
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10072,7 +10072,7 @@ function formatPlayLogLine(rawLine, state) {
10072
10072
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10073
10073
  );
10074
10074
  if (mapDone) {
10075
- if (!_chunk6RCWXWL2js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10075
+ if (!_chunk7CM4UYZQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10076
10076
  return null;
10077
10077
  }
10078
10078
  const [, results, executed, cached] = mapDone;
@@ -11361,7 +11361,7 @@ function formatRecentRunLogLines(value) {
11361
11361
  (line) => typeof line === "string"
11362
11362
  );
11363
11363
  if (tail.length === 0) return [];
11364
- const shown = tail.map((line) => _chunk6RCWXWL2js.classifyLogLine.call(void 0, line)).filter(
11364
+ const shown = tail.map((line) => _chunk7CM4UYZQjs.classifyLogLine.call(void 0, line)).filter(
11365
11365
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
11366
11366
  ).slice(-8);
11367
11367
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11641,7 +11641,7 @@ function writePlayResult(status, jsonOutput, options) {
11641
11641
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _389 => _389.hits]), () => ( null));
11642
11642
  if (jsonOutput) {
11643
11643
  const payload2 = _optionalChain([options, 'optionalAccess', _390 => _390.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11644
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
11644
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
11645
11645
  hits ? { ...payload2, hits } : payload2,
11646
11646
  { json: true, fields: _optionalChain([options, 'optionalAccess', _391 => _391.jsonFields]) }
11647
11647
  );
@@ -11657,7 +11657,7 @@ function writePlayResult(status, jsonOutput, options) {
11657
11657
  ...buildPlayCompletionTextLines(status),
11658
11658
  ...formatRunHitsLines(hits)
11659
11659
  ];
11660
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0, displayPackage, {
11660
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0, displayPackage, {
11661
11661
  json: false,
11662
11662
  text: `${lines2.join("\n")}
11663
11663
  `
@@ -11708,7 +11708,7 @@ function writePlayResult(status, jsonOutput, options) {
11708
11708
  lines.push(...buildBillingRollupTextLines(status));
11709
11709
  const compact = compactPlayStatus(status);
11710
11710
  const payload = _optionalChain([options, 'optionalAccess', _393 => _393.fullJson]) ? status : compact;
11711
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
11711
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
11712
11712
  {
11713
11713
  ...payload,
11714
11714
  render: {
@@ -12480,7 +12480,7 @@ function writeStartedPlayRun(input) {
12480
12480
  dashboardUrl: input.dashboardUrl,
12481
12481
  package: input.package
12482
12482
  };
12483
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12483
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12484
12484
  json: true,
12485
12485
  fields: input.jsonFields
12486
12486
  });
@@ -12502,7 +12502,7 @@ function writeStartedPlayRun(input) {
12502
12502
  input.progress.writeLine(output2, process.stdout);
12503
12503
  return;
12504
12504
  }
12505
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0, input.package, {
12505
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0, input.package, {
12506
12506
  json: false,
12507
12507
  text: `${output2}
12508
12508
  `
@@ -12531,7 +12531,7 @@ function writeStartedPlayRun(input) {
12531
12531
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)} --json`] : []
12532
12532
  ];
12533
12533
  if (input.jsonOutput) {
12534
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12534
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12535
12535
  return;
12536
12536
  }
12537
12537
  if (input.dashboardUrl) {
@@ -12542,7 +12542,7 @@ function writeStartedPlayRun(input) {
12542
12542
  input.progress.writeLine(output, process.stdout);
12543
12543
  return;
12544
12544
  }
12545
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
12545
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
12546
12546
  {
12547
12547
  ...payload,
12548
12548
  render: { sections: [{ title: "play run", lines }] }
@@ -12552,7 +12552,7 @@ function writeStartedPlayRun(input) {
12552
12552
  );
12553
12553
  }
12554
12554
  function parsePlayCheckOptions(args) {
12555
- const selection = _chunkSR5XJPYZjs.parseJsonFields.call(void 0, args, "check");
12555
+ const selection = _chunkWQU6JKI7js.parseJsonFields.call(void 0, args, "check");
12556
12556
  args = selection.args;
12557
12557
  const target = args[0];
12558
12558
  if (!target || target.startsWith("-")) {
@@ -12564,7 +12564,7 @@ function parsePlayCheckOptions(args) {
12564
12564
  if (arg !== "--json" && arg !== "--full")
12565
12565
  throw new Error(`Unknown plays check option: ${arg}`);
12566
12566
  }
12567
- const jsonOutput = _chunkSR5XJPYZjs.argsWantJson.call(void 0, args);
12567
+ const jsonOutput = _chunkWQU6JKI7js.argsWantJson.call(void 0, args);
12568
12568
  return {
12569
12569
  target,
12570
12570
  jsonOutput,
@@ -12640,7 +12640,7 @@ ${PLAY_PUBLISH_USAGE}`
12640
12640
  useLatest,
12641
12641
  expectedArtifactHash,
12642
12642
  dryRun,
12643
- jsonOutput: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args)
12643
+ jsonOutput: _chunkWQU6JKI7js.argsWantJson.call(void 0, args)
12644
12644
  };
12645
12645
  }
12646
12646
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12681,7 +12681,7 @@ ${PLAY_SAVE_USAGE}`);
12681
12681
  target,
12682
12682
  expectedArtifactHash,
12683
12683
  dryRun,
12684
- jsonOutput: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args)
12684
+ jsonOutput: _chunkWQU6JKI7js.argsWantJson.call(void 0, args)
12685
12685
  };
12686
12686
  }
12687
12687
  function printScheduledPlayCapacity(capacity) {
@@ -12892,7 +12892,7 @@ function printBundledRuntimeWarning(bundle) {
12892
12892
  async function handlePlayCheck(args) {
12893
12893
  const options = parsePlayCheckOptions(args);
12894
12894
  if (!isFileTarget2(options.target)) {
12895
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
12895
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
12896
12896
  try {
12897
12897
  await assertCanonicalNamedPlayReference(client, options.target, {
12898
12898
  command: "check"
@@ -12921,7 +12921,7 @@ async function handlePlayCheck(args) {
12921
12921
  },
12922
12922
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12923
12923
  };
12924
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0, result, {
12924
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0, result, {
12925
12925
  json: options.jsonOutput,
12926
12926
  fields: options.jsonFields,
12927
12927
  text: renderPlayCheckOutput(result) + "\n"
@@ -12931,7 +12931,7 @@ async function handlePlayCheck(args) {
12931
12931
  const resolved = _path.resolve.call(void 0, options.target);
12932
12932
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12933
12933
  if (options.jsonOutput) {
12934
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
12934
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
12935
12935
  {
12936
12936
  kind: "play_check",
12937
12937
  checked: "named_contract",
@@ -12973,7 +12973,7 @@ async function handlePlayCheck(args) {
12973
12973
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full --json`,
12974
12974
  publishCommand: _optionalChain([primary, 'optionalAccess', _440 => _440.result, 'access', _441 => _441.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
12975
12975
  });
12976
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0, output, {
12976
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0, output, {
12977
12977
  json: options.jsonOutput,
12978
12978
  fields: options.jsonFields,
12979
12979
  text: renderPlayCheckOutput(output) + "\n"
@@ -13027,7 +13027,7 @@ async function checkOneExportedPlay(input) {
13027
13027
  }
13028
13028
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
13029
13029
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
13030
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
13030
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
13031
13031
  const integrationMode = resolveEvalIntegrationMode();
13032
13032
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
13033
13033
  playName: node.playName,
@@ -13104,7 +13104,7 @@ async function handleFileBackedRun(options, hooks) {
13104
13104
  );
13105
13105
  return 0;
13106
13106
  }
13107
- client = new (0, _chunk6RCWXWL2js.DeeplineClient)(playRunClientOptions(options));
13107
+ client = new (0, _chunk7CM4UYZQjs.DeeplineClient)(playRunClientOptions(options));
13108
13108
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
13109
13109
  if (canDeferCompilerManifest) {
13110
13110
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
@@ -13299,7 +13299,7 @@ async function handleNamedRun(options, hooks) {
13299
13299
  if (options.target.kind !== "name") {
13300
13300
  throw new Error("Expected a named play run target.");
13301
13301
  }
13302
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)(playRunClientOptions(options));
13302
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)(playRunClientOptions(options));
13303
13303
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
13304
13304
  const playName = options.target.name;
13305
13305
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -13696,10 +13696,10 @@ function renderRunOverviewText(overview, extras = {}) {
13696
13696
  );
13697
13697
  return `${lines.join("\n")}
13698
13698
 
13699
- ${_chunkSR5XJPYZjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13699
+ ${_chunkWQU6JKI7js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13700
13700
  }
13701
13701
  async function handleRunGet(args) {
13702
- const selection = _chunkSR5XJPYZjs.parseJsonFields.call(void 0,
13702
+ const selection = _chunkWQU6JKI7js.parseJsonFields.call(void 0,
13703
13703
  args,
13704
13704
  args.includes("--config") ? "config" : "get"
13705
13705
  );
@@ -13712,7 +13712,7 @@ async function handleRunGet(args) {
13712
13712
  console.error(error instanceof Error ? error.message : usage2);
13713
13713
  return 1;
13714
13714
  }
13715
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
13715
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
13716
13716
  if (args.includes("--config")) {
13717
13717
  if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
13718
13718
  console.error(
@@ -13726,7 +13726,7 @@ async function handleRunGet(args) {
13726
13726
  "This server does not support recorded configuration reads."
13727
13727
  );
13728
13728
  }
13729
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
13729
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
13730
13730
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13731
13731
  { json: true, fields: selection.fields }
13732
13732
  );
@@ -13734,7 +13734,7 @@ async function handleRunGet(args) {
13734
13734
  }
13735
13735
  if (args.includes("--input")) {
13736
13736
  const input = await client.getRunInput(runId);
13737
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0, input, { json: true });
13737
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0, input, { json: true });
13738
13738
  return 0;
13739
13739
  }
13740
13740
  const full = args.includes("--full");
@@ -13748,8 +13748,8 @@ async function handleRunGet(args) {
13748
13748
  full: true,
13749
13749
  failedLogs: args.includes("--log-failed")
13750
13750
  }) : status;
13751
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
13752
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
13751
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
13752
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
13753
13753
  full ? legacyStatus : compactPlayStatus(legacyStatus),
13754
13754
  { json: true, fields: selection.fields }
13755
13755
  );
@@ -13765,8 +13765,8 @@ async function handleRunGet(args) {
13765
13765
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
13766
13766
  ]);
13767
13767
  const hitLines = formatRunHitsLines(hits);
13768
- const json = _chunkSR5XJPYZjs.argsWantJson.call(void 0, args);
13769
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
13768
+ const json = _chunkWQU6JKI7js.argsWantJson.call(void 0, args);
13769
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
13770
13770
  {
13771
13771
  ...overview,
13772
13772
  credits,
@@ -13869,9 +13869,9 @@ async function handleRunLifecycleStatus(args) {
13869
13869
  console.error(error instanceof Error ? error.message : usage2);
13870
13870
  return 1;
13871
13871
  }
13872
- const status = await new (0, _chunk6RCWXWL2js.DeeplineClient)().runs.status(runId);
13873
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
13874
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0, status, { json: true });
13872
+ const status = await new (0, _chunk7CM4UYZQjs.DeeplineClient)().runs.status(runId);
13873
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
13874
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0, status, { json: true });
13875
13875
  return 0;
13876
13876
  }
13877
13877
  if (!status.available) {
@@ -13911,7 +13911,7 @@ async function handleRunsRerun(args) {
13911
13911
  console.error(error instanceof Error ? error.message : usage2);
13912
13912
  return 1;
13913
13913
  }
13914
- const options = { json: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args) };
13914
+ const options = { json: _chunkWQU6JKI7js.argsWantJson.call(void 0, args) };
13915
13915
  for (let index = 0; index < args.length; index += 1) {
13916
13916
  if (args[index] === "--idempotency-key") {
13917
13917
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -13976,8 +13976,8 @@ ${usage2}
13976
13976
  Discover Plays: ${next.discover}
13977
13977
  Active runs: ${next.running}`
13978
13978
  );
13979
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
13980
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
13979
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
13980
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
13981
13981
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
13982
13982
  { json: true }
13983
13983
  );
@@ -13992,7 +13992,7 @@ Active runs: ${next.running}`
13992
13992
  console.error("--offset requires --play.");
13993
13993
  return 1;
13994
13994
  }
13995
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
13995
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
13996
13996
  const page = await client.runs.listPage({
13997
13997
  ...playName ? { play: playName } : {},
13998
13998
  ...statusFilter ? { status: statusFilter } : {},
@@ -14061,7 +14061,7 @@ Active runs: ${next.running}`
14061
14061
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14062
14062
  );
14063
14063
  }
14064
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
14064
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
14065
14065
  {
14066
14066
  runs,
14067
14067
  count: runs.length,
@@ -14075,7 +14075,7 @@ Active runs: ${next.running}`
14075
14075
  },
14076
14076
  render: { sections: [{ title: "runs", lines }] }
14077
14077
  },
14078
- { json: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args) }
14078
+ { json: _chunkWQU6JKI7js.argsWantJson.call(void 0, args) }
14079
14079
  );
14080
14080
  return 0;
14081
14081
  }
@@ -14105,7 +14105,7 @@ async function handleRunTail(args) {
14105
14105
  console.error("--log-level requires one of: debug, info, warn, error.");
14106
14106
  return 1;
14107
14107
  }
14108
- const parsed = _chunk6RCWXWL2js.parseLogLevel.call(void 0, value);
14108
+ const parsed = _chunk7CM4UYZQjs.parseLogLevel.call(void 0, value);
14109
14109
  if (!parsed) {
14110
14110
  console.error(
14111
14111
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14143,9 +14143,9 @@ async function handleRunTail(args) {
14143
14143
  );
14144
14144
  return 1;
14145
14145
  }
14146
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
14146
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
14147
14147
  const jsonLines = args.includes("--jsonl");
14148
- const jsonOutput = !jsonLines && _chunkSR5XJPYZjs.argsWantJson.call(void 0, args);
14148
+ const jsonOutput = !jsonLines && _chunkWQU6JKI7js.argsWantJson.call(void 0, args);
14149
14149
  const compact = args.includes("--compact");
14150
14150
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14151
14151
  const compactState = {
@@ -14226,7 +14226,7 @@ async function handleRunLogs(args) {
14226
14226
  ]);
14227
14227
  const cursorIndex = args.indexOf("--cursor");
14228
14228
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14229
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk6RCWXWL2js.isRunLogsCursor.call(void 0, cursorValue));
14229
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk7CM4UYZQjs.isRunLogsCursor.call(void 0, cursorValue));
14230
14230
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14231
14231
  return handleRunEventSearch(args);
14232
14232
  }
@@ -14260,7 +14260,7 @@ async function handleRunLogs(args) {
14260
14260
  console.error("--log-level requires one of: debug, info, warn, error.");
14261
14261
  return 1;
14262
14262
  }
14263
- const parsed = _chunk6RCWXWL2js.parseLogLevel.call(void 0, value);
14263
+ const parsed = _chunk7CM4UYZQjs.parseLogLevel.call(void 0, value);
14264
14264
  if (!parsed) {
14265
14265
  console.error(
14266
14266
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14307,12 +14307,12 @@ async function handleRunLogs(args) {
14307
14307
  );
14308
14308
  return 1;
14309
14309
  }
14310
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
14310
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
14311
14311
  if (outPath) {
14312
14312
  const result2 = await client.runs.logs(runId, { all: true });
14313
- const logs = result2.entries.filter((line) => _chunk6RCWXWL2js.logLevelReaches.call(void 0, _chunk6RCWXWL2js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk6RCWXWL2js.classifyLogLine.call(void 0, line).line);
14313
+ const logs = result2.entries.filter((line) => _chunk7CM4UYZQjs.logLevelReaches.call(void 0, _chunk7CM4UYZQjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk7CM4UYZQjs.classifyLogLine.call(void 0, line).line);
14314
14314
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14315
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
14315
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
14316
14316
  {
14317
14317
  runId: result2.runId,
14318
14318
  log_path: outPath,
@@ -14335,7 +14335,7 @@ async function handleRunLogs(args) {
14335
14335
  ]
14336
14336
  }
14337
14337
  },
14338
- { json: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args) }
14338
+ { json: _chunkWQU6JKI7js.argsWantJson.call(void 0, args) }
14339
14339
  );
14340
14340
  return 0;
14341
14341
  }
@@ -14366,7 +14366,7 @@ async function handleRunLogs(args) {
14366
14366
  }
14367
14367
  };
14368
14368
  const text = buildRunLogsText(filteredResult);
14369
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
14369
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
14370
14370
  {
14371
14371
  runId: result.runId,
14372
14372
  totalCount: result.totalCount,
@@ -14390,7 +14390,7 @@ async function handleRunLogs(args) {
14390
14390
  render: { sections: [{ title: "run logs", lines: entries }] }
14391
14391
  },
14392
14392
  {
14393
- json: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args),
14393
+ json: _chunkWQU6JKI7js.argsWantJson.call(void 0, args),
14394
14394
  text
14395
14395
  }
14396
14396
  );
@@ -14414,7 +14414,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14414
14414
  );
14415
14415
  }
14416
14416
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14417
- (entry) => _chunk6RCWXWL2js.logLevelReaches.call(void 0, _chunk6RCWXWL2js.classifyLogLine.call(void 0, entry.line).level, logLevel)
14417
+ (entry) => _chunk7CM4UYZQjs.logLevelReaches.call(void 0, _chunk7CM4UYZQjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14418
14418
  );
14419
14419
  const selected = matching.slice(-limit);
14420
14420
  const olderMatchesExist = matching.length > selected.length;
@@ -14424,7 +14424,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14424
14424
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _483 => _483.at, 'call', _484 => _484(-1), 'optionalAccess', _485 => _485.seq]), () => ( null)),
14425
14425
  truncated: result.truncated || olderMatchesExist,
14426
14426
  hasMore: olderMatchesExist,
14427
- nextCursor: olderMatchesExist ? _chunk6RCWXWL2js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14427
+ nextCursor: olderMatchesExist ? _chunk7CM4UYZQjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14428
14428
  };
14429
14429
  }
14430
14430
  async function handleRunEventSearch(args) {
@@ -14491,7 +14491,7 @@ ${usage2}`);
14491
14491
  namespace,
14492
14492
  ...backend ? { backend } : {}
14493
14493
  } : void 0;
14494
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
14494
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
14495
14495
  const result = await client.runs.searchEvents({
14496
14496
  ...runId ? { runId } : {},
14497
14497
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14564,7 +14564,7 @@ ${renderedDetails}` : ""}`;
14564
14564
  String(limit),
14565
14565
  "--json"
14566
14566
  ].join(" ") : null;
14567
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
14567
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
14568
14568
  {
14569
14569
  events,
14570
14570
  nextCursor: result.nextCursor,
@@ -14575,14 +14575,14 @@ ${renderedDetails}` : ""}`;
14575
14575
  render: { sections: [{ title: "runtime events", lines }] }
14576
14576
  },
14577
14577
  {
14578
- json: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args),
14578
+ json: _chunkWQU6JKI7js.argsWantJson.call(void 0, args),
14579
14579
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14580
14580
  }
14581
14581
  );
14582
14582
  return 0;
14583
14583
  }
14584
14584
  function buildRunLogsText(result) {
14585
- const lines = result.entries.map((line) => _chunk6RCWXWL2js.classifyLogLine.call(void 0, line).line);
14585
+ const lines = result.entries.map((line) => _chunk7CM4UYZQjs.classifyLogLine.call(void 0, line).line);
14586
14586
  if (result.warning) {
14587
14587
  if (lines.length > 0) lines.push("");
14588
14588
  lines.push(`warning: ${result.warning}`);
@@ -14616,7 +14616,7 @@ async function handleRunStop(args) {
14616
14616
  reason = args[++index];
14617
14617
  }
14618
14618
  }
14619
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
14619
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
14620
14620
  const result = await client.runs.stop(runId, { reason });
14621
14621
  const state = resolveRunStopState(result);
14622
14622
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14631,7 +14631,7 @@ async function handleRunStop(args) {
14631
14631
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14632
14632
  `inspect: deepline runs get ${runId} --full --json`
14633
14633
  ];
14634
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
14634
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
14635
14635
  {
14636
14636
  ...cancelling,
14637
14637
  state,
@@ -14646,7 +14646,7 @@ async function handleRunStop(args) {
14646
14646
  ]
14647
14647
  }
14648
14648
  },
14649
- { json: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args) }
14649
+ { json: _chunkWQU6JKI7js.argsWantJson.call(void 0, args) }
14650
14650
  );
14651
14651
  return 0;
14652
14652
  }
@@ -14663,7 +14663,7 @@ async function handleRunStop(args) {
14663
14663
  ];
14664
14664
  process.stderr.write(`${lines2.join("\n")}
14665
14665
  `);
14666
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
14666
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
14667
14667
  {
14668
14668
  ...result,
14669
14669
  render: {
@@ -14678,7 +14678,7 @@ async function handleRunStop(args) {
14678
14678
  ]
14679
14679
  }
14680
14680
  },
14681
- { json: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args) }
14681
+ { json: _chunkWQU6JKI7js.argsWantJson.call(void 0, args) }
14682
14682
  );
14683
14683
  return 1;
14684
14684
  }
@@ -14689,12 +14689,12 @@ async function handleRunStop(args) {
14689
14689
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14690
14690
  ] : []
14691
14691
  ];
14692
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
14692
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
14693
14693
  {
14694
14694
  ...result,
14695
14695
  render: { sections: [{ title: "run stop", lines }] }
14696
14696
  },
14697
- { json: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args) }
14697
+ { json: _chunkWQU6JKI7js.argsWantJson.call(void 0, args) }
14698
14698
  );
14699
14699
  return 0;
14700
14700
  }
@@ -14744,18 +14744,18 @@ async function handleRunStopAll(args) {
14744
14744
  reason = args[++index];
14745
14745
  }
14746
14746
  }
14747
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
14747
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
14748
14748
  if (dryRun) {
14749
14749
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14750
14750
  const lines2 = buildStopAllDryRunTextLines(result2);
14751
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
14751
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
14752
14752
  {
14753
14753
  ...result2,
14754
14754
  render: {
14755
14755
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14756
14756
  }
14757
14757
  },
14758
- { json: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14758
+ { json: _chunkWQU6JKI7js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14759
14759
  ` }
14760
14760
  );
14761
14761
  return 0;
@@ -14768,17 +14768,17 @@ async function handleRunStopAll(args) {
14768
14768
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14769
14769
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14770
14770
  ];
14771
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
14771
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
14772
14772
  {
14773
14773
  ...result,
14774
14774
  render: { sections: [{ title: "workspace stop-all", lines }] }
14775
14775
  },
14776
- { json: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args) }
14776
+ { json: _chunkWQU6JKI7js.argsWantJson.call(void 0, args) }
14777
14777
  );
14778
14778
  return result.failed > 0 || result.partial ? 1 : 0;
14779
14779
  }
14780
14780
  async function handleRunExport(args) {
14781
- const selection = _chunkSR5XJPYZjs.parseJsonFields.call(void 0, args, "export");
14781
+ const selection = _chunkWQU6JKI7js.parseJsonFields.call(void 0, args, "export");
14782
14782
  args = selection.args;
14783
14783
  const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
14784
14784
  let runId;
@@ -14837,16 +14837,16 @@ async function handleRunExport(args) {
14837
14837
  "INVALID_ARGUMENT"
14838
14838
  );
14839
14839
  }
14840
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
14840
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
14841
14841
  let status = await client.getPlayStatus(runId, { full: true });
14842
14842
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14843
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkSR5XJPYZjs.argsWantJson.call(void 0, args));
14843
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkWQU6JKI7js.argsWantJson.call(void 0, args));
14844
14844
  try {
14845
14845
  await waitForPlayCompletionByWatch({
14846
14846
  client,
14847
14847
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14848
14848
  workflowId: runId,
14849
- jsonOutput: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args),
14849
+ jsonOutput: _chunkWQU6JKI7js.argsWantJson.call(void 0, args),
14850
14850
  emitLogs: false,
14851
14851
  waitTimeoutMs,
14852
14852
  startedAt: Date.now(),
@@ -14946,8 +14946,8 @@ async function handleRunExport(args) {
14946
14946
  "utf-8"
14947
14947
  );
14948
14948
  }
14949
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0, payload, {
14950
- json: _chunkSR5XJPYZjs.argsWantJson.call(void 0, args),
14949
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0, payload, {
14950
+ json: _chunkWQU6JKI7js.argsWantJson.call(void 0, args),
14951
14951
  fields: selection.fields,
14952
14952
  text: `${lines.join("\n")}
14953
14953
  `
@@ -14968,10 +14968,10 @@ async function handlePlayGet(args) {
14968
14968
  );
14969
14969
  return 2;
14970
14970
  }
14971
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
14971
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
14972
14972
  const explicitJson = args.includes("--json");
14973
14973
  const sourceOutput = args.includes("--source");
14974
- const jsonOutput = sourceOutput ? explicitJson : _chunkSR5XJPYZjs.argsWantJson.call(void 0, args);
14974
+ const jsonOutput = sourceOutput ? explicitJson : _chunkWQU6JKI7js.argsWantJson.call(void 0, args);
14975
14975
  const requestedRevisionFlags = [
14976
14976
  args.includes("--working"),
14977
14977
  args.includes("--live"),
@@ -15031,7 +15031,7 @@ async function handlePlayGet(args) {
15031
15031
  }
15032
15032
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15033
15033
  if (jsonOutput) {
15034
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, {
15034
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, {
15035
15035
  ...detail,
15036
15036
  ...materializedFile ? {
15037
15037
  message: loadedMessage,
@@ -15118,8 +15118,8 @@ async function handlePlayVersions(args) {
15118
15118
  console.error("Usage: deepline plays versions --name <name> [--json]");
15119
15119
  return 1;
15120
15120
  }
15121
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
15122
- const jsonOutput = _chunkSR5XJPYZjs.argsWantJson.call(void 0, args);
15121
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
15122
+ const jsonOutput = _chunkWQU6JKI7js.argsWantJson.call(void 0, args);
15123
15123
  await assertCanonicalNamedPlayReference(client, playName, {
15124
15124
  command: "versions"
15125
15125
  });
@@ -15127,7 +15127,7 @@ async function handlePlayVersions(args) {
15127
15127
  parseReferencedPlayTarget2(playName).playName
15128
15128
  );
15129
15129
  if (jsonOutput) {
15130
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, { versions });
15130
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, { versions });
15131
15131
  return 0;
15132
15132
  }
15133
15133
  if (versions.length === 0) {
@@ -15159,9 +15159,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
15159
15159
  "signals"
15160
15160
  ];
15161
15161
  async function handlePlayList(args) {
15162
- const jsonOutput = _chunkSR5XJPYZjs.argsWantJson.call(void 0, args);
15162
+ const jsonOutput = _chunkWQU6JKI7js.argsWantJson.call(void 0, args);
15163
15163
  const showCost = args.includes("--show-cost");
15164
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
15164
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
15165
15165
  const categoriesIndex = args.indexOf("--categories");
15166
15166
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _521 => _521[categoriesIndex + 1], 'optionalAccess', _522 => _522.trim, 'call', _523 => _523()]) : void 0;
15167
15167
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15258,7 +15258,7 @@ async function handlePlayList(args) {
15258
15258
  lines.push("List truncated \u2014 more plays are available.");
15259
15259
  lines.push(`Next page: ${nextPage}`);
15260
15260
  }
15261
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
15261
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
15262
15262
  {
15263
15263
  plays,
15264
15264
  count: plays.length,
@@ -15276,7 +15276,7 @@ async function handlePlayList(args) {
15276
15276
  }
15277
15277
  async function handlePlayPin(args, pinned) {
15278
15278
  const target = _optionalChain([args, 'access', _530 => _530.find, 'call', _531 => _531((arg) => !arg.startsWith("-")), 'optionalAccess', _532 => _532.trim, 'call', _533 => _533()]);
15279
- const jsonOutput = _chunkSR5XJPYZjs.argsWantJson.call(void 0, args);
15279
+ const jsonOutput = _chunkWQU6JKI7js.argsWantJson.call(void 0, args);
15280
15280
  const dryRun = args.includes("--dry-run");
15281
15281
  if (!target) {
15282
15282
  console.error(
@@ -15294,11 +15294,11 @@ async function handlePlayPin(args, pinned) {
15294
15294
  const name = parsedTarget.playName;
15295
15295
  const plan = { name, pinned, dryRun };
15296
15296
  if (dryRun) {
15297
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, plan);
15297
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, plan);
15298
15298
  return 0;
15299
15299
  }
15300
- const result = await new (0, _chunk6RCWXWL2js.DeeplineClient)().setPlayPinned(name, pinned);
15301
- if (jsonOutput) _chunkSR5XJPYZjs.printCompactJson.call(void 0, result);
15300
+ const result = await new (0, _chunk7CM4UYZQjs.DeeplineClient)().setPlayPinned(name, pinned);
15301
+ if (jsonOutput) _chunkWQU6JKI7js.printCompactJson.call(void 0, result);
15302
15302
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15303
15303
  return 0;
15304
15304
  }
@@ -15314,7 +15314,7 @@ function csvColumnLines(csvInput) {
15314
15314
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
15315
15315
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
15316
15316
  }),
15317
- _chunk6RCWXWL2js.CSV_HEADER_MATCHING_NOTE
15317
+ _chunk7CM4UYZQjs.CSV_HEADER_MATCHING_NOTE
15318
15318
  ];
15319
15319
  }
15320
15320
  function describedPlay(play) {
@@ -15461,12 +15461,12 @@ async function handlePlayGrep(args) {
15461
15461
  console.error("Usage: deepline plays grep <query> [--json]");
15462
15462
  return 1;
15463
15463
  }
15464
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
15464
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
15465
15465
  const results = (await client.listPlays({ grep: query })).map(
15466
15466
  summarizePlayGrepResult
15467
15467
  );
15468
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
15469
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, {
15468
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
15469
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, {
15470
15470
  plays: results,
15471
15471
  count: results.length,
15472
15472
  query,
@@ -15489,7 +15489,7 @@ async function handlePlayGrep(args) {
15489
15489
  return 0;
15490
15490
  }
15491
15491
  async function handlePlayDescribe(args) {
15492
- const selection = _chunkSR5XJPYZjs.parseJsonFields.call(void 0, args, "describe");
15492
+ const selection = _chunkWQU6JKI7js.parseJsonFields.call(void 0, args, "describe");
15493
15493
  args = selection.args;
15494
15494
  const playName = args[0];
15495
15495
  if (!playName) {
@@ -15523,8 +15523,8 @@ async function handlePlayDescribe(args) {
15523
15523
  `deepline plays check ${playName}`,
15524
15524
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15525
15525
  ];
15526
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
15527
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, {
15526
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
15527
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, {
15528
15528
  ok: false,
15529
15529
  error: { message },
15530
15530
  next
@@ -15538,7 +15538,7 @@ async function handlePlayDescribe(args) {
15538
15538
  }
15539
15539
  return 2;
15540
15540
  }
15541
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
15541
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
15542
15542
  await assertCanonicalNamedPlayReference(client, playName, {
15543
15543
  command: "describe"
15544
15544
  });
@@ -15548,9 +15548,9 @@ async function handlePlayDescribe(args) {
15548
15548
  compact: args.includes("--compact")
15549
15549
  }
15550
15550
  );
15551
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
15552
- if (selection.fields) _chunkSR5XJPYZjs.printJson.call(void 0, play, selection.fields);
15553
- else _chunkSR5XJPYZjs.printCompactJson.call(void 0, play);
15551
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
15552
+ if (selection.fields) _chunkWQU6JKI7js.printJson.call(void 0, play, selection.fields);
15553
+ else _chunkWQU6JKI7js.printCompactJson.call(void 0, play);
15554
15554
  return 0;
15555
15555
  }
15556
15556
  printPlayDescription(play);
@@ -15594,7 +15594,7 @@ async function handlePlaySave(args) {
15594
15594
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15595
15595
  };
15596
15596
  if (options.jsonOutput) {
15597
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, result);
15597
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, result);
15598
15598
  } else {
15599
15599
  console.error(result.message);
15600
15600
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15616,7 +15616,7 @@ async function handlePlaySave(args) {
15616
15616
  };
15617
15617
  if (options.dryRun) {
15618
15618
  if (options.jsonOutput) {
15619
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, dryRun);
15619
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, dryRun);
15620
15620
  } else {
15621
15621
  console.log(`Dry run: ${playName}`);
15622
15622
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15625,7 +15625,7 @@ async function handlePlaySave(args) {
15625
15625
  }
15626
15626
  return 0;
15627
15627
  }
15628
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
15628
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
15629
15629
  try {
15630
15630
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
15631
15631
  "cli.play_save_compile_manifests",
@@ -15661,7 +15661,7 @@ async function handlePlaySave(args) {
15661
15661
  }
15662
15662
  };
15663
15663
  if (options.jsonOutput) {
15664
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, result);
15664
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, result);
15665
15665
  } else {
15666
15666
  console.log(
15667
15667
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15687,7 +15687,7 @@ async function handlePlayPublish(args) {
15687
15687
  }
15688
15688
  const { target: playName, useLatest } = options;
15689
15689
  let revisionId = options.revisionId;
15690
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
15690
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
15691
15691
  if (isFileTarget2(playName)) {
15692
15692
  if (revisionId || useLatest) {
15693
15693
  console.error(
@@ -15719,7 +15719,7 @@ async function handlePlayPublish(args) {
15719
15719
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15720
15720
  };
15721
15721
  if (options.jsonOutput) {
15722
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, result3);
15722
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, result3);
15723
15723
  } else {
15724
15724
  console.error(result3.message);
15725
15725
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15742,7 +15742,7 @@ async function handlePlayPublish(args) {
15742
15742
  };
15743
15743
  if (options.dryRun) {
15744
15744
  if (options.jsonOutput) {
15745
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, dryRun);
15745
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, dryRun);
15746
15746
  } else {
15747
15747
  console.log(`Dry run: ${rootPlayName}`);
15748
15748
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15810,7 +15810,7 @@ async function handlePlayPublish(args) {
15810
15810
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15811
15811
  };
15812
15812
  if (options.jsonOutput) {
15813
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, result2);
15813
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, result2);
15814
15814
  } else {
15815
15815
  printPublishReceipt({
15816
15816
  name: rootPlayName,
@@ -15841,7 +15841,7 @@ async function handlePlayPublish(args) {
15841
15841
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15842
15842
  latest: useLatest
15843
15843
  };
15844
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, result2);
15844
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, result2);
15845
15845
  return 0;
15846
15846
  }
15847
15847
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -15865,7 +15865,7 @@ async function handlePlayPublish(args) {
15865
15865
  revisionId ? { revisionId } : {}
15866
15866
  );
15867
15867
  if (options.jsonOutput) {
15868
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, result);
15868
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, result);
15869
15869
  } else {
15870
15870
  printPublishReceipt({
15871
15871
  name: result.name,
@@ -15905,7 +15905,7 @@ async function handlePlayDelete(args) {
15905
15905
  );
15906
15906
  return 2;
15907
15907
  }
15908
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
15908
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
15909
15909
  let detail;
15910
15910
  try {
15911
15911
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -15929,8 +15929,8 @@ async function handlePlayDelete(args) {
15929
15929
  name: resolvedName,
15930
15930
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
15931
15931
  };
15932
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
15933
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, result2);
15932
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
15933
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, result2);
15934
15934
  } else {
15935
15935
  process.stdout.write(
15936
15936
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -15940,8 +15940,8 @@ async function handlePlayDelete(args) {
15940
15940
  return 0;
15941
15941
  }
15942
15942
  const result = await client.deletePlay(resolvedName);
15943
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
15944
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, result);
15943
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
15944
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, result);
15945
15945
  return result.archived || result.alreadyArchived ? 0 : 4;
15946
15946
  }
15947
15947
  if (result.alreadyArchived) {
@@ -15980,13 +15980,13 @@ async function handlePlayRestore(args) {
15980
15980
  );
15981
15981
  return 2;
15982
15982
  }
15983
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
15983
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
15984
15984
  try {
15985
15985
  const result = await client.restorePlay(
15986
15986
  parseReferencedPlayTarget2(playName).playName
15987
15987
  );
15988
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
15989
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, result);
15988
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
15989
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, result);
15990
15990
  return result.restored || result.alreadyActive ? 0 : 4;
15991
15991
  }
15992
15992
  if (result.alreadyActive) {
@@ -16093,7 +16093,7 @@ Examples:
16093
16093
  ).action(async (target, options) => {
16094
16094
  process.exitCode = await handlePlayCheck([
16095
16095
  target,
16096
- ..._chunkSR5XJPYZjs.jsonFieldArgs.call(void 0, options.json),
16096
+ ..._chunkWQU6JKI7js.jsonFieldArgs.call(void 0, options.json),
16097
16097
  ...options.full ? ["--full"] : []
16098
16098
  ]);
16099
16099
  });
@@ -16321,9 +16321,9 @@ Examples:
16321
16321
  const limit = Number(options.historyLimit);
16322
16322
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16323
16323
  throw new Error("--history-limit must be an integer from 1 to 30.");
16324
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
16324
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
16325
16325
  if (options.binding) {
16326
- _chunkSR5XJPYZjs.printCompactJson.call(void 0,
16326
+ _chunkWQU6JKI7js.printCompactJson.call(void 0,
16327
16327
  await client.getPlayTriggerHistory(options.binding, { limit })
16328
16328
  );
16329
16329
  return;
@@ -16331,7 +16331,7 @@ Examples:
16331
16331
  const result = await client.listPlayTriggerInventory({
16332
16332
  cursor: options.cursor
16333
16333
  });
16334
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, {
16334
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, {
16335
16335
  ...result,
16336
16336
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
16337
16337
  });
@@ -16378,7 +16378,7 @@ Examples:
16378
16378
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16379
16379
  throw new Error("--group-by must be kind or trigger_source.");
16380
16380
  }
16381
- const result = await new (0, _chunk6RCWXWL2js.DeeplineClient)().getPlaysActivity({
16381
+ const result = await new (0, _chunk7CM4UYZQjs.DeeplineClient)().getPlaysActivity({
16382
16382
  timeZone: options.timeZone,
16383
16383
  days,
16384
16384
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16392,7 +16392,7 @@ Examples:
16392
16392
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16393
16393
  );
16394
16394
  }
16395
- _chunkSR5XJPYZjs.printCommandEnvelope.call(void 0,
16395
+ _chunkWQU6JKI7js.printCommandEnvelope.call(void 0,
16396
16396
  { ...result },
16397
16397
  {
16398
16398
  json: options.json || !process.stdout.isTTY,
@@ -16421,7 +16421,7 @@ Examples:
16421
16421
  false
16422
16422
  );
16423
16423
  });
16424
- _chunkUJCEPJQSjs.registerDeprecatedSearchCommand.call(void 0,
16424
+ _chunkQ7EHVVXLjs.registerDeprecatedSearchCommand.call(void 0,
16425
16425
  play,
16426
16426
  (options) => options.all ? ["plays"] : ["prebuilts"]
16427
16427
  );
@@ -16465,7 +16465,7 @@ Examples:
16465
16465
  );
16466
16466
  _chunkMX53GIOBjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16467
16467
  async (target, options) => {
16468
- const ownView = () => handlePlayDescribe(_chunkSR5XJPYZjs.describeArgs.call(void 0, target, options));
16468
+ const ownView = () => handlePlayDescribe(_chunkWQU6JKI7js.describeArgs.call(void 0, target, options));
16469
16469
  const [flagText] = [options.json].filter(
16470
16470
  (value) => typeof value === "string"
16471
16471
  );
@@ -16476,7 +16476,7 @@ Examples:
16476
16476
  process.exitCode = await ownView();
16477
16477
  return;
16478
16478
  }
16479
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-BHXNMNW4.js")));
16479
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-YLIQOYIQ.js")));
16480
16480
  process.exitCode = await describeAnything(
16481
16481
  name,
16482
16482
  {
@@ -16593,7 +16593,7 @@ Examples:
16593
16593
  deepline plays deployments <deployment-id>
16594
16594
  `
16595
16595
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
16596
- async (id, options) => id ? _chunk6NPZL4HAjs.handleDeploymentGet.call(void 0, id, options) : _chunk6NPZL4HAjs.handleDeploymentsList.call(void 0, options)
16596
+ async (id, options) => id ? _chunkEHMD3F4Hjs.handleDeploymentGet.call(void 0, id, options) : _chunkEHMD3F4Hjs.handleDeploymentsList.call(void 0, options)
16597
16597
  );
16598
16598
  addPublishHelp(
16599
16599
  play.command("publish <target>").description(
@@ -16773,7 +16773,7 @@ Examples:
16773
16773
  ).action(async (runId, options) => {
16774
16774
  process.exitCode = await handleRunGet([
16775
16775
  runId,
16776
- ..._chunkSR5XJPYZjs.jsonFieldArgs.call(void 0, options.json),
16776
+ ..._chunkWQU6JKI7js.jsonFieldArgs.call(void 0, options.json),
16777
16777
  ...options.full ? ["--full"] : [],
16778
16778
  ...options.input ? ["--input"] : [],
16779
16779
  ...options.config ? ["--config"] : [],
@@ -17049,7 +17049,7 @@ Examples:
17049
17049
  ...options.allowEmpty ? ["--allow-empty"] : [],
17050
17050
  ...options.wait ? ["--wait"] : [],
17051
17051
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17052
- ..._chunkSR5XJPYZjs.jsonFieldArgs.call(void 0, options.json)
17052
+ ..._chunkWQU6JKI7js.jsonFieldArgs.call(void 0, options.json)
17053
17053
  ]);
17054
17054
  });
17055
17055
  const share = play.command("share").description(
@@ -17215,10 +17215,10 @@ async function handlePlayShareStatus(args) {
17215
17215
  return 2;
17216
17216
  }
17217
17217
  const name = parseReferencedPlayTarget2(target).playName;
17218
- const status = await new (0, _chunk6RCWXWL2js.DeeplineClient)().getSharePage(name);
17218
+ const status = await new (0, _chunk7CM4UYZQjs.DeeplineClient)().getSharePage(name);
17219
17219
  const outputStatus = shareStatusForOutput(status);
17220
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
17221
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, outputStatus);
17220
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
17221
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, outputStatus);
17222
17222
  return 0;
17223
17223
  }
17224
17224
  if (!outputStatus.share) {
@@ -17257,7 +17257,7 @@ async function handlePlaySharePublish(args) {
17257
17257
  return 2;
17258
17258
  }
17259
17259
  const name = parseReferencedPlayTarget2(target).playName;
17260
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
17260
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
17261
17261
  let revisionId = shareFlagValue(args, "--revision-id");
17262
17262
  let resolvedVersion;
17263
17263
  if (!revisionId) {
@@ -17288,8 +17288,8 @@ async function handlePlaySharePublish(args) {
17288
17288
  );
17289
17289
  if (!hasCompleted) {
17290
17290
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17291
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
17292
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, {
17291
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
17292
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, {
17293
17293
  ok: false,
17294
17294
  code: "NO_SUCCESSFUL_RUN",
17295
17295
  message,
@@ -17313,8 +17313,8 @@ async function handlePlaySharePublish(args) {
17313
17313
  };
17314
17314
  if (args.includes("--dry-run")) {
17315
17315
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17316
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
17317
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, plan);
17316
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
17317
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, plan);
17318
17318
  } else {
17319
17319
  console.log(
17320
17320
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17324,8 +17324,8 @@ async function handlePlaySharePublish(args) {
17324
17324
  }
17325
17325
  const status = await client.publishSharePage(name, request);
17326
17326
  const outputStatus = shareStatusForOutput(status);
17327
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
17328
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, outputStatus);
17327
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
17328
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, outputStatus);
17329
17329
  return 0;
17330
17330
  }
17331
17331
  const urls = shareUrlFields(outputStatus);
@@ -17356,9 +17356,9 @@ async function handlePlayShareUpdate(args) {
17356
17356
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17357
17357
  ...seoIndexing ? { seoIndexing } : {}
17358
17358
  };
17359
- const status = await new (0, _chunk6RCWXWL2js.DeeplineClient)().updateSharePage(name, request);
17360
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
17361
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, status);
17359
+ const status = await new (0, _chunk7CM4UYZQjs.DeeplineClient)().updateSharePage(name, request);
17360
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
17361
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, status);
17362
17362
  return 0;
17363
17363
  }
17364
17364
  console.log(`Updated ${name} share settings.`);
@@ -17373,7 +17373,7 @@ async function handlePlayShareRegenerate(args) {
17373
17373
  return 2;
17374
17374
  }
17375
17375
  const name = parseReferencedPlayTarget2(target).playName;
17376
- const client = new (0, _chunk6RCWXWL2js.DeeplineClient)();
17376
+ const client = new (0, _chunk7CM4UYZQjs.DeeplineClient)();
17377
17377
  let revisionId = shareFlagValue(args, "--revision-id");
17378
17378
  const versionFlag = shareFlagValue(args, "--version");
17379
17379
  if (!revisionId && versionFlag) {
@@ -17390,8 +17390,8 @@ async function handlePlayShareRegenerate(args) {
17390
17390
  revisionId ? { revisionId } : {}
17391
17391
  );
17392
17392
  const outputStatus = shareStatusForOutput(status);
17393
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
17394
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, outputStatus);
17393
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
17394
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, outputStatus);
17395
17395
  return 0;
17396
17396
  }
17397
17397
  const urls = shareUrlFields(outputStatus);
@@ -17416,9 +17416,9 @@ async function handlePlayShareUnpublish(args) {
17416
17416
  return 2;
17417
17417
  }
17418
17418
  const name = parseReferencedPlayTarget2(target).playName;
17419
- const status = await new (0, _chunk6RCWXWL2js.DeeplineClient)().unpublishSharePage(name);
17420
- if (_chunkSR5XJPYZjs.argsWantJson.call(void 0, args)) {
17421
- _chunkSR5XJPYZjs.printCompactJson.call(void 0, status);
17419
+ const status = await new (0, _chunk7CM4UYZQjs.DeeplineClient)().unpublishSharePage(name);
17420
+ if (_chunkWQU6JKI7js.argsWantJson.call(void 0, args)) {
17421
+ _chunkWQU6JKI7js.printCompactJson.call(void 0, status);
17422
17422
  return 0;
17423
17423
  }
17424
17424
  console.log(`Unpublished ${name}; the public page has been removed.`);