deepline 0.3.349 → 0.3.351

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 (97) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-budget-state.ts +30 -6
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +3 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +47 -22
  5. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +114 -25
  6. package/dist/cli/{auth-MPHXSP64.mjs → auth-NQLQ5QBV.mjs} +4 -4
  7. package/dist/cli/auth-YTDZKDCB.js +31 -0
  8. package/dist/cli/{billing-K5WCTRBE.mjs → billing-AXSNXOTN.mjs} +4 -4
  9. package/dist/cli/{billing-2KUUGVDZ.js → billing-AZCBAJ6Q.js} +73 -73
  10. package/dist/cli/{chunk-JKJSTQ2I.mjs → chunk-722274AA.mjs} +1 -1
  11. package/dist/cli/{chunk-GHYMVZID.js → chunk-73J3BGJ3.js} +60 -60
  12. package/dist/cli/{chunk-DOHULRK2.mjs → chunk-7BGGBA4V.mjs} +4 -4
  13. package/dist/cli/{chunk-QCSLIEMC.js → chunk-7ZAG2XG5.js} +6 -6
  14. package/dist/cli/{chunk-WOFHIUOT.mjs → chunk-AQQFVUDI.mjs} +2 -2
  15. package/dist/cli/{chunk-I4VZKXMX.js → chunk-BKOYPUK2.js} +26 -26
  16. package/dist/cli/{chunk-MVQ3JAJA.js → chunk-BOOZ7D7V.js} +225 -225
  17. package/dist/cli/{chunk-O2FM2MS5.mjs → chunk-BR3XFSXN.mjs} +6 -6
  18. package/dist/cli/{chunk-QAM2K3CG.js → chunk-BWFUBETD.js} +48 -48
  19. package/dist/cli/{chunk-BPJTGASI.mjs → chunk-CFALTV4O.mjs} +2 -2
  20. package/dist/cli/{chunk-S347PHNB.js → chunk-CIDP2FSO.js} +9 -9
  21. package/dist/cli/{chunk-UE7DS2YV.mjs → chunk-DBWASDYS.mjs} +3 -3
  22. package/dist/cli/{chunk-ZQ6UF55Y.mjs → chunk-GT5HPOM3.mjs} +1 -1
  23. package/dist/cli/{chunk-BEGPN6NG.mjs → chunk-H5JUSKHB.mjs} +1 -1
  24. package/dist/cli/{chunk-M42H2BPA.js → chunk-ICZTTYDS.js} +8 -8
  25. package/dist/cli/{chunk-VDOH4A34.mjs → chunk-IKC7EPDS.mjs} +1 -1
  26. package/dist/cli/{chunk-CRSMVSER.js → chunk-JV6GFIQQ.js} +45 -45
  27. package/dist/cli/{chunk-KW25DKRC.js → chunk-L7YXXM5W.js} +1 -1
  28. package/dist/cli/{chunk-JBGR6U57.js → chunk-NUD2WO3E.js} +4 -4
  29. package/dist/cli/{chunk-SPB6CF4S.mjs → chunk-OF4N5X7Z.mjs} +2 -2
  30. package/dist/cli/{chunk-IHYVEM5Q.js → chunk-QD7W3OBA.js} +8 -8
  31. package/dist/cli/{chunk-GXN7DGNL.mjs → chunk-QOYD2THS.mjs} +2 -2
  32. package/dist/cli/{chunk-TVS3TAFR.js → chunk-SDLFAGQS.js} +15 -15
  33. package/dist/cli/{chunk-HVD3DK7S.mjs → chunk-URBPUPJS.mjs} +5 -5
  34. package/dist/cli/{chunk-6YZDQZE6.js → chunk-WY5N3SSC.js} +2 -2
  35. package/dist/cli/{chunk-6OVLJLYH.mjs → chunk-XFTGWGZ5.mjs} +1 -1
  36. package/dist/cli/client-3GCQER5K.js +20 -0
  37. package/dist/cli/{client-JWKYNLCR.mjs → client-NTEDBLQK.mjs} +3 -3
  38. package/dist/cli/{csv-IW75DRFX.js → csv-6PZZ4ARC.js} +12 -12
  39. package/dist/cli/{csv-Y2O237NO.mjs → csv-SSSPKSKU.mjs} +3 -3
  40. package/dist/cli/{db-6Q4VK5T2.js → db-3YL7YWTM.js} +29 -29
  41. package/dist/cli/{db-JW6UUJXC.mjs → db-XEVVDWOP.mjs} +4 -4
  42. package/dist/cli/{describe-DI65QISF.js → describe-XZNQXFXD.js} +15 -15
  43. package/dist/cli/{describe-JLN4RTGM.mjs → describe-YZ365BKT.mjs} +8 -8
  44. package/dist/cli/{executions-GB2E3BU6.js → executions-WBTIT2RU.js} +6 -6
  45. package/dist/cli/{executions-UK6LA2O5.mjs → executions-ZAV7YCQC.mjs} +4 -4
  46. package/dist/cli/{feedback-N2KAFS3R.mjs → feedback-NOYG63QE.mjs} +3 -3
  47. package/dist/cli/{feedback-MJE3A5ON.js → feedback-PRVJ26X7.js} +7 -7
  48. package/dist/cli/{git-NWRJFNII.mjs → git-AOSMM4US.mjs} +4 -4
  49. package/dist/cli/git-ZI4H72YR.js +23 -0
  50. package/dist/cli/index.js +79 -79
  51. package/dist/cli/index.mjs +31 -31
  52. package/dist/cli/{legacy-noops-EIO65N6W.js → legacy-noops-RTNAEYVF.js} +7 -7
  53. package/dist/cli/{legacy-noops-RR4W2TTE.mjs → legacy-noops-T6DKTGZY.mjs} +4 -4
  54. package/dist/cli/{monitors-U7NVJDQL.js → monitors-7ERJ4277.js} +85 -85
  55. package/dist/cli/{monitors-HNUCJYET.mjs → monitors-QIR3T2QR.mjs} +4 -4
  56. package/dist/cli/{org-UBHNTBSB.js → org-7P46IVVU.js} +60 -60
  57. package/dist/cli/{org-O7MFRQNG.mjs → org-WNRQQZNP.mjs} +4 -4
  58. package/dist/cli/{play-4EIIEFQK.mjs → play-57XTHKER.mjs} +7 -7
  59. package/dist/cli/play-QIX7RZ74.js +153 -0
  60. package/dist/cli/{providers-REJIT7CX.mjs → providers-ET6UBGWJ.mjs} +4 -4
  61. package/dist/cli/{providers-CJ56HZIT.js → providers-USRX4UVZ.js} +7 -7
  62. package/dist/cli/{quickstart-BZUQWQK5.js → quickstart-BPPQFMWI.js} +5 -5
  63. package/dist/cli/{quickstart-DQN2LYBC.mjs → quickstart-OGZ7BZKS.mjs} +3 -3
  64. package/dist/cli/{search-35UOMFL2.mjs → search-MZARI5XA.mjs} +5 -5
  65. package/dist/cli/search-P447HWLU.js +26 -0
  66. package/dist/cli/{secrets-G4RYNUUD.js → secrets-O6XG35SA.js} +13 -13
  67. package/dist/cli/{secrets-YJB66UXU.mjs → secrets-WMUJ6PB4.mjs} +4 -4
  68. package/dist/cli/{sessions-BUWSRUSJ.mjs → sessions-EYALESPC.mjs} +4 -4
  69. package/dist/cli/{sessions-DGS7S6XX.js → sessions-LCHVGXMV.js} +5 -5
  70. package/dist/cli/{settings-OTWDMCM5.js → settings-25YT2IQK.js} +74 -74
  71. package/dist/cli/{settings-OCMJXIFD.mjs → settings-LUGKMDDX.mjs} +7 -7
  72. package/dist/cli/{setup-MYD34DUG.js → setup-AKZWHNKU.js} +41 -41
  73. package/dist/cli/{setup-UXYFRGIX.mjs → setup-KSRA3V42.mjs} +6 -6
  74. package/dist/cli/skills-GYWMMOFQ.js +28 -0
  75. package/dist/cli/{skills-LOWITZWQ.mjs → skills-VJJIB4F5.mjs} +4 -4
  76. package/dist/cli/tools-HN6E2AH6.js +40 -0
  77. package/dist/cli/{tools-YJHZJLES.mjs → tools-NYQD3VSU.mjs} +6 -6
  78. package/dist/cli/{update-PB5UCW4I.mjs → update-GU4TALAI.mjs} +6 -6
  79. package/dist/cli/update-IIEKVC75.js +28 -0
  80. package/dist/cli/{workflow-IH2FQSYZ.mjs → workflow-T4VNPJA4.mjs} +5 -5
  81. package/dist/cli/{workflow-DJYTA2YM.js → workflow-TFOUWNEJ.js} +15 -15
  82. package/dist/index.js +6 -6
  83. package/dist/index.mjs +3 -3
  84. package/dist/install-integrity.json +74 -74
  85. package/dist/release.d.mts +1 -1
  86. package/dist/release.d.ts +1 -1
  87. package/dist/release.js +2 -2
  88. package/dist/release.mjs +1 -1
  89. package/package.json +1 -1
  90. package/dist/cli/auth-KGXZELZ3.js +0 -31
  91. package/dist/cli/client-O4DPNWVJ.js +0 -20
  92. package/dist/cli/git-A7J4SSRV.js +0 -23
  93. package/dist/cli/play-IHLNNVPR.js +0 -153
  94. package/dist/cli/search-4EPCIU2T.js +0 -26
  95. package/dist/cli/skills-7UHWU7XL.js +0 -28
  96. package/dist/cli/tools-CBYKQ7IY.js +0 -40
  97. package/dist/cli/update-5M3OKPEU.js +0 -28
@@ -11,11 +11,11 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
11
11
  var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
12
12
 
13
13
 
14
- var _chunkM42H2BPAjs = require('./chunk-M42H2BPA.js');
14
+ var _chunkICZTTYDSjs = require('./chunk-ICZTTYDS.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkI4VZKXMXjs = require('./chunk-I4VZKXMX.js');
18
+ var _chunkBKOYPUK2js = require('./chunk-BKOYPUK2.js');
19
19
 
20
20
 
21
21
 
@@ -40,7 +40,7 @@ var _chunkLVEDPCLJjs = require('./chunk-LVEDPCLJ.js');
40
40
 
41
41
 
42
42
 
43
- var _chunkS347PHNBjs = require('./chunk-S347PHNB.js');
43
+ var _chunkCIDP2FSOjs = require('./chunk-CIDP2FSO.js');
44
44
 
45
45
 
46
46
 
@@ -73,10 +73,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
73
73
 
74
74
 
75
75
 
76
- var _chunkQCSLIEMCjs = require('./chunk-QCSLIEMC.js');
76
+ var _chunk7ZAG2XG5js = require('./chunk-7ZAG2XG5.js');
77
77
 
78
78
 
79
- var _chunkJBGR6U57js = require('./chunk-JBGR6U57.js');
79
+ var _chunkNUD2WO3Ejs = require('./chunk-NUD2WO3E.js');
80
80
 
81
81
 
82
82
 
@@ -2068,7 +2068,7 @@ function resolveField(key, command) {
2068
2068
  function printSettings(result, json, name) {
2069
2069
  result = { ...result, settings: parsePlaySettings(result.settings) };
2070
2070
  const selected = fields.filter(([key]) => !name || key === name);
2071
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
2071
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
2072
2072
  {
2073
2073
  ...result,
2074
2074
  settings: Object.fromEntries(
@@ -2112,7 +2112,7 @@ function registerPlaySettingsCommands(plays) {
2112
2112
  valueSyntax: field.cli.valueSyntax,
2113
2113
  examples: field.cli.examples
2114
2114
  }));
2115
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
2115
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
2116
2116
  {
2117
2117
  fields: descriptions,
2118
2118
  render: {
@@ -2137,7 +2137,7 @@ function registerPlaySettingsCommands(plays) {
2137
2137
  async (options, command) => {
2138
2138
  if (options.name !== void 0) resolveField(options.name, command);
2139
2139
  printSettings(
2140
- await new (0, _chunkS347PHNBjs.DeeplineClient)().getPlaySettings(options.play),
2140
+ await new (0, _chunkCIDP2FSOjs.DeeplineClient)().getPlaySettings(options.play),
2141
2141
  options.json,
2142
2142
  options.name
2143
2143
  );
@@ -2168,7 +2168,7 @@ function registerPlaySettingsCommands(plays) {
2168
2168
  );
2169
2169
  }
2170
2170
  if (options.dryRun) {
2171
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
2171
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
2172
2172
  {
2173
2173
  dryRun: true,
2174
2174
  play,
@@ -2189,7 +2189,7 @@ function registerPlaySettingsCommands(plays) {
2189
2189
  return;
2190
2190
  }
2191
2191
  printSettings(
2192
- await new (0, _chunkS347PHNBjs.DeeplineClient)().updatePlaySettings(play, patch),
2192
+ await new (0, _chunkCIDP2FSOjs.DeeplineClient)().updatePlaySettings(play, patch),
2193
2193
  options.json
2194
2194
  );
2195
2195
  };
@@ -2215,13 +2215,13 @@ function registerPlaySettingsCommands(plays) {
2215
2215
  "--root must be person or team; --limit must be 1\u2013100.",
2216
2216
  { exitCode: 2 }
2217
2217
  );
2218
- const page = await new (0, _chunkS347PHNBjs.DeeplineClient)().listPlaySettingsPaths({
2218
+ const page = await new (0, _chunkCIDP2FSOjs.DeeplineClient)().listPlaySettingsPaths({
2219
2219
  root: options.root,
2220
2220
  limit,
2221
2221
  cursor: options.cursor
2222
2222
  });
2223
2223
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""} --json` : null;
2224
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
2224
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
2225
2225
  {
2226
2226
  ...page,
2227
2227
  nextCommand,
@@ -2272,7 +2272,7 @@ function registerPlaySettingsCommands(plays) {
2272
2272
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2273
2273
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2274
2274
  };
2275
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
2275
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
2276
2276
  const paths = [];
2277
2277
  let cursor;
2278
2278
  do {
@@ -2334,7 +2334,7 @@ function registerPlaySettingsCommands(plays) {
2334
2334
  moved.push(move.playName);
2335
2335
  }
2336
2336
  }
2337
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
2337
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
2338
2338
  {
2339
2339
  dryRun: Boolean(options.dryRun),
2340
2340
  from: options.from,
@@ -2462,7 +2462,7 @@ function triggerLines(view) {
2462
2462
  return lines;
2463
2463
  }
2464
2464
  function printView(view, json) {
2465
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
2465
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
2466
2466
  {
2467
2467
  ...view,
2468
2468
  render: {
@@ -2475,7 +2475,7 @@ function printView(view, json) {
2475
2475
  );
2476
2476
  }
2477
2477
  function printResult(result, json) {
2478
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
2478
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
2479
2479
  {
2480
2480
  ...result,
2481
2481
  render: {
@@ -2505,7 +2505,7 @@ async function mutate(command, options, build) {
2505
2505
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2506
2506
  }
2507
2507
  if (options.dryRun) {
2508
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
2508
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
2509
2509
  {
2510
2510
  dryRun: true,
2511
2511
  play: options.play,
@@ -2524,7 +2524,7 @@ async function mutate(command, options, build) {
2524
2524
  return;
2525
2525
  }
2526
2526
  printResult(
2527
- await new (0, _chunkS347PHNBjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2527
+ await new (0, _chunkCIDP2FSOjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2528
2528
  options.json
2529
2529
  );
2530
2530
  }
@@ -2557,7 +2557,7 @@ function registerPlayTriggerConfigCommands(plays) {
2557
2557
  }).addHelpText("after", help2);
2558
2558
  trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON; automatic when piped").addHelpText("after", help2).action(async (options) => {
2559
2559
  printView(
2560
- await new (0, _chunkS347PHNBjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2560
+ await new (0, _chunkCIDP2FSOjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2561
2561
  options.json
2562
2562
  );
2563
2563
  });
@@ -2601,7 +2601,7 @@ function registerPlayTriggerConfigCommands(plays) {
2601
2601
  if (options.auth === void 0) {
2602
2602
  if (secrets.length || options.header || options.signaturePrefix)
2603
2603
  usage(setWebhook, "--secret/--header need --auth.");
2604
- const current = await new (0, _chunkS347PHNBjs.DeeplineClient)().getPlayTriggerConfig(
2604
+ const current = await new (0, _chunkCIDP2FSOjs.DeeplineClient)().getPlayTriggerConfig(
2605
2605
  options.play
2606
2606
  );
2607
2607
  return {
@@ -2678,7 +2678,7 @@ var KIND_DESCRIPTIONS = {
2678
2678
  "receipt.skipped": "Saved work result: skipped.",
2679
2679
  "runtime.event": "Other event."
2680
2680
  };
2681
- var RUN_LOGS_KIND_HELP = _chunkS347PHNBjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2681
+ var RUN_LOGS_KIND_HELP = _chunkCIDP2FSOjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2682
2682
  kind,
2683
2683
  description: KIND_DESCRIPTIONS[kind]
2684
2684
  }));
@@ -2815,9 +2815,9 @@ function configureRunQueryCommandErrors(command, resource) {
2815
2815
  const args = program.args;
2816
2816
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2817
2817
  error.exitCode = 2;
2818
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2819
- _chunkQCSLIEMCjs.printJsonError.call(void 0,
2820
- Object.assign(new (0, _chunkS347PHNBjs.RunEventQueryInputError)(error.message), {
2818
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2819
+ _chunk7ZAG2XG5js.printJsonError.call(void 0,
2820
+ Object.assign(new (0, _chunkCIDP2FSOjs.RunEventQueryInputError)(error.message), {
2821
2821
  exitCode: 2,
2822
2822
  retryable: false
2823
2823
  })
@@ -2861,14 +2861,14 @@ function parseQuery(args, resource) {
2861
2861
  if (VALUE_FLAGS.has(flag)) {
2862
2862
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2863
2863
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2864
- throw new (0, _chunkS347PHNBjs.RunEventQueryInputError)(
2864
+ throw new (0, _chunkCIDP2FSOjs.RunEventQueryInputError)(
2865
2865
  `${flag} requires a value. Use ${flag} <value>.`
2866
2866
  );
2867
2867
  }
2868
2868
  if (flag === "--sum") sums.push(value);
2869
2869
  else {
2870
2870
  if (values[flag] !== void 0) {
2871
- throw new (0, _chunkS347PHNBjs.RunEventQueryInputError)(
2871
+ throw new (0, _chunkCIDP2FSOjs.RunEventQueryInputError)(
2872
2872
  `${flag} may only be supplied once.`
2873
2873
  );
2874
2874
  }
@@ -2882,12 +2882,12 @@ function parseQuery(args, resource) {
2882
2882
  }
2883
2883
  if (arg.startsWith("-")) {
2884
2884
  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.";
2885
- throw new (0, _chunkS347PHNBjs.RunEventQueryInputError)(
2885
+ throw new (0, _chunkCIDP2FSOjs.RunEventQueryInputError)(
2886
2886
  `Unsupported query flag ${flag}. ${correction}`
2887
2887
  );
2888
2888
  }
2889
2889
  if (runId !== void 0) {
2890
- throw new (0, _chunkS347PHNBjs.RunEventQueryInputError)(
2890
+ throw new (0, _chunkCIDP2FSOjs.RunEventQueryInputError)(
2891
2891
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2892
2892
  );
2893
2893
  }
@@ -2895,7 +2895,7 @@ function parseQuery(args, resource) {
2895
2895
  }
2896
2896
  if (switches.has("--fields")) {
2897
2897
  if (runId !== void 0) {
2898
- throw new (0, _chunkS347PHNBjs.RunEventQueryInputError)(
2898
+ throw new (0, _chunkCIDP2FSOjs.RunEventQueryInputError)(
2899
2899
  "--fields does not use a run ID. Omit the positional run ID."
2900
2900
  );
2901
2901
  }
@@ -2908,18 +2908,18 @@ function parseQuery(args, resource) {
2908
2908
  )
2909
2909
  ];
2910
2910
  if (incompatible.length) {
2911
- throw new (0, _chunkS347PHNBjs.RunEventQueryInputError)(
2911
+ throw new (0, _chunkCIDP2FSOjs.RunEventQueryInputError)(
2912
2912
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2913
2913
  );
2914
2914
  }
2915
2915
  }
2916
2916
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2917
- throw new (0, _chunkS347PHNBjs.RunEventQueryInputError)(
2917
+ throw new (0, _chunkCIDP2FSOjs.RunEventQueryInputError)(
2918
2918
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2919
2919
  );
2920
2920
  }
2921
2921
  if (sums.length && switches.has("--count")) {
2922
- throw new (0, _chunkS347PHNBjs.RunEventQueryInputError)(
2922
+ throw new (0, _chunkCIDP2FSOjs.RunEventQueryInputError)(
2923
2923
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2924
2924
  );
2925
2925
  }
@@ -2927,7 +2927,7 @@ function parseQuery(args, resource) {
2927
2927
  if (operation === "count") {
2928
2928
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2929
2929
  if (values[flag] !== void 0 || switches.has(flag)) {
2930
- throw new (0, _chunkS347PHNBjs.RunEventQueryInputError)(
2930
+ throw new (0, _chunkCIDP2FSOjs.RunEventQueryInputError)(
2931
2931
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2932
2932
  );
2933
2933
  }
@@ -2962,16 +2962,16 @@ function parseQuery(args, resource) {
2962
2962
  ];
2963
2963
  }
2964
2964
  }
2965
- const request = _chunkS347PHNBjs.normalizeRunEventOperationRequest.call(void 0, body);
2965
+ const request = _chunkCIDP2FSOjs.normalizeRunEventOperationRequest.call(void 0, body);
2966
2966
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2967
2967
  const backend = values["--runtime-backend"];
2968
2968
  if (backend && backend !== "daytona" && backend !== "modal") {
2969
- throw new (0, _chunkS347PHNBjs.RunEventQueryInputError)(
2969
+ throw new (0, _chunkCIDP2FSOjs.RunEventQueryInputError)(
2970
2970
  "--runtime-backend must be daytona or modal."
2971
2971
  );
2972
2972
  }
2973
2973
  if (backend && !namespace) {
2974
- throw new (0, _chunkS347PHNBjs.RunEventQueryInputError)(
2974
+ throw new (0, _chunkCIDP2FSOjs.RunEventQueryInputError)(
2975
2975
  "--runtime-backend requires --runtime-namespace."
2976
2976
  );
2977
2977
  }
@@ -3019,12 +3019,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3019
3019
  const failure = error instanceof Error ? error : new Error(String(error));
3020
3020
  const record3 = failure;
3021
3021
  const status = record3.statusCode;
3022
- const exitCode = error instanceof _chunkS347PHNBjs.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;
3022
+ const exitCode = error instanceof _chunkCIDP2FSOjs.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;
3023
3023
  const diagnostic = Object.assign(failure, {
3024
3024
  exitCode,
3025
3025
  retryable: exitCode === 5
3026
3026
  });
3027
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) _chunkQCSLIEMCjs.printJsonError.call(void 0, diagnostic);
3027
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) _chunk7ZAG2XG5js.printJsonError.call(void 0, diagnostic);
3028
3028
  else console.error(`Error: ${diagnostic.message}`);
3029
3029
  return exitCode;
3030
3030
  }
@@ -3039,7 +3039,7 @@ async function executeRunEventQuery(args, resource) {
3039
3039
  ...criteria
3040
3040
  } = request;
3041
3041
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3042
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
3042
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
3043
3043
  let result;
3044
3044
  if (request.operation === "fields") {
3045
3045
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3105,13 +3105,13 @@ async function executeRunEventQuery(args, resource) {
3105
3105
  lines.push(`Next page: ${nextPage}`);
3106
3106
  }
3107
3107
  }
3108
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
3108
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
3109
3109
  {
3110
3110
  ...result,
3111
3111
  ...nextPage ? { next: { page: nextPage } } : {},
3112
3112
  render: { sections: [{ title: `run ${resource}`, lines }] }
3113
3113
  },
3114
- { json: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3114
+ { json: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3115
3115
  ` }
3116
3116
  );
3117
3117
  return 0;
@@ -3931,7 +3931,7 @@ function checkedRunExample(plays, target) {
3931
3931
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3932
3932
  const base = `deepline plays run --file ${quote(target)}`;
3933
3933
  return {
3934
- command: `${base}${_chunkS347PHNBjs.playInputExampleArgs.call(void 0, schema)} --json`,
3934
+ command: `${base}${_chunkCIDP2FSOjs.playInputExampleArgs.call(void 0, schema)} --json`,
3935
3935
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema. Keep stderr separate from JSON stdout."
3936
3936
  };
3937
3937
  }
@@ -5554,7 +5554,7 @@ async function runPlayBootstrap(args) {
5554
5554
  return runMonitorBootstrap(args);
5555
5555
  }
5556
5556
  const options = parsePlayBootstrapOptions(args);
5557
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
5557
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
5558
5558
  const contracts = await loadBootstrapContracts(client, options);
5559
5559
  const csvContext = loadCsvContext(options.from);
5560
5560
  const source = generateBootstrapPlaySource({
@@ -5709,7 +5709,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5709
5709
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
5710
5710
  );
5711
5711
  }
5712
- const response = await new (0, _chunkS347PHNBjs.DeeplineClient)().runs.getReceipts(runId, {
5712
+ const response = await new (0, _chunkCIDP2FSOjs.DeeplineClient)().runs.getReceipts(runId, {
5713
5713
  keys
5714
5714
  });
5715
5715
  const failed = response.receipts.filter(
@@ -5721,7 +5721,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5721
5721
  JSON.stringify(response, null, 2) + "\n",
5722
5722
  { flag: "wx", mode: 384 }
5723
5723
  );
5724
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
5724
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
5725
5725
  {
5726
5726
  runId,
5727
5727
  out: options.out,
@@ -5731,7 +5731,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5731
5731
  { json: true }
5732
5732
  );
5733
5733
  } else {
5734
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5734
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5735
5735
  }
5736
5736
  if (failed)
5737
5737
  process.exitCode = response.receipts.some(
@@ -5770,7 +5770,7 @@ includes nextCommand when another page is available.
5770
5770
  { exitCode: 2 }
5771
5771
  );
5772
5772
  }
5773
- const page = await new (0, _chunkS347PHNBjs.DeeplineClient)().runs.children(parentRunId, {
5773
+ const page = await new (0, _chunkCIDP2FSOjs.DeeplineClient)().runs.children(parentRunId, {
5774
5774
  launchKey: options.launchKey,
5775
5775
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
5776
5776
  limit
@@ -5786,7 +5786,7 @@ includes nextCommand when another page is available.
5786
5786
  String(limit),
5787
5787
  "--json"
5788
5788
  ].join(" ") : null;
5789
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
5789
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
5790
5790
  {
5791
5791
  parentRunId,
5792
5792
  launchKey: options.launchKey,
@@ -5822,7 +5822,7 @@ async function handleRunsHistory(options) {
5822
5822
  throw new Error("--limit must be a positive integer.");
5823
5823
  }
5824
5824
  }
5825
- const page = await new (0, _chunkS347PHNBjs.DeeplineClient)().runs.history({
5825
+ const page = await new (0, _chunkCIDP2FSOjs.DeeplineClient)().runs.history({
5826
5826
  cursor: options.cursor,
5827
5827
  orgId: options.org,
5828
5828
  search: options.search,
@@ -5838,7 +5838,7 @@ async function handleRunsHistory(options) {
5838
5838
  );
5839
5839
  }
5840
5840
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
5841
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
5841
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
5842
5842
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
5843
5843
  options.json ? { json: true } : {}
5844
5844
  );
@@ -5890,12 +5890,12 @@ async function runRunsRerunCommand(runId, options) {
5890
5890
  return 1;
5891
5891
  }
5892
5892
  }
5893
- const result = await new (0, _chunkS347PHNBjs.DeeplineClient)().runs.rerun(runId, {
5893
+ const result = await new (0, _chunkCIDP2FSOjs.DeeplineClient)().runs.rerun(runId, {
5894
5894
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
5895
5895
  ...inputOverrides === void 0 ? {} : { inputOverrides }
5896
5896
  });
5897
- if (_chunkQCSLIEMCjs.shouldEmitJson.call(void 0, options.json)) {
5898
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, result, { json: true });
5897
+ if (_chunk7ZAG2XG5js.shouldEmitJson.call(void 0, options.json)) {
5898
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, result, { json: true });
5899
5899
  } else {
5900
5900
  console.log(
5901
5901
  result.deduplicated === true ? `
@@ -6163,7 +6163,7 @@ function projectRunDatasetCell(value) {
6163
6163
  const logicalValue = parseSerializedDatasetValue(value);
6164
6164
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
6165
6165
  if (typeof logicalValue === "object") {
6166
- return _chunkQCSLIEMCjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
6166
+ return _chunk7ZAG2XG5js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
6167
6167
  }
6168
6168
  return logicalValue;
6169
6169
  }
@@ -8580,7 +8580,7 @@ function renderOutcome(outcome) {
8580
8580
  function printResult2(input) {
8581
8581
  const failed = input.status === "failed" || input.status === "cancelled";
8582
8582
  if (failed) process.exitCode = 1;
8583
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
8583
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
8584
8584
  {
8585
8585
  deployment: { ...input.deployment, status: input.status },
8586
8586
  plays: input.outcomes,
@@ -8605,7 +8605,7 @@ async function handlePlaysDeploy(directory, options) {
8605
8605
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
8606
8606
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
8607
8607
  });
8608
- const { http, config } = _chunkQCSLIEMCjs.getAuthedHttpClient.call(void 0, );
8608
+ const { http, config } = _chunk7ZAG2XG5js.getAuthedHttpClient.call(void 0, );
8609
8609
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
8610
8610
  const startDeployment = () => http.post("/api/v2/deployments", {
8611
8611
  deliveryId,
@@ -8632,7 +8632,7 @@ async function handlePlaysDeploy(directory, options) {
8632
8632
  },
8633
8633
  {
8634
8634
  bundle: bundleDeployPlayFile,
8635
- fetchImpl: _chunkJBGR6U57js.fetchWithDeploymentProtection,
8635
+ fetchImpl: _chunkNUD2WO3Ejs.fetchWithDeploymentProtection,
8636
8636
  // The plays are already here: "opening" the source is naming it.
8637
8637
  openSource: async () => ({
8638
8638
  open: async () => ({ repoRoot: root })
@@ -9200,7 +9200,7 @@ function parseInputFlagValue(raw) {
9200
9200
  return raw;
9201
9201
  }
9202
9202
  function parsePlayRunOptions(args, initialInput = null) {
9203
- const selection = _chunkQCSLIEMCjs.parseJsonFields.call(void 0, args, "run");
9203
+ const selection = _chunk7ZAG2XG5js.parseJsonFields.call(void 0, args, "run");
9204
9204
  args = selection.args;
9205
9205
  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.";
9206
9206
  let filePath = null;
@@ -9210,7 +9210,7 @@ function parsePlayRunOptions(args, initialInput = null) {
9210
9210
  let revisionSelector = null;
9211
9211
  const watch = !args.includes("--no-wait");
9212
9212
  const dryRun = args.includes("--dry-run");
9213
- let jsonOutput = dryRun ? _chunkQCSLIEMCjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkQCSLIEMCjs.argsWantJson.call(void 0, args);
9213
+ let jsonOutput = dryRun ? _chunk7ZAG2XG5js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk7ZAG2XG5js.argsWantJson.call(void 0, args);
9214
9214
  const fullJson = args.includes("--full");
9215
9215
  const force = args.includes("--force");
9216
9216
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -9257,7 +9257,7 @@ function parsePlayRunOptions(args, initialInput = null) {
9257
9257
  "--log-level requires one of: debug, info, warn, error."
9258
9258
  );
9259
9259
  }
9260
- const parsed = _chunkS347PHNBjs.parseLogLevel.call(void 0, value);
9260
+ const parsed = _chunkCIDP2FSOjs.parseLogLevel.call(void 0, value);
9261
9261
  if (!parsed) {
9262
9262
  throw new Error(
9263
9263
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -9564,7 +9564,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
9564
9564
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
9565
9565
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
9566
9566
  );
9567
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkS347PHNBjs.parseLogLevel.call(void 0, options.logLevel);
9567
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkCIDP2FSOjs.parseLogLevel.call(void 0, options.logLevel);
9568
9568
  if (!logLevel)
9569
9569
  throw new Error("--log-level requires one of: debug, info, warn, error.");
9570
9570
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -9578,13 +9578,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
9578
9578
  if (debugAlias || debugMapLatency && logLevel === "info")
9579
9579
  logLevel = "debug";
9580
9580
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
9581
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkQCSLIEMCjs.parseJsonFields.call(void 0,
9582
- [...fullJson ? ["--full"] : [], ..._chunkQCSLIEMCjs.jsonFieldArgs.call(void 0, options.json)],
9581
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunk7ZAG2XG5js.parseJsonFields.call(void 0,
9582
+ [...fullJson ? ["--full"] : [], ..._chunk7ZAG2XG5js.jsonFieldArgs.call(void 0, options.json)],
9583
9583
  "run"
9584
9584
  ).fields;
9585
9585
  const watch = options.wait === false ? false : base.watch;
9586
9586
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
9587
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkQCSLIEMCjs.argsWantJson.call(void 0, []) : explicitJson;
9587
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunk7ZAG2XG5js.argsWantJson.call(void 0, []) : explicitJson;
9588
9588
  const verboseLogs = Boolean(
9589
9589
  debugAlias || logLevel === "debug" || debugMapLatency
9590
9590
  );
@@ -9628,7 +9628,7 @@ function playAuthoringGraphPath(parent, filePath) {
9628
9628
  // src/cli/renderers/local-play-execution.ts
9629
9629
  function renderLocalPlayExecutionPlan(plan, options = {}) {
9630
9630
  if (options.dryRun) {
9631
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
9631
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
9632
9632
  return;
9633
9633
  }
9634
9634
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -10584,7 +10584,7 @@ function playStatusErrorText(status) {
10584
10584
  function isRetryablePendingStartFailure(status) {
10585
10585
  if (status.status !== "failed") return false;
10586
10586
  if (status.runId && status.runId !== "pending") return false;
10587
- return _chunkS347PHNBjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
10587
+ return _chunkCIDP2FSOjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
10588
10588
  }
10589
10589
  function pendingStartFailureStatus(input) {
10590
10590
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -10611,13 +10611,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
10611
10611
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
10612
10612
  function watchSurfaceReaches(state, provenance, level) {
10613
10613
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
10614
- if (!_chunkS347PHNBjs.logLevelReaches.call(void 0, level, minimumLevel)) {
10614
+ if (!_chunkCIDP2FSOjs.logLevelReaches.call(void 0, level, minimumLevel)) {
10615
10615
  return false;
10616
10616
  }
10617
- if (_chunkS347PHNBjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
10617
+ if (_chunkCIDP2FSOjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
10618
10618
  return true;
10619
10619
  }
10620
- return state.verbose === true && _chunkS347PHNBjs.logProvenanceReaches.call(void 0, provenance, "debug");
10620
+ return state.verbose === true && _chunkCIDP2FSOjs.logProvenanceReaches.call(void 0, provenance, "debug");
10621
10621
  }
10622
10622
  function getEventPayload(event) {
10623
10623
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -11119,7 +11119,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
11119
11119
  }
11120
11120
  function openPlayDashboard(dashboardUrl, open2) {
11121
11121
  if (open2 && dashboardUrl) {
11122
- _chunkQCSLIEMCjs.openInBrowser.call(void 0, dashboardUrl);
11122
+ _chunk7ZAG2XG5js.openInBrowser.call(void 0, dashboardUrl);
11123
11123
  }
11124
11124
  }
11125
11125
  function printPlayLogLines(input) {
@@ -11181,7 +11181,7 @@ async function waitForPlayCompletionByWatch(input) {
11181
11181
  billing: false
11182
11182
  });
11183
11183
  } catch (error) {
11184
- if (_chunkS347PHNBjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
11184
+ if (_chunkCIDP2FSOjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
11185
11185
  return null;
11186
11186
  }
11187
11187
  throw error;
@@ -11370,7 +11370,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11370
11370
  billing: false
11371
11371
  });
11372
11372
  } catch (error) {
11373
- if (_chunkS347PHNBjs.isTransientPlayRunReadError.call(void 0, error)) {
11373
+ if (_chunkCIDP2FSOjs.isTransientPlayRunReadError.call(void 0, error)) {
11374
11374
  return null;
11375
11375
  }
11376
11376
  throw error;
@@ -11578,7 +11578,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11578
11578
  lastPhase
11579
11579
  });
11580
11580
  }
11581
- if (lastKnownWorkflowId && _chunkS347PHNBjs.isTransientPlayRunReadError.call(void 0, error)) {
11581
+ if (lastKnownWorkflowId && _chunkCIDP2FSOjs.isTransientPlayRunReadError.call(void 0, error)) {
11582
11582
  if (timeout) {
11583
11583
  clearTimeout(timeout);
11584
11584
  }
@@ -11614,7 +11614,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11614
11614
  onRunAdmitted: confirmAdmission
11615
11615
  });
11616
11616
  }
11617
- if (!lastKnownWorkflowId && _chunkS347PHNBjs.isTransientPlayRunReadError.call(void 0, error)) {
11617
+ if (!lastKnownWorkflowId && _chunkCIDP2FSOjs.isTransientPlayRunReadError.call(void 0, error)) {
11618
11618
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
11619
11619
  phase: "cli.play_start_stream_transient_failure",
11620
11620
  ms: Date.now() - startedAt,
@@ -11713,7 +11713,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
11713
11713
  "logs"
11714
11714
  ]);
11715
11715
  function formatPlayLogLine(rawLine, state) {
11716
- const classified = _chunkS347PHNBjs.classifyLogLine.call(void 0, rawLine);
11716
+ const classified = _chunkCIDP2FSOjs.classifyLogLine.call(void 0, rawLine);
11717
11717
  const line = classified.line;
11718
11718
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
11719
11719
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _351 => _351[1]]) ? new Date(timestampMatch[1]) : null;
@@ -11728,14 +11728,14 @@ function formatPlayLogLine(rawLine, state) {
11728
11728
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
11729
11729
  const providerWait = formatProviderCapacityWaitLogLine(line);
11730
11730
  if (providerWait && !state.verbose) {
11731
- return _chunkS347PHNBjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
11731
+ return _chunkCIDP2FSOjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
11732
11732
  }
11733
11733
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
11734
11734
  if (mapProgress && !state.verbose) {
11735
- return _chunkS347PHNBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
11735
+ return _chunkCIDP2FSOjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
11736
11736
  }
11737
11737
  if (/\[worker\] picked up run\b/.test(message)) {
11738
- if (!_chunkS347PHNBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11738
+ if (!_chunkCIDP2FSOjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11739
11739
  return null;
11740
11740
  }
11741
11741
  if (state.emittedRunnerStarted) {
@@ -11748,7 +11748,7 @@ function formatPlayLogLine(rawLine, state) {
11748
11748
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
11749
11749
  );
11750
11750
  if (mapStart) {
11751
- if (!_chunkS347PHNBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11751
+ if (!_chunkCIDP2FSOjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11752
11752
  return null;
11753
11753
  }
11754
11754
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -11758,7 +11758,7 @@ function formatPlayLogLine(rawLine, state) {
11758
11758
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
11759
11759
  );
11760
11760
  if (mapDone) {
11761
- if (!_chunkS347PHNBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11761
+ if (!_chunkCIDP2FSOjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11762
11762
  return null;
11763
11763
  }
11764
11764
  const [, results, executed, cached] = mapDone;
@@ -13047,7 +13047,7 @@ function formatRecentRunLogLines(value) {
13047
13047
  (line) => typeof line === "string"
13048
13048
  );
13049
13049
  if (tail.length === 0) return [];
13050
- const shown = tail.map((line) => _chunkS347PHNBjs.classifyLogLine.call(void 0, line)).filter(
13050
+ const shown = tail.map((line) => _chunkCIDP2FSOjs.classifyLogLine.call(void 0, line)).filter(
13051
13051
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
13052
13052
  ).slice(-8);
13053
13053
  const total = readNonNegativeInteger(logs.totalCount);
@@ -13327,7 +13327,7 @@ function writePlayResult(status, jsonOutput, options) {
13327
13327
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _432 => _432.hits]), () => ( null));
13328
13328
  if (jsonOutput) {
13329
13329
  const payload2 = _optionalChain([options, 'optionalAccess', _433 => _433.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
13330
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
13330
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
13331
13331
  hits ? { ...payload2, hits } : payload2,
13332
13332
  { json: true, fields: _optionalChain([options, 'optionalAccess', _434 => _434.jsonFields]) }
13333
13333
  );
@@ -13343,7 +13343,7 @@ function writePlayResult(status, jsonOutput, options) {
13343
13343
  ...buildPlayCompletionTextLines(status),
13344
13344
  ...formatRunHitsLines(hits)
13345
13345
  ];
13346
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, displayPackage, {
13346
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, displayPackage, {
13347
13347
  json: false,
13348
13348
  text: `${lines2.join("\n")}
13349
13349
  `
@@ -13394,7 +13394,7 @@ function writePlayResult(status, jsonOutput, options) {
13394
13394
  lines.push(...buildBillingRollupTextLines(status));
13395
13395
  const compact = compactPlayStatus(status);
13396
13396
  const payload = _optionalChain([options, 'optionalAccess', _436 => _436.fullJson]) ? status : compact;
13397
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
13397
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
13398
13398
  {
13399
13399
  ...payload,
13400
13400
  render: {
@@ -14166,7 +14166,7 @@ function writeStartedPlayRun(input) {
14166
14166
  dashboardUrl: input.dashboardUrl,
14167
14167
  package: input.package
14168
14168
  };
14169
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
14169
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
14170
14170
  json: true,
14171
14171
  fields: input.jsonFields
14172
14172
  });
@@ -14188,7 +14188,7 @@ function writeStartedPlayRun(input) {
14188
14188
  input.progress.writeLine(output2, process.stdout);
14189
14189
  return;
14190
14190
  }
14191
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, input.package, {
14191
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, input.package, {
14192
14192
  json: false,
14193
14193
  text: `${output2}
14194
14194
  `
@@ -14217,7 +14217,7 @@ function writeStartedPlayRun(input) {
14217
14217
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)} --json`] : []
14218
14218
  ];
14219
14219
  if (input.jsonOutput) {
14220
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
14220
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
14221
14221
  return;
14222
14222
  }
14223
14223
  if (input.dashboardUrl) {
@@ -14228,7 +14228,7 @@ function writeStartedPlayRun(input) {
14228
14228
  input.progress.writeLine(output, process.stdout);
14229
14229
  return;
14230
14230
  }
14231
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
14231
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
14232
14232
  {
14233
14233
  ...payload,
14234
14234
  render: { sections: [{ title: "play run", lines }] }
@@ -14238,7 +14238,7 @@ function writeStartedPlayRun(input) {
14238
14238
  );
14239
14239
  }
14240
14240
  function parsePlayCheckOptions(args) {
14241
- const selection = _chunkQCSLIEMCjs.parseJsonFields.call(void 0, args, "check");
14241
+ const selection = _chunk7ZAG2XG5js.parseJsonFields.call(void 0, args, "check");
14242
14242
  args = selection.args;
14243
14243
  const target = args[0];
14244
14244
  if (!target || target.startsWith("-")) {
@@ -14250,7 +14250,7 @@ function parsePlayCheckOptions(args) {
14250
14250
  if (arg !== "--json" && arg !== "--full")
14251
14251
  throw new Error(`Unknown plays check option: ${arg}`);
14252
14252
  }
14253
- const jsonOutput = _chunkQCSLIEMCjs.argsWantJson.call(void 0, args);
14253
+ const jsonOutput = _chunk7ZAG2XG5js.argsWantJson.call(void 0, args);
14254
14254
  return {
14255
14255
  target,
14256
14256
  jsonOutput,
@@ -14326,7 +14326,7 @@ ${PLAY_PUBLISH_USAGE}`
14326
14326
  useLatest,
14327
14327
  expectedArtifactHash,
14328
14328
  dryRun,
14329
- jsonOutput: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args)
14329
+ jsonOutput: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args)
14330
14330
  };
14331
14331
  }
14332
14332
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -14367,7 +14367,7 @@ ${PLAY_SAVE_USAGE}`);
14367
14367
  target,
14368
14368
  expectedArtifactHash,
14369
14369
  dryRun,
14370
- jsonOutput: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args)
14370
+ jsonOutput: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args)
14371
14371
  };
14372
14372
  }
14373
14373
  function printScheduledPlayCapacity(capacity) {
@@ -14578,7 +14578,7 @@ function printBundledRuntimeWarning(bundle) {
14578
14578
  async function handlePlayCheck(args) {
14579
14579
  const options = parsePlayCheckOptions(args);
14580
14580
  if (!isFileTarget2(options.target)) {
14581
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
14581
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
14582
14582
  try {
14583
14583
  await assertCanonicalNamedPlayReference(client, options.target, {
14584
14584
  command: "check"
@@ -14607,7 +14607,7 @@ async function handlePlayCheck(args) {
14607
14607
  },
14608
14608
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
14609
14609
  };
14610
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, result, {
14610
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, result, {
14611
14611
  json: options.jsonOutput,
14612
14612
  fields: options.jsonFields,
14613
14613
  text: renderPlayCheckOutput(result) + "\n"
@@ -14617,7 +14617,7 @@ async function handlePlayCheck(args) {
14617
14617
  const resolved = _path.resolve.call(void 0, options.target);
14618
14618
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
14619
14619
  if (options.jsonOutput) {
14620
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
14620
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
14621
14621
  {
14622
14622
  kind: "play_check",
14623
14623
  checked: "named_contract",
@@ -14659,7 +14659,7 @@ async function handlePlayCheck(args) {
14659
14659
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full --json`,
14660
14660
  publishCommand: _optionalChain([primary, 'optionalAccess', _483 => _483.result, 'access', _484 => _484.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
14661
14661
  });
14662
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, output, {
14662
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, output, {
14663
14663
  json: options.jsonOutput,
14664
14664
  fields: options.jsonFields,
14665
14665
  text: renderPlayCheckOutput(output) + "\n"
@@ -14713,7 +14713,7 @@ async function checkOneExportedPlay(input) {
14713
14713
  }
14714
14714
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
14715
14715
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
14716
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
14716
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
14717
14717
  const integrationMode = resolveEvalIntegrationMode();
14718
14718
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
14719
14719
  playName: node.playName,
@@ -14790,7 +14790,7 @@ async function handleFileBackedRun(options, hooks) {
14790
14790
  );
14791
14791
  return 0;
14792
14792
  }
14793
- client = new (0, _chunkS347PHNBjs.DeeplineClient)(playRunClientOptions(options));
14793
+ client = new (0, _chunkCIDP2FSOjs.DeeplineClient)(playRunClientOptions(options));
14794
14794
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
14795
14795
  if (canDeferCompilerManifest) {
14796
14796
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
@@ -14985,7 +14985,7 @@ async function handleNamedRun(options, hooks) {
14985
14985
  if (options.target.kind !== "name") {
14986
14986
  throw new Error("Expected a named play run target.");
14987
14987
  }
14988
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)(playRunClientOptions(options));
14988
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)(playRunClientOptions(options));
14989
14989
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
14990
14990
  const playName = options.target.name;
14991
14991
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -15382,10 +15382,10 @@ function renderRunOverviewText(overview, extras = {}) {
15382
15382
  );
15383
15383
  return `${lines.join("\n")}
15384
15384
 
15385
- ${_chunkQCSLIEMCjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
15385
+ ${_chunk7ZAG2XG5js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
15386
15386
  }
15387
15387
  async function handleRunGet(args) {
15388
- const selection = _chunkQCSLIEMCjs.parseJsonFields.call(void 0,
15388
+ const selection = _chunk7ZAG2XG5js.parseJsonFields.call(void 0,
15389
15389
  args,
15390
15390
  args.includes("--config") ? "config" : "get"
15391
15391
  );
@@ -15398,7 +15398,7 @@ async function handleRunGet(args) {
15398
15398
  console.error(error instanceof Error ? error.message : usage2);
15399
15399
  return 1;
15400
15400
  }
15401
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
15401
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
15402
15402
  if (args.includes("--config")) {
15403
15403
  if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
15404
15404
  console.error(
@@ -15412,7 +15412,7 @@ async function handleRunGet(args) {
15412
15412
  "This server does not support recorded configuration reads."
15413
15413
  );
15414
15414
  }
15415
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
15415
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
15416
15416
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
15417
15417
  { json: true, fields: selection.fields }
15418
15418
  );
@@ -15420,7 +15420,7 @@ async function handleRunGet(args) {
15420
15420
  }
15421
15421
  if (args.includes("--input")) {
15422
15422
  const input = await client.getRunInput(runId);
15423
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, input, { json: true });
15423
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, input, { json: true });
15424
15424
  return 0;
15425
15425
  }
15426
15426
  const full = args.includes("--full");
@@ -15434,8 +15434,8 @@ async function handleRunGet(args) {
15434
15434
  full: true,
15435
15435
  failedLogs: args.includes("--log-failed")
15436
15436
  }) : status;
15437
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
15438
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
15437
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
15438
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
15439
15439
  full ? legacyStatus : compactPlayStatus(legacyStatus),
15440
15440
  { json: true, fields: selection.fields }
15441
15441
  );
@@ -15451,8 +15451,8 @@ async function handleRunGet(args) {
15451
15451
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
15452
15452
  ]);
15453
15453
  const hitLines = formatRunHitsLines(hits);
15454
- const json = _chunkQCSLIEMCjs.argsWantJson.call(void 0, args);
15455
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
15454
+ const json = _chunk7ZAG2XG5js.argsWantJson.call(void 0, args);
15455
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
15456
15456
  {
15457
15457
  ...overview,
15458
15458
  credits,
@@ -15555,9 +15555,9 @@ async function handleRunLifecycleStatus(args) {
15555
15555
  console.error(error instanceof Error ? error.message : usage2);
15556
15556
  return 1;
15557
15557
  }
15558
- const status = await new (0, _chunkS347PHNBjs.DeeplineClient)().runs.status(runId);
15559
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
15560
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, status, { json: true });
15558
+ const status = await new (0, _chunkCIDP2FSOjs.DeeplineClient)().runs.status(runId);
15559
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
15560
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, status, { json: true });
15561
15561
  return 0;
15562
15562
  }
15563
15563
  if (!status.available) {
@@ -15597,7 +15597,7 @@ async function handleRunsRerun(args) {
15597
15597
  console.error(error instanceof Error ? error.message : usage2);
15598
15598
  return 1;
15599
15599
  }
15600
- const options = { json: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args) };
15600
+ const options = { json: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args) };
15601
15601
  for (let index = 0; index < args.length; index += 1) {
15602
15602
  if (args[index] === "--idempotency-key") {
15603
15603
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -15662,8 +15662,8 @@ ${usage2}
15662
15662
  Discover Plays: ${next.discover}
15663
15663
  Active runs: ${next.running}`
15664
15664
  );
15665
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
15666
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
15665
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
15666
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
15667
15667
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
15668
15668
  { json: true }
15669
15669
  );
@@ -15678,7 +15678,7 @@ Active runs: ${next.running}`
15678
15678
  console.error("--offset requires --play.");
15679
15679
  return 1;
15680
15680
  }
15681
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
15681
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
15682
15682
  const page = await client.runs.listPage({
15683
15683
  ...playName ? { play: playName } : {},
15684
15684
  ...statusFilter ? { status: statusFilter } : {},
@@ -15747,7 +15747,7 @@ Active runs: ${next.running}`
15747
15747
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
15748
15748
  );
15749
15749
  }
15750
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
15750
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
15751
15751
  {
15752
15752
  runs,
15753
15753
  count: runs.length,
@@ -15761,7 +15761,7 @@ Active runs: ${next.running}`
15761
15761
  },
15762
15762
  render: { sections: [{ title: "runs", lines }] }
15763
15763
  },
15764
- { json: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args) }
15764
+ { json: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args) }
15765
15765
  );
15766
15766
  return 0;
15767
15767
  }
@@ -15791,7 +15791,7 @@ async function handleRunTail(args) {
15791
15791
  console.error("--log-level requires one of: debug, info, warn, error.");
15792
15792
  return 1;
15793
15793
  }
15794
- const parsed = _chunkS347PHNBjs.parseLogLevel.call(void 0, value);
15794
+ const parsed = _chunkCIDP2FSOjs.parseLogLevel.call(void 0, value);
15795
15795
  if (!parsed) {
15796
15796
  console.error(
15797
15797
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15829,9 +15829,9 @@ async function handleRunTail(args) {
15829
15829
  );
15830
15830
  return 1;
15831
15831
  }
15832
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
15832
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
15833
15833
  const jsonLines = args.includes("--jsonl");
15834
- const jsonOutput = !jsonLines && _chunkQCSLIEMCjs.argsWantJson.call(void 0, args);
15834
+ const jsonOutput = !jsonLines && _chunk7ZAG2XG5js.argsWantJson.call(void 0, args);
15835
15835
  const compact = args.includes("--compact");
15836
15836
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
15837
15837
  const compactState = {
@@ -15912,7 +15912,7 @@ async function handleRunLogs(args) {
15912
15912
  ]);
15913
15913
  const cursorIndex = args.indexOf("--cursor");
15914
15914
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
15915
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkS347PHNBjs.isRunLogsCursor.call(void 0, cursorValue));
15915
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkCIDP2FSOjs.isRunLogsCursor.call(void 0, cursorValue));
15916
15916
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
15917
15917
  return handleRunEventSearch(args);
15918
15918
  }
@@ -15946,7 +15946,7 @@ async function handleRunLogs(args) {
15946
15946
  console.error("--log-level requires one of: debug, info, warn, error.");
15947
15947
  return 1;
15948
15948
  }
15949
- const parsed = _chunkS347PHNBjs.parseLogLevel.call(void 0, value);
15949
+ const parsed = _chunkCIDP2FSOjs.parseLogLevel.call(void 0, value);
15950
15950
  if (!parsed) {
15951
15951
  console.error(
15952
15952
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15993,12 +15993,12 @@ async function handleRunLogs(args) {
15993
15993
  );
15994
15994
  return 1;
15995
15995
  }
15996
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
15996
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
15997
15997
  if (outPath) {
15998
15998
  const result2 = await client.runs.logs(runId, { all: true });
15999
- const logs = result2.entries.filter((line) => _chunkS347PHNBjs.logLevelReaches.call(void 0, _chunkS347PHNBjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkS347PHNBjs.classifyLogLine.call(void 0, line).line);
15999
+ const logs = result2.entries.filter((line) => _chunkCIDP2FSOjs.logLevelReaches.call(void 0, _chunkCIDP2FSOjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkCIDP2FSOjs.classifyLogLine.call(void 0, line).line);
16000
16000
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
16001
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
16001
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
16002
16002
  {
16003
16003
  runId: result2.runId,
16004
16004
  log_path: outPath,
@@ -16021,7 +16021,7 @@ async function handleRunLogs(args) {
16021
16021
  ]
16022
16022
  }
16023
16023
  },
16024
- { json: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args) }
16024
+ { json: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args) }
16025
16025
  );
16026
16026
  return 0;
16027
16027
  }
@@ -16052,7 +16052,7 @@ async function handleRunLogs(args) {
16052
16052
  }
16053
16053
  };
16054
16054
  const text = buildRunLogsText(filteredResult);
16055
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
16055
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
16056
16056
  {
16057
16057
  runId: result.runId,
16058
16058
  totalCount: result.totalCount,
@@ -16076,7 +16076,7 @@ async function handleRunLogs(args) {
16076
16076
  render: { sections: [{ title: "run logs", lines: entries }] }
16077
16077
  },
16078
16078
  {
16079
- json: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args),
16079
+ json: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args),
16080
16080
  text
16081
16081
  }
16082
16082
  );
@@ -16100,7 +16100,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
16100
16100
  );
16101
16101
  }
16102
16102
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
16103
- (entry) => _chunkS347PHNBjs.logLevelReaches.call(void 0, _chunkS347PHNBjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
16103
+ (entry) => _chunkCIDP2FSOjs.logLevelReaches.call(void 0, _chunkCIDP2FSOjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
16104
16104
  );
16105
16105
  const selected = matching.slice(-limit);
16106
16106
  const olderMatchesExist = matching.length > selected.length;
@@ -16110,7 +16110,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
16110
16110
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _526 => _526.at, 'call', _527 => _527(-1), 'optionalAccess', _528 => _528.seq]), () => ( null)),
16111
16111
  truncated: result.truncated || olderMatchesExist,
16112
16112
  hasMore: olderMatchesExist,
16113
- nextCursor: olderMatchesExist ? _chunkS347PHNBjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
16113
+ nextCursor: olderMatchesExist ? _chunkCIDP2FSOjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
16114
16114
  };
16115
16115
  }
16116
16116
  async function handleRunEventSearch(args) {
@@ -16177,7 +16177,7 @@ ${usage2}`);
16177
16177
  namespace,
16178
16178
  ...backend ? { backend } : {}
16179
16179
  } : void 0;
16180
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
16180
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
16181
16181
  const result = await client.runs.searchEvents({
16182
16182
  ...runId ? { runId } : {},
16183
16183
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -16250,7 +16250,7 @@ ${renderedDetails}` : ""}`;
16250
16250
  String(limit),
16251
16251
  "--json"
16252
16252
  ].join(" ") : null;
16253
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
16253
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
16254
16254
  {
16255
16255
  events,
16256
16256
  nextCursor: result.nextCursor,
@@ -16261,14 +16261,14 @@ ${renderedDetails}` : ""}`;
16261
16261
  render: { sections: [{ title: "runtime events", lines }] }
16262
16262
  },
16263
16263
  {
16264
- json: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args),
16264
+ json: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args),
16265
16265
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
16266
16266
  }
16267
16267
  );
16268
16268
  return 0;
16269
16269
  }
16270
16270
  function buildRunLogsText(result) {
16271
- const lines = result.entries.map((line) => _chunkS347PHNBjs.classifyLogLine.call(void 0, line).line);
16271
+ const lines = result.entries.map((line) => _chunkCIDP2FSOjs.classifyLogLine.call(void 0, line).line);
16272
16272
  if (result.warning) {
16273
16273
  if (lines.length > 0) lines.push("");
16274
16274
  lines.push(`warning: ${result.warning}`);
@@ -16302,7 +16302,7 @@ async function handleRunStop(args) {
16302
16302
  reason = args[++index];
16303
16303
  }
16304
16304
  }
16305
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
16305
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
16306
16306
  const result = await client.runs.stop(runId, { reason });
16307
16307
  const state = resolveRunStopState(result);
16308
16308
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -16317,7 +16317,7 @@ async function handleRunStop(args) {
16317
16317
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
16318
16318
  `inspect: deepline runs get ${runId} --full --json`
16319
16319
  ];
16320
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
16320
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
16321
16321
  {
16322
16322
  ...cancelling,
16323
16323
  state,
@@ -16332,7 +16332,7 @@ async function handleRunStop(args) {
16332
16332
  ]
16333
16333
  }
16334
16334
  },
16335
- { json: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args) }
16335
+ { json: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args) }
16336
16336
  );
16337
16337
  return 0;
16338
16338
  }
@@ -16349,7 +16349,7 @@ async function handleRunStop(args) {
16349
16349
  ];
16350
16350
  process.stderr.write(`${lines2.join("\n")}
16351
16351
  `);
16352
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
16352
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
16353
16353
  {
16354
16354
  ...result,
16355
16355
  render: {
@@ -16364,7 +16364,7 @@ async function handleRunStop(args) {
16364
16364
  ]
16365
16365
  }
16366
16366
  },
16367
- { json: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args) }
16367
+ { json: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args) }
16368
16368
  );
16369
16369
  return 1;
16370
16370
  }
@@ -16375,12 +16375,12 @@ async function handleRunStop(args) {
16375
16375
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
16376
16376
  ] : []
16377
16377
  ];
16378
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
16378
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
16379
16379
  {
16380
16380
  ...result,
16381
16381
  render: { sections: [{ title: "run stop", lines }] }
16382
16382
  },
16383
- { json: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args) }
16383
+ { json: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args) }
16384
16384
  );
16385
16385
  return 0;
16386
16386
  }
@@ -16430,18 +16430,18 @@ async function handleRunStopAll(args) {
16430
16430
  reason = args[++index];
16431
16431
  }
16432
16432
  }
16433
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
16433
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
16434
16434
  if (dryRun) {
16435
16435
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
16436
16436
  const lines2 = buildStopAllDryRunTextLines(result2);
16437
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
16437
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
16438
16438
  {
16439
16439
  ...result2,
16440
16440
  render: {
16441
16441
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
16442
16442
  }
16443
16443
  },
16444
- { json: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
16444
+ { json: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
16445
16445
  ` }
16446
16446
  );
16447
16447
  return 0;
@@ -16454,17 +16454,17 @@ async function handleRunStopAll(args) {
16454
16454
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
16455
16455
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
16456
16456
  ];
16457
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
16457
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
16458
16458
  {
16459
16459
  ...result,
16460
16460
  render: { sections: [{ title: "workspace stop-all", lines }] }
16461
16461
  },
16462
- { json: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args) }
16462
+ { json: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args) }
16463
16463
  );
16464
16464
  return result.failed > 0 || result.partial ? 1 : 0;
16465
16465
  }
16466
16466
  async function handleRunExport(args) {
16467
- const selection = _chunkQCSLIEMCjs.parseJsonFields.call(void 0, args, "export");
16467
+ const selection = _chunk7ZAG2XG5js.parseJsonFields.call(void 0, args, "export");
16468
16468
  args = selection.args;
16469
16469
  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]";
16470
16470
  let runId;
@@ -16523,16 +16523,16 @@ async function handleRunExport(args) {
16523
16523
  "INVALID_ARGUMENT"
16524
16524
  );
16525
16525
  }
16526
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
16526
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
16527
16527
  let status = await client.getPlayStatus(runId, { full: true });
16528
16528
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
16529
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkQCSLIEMCjs.argsWantJson.call(void 0, args));
16529
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunk7ZAG2XG5js.argsWantJson.call(void 0, args));
16530
16530
  try {
16531
16531
  await waitForPlayCompletionByWatch({
16532
16532
  client,
16533
16533
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
16534
16534
  workflowId: runId,
16535
- jsonOutput: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args),
16535
+ jsonOutput: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args),
16536
16536
  emitLogs: false,
16537
16537
  waitTimeoutMs,
16538
16538
  startedAt: Date.now(),
@@ -16632,8 +16632,8 @@ async function handleRunExport(args) {
16632
16632
  "utf-8"
16633
16633
  );
16634
16634
  }
16635
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0, payload, {
16636
- json: _chunkQCSLIEMCjs.argsWantJson.call(void 0, args),
16635
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0, payload, {
16636
+ json: _chunk7ZAG2XG5js.argsWantJson.call(void 0, args),
16637
16637
  fields: selection.fields,
16638
16638
  text: `${lines.join("\n")}
16639
16639
  `
@@ -16654,10 +16654,10 @@ async function handlePlayGet(args) {
16654
16654
  );
16655
16655
  return 2;
16656
16656
  }
16657
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
16657
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
16658
16658
  const explicitJson = args.includes("--json");
16659
16659
  const sourceOutput = args.includes("--source");
16660
- const jsonOutput = sourceOutput ? explicitJson : _chunkQCSLIEMCjs.argsWantJson.call(void 0, args);
16660
+ const jsonOutput = sourceOutput ? explicitJson : _chunk7ZAG2XG5js.argsWantJson.call(void 0, args);
16661
16661
  const requestedRevisionFlags = [
16662
16662
  args.includes("--working"),
16663
16663
  args.includes("--live"),
@@ -16717,7 +16717,7 @@ async function handlePlayGet(args) {
16717
16717
  }
16718
16718
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
16719
16719
  if (jsonOutput) {
16720
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, {
16720
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, {
16721
16721
  ...detail,
16722
16722
  ...materializedFile ? {
16723
16723
  message: loadedMessage,
@@ -16804,8 +16804,8 @@ async function handlePlayVersions(args) {
16804
16804
  console.error("Usage: deepline plays versions --name <name> [--json]");
16805
16805
  return 1;
16806
16806
  }
16807
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
16808
- const jsonOutput = _chunkQCSLIEMCjs.argsWantJson.call(void 0, args);
16807
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
16808
+ const jsonOutput = _chunk7ZAG2XG5js.argsWantJson.call(void 0, args);
16809
16809
  await assertCanonicalNamedPlayReference(client, playName, {
16810
16810
  command: "versions"
16811
16811
  });
@@ -16813,7 +16813,7 @@ async function handlePlayVersions(args) {
16813
16813
  parseReferencedPlayTarget3(playName).playName
16814
16814
  );
16815
16815
  if (jsonOutput) {
16816
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, { versions });
16816
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, { versions });
16817
16817
  return 0;
16818
16818
  }
16819
16819
  if (versions.length === 0) {
@@ -16845,9 +16845,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
16845
16845
  "signals"
16846
16846
  ];
16847
16847
  async function handlePlayList(args) {
16848
- const jsonOutput = _chunkQCSLIEMCjs.argsWantJson.call(void 0, args);
16848
+ const jsonOutput = _chunk7ZAG2XG5js.argsWantJson.call(void 0, args);
16849
16849
  const showCost = args.includes("--show-cost");
16850
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
16850
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
16851
16851
  const categoriesIndex = args.indexOf("--categories");
16852
16852
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _564 => _564[categoriesIndex + 1], 'optionalAccess', _565 => _565.trim, 'call', _566 => _566()]) : void 0;
16853
16853
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -16944,7 +16944,7 @@ async function handlePlayList(args) {
16944
16944
  lines.push("List truncated \u2014 more plays are available.");
16945
16945
  lines.push(`Next page: ${nextPage}`);
16946
16946
  }
16947
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
16947
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
16948
16948
  {
16949
16949
  plays,
16950
16950
  count: plays.length,
@@ -16962,7 +16962,7 @@ async function handlePlayList(args) {
16962
16962
  }
16963
16963
  async function handlePlayPin(args, pinned) {
16964
16964
  const target = _optionalChain([args, 'access', _573 => _573.find, 'call', _574 => _574((arg) => !arg.startsWith("-")), 'optionalAccess', _575 => _575.trim, 'call', _576 => _576()]);
16965
- const jsonOutput = _chunkQCSLIEMCjs.argsWantJson.call(void 0, args);
16965
+ const jsonOutput = _chunk7ZAG2XG5js.argsWantJson.call(void 0, args);
16966
16966
  const dryRun = args.includes("--dry-run");
16967
16967
  if (!target) {
16968
16968
  console.error(
@@ -16980,11 +16980,11 @@ async function handlePlayPin(args, pinned) {
16980
16980
  const name = parsedTarget.playName;
16981
16981
  const plan = { name, pinned, dryRun };
16982
16982
  if (dryRun) {
16983
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, plan);
16983
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, plan);
16984
16984
  return 0;
16985
16985
  }
16986
- const result = await new (0, _chunkS347PHNBjs.DeeplineClient)().setPlayPinned(name, pinned);
16987
- if (jsonOutput) _chunkQCSLIEMCjs.printCompactJson.call(void 0, result);
16986
+ const result = await new (0, _chunkCIDP2FSOjs.DeeplineClient)().setPlayPinned(name, pinned);
16987
+ if (jsonOutput) _chunk7ZAG2XG5js.printCompactJson.call(void 0, result);
16988
16988
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
16989
16989
  return 0;
16990
16990
  }
@@ -17000,7 +17000,7 @@ function csvColumnLines(csvInput) {
17000
17000
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
17001
17001
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
17002
17002
  }),
17003
- _chunkS347PHNBjs.CSV_HEADER_MATCHING_NOTE
17003
+ _chunkCIDP2FSOjs.CSV_HEADER_MATCHING_NOTE
17004
17004
  ];
17005
17005
  }
17006
17006
  function describedPlay(play) {
@@ -17144,12 +17144,12 @@ async function handlePlayGrep(args) {
17144
17144
  console.error("Usage: deepline plays grep <query> [--json]");
17145
17145
  return 1;
17146
17146
  }
17147
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
17147
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
17148
17148
  const results = (await client.listPlays({ grep: query })).map(
17149
17149
  summarizePlayGrepResult
17150
17150
  );
17151
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
17152
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, {
17151
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
17152
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, {
17153
17153
  plays: results,
17154
17154
  count: results.length,
17155
17155
  query,
@@ -17172,7 +17172,7 @@ async function handlePlayGrep(args) {
17172
17172
  return 0;
17173
17173
  }
17174
17174
  async function handlePlayDescribe(args) {
17175
- const selection = _chunkQCSLIEMCjs.parseJsonFields.call(void 0, args, "describe");
17175
+ const selection = _chunk7ZAG2XG5js.parseJsonFields.call(void 0, args, "describe");
17176
17176
  args = selection.args;
17177
17177
  const playName = args[0];
17178
17178
  if (!playName) {
@@ -17206,8 +17206,8 @@ async function handlePlayDescribe(args) {
17206
17206
  `deepline plays check ${playName}`,
17207
17207
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
17208
17208
  ];
17209
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
17210
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, {
17209
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
17210
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, {
17211
17211
  ok: false,
17212
17212
  error: { message },
17213
17213
  next
@@ -17221,7 +17221,7 @@ async function handlePlayDescribe(args) {
17221
17221
  }
17222
17222
  return 2;
17223
17223
  }
17224
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
17224
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
17225
17225
  await assertCanonicalNamedPlayReference(client, playName, {
17226
17226
  command: "describe"
17227
17227
  });
@@ -17231,9 +17231,9 @@ async function handlePlayDescribe(args) {
17231
17231
  compact: args.includes("--compact")
17232
17232
  }
17233
17233
  );
17234
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
17235
- if (selection.fields) _chunkQCSLIEMCjs.printJson.call(void 0, play, selection.fields);
17236
- else _chunkQCSLIEMCjs.printCompactJson.call(void 0, play);
17234
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
17235
+ if (selection.fields) _chunk7ZAG2XG5js.printJson.call(void 0, play, selection.fields);
17236
+ else _chunk7ZAG2XG5js.printCompactJson.call(void 0, play);
17237
17237
  return 0;
17238
17238
  }
17239
17239
  printPlayDescription(play);
@@ -17277,7 +17277,7 @@ async function handlePlaySave(args) {
17277
17277
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
17278
17278
  };
17279
17279
  if (options.jsonOutput) {
17280
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, result);
17280
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, result);
17281
17281
  } else {
17282
17282
  console.error(result.message);
17283
17283
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -17299,7 +17299,7 @@ async function handlePlaySave(args) {
17299
17299
  };
17300
17300
  if (options.dryRun) {
17301
17301
  if (options.jsonOutput) {
17302
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, dryRun);
17302
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, dryRun);
17303
17303
  } else {
17304
17304
  console.log(`Dry run: ${playName}`);
17305
17305
  console.log(` source: ${dryRun.sourceHash}`);
@@ -17308,7 +17308,7 @@ async function handlePlaySave(args) {
17308
17308
  }
17309
17309
  return 0;
17310
17310
  }
17311
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
17311
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
17312
17312
  try {
17313
17313
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
17314
17314
  "cli.play_save_compile_manifests",
@@ -17344,7 +17344,7 @@ async function handlePlaySave(args) {
17344
17344
  }
17345
17345
  };
17346
17346
  if (options.jsonOutput) {
17347
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, result);
17347
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, result);
17348
17348
  } else {
17349
17349
  console.log(
17350
17350
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -17370,7 +17370,7 @@ async function handlePlayPublish(args) {
17370
17370
  }
17371
17371
  const { target: playName, useLatest } = options;
17372
17372
  let revisionId = options.revisionId;
17373
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
17373
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
17374
17374
  if (isFileTarget2(playName)) {
17375
17375
  if (revisionId || useLatest) {
17376
17376
  console.error(
@@ -17402,7 +17402,7 @@ async function handlePlayPublish(args) {
17402
17402
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
17403
17403
  };
17404
17404
  if (options.jsonOutput) {
17405
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, result3);
17405
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, result3);
17406
17406
  } else {
17407
17407
  console.error(result3.message);
17408
17408
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -17425,7 +17425,7 @@ async function handlePlayPublish(args) {
17425
17425
  };
17426
17426
  if (options.dryRun) {
17427
17427
  if (options.jsonOutput) {
17428
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, dryRun);
17428
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, dryRun);
17429
17429
  } else {
17430
17430
  console.log(`Dry run: ${rootPlayName}`);
17431
17431
  console.log(` source: ${dryRun.sourceHash}`);
@@ -17493,7 +17493,7 @@ async function handlePlayPublish(args) {
17493
17493
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
17494
17494
  };
17495
17495
  if (options.jsonOutput) {
17496
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, result2);
17496
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, result2);
17497
17497
  } else {
17498
17498
  printPublishReceipt({
17499
17499
  name: rootPlayName,
@@ -17524,7 +17524,7 @@ async function handlePlayPublish(args) {
17524
17524
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
17525
17525
  latest: useLatest
17526
17526
  };
17527
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, result2);
17527
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, result2);
17528
17528
  return 0;
17529
17529
  }
17530
17530
  const resolvedName = parseReferencedPlayTarget3(playName).playName;
@@ -17548,7 +17548,7 @@ async function handlePlayPublish(args) {
17548
17548
  revisionId ? { revisionId } : {}
17549
17549
  );
17550
17550
  if (options.jsonOutput) {
17551
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, result);
17551
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, result);
17552
17552
  } else {
17553
17553
  printPublishReceipt({
17554
17554
  name: result.name,
@@ -17588,7 +17588,7 @@ async function handlePlayDelete(args) {
17588
17588
  );
17589
17589
  return 2;
17590
17590
  }
17591
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
17591
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
17592
17592
  let detail;
17593
17593
  try {
17594
17594
  detail = await client.getPlay(parseReferencedPlayTarget3(playName).playName);
@@ -17612,8 +17612,8 @@ async function handlePlayDelete(args) {
17612
17612
  name: resolvedName,
17613
17613
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
17614
17614
  };
17615
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
17616
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, result2);
17615
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
17616
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, result2);
17617
17617
  } else {
17618
17618
  process.stdout.write(
17619
17619
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -17623,8 +17623,8 @@ async function handlePlayDelete(args) {
17623
17623
  return 0;
17624
17624
  }
17625
17625
  const result = await client.deletePlay(resolvedName);
17626
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
17627
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, result);
17626
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
17627
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, result);
17628
17628
  return result.archived || result.alreadyArchived ? 0 : 4;
17629
17629
  }
17630
17630
  if (result.alreadyArchived) {
@@ -17663,13 +17663,13 @@ async function handlePlayRestore(args) {
17663
17663
  );
17664
17664
  return 2;
17665
17665
  }
17666
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
17666
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
17667
17667
  try {
17668
17668
  const result = await client.restorePlay(
17669
17669
  parseReferencedPlayTarget3(playName).playName
17670
17670
  );
17671
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
17672
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, result);
17671
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
17672
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, result);
17673
17673
  return result.restored || result.alreadyActive ? 0 : 4;
17674
17674
  }
17675
17675
  if (result.alreadyActive) {
@@ -17776,7 +17776,7 @@ Examples:
17776
17776
  ).action(async (target, options) => {
17777
17777
  process.exitCode = await handlePlayCheck([
17778
17778
  target,
17779
- ..._chunkQCSLIEMCjs.jsonFieldArgs.call(void 0, options.json),
17779
+ ..._chunk7ZAG2XG5js.jsonFieldArgs.call(void 0, options.json),
17780
17780
  ...options.full ? ["--full"] : []
17781
17781
  ]);
17782
17782
  });
@@ -18005,9 +18005,9 @@ Examples:
18005
18005
  const limit = Number(options.historyLimit);
18006
18006
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
18007
18007
  throw new Error("--history-limit must be an integer from 1 to 30.");
18008
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
18008
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
18009
18009
  if (options.binding) {
18010
- _chunkQCSLIEMCjs.printCompactJson.call(void 0,
18010
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0,
18011
18011
  await client.getPlayTriggerHistory(options.binding, { limit })
18012
18012
  );
18013
18013
  return;
@@ -18015,7 +18015,7 @@ Examples:
18015
18015
  const result = await client.listPlayTriggerInventory({
18016
18016
  cursor: options.cursor
18017
18017
  });
18018
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, {
18018
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, {
18019
18019
  ...result,
18020
18020
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
18021
18021
  });
@@ -18062,7 +18062,7 @@ Examples:
18062
18062
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
18063
18063
  throw new Error("--group-by must be kind or trigger_source.");
18064
18064
  }
18065
- const result = await new (0, _chunkS347PHNBjs.DeeplineClient)().getPlaysActivity({
18065
+ const result = await new (0, _chunkCIDP2FSOjs.DeeplineClient)().getPlaysActivity({
18066
18066
  timeZone: options.timeZone,
18067
18067
  days,
18068
18068
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -18076,7 +18076,7 @@ Examples:
18076
18076
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
18077
18077
  );
18078
18078
  }
18079
- _chunkQCSLIEMCjs.printCommandEnvelope.call(void 0,
18079
+ _chunk7ZAG2XG5js.printCommandEnvelope.call(void 0,
18080
18080
  { ...result },
18081
18081
  {
18082
18082
  json: options.json || !process.stdout.isTTY,
@@ -18105,7 +18105,7 @@ Examples:
18105
18105
  false
18106
18106
  );
18107
18107
  });
18108
- _chunkM42H2BPAjs.registerDeprecatedSearchCommand.call(void 0,
18108
+ _chunkICZTTYDSjs.registerDeprecatedSearchCommand.call(void 0,
18109
18109
  play,
18110
18110
  (options) => options.all ? ["plays"] : ["prebuilts"]
18111
18111
  );
@@ -18149,7 +18149,7 @@ Examples:
18149
18149
  );
18150
18150
  _chunkMX53GIOBjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
18151
18151
  async (target, options) => {
18152
- const ownView = () => handlePlayDescribe(_chunkQCSLIEMCjs.describeArgs.call(void 0, target, options));
18152
+ const ownView = () => handlePlayDescribe(_chunk7ZAG2XG5js.describeArgs.call(void 0, target, options));
18153
18153
  const [flagText] = [options.json].filter(
18154
18154
  (value) => typeof value === "string"
18155
18155
  );
@@ -18160,7 +18160,7 @@ Examples:
18160
18160
  process.exitCode = await ownView();
18161
18161
  return;
18162
18162
  }
18163
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-DI65QISF.js")));
18163
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-XZNQXFXD.js")));
18164
18164
  process.exitCode = await describeAnything(
18165
18165
  name,
18166
18166
  {
@@ -18277,7 +18277,7 @@ Examples:
18277
18277
  deepline plays deployments <deployment-id>
18278
18278
  `
18279
18279
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
18280
- async (id, options) => id ? _chunkI4VZKXMXjs.handleDeploymentGet.call(void 0, id, options) : _chunkI4VZKXMXjs.handleDeploymentsList.call(void 0, options)
18280
+ async (id, options) => id ? _chunkBKOYPUK2js.handleDeploymentGet.call(void 0, id, options) : _chunkBKOYPUK2js.handleDeploymentsList.call(void 0, options)
18281
18281
  );
18282
18282
  addPublishHelp(
18283
18283
  play.command("publish <target>").description(
@@ -18457,7 +18457,7 @@ Examples:
18457
18457
  ).action(async (runId, options) => {
18458
18458
  process.exitCode = await handleRunGet([
18459
18459
  runId,
18460
- ..._chunkQCSLIEMCjs.jsonFieldArgs.call(void 0, options.json),
18460
+ ..._chunk7ZAG2XG5js.jsonFieldArgs.call(void 0, options.json),
18461
18461
  ...options.full ? ["--full"] : [],
18462
18462
  ...options.input ? ["--input"] : [],
18463
18463
  ...options.config ? ["--config"] : [],
@@ -18733,7 +18733,7 @@ Examples:
18733
18733
  ...options.allowEmpty ? ["--allow-empty"] : [],
18734
18734
  ...options.wait ? ["--wait"] : [],
18735
18735
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
18736
- ..._chunkQCSLIEMCjs.jsonFieldArgs.call(void 0, options.json)
18736
+ ..._chunk7ZAG2XG5js.jsonFieldArgs.call(void 0, options.json)
18737
18737
  ]);
18738
18738
  });
18739
18739
  const share = play.command("share").description(
@@ -18899,10 +18899,10 @@ async function handlePlayShareStatus(args) {
18899
18899
  return 2;
18900
18900
  }
18901
18901
  const name = parseReferencedPlayTarget3(target).playName;
18902
- const status = await new (0, _chunkS347PHNBjs.DeeplineClient)().getSharePage(name);
18902
+ const status = await new (0, _chunkCIDP2FSOjs.DeeplineClient)().getSharePage(name);
18903
18903
  const outputStatus = shareStatusForOutput(status);
18904
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
18905
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, outputStatus);
18904
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
18905
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, outputStatus);
18906
18906
  return 0;
18907
18907
  }
18908
18908
  if (!outputStatus.share) {
@@ -18941,7 +18941,7 @@ async function handlePlaySharePublish(args) {
18941
18941
  return 2;
18942
18942
  }
18943
18943
  const name = parseReferencedPlayTarget3(target).playName;
18944
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
18944
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
18945
18945
  let revisionId = shareFlagValue(args, "--revision-id");
18946
18946
  let resolvedVersion;
18947
18947
  if (!revisionId) {
@@ -18972,8 +18972,8 @@ async function handlePlaySharePublish(args) {
18972
18972
  );
18973
18973
  if (!hasCompleted) {
18974
18974
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
18975
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
18976
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, {
18975
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
18976
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, {
18977
18977
  ok: false,
18978
18978
  code: "NO_SUCCESSFUL_RUN",
18979
18979
  message,
@@ -18997,8 +18997,8 @@ async function handlePlaySharePublish(args) {
18997
18997
  };
18998
18998
  if (args.includes("--dry-run")) {
18999
18999
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
19000
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
19001
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, plan);
19000
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
19001
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, plan);
19002
19002
  } else {
19003
19003
  console.log(
19004
19004
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -19008,8 +19008,8 @@ async function handlePlaySharePublish(args) {
19008
19008
  }
19009
19009
  const status = await client.publishSharePage(name, request);
19010
19010
  const outputStatus = shareStatusForOutput(status);
19011
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
19012
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, outputStatus);
19011
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
19012
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, outputStatus);
19013
19013
  return 0;
19014
19014
  }
19015
19015
  const urls = shareUrlFields(outputStatus);
@@ -19040,9 +19040,9 @@ async function handlePlayShareUpdate(args) {
19040
19040
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
19041
19041
  ...seoIndexing ? { seoIndexing } : {}
19042
19042
  };
19043
- const status = await new (0, _chunkS347PHNBjs.DeeplineClient)().updateSharePage(name, request);
19044
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
19045
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, status);
19043
+ const status = await new (0, _chunkCIDP2FSOjs.DeeplineClient)().updateSharePage(name, request);
19044
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
19045
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, status);
19046
19046
  return 0;
19047
19047
  }
19048
19048
  console.log(`Updated ${name} share settings.`);
@@ -19057,7 +19057,7 @@ async function handlePlayShareRegenerate(args) {
19057
19057
  return 2;
19058
19058
  }
19059
19059
  const name = parseReferencedPlayTarget3(target).playName;
19060
- const client = new (0, _chunkS347PHNBjs.DeeplineClient)();
19060
+ const client = new (0, _chunkCIDP2FSOjs.DeeplineClient)();
19061
19061
  let revisionId = shareFlagValue(args, "--revision-id");
19062
19062
  const versionFlag = shareFlagValue(args, "--version");
19063
19063
  if (!revisionId && versionFlag) {
@@ -19074,8 +19074,8 @@ async function handlePlayShareRegenerate(args) {
19074
19074
  revisionId ? { revisionId } : {}
19075
19075
  );
19076
19076
  const outputStatus = shareStatusForOutput(status);
19077
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
19078
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, outputStatus);
19077
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
19078
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, outputStatus);
19079
19079
  return 0;
19080
19080
  }
19081
19081
  const urls = shareUrlFields(outputStatus);
@@ -19100,9 +19100,9 @@ async function handlePlayShareUnpublish(args) {
19100
19100
  return 2;
19101
19101
  }
19102
19102
  const name = parseReferencedPlayTarget3(target).playName;
19103
- const status = await new (0, _chunkS347PHNBjs.DeeplineClient)().unpublishSharePage(name);
19104
- if (_chunkQCSLIEMCjs.argsWantJson.call(void 0, args)) {
19105
- _chunkQCSLIEMCjs.printCompactJson.call(void 0, status);
19103
+ const status = await new (0, _chunkCIDP2FSOjs.DeeplineClient)().unpublishSharePage(name);
19104
+ if (_chunk7ZAG2XG5js.argsWantJson.call(void 0, args)) {
19105
+ _chunk7ZAG2XG5js.printCompactJson.call(void 0, status);
19106
19106
  return 0;
19107
19107
  }
19108
19108
  console.log(`Unpublished ${name}; the public page has been removed.`);