deepline 0.3.415 → 0.3.416

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/auth-BNQP4UYQ.js +40 -0
  3. package/dist/cli/{auth-3R7XJOU4.mjs → auth-FLYZAZ7I.mjs} +4 -4
  4. package/dist/cli/{billing-63YR65DL.js → billing-SVGZSMBY.js} +73 -73
  5. package/dist/cli/{billing-CEQACJBE.mjs → billing-XZ62L6ZE.mjs} +4 -4
  6. package/dist/cli/{chunk-5MP7LBHF.js → chunk-2DRO4YWM.js} +2 -2
  7. package/dist/cli/{chunk-Q44253PX.mjs → chunk-2MQJODFQ.mjs} +1 -1
  8. package/dist/cli/{chunk-D34G5I2G.js → chunk-4R3TJDWD.js} +8 -8
  9. package/dist/cli/{chunk-5RZZHZEJ.mjs → chunk-6GYQG6V3.mjs} +3 -3
  10. package/dist/cli/{chunk-TQU3G7NC.mjs → chunk-7OLAGY3W.mjs} +4 -4
  11. package/dist/cli/{chunk-UK22LQKF.mjs → chunk-DBMALDT3.mjs} +8 -8
  12. package/dist/cli/{chunk-JM3BQNP2.mjs → chunk-DT36JAAX.mjs} +2 -2
  13. package/dist/cli/{chunk-H3ZWEHLG.js → chunk-E5FNJE3Y.js} +4 -4
  14. package/dist/cli/{chunk-5L3NL6HV.mjs → chunk-ENBTCBGT.mjs} +23 -14
  15. package/dist/cli/{chunk-U4RSPPD7.mjs → chunk-ERPU6HBQ.mjs} +3 -3
  16. package/dist/cli/{chunk-BBQTQRDC.js → chunk-ESUBIEVT.js} +6 -6
  17. package/dist/cli/{chunk-IOULR7YA.js → chunk-F5KJFBDA.js} +1 -1
  18. package/dist/cli/{chunk-TOUMT7XB.mjs → chunk-FFEA6KAB.mjs} +2 -2
  19. package/dist/cli/{chunk-EMWMLURG.mjs → chunk-G3WJWD4R.mjs} +1 -1
  20. package/dist/cli/{chunk-CKP2OAKZ.js → chunk-LFUGXKJW.js} +20 -20
  21. package/dist/cli/{chunk-WAPSY6F3.js → chunk-MRL2OMZY.js} +10 -10
  22. package/dist/cli/{chunk-WQXQDVHQ.mjs → chunk-MT7VPFMN.mjs} +2 -2
  23. package/dist/cli/{chunk-OJGQ7JE3.mjs → chunk-NPFMAFUC.mjs} +1 -1
  24. package/dist/cli/{chunk-DI63MOEP.js → chunk-NWPC3FUA.js} +28 -19
  25. package/dist/cli/{chunk-Y2CT65YJ.mjs → chunk-PH6OXQC7.mjs} +1 -1
  26. package/dist/cli/{chunk-LEPECCA5.mjs → chunk-Q6MUMX2G.mjs} +2 -2
  27. package/dist/cli/{chunk-UOGTM7NF.js → chunk-TOIDV6Q4.js} +50 -50
  28. package/dist/cli/{chunk-M2I4TC2C.js → chunk-TXLZ6BJC.js} +26 -26
  29. package/dist/cli/{chunk-N4SYPFH4.js → chunk-UJTWIOQK.js} +6 -6
  30. package/dist/cli/{chunk-UCE2CYXP.js → chunk-UXLXZN2F.js} +2 -2
  31. package/dist/cli/{chunk-OJ4N5XMI.js → chunk-WL3MI252.js} +35 -35
  32. package/dist/cli/{chunk-EV6OLL4W.mjs → chunk-XP6LSFCW.mjs} +5 -5
  33. package/dist/cli/{chunk-6WQGIJSW.mjs → chunk-XUMHZPE3.mjs} +1 -1
  34. package/dist/cli/{chunk-F66SBZUA.js → chunk-YCAMTIYM.js} +79 -79
  35. package/dist/cli/{chunk-KOQGG5WZ.js → chunk-YK3XHX7G.js} +16 -16
  36. package/dist/cli/{chunk-44SXWCI5.js → chunk-ZCO7R65D.js} +52 -52
  37. package/dist/cli/{chunk-CQ5FHAX2.mjs → chunk-ZMQTLPLJ.mjs} +1 -1
  38. package/dist/cli/{csv-2KFJJLDT.mjs → csv-4TAHSCJO.mjs} +3 -3
  39. package/dist/cli/{csv-PKQX3TSA.js → csv-X72WTTMT.js} +12 -12
  40. package/dist/cli/{db-PLBBJZSD.js → db-3LIMAM2U.js} +25 -25
  41. package/dist/cli/{db-N26UHFY7.mjs → db-CK3WE7QC.mjs} +4 -4
  42. package/dist/cli/{describe-7RR4IO2K.mjs → describe-FW6XZCFK.mjs} +12 -12
  43. package/dist/cli/{describe-QGZ33RCB.js → describe-H2Z2VKU2.js} +16 -16
  44. package/dist/cli/{executions-XUFGT3SW.mjs → executions-VXGO3GSE.mjs} +4 -4
  45. package/dist/cli/{executions-A7JY32A5.js → executions-X7SXKMAI.js} +6 -6
  46. package/dist/cli/{feedback-GU7HYQPX.js → feedback-6I3NFUPV.js} +7 -7
  47. package/dist/cli/{feedback-PIDESS5I.mjs → feedback-KTDQHUNJ.mjs} +3 -3
  48. package/dist/cli/git-LLP4T6XB.js +24 -0
  49. package/dist/cli/{git-ST2L7VCM.mjs → git-ODZASGIK.mjs} +4 -4
  50. package/dist/cli/index.js +131 -131
  51. package/dist/cli/index.mjs +36 -36
  52. package/dist/cli/{legacy-noops-Q4D3TT7J.js → legacy-noops-HLVQGZ72.js} +7 -7
  53. package/dist/cli/{legacy-noops-WLZ3HD5L.mjs → legacy-noops-KNGT6U3L.mjs} +4 -4
  54. package/dist/cli/{monitors-DQBYHBTI.js → monitors-3F5EZCMB.js} +84 -84
  55. package/dist/cli/{monitors-4DRP7ABU.mjs → monitors-JLGADUE5.mjs} +4 -4
  56. package/dist/cli/{org-XMP5FH4W.mjs → org-D7AW6LIR.mjs} +4 -4
  57. package/dist/cli/{org-JDFN2BMD.js → org-Z4LPCJII.js} +64 -64
  58. package/dist/cli/{play-LSEV7CLQ.mjs → play-MO3SAHDS.mjs} +10 -10
  59. package/dist/cli/{play-AVX67TTR.js → play-UBNDV57A.js} +283 -283
  60. package/dist/cli/{providers-3B7KUXCF.mjs → providers-QCBNQY4A.mjs} +4 -4
  61. package/dist/cli/{providers-QOUY73G2.js → providers-SL6ZSEDI.js} +7 -7
  62. package/dist/cli/{quickstart-KFITIZGE.mjs → quickstart-K7J4YOTE.mjs} +3 -3
  63. package/dist/cli/{quickstart-BVKDXXBN.js → quickstart-YGFVF6VL.js} +5 -5
  64. package/dist/cli/{search-MXMDK6BE.mjs → search-DVE6TKQ3.mjs} +5 -5
  65. package/dist/cli/search-V4HNFZRE.js +30 -0
  66. package/dist/cli/{secrets-PHV2PC55.js → secrets-G7ZMCH5J.js} +13 -13
  67. package/dist/cli/{secrets-IX6ZHGMU.mjs → secrets-JOVBXCUR.mjs} +4 -4
  68. package/dist/cli/{sessions-NHNLYXBA.mjs → sessions-NA5POIR5.mjs} +4 -4
  69. package/dist/cli/{sessions-2YAIVSQY.js → sessions-QQV7FO4Y.js} +5 -5
  70. package/dist/cli/{settings-SAHN4OJN.mjs → settings-AM44HC2C.mjs} +8 -8
  71. package/dist/cli/{settings-APUXXPOD.js → settings-XGFHXFCJ.js} +75 -75
  72. package/dist/cli/{setup-URQ7BG5P.js → setup-DA4TSWCY.js} +42 -42
  73. package/dist/cli/{setup-QOZSIUEX.mjs → setup-RUBLF452.mjs} +7 -7
  74. package/dist/cli/skills-6AQTCBTF.js +29 -0
  75. package/dist/cli/{skills-FLNMB5IF.mjs → skills-TRG55YOF.mjs} +5 -5
  76. package/dist/cli/{tools-USDETSBP.mjs → tools-CEEA7DU4.mjs} +12 -12
  77. package/dist/cli/tools-JLPTH7TF.js +44 -0
  78. package/dist/cli/update-EKEBZDIX.js +31 -0
  79. package/dist/cli/{update-ZPY45JN4.mjs → update-Y5GSWR67.mjs} +7 -7
  80. package/dist/cli/{workflow-GSEM32G7.mjs → workflow-74I6RNJR.mjs} +5 -5
  81. package/dist/cli/{workflow-KYWMP2JG.js → workflow-D2VHQKJB.js} +15 -15
  82. package/dist/index.js +6 -6
  83. package/dist/index.mjs +3 -3
  84. package/dist/install-integrity.json +78 -78
  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-BPP3XUUK.js +0 -40
  91. package/dist/cli/git-EGJIIULI.js +0 -24
  92. package/dist/cli/search-UWPN4TLM.js +0 -30
  93. package/dist/cli/skills-ODG4WSUP.js +0 -29
  94. package/dist/cli/tools-R43QU6JL.js +0 -44
  95. package/dist/cli/update-AGI5HJUV.js +0 -31
@@ -4,11 +4,11 @@
4
4
  var _chunk27GJKC5Qjs = require('./chunk-27GJKC5Q.js');
5
5
 
6
6
 
7
- var _chunkDI63MOEPjs = require('./chunk-DI63MOEP.js');
7
+ var _chunkNWPC3FUAjs = require('./chunk-NWPC3FUA.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkM2I4TC2Cjs = require('./chunk-M2I4TC2C.js');
11
+ var _chunkTXLZ6BJCjs = require('./chunk-TXLZ6BJC.js');
12
12
 
13
13
 
14
14
  var _chunkBQR6UN3Cjs = require('./chunk-BQR6UN3C.js');
@@ -47,7 +47,7 @@ require('./chunk-VKKVSFRD.js');
47
47
 
48
48
 
49
49
 
50
- var _chunkWAPSY6F3js = require('./chunk-WAPSY6F3.js');
50
+ var _chunkMRL2OMZYjs = require('./chunk-MRL2OMZY.js');
51
51
  require('./chunk-E4CABWXL.js');
52
52
 
53
53
 
@@ -68,17 +68,17 @@ require('./chunk-XDVT3GOM.js');
68
68
 
69
69
 
70
70
 
71
- var _chunkBBQTQRDCjs = require('./chunk-BBQTQRDC.js');
71
+ var _chunkESUBIEVTjs = require('./chunk-ESUBIEVT.js');
72
72
 
73
73
 
74
74
 
75
75
 
76
76
 
77
- var _chunk5MP7LBHFjs = require('./chunk-5MP7LBHF.js');
77
+ var _chunk2DRO4YWMjs = require('./chunk-2DRO4YWM.js');
78
78
 
79
79
 
80
80
 
81
- var _chunk44SXWCI5js = require('./chunk-44SXWCI5.js');
81
+ var _chunkZCO7R65Djs = require('./chunk-ZCO7R65D.js');
82
82
 
83
83
 
84
84
 
@@ -93,16 +93,16 @@ var _chunk44SXWCI5js = require('./chunk-44SXWCI5.js');
93
93
 
94
94
 
95
95
 
96
- var _chunkN4SYPFH4js = require('./chunk-N4SYPFH4.js');
96
+ var _chunkUJTWIOQKjs = require('./chunk-UJTWIOQK.js');
97
97
 
98
98
 
99
- var _chunkH3ZWEHLGjs = require('./chunk-H3ZWEHLG.js');
99
+ var _chunkE5FNJE3Yjs = require('./chunk-E5FNJE3Y.js');
100
100
  require('./chunk-NPBJI7RE.js');
101
101
  require('./chunk-XNYIZMNQ.js');
102
102
 
103
103
 
104
104
  var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
105
- require('./chunk-IOULR7YA.js');
105
+ require('./chunk-F5KJFBDA.js');
106
106
  require('./chunk-OG64RBAC.js');
107
107
 
108
108
 
@@ -2084,7 +2084,7 @@ function resolveField(key, command) {
2084
2084
  function printSettings(result, json, name) {
2085
2085
  result = { ...result, settings: parsePlaySettings(result.settings) };
2086
2086
  const selected = fields.filter(([key]) => !name || key === name);
2087
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
2087
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
2088
2088
  {
2089
2089
  ...result,
2090
2090
  settings: Object.fromEntries(
@@ -2128,7 +2128,7 @@ function registerPlaySettingsCommands(plays) {
2128
2128
  valueSyntax: field.cli.valueSyntax,
2129
2129
  examples: field.cli.examples
2130
2130
  }));
2131
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
2131
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
2132
2132
  {
2133
2133
  fields: descriptions,
2134
2134
  render: {
@@ -2153,7 +2153,7 @@ function registerPlaySettingsCommands(plays) {
2153
2153
  async (options, command) => {
2154
2154
  if (options.name !== void 0) resolveField(options.name, command);
2155
2155
  printSettings(
2156
- await new (0, _chunkWAPSY6F3js.DeeplineClient)().getPlaySettings(options.play),
2156
+ await new (0, _chunkMRL2OMZYjs.DeeplineClient)().getPlaySettings(options.play),
2157
2157
  options.json,
2158
2158
  options.name
2159
2159
  );
@@ -2184,7 +2184,7 @@ function registerPlaySettingsCommands(plays) {
2184
2184
  );
2185
2185
  }
2186
2186
  if (options.dryRun) {
2187
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
2187
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
2188
2188
  {
2189
2189
  dryRun: true,
2190
2190
  play,
@@ -2205,7 +2205,7 @@ function registerPlaySettingsCommands(plays) {
2205
2205
  return;
2206
2206
  }
2207
2207
  printSettings(
2208
- await new (0, _chunkWAPSY6F3js.DeeplineClient)().updatePlaySettings(play, patch),
2208
+ await new (0, _chunkMRL2OMZYjs.DeeplineClient)().updatePlaySettings(play, patch),
2209
2209
  options.json
2210
2210
  );
2211
2211
  };
@@ -2231,13 +2231,13 @@ function registerPlaySettingsCommands(plays) {
2231
2231
  "--root must be person or team; --limit must be 1\u2013100.",
2232
2232
  { exitCode: 2 }
2233
2233
  );
2234
- const page = await new (0, _chunkWAPSY6F3js.DeeplineClient)().listPlaySettingsPaths({
2234
+ const page = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().listPlaySettingsPaths({
2235
2235
  root: options.root,
2236
2236
  limit,
2237
2237
  cursor: options.cursor
2238
2238
  });
2239
2239
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2240
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
2240
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
2241
2241
  {
2242
2242
  ...page,
2243
2243
  nextCommand,
@@ -2288,7 +2288,7 @@ function registerPlaySettingsCommands(plays) {
2288
2288
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2289
2289
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2290
2290
  };
2291
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
2291
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
2292
2292
  const paths = [];
2293
2293
  let cursor;
2294
2294
  do {
@@ -2350,7 +2350,7 @@ function registerPlaySettingsCommands(plays) {
2350
2350
  moved.push(move.playName);
2351
2351
  }
2352
2352
  }
2353
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
2353
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
2354
2354
  {
2355
2355
  dryRun: Boolean(options.dryRun),
2356
2356
  from: options.from,
@@ -2478,7 +2478,7 @@ function triggerLines(view) {
2478
2478
  return lines;
2479
2479
  }
2480
2480
  function printView(view, json) {
2481
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
2481
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
2482
2482
  {
2483
2483
  ...view,
2484
2484
  render: {
@@ -2491,7 +2491,7 @@ function printView(view, json) {
2491
2491
  );
2492
2492
  }
2493
2493
  function printResult(result, json) {
2494
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
2494
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
2495
2495
  {
2496
2496
  ...result,
2497
2497
  render: {
@@ -2521,7 +2521,7 @@ async function mutate(command, options, build) {
2521
2521
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2522
2522
  }
2523
2523
  if (options.dryRun) {
2524
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
2524
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
2525
2525
  {
2526
2526
  dryRun: true,
2527
2527
  play: options.play,
@@ -2540,7 +2540,7 @@ async function mutate(command, options, build) {
2540
2540
  return;
2541
2541
  }
2542
2542
  printResult(
2543
- await new (0, _chunkWAPSY6F3js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2543
+ await new (0, _chunkMRL2OMZYjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2544
2544
  options.json
2545
2545
  );
2546
2546
  }
@@ -2573,7 +2573,7 @@ function registerPlayTriggerConfigCommands(plays) {
2573
2573
  }).addHelpText("after", help2);
2574
2574
  trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
2575
2575
  printView(
2576
- await new (0, _chunkWAPSY6F3js.DeeplineClient)().getPlayTriggerConfig(options.play),
2576
+ await new (0, _chunkMRL2OMZYjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2577
2577
  options.json
2578
2578
  );
2579
2579
  });
@@ -2617,7 +2617,7 @@ function registerPlayTriggerConfigCommands(plays) {
2617
2617
  if (options.auth === void 0) {
2618
2618
  if (secrets.length || options.header || options.signaturePrefix)
2619
2619
  usage(setWebhook, "--secret/--header need --auth.");
2620
- const current = await new (0, _chunkWAPSY6F3js.DeeplineClient)().getPlayTriggerConfig(
2620
+ const current = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().getPlayTriggerConfig(
2621
2621
  options.play
2622
2622
  );
2623
2623
  return {
@@ -2694,7 +2694,7 @@ var KIND_DESCRIPTIONS = {
2694
2694
  "receipt.skipped": "Saved work result: skipped.",
2695
2695
  "runtime.event": "Other event."
2696
2696
  };
2697
- var RUN_LOGS_KIND_HELP = _chunkWAPSY6F3js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2697
+ var RUN_LOGS_KIND_HELP = _chunkMRL2OMZYjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2698
2698
  kind,
2699
2699
  description: KIND_DESCRIPTIONS[kind]
2700
2700
  }));
@@ -2831,9 +2831,9 @@ function configureRunQueryCommandErrors(command, resource) {
2831
2831
  const args = program.args;
2832
2832
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2833
2833
  error.exitCode = 2;
2834
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2835
- _chunkN4SYPFH4js.printJsonError.call(void 0,
2836
- Object.assign(new (0, _chunkWAPSY6F3js.RunEventQueryInputError)(error.message), {
2834
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2835
+ _chunkUJTWIOQKjs.printJsonError.call(void 0,
2836
+ Object.assign(new (0, _chunkMRL2OMZYjs.RunEventQueryInputError)(error.message), {
2837
2837
  exitCode: 2,
2838
2838
  retryable: false
2839
2839
  })
@@ -2877,14 +2877,14 @@ function parseQuery(args, resource) {
2877
2877
  if (VALUE_FLAGS.has(flag)) {
2878
2878
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2879
2879
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2880
- throw new (0, _chunkWAPSY6F3js.RunEventQueryInputError)(
2880
+ throw new (0, _chunkMRL2OMZYjs.RunEventQueryInputError)(
2881
2881
  `${flag} requires a value. Use ${flag} <value>.`
2882
2882
  );
2883
2883
  }
2884
2884
  if (flag === "--sum") sums.push(value);
2885
2885
  else {
2886
2886
  if (values[flag] !== void 0) {
2887
- throw new (0, _chunkWAPSY6F3js.RunEventQueryInputError)(
2887
+ throw new (0, _chunkMRL2OMZYjs.RunEventQueryInputError)(
2888
2888
  `${flag} may only be supplied once.`
2889
2889
  );
2890
2890
  }
@@ -2898,12 +2898,12 @@ function parseQuery(args, resource) {
2898
2898
  }
2899
2899
  if (arg.startsWith("-")) {
2900
2900
  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.";
2901
- throw new (0, _chunkWAPSY6F3js.RunEventQueryInputError)(
2901
+ throw new (0, _chunkMRL2OMZYjs.RunEventQueryInputError)(
2902
2902
  `Unsupported query flag ${flag}. ${correction}`
2903
2903
  );
2904
2904
  }
2905
2905
  if (runId !== void 0) {
2906
- throw new (0, _chunkWAPSY6F3js.RunEventQueryInputError)(
2906
+ throw new (0, _chunkMRL2OMZYjs.RunEventQueryInputError)(
2907
2907
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2908
2908
  );
2909
2909
  }
@@ -2911,7 +2911,7 @@ function parseQuery(args, resource) {
2911
2911
  }
2912
2912
  if (switches.has("--fields")) {
2913
2913
  if (runId !== void 0) {
2914
- throw new (0, _chunkWAPSY6F3js.RunEventQueryInputError)(
2914
+ throw new (0, _chunkMRL2OMZYjs.RunEventQueryInputError)(
2915
2915
  "--fields does not use a run ID. Omit the positional run ID."
2916
2916
  );
2917
2917
  }
@@ -2924,18 +2924,18 @@ function parseQuery(args, resource) {
2924
2924
  )
2925
2925
  ];
2926
2926
  if (incompatible.length) {
2927
- throw new (0, _chunkWAPSY6F3js.RunEventQueryInputError)(
2927
+ throw new (0, _chunkMRL2OMZYjs.RunEventQueryInputError)(
2928
2928
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2929
2929
  );
2930
2930
  }
2931
2931
  }
2932
2932
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2933
- throw new (0, _chunkWAPSY6F3js.RunEventQueryInputError)(
2933
+ throw new (0, _chunkMRL2OMZYjs.RunEventQueryInputError)(
2934
2934
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2935
2935
  );
2936
2936
  }
2937
2937
  if (sums.length && switches.has("--count")) {
2938
- throw new (0, _chunkWAPSY6F3js.RunEventQueryInputError)(
2938
+ throw new (0, _chunkMRL2OMZYjs.RunEventQueryInputError)(
2939
2939
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2940
2940
  );
2941
2941
  }
@@ -2943,7 +2943,7 @@ function parseQuery(args, resource) {
2943
2943
  if (operation === "count") {
2944
2944
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2945
2945
  if (values[flag] !== void 0 || switches.has(flag)) {
2946
- throw new (0, _chunkWAPSY6F3js.RunEventQueryInputError)(
2946
+ throw new (0, _chunkMRL2OMZYjs.RunEventQueryInputError)(
2947
2947
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2948
2948
  );
2949
2949
  }
@@ -2978,16 +2978,16 @@ function parseQuery(args, resource) {
2978
2978
  ];
2979
2979
  }
2980
2980
  }
2981
- const request = _chunkWAPSY6F3js.normalizeRunEventOperationRequest.call(void 0, body);
2981
+ const request = _chunkMRL2OMZYjs.normalizeRunEventOperationRequest.call(void 0, body);
2982
2982
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2983
2983
  const backend = values["--runtime-backend"];
2984
2984
  if (backend && backend !== "daytona" && backend !== "modal") {
2985
- throw new (0, _chunkWAPSY6F3js.RunEventQueryInputError)(
2985
+ throw new (0, _chunkMRL2OMZYjs.RunEventQueryInputError)(
2986
2986
  "--runtime-backend must be daytona or modal."
2987
2987
  );
2988
2988
  }
2989
2989
  if (backend && !namespace) {
2990
- throw new (0, _chunkWAPSY6F3js.RunEventQueryInputError)(
2990
+ throw new (0, _chunkMRL2OMZYjs.RunEventQueryInputError)(
2991
2991
  "--runtime-backend requires --runtime-namespace."
2992
2992
  );
2993
2993
  }
@@ -3034,12 +3034,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3034
3034
  const failure = error instanceof Error ? error : new Error(String(error));
3035
3035
  const record3 = failure;
3036
3036
  const status = record3.statusCode;
3037
- const exitCode = error instanceof _chunkWAPSY6F3js.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;
3037
+ const exitCode = error instanceof _chunkMRL2OMZYjs.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;
3038
3038
  const diagnostic = Object.assign(failure, {
3039
3039
  exitCode,
3040
3040
  retryable: exitCode === 5
3041
3041
  });
3042
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) _chunkN4SYPFH4js.printJsonError.call(void 0, diagnostic);
3042
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) _chunkUJTWIOQKjs.printJsonError.call(void 0, diagnostic);
3043
3043
  else console.error(`Error: ${diagnostic.message}`);
3044
3044
  return exitCode;
3045
3045
  }
@@ -3054,7 +3054,7 @@ async function executeRunEventQuery(args, resource) {
3054
3054
  ...criteria
3055
3055
  } = request;
3056
3056
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3057
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
3057
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
3058
3058
  let result;
3059
3059
  if (request.operation === "fields") {
3060
3060
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3120,13 +3120,13 @@ async function executeRunEventQuery(args, resource) {
3120
3120
  lines.push(`Next page: ${nextPage}`);
3121
3121
  }
3122
3122
  }
3123
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
3123
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
3124
3124
  {
3125
3125
  ...result,
3126
3126
  ...nextPage ? { next: { page: nextPage } } : {},
3127
3127
  render: { sections: [{ title: `run ${resource}`, lines }] }
3128
3128
  },
3129
- { json: _chunkN4SYPFH4js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3129
+ { json: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3130
3130
  ` }
3131
3131
  );
3132
3132
  return 0;
@@ -4044,7 +4044,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4044
4044
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4045
4045
  );
4046
4046
  }
4047
- const response = await new (0, _chunkWAPSY6F3js.DeeplineClient)().runs.getReceipts(runId, {
4047
+ const response = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().runs.getReceipts(runId, {
4048
4048
  keys
4049
4049
  });
4050
4050
  const failed = response.receipts.filter(
@@ -4056,7 +4056,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4056
4056
  JSON.stringify(response, null, 2) + "\n",
4057
4057
  { flag: "wx", mode: 384 }
4058
4058
  );
4059
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
4059
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
4060
4060
  {
4061
4061
  runId,
4062
4062
  out: options.out,
@@ -4066,7 +4066,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4066
4066
  { json: true }
4067
4067
  );
4068
4068
  } else {
4069
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4069
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4070
4070
  }
4071
4071
  if (failed)
4072
4072
  process.exitCode = response.receipts.some(
@@ -4105,7 +4105,7 @@ includes nextCommand when another page is available.
4105
4105
  { exitCode: 2 }
4106
4106
  );
4107
4107
  }
4108
- const page = await new (0, _chunkWAPSY6F3js.DeeplineClient)().runs.children(parentRunId, {
4108
+ const page = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().runs.children(parentRunId, {
4109
4109
  launchKey: options.launchKey,
4110
4110
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4111
4111
  limit
@@ -4120,7 +4120,7 @@ includes nextCommand when another page is available.
4120
4120
  "--limit",
4121
4121
  String(limit)
4122
4122
  ].join(" ") : null;
4123
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
4123
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
4124
4124
  {
4125
4125
  parentRunId,
4126
4126
  launchKey: options.launchKey,
@@ -4156,7 +4156,7 @@ async function handleRunsHistory(options) {
4156
4156
  throw new Error("--limit must be a positive integer.");
4157
4157
  }
4158
4158
  }
4159
- const page = await new (0, _chunkWAPSY6F3js.DeeplineClient)().runs.history({
4159
+ const page = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().runs.history({
4160
4160
  cursor: options.cursor,
4161
4161
  orgId: options.org,
4162
4162
  search: options.search,
@@ -4172,7 +4172,7 @@ async function handleRunsHistory(options) {
4172
4172
  );
4173
4173
  }
4174
4174
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4175
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
4175
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
4176
4176
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4177
4177
  options.json ? { json: true } : {}
4178
4178
  );
@@ -4224,12 +4224,12 @@ async function runRunsRerunCommand(runId, options) {
4224
4224
  return 1;
4225
4225
  }
4226
4226
  }
4227
- const result = await new (0, _chunkWAPSY6F3js.DeeplineClient)().runs.rerun(runId, {
4227
+ const result = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().runs.rerun(runId, {
4228
4228
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4229
4229
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4230
4230
  });
4231
- if (_chunkN4SYPFH4js.shouldEmitJson.call(void 0, options.json)) {
4232
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, result, { json: true });
4231
+ if (_chunkUJTWIOQKjs.shouldEmitJson.call(void 0, options.json)) {
4232
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, result, { json: true });
4233
4233
  } else {
4234
4234
  console.log(
4235
4235
  result.deduplicated === true ? `
@@ -4497,7 +4497,7 @@ function projectRunDatasetCell(value) {
4497
4497
  const logicalValue = parseSerializedDatasetValue(value);
4498
4498
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
4499
4499
  if (typeof logicalValue === "object") {
4500
- return _chunkN4SYPFH4js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4500
+ return _chunkUJTWIOQKjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4501
4501
  }
4502
4502
  return logicalValue;
4503
4503
  }
@@ -6968,7 +6968,7 @@ function renderOutcome(outcome) {
6968
6968
  function printResult2(input) {
6969
6969
  const failed = input.status === "failed" || input.status === "cancelled";
6970
6970
  if (failed) process.exitCode = 1;
6971
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
6971
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
6972
6972
  {
6973
6973
  deployment: { ...input.deployment, status: input.status },
6974
6974
  plays: input.outcomes,
@@ -6993,7 +6993,7 @@ async function handlePlaysDeploy(directory, options) {
6993
6993
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6994
6994
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6995
6995
  });
6996
- const { http, config } = _chunkN4SYPFH4js.getAuthedHttpClient.call(void 0, );
6996
+ const { http, config } = _chunkUJTWIOQKjs.getAuthedHttpClient.call(void 0, );
6997
6997
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6998
6998
  const startDeployment = () => http.post("/api/v2/deployments", {
6999
6999
  deliveryId,
@@ -7020,7 +7020,7 @@ async function handlePlaysDeploy(directory, options) {
7020
7020
  },
7021
7021
  {
7022
7022
  bundle: bundleDeployPlayFile,
7023
- fetchImpl: _chunkH3ZWEHLGjs.fetchWithDeploymentProtection,
7023
+ fetchImpl: _chunkE5FNJE3Yjs.fetchWithDeploymentProtection,
7024
7024
  // The plays are already here: "opening" the source is naming it.
7025
7025
  openSource: async () => ({
7026
7026
  open: async () => ({ repoRoot: root })
@@ -7588,7 +7588,7 @@ function parseInputFlagValue(raw) {
7588
7588
  return raw;
7589
7589
  }
7590
7590
  function parsePlayRunOptions(args, initialInput = null) {
7591
- const selection = _chunkN4SYPFH4js.parseJsonFields.call(void 0, args, "run");
7591
+ const selection = _chunkUJTWIOQKjs.parseJsonFields.call(void 0, args, "run");
7592
7592
  args = selection.args;
7593
7593
  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.";
7594
7594
  let filePath = null;
@@ -7600,7 +7600,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7600
7600
  let revisionSelector = null;
7601
7601
  const watch = !args.includes("--no-wait");
7602
7602
  const dryRun = args.includes("--dry-run");
7603
- let jsonOutput = dryRun ? _chunkN4SYPFH4js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkN4SYPFH4js.argsWantJson.call(void 0, args);
7603
+ let jsonOutput = dryRun ? _chunkUJTWIOQKjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkUJTWIOQKjs.argsWantJson.call(void 0, args);
7604
7604
  const fullJson = args.includes("--full");
7605
7605
  const force = args.includes("--force");
7606
7606
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -7663,7 +7663,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7663
7663
  "--log-level requires one of: debug, info, warn, error."
7664
7664
  );
7665
7665
  }
7666
- const parsed = _chunkWAPSY6F3js.parseLogLevel.call(void 0, value);
7666
+ const parsed = _chunkMRL2OMZYjs.parseLogLevel.call(void 0, value);
7667
7667
  if (!parsed) {
7668
7668
  throw new Error(
7669
7669
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -7981,7 +7981,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
7981
7981
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
7982
7982
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
7983
7983
  );
7984
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkWAPSY6F3js.parseLogLevel.call(void 0, options.logLevel);
7984
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkMRL2OMZYjs.parseLogLevel.call(void 0, options.logLevel);
7985
7985
  if (!logLevel)
7986
7986
  throw new Error("--log-level requires one of: debug, info, warn, error.");
7987
7987
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -7995,13 +7995,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
7995
7995
  if (debugAlias || debugMapLatency && logLevel === "info")
7996
7996
  logLevel = "debug";
7997
7997
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
7998
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkN4SYPFH4js.parseJsonFields.call(void 0,
7999
- [...fullJson ? ["--full"] : [], ..._chunkN4SYPFH4js.jsonFieldArgs.call(void 0, options.json)],
7998
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkUJTWIOQKjs.parseJsonFields.call(void 0,
7999
+ [...fullJson ? ["--full"] : [], ..._chunkUJTWIOQKjs.jsonFieldArgs.call(void 0, options.json)],
8000
8000
  "run"
8001
8001
  ).fields;
8002
8002
  const watch = options.wait === false ? false : base.watch;
8003
8003
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
8004
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkN4SYPFH4js.argsWantJson.call(void 0, []) : explicitJson;
8004
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkUJTWIOQKjs.argsWantJson.call(void 0, []) : explicitJson;
8005
8005
  const verboseLogs = Boolean(
8006
8006
  debugAlias || logLevel === "debug" || debugMapLatency
8007
8007
  );
@@ -8122,7 +8122,7 @@ async function checkLocalPlayGraph(input) {
8122
8122
  // src/cli/renderers/local-play-execution.ts
8123
8123
  function renderLocalPlayExecutionPlan(plan, options = {}) {
8124
8124
  if (options.dryRun) {
8125
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
8125
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
8126
8126
  return;
8127
8127
  }
8128
8128
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -8294,7 +8294,7 @@ function traceCliSync(phase, fields2, run) {
8294
8294
  const startedAt = Date.now();
8295
8295
  try {
8296
8296
  const result = run();
8297
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
8297
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
8298
8298
  phase,
8299
8299
  ms: Date.now() - startedAt,
8300
8300
  ok: true,
@@ -8302,7 +8302,7 @@ function traceCliSync(phase, fields2, run) {
8302
8302
  });
8303
8303
  return result;
8304
8304
  } catch (error) {
8305
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
8305
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
8306
8306
  phase,
8307
8307
  ms: Date.now() - startedAt,
8308
8308
  ok: false,
@@ -9086,7 +9086,7 @@ function playStatusErrorText(status) {
9086
9086
  function isRetryablePendingStartFailure(status) {
9087
9087
  if (status.status !== "failed") return false;
9088
9088
  if (status.runId && status.runId !== "pending") return false;
9089
- return _chunkWAPSY6F3js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
9089
+ return _chunkMRL2OMZYjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
9090
9090
  }
9091
9091
  function isAmbiguousPlayStartOutcomeError(error) {
9092
9092
  if (error instanceof _chunkPPDBRJRWjs.DeeplineError && typeof error.statusCode === "number") {
@@ -9135,13 +9135,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkPPDBRJRWjs.Deep
9135
9135
  }, _class);
9136
9136
  function watchSurfaceReaches(state, provenance, level) {
9137
9137
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
9138
- if (!_chunkWAPSY6F3js.logLevelReaches.call(void 0, level, minimumLevel)) {
9138
+ if (!_chunkMRL2OMZYjs.logLevelReaches.call(void 0, level, minimumLevel)) {
9139
9139
  return false;
9140
9140
  }
9141
- if (_chunkWAPSY6F3js.logProvenanceReaches.call(void 0, provenance, "watch")) {
9141
+ if (_chunkMRL2OMZYjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
9142
9142
  return true;
9143
9143
  }
9144
- return state.verbose === true && _chunkWAPSY6F3js.logProvenanceReaches.call(void 0, provenance, "debug");
9144
+ return state.verbose === true && _chunkMRL2OMZYjs.logProvenanceReaches.call(void 0, provenance, "debug");
9145
9145
  }
9146
9146
  function getEventPayload(event) {
9147
9147
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -9643,7 +9643,7 @@ function resolveRunPlayName(status, runId) {
9643
9643
  }
9644
9644
  function openPlayDashboard(dashboardUrl, open2) {
9645
9645
  if (open2 && dashboardUrl) {
9646
- _chunkN4SYPFH4js.openInBrowser.call(void 0, dashboardUrl);
9646
+ _chunkUJTWIOQKjs.openInBrowser.call(void 0, dashboardUrl);
9647
9647
  }
9648
9648
  }
9649
9649
  function printPlayLogLines(input) {
@@ -9720,7 +9720,7 @@ async function waitForPlayCompletionByWatch(input) {
9720
9720
  ...input.fullJson === void 0 ? {} : { full: input.fullJson }
9721
9721
  });
9722
9722
  } catch (error) {
9723
- if (_chunkWAPSY6F3js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9723
+ if (_chunkMRL2OMZYjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9724
9724
  return null;
9725
9725
  }
9726
9726
  throw error;
@@ -9800,9 +9800,9 @@ async function waitForPlayCompletionByWatch(input) {
9800
9800
  signal: controller.signal,
9801
9801
  deferLogs: !input.emitLogs,
9802
9802
  omitTerminalLogs: !input.emitLogs,
9803
- ..._chunk5MP7LBHFjs.isCliTraceEnabled.call(void 0, ) ? {
9803
+ ..._chunk2DRO4YWMjs.isCliTraceEnabled.call(void 0, ) ? {
9804
9804
  onPoll: (observation) => {
9805
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
9805
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
9806
9806
  phase: "play_watch_poll",
9807
9807
  workflowId: input.workflowId,
9808
9808
  ms: observation.durationMs,
@@ -9816,7 +9816,7 @@ async function waitForPlayCompletionByWatch(input) {
9816
9816
  full: input.fullJson,
9817
9817
  billing: false,
9818
9818
  onStatus: async (status) => {
9819
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
9819
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
9820
9820
  phase: "play_watch_terminal_status",
9821
9821
  workflowId: input.workflowId,
9822
9822
  full: input.fullJson === true
@@ -9886,7 +9886,7 @@ async function startAndWaitForPlayCompletion(input) {
9886
9886
  });
9887
9887
  } catch (error) {
9888
9888
  if (!(error instanceof _chunk2H4EY7KHjs.CliPlayAdmissionUnsupportedError)) throw error;
9889
- await _chunkBBQTQRDCjs.checkPlayRunCompatibility.call(void 0,
9889
+ await _chunkESUBIEVTjs.checkPlayRunCompatibility.call(void 0,
9890
9890
  input.client.baseUrl,
9891
9891
  input.maintenancePolicy
9892
9892
  );
@@ -9932,7 +9932,7 @@ async function startAndWaitForPlayCompletion(input) {
9932
9932
  }
9933
9933
  openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
9934
9934
  input.progress.phase("running");
9935
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
9935
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
9936
9936
  phase: "cli.play_start_admitted",
9937
9937
  ms: Date.now() - startedAt,
9938
9938
  ok: true,
@@ -9949,7 +9949,7 @@ async function startAndWaitForPlayCompletion(input) {
9949
9949
  startedAt,
9950
9950
  waitTimeoutMs: input.waitTimeoutMs
9951
9951
  });
9952
- const initialStatus = _chunkWAPSY6F3js.normalizePlayStatus.call(void 0, initialTerminal);
9952
+ const initialStatus = _chunkMRL2OMZYjs.normalizePlayStatus.call(void 0, initialTerminal);
9953
9953
  const status2 = await resolvePlayRunOutputStatus({
9954
9954
  client: input.client,
9955
9955
  status: initialStatus,
@@ -9957,7 +9957,7 @@ async function startAndWaitForPlayCompletion(input) {
9957
9957
  jsonOutput: input.jsonOutput,
9958
9958
  fromDurableStatus: true
9959
9959
  });
9960
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
9960
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
9961
9961
  phase: "play_watch_terminal_status",
9962
9962
  workflowId,
9963
9963
  full: true,
@@ -10001,7 +10001,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
10001
10001
  status = await startAndWaitForPlayCompletionByStreamOnce(pinnedInput);
10002
10002
  } catch (error) {
10003
10003
  if (error instanceof _chunk2H4EY7KHjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
10004
- await _chunkBBQTQRDCjs.checkPlayRunCompatibility.call(void 0,
10004
+ await _chunkESUBIEVTjs.checkPlayRunCompatibility.call(void 0,
10005
10005
  input.client.baseUrl,
10006
10006
  input.maintenancePolicy
10007
10007
  );
@@ -10028,7 +10028,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
10028
10028
  `[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
10029
10029
  );
10030
10030
  }
10031
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
10031
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
10032
10032
  phase: "cli.play_start_stream_retry",
10033
10033
  ms: 0,
10034
10034
  ok: true,
@@ -10049,7 +10049,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
10049
10049
  `[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
10050
10050
  );
10051
10051
  }
10052
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
10052
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
10053
10053
  phase: "cli.play_start_stream_retry",
10054
10054
  ms: 0,
10055
10055
  ok: true,
@@ -10093,7 +10093,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10093
10093
  if (launchConfirmed || !runId || runId === "pending") return;
10094
10094
  launchConfirmed = true;
10095
10095
  await _optionalChain([input, 'access', _322 => _322.onRunAdmitted, 'optionalCall', _323 => _323(runId)]);
10096
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
10096
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
10097
10097
  phase: "cli.play_start_admitted",
10098
10098
  ms: Date.now() - startedAt,
10099
10099
  ok: true,
@@ -10127,7 +10127,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10127
10127
  full: input.fullJson
10128
10128
  });
10129
10129
  } catch (error) {
10130
- if (_chunkWAPSY6F3js.isTransientPlayRunReadError.call(void 0, error)) {
10130
+ if (_chunkMRL2OMZYjs.isTransientPlayRunReadError.call(void 0, error)) {
10131
10131
  return null;
10132
10132
  }
10133
10133
  throw error;
@@ -10260,7 +10260,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10260
10260
  };
10261
10261
  }
10262
10262
  if (!canonicalTerminal) {
10263
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
10263
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
10264
10264
  phase: "cli.play_start_stream_stale_terminal_ignored",
10265
10265
  ms: Date.now() - startedAt,
10266
10266
  ok: true,
@@ -10281,14 +10281,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10281
10281
  fromDurableStatus
10282
10282
  }) : canonicalTerminal;
10283
10283
  if (input.fullJson === true) {
10284
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
10284
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
10285
10285
  phase: "play_watch_terminal_status",
10286
10286
  workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
10287
10287
  full: true,
10288
10288
  source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
10289
10289
  });
10290
10290
  }
10291
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
10291
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
10292
10292
  phase: "cli.play_start_stream_terminal",
10293
10293
  ms: Date.now() - startedAt,
10294
10294
  ok: true,
@@ -10308,7 +10308,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10308
10308
  clearTimeout(timeout);
10309
10309
  }
10310
10310
  controller.abort();
10311
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
10311
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
10312
10312
  phase: "cli.play_start_stream_handoff_to_tail",
10313
10313
  ms: Date.now() - startedAt,
10314
10314
  ok: true,
@@ -10339,7 +10339,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10339
10339
  if (timedOut) {
10340
10340
  const terminal = await fetchKnownTerminalStatus();
10341
10341
  if (terminal) {
10342
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
10342
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
10343
10343
  phase: "cli.play_start_stream_timeout_status_reconcile",
10344
10344
  ms: Date.now() - startedAt,
10345
10345
  ok: true,
@@ -10359,7 +10359,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10359
10359
  lastPhase
10360
10360
  });
10361
10361
  }
10362
- if (lastKnownWorkflowId && (terminalWindowExpired || _chunkWAPSY6F3js.isTransientPlayRunReadError.call(void 0, error))) {
10362
+ if (lastKnownWorkflowId && (terminalWindowExpired || _chunkMRL2OMZYjs.isTransientPlayRunReadError.call(void 0, error))) {
10363
10363
  if (timeout) {
10364
10364
  clearTimeout(timeout);
10365
10365
  }
@@ -10370,7 +10370,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10370
10370
  `
10371
10371
  );
10372
10372
  }
10373
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
10373
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
10374
10374
  phase: "cli.play_start_stream_reconnect",
10375
10375
  ms: Date.now() - startedAt,
10376
10376
  ok: true,
@@ -10397,7 +10397,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10397
10397
  });
10398
10398
  }
10399
10399
  if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
10400
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
10400
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
10401
10401
  phase: "cli.play_start_stream_transient_failure",
10402
10402
  ms: Date.now() - startedAt,
10403
10403
  ok: false,
@@ -10425,7 +10425,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10425
10425
  `[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
10426
10426
  );
10427
10427
  }
10428
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
10428
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
10429
10429
  phase: "cli.play_start_stream_reconnect",
10430
10430
  ms: Date.now() - startedAt,
10431
10431
  ok: true,
@@ -10505,7 +10505,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10505
10505
  "logs"
10506
10506
  ]);
10507
10507
  function formatPlayLogLine(rawLine, state) {
10508
- const classified = _chunkWAPSY6F3js.classifyLogLine.call(void 0, rawLine);
10508
+ const classified = _chunkMRL2OMZYjs.classifyLogLine.call(void 0, rawLine);
10509
10509
  const line = classified.line;
10510
10510
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10511
10511
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _326 => _326[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10520,14 +10520,14 @@ function formatPlayLogLine(rawLine, state) {
10520
10520
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10521
10521
  const providerWait = formatProviderCapacityWaitLogLine(line);
10522
10522
  if (providerWait && !state.verbose) {
10523
- return _chunkWAPSY6F3js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10523
+ return _chunkMRL2OMZYjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10524
10524
  }
10525
10525
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10526
10526
  if (mapProgress && !state.verbose) {
10527
- return _chunkWAPSY6F3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10527
+ return _chunkMRL2OMZYjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10528
10528
  }
10529
10529
  if (/\[worker\] picked up run\b/.test(message)) {
10530
- if (!_chunkWAPSY6F3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10530
+ if (!_chunkMRL2OMZYjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10531
10531
  return null;
10532
10532
  }
10533
10533
  if (state.emittedRunnerStarted) {
@@ -10540,7 +10540,7 @@ function formatPlayLogLine(rawLine, state) {
10540
10540
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10541
10541
  );
10542
10542
  if (mapStart) {
10543
- if (!_chunkWAPSY6F3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10543
+ if (!_chunkMRL2OMZYjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10544
10544
  return null;
10545
10545
  }
10546
10546
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10550,7 +10550,7 @@ function formatPlayLogLine(rawLine, state) {
10550
10550
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10551
10551
  );
10552
10552
  if (mapDone) {
10553
- if (!_chunkWAPSY6F3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10553
+ if (!_chunkMRL2OMZYjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10554
10554
  return null;
10555
10555
  }
10556
10556
  const [, results, executed, cached] = mapDone;
@@ -11839,7 +11839,7 @@ function formatRecentRunLogLines(value) {
11839
11839
  (line) => typeof line === "string"
11840
11840
  );
11841
11841
  if (tail.length === 0) return [];
11842
- const shown = tail.map((line) => _chunkWAPSY6F3js.classifyLogLine.call(void 0, line)).filter(
11842
+ const shown = tail.map((line) => _chunkMRL2OMZYjs.classifyLogLine.call(void 0, line)).filter(
11843
11843
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
11844
11844
  ).slice(-8);
11845
11845
  const total = readNonNegativeInteger(logs.totalCount);
@@ -12122,7 +12122,7 @@ function writePlayResult(status, jsonOutput, options) {
12122
12122
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _407 => _407.hits]), () => ( null));
12123
12123
  if (jsonOutput) {
12124
12124
  const payload2 = _optionalChain([options, 'optionalAccess', _408 => _408.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
12125
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
12125
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
12126
12126
  hits ? { ...payload2, hits } : payload2,
12127
12127
  { json: true, fields: _optionalChain([options, 'optionalAccess', _409 => _409.jsonFields]) }
12128
12128
  );
@@ -12138,7 +12138,7 @@ function writePlayResult(status, jsonOutput, options) {
12138
12138
  ...buildPlayCompletionTextLines(status),
12139
12139
  ...formatRunHitsLines(hits)
12140
12140
  ];
12141
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, displayPackage, {
12141
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, displayPackage, {
12142
12142
  json: false,
12143
12143
  text: `${lines2.join("\n")}
12144
12144
  `
@@ -12189,7 +12189,7 @@ function writePlayResult(status, jsonOutput, options) {
12189
12189
  lines.push(...buildBillingRollupTextLines(status));
12190
12190
  const compact = compactPlayStatus(status);
12191
12191
  const payload = _optionalChain([options, 'optionalAccess', _411 => _411.fullJson]) ? status : compact;
12192
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
12192
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
12193
12193
  {
12194
12194
  ...payload,
12195
12195
  render: {
@@ -12959,7 +12959,7 @@ function writeStartedPlayRun(input) {
12959
12959
  dashboardUrl: input.dashboardUrl,
12960
12960
  package: input.package
12961
12961
  };
12962
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12962
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12963
12963
  json: true,
12964
12964
  fields: input.jsonFields
12965
12965
  });
@@ -12981,7 +12981,7 @@ function writeStartedPlayRun(input) {
12981
12981
  input.progress.writeLine(output2, process.stdout);
12982
12982
  return;
12983
12983
  }
12984
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, input.package, {
12984
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, input.package, {
12985
12985
  json: false,
12986
12986
  text: `${output2}
12987
12987
  `
@@ -13010,7 +13010,7 @@ function writeStartedPlayRun(input) {
13010
13010
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
13011
13011
  ];
13012
13012
  if (input.jsonOutput) {
13013
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13013
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13014
13014
  return;
13015
13015
  }
13016
13016
  if (input.dashboardUrl) {
@@ -13021,7 +13021,7 @@ function writeStartedPlayRun(input) {
13021
13021
  input.progress.writeLine(output, process.stdout);
13022
13022
  return;
13023
13023
  }
13024
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
13024
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
13025
13025
  {
13026
13026
  ...payload,
13027
13027
  render: { sections: [{ title: "play run", lines }] }
@@ -13031,7 +13031,7 @@ function writeStartedPlayRun(input) {
13031
13031
  );
13032
13032
  }
13033
13033
  function parsePlayCheckOptions(args) {
13034
- const selection = _chunkN4SYPFH4js.parseJsonFields.call(void 0, args, "check");
13034
+ const selection = _chunkUJTWIOQKjs.parseJsonFields.call(void 0, args, "check");
13035
13035
  args = selection.args;
13036
13036
  const target = args[0];
13037
13037
  if (!target || target.startsWith("-")) {
@@ -13043,7 +13043,7 @@ function parsePlayCheckOptions(args) {
13043
13043
  if (arg !== "--json" && arg !== "--full")
13044
13044
  throw new Error(`Unknown plays check option: ${arg}`);
13045
13045
  }
13046
- const jsonOutput = _chunkN4SYPFH4js.argsWantJson.call(void 0, args);
13046
+ const jsonOutput = _chunkUJTWIOQKjs.argsWantJson.call(void 0, args);
13047
13047
  return {
13048
13048
  target,
13049
13049
  jsonOutput,
@@ -13119,7 +13119,7 @@ ${PLAY_PUBLISH_USAGE}`
13119
13119
  useLatest,
13120
13120
  expectedArtifactHash,
13121
13121
  dryRun,
13122
- jsonOutput: _chunkN4SYPFH4js.argsWantJson.call(void 0, args)
13122
+ jsonOutput: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args)
13123
13123
  };
13124
13124
  }
13125
13125
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -13160,7 +13160,7 @@ ${PLAY_SAVE_USAGE}`);
13160
13160
  target,
13161
13161
  expectedArtifactHash,
13162
13162
  dryRun,
13163
- jsonOutput: _chunkN4SYPFH4js.argsWantJson.call(void 0, args)
13163
+ jsonOutput: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args)
13164
13164
  };
13165
13165
  }
13166
13166
  function printScheduledPlayCapacity(capacity) {
@@ -13371,7 +13371,7 @@ function printBundledRuntimeWarning(bundle) {
13371
13371
  async function handlePlayCheck(args) {
13372
13372
  const options = parsePlayCheckOptions(args);
13373
13373
  if (!isFileTarget2(options.target)) {
13374
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
13374
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
13375
13375
  try {
13376
13376
  await assertCanonicalNamedPlayReference(client, options.target, {
13377
13377
  command: "check"
@@ -13400,7 +13400,7 @@ async function handlePlayCheck(args) {
13400
13400
  },
13401
13401
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
13402
13402
  };
13403
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, result, {
13403
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, result, {
13404
13404
  json: options.jsonOutput,
13405
13405
  fields: options.jsonFields,
13406
13406
  text: renderPlayCheckOutput(result) + "\n"
@@ -13410,7 +13410,7 @@ async function handlePlayCheck(args) {
13410
13410
  const resolved = _path.resolve.call(void 0, options.target);
13411
13411
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
13412
13412
  if (options.jsonOutput) {
13413
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
13413
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
13414
13414
  {
13415
13415
  kind: "play_check",
13416
13416
  checked: "named_contract",
@@ -13452,7 +13452,7 @@ async function handlePlayCheck(args) {
13452
13452
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
13453
13453
  publishCommand: _optionalChain([primary, 'optionalAccess', _461 => _461.result, 'access', _462 => _462.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
13454
13454
  });
13455
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, output, {
13455
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, output, {
13456
13456
  json: options.jsonOutput,
13457
13457
  fields: options.jsonFields,
13458
13458
  text: renderPlayCheckOutput(output) + "\n"
@@ -13506,7 +13506,7 @@ async function checkOneExportedPlay(input) {
13506
13506
  }
13507
13507
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
13508
13508
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
13509
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
13509
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
13510
13510
  const integrationMode = resolveEvalIntegrationMode();
13511
13511
  const checked = await checkLocalPlayGraph({
13512
13512
  client,
@@ -13559,11 +13559,11 @@ async function handleFileBackedRun(options, hooks) {
13559
13559
  throw new Error("Expected a file-backed play run target.");
13560
13560
  }
13561
13561
  let client;
13562
- let cliAdmission = _chunkBBQTQRDCjs.usesInlinePlayAdmission.call(void 0,
13562
+ let cliAdmission = _chunkESUBIEVTjs.usesInlinePlayAdmission.call(void 0,
13563
13563
  "plays run",
13564
13564
  process.argv.slice(2)
13565
13565
  );
13566
- const progress = _nullishCoalesce(_chunk44SXWCI5js.getActiveCliProgress.call(void 0, ), () => ( _chunk44SXWCI5js.createCliProgress.call(void 0, !options.jsonOutput)));
13566
+ const progress = _nullishCoalesce(_chunkZCO7R65Djs.getActiveCliProgress.call(void 0, ), () => ( _chunkZCO7R65Djs.createCliProgress.call(void 0, !options.jsonOutput)));
13567
13567
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
13568
13568
  progress.phase("compiling play");
13569
13569
  const sourceCode = traceCliSync(
@@ -13580,7 +13580,7 @@ async function handleFileBackedRun(options, hooks) {
13580
13580
  }
13581
13581
  let graph;
13582
13582
  try {
13583
- graph = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
13583
+ graph = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
13584
13584
  "cli.play_file_bundle_graph",
13585
13585
  { targetKind: "file" },
13586
13586
  () => collectBundledPlayGraph(
@@ -13599,9 +13599,9 @@ async function handleFileBackedRun(options, hooks) {
13599
13599
  );
13600
13600
  return 0;
13601
13601
  }
13602
- client = new (0, _chunkWAPSY6F3js.DeeplineClient)(playRunClientOptions(options));
13602
+ client = new (0, _chunkMRL2OMZYjs.DeeplineClient)(playRunClientOptions(options));
13603
13603
  if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
13604
- await _chunkBBQTQRDCjs.checkPlayRunCompatibility.call(void 0,
13604
+ await _chunkESUBIEVTjs.checkPlayRunCompatibility.call(void 0,
13605
13605
  client.baseUrl,
13606
13606
  options.maintenancePolicy
13607
13607
  );
@@ -13614,7 +13614,7 @@ async function handleFileBackedRun(options, hooks) {
13614
13614
  });
13615
13615
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
13616
13616
  if (canDeferCompilerManifest) {
13617
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
13617
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
13618
13618
  phase: "cli.play_file_compile_manifests",
13619
13619
  ms: 0,
13620
13620
  ok: true,
@@ -13623,7 +13623,7 @@ async function handleFileBackedRun(options, hooks) {
13623
13623
  reason: "validated_by_run_route"
13624
13624
  });
13625
13625
  } else {
13626
- await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
13626
+ await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
13627
13627
  "cli.play_file_compile_manifests",
13628
13628
  { targetKind: "file", skipped: false },
13629
13629
  () => compileBundledPlayGraphManifests(client, graph)
@@ -13647,7 +13647,7 @@ async function handleFileBackedRun(options, hooks) {
13647
13647
  _chunkGEJDBXXMjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
13648
13648
  );
13649
13649
  progress.phase("pinning imported plays");
13650
- graph = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
13650
+ graph = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
13651
13651
  "cli.play_file_pin_imports",
13652
13652
  { targetKind: "file" },
13653
13653
  () => _chunkGEJDBXXMjs.pinLocalPlayImports.call(void 0, client, graph)
@@ -13666,7 +13666,7 @@ async function handleFileBackedRun(options, hooks) {
13666
13666
  const fileInputBindings = _chunk2H4EY7KHjs.fileInputBindingsFromStaticPipeline.call(void 0,
13667
13667
  _optionalChain([compilerManifest, 'optionalAccess', _471 => _471.staticPipeline])
13668
13668
  );
13669
- const stagedFileInputs = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
13669
+ const stagedFileInputs = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
13670
13670
  "cli.play_stage_inputs",
13671
13671
  {
13672
13672
  targetKind: "file",
@@ -13713,7 +13713,7 @@ async function handleFileBackedRun(options, hooks) {
13713
13713
  };
13714
13714
  if (options.watch) {
13715
13715
  progress.phase("starting run");
13716
- const finalStatus = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
13716
+ const finalStatus = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
13717
13717
  "cli.play_start_watch",
13718
13718
  { targetKind: "file", playName },
13719
13719
  () => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -13769,7 +13769,7 @@ async function handleFileBackedRun(options, hooks) {
13769
13769
  return outputStatus.status === "completed" ? 0 : 1;
13770
13770
  }
13771
13771
  progress.phase("starting run");
13772
- const started = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
13772
+ const started = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
13773
13773
  "cli.play_start_unwatched",
13774
13774
  { targetKind: "file", playName },
13775
13775
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _477 => _477.onSubmission]) }).catch(async (error) => {
@@ -13816,12 +13816,12 @@ async function handleNamedRun(options, hooks) {
13816
13816
  if (options.target.kind !== "name") {
13817
13817
  throw new Error("Expected a named play run target.");
13818
13818
  }
13819
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)(playRunClientOptions(options));
13820
- let cliAdmission = _chunkBBQTQRDCjs.usesInlinePlayAdmission.call(void 0,
13819
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)(playRunClientOptions(options));
13820
+ let cliAdmission = _chunkESUBIEVTjs.usesInlinePlayAdmission.call(void 0,
13821
13821
  "plays run",
13822
13822
  process.argv.slice(2)
13823
13823
  );
13824
- const progress = _nullishCoalesce(_chunk44SXWCI5js.getActiveCliProgress.call(void 0, ), () => ( _chunk44SXWCI5js.createCliProgress.call(void 0, !options.jsonOutput)));
13824
+ const progress = _nullishCoalesce(_chunkZCO7R65Djs.getActiveCliProgress.call(void 0, ), () => ( _chunkZCO7R65Djs.createCliProgress.call(void 0, !options.jsonOutput)));
13825
13825
  const playName = options.target.name;
13826
13826
  const runtimeInput = options.input ? { ...options.input } : {};
13827
13827
  try {
@@ -13836,14 +13836,14 @@ async function handleNamedRun(options, hooks) {
13836
13836
  });
13837
13837
  const playDetail = needsPlayDefinition ? await (async () => {
13838
13838
  progress.phase("loading play definition");
13839
- return _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
13839
+ return _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
13840
13840
  "cli.play_load_definition",
13841
13841
  { targetKind: "name", playName, skipped: false },
13842
13842
  () => assertCanonicalNamedPlayReference(client, playName, {
13843
13843
  command: "run"
13844
13844
  })
13845
13845
  );
13846
- })() : (_chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
13846
+ })() : (_chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
13847
13847
  phase: "cli.play_load_definition",
13848
13848
  ms: 0,
13849
13849
  ok: true,
@@ -13852,7 +13852,7 @@ async function handleNamedRun(options, hooks) {
13852
13852
  skipped: true
13853
13853
  }), null);
13854
13854
  progress.phase("selecting revision");
13855
- const selectedRevisionId = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
13855
+ const selectedRevisionId = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
13856
13856
  "cli.play_select_revision",
13857
13857
  {
13858
13858
  targetKind: "name",
@@ -13877,10 +13877,10 @@ async function handleNamedRun(options, hooks) {
13877
13877
  ..._chunk2H4EY7KHjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
13878
13878
  ] : [];
13879
13879
  if (cliAdmission && fileInputBindings.length > 0) {
13880
- await _chunkBBQTQRDCjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13880
+ await _chunkESUBIEVTjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13881
13881
  cliAdmission = false;
13882
13882
  }
13883
- const stagedFileInputs = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
13883
+ const stagedFileInputs = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
13884
13884
  "cli.play_stage_inputs",
13885
13885
  {
13886
13886
  targetKind: "name",
@@ -13924,7 +13924,7 @@ async function handleNamedRun(options, hooks) {
13924
13924
  });
13925
13925
  if (options.watch) {
13926
13926
  progress.phase("starting run");
13927
- const finalStatus = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
13927
+ const finalStatus = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
13928
13928
  "cli.play_start_watch",
13929
13929
  { targetKind: "name", playName },
13930
13930
  () => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -13983,7 +13983,7 @@ async function handleNamedRun(options, hooks) {
13983
13983
  return outputStatus.status === "completed" ? 0 : 1;
13984
13984
  }
13985
13985
  progress.phase("starting run");
13986
- const started = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
13986
+ const started = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
13987
13987
  "cli.play_start_unwatched",
13988
13988
  { targetKind: "name", playName },
13989
13989
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _488 => _488.onSubmission]) }).catch(async (error) => {
@@ -14032,7 +14032,7 @@ async function handlePlayRun(args, hooks) {
14032
14032
  JSON.stringify({
14033
14033
  version: 1,
14034
14034
  admissionState: "submitted_unknown",
14035
- baseUrl: new (0, _chunkWAPSY6F3js.DeeplineClient)().baseUrl,
14035
+ baseUrl: new (0, _chunkMRL2OMZYjs.DeeplineClient)().baseUrl,
14036
14036
  ...intent
14037
14037
  })
14038
14038
  );
@@ -14261,7 +14261,7 @@ function renderRunOverviewText(overview, extras = {}) {
14261
14261
  );
14262
14262
  return `${lines.join("\n")}
14263
14263
 
14264
- ${_chunkN4SYPFH4js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
14264
+ ${_chunkUJTWIOQKjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
14265
14265
  }
14266
14266
  var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
14267
14267
  async function withRunReadTiming(command, stage, enabled, action) {
@@ -14285,7 +14285,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
14285
14285
  }
14286
14286
  }
14287
14287
  async function handleRunGet(args) {
14288
- const selection = _chunkN4SYPFH4js.parseJsonFields.call(void 0,
14288
+ const selection = _chunkUJTWIOQKjs.parseJsonFields.call(void 0,
14289
14289
  args,
14290
14290
  args.includes("--config") ? "config" : "get"
14291
14291
  );
@@ -14298,7 +14298,7 @@ async function handleRunGet(args) {
14298
14298
  console.error(error instanceof Error ? error.message : usage2);
14299
14299
  return 1;
14300
14300
  }
14301
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
14301
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
14302
14302
  const timing = args.includes("--timing");
14303
14303
  if (args.includes("--web-url")) {
14304
14304
  const status2 = await withRunReadTiming(
@@ -14313,7 +14313,7 @@ async function handleRunGet(args) {
14313
14313
  return 1;
14314
14314
  }
14315
14315
  const dashboardUrl2 = _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
14316
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
14316
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
14317
14317
  { dashboardUrl: dashboardUrl2 },
14318
14318
  { json: args.includes("--json"), text: `${dashboardUrl2}
14319
14319
  ` }
@@ -14338,7 +14338,7 @@ async function handleRunGet(args) {
14338
14338
  "This server does not support recorded configuration reads."
14339
14339
  );
14340
14340
  }
14341
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
14341
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
14342
14342
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
14343
14343
  { json: true, fields: selection.fields }
14344
14344
  );
@@ -14351,7 +14351,7 @@ async function handleRunGet(args) {
14351
14351
  timing,
14352
14352
  () => client.getRunInput(runId)
14353
14353
  );
14354
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, input, { json: true });
14354
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, input, { json: true });
14355
14355
  return 0;
14356
14356
  }
14357
14357
  const full = args.includes("--full");
@@ -14377,8 +14377,8 @@ async function handleRunGet(args) {
14377
14377
  ) : status;
14378
14378
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
14379
14379
  const legacyDashboardUrl = legacyPlayName ? _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
14380
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
14381
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
14380
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
14381
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
14382
14382
  {
14383
14383
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
14384
14384
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
@@ -14388,7 +14388,7 @@ async function handleRunGet(args) {
14388
14388
  } else {
14389
14389
  writePlayResult(legacyStatus, false, { fullJson: full });
14390
14390
  if (legacyDashboardUrl)
14391
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
14391
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
14392
14392
  { dashboardUrl: legacyDashboardUrl },
14393
14393
  { json: false, text: `play page: ${legacyDashboardUrl}
14394
14394
  ` }
@@ -14418,10 +14418,10 @@ async function handleRunGet(args) {
14418
14418
  )
14419
14419
  ]);
14420
14420
  const hitLines = formatRunHitsLines(hits);
14421
- const json = _chunkN4SYPFH4js.argsWantJson.call(void 0, args);
14421
+ const json = _chunkUJTWIOQKjs.argsWantJson.call(void 0, args);
14422
14422
  const playName = resolveRunPlayName(status, runId);
14423
14423
  const dashboardUrl = playName ? _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
14424
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
14424
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
14425
14425
  {
14426
14426
  ...overview,
14427
14427
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -14525,9 +14525,9 @@ async function handleRunLifecycleStatus(args) {
14525
14525
  console.error(error instanceof Error ? error.message : usage2);
14526
14526
  return 1;
14527
14527
  }
14528
- const status = await new (0, _chunkWAPSY6F3js.DeeplineClient)().runs.status(runId);
14529
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
14530
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, status, { json: true });
14528
+ const status = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().runs.status(runId);
14529
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
14530
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, status, { json: true });
14531
14531
  return 0;
14532
14532
  }
14533
14533
  if (!status.available) {
@@ -14567,7 +14567,7 @@ async function handleRunsRerun(args) {
14567
14567
  console.error(error instanceof Error ? error.message : usage2);
14568
14568
  return 1;
14569
14569
  }
14570
- const options = { json: _chunkN4SYPFH4js.argsWantJson.call(void 0, args) };
14570
+ const options = { json: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args) };
14571
14571
  for (let index = 0; index < args.length; index += 1) {
14572
14572
  if (args[index] === "--idempotency-key") {
14573
14573
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -14633,8 +14633,8 @@ ${usage2}
14633
14633
  Discover Plays: ${next.discover}
14634
14634
  Active runs: ${next.running}`
14635
14635
  );
14636
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
14637
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
14636
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
14637
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
14638
14638
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
14639
14639
  { json: true }
14640
14640
  );
@@ -14649,7 +14649,7 @@ Active runs: ${next.running}`
14649
14649
  console.error("--offset requires --play.");
14650
14650
  return 1;
14651
14651
  }
14652
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
14652
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
14653
14653
  const page = await withRunReadTiming(
14654
14654
  "runs list",
14655
14655
  "run inventory",
@@ -14716,14 +14716,14 @@ Active runs: ${next.running}`
14716
14716
  return lines2.join("\n");
14717
14717
  });
14718
14718
  const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
14719
- const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkN4SYPFH4js.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14719
+ const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkUJTWIOQKjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14720
14720
  if (page.hasMore) {
14721
14721
  lines.push("List truncated \u2014 more runs match this filter.");
14722
14722
  lines.push(
14723
14723
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14724
14724
  );
14725
14725
  }
14726
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
14726
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
14727
14727
  {
14728
14728
  runs,
14729
14729
  count: runs.length,
@@ -14737,7 +14737,7 @@ Active runs: ${next.running}`
14737
14737
  },
14738
14738
  render: { sections: [{ title: "runs", lines }] }
14739
14739
  },
14740
- { json: _chunkN4SYPFH4js.argsWantJson.call(void 0, args) }
14740
+ { json: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args) }
14741
14741
  );
14742
14742
  return 0;
14743
14743
  }
@@ -14767,7 +14767,7 @@ async function handleRunTail(args) {
14767
14767
  console.error("--log-level requires one of: debug, info, warn, error.");
14768
14768
  return 1;
14769
14769
  }
14770
- const parsed = _chunkWAPSY6F3js.parseLogLevel.call(void 0, value);
14770
+ const parsed = _chunkMRL2OMZYjs.parseLogLevel.call(void 0, value);
14771
14771
  if (!parsed) {
14772
14772
  console.error(
14773
14773
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14805,9 +14805,9 @@ async function handleRunTail(args) {
14805
14805
  );
14806
14806
  return 1;
14807
14807
  }
14808
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
14808
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
14809
14809
  const jsonLines = args.includes("--jsonl");
14810
- const jsonOutput = !jsonLines && _chunkN4SYPFH4js.argsWantJson.call(void 0, args);
14810
+ const jsonOutput = !jsonLines && _chunkUJTWIOQKjs.argsWantJson.call(void 0, args);
14811
14811
  const compact = args.includes("--compact");
14812
14812
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14813
14813
  const compactState = {
@@ -14888,7 +14888,7 @@ async function handleRunLogs(args) {
14888
14888
  ]);
14889
14889
  const cursorIndex = args.indexOf("--cursor");
14890
14890
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14891
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkWAPSY6F3js.isRunLogsCursor.call(void 0, cursorValue));
14891
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkMRL2OMZYjs.isRunLogsCursor.call(void 0, cursorValue));
14892
14892
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14893
14893
  return handleRunEventSearch(args);
14894
14894
  }
@@ -14922,7 +14922,7 @@ async function handleRunLogs(args) {
14922
14922
  console.error("--log-level requires one of: debug, info, warn, error.");
14923
14923
  return 1;
14924
14924
  }
14925
- const parsed = _chunkWAPSY6F3js.parseLogLevel.call(void 0, value);
14925
+ const parsed = _chunkMRL2OMZYjs.parseLogLevel.call(void 0, value);
14926
14926
  if (!parsed) {
14927
14927
  console.error(
14928
14928
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14969,12 +14969,12 @@ async function handleRunLogs(args) {
14969
14969
  );
14970
14970
  return 1;
14971
14971
  }
14972
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
14972
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
14973
14973
  if (outPath) {
14974
14974
  const result2 = await client.runs.logs(runId, { all: true });
14975
- const logs = result2.entries.filter((line) => _chunkWAPSY6F3js.logLevelReaches.call(void 0, _chunkWAPSY6F3js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkWAPSY6F3js.classifyLogLine.call(void 0, line).line);
14975
+ const logs = result2.entries.filter((line) => _chunkMRL2OMZYjs.logLevelReaches.call(void 0, _chunkMRL2OMZYjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkMRL2OMZYjs.classifyLogLine.call(void 0, line).line);
14976
14976
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14977
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
14977
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
14978
14978
  {
14979
14979
  runId: result2.runId,
14980
14980
  log_path: outPath,
@@ -14997,7 +14997,7 @@ async function handleRunLogs(args) {
14997
14997
  ]
14998
14998
  }
14999
14999
  },
15000
- { json: _chunkN4SYPFH4js.argsWantJson.call(void 0, args) }
15000
+ { json: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args) }
15001
15001
  );
15002
15002
  return 0;
15003
15003
  }
@@ -15028,7 +15028,7 @@ async function handleRunLogs(args) {
15028
15028
  }
15029
15029
  };
15030
15030
  const text = buildRunLogsText(filteredResult);
15031
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
15031
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
15032
15032
  {
15033
15033
  runId: result.runId,
15034
15034
  totalCount: result.totalCount,
@@ -15052,7 +15052,7 @@ async function handleRunLogs(args) {
15052
15052
  render: { sections: [{ title: "run logs", lines: entries }] }
15053
15053
  },
15054
15054
  {
15055
- json: _chunkN4SYPFH4js.argsWantJson.call(void 0, args),
15055
+ json: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args),
15056
15056
  text
15057
15057
  }
15058
15058
  );
@@ -15076,7 +15076,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15076
15076
  );
15077
15077
  }
15078
15078
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
15079
- (entry) => _chunkWAPSY6F3js.logLevelReaches.call(void 0, _chunkWAPSY6F3js.classifyLogLine.call(void 0, entry.line).level, logLevel)
15079
+ (entry) => _chunkMRL2OMZYjs.logLevelReaches.call(void 0, _chunkMRL2OMZYjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
15080
15080
  );
15081
15081
  const selected = matching.slice(-limit);
15082
15082
  const olderMatchesExist = matching.length > selected.length;
@@ -15086,7 +15086,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15086
15086
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _516 => _516.at, 'call', _517 => _517(-1), 'optionalAccess', _518 => _518.seq]), () => ( null)),
15087
15087
  truncated: result.truncated || olderMatchesExist,
15088
15088
  hasMore: olderMatchesExist,
15089
- nextCursor: olderMatchesExist ? _chunkWAPSY6F3js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15089
+ nextCursor: olderMatchesExist ? _chunkMRL2OMZYjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15090
15090
  };
15091
15091
  }
15092
15092
  async function handleRunEventSearch(args) {
@@ -15153,7 +15153,7 @@ ${usage2}`);
15153
15153
  namespace,
15154
15154
  ...backend ? { backend } : {}
15155
15155
  } : void 0;
15156
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
15156
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
15157
15157
  const result = await client.runs.searchEvents({
15158
15158
  ...runId ? { runId } : {},
15159
15159
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -15225,7 +15225,7 @@ ${renderedDetails}` : ""}`;
15225
15225
  "--limit",
15226
15226
  String(limit)
15227
15227
  ].join(" ") : null;
15228
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
15228
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
15229
15229
  {
15230
15230
  events,
15231
15231
  nextCursor: result.nextCursor,
@@ -15236,14 +15236,14 @@ ${renderedDetails}` : ""}`;
15236
15236
  render: { sections: [{ title: "runtime events", lines }] }
15237
15237
  },
15238
15238
  {
15239
- json: _chunkN4SYPFH4js.argsWantJson.call(void 0, args),
15239
+ json: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args),
15240
15240
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
15241
15241
  }
15242
15242
  );
15243
15243
  return 0;
15244
15244
  }
15245
15245
  function buildRunLogsText(result) {
15246
- const lines = result.entries.map((line) => _chunkWAPSY6F3js.classifyLogLine.call(void 0, line).line);
15246
+ const lines = result.entries.map((line) => _chunkMRL2OMZYjs.classifyLogLine.call(void 0, line).line);
15247
15247
  if (result.warning) {
15248
15248
  if (lines.length > 0) lines.push("");
15249
15249
  lines.push(`warning: ${result.warning}`);
@@ -15277,7 +15277,7 @@ async function handleRunStop(args) {
15277
15277
  reason = args[++index];
15278
15278
  }
15279
15279
  }
15280
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
15280
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
15281
15281
  const result = await client.runs.stop(runId, { reason });
15282
15282
  const state = resolveRunStopState(result);
15283
15283
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -15292,7 +15292,7 @@ async function handleRunStop(args) {
15292
15292
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
15293
15293
  `inspect: deepline runs get ${runId} --full`
15294
15294
  ];
15295
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
15295
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
15296
15296
  {
15297
15297
  ...cancelling,
15298
15298
  state,
@@ -15307,7 +15307,7 @@ async function handleRunStop(args) {
15307
15307
  ]
15308
15308
  }
15309
15309
  },
15310
- { json: _chunkN4SYPFH4js.argsWantJson.call(void 0, args) }
15310
+ { json: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args) }
15311
15311
  );
15312
15312
  return 0;
15313
15313
  }
@@ -15324,7 +15324,7 @@ async function handleRunStop(args) {
15324
15324
  ];
15325
15325
  process.stderr.write(`${lines2.join("\n")}
15326
15326
  `);
15327
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
15327
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
15328
15328
  {
15329
15329
  ...result,
15330
15330
  render: {
@@ -15339,7 +15339,7 @@ async function handleRunStop(args) {
15339
15339
  ]
15340
15340
  }
15341
15341
  },
15342
- { json: _chunkN4SYPFH4js.argsWantJson.call(void 0, args) }
15342
+ { json: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args) }
15343
15343
  );
15344
15344
  return 1;
15345
15345
  }
@@ -15350,12 +15350,12 @@ async function handleRunStop(args) {
15350
15350
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
15351
15351
  ] : []
15352
15352
  ];
15353
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
15353
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
15354
15354
  {
15355
15355
  ...result,
15356
15356
  render: { sections: [{ title: "run stop", lines }] }
15357
15357
  },
15358
- { json: _chunkN4SYPFH4js.argsWantJson.call(void 0, args) }
15358
+ { json: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args) }
15359
15359
  );
15360
15360
  return 0;
15361
15361
  }
@@ -15405,18 +15405,18 @@ async function handleRunStopAll(args) {
15405
15405
  reason = args[++index];
15406
15406
  }
15407
15407
  }
15408
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
15408
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
15409
15409
  if (dryRun) {
15410
15410
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
15411
15411
  const lines2 = buildStopAllDryRunTextLines(result2);
15412
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
15412
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
15413
15413
  {
15414
15414
  ...result2,
15415
15415
  render: {
15416
15416
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
15417
15417
  }
15418
15418
  },
15419
- { json: _chunkN4SYPFH4js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
15419
+ { json: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
15420
15420
  ` }
15421
15421
  );
15422
15422
  return 0;
@@ -15429,17 +15429,17 @@ async function handleRunStopAll(args) {
15429
15429
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
15430
15430
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
15431
15431
  ];
15432
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
15432
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
15433
15433
  {
15434
15434
  ...result,
15435
15435
  render: { sections: [{ title: "workspace stop-all", lines }] }
15436
15436
  },
15437
- { json: _chunkN4SYPFH4js.argsWantJson.call(void 0, args) }
15437
+ { json: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args) }
15438
15438
  );
15439
15439
  return result.failed > 0 || result.partial ? 1 : 0;
15440
15440
  }
15441
15441
  async function handleRunExport(args) {
15442
- const selection = _chunkN4SYPFH4js.parseJsonFields.call(void 0, args, "export");
15442
+ const selection = _chunkUJTWIOQKjs.parseJsonFields.call(void 0, args, "export");
15443
15443
  args = selection.args;
15444
15444
  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]";
15445
15445
  let runId;
@@ -15498,17 +15498,17 @@ async function handleRunExport(args) {
15498
15498
  "INVALID_ARGUMENT"
15499
15499
  );
15500
15500
  }
15501
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
15501
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
15502
15502
  let status = await client.getPlayStatus(runId, { full: true });
15503
15503
  assertRunExportStatusIdentity(status, runId);
15504
15504
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
15505
- const progress = _chunk44SXWCI5js.createCliProgress.call(void 0, !_chunkN4SYPFH4js.argsWantJson.call(void 0, args));
15505
+ const progress = _chunkZCO7R65Djs.createCliProgress.call(void 0, !_chunkUJTWIOQKjs.argsWantJson.call(void 0, args));
15506
15506
  try {
15507
15507
  await waitForPlayCompletionByWatch({
15508
15508
  client,
15509
15509
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
15510
15510
  workflowId: runId,
15511
- jsonOutput: _chunkN4SYPFH4js.argsWantJson.call(void 0, args),
15511
+ jsonOutput: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args),
15512
15512
  emitLogs: false,
15513
15513
  waitTimeoutMs,
15514
15514
  startedAt: Date.now(),
@@ -15609,8 +15609,8 @@ async function handleRunExport(args) {
15609
15609
  "utf-8"
15610
15610
  );
15611
15611
  }
15612
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, payload, {
15613
- json: _chunkN4SYPFH4js.argsWantJson.call(void 0, args),
15612
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, payload, {
15613
+ json: _chunkUJTWIOQKjs.argsWantJson.call(void 0, args),
15614
15614
  fields: selection.fields,
15615
15615
  text: `${lines.join("\n")}
15616
15616
  `
@@ -15644,10 +15644,10 @@ async function handlePlayGet(args) {
15644
15644
  );
15645
15645
  return 2;
15646
15646
  }
15647
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
15647
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
15648
15648
  const explicitJson = args.includes("--json");
15649
15649
  const sourceOutput = args.includes("--source");
15650
- const jsonOutput = sourceOutput ? explicitJson : _chunkN4SYPFH4js.argsWantJson.call(void 0, args);
15650
+ const jsonOutput = sourceOutput ? explicitJson : _chunkUJTWIOQKjs.argsWantJson.call(void 0, args);
15651
15651
  const requestedRevisionFlags = [
15652
15652
  args.includes("--working"),
15653
15653
  args.includes("--live"),
@@ -15707,7 +15707,7 @@ async function handlePlayGet(args) {
15707
15707
  }
15708
15708
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15709
15709
  if (jsonOutput) {
15710
- _chunkN4SYPFH4js.printCompactJson.call(void 0, {
15710
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, {
15711
15711
  ...detail,
15712
15712
  ...materializedFile ? {
15713
15713
  message: loadedMessage,
@@ -15799,8 +15799,8 @@ async function handlePlayVersions(args) {
15799
15799
  console.error("Usage: deepline plays versions --name <name> [--json]");
15800
15800
  return 1;
15801
15801
  }
15802
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
15803
- const jsonOutput = _chunkN4SYPFH4js.argsWantJson.call(void 0, args);
15802
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
15803
+ const jsonOutput = _chunkUJTWIOQKjs.argsWantJson.call(void 0, args);
15804
15804
  await assertCanonicalNamedPlayReference(client, playName, {
15805
15805
  command: "versions"
15806
15806
  });
@@ -15808,7 +15808,7 @@ async function handlePlayVersions(args) {
15808
15808
  parseReferencedPlayTarget2(playName).playName
15809
15809
  );
15810
15810
  if (jsonOutput) {
15811
- _chunkN4SYPFH4js.printCompactJson.call(void 0, { versions });
15811
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, { versions });
15812
15812
  return 0;
15813
15813
  }
15814
15814
  if (versions.length === 0) {
@@ -15846,9 +15846,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
15846
15846
  "signals"
15847
15847
  ];
15848
15848
  async function handlePlayList(args) {
15849
- const jsonOutput = _chunkN4SYPFH4js.argsWantJson.call(void 0, args);
15849
+ const jsonOutput = _chunkUJTWIOQKjs.argsWantJson.call(void 0, args);
15850
15850
  const showCost = args.includes("--show-cost");
15851
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
15851
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
15852
15852
  const categoriesIndex = args.indexOf("--categories");
15853
15853
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _555 => _555[categoriesIndex + 1], 'optionalAccess', _556 => _556.trim, 'call', _557 => _557()]) : void 0;
15854
15854
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15945,7 +15945,7 @@ async function handlePlayList(args) {
15945
15945
  lines.push("List truncated \u2014 more plays are available.");
15946
15946
  lines.push(`Next page: ${nextPage}`);
15947
15947
  }
15948
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
15948
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
15949
15949
  {
15950
15950
  plays,
15951
15951
  count: plays.length,
@@ -15963,7 +15963,7 @@ async function handlePlayList(args) {
15963
15963
  }
15964
15964
  async function handlePlayPin(args, pinned) {
15965
15965
  const target = _optionalChain([args, 'access', _564 => _564.find, 'call', _565 => _565((arg) => !arg.startsWith("-")), 'optionalAccess', _566 => _566.trim, 'call', _567 => _567()]);
15966
- const jsonOutput = _chunkN4SYPFH4js.argsWantJson.call(void 0, args);
15966
+ const jsonOutput = _chunkUJTWIOQKjs.argsWantJson.call(void 0, args);
15967
15967
  const dryRun = args.includes("--dry-run");
15968
15968
  if (!target) {
15969
15969
  console.error(
@@ -15981,11 +15981,11 @@ async function handlePlayPin(args, pinned) {
15981
15981
  const name = parsedTarget.playName;
15982
15982
  const plan = { name, pinned, dryRun };
15983
15983
  if (dryRun) {
15984
- _chunkN4SYPFH4js.printCompactJson.call(void 0, plan);
15984
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, plan);
15985
15985
  return 0;
15986
15986
  }
15987
- const result = await new (0, _chunkWAPSY6F3js.DeeplineClient)().setPlayPinned(name, pinned);
15988
- if (jsonOutput) _chunkN4SYPFH4js.printCompactJson.call(void 0, result);
15987
+ const result = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().setPlayPinned(name, pinned);
15988
+ if (jsonOutput) _chunkUJTWIOQKjs.printCompactJson.call(void 0, result);
15989
15989
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15990
15990
  return 0;
15991
15991
  }
@@ -16111,12 +16111,12 @@ async function handlePlayGrep(args) {
16111
16111
  console.error("Usage: deepline plays grep <query> [--json]");
16112
16112
  return 1;
16113
16113
  }
16114
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
16114
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
16115
16115
  const results = (await client.listPlays({ grep: query })).map(
16116
16116
  summarizePlayGrepResult
16117
16117
  );
16118
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
16119
- _chunkN4SYPFH4js.printCompactJson.call(void 0, {
16118
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
16119
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, {
16120
16120
  plays: results,
16121
16121
  count: results.length,
16122
16122
  query,
@@ -16139,7 +16139,7 @@ async function handlePlayGrep(args) {
16139
16139
  return 0;
16140
16140
  }
16141
16141
  async function handlePlayDescribe(args) {
16142
- const selection = _chunkN4SYPFH4js.parseJsonFields.call(void 0, args, "describe");
16142
+ const selection = _chunkUJTWIOQKjs.parseJsonFields.call(void 0, args, "describe");
16143
16143
  args = selection.args;
16144
16144
  const playName = args[0];
16145
16145
  if (!playName) {
@@ -16173,8 +16173,8 @@ async function handlePlayDescribe(args) {
16173
16173
  `deepline plays check ${playName}`,
16174
16174
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
16175
16175
  ];
16176
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
16177
- _chunkN4SYPFH4js.printCompactJson.call(void 0, {
16176
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
16177
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, {
16178
16178
  ok: false,
16179
16179
  error: { message },
16180
16180
  next
@@ -16188,7 +16188,7 @@ async function handlePlayDescribe(args) {
16188
16188
  }
16189
16189
  return 2;
16190
16190
  }
16191
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
16191
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
16192
16192
  await assertCanonicalNamedPlayReference(client, playName, {
16193
16193
  command: "describe"
16194
16194
  });
@@ -16198,9 +16198,9 @@ async function handlePlayDescribe(args) {
16198
16198
  compact: args.includes("--compact")
16199
16199
  }
16200
16200
  );
16201
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
16202
- if (selection.fields) _chunkN4SYPFH4js.printJson.call(void 0, play, selection.fields);
16203
- else _chunkN4SYPFH4js.printCompactJson.call(void 0, play);
16201
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
16202
+ if (selection.fields) _chunkUJTWIOQKjs.printJson.call(void 0, play, selection.fields);
16203
+ else _chunkUJTWIOQKjs.printCompactJson.call(void 0, play);
16204
16204
  return 0;
16205
16205
  }
16206
16206
  printPlayDescription(play);
@@ -16222,7 +16222,7 @@ async function handlePlaySave(args) {
16222
16222
  }
16223
16223
  let graph;
16224
16224
  try {
16225
- graph = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
16225
+ graph = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
16226
16226
  "cli.play_save_bundle_graph",
16227
16227
  { targetKind: "file" },
16228
16228
  () => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
@@ -16244,7 +16244,7 @@ async function handlePlaySave(args) {
16244
16244
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
16245
16245
  };
16246
16246
  if (options.jsonOutput) {
16247
- _chunkN4SYPFH4js.printCompactJson.call(void 0, result);
16247
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, result);
16248
16248
  } else {
16249
16249
  console.error(result.message);
16250
16250
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -16266,7 +16266,7 @@ async function handlePlaySave(args) {
16266
16266
  };
16267
16267
  if (options.dryRun) {
16268
16268
  if (options.jsonOutput) {
16269
- _chunkN4SYPFH4js.printCompactJson.call(void 0, dryRun);
16269
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, dryRun);
16270
16270
  } else {
16271
16271
  console.log(`Dry run: ${playName}`);
16272
16272
  console.log(` source: ${dryRun.sourceHash}`);
@@ -16275,14 +16275,14 @@ async function handlePlaySave(args) {
16275
16275
  }
16276
16276
  return 0;
16277
16277
  }
16278
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
16278
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
16279
16279
  try {
16280
- await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
16280
+ await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
16281
16281
  "cli.play_save_compile_manifests",
16282
16282
  { targetKind: "file", nodeCount: graph.nodes.size },
16283
16283
  () => compileBundledPlayGraphManifests(client, graph)
16284
16284
  );
16285
- const saved = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
16285
+ const saved = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
16286
16286
  "cli.play_save_register_draft",
16287
16287
  { targetKind: "file", playName, artifactHash },
16288
16288
  () => client.registerPlayArtifact({
@@ -16311,7 +16311,7 @@ async function handlePlaySave(args) {
16311
16311
  }
16312
16312
  };
16313
16313
  if (options.jsonOutput) {
16314
- _chunkN4SYPFH4js.printCompactJson.call(void 0, result);
16314
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, result);
16315
16315
  } else {
16316
16316
  console.log(
16317
16317
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -16337,7 +16337,7 @@ async function handlePlayPublish(args) {
16337
16337
  }
16338
16338
  const { target: playName, useLatest } = options;
16339
16339
  let revisionId = options.revisionId;
16340
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
16340
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
16341
16341
  if (isFileTarget2(playName)) {
16342
16342
  if (revisionId || useLatest) {
16343
16343
  console.error(
@@ -16347,7 +16347,7 @@ async function handlePlayPublish(args) {
16347
16347
  }
16348
16348
  let graph;
16349
16349
  try {
16350
- graph = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
16350
+ graph = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
16351
16351
  "cli.play_publish_bundle_graph",
16352
16352
  { targetKind: "file" },
16353
16353
  () => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
@@ -16369,7 +16369,7 @@ async function handlePlayPublish(args) {
16369
16369
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
16370
16370
  };
16371
16371
  if (options.jsonOutput) {
16372
- _chunkN4SYPFH4js.printCompactJson.call(void 0, result3);
16372
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, result3);
16373
16373
  } else {
16374
16374
  console.error(result3.message);
16375
16375
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -16392,7 +16392,7 @@ async function handlePlayPublish(args) {
16392
16392
  };
16393
16393
  if (options.dryRun) {
16394
16394
  if (options.jsonOutput) {
16395
- _chunkN4SYPFH4js.printCompactJson.call(void 0, dryRun);
16395
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, dryRun);
16396
16396
  } else {
16397
16397
  console.log(`Dry run: ${rootPlayName}`);
16398
16398
  console.log(` source: ${dryRun.sourceHash}`);
@@ -16411,12 +16411,12 @@ async function handlePlayPublish(args) {
16411
16411
  }
16412
16412
  }
16413
16413
  try {
16414
- await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
16414
+ await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
16415
16415
  "cli.play_publish_compile_manifests",
16416
16416
  { targetKind: "file", nodeCount: graph.nodes.size },
16417
16417
  () => compileBundledPlayGraphManifests(client, graph)
16418
16418
  );
16419
- await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
16419
+ await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
16420
16420
  "cli.play_publish_imports",
16421
16421
  { targetKind: "file", nodeCount: graph.nodes.size },
16422
16422
  () => publishImportedPlayDependencies(client, graph)
@@ -16425,7 +16425,7 @@ async function handlePlayPublish(args) {
16425
16425
  console.error(error instanceof Error ? error.message : String(error));
16426
16426
  return 1;
16427
16427
  }
16428
- const published = await _chunk5MP7LBHFjs.traceCliSpan.call(void 0,
16428
+ const published = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
16429
16429
  "cli.play_publish_register_root",
16430
16430
  {
16431
16431
  targetKind: "file",
@@ -16460,7 +16460,7 @@ async function handlePlayPublish(args) {
16460
16460
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
16461
16461
  };
16462
16462
  if (options.jsonOutput) {
16463
- _chunkN4SYPFH4js.printCompactJson.call(void 0, result2);
16463
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, result2);
16464
16464
  } else {
16465
16465
  printPublishReceipt({
16466
16466
  name: rootPlayName,
@@ -16491,7 +16491,7 @@ async function handlePlayPublish(args) {
16491
16491
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
16492
16492
  latest: useLatest
16493
16493
  };
16494
- _chunkN4SYPFH4js.printCompactJson.call(void 0, result2);
16494
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, result2);
16495
16495
  return 0;
16496
16496
  }
16497
16497
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -16515,7 +16515,7 @@ async function handlePlayPublish(args) {
16515
16515
  revisionId ? { revisionId } : {}
16516
16516
  );
16517
16517
  if (options.jsonOutput) {
16518
- _chunkN4SYPFH4js.printCompactJson.call(void 0, result);
16518
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, result);
16519
16519
  } else {
16520
16520
  printPublishReceipt({
16521
16521
  name: result.name,
@@ -16555,7 +16555,7 @@ async function handlePlayDelete(args) {
16555
16555
  );
16556
16556
  return 2;
16557
16557
  }
16558
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
16558
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
16559
16559
  let detail;
16560
16560
  try {
16561
16561
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -16579,8 +16579,8 @@ async function handlePlayDelete(args) {
16579
16579
  name: resolvedName,
16580
16580
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
16581
16581
  };
16582
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
16583
- _chunkN4SYPFH4js.printCompactJson.call(void 0, result2);
16582
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
16583
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, result2);
16584
16584
  } else {
16585
16585
  process.stdout.write(
16586
16586
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -16590,8 +16590,8 @@ async function handlePlayDelete(args) {
16590
16590
  return 0;
16591
16591
  }
16592
16592
  const result = await client.deletePlay(resolvedName);
16593
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
16594
- _chunkN4SYPFH4js.printCompactJson.call(void 0, result);
16593
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
16594
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, result);
16595
16595
  return result.archived || result.alreadyArchived ? 0 : 4;
16596
16596
  }
16597
16597
  if (result.alreadyArchived) {
@@ -16630,13 +16630,13 @@ async function handlePlayRestore(args) {
16630
16630
  );
16631
16631
  return 2;
16632
16632
  }
16633
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
16633
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
16634
16634
  try {
16635
16635
  const result = await client.restorePlay(
16636
16636
  parseReferencedPlayTarget2(playName).playName
16637
16637
  );
16638
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
16639
- _chunkN4SYPFH4js.printCompactJson.call(void 0, result);
16638
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
16639
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, result);
16640
16640
  return result.restored || result.alreadyActive ? 0 : 4;
16641
16641
  }
16642
16642
  if (result.alreadyActive) {
@@ -16749,21 +16749,21 @@ Common commands:
16749
16749
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16750
16750
  }
16751
16751
  };
16752
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0, result2, {
16752
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0, result2, {
16753
16753
  json: options.json,
16754
16754
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16755
16755
  `
16756
16756
  });
16757
16757
  return;
16758
16758
  }
16759
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
16759
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
16760
16760
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16761
16761
  throw new Error(
16762
16762
  "The submission belongs to a different API origin. Select its original host before recovery."
16763
16763
  );
16764
16764
  }
16765
16765
  const result = await client.startPlayRun(saved.request);
16766
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
16766
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
16767
16767
  { ...result },
16768
16768
  {
16769
16769
  json: options.json,
@@ -16799,7 +16799,7 @@ Examples:
16799
16799
  ).action(async (target, options) => {
16800
16800
  process.exitCode = await handlePlayCheck([
16801
16801
  target,
16802
- ..._chunkN4SYPFH4js.jsonFieldArgs.call(void 0, options.json),
16802
+ ..._chunkUJTWIOQKjs.jsonFieldArgs.call(void 0, options.json),
16803
16803
  ...options.full ? ["--full"] : []
16804
16804
  ]);
16805
16805
  });
@@ -16990,10 +16990,10 @@ JSON field selection:
16990
16990
  _nullishCoalesce(effectiveTarget, () => ( void 0)),
16991
16991
  options,
16992
16992
  passthroughArgs,
16993
- _chunk5MP7LBHFjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16993
+ _chunk2DRO4YWMjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16994
16994
  )
16995
16995
  );
16996
- _chunk5MP7LBHFjs.recordCliTrace.call(void 0, {
16996
+ _chunk2DRO4YWMjs.recordCliTrace.call(void 0, {
16997
16997
  phase: "cli.play_command_exit",
16998
16998
  exitCode
16999
16999
  });
@@ -17043,9 +17043,9 @@ Examples:
17043
17043
  const limit = Number(options.historyLimit);
17044
17044
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
17045
17045
  throw new Error("--history-limit must be an integer from 1 to 30.");
17046
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
17046
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
17047
17047
  if (options.binding) {
17048
- _chunkN4SYPFH4js.printCompactJson.call(void 0,
17048
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0,
17049
17049
  await client.getPlayTriggerHistory(options.binding, { limit })
17050
17050
  );
17051
17051
  return;
@@ -17053,7 +17053,7 @@ Examples:
17053
17053
  const result = await client.listPlayTriggerInventory({
17054
17054
  cursor: options.cursor
17055
17055
  });
17056
- _chunkN4SYPFH4js.printCompactJson.call(void 0, {
17056
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, {
17057
17057
  ...result,
17058
17058
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
17059
17059
  });
@@ -17100,7 +17100,7 @@ Examples:
17100
17100
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
17101
17101
  throw new Error("--group-by must be kind or trigger_source.");
17102
17102
  }
17103
- const result = await new (0, _chunkWAPSY6F3js.DeeplineClient)().getPlaysActivity({
17103
+ const result = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().getPlaysActivity({
17104
17104
  timeZone: options.timeZone,
17105
17105
  days,
17106
17106
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -17114,7 +17114,7 @@ Examples:
17114
17114
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
17115
17115
  );
17116
17116
  }
17117
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
17117
+ _chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
17118
17118
  { ...result },
17119
17119
  {
17120
17120
  json: Boolean(options.json),
@@ -17143,7 +17143,7 @@ Examples:
17143
17143
  false
17144
17144
  );
17145
17145
  });
17146
- _chunkDI63MOEPjs.registerDeprecatedSearchCommand.call(void 0,
17146
+ _chunkNWPC3FUAjs.registerDeprecatedSearchCommand.call(void 0,
17147
17147
  play,
17148
17148
  (options) => options.all ? ["plays"] : ["prebuilts"]
17149
17149
  );
@@ -17186,7 +17186,7 @@ Examples:
17186
17186
  );
17187
17187
  _chunk27GJKC5Qjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
17188
17188
  async (target, options) => {
17189
- const ownView = () => handlePlayDescribe(_chunkN4SYPFH4js.describeArgs.call(void 0, target, options));
17189
+ const ownView = () => handlePlayDescribe(_chunkUJTWIOQKjs.describeArgs.call(void 0, target, options));
17190
17190
  const [flagText] = [options.json].filter(
17191
17191
  (value) => typeof value === "string"
17192
17192
  );
@@ -17197,7 +17197,7 @@ Examples:
17197
17197
  process.exitCode = await ownView();
17198
17198
  return;
17199
17199
  }
17200
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-QGZ33RCB.js")));
17200
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-H2Z2VKU2.js")));
17201
17201
  process.exitCode = await describeAnything(
17202
17202
  name,
17203
17203
  {
@@ -17315,7 +17315,7 @@ Examples:
17315
17315
  deepline plays deployments <deployment-id>
17316
17316
  `
17317
17317
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
17318
- async (id, options) => id ? _chunkM2I4TC2Cjs.handleDeploymentGet.call(void 0, id, options) : _chunkM2I4TC2Cjs.handleDeploymentsList.call(void 0, options)
17318
+ async (id, options) => id ? _chunkTXLZ6BJCjs.handleDeploymentGet.call(void 0, id, options) : _chunkTXLZ6BJCjs.handleDeploymentsList.call(void 0, options)
17319
17319
  );
17320
17320
  addPublishHelp(
17321
17321
  play.command("publish <target>").description(
@@ -17450,14 +17450,14 @@ Examples:
17450
17450
  const limit = Number(options.limit);
17451
17451
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
17452
17452
  throw new Error("--limit must be an integer from 1 to 1000.");
17453
- const result = await new (0, _chunkWAPSY6F3js.DeeplineClient)().runs.rowHistory({
17453
+ const result = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().runs.rowHistory({
17454
17454
  playName: options.play,
17455
17455
  runId,
17456
17456
  tableNamespace: options.dataset,
17457
17457
  limit,
17458
17458
  cursor: options.cursor
17459
17459
  });
17460
- _chunkN4SYPFH4js.printCompactJson.call(void 0, {
17460
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, {
17461
17461
  ...result,
17462
17462
  ...result.nextCursor ? {
17463
17463
  next: `deepline runs rows-history ${_chunkAID3OYVJjs.shellQuote.call(void 0, runId)} --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, result.nextCursor)} --json`
@@ -17527,7 +17527,7 @@ Examples:
17527
17527
  ).action(async (runId, options) => {
17528
17528
  process.exitCode = await handleRunGet([
17529
17529
  runId,
17530
- ..._chunkN4SYPFH4js.jsonFieldArgs.call(void 0, options.json),
17530
+ ..._chunkUJTWIOQKjs.jsonFieldArgs.call(void 0, options.json),
17531
17531
  ...options.webUrl ? ["--web-url"] : [],
17532
17532
  ...options.full ? ["--full"] : [],
17533
17533
  ...options.input ? ["--input"] : [],
@@ -17813,7 +17813,7 @@ Examples:
17813
17813
  ...options.allowEmpty ? ["--allow-empty"] : [],
17814
17814
  ...options.wait ? ["--wait"] : [],
17815
17815
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17816
- ..._chunkN4SYPFH4js.jsonFieldArgs.call(void 0, options.json)
17816
+ ..._chunkUJTWIOQKjs.jsonFieldArgs.call(void 0, options.json)
17817
17817
  ]);
17818
17818
  });
17819
17819
  const share = play.command("share").description(
@@ -17979,10 +17979,10 @@ async function handlePlayShareStatus(args) {
17979
17979
  return 2;
17980
17980
  }
17981
17981
  const name = parseReferencedPlayTarget2(target).playName;
17982
- const status = await new (0, _chunkWAPSY6F3js.DeeplineClient)().getSharePage(name);
17982
+ const status = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().getSharePage(name);
17983
17983
  const outputStatus = shareStatusForOutput(status);
17984
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
17985
- _chunkN4SYPFH4js.printCompactJson.call(void 0, outputStatus);
17984
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
17985
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, outputStatus);
17986
17986
  return 0;
17987
17987
  }
17988
17988
  if (!outputStatus.share) {
@@ -18021,7 +18021,7 @@ async function handlePlaySharePublish(args) {
18021
18021
  return 2;
18022
18022
  }
18023
18023
  const name = parseReferencedPlayTarget2(target).playName;
18024
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
18024
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
18025
18025
  let revisionId = shareFlagValue(args, "--revision-id");
18026
18026
  let resolvedVersion;
18027
18027
  if (!revisionId) {
@@ -18052,8 +18052,8 @@ async function handlePlaySharePublish(args) {
18052
18052
  );
18053
18053
  if (!hasCompleted) {
18054
18054
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
18055
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
18056
- _chunkN4SYPFH4js.printCompactJson.call(void 0, {
18055
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
18056
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, {
18057
18057
  ok: false,
18058
18058
  code: "NO_SUCCESSFUL_RUN",
18059
18059
  message,
@@ -18077,8 +18077,8 @@ async function handlePlaySharePublish(args) {
18077
18077
  };
18078
18078
  if (args.includes("--dry-run")) {
18079
18079
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
18080
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
18081
- _chunkN4SYPFH4js.printCompactJson.call(void 0, plan);
18080
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
18081
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, plan);
18082
18082
  } else {
18083
18083
  console.log(
18084
18084
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -18088,8 +18088,8 @@ async function handlePlaySharePublish(args) {
18088
18088
  }
18089
18089
  const status = await client.publishSharePage(name, request);
18090
18090
  const outputStatus = shareStatusForOutput(status);
18091
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
18092
- _chunkN4SYPFH4js.printCompactJson.call(void 0, outputStatus);
18091
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
18092
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, outputStatus);
18093
18093
  return 0;
18094
18094
  }
18095
18095
  const urls = shareUrlFields(outputStatus);
@@ -18120,9 +18120,9 @@ async function handlePlayShareUpdate(args) {
18120
18120
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
18121
18121
  ...seoIndexing ? { seoIndexing } : {}
18122
18122
  };
18123
- const status = await new (0, _chunkWAPSY6F3js.DeeplineClient)().updateSharePage(name, request);
18124
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
18125
- _chunkN4SYPFH4js.printCompactJson.call(void 0, status);
18123
+ const status = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().updateSharePage(name, request);
18124
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
18125
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, status);
18126
18126
  return 0;
18127
18127
  }
18128
18128
  console.log(`Updated ${name} share settings.`);
@@ -18137,7 +18137,7 @@ async function handlePlayShareRegenerate(args) {
18137
18137
  return 2;
18138
18138
  }
18139
18139
  const name = parseReferencedPlayTarget2(target).playName;
18140
- const client = new (0, _chunkWAPSY6F3js.DeeplineClient)();
18140
+ const client = new (0, _chunkMRL2OMZYjs.DeeplineClient)();
18141
18141
  let revisionId = shareFlagValue(args, "--revision-id");
18142
18142
  const versionFlag = shareFlagValue(args, "--version");
18143
18143
  if (!revisionId && versionFlag) {
@@ -18154,8 +18154,8 @@ async function handlePlayShareRegenerate(args) {
18154
18154
  revisionId ? { revisionId } : {}
18155
18155
  );
18156
18156
  const outputStatus = shareStatusForOutput(status);
18157
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
18158
- _chunkN4SYPFH4js.printCompactJson.call(void 0, outputStatus);
18157
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
18158
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, outputStatus);
18159
18159
  return 0;
18160
18160
  }
18161
18161
  const urls = shareUrlFields(outputStatus);
@@ -18180,9 +18180,9 @@ async function handlePlayShareUnpublish(args) {
18180
18180
  return 2;
18181
18181
  }
18182
18182
  const name = parseReferencedPlayTarget2(target).playName;
18183
- const status = await new (0, _chunkWAPSY6F3js.DeeplineClient)().unpublishSharePage(name);
18184
- if (_chunkN4SYPFH4js.argsWantJson.call(void 0, args)) {
18185
- _chunkN4SYPFH4js.printCompactJson.call(void 0, status);
18183
+ const status = await new (0, _chunkMRL2OMZYjs.DeeplineClient)().unpublishSharePage(name);
18184
+ if (_chunkUJTWIOQKjs.argsWantJson.call(void 0, args)) {
18185
+ _chunkUJTWIOQKjs.printCompactJson.call(void 0, status);
18186
18186
  return 0;
18187
18187
  }
18188
18188
  console.log(`Unpublished ${name}; the public page has been removed.`);