deepline 0.3.378 → 0.3.379

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 (91) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  3. package/dist/cli/auth-5I2DJ7WL.js +39 -0
  4. package/dist/cli/{auth-Z4TP4SLF.mjs → auth-POBP5XKE.mjs} +4 -4
  5. package/dist/cli/{billing-2LO7C4OI.js → billing-CDJTZO3L.js} +73 -73
  6. package/dist/cli/{billing-JR4QD4UG.mjs → billing-VSJ474AZ.mjs} +4 -4
  7. package/dist/cli/{chunk-2TEN5IOR.mjs → chunk-5W7JQ3A2.mjs} +4 -4
  8. package/dist/cli/{chunk-FJ3JEYFJ.mjs → chunk-5YEUVV6X.mjs} +1 -1
  9. package/dist/cli/{chunk-M5HYHFIV.mjs → chunk-5YUA2FQG.mjs} +1 -1
  10. package/dist/cli/{chunk-YSX6SSGW.js → chunk-6L5GTW3W.js} +8 -8
  11. package/dist/cli/{chunk-F7MGUP72.js → chunk-A3E7TCQK.js} +48 -48
  12. package/dist/cli/{chunk-AIRU4XTZ.js → chunk-BB6WCOYN.js} +9 -9
  13. package/dist/cli/{chunk-A7VUVXW6.js → chunk-CXS5E3NC.js} +50 -50
  14. package/dist/cli/{chunk-C47TYIAO.mjs → chunk-DB5IP3TV.mjs} +2 -2
  15. package/dist/cli/{chunk-V4TN5MXK.mjs → chunk-GW6EUKW7.mjs} +2 -2
  16. package/dist/cli/{chunk-ISVKLCGQ.js → chunk-HKDAWSF6.js} +6 -6
  17. package/dist/cli/{chunk-ZNGZPKXT.js → chunk-IKXDUCBB.js} +4 -4
  18. package/dist/cli/{chunk-DNORWBSX.mjs → chunk-J72WM3BY.mjs} +2 -2
  19. package/dist/cli/{chunk-WHEDPNPN.js → chunk-KIF5UJZ3.js} +15 -15
  20. package/dist/cli/{chunk-BUHZUAEB.js → chunk-MPFXZAIY.js} +8 -8
  21. package/dist/cli/{chunk-LHBPC7PZ.js → chunk-PD2WRTDS.js} +1 -1
  22. package/dist/cli/{chunk-FH3WJOCD.js → chunk-Q7QP3XU2.js} +2 -2
  23. package/dist/cli/{chunk-NGYNHAAC.js → chunk-T3ZCYEAL.js} +60 -60
  24. package/dist/cli/{chunk-EEXP6W4X.mjs → chunk-TA37L7MY.mjs} +2 -2
  25. package/dist/cli/{chunk-3OPJYNS2.mjs → chunk-U3EL4YRM.mjs} +3 -3
  26. package/dist/cli/{chunk-3H2Q377V.mjs → chunk-UNFRQUUM.mjs} +6 -6
  27. package/dist/cli/{chunk-JORLGBPA.mjs → chunk-W5I5QMMM.mjs} +1 -1
  28. package/dist/cli/{chunk-UCDAF3TI.js → chunk-XFR73M2S.js} +224 -224
  29. package/dist/cli/{chunk-KTZFOS57.mjs → chunk-XI5NWXP4.mjs} +1 -1
  30. package/dist/cli/{chunk-4YJHPJKQ.mjs → chunk-YQQSGVAD.mjs} +1 -1
  31. package/dist/cli/{chunk-4DAUDGO2.js → chunk-ZHGVS5YI.js} +26 -26
  32. package/dist/cli/{chunk-F2RPSYZC.mjs → chunk-ZNU5IDYI.mjs} +5 -5
  33. package/dist/cli/{csv-EQV4HK57.mjs → csv-D47DWKWT.mjs} +3 -3
  34. package/dist/cli/{csv-KEA6YLCU.js → csv-N2RLF7AD.js} +12 -12
  35. package/dist/cli/{db-BSD7XVVZ.js → db-IAT26T3O.js} +29 -29
  36. package/dist/cli/{db-CXWVEYF5.mjs → db-XB6L44DP.mjs} +4 -4
  37. package/dist/cli/{describe-5PIG7QJH.mjs → describe-77RUVCP4.mjs} +8 -8
  38. package/dist/cli/{describe-FG5JQWSB.js → describe-FHCK2IPO.js} +16 -16
  39. package/dist/cli/{executions-IPUW4YTD.mjs → executions-5LZ6VLOO.mjs} +4 -4
  40. package/dist/cli/{executions-HLJQEBSX.js → executions-5V3FSXDR.js} +6 -6
  41. package/dist/cli/{feedback-P2IEMRL7.mjs → feedback-JNBF5H7D.mjs} +3 -3
  42. package/dist/cli/{feedback-6QQVVCSY.js → feedback-KV765KDS.js} +7 -7
  43. package/dist/cli/{git-JD6UFEWE.mjs → git-YJUJAHZE.mjs} +4 -4
  44. package/dist/cli/git-YYRUQD4K.js +23 -0
  45. package/dist/cli/index.js +83 -83
  46. package/dist/cli/index.mjs +32 -32
  47. package/dist/cli/{legacy-noops-R6FG44MY.mjs → legacy-noops-QKV3SQ6S.mjs} +4 -4
  48. package/dist/cli/{legacy-noops-JZAEUIHY.js → legacy-noops-V3QK7KGI.js} +7 -7
  49. package/dist/cli/{monitors-AEDYTXDI.js → monitors-K33FLA4Q.js} +85 -85
  50. package/dist/cli/{monitors-7YTG6MUN.mjs → monitors-MH624SEV.mjs} +4 -4
  51. package/dist/cli/{org-CXXZEKOE.js → org-SLSIKOID.js} +64 -64
  52. package/dist/cli/{org-HFFNL6B2.mjs → org-V7K4VKWJ.mjs} +4 -4
  53. package/dist/cli/play-F7CATHIR.js +155 -0
  54. package/dist/cli/{play-2LBL27HQ.mjs → play-ZW3YPHCZ.mjs} +7 -7
  55. package/dist/cli/{providers-TSQ4IKGL.mjs → providers-3HJQ7S56.mjs} +4 -4
  56. package/dist/cli/{providers-FYPDMYJD.js → providers-M44EZVKP.js} +7 -7
  57. package/dist/cli/{quickstart-X4EK2VUO.mjs → quickstart-H5CP5Z4N.mjs} +3 -3
  58. package/dist/cli/{quickstart-OLB32KQD.js → quickstart-MTSZ5GDD.js} +5 -5
  59. package/dist/cli/{search-DC3MH3SK.mjs → search-FQBY77R7.mjs} +5 -5
  60. package/dist/cli/search-M3ZEKREB.js +26 -0
  61. package/dist/cli/{secrets-ND2ZJBTH.js → secrets-4E6RJKMK.js} +13 -13
  62. package/dist/cli/{secrets-YS5G7TKA.mjs → secrets-JT7RDYJD.mjs} +4 -4
  63. package/dist/cli/{sessions-FJYWJT4E.mjs → sessions-5I3VX7GL.mjs} +4 -4
  64. package/dist/cli/{sessions-ZAWZ23R4.js → sessions-7QUTJ4IX.js} +5 -5
  65. package/dist/cli/{settings-VGSUOAPQ.js → settings-KOMLTFDA.js} +74 -74
  66. package/dist/cli/{settings-2PBXGFTK.mjs → settings-WLFMKYRS.mjs} +7 -7
  67. package/dist/cli/{setup-SBBMRM7G.js → setup-DSRHIY6M.js} +41 -41
  68. package/dist/cli/{setup-5EGLDCAF.mjs → setup-KUDUUQ77.mjs} +6 -6
  69. package/dist/cli/skills-HNAWVPEB.js +28 -0
  70. package/dist/cli/{skills-HGC3BDBU.mjs → skills-RNQS5ABC.mjs} +4 -4
  71. package/dist/cli/tools-IB4WTAKE.js +40 -0
  72. package/dist/cli/{tools-UTLVTTWW.mjs → tools-S5QDXE5W.mjs} +6 -6
  73. package/dist/cli/update-I2ZBIT52.js +28 -0
  74. package/dist/cli/{update-IFOQMPAX.mjs → update-MT6PD7B5.mjs} +6 -6
  75. package/dist/cli/{workflow-PAM64TA4.js → workflow-QABG23XQ.js} +15 -15
  76. package/dist/cli/{workflow-JYUD2UHZ.mjs → workflow-WWEWE4WP.mjs} +5 -5
  77. package/dist/index.js +6 -6
  78. package/dist/index.mjs +3 -3
  79. package/dist/install-integrity.json +72 -72
  80. package/dist/release.d.mts +1 -1
  81. package/dist/release.d.ts +1 -1
  82. package/dist/release.js +2 -2
  83. package/dist/release.mjs +1 -1
  84. package/package.json +1 -1
  85. package/dist/cli/auth-GC4ZJ6HO.js +0 -39
  86. package/dist/cli/git-24TVX47T.js +0 -23
  87. package/dist/cli/play-BTDMU7WD.js +0 -155
  88. package/dist/cli/search-MHDPSHQG.js +0 -26
  89. package/dist/cli/skills-OSEKG6FD.js +0 -28
  90. package/dist/cli/tools-57UDLV2I.js +0 -40
  91. package/dist/cli/update-5YD7PJFE.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 _chunkBUHZUAEBjs = require('./chunk-BUHZUAEB.js');
22
+ var _chunkMPFXZAIYjs = require('./chunk-MPFXZAIY.js');
23
23
 
24
24
 
25
25
 
26
- var _chunk4DAUDGO2js = require('./chunk-4DAUDGO2.js');
26
+ var _chunkZHGVS5YIjs = require('./chunk-ZHGVS5YI.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 _chunkAIRU4XTZjs = require('./chunk-AIRU4XTZ.js');
45
+ var _chunkBB6WCOYNjs = require('./chunk-BB6WCOYN.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 _chunkISVKLCGQjs = require('./chunk-ISVKLCGQ.js');
78
+ var _chunkHKDAWSF6js = require('./chunk-HKDAWSF6.js');
79
79
 
80
80
 
81
- var _chunkZNGZPKXTjs = require('./chunk-ZNGZPKXT.js');
81
+ var _chunkIKXDUCBBjs = require('./chunk-IKXDUCBB.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
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
2065
+ _chunkHKDAWSF6js.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
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
2109
+ _chunkHKDAWSF6js.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, _chunkAIRU4XTZjs.DeeplineClient)().getPlaySettings(options.play),
2134
+ await new (0, _chunkBB6WCOYNjs.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
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
2165
+ _chunkHKDAWSF6js.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, _chunkAIRU4XTZjs.DeeplineClient)().updatePlaySettings(play, patch),
2186
+ await new (0, _chunkBB6WCOYNjs.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, _chunkAIRU4XTZjs.DeeplineClient)().listPlaySettingsPaths({
2212
+ const page = await new (0, _chunkBB6WCOYNjs.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}` : ""}` : null;
2218
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
2218
+ _chunkHKDAWSF6js.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, _chunkAIRU4XTZjs.DeeplineClient)();
2269
+ const client = new (0, _chunkBB6WCOYNjs.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
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
2331
+ _chunkHKDAWSF6js.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
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
2459
+ _chunkHKDAWSF6js.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
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
2472
+ _chunkHKDAWSF6js.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
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
2502
+ _chunkHKDAWSF6js.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, _chunkAIRU4XTZjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2521
+ await new (0, _chunkBB6WCOYNjs.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").addHelpText("after", help2).action(async (options) => {
2553
2553
  printView(
2554
- await new (0, _chunkAIRU4XTZjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2554
+ await new (0, _chunkBB6WCOYNjs.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, _chunkAIRU4XTZjs.DeeplineClient)().getPlayTriggerConfig(
2598
+ const current = await new (0, _chunkBB6WCOYNjs.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 = _chunkAIRU4XTZjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2675
+ var RUN_LOGS_KIND_HELP = _chunkBB6WCOYNjs.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 (_chunkISVKLCGQjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2813
- _chunkISVKLCGQjs.printJsonError.call(void 0,
2814
- Object.assign(new (0, _chunkAIRU4XTZjs.RunEventQueryInputError)(error.message), {
2812
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2813
+ _chunkHKDAWSF6js.printJsonError.call(void 0,
2814
+ Object.assign(new (0, _chunkBB6WCOYNjs.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, _chunkAIRU4XTZjs.RunEventQueryInputError)(
2858
+ throw new (0, _chunkBB6WCOYNjs.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, _chunkAIRU4XTZjs.RunEventQueryInputError)(
2865
+ throw new (0, _chunkBB6WCOYNjs.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, _chunkAIRU4XTZjs.RunEventQueryInputError)(
2879
+ throw new (0, _chunkBB6WCOYNjs.RunEventQueryInputError)(
2880
2880
  `Unsupported query flag ${flag}. ${correction}`
2881
2881
  );
2882
2882
  }
2883
2883
  if (runId !== void 0) {
2884
- throw new (0, _chunkAIRU4XTZjs.RunEventQueryInputError)(
2884
+ throw new (0, _chunkBB6WCOYNjs.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, _chunkAIRU4XTZjs.RunEventQueryInputError)(
2892
+ throw new (0, _chunkBB6WCOYNjs.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, _chunkAIRU4XTZjs.RunEventQueryInputError)(
2905
+ throw new (0, _chunkBB6WCOYNjs.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, _chunkAIRU4XTZjs.RunEventQueryInputError)(
2911
+ throw new (0, _chunkBB6WCOYNjs.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, _chunkAIRU4XTZjs.RunEventQueryInputError)(
2916
+ throw new (0, _chunkBB6WCOYNjs.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, _chunkAIRU4XTZjs.RunEventQueryInputError)(
2924
+ throw new (0, _chunkBB6WCOYNjs.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 = _chunkAIRU4XTZjs.normalizeRunEventOperationRequest.call(void 0, body);
2959
+ const request = _chunkBB6WCOYNjs.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, _chunkAIRU4XTZjs.RunEventQueryInputError)(
2963
+ throw new (0, _chunkBB6WCOYNjs.RunEventQueryInputError)(
2964
2964
  "--runtime-backend must be daytona or modal."
2965
2965
  );
2966
2966
  }
2967
2967
  if (backend && !namespace) {
2968
- throw new (0, _chunkAIRU4XTZjs.RunEventQueryInputError)(
2968
+ throw new (0, _chunkBB6WCOYNjs.RunEventQueryInputError)(
2969
2969
  "--runtime-backend requires --runtime-namespace."
2970
2970
  );
2971
2971
  }
@@ -3012,12 +3012,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3012
3012
  const failure = error instanceof Error ? error : new Error(String(error));
3013
3013
  const record3 = failure;
3014
3014
  const status = record3.statusCode;
3015
- const exitCode = error instanceof _chunkAIRU4XTZjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3015
+ const exitCode = error instanceof _chunkBB6WCOYNjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3016
3016
  const diagnostic = Object.assign(failure, {
3017
3017
  exitCode,
3018
3018
  retryable: exitCode === 5
3019
3019
  });
3020
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) _chunkISVKLCGQjs.printJsonError.call(void 0, diagnostic);
3020
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) _chunkHKDAWSF6js.printJsonError.call(void 0, diagnostic);
3021
3021
  else console.error(`Error: ${diagnostic.message}`);
3022
3022
  return exitCode;
3023
3023
  }
@@ -3032,7 +3032,7 @@ async function executeRunEventQuery(args, resource) {
3032
3032
  ...criteria
3033
3033
  } = request;
3034
3034
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3035
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
3035
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
3036
3036
  let result;
3037
3037
  if (request.operation === "fields") {
3038
3038
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3098,13 +3098,13 @@ async function executeRunEventQuery(args, resource) {
3098
3098
  lines.push(`Next page: ${nextPage}`);
3099
3099
  }
3100
3100
  }
3101
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
3101
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
3102
3102
  {
3103
3103
  ...result,
3104
3104
  ...nextPage ? { next: { page: nextPage } } : {},
3105
3105
  render: { sections: [{ title: `run ${resource}`, lines }] }
3106
3106
  },
3107
- { json: _chunkISVKLCGQjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3107
+ { json: _chunkHKDAWSF6js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3108
3108
  ` }
3109
3109
  );
3110
3110
  return 0;
@@ -3924,7 +3924,7 @@ function checkedRunExample(plays, target) {
3924
3924
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3925
3925
  const base = `deepline plays run --file ${quote(target)}`;
3926
3926
  return {
3927
- command: `${base}${_chunkAIRU4XTZjs.playInputExampleArgs.call(void 0, schema)}`,
3927
+ command: `${base}${_chunkBB6WCOYNjs.playInputExampleArgs.call(void 0, schema)}`,
3928
3928
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema."
3929
3929
  };
3930
3930
  }
@@ -4022,7 +4022,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4022
4022
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4023
4023
  );
4024
4024
  }
4025
- const response = await new (0, _chunkAIRU4XTZjs.DeeplineClient)().runs.getReceipts(runId, {
4025
+ const response = await new (0, _chunkBB6WCOYNjs.DeeplineClient)().runs.getReceipts(runId, {
4026
4026
  keys
4027
4027
  });
4028
4028
  const failed = response.receipts.filter(
@@ -4034,7 +4034,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4034
4034
  JSON.stringify(response, null, 2) + "\n",
4035
4035
  { flag: "wx", mode: 384 }
4036
4036
  );
4037
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
4037
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
4038
4038
  {
4039
4039
  runId,
4040
4040
  out: options.out,
@@ -4044,7 +4044,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4044
4044
  { json: true }
4045
4045
  );
4046
4046
  } else {
4047
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4047
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4048
4048
  }
4049
4049
  if (failed)
4050
4050
  process.exitCode = response.receipts.some(
@@ -4083,7 +4083,7 @@ includes nextCommand when another page is available.
4083
4083
  { exitCode: 2 }
4084
4084
  );
4085
4085
  }
4086
- const page = await new (0, _chunkAIRU4XTZjs.DeeplineClient)().runs.children(parentRunId, {
4086
+ const page = await new (0, _chunkBB6WCOYNjs.DeeplineClient)().runs.children(parentRunId, {
4087
4087
  launchKey: options.launchKey,
4088
4088
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4089
4089
  limit
@@ -4098,7 +4098,7 @@ includes nextCommand when another page is available.
4098
4098
  "--limit",
4099
4099
  String(limit)
4100
4100
  ].join(" ") : null;
4101
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
4101
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
4102
4102
  {
4103
4103
  parentRunId,
4104
4104
  launchKey: options.launchKey,
@@ -4134,7 +4134,7 @@ async function handleRunsHistory(options) {
4134
4134
  throw new Error("--limit must be a positive integer.");
4135
4135
  }
4136
4136
  }
4137
- const page = await new (0, _chunkAIRU4XTZjs.DeeplineClient)().runs.history({
4137
+ const page = await new (0, _chunkBB6WCOYNjs.DeeplineClient)().runs.history({
4138
4138
  cursor: options.cursor,
4139
4139
  orgId: options.org,
4140
4140
  search: options.search,
@@ -4150,7 +4150,7 @@ async function handleRunsHistory(options) {
4150
4150
  );
4151
4151
  }
4152
4152
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4153
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
4153
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
4154
4154
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4155
4155
  options.json ? { json: true } : {}
4156
4156
  );
@@ -4202,12 +4202,12 @@ async function runRunsRerunCommand(runId, options) {
4202
4202
  return 1;
4203
4203
  }
4204
4204
  }
4205
- const result = await new (0, _chunkAIRU4XTZjs.DeeplineClient)().runs.rerun(runId, {
4205
+ const result = await new (0, _chunkBB6WCOYNjs.DeeplineClient)().runs.rerun(runId, {
4206
4206
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4207
4207
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4208
4208
  });
4209
- if (_chunkISVKLCGQjs.shouldEmitJson.call(void 0, options.json)) {
4210
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, result, { json: true });
4209
+ if (_chunkHKDAWSF6js.shouldEmitJson.call(void 0, options.json)) {
4210
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, result, { json: true });
4211
4211
  } else {
4212
4212
  console.log(
4213
4213
  result.deduplicated === true ? `
@@ -4475,7 +4475,7 @@ function projectRunDatasetCell(value) {
4475
4475
  const logicalValue = parseSerializedDatasetValue(value);
4476
4476
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
4477
4477
  if (typeof logicalValue === "object") {
4478
- return _chunkISVKLCGQjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4478
+ return _chunkHKDAWSF6js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4479
4479
  }
4480
4480
  return logicalValue;
4481
4481
  }
@@ -6892,7 +6892,7 @@ function renderOutcome(outcome) {
6892
6892
  function printResult2(input) {
6893
6893
  const failed = input.status === "failed" || input.status === "cancelled";
6894
6894
  if (failed) process.exitCode = 1;
6895
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
6895
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
6896
6896
  {
6897
6897
  deployment: { ...input.deployment, status: input.status },
6898
6898
  plays: input.outcomes,
@@ -6917,7 +6917,7 @@ async function handlePlaysDeploy(directory, options) {
6917
6917
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6918
6918
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6919
6919
  });
6920
- const { http, config } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
6920
+ const { http, config } = _chunkHKDAWSF6js.getAuthedHttpClient.call(void 0, );
6921
6921
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6922
6922
  const startDeployment = () => http.post("/api/v2/deployments", {
6923
6923
  deliveryId,
@@ -6944,7 +6944,7 @@ async function handlePlaysDeploy(directory, options) {
6944
6944
  },
6945
6945
  {
6946
6946
  bundle: bundleDeployPlayFile,
6947
- fetchImpl: _chunkZNGZPKXTjs.fetchWithDeploymentProtection,
6947
+ fetchImpl: _chunkIKXDUCBBjs.fetchWithDeploymentProtection,
6948
6948
  // The plays are already here: "opening" the source is naming it.
6949
6949
  openSource: async () => ({
6950
6950
  open: async () => ({ repoRoot: root })
@@ -7512,7 +7512,7 @@ function parseInputFlagValue(raw) {
7512
7512
  return raw;
7513
7513
  }
7514
7514
  function parsePlayRunOptions(args, initialInput = null) {
7515
- const selection = _chunkISVKLCGQjs.parseJsonFields.call(void 0, args, "run");
7515
+ const selection = _chunkHKDAWSF6js.parseJsonFields.call(void 0, args, "run");
7516
7516
  args = selection.args;
7517
7517
  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.";
7518
7518
  let filePath = null;
@@ -7522,7 +7522,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7522
7522
  let revisionSelector = null;
7523
7523
  const watch = !args.includes("--no-wait");
7524
7524
  const dryRun = args.includes("--dry-run");
7525
- let jsonOutput = dryRun ? _chunkISVKLCGQjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkISVKLCGQjs.argsWantJson.call(void 0, args);
7525
+ let jsonOutput = dryRun ? _chunkHKDAWSF6js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkHKDAWSF6js.argsWantJson.call(void 0, args);
7526
7526
  const fullJson = args.includes("--full");
7527
7527
  const force = args.includes("--force");
7528
7528
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -7569,7 +7569,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7569
7569
  "--log-level requires one of: debug, info, warn, error."
7570
7570
  );
7571
7571
  }
7572
- const parsed = _chunkAIRU4XTZjs.parseLogLevel.call(void 0, value);
7572
+ const parsed = _chunkBB6WCOYNjs.parseLogLevel.call(void 0, value);
7573
7573
  if (!parsed) {
7574
7574
  throw new Error(
7575
7575
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -7880,7 +7880,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7880
7880
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
7881
7881
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
7882
7882
  );
7883
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkAIRU4XTZjs.parseLogLevel.call(void 0, options.logLevel);
7883
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkBB6WCOYNjs.parseLogLevel.call(void 0, options.logLevel);
7884
7884
  if (!logLevel)
7885
7885
  throw new Error("--log-level requires one of: debug, info, warn, error.");
7886
7886
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -7894,13 +7894,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7894
7894
  if (debugAlias || debugMapLatency && logLevel === "info")
7895
7895
  logLevel = "debug";
7896
7896
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
7897
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkISVKLCGQjs.parseJsonFields.call(void 0,
7898
- [...fullJson ? ["--full"] : [], ..._chunkISVKLCGQjs.jsonFieldArgs.call(void 0, options.json)],
7897
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkHKDAWSF6js.parseJsonFields.call(void 0,
7898
+ [...fullJson ? ["--full"] : [], ..._chunkHKDAWSF6js.jsonFieldArgs.call(void 0, options.json)],
7899
7899
  "run"
7900
7900
  ).fields;
7901
7901
  const watch = options.wait === false ? false : base.watch;
7902
7902
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
7903
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkISVKLCGQjs.argsWantJson.call(void 0, []) : explicitJson;
7903
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkHKDAWSF6js.argsWantJson.call(void 0, []) : explicitJson;
7904
7904
  const verboseLogs = Boolean(
7905
7905
  debugAlias || logLevel === "debug" || debugMapLatency
7906
7906
  );
@@ -7945,7 +7945,7 @@ function playAuthoringGraphPath(parent, filePath) {
7945
7945
  // src/cli/renderers/local-play-execution.ts
7946
7946
  function renderLocalPlayExecutionPlan(plan, options = {}) {
7947
7947
  if (options.dryRun) {
7948
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7948
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7949
7949
  return;
7950
7950
  }
7951
7951
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -8909,7 +8909,7 @@ function playStatusErrorText(status) {
8909
8909
  function isRetryablePendingStartFailure(status) {
8910
8910
  if (status.status !== "failed") return false;
8911
8911
  if (status.runId && status.runId !== "pending") return false;
8912
- return _chunkAIRU4XTZjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8912
+ return _chunkBB6WCOYNjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8913
8913
  }
8914
8914
  function pendingStartFailureStatus(input) {
8915
8915
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -8936,13 +8936,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
8936
8936
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
8937
8937
  function watchSurfaceReaches(state, provenance, level) {
8938
8938
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
8939
- if (!_chunkAIRU4XTZjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8939
+ if (!_chunkBB6WCOYNjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8940
8940
  return false;
8941
8941
  }
8942
- if (_chunkAIRU4XTZjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8942
+ if (_chunkBB6WCOYNjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8943
8943
  return true;
8944
8944
  }
8945
- return state.verbose === true && _chunkAIRU4XTZjs.logProvenanceReaches.call(void 0, provenance, "debug");
8945
+ return state.verbose === true && _chunkBB6WCOYNjs.logProvenanceReaches.call(void 0, provenance, "debug");
8946
8946
  }
8947
8947
  function getEventPayload(event) {
8948
8948
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -9444,7 +9444,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
9444
9444
  }
9445
9445
  function openPlayDashboard(dashboardUrl, open2) {
9446
9446
  if (open2 && dashboardUrl) {
9447
- _chunkISVKLCGQjs.openInBrowser.call(void 0, dashboardUrl);
9447
+ _chunkHKDAWSF6js.openInBrowser.call(void 0, dashboardUrl);
9448
9448
  }
9449
9449
  }
9450
9450
  function printPlayLogLines(input) {
@@ -9506,7 +9506,7 @@ async function waitForPlayCompletionByWatch(input) {
9506
9506
  billing: false
9507
9507
  });
9508
9508
  } catch (error) {
9509
- if (_chunkAIRU4XTZjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9509
+ if (_chunkBB6WCOYNjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9510
9510
  return null;
9511
9511
  }
9512
9512
  throw error;
@@ -9695,7 +9695,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9695
9695
  billing: false
9696
9696
  });
9697
9697
  } catch (error) {
9698
- if (_chunkAIRU4XTZjs.isTransientPlayRunReadError.call(void 0, error)) {
9698
+ if (_chunkBB6WCOYNjs.isTransientPlayRunReadError.call(void 0, error)) {
9699
9699
  return null;
9700
9700
  }
9701
9701
  throw error;
@@ -9903,7 +9903,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9903
9903
  lastPhase
9904
9904
  });
9905
9905
  }
9906
- if (lastKnownWorkflowId && _chunkAIRU4XTZjs.isTransientPlayRunReadError.call(void 0, error)) {
9906
+ if (lastKnownWorkflowId && _chunkBB6WCOYNjs.isTransientPlayRunReadError.call(void 0, error)) {
9907
9907
  if (timeout) {
9908
9908
  clearTimeout(timeout);
9909
9909
  }
@@ -9939,7 +9939,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9939
9939
  onRunAdmitted: confirmAdmission
9940
9940
  });
9941
9941
  }
9942
- if (!lastKnownWorkflowId && _chunkAIRU4XTZjs.isTransientPlayRunReadError.call(void 0, error)) {
9942
+ if (!lastKnownWorkflowId && _chunkBB6WCOYNjs.isTransientPlayRunReadError.call(void 0, error)) {
9943
9943
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
9944
9944
  phase: "cli.play_start_stream_transient_failure",
9945
9945
  ms: Date.now() - startedAt,
@@ -10038,7 +10038,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10038
10038
  "logs"
10039
10039
  ]);
10040
10040
  function formatPlayLogLine(rawLine, state) {
10041
- const classified = _chunkAIRU4XTZjs.classifyLogLine.call(void 0, rawLine);
10041
+ const classified = _chunkBB6WCOYNjs.classifyLogLine.call(void 0, rawLine);
10042
10042
  const line = classified.line;
10043
10043
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10044
10044
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _308 => _308[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10053,14 +10053,14 @@ function formatPlayLogLine(rawLine, state) {
10053
10053
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10054
10054
  const providerWait = formatProviderCapacityWaitLogLine(line);
10055
10055
  if (providerWait && !state.verbose) {
10056
- return _chunkAIRU4XTZjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10056
+ return _chunkBB6WCOYNjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10057
10057
  }
10058
10058
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10059
10059
  if (mapProgress && !state.verbose) {
10060
- return _chunkAIRU4XTZjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10060
+ return _chunkBB6WCOYNjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10061
10061
  }
10062
10062
  if (/\[worker\] picked up run\b/.test(message)) {
10063
- if (!_chunkAIRU4XTZjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10063
+ if (!_chunkBB6WCOYNjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10064
10064
  return null;
10065
10065
  }
10066
10066
  if (state.emittedRunnerStarted) {
@@ -10073,7 +10073,7 @@ function formatPlayLogLine(rawLine, state) {
10073
10073
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10074
10074
  );
10075
10075
  if (mapStart) {
10076
- if (!_chunkAIRU4XTZjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10076
+ if (!_chunkBB6WCOYNjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10077
10077
  return null;
10078
10078
  }
10079
10079
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10083,7 +10083,7 @@ function formatPlayLogLine(rawLine, state) {
10083
10083
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10084
10084
  );
10085
10085
  if (mapDone) {
10086
- if (!_chunkAIRU4XTZjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10086
+ if (!_chunkBB6WCOYNjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10087
10087
  return null;
10088
10088
  }
10089
10089
  const [, results, executed, cached] = mapDone;
@@ -11370,7 +11370,7 @@ function formatRecentRunLogLines(value) {
11370
11370
  (line) => typeof line === "string"
11371
11371
  );
11372
11372
  if (tail.length === 0) return [];
11373
- const shown = tail.map((line) => _chunkAIRU4XTZjs.classifyLogLine.call(void 0, line)).filter(
11373
+ const shown = tail.map((line) => _chunkBB6WCOYNjs.classifyLogLine.call(void 0, line)).filter(
11374
11374
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
11375
11375
  ).slice(-8);
11376
11376
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11653,7 +11653,7 @@ function writePlayResult(status, jsonOutput, options) {
11653
11653
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _389 => _389.hits]), () => ( null));
11654
11654
  if (jsonOutput) {
11655
11655
  const payload2 = _optionalChain([options, 'optionalAccess', _390 => _390.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11656
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
11656
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
11657
11657
  hits ? { ...payload2, hits } : payload2,
11658
11658
  { json: true, fields: _optionalChain([options, 'optionalAccess', _391 => _391.jsonFields]) }
11659
11659
  );
@@ -11669,7 +11669,7 @@ function writePlayResult(status, jsonOutput, options) {
11669
11669
  ...buildPlayCompletionTextLines(status),
11670
11670
  ...formatRunHitsLines(hits)
11671
11671
  ];
11672
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, displayPackage, {
11672
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, displayPackage, {
11673
11673
  json: false,
11674
11674
  text: `${lines2.join("\n")}
11675
11675
  `
@@ -11720,7 +11720,7 @@ function writePlayResult(status, jsonOutput, options) {
11720
11720
  lines.push(...buildBillingRollupTextLines(status));
11721
11721
  const compact = compactPlayStatus(status);
11722
11722
  const payload = _optionalChain([options, 'optionalAccess', _393 => _393.fullJson]) ? status : compact;
11723
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
11723
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
11724
11724
  {
11725
11725
  ...payload,
11726
11726
  render: {
@@ -12490,7 +12490,7 @@ function writeStartedPlayRun(input) {
12490
12490
  dashboardUrl: input.dashboardUrl,
12491
12491
  package: input.package
12492
12492
  };
12493
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12493
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12494
12494
  json: true,
12495
12495
  fields: input.jsonFields
12496
12496
  });
@@ -12512,7 +12512,7 @@ function writeStartedPlayRun(input) {
12512
12512
  input.progress.writeLine(output2, process.stdout);
12513
12513
  return;
12514
12514
  }
12515
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, input.package, {
12515
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, input.package, {
12516
12516
  json: false,
12517
12517
  text: `${output2}
12518
12518
  `
@@ -12541,7 +12541,7 @@ function writeStartedPlayRun(input) {
12541
12541
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12542
12542
  ];
12543
12543
  if (input.jsonOutput) {
12544
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12544
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12545
12545
  return;
12546
12546
  }
12547
12547
  if (input.dashboardUrl) {
@@ -12552,7 +12552,7 @@ function writeStartedPlayRun(input) {
12552
12552
  input.progress.writeLine(output, process.stdout);
12553
12553
  return;
12554
12554
  }
12555
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
12555
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
12556
12556
  {
12557
12557
  ...payload,
12558
12558
  render: { sections: [{ title: "play run", lines }] }
@@ -12562,7 +12562,7 @@ function writeStartedPlayRun(input) {
12562
12562
  );
12563
12563
  }
12564
12564
  function parsePlayCheckOptions(args) {
12565
- const selection = _chunkISVKLCGQjs.parseJsonFields.call(void 0, args, "check");
12565
+ const selection = _chunkHKDAWSF6js.parseJsonFields.call(void 0, args, "check");
12566
12566
  args = selection.args;
12567
12567
  const target = args[0];
12568
12568
  if (!target || target.startsWith("-")) {
@@ -12574,7 +12574,7 @@ function parsePlayCheckOptions(args) {
12574
12574
  if (arg !== "--json" && arg !== "--full")
12575
12575
  throw new Error(`Unknown plays check option: ${arg}`);
12576
12576
  }
12577
- const jsonOutput = _chunkISVKLCGQjs.argsWantJson.call(void 0, args);
12577
+ const jsonOutput = _chunkHKDAWSF6js.argsWantJson.call(void 0, args);
12578
12578
  return {
12579
12579
  target,
12580
12580
  jsonOutput,
@@ -12650,7 +12650,7 @@ ${PLAY_PUBLISH_USAGE}`
12650
12650
  useLatest,
12651
12651
  expectedArtifactHash,
12652
12652
  dryRun,
12653
- jsonOutput: _chunkISVKLCGQjs.argsWantJson.call(void 0, args)
12653
+ jsonOutput: _chunkHKDAWSF6js.argsWantJson.call(void 0, args)
12654
12654
  };
12655
12655
  }
12656
12656
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12691,7 +12691,7 @@ ${PLAY_SAVE_USAGE}`);
12691
12691
  target,
12692
12692
  expectedArtifactHash,
12693
12693
  dryRun,
12694
- jsonOutput: _chunkISVKLCGQjs.argsWantJson.call(void 0, args)
12694
+ jsonOutput: _chunkHKDAWSF6js.argsWantJson.call(void 0, args)
12695
12695
  };
12696
12696
  }
12697
12697
  function printScheduledPlayCapacity(capacity) {
@@ -12902,7 +12902,7 @@ function printBundledRuntimeWarning(bundle) {
12902
12902
  async function handlePlayCheck(args) {
12903
12903
  const options = parsePlayCheckOptions(args);
12904
12904
  if (!isFileTarget2(options.target)) {
12905
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
12905
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
12906
12906
  try {
12907
12907
  await assertCanonicalNamedPlayReference(client, options.target, {
12908
12908
  command: "check"
@@ -12931,7 +12931,7 @@ async function handlePlayCheck(args) {
12931
12931
  },
12932
12932
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12933
12933
  };
12934
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, result, {
12934
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, result, {
12935
12935
  json: options.jsonOutput,
12936
12936
  fields: options.jsonFields,
12937
12937
  text: renderPlayCheckOutput(result) + "\n"
@@ -12941,7 +12941,7 @@ async function handlePlayCheck(args) {
12941
12941
  const resolved = _path.resolve.call(void 0, options.target);
12942
12942
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12943
12943
  if (options.jsonOutput) {
12944
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
12944
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
12945
12945
  {
12946
12946
  kind: "play_check",
12947
12947
  checked: "named_contract",
@@ -12983,7 +12983,7 @@ async function handlePlayCheck(args) {
12983
12983
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
12984
12984
  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
12985
12985
  });
12986
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, output, {
12986
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, output, {
12987
12987
  json: options.jsonOutput,
12988
12988
  fields: options.jsonFields,
12989
12989
  text: renderPlayCheckOutput(output) + "\n"
@@ -13037,7 +13037,7 @@ async function checkOneExportedPlay(input) {
13037
13037
  }
13038
13038
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
13039
13039
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
13040
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
13040
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
13041
13041
  const integrationMode = resolveEvalIntegrationMode();
13042
13042
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
13043
13043
  playName: node.playName,
@@ -13114,7 +13114,7 @@ async function handleFileBackedRun(options, hooks) {
13114
13114
  );
13115
13115
  return 0;
13116
13116
  }
13117
- client = new (0, _chunkAIRU4XTZjs.DeeplineClient)(playRunClientOptions(options));
13117
+ client = new (0, _chunkBB6WCOYNjs.DeeplineClient)(playRunClientOptions(options));
13118
13118
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
13119
13119
  if (canDeferCompilerManifest) {
13120
13120
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
@@ -13310,7 +13310,7 @@ async function handleNamedRun(options, hooks) {
13310
13310
  if (options.target.kind !== "name") {
13311
13311
  throw new Error("Expected a named play run target.");
13312
13312
  }
13313
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)(playRunClientOptions(options));
13313
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)(playRunClientOptions(options));
13314
13314
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
13315
13315
  const playName = options.target.name;
13316
13316
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -13708,10 +13708,10 @@ function renderRunOverviewText(overview, extras = {}) {
13708
13708
  );
13709
13709
  return `${lines.join("\n")}
13710
13710
 
13711
- ${_chunkISVKLCGQjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13711
+ ${_chunkHKDAWSF6js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13712
13712
  }
13713
13713
  async function handleRunGet(args) {
13714
- const selection = _chunkISVKLCGQjs.parseJsonFields.call(void 0,
13714
+ const selection = _chunkHKDAWSF6js.parseJsonFields.call(void 0,
13715
13715
  args,
13716
13716
  args.includes("--config") ? "config" : "get"
13717
13717
  );
@@ -13724,7 +13724,7 @@ async function handleRunGet(args) {
13724
13724
  console.error(error instanceof Error ? error.message : usage2);
13725
13725
  return 1;
13726
13726
  }
13727
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
13727
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
13728
13728
  if (args.includes("--config")) {
13729
13729
  if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
13730
13730
  console.error(
@@ -13738,7 +13738,7 @@ async function handleRunGet(args) {
13738
13738
  "This server does not support recorded configuration reads."
13739
13739
  );
13740
13740
  }
13741
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
13741
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
13742
13742
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13743
13743
  { json: true, fields: selection.fields }
13744
13744
  );
@@ -13746,7 +13746,7 @@ async function handleRunGet(args) {
13746
13746
  }
13747
13747
  if (args.includes("--input")) {
13748
13748
  const input = await client.getRunInput(runId);
13749
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, input, { json: true });
13749
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, input, { json: true });
13750
13750
  return 0;
13751
13751
  }
13752
13752
  const full = args.includes("--full");
@@ -13760,8 +13760,8 @@ async function handleRunGet(args) {
13760
13760
  full: true,
13761
13761
  failedLogs: args.includes("--log-failed")
13762
13762
  }) : status;
13763
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
13764
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
13763
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
13764
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
13765
13765
  full ? legacyStatus : compactPlayStatus(legacyStatus),
13766
13766
  { json: true, fields: selection.fields }
13767
13767
  );
@@ -13777,8 +13777,8 @@ async function handleRunGet(args) {
13777
13777
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
13778
13778
  ]);
13779
13779
  const hitLines = formatRunHitsLines(hits);
13780
- const json = _chunkISVKLCGQjs.argsWantJson.call(void 0, args);
13781
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
13780
+ const json = _chunkHKDAWSF6js.argsWantJson.call(void 0, args);
13781
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
13782
13782
  {
13783
13783
  ...overview,
13784
13784
  credits,
@@ -13881,9 +13881,9 @@ async function handleRunLifecycleStatus(args) {
13881
13881
  console.error(error instanceof Error ? error.message : usage2);
13882
13882
  return 1;
13883
13883
  }
13884
- const status = await new (0, _chunkAIRU4XTZjs.DeeplineClient)().runs.status(runId);
13885
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
13886
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, status, { json: true });
13884
+ const status = await new (0, _chunkBB6WCOYNjs.DeeplineClient)().runs.status(runId);
13885
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
13886
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, status, { json: true });
13887
13887
  return 0;
13888
13888
  }
13889
13889
  if (!status.available) {
@@ -13923,7 +13923,7 @@ async function handleRunsRerun(args) {
13923
13923
  console.error(error instanceof Error ? error.message : usage2);
13924
13924
  return 1;
13925
13925
  }
13926
- const options = { json: _chunkISVKLCGQjs.argsWantJson.call(void 0, args) };
13926
+ const options = { json: _chunkHKDAWSF6js.argsWantJson.call(void 0, args) };
13927
13927
  for (let index = 0; index < args.length; index += 1) {
13928
13928
  if (args[index] === "--idempotency-key") {
13929
13929
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -13988,8 +13988,8 @@ ${usage2}
13988
13988
  Discover Plays: ${next.discover}
13989
13989
  Active runs: ${next.running}`
13990
13990
  );
13991
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
13992
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
13991
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
13992
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
13993
13993
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
13994
13994
  { json: true }
13995
13995
  );
@@ -14004,7 +14004,7 @@ Active runs: ${next.running}`
14004
14004
  console.error("--offset requires --play.");
14005
14005
  return 1;
14006
14006
  }
14007
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
14007
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
14008
14008
  const page = await client.runs.listPage({
14009
14009
  ...playName ? { play: playName } : {},
14010
14010
  ...statusFilter ? { status: statusFilter } : {},
@@ -14073,7 +14073,7 @@ Active runs: ${next.running}`
14073
14073
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14074
14074
  );
14075
14075
  }
14076
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
14076
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
14077
14077
  {
14078
14078
  runs,
14079
14079
  count: runs.length,
@@ -14087,7 +14087,7 @@ Active runs: ${next.running}`
14087
14087
  },
14088
14088
  render: { sections: [{ title: "runs", lines }] }
14089
14089
  },
14090
- { json: _chunkISVKLCGQjs.argsWantJson.call(void 0, args) }
14090
+ { json: _chunkHKDAWSF6js.argsWantJson.call(void 0, args) }
14091
14091
  );
14092
14092
  return 0;
14093
14093
  }
@@ -14117,7 +14117,7 @@ async function handleRunTail(args) {
14117
14117
  console.error("--log-level requires one of: debug, info, warn, error.");
14118
14118
  return 1;
14119
14119
  }
14120
- const parsed = _chunkAIRU4XTZjs.parseLogLevel.call(void 0, value);
14120
+ const parsed = _chunkBB6WCOYNjs.parseLogLevel.call(void 0, value);
14121
14121
  if (!parsed) {
14122
14122
  console.error(
14123
14123
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14155,9 +14155,9 @@ async function handleRunTail(args) {
14155
14155
  );
14156
14156
  return 1;
14157
14157
  }
14158
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
14158
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
14159
14159
  const jsonLines = args.includes("--jsonl");
14160
- const jsonOutput = !jsonLines && _chunkISVKLCGQjs.argsWantJson.call(void 0, args);
14160
+ const jsonOutput = !jsonLines && _chunkHKDAWSF6js.argsWantJson.call(void 0, args);
14161
14161
  const compact = args.includes("--compact");
14162
14162
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14163
14163
  const compactState = {
@@ -14238,7 +14238,7 @@ async function handleRunLogs(args) {
14238
14238
  ]);
14239
14239
  const cursorIndex = args.indexOf("--cursor");
14240
14240
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14241
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkAIRU4XTZjs.isRunLogsCursor.call(void 0, cursorValue));
14241
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkBB6WCOYNjs.isRunLogsCursor.call(void 0, cursorValue));
14242
14242
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14243
14243
  return handleRunEventSearch(args);
14244
14244
  }
@@ -14272,7 +14272,7 @@ async function handleRunLogs(args) {
14272
14272
  console.error("--log-level requires one of: debug, info, warn, error.");
14273
14273
  return 1;
14274
14274
  }
14275
- const parsed = _chunkAIRU4XTZjs.parseLogLevel.call(void 0, value);
14275
+ const parsed = _chunkBB6WCOYNjs.parseLogLevel.call(void 0, value);
14276
14276
  if (!parsed) {
14277
14277
  console.error(
14278
14278
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14319,12 +14319,12 @@ async function handleRunLogs(args) {
14319
14319
  );
14320
14320
  return 1;
14321
14321
  }
14322
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
14322
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
14323
14323
  if (outPath) {
14324
14324
  const result2 = await client.runs.logs(runId, { all: true });
14325
- const logs = result2.entries.filter((line) => _chunkAIRU4XTZjs.logLevelReaches.call(void 0, _chunkAIRU4XTZjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkAIRU4XTZjs.classifyLogLine.call(void 0, line).line);
14325
+ const logs = result2.entries.filter((line) => _chunkBB6WCOYNjs.logLevelReaches.call(void 0, _chunkBB6WCOYNjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkBB6WCOYNjs.classifyLogLine.call(void 0, line).line);
14326
14326
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14327
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
14327
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
14328
14328
  {
14329
14329
  runId: result2.runId,
14330
14330
  log_path: outPath,
@@ -14347,7 +14347,7 @@ async function handleRunLogs(args) {
14347
14347
  ]
14348
14348
  }
14349
14349
  },
14350
- { json: _chunkISVKLCGQjs.argsWantJson.call(void 0, args) }
14350
+ { json: _chunkHKDAWSF6js.argsWantJson.call(void 0, args) }
14351
14351
  );
14352
14352
  return 0;
14353
14353
  }
@@ -14378,7 +14378,7 @@ async function handleRunLogs(args) {
14378
14378
  }
14379
14379
  };
14380
14380
  const text = buildRunLogsText(filteredResult);
14381
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
14381
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
14382
14382
  {
14383
14383
  runId: result.runId,
14384
14384
  totalCount: result.totalCount,
@@ -14402,7 +14402,7 @@ async function handleRunLogs(args) {
14402
14402
  render: { sections: [{ title: "run logs", lines: entries }] }
14403
14403
  },
14404
14404
  {
14405
- json: _chunkISVKLCGQjs.argsWantJson.call(void 0, args),
14405
+ json: _chunkHKDAWSF6js.argsWantJson.call(void 0, args),
14406
14406
  text
14407
14407
  }
14408
14408
  );
@@ -14426,7 +14426,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14426
14426
  );
14427
14427
  }
14428
14428
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14429
- (entry) => _chunkAIRU4XTZjs.logLevelReaches.call(void 0, _chunkAIRU4XTZjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14429
+ (entry) => _chunkBB6WCOYNjs.logLevelReaches.call(void 0, _chunkBB6WCOYNjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14430
14430
  );
14431
14431
  const selected = matching.slice(-limit);
14432
14432
  const olderMatchesExist = matching.length > selected.length;
@@ -14436,7 +14436,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14436
14436
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _483 => _483.at, 'call', _484 => _484(-1), 'optionalAccess', _485 => _485.seq]), () => ( null)),
14437
14437
  truncated: result.truncated || olderMatchesExist,
14438
14438
  hasMore: olderMatchesExist,
14439
- nextCursor: olderMatchesExist ? _chunkAIRU4XTZjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14439
+ nextCursor: olderMatchesExist ? _chunkBB6WCOYNjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14440
14440
  };
14441
14441
  }
14442
14442
  async function handleRunEventSearch(args) {
@@ -14503,7 +14503,7 @@ ${usage2}`);
14503
14503
  namespace,
14504
14504
  ...backend ? { backend } : {}
14505
14505
  } : void 0;
14506
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
14506
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
14507
14507
  const result = await client.runs.searchEvents({
14508
14508
  ...runId ? { runId } : {},
14509
14509
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14575,7 +14575,7 @@ ${renderedDetails}` : ""}`;
14575
14575
  "--limit",
14576
14576
  String(limit)
14577
14577
  ].join(" ") : null;
14578
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
14578
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
14579
14579
  {
14580
14580
  events,
14581
14581
  nextCursor: result.nextCursor,
@@ -14586,14 +14586,14 @@ ${renderedDetails}` : ""}`;
14586
14586
  render: { sections: [{ title: "runtime events", lines }] }
14587
14587
  },
14588
14588
  {
14589
- json: _chunkISVKLCGQjs.argsWantJson.call(void 0, args),
14589
+ json: _chunkHKDAWSF6js.argsWantJson.call(void 0, args),
14590
14590
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14591
14591
  }
14592
14592
  );
14593
14593
  return 0;
14594
14594
  }
14595
14595
  function buildRunLogsText(result) {
14596
- const lines = result.entries.map((line) => _chunkAIRU4XTZjs.classifyLogLine.call(void 0, line).line);
14596
+ const lines = result.entries.map((line) => _chunkBB6WCOYNjs.classifyLogLine.call(void 0, line).line);
14597
14597
  if (result.warning) {
14598
14598
  if (lines.length > 0) lines.push("");
14599
14599
  lines.push(`warning: ${result.warning}`);
@@ -14627,7 +14627,7 @@ async function handleRunStop(args) {
14627
14627
  reason = args[++index];
14628
14628
  }
14629
14629
  }
14630
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
14630
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
14631
14631
  const result = await client.runs.stop(runId, { reason });
14632
14632
  const state = resolveRunStopState(result);
14633
14633
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14642,7 +14642,7 @@ async function handleRunStop(args) {
14642
14642
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14643
14643
  `inspect: deepline runs get ${runId} --full`
14644
14644
  ];
14645
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
14645
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
14646
14646
  {
14647
14647
  ...cancelling,
14648
14648
  state,
@@ -14657,7 +14657,7 @@ async function handleRunStop(args) {
14657
14657
  ]
14658
14658
  }
14659
14659
  },
14660
- { json: _chunkISVKLCGQjs.argsWantJson.call(void 0, args) }
14660
+ { json: _chunkHKDAWSF6js.argsWantJson.call(void 0, args) }
14661
14661
  );
14662
14662
  return 0;
14663
14663
  }
@@ -14674,7 +14674,7 @@ async function handleRunStop(args) {
14674
14674
  ];
14675
14675
  process.stderr.write(`${lines2.join("\n")}
14676
14676
  `);
14677
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
14677
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
14678
14678
  {
14679
14679
  ...result,
14680
14680
  render: {
@@ -14689,7 +14689,7 @@ async function handleRunStop(args) {
14689
14689
  ]
14690
14690
  }
14691
14691
  },
14692
- { json: _chunkISVKLCGQjs.argsWantJson.call(void 0, args) }
14692
+ { json: _chunkHKDAWSF6js.argsWantJson.call(void 0, args) }
14693
14693
  );
14694
14694
  return 1;
14695
14695
  }
@@ -14700,12 +14700,12 @@ async function handleRunStop(args) {
14700
14700
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14701
14701
  ] : []
14702
14702
  ];
14703
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
14703
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
14704
14704
  {
14705
14705
  ...result,
14706
14706
  render: { sections: [{ title: "run stop", lines }] }
14707
14707
  },
14708
- { json: _chunkISVKLCGQjs.argsWantJson.call(void 0, args) }
14708
+ { json: _chunkHKDAWSF6js.argsWantJson.call(void 0, args) }
14709
14709
  );
14710
14710
  return 0;
14711
14711
  }
@@ -14755,18 +14755,18 @@ async function handleRunStopAll(args) {
14755
14755
  reason = args[++index];
14756
14756
  }
14757
14757
  }
14758
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
14758
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
14759
14759
  if (dryRun) {
14760
14760
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14761
14761
  const lines2 = buildStopAllDryRunTextLines(result2);
14762
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
14762
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
14763
14763
  {
14764
14764
  ...result2,
14765
14765
  render: {
14766
14766
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14767
14767
  }
14768
14768
  },
14769
- { json: _chunkISVKLCGQjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14769
+ { json: _chunkHKDAWSF6js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14770
14770
  ` }
14771
14771
  );
14772
14772
  return 0;
@@ -14779,17 +14779,17 @@ async function handleRunStopAll(args) {
14779
14779
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14780
14780
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14781
14781
  ];
14782
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
14782
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
14783
14783
  {
14784
14784
  ...result,
14785
14785
  render: { sections: [{ title: "workspace stop-all", lines }] }
14786
14786
  },
14787
- { json: _chunkISVKLCGQjs.argsWantJson.call(void 0, args) }
14787
+ { json: _chunkHKDAWSF6js.argsWantJson.call(void 0, args) }
14788
14788
  );
14789
14789
  return result.failed > 0 || result.partial ? 1 : 0;
14790
14790
  }
14791
14791
  async function handleRunExport(args) {
14792
- const selection = _chunkISVKLCGQjs.parseJsonFields.call(void 0, args, "export");
14792
+ const selection = _chunkHKDAWSF6js.parseJsonFields.call(void 0, args, "export");
14793
14793
  args = selection.args;
14794
14794
  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]";
14795
14795
  let runId;
@@ -14848,16 +14848,16 @@ async function handleRunExport(args) {
14848
14848
  "INVALID_ARGUMENT"
14849
14849
  );
14850
14850
  }
14851
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
14851
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
14852
14852
  let status = await client.getPlayStatus(runId, { full: true });
14853
14853
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14854
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkISVKLCGQjs.argsWantJson.call(void 0, args));
14854
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkHKDAWSF6js.argsWantJson.call(void 0, args));
14855
14855
  try {
14856
14856
  await waitForPlayCompletionByWatch({
14857
14857
  client,
14858
14858
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14859
14859
  workflowId: runId,
14860
- jsonOutput: _chunkISVKLCGQjs.argsWantJson.call(void 0, args),
14860
+ jsonOutput: _chunkHKDAWSF6js.argsWantJson.call(void 0, args),
14861
14861
  emitLogs: false,
14862
14862
  waitTimeoutMs,
14863
14863
  startedAt: Date.now(),
@@ -14957,8 +14957,8 @@ async function handleRunExport(args) {
14957
14957
  "utf-8"
14958
14958
  );
14959
14959
  }
14960
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0, payload, {
14961
- json: _chunkISVKLCGQjs.argsWantJson.call(void 0, args),
14960
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0, payload, {
14961
+ json: _chunkHKDAWSF6js.argsWantJson.call(void 0, args),
14962
14962
  fields: selection.fields,
14963
14963
  text: `${lines.join("\n")}
14964
14964
  `
@@ -14979,10 +14979,10 @@ async function handlePlayGet(args) {
14979
14979
  );
14980
14980
  return 2;
14981
14981
  }
14982
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
14982
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
14983
14983
  const explicitJson = args.includes("--json");
14984
14984
  const sourceOutput = args.includes("--source");
14985
- const jsonOutput = sourceOutput ? explicitJson : _chunkISVKLCGQjs.argsWantJson.call(void 0, args);
14985
+ const jsonOutput = sourceOutput ? explicitJson : _chunkHKDAWSF6js.argsWantJson.call(void 0, args);
14986
14986
  const requestedRevisionFlags = [
14987
14987
  args.includes("--working"),
14988
14988
  args.includes("--live"),
@@ -15042,7 +15042,7 @@ async function handlePlayGet(args) {
15042
15042
  }
15043
15043
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15044
15044
  if (jsonOutput) {
15045
- _chunkISVKLCGQjs.printCompactJson.call(void 0, {
15045
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, {
15046
15046
  ...detail,
15047
15047
  ...materializedFile ? {
15048
15048
  message: loadedMessage,
@@ -15134,8 +15134,8 @@ async function handlePlayVersions(args) {
15134
15134
  console.error("Usage: deepline plays versions --name <name> [--json]");
15135
15135
  return 1;
15136
15136
  }
15137
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
15138
- const jsonOutput = _chunkISVKLCGQjs.argsWantJson.call(void 0, args);
15137
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
15138
+ const jsonOutput = _chunkHKDAWSF6js.argsWantJson.call(void 0, args);
15139
15139
  await assertCanonicalNamedPlayReference(client, playName, {
15140
15140
  command: "versions"
15141
15141
  });
@@ -15143,7 +15143,7 @@ async function handlePlayVersions(args) {
15143
15143
  parseReferencedPlayTarget2(playName).playName
15144
15144
  );
15145
15145
  if (jsonOutput) {
15146
- _chunkISVKLCGQjs.printCompactJson.call(void 0, { versions });
15146
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, { versions });
15147
15147
  return 0;
15148
15148
  }
15149
15149
  if (versions.length === 0) {
@@ -15175,9 +15175,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
15175
15175
  "signals"
15176
15176
  ];
15177
15177
  async function handlePlayList(args) {
15178
- const jsonOutput = _chunkISVKLCGQjs.argsWantJson.call(void 0, args);
15178
+ const jsonOutput = _chunkHKDAWSF6js.argsWantJson.call(void 0, args);
15179
15179
  const showCost = args.includes("--show-cost");
15180
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
15180
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
15181
15181
  const categoriesIndex = args.indexOf("--categories");
15182
15182
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _521 => _521[categoriesIndex + 1], 'optionalAccess', _522 => _522.trim, 'call', _523 => _523()]) : void 0;
15183
15183
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15274,7 +15274,7 @@ async function handlePlayList(args) {
15274
15274
  lines.push("List truncated \u2014 more plays are available.");
15275
15275
  lines.push(`Next page: ${nextPage}`);
15276
15276
  }
15277
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
15277
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
15278
15278
  {
15279
15279
  plays,
15280
15280
  count: plays.length,
@@ -15292,7 +15292,7 @@ async function handlePlayList(args) {
15292
15292
  }
15293
15293
  async function handlePlayPin(args, pinned) {
15294
15294
  const target = _optionalChain([args, 'access', _530 => _530.find, 'call', _531 => _531((arg) => !arg.startsWith("-")), 'optionalAccess', _532 => _532.trim, 'call', _533 => _533()]);
15295
- const jsonOutput = _chunkISVKLCGQjs.argsWantJson.call(void 0, args);
15295
+ const jsonOutput = _chunkHKDAWSF6js.argsWantJson.call(void 0, args);
15296
15296
  const dryRun = args.includes("--dry-run");
15297
15297
  if (!target) {
15298
15298
  console.error(
@@ -15310,11 +15310,11 @@ async function handlePlayPin(args, pinned) {
15310
15310
  const name = parsedTarget.playName;
15311
15311
  const plan = { name, pinned, dryRun };
15312
15312
  if (dryRun) {
15313
- _chunkISVKLCGQjs.printCompactJson.call(void 0, plan);
15313
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, plan);
15314
15314
  return 0;
15315
15315
  }
15316
- const result = await new (0, _chunkAIRU4XTZjs.DeeplineClient)().setPlayPinned(name, pinned);
15317
- if (jsonOutput) _chunkISVKLCGQjs.printCompactJson.call(void 0, result);
15316
+ const result = await new (0, _chunkBB6WCOYNjs.DeeplineClient)().setPlayPinned(name, pinned);
15317
+ if (jsonOutput) _chunkHKDAWSF6js.printCompactJson.call(void 0, result);
15318
15318
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15319
15319
  return 0;
15320
15320
  }
@@ -15330,7 +15330,7 @@ function csvColumnLines(csvInput) {
15330
15330
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
15331
15331
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
15332
15332
  }),
15333
- _chunkAIRU4XTZjs.CSV_HEADER_MATCHING_NOTE
15333
+ _chunkBB6WCOYNjs.CSV_HEADER_MATCHING_NOTE
15334
15334
  ];
15335
15335
  }
15336
15336
  function describedPlay(play) {
@@ -15496,12 +15496,12 @@ async function handlePlayGrep(args) {
15496
15496
  console.error("Usage: deepline plays grep <query> [--json]");
15497
15497
  return 1;
15498
15498
  }
15499
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
15499
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
15500
15500
  const results = (await client.listPlays({ grep: query })).map(
15501
15501
  summarizePlayGrepResult
15502
15502
  );
15503
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
15504
- _chunkISVKLCGQjs.printCompactJson.call(void 0, {
15503
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
15504
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, {
15505
15505
  plays: results,
15506
15506
  count: results.length,
15507
15507
  query,
@@ -15524,7 +15524,7 @@ async function handlePlayGrep(args) {
15524
15524
  return 0;
15525
15525
  }
15526
15526
  async function handlePlayDescribe(args) {
15527
- const selection = _chunkISVKLCGQjs.parseJsonFields.call(void 0, args, "describe");
15527
+ const selection = _chunkHKDAWSF6js.parseJsonFields.call(void 0, args, "describe");
15528
15528
  args = selection.args;
15529
15529
  const playName = args[0];
15530
15530
  if (!playName) {
@@ -15558,8 +15558,8 @@ async function handlePlayDescribe(args) {
15558
15558
  `deepline plays check ${playName}`,
15559
15559
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15560
15560
  ];
15561
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
15562
- _chunkISVKLCGQjs.printCompactJson.call(void 0, {
15561
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
15562
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, {
15563
15563
  ok: false,
15564
15564
  error: { message },
15565
15565
  next
@@ -15573,7 +15573,7 @@ async function handlePlayDescribe(args) {
15573
15573
  }
15574
15574
  return 2;
15575
15575
  }
15576
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
15576
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
15577
15577
  await assertCanonicalNamedPlayReference(client, playName, {
15578
15578
  command: "describe"
15579
15579
  });
@@ -15583,9 +15583,9 @@ async function handlePlayDescribe(args) {
15583
15583
  compact: args.includes("--compact")
15584
15584
  }
15585
15585
  );
15586
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
15587
- if (selection.fields) _chunkISVKLCGQjs.printJson.call(void 0, play, selection.fields);
15588
- else _chunkISVKLCGQjs.printCompactJson.call(void 0, play);
15586
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
15587
+ if (selection.fields) _chunkHKDAWSF6js.printJson.call(void 0, play, selection.fields);
15588
+ else _chunkHKDAWSF6js.printCompactJson.call(void 0, play);
15589
15589
  return 0;
15590
15590
  }
15591
15591
  printPlayDescription(play);
@@ -15629,7 +15629,7 @@ async function handlePlaySave(args) {
15629
15629
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15630
15630
  };
15631
15631
  if (options.jsonOutput) {
15632
- _chunkISVKLCGQjs.printCompactJson.call(void 0, result);
15632
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, result);
15633
15633
  } else {
15634
15634
  console.error(result.message);
15635
15635
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15651,7 +15651,7 @@ async function handlePlaySave(args) {
15651
15651
  };
15652
15652
  if (options.dryRun) {
15653
15653
  if (options.jsonOutput) {
15654
- _chunkISVKLCGQjs.printCompactJson.call(void 0, dryRun);
15654
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, dryRun);
15655
15655
  } else {
15656
15656
  console.log(`Dry run: ${playName}`);
15657
15657
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15660,7 +15660,7 @@ async function handlePlaySave(args) {
15660
15660
  }
15661
15661
  return 0;
15662
15662
  }
15663
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
15663
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
15664
15664
  try {
15665
15665
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
15666
15666
  "cli.play_save_compile_manifests",
@@ -15696,7 +15696,7 @@ async function handlePlaySave(args) {
15696
15696
  }
15697
15697
  };
15698
15698
  if (options.jsonOutput) {
15699
- _chunkISVKLCGQjs.printCompactJson.call(void 0, result);
15699
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, result);
15700
15700
  } else {
15701
15701
  console.log(
15702
15702
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15722,7 +15722,7 @@ async function handlePlayPublish(args) {
15722
15722
  }
15723
15723
  const { target: playName, useLatest } = options;
15724
15724
  let revisionId = options.revisionId;
15725
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
15725
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
15726
15726
  if (isFileTarget2(playName)) {
15727
15727
  if (revisionId || useLatest) {
15728
15728
  console.error(
@@ -15754,7 +15754,7 @@ async function handlePlayPublish(args) {
15754
15754
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15755
15755
  };
15756
15756
  if (options.jsonOutput) {
15757
- _chunkISVKLCGQjs.printCompactJson.call(void 0, result3);
15757
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, result3);
15758
15758
  } else {
15759
15759
  console.error(result3.message);
15760
15760
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15777,7 +15777,7 @@ async function handlePlayPublish(args) {
15777
15777
  };
15778
15778
  if (options.dryRun) {
15779
15779
  if (options.jsonOutput) {
15780
- _chunkISVKLCGQjs.printCompactJson.call(void 0, dryRun);
15780
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, dryRun);
15781
15781
  } else {
15782
15782
  console.log(`Dry run: ${rootPlayName}`);
15783
15783
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15845,7 +15845,7 @@ async function handlePlayPublish(args) {
15845
15845
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15846
15846
  };
15847
15847
  if (options.jsonOutput) {
15848
- _chunkISVKLCGQjs.printCompactJson.call(void 0, result2);
15848
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, result2);
15849
15849
  } else {
15850
15850
  printPublishReceipt({
15851
15851
  name: rootPlayName,
@@ -15876,7 +15876,7 @@ async function handlePlayPublish(args) {
15876
15876
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15877
15877
  latest: useLatest
15878
15878
  };
15879
- _chunkISVKLCGQjs.printCompactJson.call(void 0, result2);
15879
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, result2);
15880
15880
  return 0;
15881
15881
  }
15882
15882
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -15900,7 +15900,7 @@ async function handlePlayPublish(args) {
15900
15900
  revisionId ? { revisionId } : {}
15901
15901
  );
15902
15902
  if (options.jsonOutput) {
15903
- _chunkISVKLCGQjs.printCompactJson.call(void 0, result);
15903
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, result);
15904
15904
  } else {
15905
15905
  printPublishReceipt({
15906
15906
  name: result.name,
@@ -15940,7 +15940,7 @@ async function handlePlayDelete(args) {
15940
15940
  );
15941
15941
  return 2;
15942
15942
  }
15943
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
15943
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
15944
15944
  let detail;
15945
15945
  try {
15946
15946
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -15964,8 +15964,8 @@ async function handlePlayDelete(args) {
15964
15964
  name: resolvedName,
15965
15965
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
15966
15966
  };
15967
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
15968
- _chunkISVKLCGQjs.printCompactJson.call(void 0, result2);
15967
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
15968
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, result2);
15969
15969
  } else {
15970
15970
  process.stdout.write(
15971
15971
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -15975,8 +15975,8 @@ async function handlePlayDelete(args) {
15975
15975
  return 0;
15976
15976
  }
15977
15977
  const result = await client.deletePlay(resolvedName);
15978
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
15979
- _chunkISVKLCGQjs.printCompactJson.call(void 0, result);
15978
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
15979
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, result);
15980
15980
  return result.archived || result.alreadyArchived ? 0 : 4;
15981
15981
  }
15982
15982
  if (result.alreadyArchived) {
@@ -16015,13 +16015,13 @@ async function handlePlayRestore(args) {
16015
16015
  );
16016
16016
  return 2;
16017
16017
  }
16018
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
16018
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
16019
16019
  try {
16020
16020
  const result = await client.restorePlay(
16021
16021
  parseReferencedPlayTarget2(playName).playName
16022
16022
  );
16023
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
16024
- _chunkISVKLCGQjs.printCompactJson.call(void 0, result);
16023
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
16024
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, result);
16025
16025
  return result.restored || result.alreadyActive ? 0 : 4;
16026
16026
  }
16027
16027
  if (result.alreadyActive) {
@@ -16127,7 +16127,7 @@ Examples:
16127
16127
  ).action(async (target, options) => {
16128
16128
  process.exitCode = await handlePlayCheck([
16129
16129
  target,
16130
- ..._chunkISVKLCGQjs.jsonFieldArgs.call(void 0, options.json),
16130
+ ..._chunkHKDAWSF6js.jsonFieldArgs.call(void 0, options.json),
16131
16131
  ...options.full ? ["--full"] : []
16132
16132
  ]);
16133
16133
  });
@@ -16357,9 +16357,9 @@ Examples:
16357
16357
  const limit = Number(options.historyLimit);
16358
16358
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16359
16359
  throw new Error("--history-limit must be an integer from 1 to 30.");
16360
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
16360
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
16361
16361
  if (options.binding) {
16362
- _chunkISVKLCGQjs.printCompactJson.call(void 0,
16362
+ _chunkHKDAWSF6js.printCompactJson.call(void 0,
16363
16363
  await client.getPlayTriggerHistory(options.binding, { limit })
16364
16364
  );
16365
16365
  return;
@@ -16367,7 +16367,7 @@ Examples:
16367
16367
  const result = await client.listPlayTriggerInventory({
16368
16368
  cursor: options.cursor
16369
16369
  });
16370
- _chunkISVKLCGQjs.printCompactJson.call(void 0, {
16370
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, {
16371
16371
  ...result,
16372
16372
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16373
16373
  });
@@ -16414,7 +16414,7 @@ Examples:
16414
16414
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16415
16415
  throw new Error("--group-by must be kind or trigger_source.");
16416
16416
  }
16417
- const result = await new (0, _chunkAIRU4XTZjs.DeeplineClient)().getPlaysActivity({
16417
+ const result = await new (0, _chunkBB6WCOYNjs.DeeplineClient)().getPlaysActivity({
16418
16418
  timeZone: options.timeZone,
16419
16419
  days,
16420
16420
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16428,7 +16428,7 @@ Examples:
16428
16428
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16429
16429
  );
16430
16430
  }
16431
- _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
16431
+ _chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
16432
16432
  { ...result },
16433
16433
  {
16434
16434
  json: Boolean(options.json),
@@ -16457,7 +16457,7 @@ Examples:
16457
16457
  false
16458
16458
  );
16459
16459
  });
16460
- _chunkBUHZUAEBjs.registerDeprecatedSearchCommand.call(void 0,
16460
+ _chunkMPFXZAIYjs.registerDeprecatedSearchCommand.call(void 0,
16461
16461
  play,
16462
16462
  (options) => options.all ? ["plays"] : ["prebuilts"]
16463
16463
  );
@@ -16500,7 +16500,7 @@ Examples:
16500
16500
  );
16501
16501
  _chunkZMVJSS6Njs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16502
16502
  async (target, options) => {
16503
- const ownView = () => handlePlayDescribe(_chunkISVKLCGQjs.describeArgs.call(void 0, target, options));
16503
+ const ownView = () => handlePlayDescribe(_chunkHKDAWSF6js.describeArgs.call(void 0, target, options));
16504
16504
  const [flagText] = [options.json].filter(
16505
16505
  (value) => typeof value === "string"
16506
16506
  );
@@ -16511,7 +16511,7 @@ Examples:
16511
16511
  process.exitCode = await ownView();
16512
16512
  return;
16513
16513
  }
16514
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-FG5JQWSB.js")));
16514
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-FHCK2IPO.js")));
16515
16515
  process.exitCode = await describeAnything(
16516
16516
  name,
16517
16517
  {
@@ -16629,7 +16629,7 @@ Examples:
16629
16629
  deepline plays deployments <deployment-id>
16630
16630
  `
16631
16631
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16632
- async (id, options) => id ? _chunk4DAUDGO2js.handleDeploymentGet.call(void 0, id, options) : _chunk4DAUDGO2js.handleDeploymentsList.call(void 0, options)
16632
+ async (id, options) => id ? _chunkZHGVS5YIjs.handleDeploymentGet.call(void 0, id, options) : _chunkZHGVS5YIjs.handleDeploymentsList.call(void 0, options)
16633
16633
  );
16634
16634
  addPublishHelp(
16635
16635
  play.command("publish <target>").description(
@@ -16808,7 +16808,7 @@ Examples:
16808
16808
  ).action(async (runId, options) => {
16809
16809
  process.exitCode = await handleRunGet([
16810
16810
  runId,
16811
- ..._chunkISVKLCGQjs.jsonFieldArgs.call(void 0, options.json),
16811
+ ..._chunkHKDAWSF6js.jsonFieldArgs.call(void 0, options.json),
16812
16812
  ...options.full ? ["--full"] : [],
16813
16813
  ...options.input ? ["--input"] : [],
16814
16814
  ...options.config ? ["--config"] : [],
@@ -17083,7 +17083,7 @@ Examples:
17083
17083
  ...options.allowEmpty ? ["--allow-empty"] : [],
17084
17084
  ...options.wait ? ["--wait"] : [],
17085
17085
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17086
- ..._chunkISVKLCGQjs.jsonFieldArgs.call(void 0, options.json)
17086
+ ..._chunkHKDAWSF6js.jsonFieldArgs.call(void 0, options.json)
17087
17087
  ]);
17088
17088
  });
17089
17089
  const share = play.command("share").description(
@@ -17249,10 +17249,10 @@ async function handlePlayShareStatus(args) {
17249
17249
  return 2;
17250
17250
  }
17251
17251
  const name = parseReferencedPlayTarget2(target).playName;
17252
- const status = await new (0, _chunkAIRU4XTZjs.DeeplineClient)().getSharePage(name);
17252
+ const status = await new (0, _chunkBB6WCOYNjs.DeeplineClient)().getSharePage(name);
17253
17253
  const outputStatus = shareStatusForOutput(status);
17254
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
17255
- _chunkISVKLCGQjs.printCompactJson.call(void 0, outputStatus);
17254
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
17255
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, outputStatus);
17256
17256
  return 0;
17257
17257
  }
17258
17258
  if (!outputStatus.share) {
@@ -17291,7 +17291,7 @@ async function handlePlaySharePublish(args) {
17291
17291
  return 2;
17292
17292
  }
17293
17293
  const name = parseReferencedPlayTarget2(target).playName;
17294
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
17294
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
17295
17295
  let revisionId = shareFlagValue(args, "--revision-id");
17296
17296
  let resolvedVersion;
17297
17297
  if (!revisionId) {
@@ -17322,8 +17322,8 @@ async function handlePlaySharePublish(args) {
17322
17322
  );
17323
17323
  if (!hasCompleted) {
17324
17324
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17325
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
17326
- _chunkISVKLCGQjs.printCompactJson.call(void 0, {
17325
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
17326
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, {
17327
17327
  ok: false,
17328
17328
  code: "NO_SUCCESSFUL_RUN",
17329
17329
  message,
@@ -17347,8 +17347,8 @@ async function handlePlaySharePublish(args) {
17347
17347
  };
17348
17348
  if (args.includes("--dry-run")) {
17349
17349
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17350
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
17351
- _chunkISVKLCGQjs.printCompactJson.call(void 0, plan);
17350
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
17351
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, plan);
17352
17352
  } else {
17353
17353
  console.log(
17354
17354
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17358,8 +17358,8 @@ async function handlePlaySharePublish(args) {
17358
17358
  }
17359
17359
  const status = await client.publishSharePage(name, request);
17360
17360
  const outputStatus = shareStatusForOutput(status);
17361
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
17362
- _chunkISVKLCGQjs.printCompactJson.call(void 0, outputStatus);
17361
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
17362
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, outputStatus);
17363
17363
  return 0;
17364
17364
  }
17365
17365
  const urls = shareUrlFields(outputStatus);
@@ -17390,9 +17390,9 @@ async function handlePlayShareUpdate(args) {
17390
17390
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17391
17391
  ...seoIndexing ? { seoIndexing } : {}
17392
17392
  };
17393
- const status = await new (0, _chunkAIRU4XTZjs.DeeplineClient)().updateSharePage(name, request);
17394
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
17395
- _chunkISVKLCGQjs.printCompactJson.call(void 0, status);
17393
+ const status = await new (0, _chunkBB6WCOYNjs.DeeplineClient)().updateSharePage(name, request);
17394
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
17395
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, status);
17396
17396
  return 0;
17397
17397
  }
17398
17398
  console.log(`Updated ${name} share settings.`);
@@ -17407,7 +17407,7 @@ async function handlePlayShareRegenerate(args) {
17407
17407
  return 2;
17408
17408
  }
17409
17409
  const name = parseReferencedPlayTarget2(target).playName;
17410
- const client = new (0, _chunkAIRU4XTZjs.DeeplineClient)();
17410
+ const client = new (0, _chunkBB6WCOYNjs.DeeplineClient)();
17411
17411
  let revisionId = shareFlagValue(args, "--revision-id");
17412
17412
  const versionFlag = shareFlagValue(args, "--version");
17413
17413
  if (!revisionId && versionFlag) {
@@ -17424,8 +17424,8 @@ async function handlePlayShareRegenerate(args) {
17424
17424
  revisionId ? { revisionId } : {}
17425
17425
  );
17426
17426
  const outputStatus = shareStatusForOutput(status);
17427
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
17428
- _chunkISVKLCGQjs.printCompactJson.call(void 0, outputStatus);
17427
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
17428
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, outputStatus);
17429
17429
  return 0;
17430
17430
  }
17431
17431
  const urls = shareUrlFields(outputStatus);
@@ -17450,9 +17450,9 @@ async function handlePlayShareUnpublish(args) {
17450
17450
  return 2;
17451
17451
  }
17452
17452
  const name = parseReferencedPlayTarget2(target).playName;
17453
- const status = await new (0, _chunkAIRU4XTZjs.DeeplineClient)().unpublishSharePage(name);
17454
- if (_chunkISVKLCGQjs.argsWantJson.call(void 0, args)) {
17455
- _chunkISVKLCGQjs.printCompactJson.call(void 0, status);
17453
+ const status = await new (0, _chunkBB6WCOYNjs.DeeplineClient)().unpublishSharePage(name);
17454
+ if (_chunkHKDAWSF6js.argsWantJson.call(void 0, args)) {
17455
+ _chunkHKDAWSF6js.printCompactJson.call(void 0, status);
17456
17456
  return 0;
17457
17457
  }
17458
17458
  console.log(`Unpublished ${name}; the public page has been removed.`);