deepline 0.3.423 → 0.3.424

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 (114) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +13 -6
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +11 -1
  4. package/dist/bundling-sources/shared_libs/monitors/inventory-reconciliation.ts +38 -4
  5. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +12 -0
  6. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-control-plane-capability.ts +25 -0
  7. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +10 -0
  8. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +201 -0
  9. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +42 -5
  10. package/dist/bundling-sources/shared_libs/monitors/provider-webhook-monitor-runtime.ts +5 -0
  11. package/dist/cli/auth-MN7MWTFR.js +40 -0
  12. package/dist/cli/{auth-L7Q53QKK.mjs → auth-QITAQMHF.mjs} +4 -4
  13. package/dist/cli/{billing-QNP6YGI2.js → billing-N5AOFDSU.js} +73 -73
  14. package/dist/cli/{billing-IH7AKDR2.mjs → billing-UX2GH5L2.mjs} +4 -4
  15. package/dist/cli/{chunk-2U3AMRHF.js → chunk-22XGRO2M.js} +8 -8
  16. package/dist/cli/{chunk-ARTGL3FM.mjs → chunk-3FQUUVN2.mjs} +1 -1
  17. package/dist/cli/{chunk-QWJJMQNE.mjs → chunk-3O7KATMQ.mjs} +1 -1
  18. package/dist/cli/{chunk-4WT5RISA.js → chunk-3VB5DQ7Y.js} +20 -20
  19. package/dist/cli/{chunk-JDAXVQV7.mjs → chunk-5MD5I4MM.mjs} +1 -1
  20. package/dist/cli/{chunk-PH4BP6KM.mjs → chunk-5OBCPN2C.mjs} +2 -2
  21. package/dist/cli/{chunk-MMI2DXCW.js → chunk-5YLEB4CL.js} +8 -8
  22. package/dist/cli/{chunk-6FFORGD2.mjs → chunk-7KNBC4RJ.mjs} +1 -1
  23. package/dist/cli/{chunk-FJRFSBWO.mjs → chunk-7VC7STG5.mjs} +4 -4
  24. package/dist/cli/{chunk-YCHR57TD.js → chunk-7W4N6VRE.js} +35 -35
  25. package/dist/cli/{chunk-QN6DG4JO.mjs → chunk-7Y5M5YE3.mjs} +2 -2
  26. package/dist/cli/{chunk-DRK6FYJU.js → chunk-CJD5QKYK.js} +26 -26
  27. package/dist/cli/{chunk-EWWWOKX2.js → chunk-DD6MM6WX.js} +6 -6
  28. package/dist/cli/{chunk-OMWO2JLC.js → chunk-F3MMA7JY.js} +52 -52
  29. package/dist/cli/{chunk-H662SHPT.mjs → chunk-FJ5U2IZY.mjs} +8 -8
  30. package/dist/cli/{chunk-S6KG7JCR.mjs → chunk-HBW6PEVG.mjs} +2 -2
  31. package/dist/cli/{chunk-RAL75ND3.js → chunk-LSZZVHQP.js} +2 -2
  32. package/dist/cli/{chunk-AVOBDFQ5.js → chunk-M2VXDQI2.js} +10 -10
  33. package/dist/cli/{chunk-YNT7PJND.mjs → chunk-M67UCQKW.mjs} +3 -3
  34. package/dist/cli/{chunk-MHG3NND4.mjs → chunk-MFXQVT7P.mjs} +3 -3
  35. package/dist/cli/{chunk-PQ4G6MKI.js → chunk-OSNDC3VF.js} +16 -16
  36. package/dist/cli/{chunk-XSERB7H2.mjs → chunk-OWWFCA7A.mjs} +1 -1
  37. package/dist/cli/{chunk-WJO7KIFT.js → chunk-PNGJIAJ3.js} +50 -50
  38. package/dist/cli/{chunk-W42SSVM7.js → chunk-QP5ATTMC.js} +4 -4
  39. package/dist/cli/{chunk-5DGR3TB6.js → chunk-RISEING7.js} +2 -2
  40. package/dist/cli/{chunk-NFIZ5YED.mjs → chunk-UOZCQPD4.mjs} +2 -2
  41. package/dist/cli/{chunk-OPI7UCQG.mjs → chunk-UPH6UNUI.mjs} +1 -1
  42. package/dist/cli/{chunk-OZLMMMZH.js → chunk-UTF57UBW.js} +6 -6
  43. package/dist/cli/{chunk-IW5QK3K6.mjs → chunk-VC5NKF4B.mjs} +3 -3
  44. package/dist/cli/{chunk-2F5ULM2F.js → chunk-YA3LMTLU.js} +1 -1
  45. package/dist/cli/{chunk-NA6SGG7X.js → chunk-YMASNIC5.js} +79 -79
  46. package/dist/cli/{chunk-44US3EL2.mjs → chunk-ZMU2DDID.mjs} +5 -5
  47. package/dist/cli/{csv-5KW7M6ZS.mjs → csv-NM5IHLVM.mjs} +3 -3
  48. package/dist/cli/{csv-GF7VRES5.js → csv-RL53NPRV.js} +12 -12
  49. package/dist/cli/{db-NN4JQAC4.mjs → db-FZTIS4QG.mjs} +4 -4
  50. package/dist/cli/{db-AEDXKB4F.js → db-RJCFUM2J.js} +25 -25
  51. package/dist/cli/{describe-5RLXW332.js → describe-A2MGAI3Y.js} +16 -16
  52. package/dist/cli/{describe-RX6VROHQ.mjs → describe-T77IEILZ.mjs} +12 -12
  53. package/dist/cli/describe-core.d.mts +1 -1
  54. package/dist/cli/describe-core.d.ts +1 -1
  55. package/dist/cli/{executions-EJZ34VUB.mjs → executions-AMQK53QX.mjs} +4 -4
  56. package/dist/cli/{executions-PGIGFDDS.js → executions-R6UPRZ5N.js} +6 -6
  57. package/dist/cli/{feedback-6MWOKE7H.mjs → feedback-BA5ZHVCZ.mjs} +3 -3
  58. package/dist/cli/{feedback-L2ODMANV.js → feedback-JFT536KI.js} +7 -7
  59. package/dist/cli/{git-456RF3AT.mjs → git-5ONARXFO.mjs} +4 -4
  60. package/dist/cli/git-NHQR3NKF.js +24 -0
  61. package/dist/cli/index.js +131 -131
  62. package/dist/cli/index.mjs +36 -36
  63. package/dist/cli/{legacy-noops-ZPRBXQDE.mjs → legacy-noops-7J4K6QUX.mjs} +4 -4
  64. package/dist/cli/{legacy-noops-MDPB3MIS.js → legacy-noops-WT7M7WYD.js} +7 -7
  65. package/dist/cli/{monitors-ZLP6A7FT.mjs → monitors-N3WDXW7H.mjs} +17 -11
  66. package/dist/cli/{monitors-TXKR5XYW.js → monitors-YH6PKEIW.js} +97 -91
  67. package/dist/cli/{org-YZ62BIGM.mjs → org-2V5ELSYS.mjs} +4 -4
  68. package/dist/cli/{org-73SQ3AT2.js → org-KGYHMT5P.js} +64 -64
  69. package/dist/cli/{play-M75EBXEV.js → play-2JOQQRZI.js} +283 -283
  70. package/dist/cli/{play-VCYQKCKF.mjs → play-CL2LCBAF.mjs} +10 -10
  71. package/dist/cli/{providers-JLA6LST3.mjs → providers-I7EEPWNW.mjs} +4 -4
  72. package/dist/cli/{providers-GIINJPWQ.js → providers-VIP6MCWC.js} +7 -7
  73. package/dist/cli/{quickstart-HHHLYCHT.js → quickstart-33WC2KWE.js} +5 -5
  74. package/dist/cli/{quickstart-AHCU75GG.mjs → quickstart-VRBKQODE.mjs} +3 -3
  75. package/dist/cli/{search-5GACUIAX.mjs → search-7TDSKXOO.mjs} +5 -5
  76. package/dist/cli/search-A6RZZ4LK.js +30 -0
  77. package/dist/cli/{secrets-S2NBKAEN.mjs → secrets-DGLCIN7Y.mjs} +4 -4
  78. package/dist/cli/{secrets-PI7IPCOE.js → secrets-TQH5FXAC.js} +13 -13
  79. package/dist/cli/{sessions-BK4CSRFS.js → sessions-4D4UDPIS.js} +5 -5
  80. package/dist/cli/{sessions-IBKYGTBD.mjs → sessions-D6QGKQ2G.mjs} +4 -4
  81. package/dist/cli/{settings-JY6UN4KO.mjs → settings-6HVXBCVR.mjs} +8 -8
  82. package/dist/cli/{settings-2G7TUDM7.js → settings-V3QRG4AO.js} +75 -75
  83. package/dist/cli/{setup-R424FIBF.js → setup-6WP7D5I3.js} +42 -42
  84. package/dist/cli/{setup-HS5X3OSN.mjs → setup-CSJ3HSL7.mjs} +7 -7
  85. package/dist/cli/{skills-UIBUDTGN.mjs → skills-2MTWP4PS.mjs} +5 -5
  86. package/dist/cli/skills-QOYOARZT.js +29 -0
  87. package/dist/cli/{tools-SB4FREB6.mjs → tools-GAR3BWB6.mjs} +12 -12
  88. package/dist/cli/tools-MGEKAIOU.js +44 -0
  89. package/dist/cli/update-HMZCLFLZ.js +31 -0
  90. package/dist/cli/{update-NJSUE2YU.mjs → update-XV3WV3MU.mjs} +7 -7
  91. package/dist/cli/{workflow-HBG76XYX.mjs → workflow-DTZAWSB2.mjs} +5 -5
  92. package/dist/cli/{workflow-3AZWZ4J3.js → workflow-WNE7ORMT.js} +15 -15
  93. package/dist/{client-BTUOYGID.d.mts → client-BcfFWD4Z.d.mts} +9 -6
  94. package/dist/{client-C668iUhZ.d.ts → client-DH-fmT69.d.ts} +9 -6
  95. package/dist/index.d.mts +2 -2
  96. package/dist/index.d.ts +2 -2
  97. package/dist/index.js +6 -6
  98. package/dist/index.mjs +3 -3
  99. package/dist/install-integrity.json +80 -80
  100. package/dist/plays/play-description.d.mts +1 -1
  101. package/dist/plays/play-description.d.ts +1 -1
  102. package/dist/plays/run-request.d.mts +1 -1
  103. package/dist/plays/run-request.d.ts +1 -1
  104. package/dist/release.d.mts +1 -1
  105. package/dist/release.d.ts +1 -1
  106. package/dist/release.js +2 -2
  107. package/dist/release.mjs +1 -1
  108. package/package.json +1 -1
  109. package/dist/cli/auth-SUNY477Y.js +0 -40
  110. package/dist/cli/git-2ZDCRTBD.js +0 -24
  111. package/dist/cli/search-W2PGBXQO.js +0 -30
  112. package/dist/cli/skills-M3RZAN4A.js +0 -29
  113. package/dist/cli/tools-K2GII2PA.js +0 -44
  114. package/dist/cli/update-C2ORJRXN.js +0 -31
@@ -4,11 +4,11 @@
4
4
  var _chunkGXOQRZXGjs = require('./chunk-GXOQRZXG.js');
5
5
 
6
6
 
7
- var _chunk2U3AMRHFjs = require('./chunk-2U3AMRHF.js');
7
+ var _chunk22XGRO2Mjs = require('./chunk-22XGRO2M.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkDRK6FYJUjs = require('./chunk-DRK6FYJU.js');
11
+ var _chunkCJD5QKYKjs = require('./chunk-CJD5QKYK.js');
12
12
 
13
13
 
14
14
  var _chunkVUYUI35Qjs = require('./chunk-VUYUI35Q.js');
@@ -49,7 +49,7 @@ require('./chunk-VKKVSFRD.js');
49
49
 
50
50
 
51
51
 
52
- var _chunkAVOBDFQ5js = require('./chunk-AVOBDFQ5.js');
52
+ var _chunkM2VXDQI2js = require('./chunk-M2VXDQI2.js');
53
53
  require('./chunk-E4CABWXL.js');
54
54
 
55
55
 
@@ -70,17 +70,17 @@ require('./chunk-XDVT3GOM.js');
70
70
 
71
71
 
72
72
 
73
- var _chunkOZLMMMZHjs = require('./chunk-OZLMMMZH.js');
73
+ var _chunkUTF57UBWjs = require('./chunk-UTF57UBW.js');
74
74
 
75
75
 
76
76
 
77
77
 
78
78
 
79
- var _chunkRAL75ND3js = require('./chunk-RAL75ND3.js');
79
+ var _chunkLSZZVHQPjs = require('./chunk-LSZZVHQP.js');
80
80
 
81
81
 
82
82
 
83
- var _chunkOMWO2JLCjs = require('./chunk-OMWO2JLC.js');
83
+ var _chunkF3MMA7JYjs = require('./chunk-F3MMA7JY.js');
84
84
 
85
85
 
86
86
 
@@ -95,16 +95,16 @@ var _chunkOMWO2JLCjs = require('./chunk-OMWO2JLC.js');
95
95
 
96
96
 
97
97
 
98
- var _chunkEWWWOKX2js = require('./chunk-EWWWOKX2.js');
98
+ var _chunkDD6MM6WXjs = require('./chunk-DD6MM6WX.js');
99
99
 
100
100
 
101
- var _chunkW42SSVM7js = require('./chunk-W42SSVM7.js');
101
+ var _chunkQP5ATTMCjs = require('./chunk-QP5ATTMC.js');
102
102
  require('./chunk-NPBJI7RE.js');
103
103
  require('./chunk-XNYIZMNQ.js');
104
104
 
105
105
 
106
106
  var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
107
- require('./chunk-2F5ULM2F.js');
107
+ require('./chunk-YA3LMTLU.js');
108
108
  require('./chunk-OG64RBAC.js');
109
109
 
110
110
 
@@ -2086,7 +2086,7 @@ function resolveField(key, command) {
2086
2086
  function printSettings(result, json, name) {
2087
2087
  result = { ...result, settings: parsePlaySettings(result.settings) };
2088
2088
  const selected = fields.filter(([key]) => !name || key === name);
2089
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
2089
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
2090
2090
  {
2091
2091
  ...result,
2092
2092
  settings: Object.fromEntries(
@@ -2130,7 +2130,7 @@ function registerPlaySettingsCommands(plays) {
2130
2130
  valueSyntax: field.cli.valueSyntax,
2131
2131
  examples: field.cli.examples
2132
2132
  }));
2133
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
2133
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
2134
2134
  {
2135
2135
  fields: descriptions,
2136
2136
  render: {
@@ -2155,7 +2155,7 @@ function registerPlaySettingsCommands(plays) {
2155
2155
  async (options, command) => {
2156
2156
  if (options.name !== void 0) resolveField(options.name, command);
2157
2157
  printSettings(
2158
- await new (0, _chunkAVOBDFQ5js.DeeplineClient)().getPlaySettings(options.play),
2158
+ await new (0, _chunkM2VXDQI2js.DeeplineClient)().getPlaySettings(options.play),
2159
2159
  options.json,
2160
2160
  options.name
2161
2161
  );
@@ -2186,7 +2186,7 @@ function registerPlaySettingsCommands(plays) {
2186
2186
  );
2187
2187
  }
2188
2188
  if (options.dryRun) {
2189
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
2189
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
2190
2190
  {
2191
2191
  dryRun: true,
2192
2192
  play,
@@ -2207,7 +2207,7 @@ function registerPlaySettingsCommands(plays) {
2207
2207
  return;
2208
2208
  }
2209
2209
  printSettings(
2210
- await new (0, _chunkAVOBDFQ5js.DeeplineClient)().updatePlaySettings(play, patch),
2210
+ await new (0, _chunkM2VXDQI2js.DeeplineClient)().updatePlaySettings(play, patch),
2211
2211
  options.json
2212
2212
  );
2213
2213
  };
@@ -2233,13 +2233,13 @@ function registerPlaySettingsCommands(plays) {
2233
2233
  "--root must be person or team; --limit must be 1\u2013100.",
2234
2234
  { exitCode: 2 }
2235
2235
  );
2236
- const page = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().listPlaySettingsPaths({
2236
+ const page = await new (0, _chunkM2VXDQI2js.DeeplineClient)().listPlaySettingsPaths({
2237
2237
  root: options.root,
2238
2238
  limit,
2239
2239
  cursor: options.cursor
2240
2240
  });
2241
2241
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2242
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
2242
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
2243
2243
  {
2244
2244
  ...page,
2245
2245
  nextCommand,
@@ -2290,7 +2290,7 @@ function registerPlaySettingsCommands(plays) {
2290
2290
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2291
2291
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2292
2292
  };
2293
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
2293
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
2294
2294
  const paths = [];
2295
2295
  let cursor;
2296
2296
  do {
@@ -2352,7 +2352,7 @@ function registerPlaySettingsCommands(plays) {
2352
2352
  moved.push(move.playName);
2353
2353
  }
2354
2354
  }
2355
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
2355
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
2356
2356
  {
2357
2357
  dryRun: Boolean(options.dryRun),
2358
2358
  from: options.from,
@@ -2480,7 +2480,7 @@ function triggerLines(view) {
2480
2480
  return lines;
2481
2481
  }
2482
2482
  function printView(view, json) {
2483
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
2483
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
2484
2484
  {
2485
2485
  ...view,
2486
2486
  render: {
@@ -2493,7 +2493,7 @@ function printView(view, json) {
2493
2493
  );
2494
2494
  }
2495
2495
  function printResult(result, json) {
2496
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
2496
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
2497
2497
  {
2498
2498
  ...result,
2499
2499
  render: {
@@ -2523,7 +2523,7 @@ async function mutate(command, options, build) {
2523
2523
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2524
2524
  }
2525
2525
  if (options.dryRun) {
2526
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
2526
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
2527
2527
  {
2528
2528
  dryRun: true,
2529
2529
  play: options.play,
@@ -2542,7 +2542,7 @@ async function mutate(command, options, build) {
2542
2542
  return;
2543
2543
  }
2544
2544
  printResult(
2545
- await new (0, _chunkAVOBDFQ5js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2545
+ await new (0, _chunkM2VXDQI2js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2546
2546
  options.json
2547
2547
  );
2548
2548
  }
@@ -2575,7 +2575,7 @@ function registerPlayTriggerConfigCommands(plays) {
2575
2575
  }).addHelpText("after", help2);
2576
2576
  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) => {
2577
2577
  printView(
2578
- await new (0, _chunkAVOBDFQ5js.DeeplineClient)().getPlayTriggerConfig(options.play),
2578
+ await new (0, _chunkM2VXDQI2js.DeeplineClient)().getPlayTriggerConfig(options.play),
2579
2579
  options.json
2580
2580
  );
2581
2581
  });
@@ -2619,7 +2619,7 @@ function registerPlayTriggerConfigCommands(plays) {
2619
2619
  if (options.auth === void 0) {
2620
2620
  if (secrets.length || options.header || options.signaturePrefix)
2621
2621
  usage(setWebhook, "--secret/--header need --auth.");
2622
- const current = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().getPlayTriggerConfig(
2622
+ const current = await new (0, _chunkM2VXDQI2js.DeeplineClient)().getPlayTriggerConfig(
2623
2623
  options.play
2624
2624
  );
2625
2625
  return {
@@ -2696,7 +2696,7 @@ var KIND_DESCRIPTIONS = {
2696
2696
  "receipt.skipped": "Saved work result: skipped.",
2697
2697
  "runtime.event": "Other event."
2698
2698
  };
2699
- var RUN_LOGS_KIND_HELP = _chunkAVOBDFQ5js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2699
+ var RUN_LOGS_KIND_HELP = _chunkM2VXDQI2js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2700
2700
  kind,
2701
2701
  description: KIND_DESCRIPTIONS[kind]
2702
2702
  }));
@@ -2833,9 +2833,9 @@ function configureRunQueryCommandErrors(command, resource) {
2833
2833
  const args = program.args;
2834
2834
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2835
2835
  error.exitCode = 2;
2836
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2837
- _chunkEWWWOKX2js.printJsonError.call(void 0,
2838
- Object.assign(new (0, _chunkAVOBDFQ5js.RunEventQueryInputError)(error.message), {
2836
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2837
+ _chunkDD6MM6WXjs.printJsonError.call(void 0,
2838
+ Object.assign(new (0, _chunkM2VXDQI2js.RunEventQueryInputError)(error.message), {
2839
2839
  exitCode: 2,
2840
2840
  retryable: false
2841
2841
  })
@@ -2879,14 +2879,14 @@ function parseQuery(args, resource) {
2879
2879
  if (VALUE_FLAGS.has(flag)) {
2880
2880
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2881
2881
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2882
- throw new (0, _chunkAVOBDFQ5js.RunEventQueryInputError)(
2882
+ throw new (0, _chunkM2VXDQI2js.RunEventQueryInputError)(
2883
2883
  `${flag} requires a value. Use ${flag} <value>.`
2884
2884
  );
2885
2885
  }
2886
2886
  if (flag === "--sum") sums.push(value);
2887
2887
  else {
2888
2888
  if (values[flag] !== void 0) {
2889
- throw new (0, _chunkAVOBDFQ5js.RunEventQueryInputError)(
2889
+ throw new (0, _chunkM2VXDQI2js.RunEventQueryInputError)(
2890
2890
  `${flag} may only be supplied once.`
2891
2891
  );
2892
2892
  }
@@ -2900,12 +2900,12 @@ function parseQuery(args, resource) {
2900
2900
  }
2901
2901
  if (arg.startsWith("-")) {
2902
2902
  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.";
2903
- throw new (0, _chunkAVOBDFQ5js.RunEventQueryInputError)(
2903
+ throw new (0, _chunkM2VXDQI2js.RunEventQueryInputError)(
2904
2904
  `Unsupported query flag ${flag}. ${correction}`
2905
2905
  );
2906
2906
  }
2907
2907
  if (runId !== void 0) {
2908
- throw new (0, _chunkAVOBDFQ5js.RunEventQueryInputError)(
2908
+ throw new (0, _chunkM2VXDQI2js.RunEventQueryInputError)(
2909
2909
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2910
2910
  );
2911
2911
  }
@@ -2913,7 +2913,7 @@ function parseQuery(args, resource) {
2913
2913
  }
2914
2914
  if (switches.has("--fields")) {
2915
2915
  if (runId !== void 0) {
2916
- throw new (0, _chunkAVOBDFQ5js.RunEventQueryInputError)(
2916
+ throw new (0, _chunkM2VXDQI2js.RunEventQueryInputError)(
2917
2917
  "--fields does not use a run ID. Omit the positional run ID."
2918
2918
  );
2919
2919
  }
@@ -2926,18 +2926,18 @@ function parseQuery(args, resource) {
2926
2926
  )
2927
2927
  ];
2928
2928
  if (incompatible.length) {
2929
- throw new (0, _chunkAVOBDFQ5js.RunEventQueryInputError)(
2929
+ throw new (0, _chunkM2VXDQI2js.RunEventQueryInputError)(
2930
2930
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2931
2931
  );
2932
2932
  }
2933
2933
  }
2934
2934
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2935
- throw new (0, _chunkAVOBDFQ5js.RunEventQueryInputError)(
2935
+ throw new (0, _chunkM2VXDQI2js.RunEventQueryInputError)(
2936
2936
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2937
2937
  );
2938
2938
  }
2939
2939
  if (sums.length && switches.has("--count")) {
2940
- throw new (0, _chunkAVOBDFQ5js.RunEventQueryInputError)(
2940
+ throw new (0, _chunkM2VXDQI2js.RunEventQueryInputError)(
2941
2941
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2942
2942
  );
2943
2943
  }
@@ -2945,7 +2945,7 @@ function parseQuery(args, resource) {
2945
2945
  if (operation === "count") {
2946
2946
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2947
2947
  if (values[flag] !== void 0 || switches.has(flag)) {
2948
- throw new (0, _chunkAVOBDFQ5js.RunEventQueryInputError)(
2948
+ throw new (0, _chunkM2VXDQI2js.RunEventQueryInputError)(
2949
2949
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2950
2950
  );
2951
2951
  }
@@ -2980,16 +2980,16 @@ function parseQuery(args, resource) {
2980
2980
  ];
2981
2981
  }
2982
2982
  }
2983
- const request = _chunkAVOBDFQ5js.normalizeRunEventOperationRequest.call(void 0, body);
2983
+ const request = _chunkM2VXDQI2js.normalizeRunEventOperationRequest.call(void 0, body);
2984
2984
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2985
2985
  const backend = values["--runtime-backend"];
2986
2986
  if (backend && backend !== "daytona" && backend !== "modal") {
2987
- throw new (0, _chunkAVOBDFQ5js.RunEventQueryInputError)(
2987
+ throw new (0, _chunkM2VXDQI2js.RunEventQueryInputError)(
2988
2988
  "--runtime-backend must be daytona or modal."
2989
2989
  );
2990
2990
  }
2991
2991
  if (backend && !namespace) {
2992
- throw new (0, _chunkAVOBDFQ5js.RunEventQueryInputError)(
2992
+ throw new (0, _chunkM2VXDQI2js.RunEventQueryInputError)(
2993
2993
  "--runtime-backend requires --runtime-namespace."
2994
2994
  );
2995
2995
  }
@@ -3036,12 +3036,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3036
3036
  const failure = error instanceof Error ? error : new Error(String(error));
3037
3037
  const record3 = failure;
3038
3038
  const status = record3.statusCode;
3039
- const exitCode = error instanceof _chunkAVOBDFQ5js.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;
3039
+ const exitCode = error instanceof _chunkM2VXDQI2js.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;
3040
3040
  const diagnostic = Object.assign(failure, {
3041
3041
  exitCode,
3042
3042
  retryable: exitCode === 5
3043
3043
  });
3044
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) _chunkEWWWOKX2js.printJsonError.call(void 0, diagnostic);
3044
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) _chunkDD6MM6WXjs.printJsonError.call(void 0, diagnostic);
3045
3045
  else console.error(`Error: ${diagnostic.message}`);
3046
3046
  return exitCode;
3047
3047
  }
@@ -3056,7 +3056,7 @@ async function executeRunEventQuery(args, resource) {
3056
3056
  ...criteria
3057
3057
  } = request;
3058
3058
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3059
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
3059
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
3060
3060
  let result;
3061
3061
  if (request.operation === "fields") {
3062
3062
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3122,13 +3122,13 @@ async function executeRunEventQuery(args, resource) {
3122
3122
  lines.push(`Next page: ${nextPage}`);
3123
3123
  }
3124
3124
  }
3125
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
3125
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
3126
3126
  {
3127
3127
  ...result,
3128
3128
  ...nextPage ? { next: { page: nextPage } } : {},
3129
3129
  render: { sections: [{ title: `run ${resource}`, lines }] }
3130
3130
  },
3131
- { json: _chunkEWWWOKX2js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3131
+ { json: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3132
3132
  ` }
3133
3133
  );
3134
3134
  return 0;
@@ -4047,7 +4047,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4047
4047
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4048
4048
  );
4049
4049
  }
4050
- const response = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().runs.getReceipts(runId, {
4050
+ const response = await new (0, _chunkM2VXDQI2js.DeeplineClient)().runs.getReceipts(runId, {
4051
4051
  keys
4052
4052
  });
4053
4053
  const failed = response.receipts.filter(
@@ -4059,7 +4059,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4059
4059
  JSON.stringify(response, null, 2) + "\n",
4060
4060
  { flag: "wx", mode: 384 }
4061
4061
  );
4062
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
4062
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
4063
4063
  {
4064
4064
  runId,
4065
4065
  out: options.out,
@@ -4069,7 +4069,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4069
4069
  { json: true }
4070
4070
  );
4071
4071
  } else {
4072
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4072
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4073
4073
  }
4074
4074
  if (failed)
4075
4075
  process.exitCode = response.receipts.some(
@@ -4108,7 +4108,7 @@ includes nextCommand when another page is available.
4108
4108
  { exitCode: 2 }
4109
4109
  );
4110
4110
  }
4111
- const page = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().runs.children(parentRunId, {
4111
+ const page = await new (0, _chunkM2VXDQI2js.DeeplineClient)().runs.children(parentRunId, {
4112
4112
  launchKey: options.launchKey,
4113
4113
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4114
4114
  limit
@@ -4123,7 +4123,7 @@ includes nextCommand when another page is available.
4123
4123
  "--limit",
4124
4124
  String(limit)
4125
4125
  ].join(" ") : null;
4126
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
4126
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
4127
4127
  {
4128
4128
  parentRunId,
4129
4129
  launchKey: options.launchKey,
@@ -4159,7 +4159,7 @@ async function handleRunsHistory(options) {
4159
4159
  throw new Error("--limit must be a positive integer.");
4160
4160
  }
4161
4161
  }
4162
- const page = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().runs.history({
4162
+ const page = await new (0, _chunkM2VXDQI2js.DeeplineClient)().runs.history({
4163
4163
  cursor: options.cursor,
4164
4164
  orgId: options.org,
4165
4165
  search: options.search,
@@ -4175,7 +4175,7 @@ async function handleRunsHistory(options) {
4175
4175
  );
4176
4176
  }
4177
4177
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4178
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
4178
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
4179
4179
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4180
4180
  options.json ? { json: true } : {}
4181
4181
  );
@@ -4227,12 +4227,12 @@ async function runRunsRerunCommand(runId, options) {
4227
4227
  return 1;
4228
4228
  }
4229
4229
  }
4230
- const result = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().runs.rerun(runId, {
4230
+ const result = await new (0, _chunkM2VXDQI2js.DeeplineClient)().runs.rerun(runId, {
4231
4231
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4232
4232
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4233
4233
  });
4234
- if (_chunkEWWWOKX2js.shouldEmitJson.call(void 0, options.json)) {
4235
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, result, { json: true });
4234
+ if (_chunkDD6MM6WXjs.shouldEmitJson.call(void 0, options.json)) {
4235
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0, result, { json: true });
4236
4236
  } else {
4237
4237
  console.log(
4238
4238
  result.deduplicated === true ? `
@@ -4500,7 +4500,7 @@ function projectRunDatasetCell(value) {
4500
4500
  const logicalValue = parseSerializedDatasetValue(value);
4501
4501
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
4502
4502
  if (typeof logicalValue === "object") {
4503
- return _chunkEWWWOKX2js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4503
+ return _chunkDD6MM6WXjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4504
4504
  }
4505
4505
  return logicalValue;
4506
4506
  }
@@ -6971,7 +6971,7 @@ function renderOutcome(outcome) {
6971
6971
  function printResult2(input) {
6972
6972
  const failed = input.status === "failed" || input.status === "cancelled";
6973
6973
  if (failed) process.exitCode = 1;
6974
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
6974
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
6975
6975
  {
6976
6976
  deployment: { ...input.deployment, status: input.status },
6977
6977
  plays: input.outcomes,
@@ -6996,7 +6996,7 @@ async function handlePlaysDeploy(directory, options) {
6996
6996
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6997
6997
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6998
6998
  });
6999
- const { http, config } = _chunkEWWWOKX2js.getAuthedHttpClient.call(void 0, );
6999
+ const { http, config } = _chunkDD6MM6WXjs.getAuthedHttpClient.call(void 0, );
7000
7000
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
7001
7001
  const startDeployment = () => http.post("/api/v2/deployments", {
7002
7002
  deliveryId,
@@ -7023,7 +7023,7 @@ async function handlePlaysDeploy(directory, options) {
7023
7023
  },
7024
7024
  {
7025
7025
  bundle: bundleDeployPlayFile,
7026
- fetchImpl: _chunkW42SSVM7js.fetchWithDeploymentProtection,
7026
+ fetchImpl: _chunkQP5ATTMCjs.fetchWithDeploymentProtection,
7027
7027
  // The plays are already here: "opening" the source is naming it.
7028
7028
  openSource: async () => ({
7029
7029
  open: async () => ({ repoRoot: root })
@@ -7591,7 +7591,7 @@ function parseInputFlagValue(raw) {
7591
7591
  return raw;
7592
7592
  }
7593
7593
  function parsePlayRunOptions(args, initialInput = null) {
7594
- const selection = _chunkEWWWOKX2js.parseJsonFields.call(void 0, args, "run");
7594
+ const selection = _chunkDD6MM6WXjs.parseJsonFields.call(void 0, args, "run");
7595
7595
  args = selection.args;
7596
7596
  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 deepline.dataset guidance.";
7597
7597
  let filePath = null;
@@ -7603,7 +7603,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7603
7603
  let revisionSelector = null;
7604
7604
  const watch = !args.includes("--no-wait");
7605
7605
  const dryRun = args.includes("--dry-run");
7606
- let jsonOutput = dryRun ? _chunkEWWWOKX2js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkEWWWOKX2js.argsWantJson.call(void 0, args);
7606
+ let jsonOutput = dryRun ? _chunkDD6MM6WXjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkDD6MM6WXjs.argsWantJson.call(void 0, args);
7607
7607
  const fullJson = args.includes("--full");
7608
7608
  const force = args.includes("--force");
7609
7609
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -7666,7 +7666,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7666
7666
  "--log-level requires one of: debug, info, warn, error."
7667
7667
  );
7668
7668
  }
7669
- const parsed = _chunkAVOBDFQ5js.parseLogLevel.call(void 0, value);
7669
+ const parsed = _chunkM2VXDQI2js.parseLogLevel.call(void 0, value);
7670
7670
  if (!parsed) {
7671
7671
  throw new Error(
7672
7672
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -7984,7 +7984,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
7984
7984
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
7985
7985
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
7986
7986
  );
7987
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkAVOBDFQ5js.parseLogLevel.call(void 0, options.logLevel);
7987
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkM2VXDQI2js.parseLogLevel.call(void 0, options.logLevel);
7988
7988
  if (!logLevel)
7989
7989
  throw new Error("--log-level requires one of: debug, info, warn, error.");
7990
7990
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -7998,13 +7998,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
7998
7998
  if (debugAlias || debugMapLatency && logLevel === "info")
7999
7999
  logLevel = "debug";
8000
8000
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
8001
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkEWWWOKX2js.parseJsonFields.call(void 0,
8002
- [...fullJson ? ["--full"] : [], ..._chunkEWWWOKX2js.jsonFieldArgs.call(void 0, options.json)],
8001
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkDD6MM6WXjs.parseJsonFields.call(void 0,
8002
+ [...fullJson ? ["--full"] : [], ..._chunkDD6MM6WXjs.jsonFieldArgs.call(void 0, options.json)],
8003
8003
  "run"
8004
8004
  ).fields;
8005
8005
  const watch = options.wait === false ? false : base.watch;
8006
8006
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
8007
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkEWWWOKX2js.argsWantJson.call(void 0, []) : explicitJson;
8007
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkDD6MM6WXjs.argsWantJson.call(void 0, []) : explicitJson;
8008
8008
  const verboseLogs = Boolean(
8009
8009
  debugAlias || logLevel === "debug" || debugMapLatency
8010
8010
  );
@@ -8125,7 +8125,7 @@ async function checkLocalPlayGraph(input) {
8125
8125
  // src/cli/renderers/local-play-execution.ts
8126
8126
  function renderLocalPlayExecutionPlan(plan, options = {}) {
8127
8127
  if (options.dryRun) {
8128
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
8128
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
8129
8129
  return;
8130
8130
  }
8131
8131
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -8297,7 +8297,7 @@ function traceCliSync(phase, fields2, run) {
8297
8297
  const startedAt = Date.now();
8298
8298
  try {
8299
8299
  const result = run();
8300
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
8300
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
8301
8301
  phase,
8302
8302
  ms: Date.now() - startedAt,
8303
8303
  ok: true,
@@ -8305,7 +8305,7 @@ function traceCliSync(phase, fields2, run) {
8305
8305
  });
8306
8306
  return result;
8307
8307
  } catch (error) {
8308
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
8308
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
8309
8309
  phase,
8310
8310
  ms: Date.now() - startedAt,
8311
8311
  ok: false,
@@ -9094,7 +9094,7 @@ function playStatusErrorText(status) {
9094
9094
  function isRetryablePendingStartFailure(status) {
9095
9095
  if (status.status !== "failed") return false;
9096
9096
  if (status.runId && status.runId !== "pending") return false;
9097
- return _chunkAVOBDFQ5js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
9097
+ return _chunkM2VXDQI2js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
9098
9098
  }
9099
9099
  function isAmbiguousPlayStartOutcomeError(error) {
9100
9100
  if (error instanceof _chunkPPDBRJRWjs.DeeplineError && typeof error.statusCode === "number") {
@@ -9143,13 +9143,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkPPDBRJRWjs.Deep
9143
9143
  }, _class);
9144
9144
  function watchSurfaceReaches(state, provenance, level) {
9145
9145
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
9146
- if (!_chunkAVOBDFQ5js.logLevelReaches.call(void 0, level, minimumLevel)) {
9146
+ if (!_chunkM2VXDQI2js.logLevelReaches.call(void 0, level, minimumLevel)) {
9147
9147
  return false;
9148
9148
  }
9149
- if (_chunkAVOBDFQ5js.logProvenanceReaches.call(void 0, provenance, "watch")) {
9149
+ if (_chunkM2VXDQI2js.logProvenanceReaches.call(void 0, provenance, "watch")) {
9150
9150
  return true;
9151
9151
  }
9152
- return state.verbose === true && _chunkAVOBDFQ5js.logProvenanceReaches.call(void 0, provenance, "debug");
9152
+ return state.verbose === true && _chunkM2VXDQI2js.logProvenanceReaches.call(void 0, provenance, "debug");
9153
9153
  }
9154
9154
  function getEventPayload(event) {
9155
9155
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -9651,7 +9651,7 @@ function resolveRunPlayName(status, runId) {
9651
9651
  }
9652
9652
  function openPlayDashboard(dashboardUrl, open2) {
9653
9653
  if (open2 && dashboardUrl) {
9654
- _chunkEWWWOKX2js.openInBrowser.call(void 0, dashboardUrl);
9654
+ _chunkDD6MM6WXjs.openInBrowser.call(void 0, dashboardUrl);
9655
9655
  }
9656
9656
  }
9657
9657
  function printPlayLogLines(input) {
@@ -9728,7 +9728,7 @@ async function waitForPlayCompletionByWatch(input) {
9728
9728
  ...input.fullJson === void 0 ? {} : { full: input.fullJson }
9729
9729
  });
9730
9730
  } catch (error) {
9731
- if (_chunkAVOBDFQ5js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9731
+ if (_chunkM2VXDQI2js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9732
9732
  return null;
9733
9733
  }
9734
9734
  throw error;
@@ -9808,9 +9808,9 @@ async function waitForPlayCompletionByWatch(input) {
9808
9808
  signal: controller.signal,
9809
9809
  deferLogs: !input.emitLogs,
9810
9810
  omitTerminalLogs: !input.emitLogs,
9811
- ..._chunkRAL75ND3js.isCliTraceEnabled.call(void 0, ) ? {
9811
+ ..._chunkLSZZVHQPjs.isCliTraceEnabled.call(void 0, ) ? {
9812
9812
  onPoll: (observation) => {
9813
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
9813
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
9814
9814
  phase: "play_watch_poll",
9815
9815
  workflowId: input.workflowId,
9816
9816
  ms: observation.durationMs,
@@ -9824,7 +9824,7 @@ async function waitForPlayCompletionByWatch(input) {
9824
9824
  full: input.fullJson,
9825
9825
  billing: false,
9826
9826
  onStatus: async (status) => {
9827
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
9827
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
9828
9828
  phase: "play_watch_terminal_status",
9829
9829
  workflowId: input.workflowId,
9830
9830
  full: input.fullJson === true
@@ -9894,7 +9894,7 @@ async function startAndWaitForPlayCompletion(input) {
9894
9894
  });
9895
9895
  } catch (error) {
9896
9896
  if (!(error instanceof _chunk2H4EY7KHjs.CliPlayAdmissionUnsupportedError)) throw error;
9897
- await _chunkOZLMMMZHjs.checkPlayRunCompatibility.call(void 0,
9897
+ await _chunkUTF57UBWjs.checkPlayRunCompatibility.call(void 0,
9898
9898
  input.client.baseUrl,
9899
9899
  input.maintenancePolicy
9900
9900
  );
@@ -9940,7 +9940,7 @@ async function startAndWaitForPlayCompletion(input) {
9940
9940
  }
9941
9941
  openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
9942
9942
  input.progress.phase("running");
9943
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
9943
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
9944
9944
  phase: "cli.play_start_admitted",
9945
9945
  ms: Date.now() - startedAt,
9946
9946
  ok: true,
@@ -9957,7 +9957,7 @@ async function startAndWaitForPlayCompletion(input) {
9957
9957
  startedAt,
9958
9958
  waitTimeoutMs: input.waitTimeoutMs
9959
9959
  });
9960
- const initialStatus = _chunkAVOBDFQ5js.normalizePlayStatus.call(void 0, initialTerminal);
9960
+ const initialStatus = _chunkM2VXDQI2js.normalizePlayStatus.call(void 0, initialTerminal);
9961
9961
  const status2 = await resolvePlayRunOutputStatus({
9962
9962
  client: input.client,
9963
9963
  status: initialStatus,
@@ -9965,7 +9965,7 @@ async function startAndWaitForPlayCompletion(input) {
9965
9965
  jsonOutput: input.jsonOutput,
9966
9966
  fromDurableStatus: true
9967
9967
  });
9968
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
9968
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
9969
9969
  phase: "play_watch_terminal_status",
9970
9970
  workflowId,
9971
9971
  full: true,
@@ -10009,7 +10009,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
10009
10009
  status = await startAndWaitForPlayCompletionByStreamOnce(pinnedInput);
10010
10010
  } catch (error) {
10011
10011
  if (error instanceof _chunk2H4EY7KHjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
10012
- await _chunkOZLMMMZHjs.checkPlayRunCompatibility.call(void 0,
10012
+ await _chunkUTF57UBWjs.checkPlayRunCompatibility.call(void 0,
10013
10013
  input.client.baseUrl,
10014
10014
  input.maintenancePolicy
10015
10015
  );
@@ -10036,7 +10036,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
10036
10036
  `[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
10037
10037
  );
10038
10038
  }
10039
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
10039
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
10040
10040
  phase: "cli.play_start_stream_retry",
10041
10041
  ms: 0,
10042
10042
  ok: true,
@@ -10057,7 +10057,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
10057
10057
  `[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
10058
10058
  );
10059
10059
  }
10060
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
10060
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
10061
10061
  phase: "cli.play_start_stream_retry",
10062
10062
  ms: 0,
10063
10063
  ok: true,
@@ -10101,7 +10101,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10101
10101
  if (launchConfirmed || !runId || runId === "pending") return;
10102
10102
  launchConfirmed = true;
10103
10103
  await _optionalChain([input, 'access', _319 => _319.onRunAdmitted, 'optionalCall', _320 => _320(runId)]);
10104
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
10104
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
10105
10105
  phase: "cli.play_start_admitted",
10106
10106
  ms: Date.now() - startedAt,
10107
10107
  ok: true,
@@ -10135,7 +10135,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10135
10135
  full: input.fullJson
10136
10136
  });
10137
10137
  } catch (error) {
10138
- if (_chunkAVOBDFQ5js.isTransientPlayRunReadError.call(void 0, error)) {
10138
+ if (_chunkM2VXDQI2js.isTransientPlayRunReadError.call(void 0, error)) {
10139
10139
  return null;
10140
10140
  }
10141
10141
  throw error;
@@ -10268,7 +10268,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10268
10268
  };
10269
10269
  }
10270
10270
  if (!canonicalTerminal) {
10271
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
10271
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
10272
10272
  phase: "cli.play_start_stream_stale_terminal_ignored",
10273
10273
  ms: Date.now() - startedAt,
10274
10274
  ok: true,
@@ -10289,14 +10289,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10289
10289
  fromDurableStatus
10290
10290
  }) : canonicalTerminal;
10291
10291
  if (input.fullJson === true) {
10292
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
10292
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
10293
10293
  phase: "play_watch_terminal_status",
10294
10294
  workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
10295
10295
  full: true,
10296
10296
  source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
10297
10297
  });
10298
10298
  }
10299
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
10299
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
10300
10300
  phase: "cli.play_start_stream_terminal",
10301
10301
  ms: Date.now() - startedAt,
10302
10302
  ok: true,
@@ -10316,7 +10316,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10316
10316
  clearTimeout(timeout);
10317
10317
  }
10318
10318
  controller.abort();
10319
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
10319
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
10320
10320
  phase: "cli.play_start_stream_handoff_to_tail",
10321
10321
  ms: Date.now() - startedAt,
10322
10322
  ok: true,
@@ -10347,7 +10347,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10347
10347
  if (timedOut) {
10348
10348
  const terminal = await fetchKnownTerminalStatus();
10349
10349
  if (terminal) {
10350
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
10350
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
10351
10351
  phase: "cli.play_start_stream_timeout_status_reconcile",
10352
10352
  ms: Date.now() - startedAt,
10353
10353
  ok: true,
@@ -10367,7 +10367,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10367
10367
  lastPhase
10368
10368
  });
10369
10369
  }
10370
- if (lastKnownWorkflowId && (terminalWindowExpired || _chunkAVOBDFQ5js.isTransientPlayRunReadError.call(void 0, error))) {
10370
+ if (lastKnownWorkflowId && (terminalWindowExpired || _chunkM2VXDQI2js.isTransientPlayRunReadError.call(void 0, error))) {
10371
10371
  if (timeout) {
10372
10372
  clearTimeout(timeout);
10373
10373
  }
@@ -10378,7 +10378,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10378
10378
  `
10379
10379
  );
10380
10380
  }
10381
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
10381
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
10382
10382
  phase: "cli.play_start_stream_reconnect",
10383
10383
  ms: Date.now() - startedAt,
10384
10384
  ok: true,
@@ -10405,7 +10405,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10405
10405
  });
10406
10406
  }
10407
10407
  if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
10408
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
10408
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
10409
10409
  phase: "cli.play_start_stream_transient_failure",
10410
10410
  ms: Date.now() - startedAt,
10411
10411
  ok: false,
@@ -10433,7 +10433,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10433
10433
  `[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
10434
10434
  );
10435
10435
  }
10436
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
10436
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
10437
10437
  phase: "cli.play_start_stream_reconnect",
10438
10438
  ms: Date.now() - startedAt,
10439
10439
  ok: true,
@@ -10513,7 +10513,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10513
10513
  "logs"
10514
10514
  ]);
10515
10515
  function formatPlayLogLine(rawLine, state) {
10516
- const classified = _chunkAVOBDFQ5js.classifyLogLine.call(void 0, rawLine);
10516
+ const classified = _chunkM2VXDQI2js.classifyLogLine.call(void 0, rawLine);
10517
10517
  const line = classified.line;
10518
10518
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10519
10519
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _323 => _323[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10528,14 +10528,14 @@ function formatPlayLogLine(rawLine, state) {
10528
10528
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10529
10529
  const providerWait = formatProviderCapacityWaitLogLine(line);
10530
10530
  if (providerWait && !state.verbose) {
10531
- return _chunkAVOBDFQ5js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10531
+ return _chunkM2VXDQI2js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10532
10532
  }
10533
10533
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10534
10534
  if (mapProgress && !state.verbose) {
10535
- return _chunkAVOBDFQ5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10535
+ return _chunkM2VXDQI2js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10536
10536
  }
10537
10537
  if (/\[worker\] picked up run\b/.test(message)) {
10538
- if (!_chunkAVOBDFQ5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10538
+ if (!_chunkM2VXDQI2js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10539
10539
  return null;
10540
10540
  }
10541
10541
  if (state.emittedRunnerStarted) {
@@ -10548,7 +10548,7 @@ function formatPlayLogLine(rawLine, state) {
10548
10548
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10549
10549
  );
10550
10550
  if (mapStart) {
10551
- if (!_chunkAVOBDFQ5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10551
+ if (!_chunkM2VXDQI2js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10552
10552
  return null;
10553
10553
  }
10554
10554
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10558,7 +10558,7 @@ function formatPlayLogLine(rawLine, state) {
10558
10558
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10559
10559
  );
10560
10560
  if (mapDone) {
10561
- if (!_chunkAVOBDFQ5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10561
+ if (!_chunkM2VXDQI2js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10562
10562
  return null;
10563
10563
  }
10564
10564
  const [, results, executed, cached] = mapDone;
@@ -11847,7 +11847,7 @@ function formatRecentRunLogLines(value) {
11847
11847
  (line) => typeof line === "string"
11848
11848
  );
11849
11849
  if (tail.length === 0) return [];
11850
- const shown = tail.map((line) => _chunkAVOBDFQ5js.classifyLogLine.call(void 0, line)).filter(
11850
+ const shown = tail.map((line) => _chunkM2VXDQI2js.classifyLogLine.call(void 0, line)).filter(
11851
11851
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
11852
11852
  ).slice(-8);
11853
11853
  const total = readNonNegativeInteger(logs.totalCount);
@@ -12130,7 +12130,7 @@ function writePlayResult(status, jsonOutput, options) {
12130
12130
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _404 => _404.hits]), () => ( null));
12131
12131
  if (jsonOutput) {
12132
12132
  const payload2 = _optionalChain([options, 'optionalAccess', _405 => _405.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
12133
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
12133
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
12134
12134
  hits ? { ...payload2, hits } : payload2,
12135
12135
  { json: true, fields: _optionalChain([options, 'optionalAccess', _406 => _406.jsonFields]) }
12136
12136
  );
@@ -12146,7 +12146,7 @@ function writePlayResult(status, jsonOutput, options) {
12146
12146
  ...buildPlayCompletionTextLines(status),
12147
12147
  ...formatRunHitsLines(hits)
12148
12148
  ];
12149
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, displayPackage, {
12149
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0, displayPackage, {
12150
12150
  json: false,
12151
12151
  text: `${lines2.join("\n")}
12152
12152
  `
@@ -12197,7 +12197,7 @@ function writePlayResult(status, jsonOutput, options) {
12197
12197
  lines.push(...buildBillingRollupTextLines(status));
12198
12198
  const compact = compactPlayStatus(status);
12199
12199
  const payload = _optionalChain([options, 'optionalAccess', _408 => _408.fullJson]) ? status : compact;
12200
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
12200
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
12201
12201
  {
12202
12202
  ...payload,
12203
12203
  render: {
@@ -12967,7 +12967,7 @@ function writeStartedPlayRun(input) {
12967
12967
  dashboardUrl: input.dashboardUrl,
12968
12968
  package: input.package
12969
12969
  };
12970
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12970
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12971
12971
  json: true,
12972
12972
  fields: input.jsonFields
12973
12973
  });
@@ -12989,7 +12989,7 @@ function writeStartedPlayRun(input) {
12989
12989
  input.progress.writeLine(output2, process.stdout);
12990
12990
  return;
12991
12991
  }
12992
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, input.package, {
12992
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0, input.package, {
12993
12993
  json: false,
12994
12994
  text: `${output2}
12995
12995
  `
@@ -13018,7 +13018,7 @@ function writeStartedPlayRun(input) {
13018
13018
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
13019
13019
  ];
13020
13020
  if (input.jsonOutput) {
13021
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13021
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13022
13022
  return;
13023
13023
  }
13024
13024
  if (input.dashboardUrl) {
@@ -13029,7 +13029,7 @@ function writeStartedPlayRun(input) {
13029
13029
  input.progress.writeLine(output, process.stdout);
13030
13030
  return;
13031
13031
  }
13032
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
13032
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
13033
13033
  {
13034
13034
  ...payload,
13035
13035
  render: { sections: [{ title: "play run", lines }] }
@@ -13039,7 +13039,7 @@ function writeStartedPlayRun(input) {
13039
13039
  );
13040
13040
  }
13041
13041
  function parsePlayCheckOptions(args) {
13042
- const selection = _chunkEWWWOKX2js.parseJsonFields.call(void 0, args, "check");
13042
+ const selection = _chunkDD6MM6WXjs.parseJsonFields.call(void 0, args, "check");
13043
13043
  args = selection.args;
13044
13044
  const target = args[0];
13045
13045
  if (!target || target.startsWith("-")) {
@@ -13051,7 +13051,7 @@ function parsePlayCheckOptions(args) {
13051
13051
  if (arg !== "--json" && arg !== "--full")
13052
13052
  throw new Error(`Unknown plays check option: ${arg}`);
13053
13053
  }
13054
- const jsonOutput = _chunkEWWWOKX2js.argsWantJson.call(void 0, args);
13054
+ const jsonOutput = _chunkDD6MM6WXjs.argsWantJson.call(void 0, args);
13055
13055
  return {
13056
13056
  target,
13057
13057
  jsonOutput,
@@ -13127,7 +13127,7 @@ ${PLAY_PUBLISH_USAGE}`
13127
13127
  useLatest,
13128
13128
  expectedArtifactHash,
13129
13129
  dryRun,
13130
- jsonOutput: _chunkEWWWOKX2js.argsWantJson.call(void 0, args)
13130
+ jsonOutput: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args)
13131
13131
  };
13132
13132
  }
13133
13133
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -13168,7 +13168,7 @@ ${PLAY_SAVE_USAGE}`);
13168
13168
  target,
13169
13169
  expectedArtifactHash,
13170
13170
  dryRun,
13171
- jsonOutput: _chunkEWWWOKX2js.argsWantJson.call(void 0, args)
13171
+ jsonOutput: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args)
13172
13172
  };
13173
13173
  }
13174
13174
  function printScheduledPlayCapacity(capacity) {
@@ -13379,7 +13379,7 @@ function printBundledRuntimeWarning(bundle) {
13379
13379
  async function handlePlayCheck(args) {
13380
13380
  const options = parsePlayCheckOptions(args);
13381
13381
  if (!isFileTarget2(options.target)) {
13382
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
13382
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
13383
13383
  try {
13384
13384
  await assertCanonicalNamedPlayReference(client, options.target, {
13385
13385
  command: "check"
@@ -13408,7 +13408,7 @@ async function handlePlayCheck(args) {
13408
13408
  },
13409
13409
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
13410
13410
  };
13411
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, result, {
13411
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0, result, {
13412
13412
  json: options.jsonOutput,
13413
13413
  fields: options.jsonFields,
13414
13414
  text: renderPlayCheckOutput(result) + "\n"
@@ -13418,7 +13418,7 @@ async function handlePlayCheck(args) {
13418
13418
  const resolved = _path.resolve.call(void 0, options.target);
13419
13419
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
13420
13420
  if (options.jsonOutput) {
13421
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
13421
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
13422
13422
  {
13423
13423
  kind: "play_check",
13424
13424
  checked: "named_contract",
@@ -13460,7 +13460,7 @@ async function handlePlayCheck(args) {
13460
13460
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
13461
13461
  publishCommand: _optionalChain([primary, 'optionalAccess', _458 => _458.result, 'access', _459 => _459.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
13462
13462
  });
13463
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, output, {
13463
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0, output, {
13464
13464
  json: options.jsonOutput,
13465
13465
  fields: options.jsonFields,
13466
13466
  text: renderPlayCheckOutput(output) + "\n"
@@ -13514,7 +13514,7 @@ async function checkOneExportedPlay(input) {
13514
13514
  }
13515
13515
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
13516
13516
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
13517
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
13517
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
13518
13518
  const integrationMode = resolveEvalIntegrationMode();
13519
13519
  const checked = await checkLocalPlayGraph({
13520
13520
  client,
@@ -13567,11 +13567,11 @@ async function handleFileBackedRun(options, hooks) {
13567
13567
  throw new Error("Expected a file-backed play run target.");
13568
13568
  }
13569
13569
  let client;
13570
- let cliAdmission = _chunkOZLMMMZHjs.usesInlinePlayAdmission.call(void 0,
13570
+ let cliAdmission = _chunkUTF57UBWjs.usesInlinePlayAdmission.call(void 0,
13571
13571
  "plays run",
13572
13572
  process.argv.slice(2)
13573
13573
  );
13574
- const progress = _nullishCoalesce(_chunkOMWO2JLCjs.getActiveCliProgress.call(void 0, ), () => ( _chunkOMWO2JLCjs.createCliProgress.call(void 0, !options.jsonOutput)));
13574
+ const progress = _nullishCoalesce(_chunkF3MMA7JYjs.getActiveCliProgress.call(void 0, ), () => ( _chunkF3MMA7JYjs.createCliProgress.call(void 0, !options.jsonOutput)));
13575
13575
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
13576
13576
  progress.phase("compiling play");
13577
13577
  const sourceCode = traceCliSync(
@@ -13588,7 +13588,7 @@ async function handleFileBackedRun(options, hooks) {
13588
13588
  }
13589
13589
  let graph;
13590
13590
  try {
13591
- graph = await _chunkRAL75ND3js.traceCliSpan.call(void 0,
13591
+ graph = await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
13592
13592
  "cli.play_file_bundle_graph",
13593
13593
  { targetKind: "file" },
13594
13594
  () => collectBundledPlayGraph(
@@ -13607,9 +13607,9 @@ async function handleFileBackedRun(options, hooks) {
13607
13607
  );
13608
13608
  return 0;
13609
13609
  }
13610
- client = new (0, _chunkAVOBDFQ5js.DeeplineClient)(playRunClientOptions(options));
13610
+ client = new (0, _chunkM2VXDQI2js.DeeplineClient)(playRunClientOptions(options));
13611
13611
  if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
13612
- await _chunkOZLMMMZHjs.checkPlayRunCompatibility.call(void 0,
13612
+ await _chunkUTF57UBWjs.checkPlayRunCompatibility.call(void 0,
13613
13613
  client.baseUrl,
13614
13614
  options.maintenancePolicy
13615
13615
  );
@@ -13622,7 +13622,7 @@ async function handleFileBackedRun(options, hooks) {
13622
13622
  });
13623
13623
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
13624
13624
  if (canDeferCompilerManifest) {
13625
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
13625
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
13626
13626
  phase: "cli.play_file_compile_manifests",
13627
13627
  ms: 0,
13628
13628
  ok: true,
@@ -13631,7 +13631,7 @@ async function handleFileBackedRun(options, hooks) {
13631
13631
  reason: "validated_by_run_route"
13632
13632
  });
13633
13633
  } else {
13634
- await _chunkRAL75ND3js.traceCliSpan.call(void 0,
13634
+ await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
13635
13635
  "cli.play_file_compile_manifests",
13636
13636
  { targetKind: "file", skipped: false },
13637
13637
  () => compileBundledPlayGraphManifests(client, graph)
@@ -13655,7 +13655,7 @@ async function handleFileBackedRun(options, hooks) {
13655
13655
  _chunkQWRHGGUHjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
13656
13656
  );
13657
13657
  progress.phase("pinning imported plays");
13658
- graph = await _chunkRAL75ND3js.traceCliSpan.call(void 0,
13658
+ graph = await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
13659
13659
  "cli.play_file_pin_imports",
13660
13660
  { targetKind: "file" },
13661
13661
  () => _chunkQWRHGGUHjs.pinLocalPlayImports.call(void 0, client, graph)
@@ -13674,7 +13674,7 @@ async function handleFileBackedRun(options, hooks) {
13674
13674
  const fileInputBindings = _chunk2H4EY7KHjs.fileInputBindingsFromStaticPipeline.call(void 0,
13675
13675
  _optionalChain([compilerManifest, 'optionalAccess', _468 => _468.staticPipeline])
13676
13676
  );
13677
- const stagedFileInputs = await _chunkRAL75ND3js.traceCliSpan.call(void 0,
13677
+ const stagedFileInputs = await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
13678
13678
  "cli.play_stage_inputs",
13679
13679
  {
13680
13680
  targetKind: "file",
@@ -13721,7 +13721,7 @@ async function handleFileBackedRun(options, hooks) {
13721
13721
  };
13722
13722
  if (options.watch) {
13723
13723
  progress.phase("starting run");
13724
- const finalStatus = await _chunkRAL75ND3js.traceCliSpan.call(void 0,
13724
+ const finalStatus = await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
13725
13725
  "cli.play_start_watch",
13726
13726
  { targetKind: "file", playName },
13727
13727
  () => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -13777,7 +13777,7 @@ async function handleFileBackedRun(options, hooks) {
13777
13777
  return outputStatus.status === "completed" ? 0 : 1;
13778
13778
  }
13779
13779
  progress.phase("starting run");
13780
- const started = await _chunkRAL75ND3js.traceCliSpan.call(void 0,
13780
+ const started = await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
13781
13781
  "cli.play_start_unwatched",
13782
13782
  { targetKind: "file", playName },
13783
13783
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _474 => _474.onSubmission]) }).catch(async (error) => {
@@ -13824,12 +13824,12 @@ async function handleNamedRun(options, hooks) {
13824
13824
  if (options.target.kind !== "name") {
13825
13825
  throw new Error("Expected a named play run target.");
13826
13826
  }
13827
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)(playRunClientOptions(options));
13828
- let cliAdmission = _chunkOZLMMMZHjs.usesInlinePlayAdmission.call(void 0,
13827
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)(playRunClientOptions(options));
13828
+ let cliAdmission = _chunkUTF57UBWjs.usesInlinePlayAdmission.call(void 0,
13829
13829
  "plays run",
13830
13830
  process.argv.slice(2)
13831
13831
  );
13832
- const progress = _nullishCoalesce(_chunkOMWO2JLCjs.getActiveCliProgress.call(void 0, ), () => ( _chunkOMWO2JLCjs.createCliProgress.call(void 0, !options.jsonOutput)));
13832
+ const progress = _nullishCoalesce(_chunkF3MMA7JYjs.getActiveCliProgress.call(void 0, ), () => ( _chunkF3MMA7JYjs.createCliProgress.call(void 0, !options.jsonOutput)));
13833
13833
  const playName = options.target.name;
13834
13834
  const runtimeInput = options.input ? { ...options.input } : {};
13835
13835
  try {
@@ -13844,14 +13844,14 @@ async function handleNamedRun(options, hooks) {
13844
13844
  });
13845
13845
  const playDetail = needsPlayDefinition ? await (async () => {
13846
13846
  progress.phase("loading play definition");
13847
- return _chunkRAL75ND3js.traceCliSpan.call(void 0,
13847
+ return _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
13848
13848
  "cli.play_load_definition",
13849
13849
  { targetKind: "name", playName, skipped: false },
13850
13850
  () => assertCanonicalNamedPlayReference(client, playName, {
13851
13851
  command: "run"
13852
13852
  })
13853
13853
  );
13854
- })() : (_chunkRAL75ND3js.recordCliTrace.call(void 0, {
13854
+ })() : (_chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
13855
13855
  phase: "cli.play_load_definition",
13856
13856
  ms: 0,
13857
13857
  ok: true,
@@ -13860,7 +13860,7 @@ async function handleNamedRun(options, hooks) {
13860
13860
  skipped: true
13861
13861
  }), null);
13862
13862
  progress.phase("selecting revision");
13863
- const selectedRevisionId = await _chunkRAL75ND3js.traceCliSpan.call(void 0,
13863
+ const selectedRevisionId = await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
13864
13864
  "cli.play_select_revision",
13865
13865
  {
13866
13866
  targetKind: "name",
@@ -13885,10 +13885,10 @@ async function handleNamedRun(options, hooks) {
13885
13885
  ..._chunk2H4EY7KHjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
13886
13886
  ] : [];
13887
13887
  if (cliAdmission && fileInputBindings.length > 0) {
13888
- await _chunkOZLMMMZHjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13888
+ await _chunkUTF57UBWjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13889
13889
  cliAdmission = false;
13890
13890
  }
13891
- const stagedFileInputs = await _chunkRAL75ND3js.traceCliSpan.call(void 0,
13891
+ const stagedFileInputs = await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
13892
13892
  "cli.play_stage_inputs",
13893
13893
  {
13894
13894
  targetKind: "name",
@@ -13932,7 +13932,7 @@ async function handleNamedRun(options, hooks) {
13932
13932
  });
13933
13933
  if (options.watch) {
13934
13934
  progress.phase("starting run");
13935
- const finalStatus = await _chunkRAL75ND3js.traceCliSpan.call(void 0,
13935
+ const finalStatus = await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
13936
13936
  "cli.play_start_watch",
13937
13937
  { targetKind: "name", playName },
13938
13938
  () => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -13991,7 +13991,7 @@ async function handleNamedRun(options, hooks) {
13991
13991
  return outputStatus.status === "completed" ? 0 : 1;
13992
13992
  }
13993
13993
  progress.phase("starting run");
13994
- const started = await _chunkRAL75ND3js.traceCliSpan.call(void 0,
13994
+ const started = await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
13995
13995
  "cli.play_start_unwatched",
13996
13996
  { targetKind: "name", playName },
13997
13997
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _485 => _485.onSubmission]) }).catch(async (error) => {
@@ -14040,7 +14040,7 @@ async function handlePlayRun(args, hooks) {
14040
14040
  JSON.stringify({
14041
14041
  version: 1,
14042
14042
  admissionState: "submitted_unknown",
14043
- baseUrl: new (0, _chunkAVOBDFQ5js.DeeplineClient)().baseUrl,
14043
+ baseUrl: new (0, _chunkM2VXDQI2js.DeeplineClient)().baseUrl,
14044
14044
  ...intent
14045
14045
  })
14046
14046
  );
@@ -14269,7 +14269,7 @@ function renderRunOverviewText(overview, extras = {}) {
14269
14269
  );
14270
14270
  return `${lines.join("\n")}
14271
14271
 
14272
- ${_chunkEWWWOKX2js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
14272
+ ${_chunkDD6MM6WXjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
14273
14273
  }
14274
14274
  var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
14275
14275
  async function withRunReadTiming(command, stage, enabled, action) {
@@ -14293,7 +14293,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
14293
14293
  }
14294
14294
  }
14295
14295
  async function handleRunGet(args) {
14296
- const selection = _chunkEWWWOKX2js.parseJsonFields.call(void 0,
14296
+ const selection = _chunkDD6MM6WXjs.parseJsonFields.call(void 0,
14297
14297
  args,
14298
14298
  args.includes("--config") ? "config" : "get"
14299
14299
  );
@@ -14306,7 +14306,7 @@ async function handleRunGet(args) {
14306
14306
  console.error(error instanceof Error ? error.message : usage2);
14307
14307
  return 1;
14308
14308
  }
14309
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
14309
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
14310
14310
  const timing = args.includes("--timing");
14311
14311
  if (args.includes("--web-url")) {
14312
14312
  const status2 = await withRunReadTiming(
@@ -14321,7 +14321,7 @@ async function handleRunGet(args) {
14321
14321
  return 1;
14322
14322
  }
14323
14323
  const dashboardUrl2 = _chunkVUYUI35Qjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
14324
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
14324
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
14325
14325
  { dashboardUrl: dashboardUrl2 },
14326
14326
  { json: args.includes("--json"), text: `${dashboardUrl2}
14327
14327
  ` }
@@ -14346,7 +14346,7 @@ async function handleRunGet(args) {
14346
14346
  "This server does not support recorded configuration reads."
14347
14347
  );
14348
14348
  }
14349
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
14349
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
14350
14350
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
14351
14351
  { json: true, fields: selection.fields }
14352
14352
  );
@@ -14359,7 +14359,7 @@ async function handleRunGet(args) {
14359
14359
  timing,
14360
14360
  () => client.getRunInput(runId)
14361
14361
  );
14362
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, input, { json: true });
14362
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0, input, { json: true });
14363
14363
  return 0;
14364
14364
  }
14365
14365
  const full = args.includes("--full");
@@ -14385,8 +14385,8 @@ async function handleRunGet(args) {
14385
14385
  ) : status;
14386
14386
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
14387
14387
  const legacyDashboardUrl = legacyPlayName ? _chunkVUYUI35Qjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
14388
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
14389
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
14388
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
14389
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
14390
14390
  {
14391
14391
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
14392
14392
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
@@ -14396,7 +14396,7 @@ async function handleRunGet(args) {
14396
14396
  } else {
14397
14397
  writePlayResult(legacyStatus, false, { fullJson: full });
14398
14398
  if (legacyDashboardUrl)
14399
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
14399
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
14400
14400
  { dashboardUrl: legacyDashboardUrl },
14401
14401
  { json: false, text: `play page: ${legacyDashboardUrl}
14402
14402
  ` }
@@ -14426,10 +14426,10 @@ async function handleRunGet(args) {
14426
14426
  )
14427
14427
  ]);
14428
14428
  const hitLines = formatRunHitsLines(hits);
14429
- const json = _chunkEWWWOKX2js.argsWantJson.call(void 0, args);
14429
+ const json = _chunkDD6MM6WXjs.argsWantJson.call(void 0, args);
14430
14430
  const playName = resolveRunPlayName(status, runId);
14431
14431
  const dashboardUrl = playName ? _chunkVUYUI35Qjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
14432
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
14432
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
14433
14433
  {
14434
14434
  ...overview,
14435
14435
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -14533,9 +14533,9 @@ async function handleRunLifecycleStatus(args) {
14533
14533
  console.error(error instanceof Error ? error.message : usage2);
14534
14534
  return 1;
14535
14535
  }
14536
- const status = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().runs.status(runId);
14537
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
14538
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, status, { json: true });
14536
+ const status = await new (0, _chunkM2VXDQI2js.DeeplineClient)().runs.status(runId);
14537
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
14538
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0, status, { json: true });
14539
14539
  return 0;
14540
14540
  }
14541
14541
  if (!status.available) {
@@ -14575,7 +14575,7 @@ async function handleRunsRerun(args) {
14575
14575
  console.error(error instanceof Error ? error.message : usage2);
14576
14576
  return 1;
14577
14577
  }
14578
- const options = { json: _chunkEWWWOKX2js.argsWantJson.call(void 0, args) };
14578
+ const options = { json: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args) };
14579
14579
  for (let index = 0; index < args.length; index += 1) {
14580
14580
  if (args[index] === "--idempotency-key") {
14581
14581
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -14641,8 +14641,8 @@ ${usage2}
14641
14641
  Discover Plays: ${next.discover}
14642
14642
  Active runs: ${next.running}`
14643
14643
  );
14644
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
14645
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
14644
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
14645
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
14646
14646
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
14647
14647
  { json: true }
14648
14648
  );
@@ -14657,7 +14657,7 @@ Active runs: ${next.running}`
14657
14657
  console.error("--offset requires --play.");
14658
14658
  return 1;
14659
14659
  }
14660
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
14660
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
14661
14661
  const page = await withRunReadTiming(
14662
14662
  "runs list",
14663
14663
  "run inventory",
@@ -14724,14 +14724,14 @@ Active runs: ${next.running}`
14724
14724
  return lines2.join("\n");
14725
14725
  });
14726
14726
  const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
14727
- 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}${_chunkEWWWOKX2js.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14727
+ 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}${_chunkDD6MM6WXjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14728
14728
  if (page.hasMore) {
14729
14729
  lines.push("List truncated \u2014 more runs match this filter.");
14730
14730
  lines.push(
14731
14731
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14732
14732
  );
14733
14733
  }
14734
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
14734
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
14735
14735
  {
14736
14736
  runs,
14737
14737
  count: runs.length,
@@ -14745,7 +14745,7 @@ Active runs: ${next.running}`
14745
14745
  },
14746
14746
  render: { sections: [{ title: "runs", lines }] }
14747
14747
  },
14748
- { json: _chunkEWWWOKX2js.argsWantJson.call(void 0, args) }
14748
+ { json: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args) }
14749
14749
  );
14750
14750
  return 0;
14751
14751
  }
@@ -14775,7 +14775,7 @@ async function handleRunTail(args) {
14775
14775
  console.error("--log-level requires one of: debug, info, warn, error.");
14776
14776
  return 1;
14777
14777
  }
14778
- const parsed = _chunkAVOBDFQ5js.parseLogLevel.call(void 0, value);
14778
+ const parsed = _chunkM2VXDQI2js.parseLogLevel.call(void 0, value);
14779
14779
  if (!parsed) {
14780
14780
  console.error(
14781
14781
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14813,9 +14813,9 @@ async function handleRunTail(args) {
14813
14813
  );
14814
14814
  return 1;
14815
14815
  }
14816
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
14816
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
14817
14817
  const jsonLines = args.includes("--jsonl");
14818
- const jsonOutput = !jsonLines && _chunkEWWWOKX2js.argsWantJson.call(void 0, args);
14818
+ const jsonOutput = !jsonLines && _chunkDD6MM6WXjs.argsWantJson.call(void 0, args);
14819
14819
  const compact = args.includes("--compact");
14820
14820
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14821
14821
  const compactState = {
@@ -14896,7 +14896,7 @@ async function handleRunLogs(args) {
14896
14896
  ]);
14897
14897
  const cursorIndex = args.indexOf("--cursor");
14898
14898
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14899
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkAVOBDFQ5js.isRunLogsCursor.call(void 0, cursorValue));
14899
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkM2VXDQI2js.isRunLogsCursor.call(void 0, cursorValue));
14900
14900
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14901
14901
  return handleRunEventSearch(args);
14902
14902
  }
@@ -14930,7 +14930,7 @@ async function handleRunLogs(args) {
14930
14930
  console.error("--log-level requires one of: debug, info, warn, error.");
14931
14931
  return 1;
14932
14932
  }
14933
- const parsed = _chunkAVOBDFQ5js.parseLogLevel.call(void 0, value);
14933
+ const parsed = _chunkM2VXDQI2js.parseLogLevel.call(void 0, value);
14934
14934
  if (!parsed) {
14935
14935
  console.error(
14936
14936
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14977,12 +14977,12 @@ async function handleRunLogs(args) {
14977
14977
  );
14978
14978
  return 1;
14979
14979
  }
14980
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
14980
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
14981
14981
  if (outPath) {
14982
14982
  const result2 = await client.runs.logs(runId, { all: true });
14983
- const logs = result2.entries.filter((line) => _chunkAVOBDFQ5js.logLevelReaches.call(void 0, _chunkAVOBDFQ5js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkAVOBDFQ5js.classifyLogLine.call(void 0, line).line);
14983
+ const logs = result2.entries.filter((line) => _chunkM2VXDQI2js.logLevelReaches.call(void 0, _chunkM2VXDQI2js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkM2VXDQI2js.classifyLogLine.call(void 0, line).line);
14984
14984
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14985
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
14985
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
14986
14986
  {
14987
14987
  runId: result2.runId,
14988
14988
  log_path: outPath,
@@ -15005,7 +15005,7 @@ async function handleRunLogs(args) {
15005
15005
  ]
15006
15006
  }
15007
15007
  },
15008
- { json: _chunkEWWWOKX2js.argsWantJson.call(void 0, args) }
15008
+ { json: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args) }
15009
15009
  );
15010
15010
  return 0;
15011
15011
  }
@@ -15036,7 +15036,7 @@ async function handleRunLogs(args) {
15036
15036
  }
15037
15037
  };
15038
15038
  const text = buildRunLogsText(filteredResult);
15039
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
15039
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
15040
15040
  {
15041
15041
  runId: result.runId,
15042
15042
  totalCount: result.totalCount,
@@ -15060,7 +15060,7 @@ async function handleRunLogs(args) {
15060
15060
  render: { sections: [{ title: "run logs", lines: entries }] }
15061
15061
  },
15062
15062
  {
15063
- json: _chunkEWWWOKX2js.argsWantJson.call(void 0, args),
15063
+ json: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args),
15064
15064
  text
15065
15065
  }
15066
15066
  );
@@ -15084,7 +15084,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15084
15084
  );
15085
15085
  }
15086
15086
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
15087
- (entry) => _chunkAVOBDFQ5js.logLevelReaches.call(void 0, _chunkAVOBDFQ5js.classifyLogLine.call(void 0, entry.line).level, logLevel)
15087
+ (entry) => _chunkM2VXDQI2js.logLevelReaches.call(void 0, _chunkM2VXDQI2js.classifyLogLine.call(void 0, entry.line).level, logLevel)
15088
15088
  );
15089
15089
  const selected = matching.slice(-limit);
15090
15090
  const olderMatchesExist = matching.length > selected.length;
@@ -15094,7 +15094,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15094
15094
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _513 => _513.at, 'call', _514 => _514(-1), 'optionalAccess', _515 => _515.seq]), () => ( null)),
15095
15095
  truncated: result.truncated || olderMatchesExist,
15096
15096
  hasMore: olderMatchesExist,
15097
- nextCursor: olderMatchesExist ? _chunkAVOBDFQ5js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15097
+ nextCursor: olderMatchesExist ? _chunkM2VXDQI2js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15098
15098
  };
15099
15099
  }
15100
15100
  async function handleRunEventSearch(args) {
@@ -15161,7 +15161,7 @@ ${usage2}`);
15161
15161
  namespace,
15162
15162
  ...backend ? { backend } : {}
15163
15163
  } : void 0;
15164
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
15164
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
15165
15165
  const result = await client.runs.searchEvents({
15166
15166
  ...runId ? { runId } : {},
15167
15167
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -15233,7 +15233,7 @@ ${renderedDetails}` : ""}`;
15233
15233
  "--limit",
15234
15234
  String(limit)
15235
15235
  ].join(" ") : null;
15236
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
15236
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
15237
15237
  {
15238
15238
  events,
15239
15239
  nextCursor: result.nextCursor,
@@ -15244,14 +15244,14 @@ ${renderedDetails}` : ""}`;
15244
15244
  render: { sections: [{ title: "runtime events", lines }] }
15245
15245
  },
15246
15246
  {
15247
- json: _chunkEWWWOKX2js.argsWantJson.call(void 0, args),
15247
+ json: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args),
15248
15248
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
15249
15249
  }
15250
15250
  );
15251
15251
  return 0;
15252
15252
  }
15253
15253
  function buildRunLogsText(result) {
15254
- const lines = result.entries.map((line) => _chunkAVOBDFQ5js.classifyLogLine.call(void 0, line).line);
15254
+ const lines = result.entries.map((line) => _chunkM2VXDQI2js.classifyLogLine.call(void 0, line).line);
15255
15255
  if (result.warning) {
15256
15256
  if (lines.length > 0) lines.push("");
15257
15257
  lines.push(`warning: ${result.warning}`);
@@ -15285,7 +15285,7 @@ async function handleRunStop(args) {
15285
15285
  reason = args[++index];
15286
15286
  }
15287
15287
  }
15288
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
15288
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
15289
15289
  const result = await client.runs.stop(runId, { reason });
15290
15290
  const state = resolveRunStopState(result);
15291
15291
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -15300,7 +15300,7 @@ async function handleRunStop(args) {
15300
15300
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
15301
15301
  `inspect: deepline runs get ${runId} --full`
15302
15302
  ];
15303
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
15303
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
15304
15304
  {
15305
15305
  ...cancelling,
15306
15306
  state,
@@ -15315,7 +15315,7 @@ async function handleRunStop(args) {
15315
15315
  ]
15316
15316
  }
15317
15317
  },
15318
- { json: _chunkEWWWOKX2js.argsWantJson.call(void 0, args) }
15318
+ { json: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args) }
15319
15319
  );
15320
15320
  return 0;
15321
15321
  }
@@ -15332,7 +15332,7 @@ async function handleRunStop(args) {
15332
15332
  ];
15333
15333
  process.stderr.write(`${lines2.join("\n")}
15334
15334
  `);
15335
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
15335
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
15336
15336
  {
15337
15337
  ...result,
15338
15338
  render: {
@@ -15347,7 +15347,7 @@ async function handleRunStop(args) {
15347
15347
  ]
15348
15348
  }
15349
15349
  },
15350
- { json: _chunkEWWWOKX2js.argsWantJson.call(void 0, args) }
15350
+ { json: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args) }
15351
15351
  );
15352
15352
  return 1;
15353
15353
  }
@@ -15358,12 +15358,12 @@ async function handleRunStop(args) {
15358
15358
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
15359
15359
  ] : []
15360
15360
  ];
15361
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
15361
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
15362
15362
  {
15363
15363
  ...result,
15364
15364
  render: { sections: [{ title: "run stop", lines }] }
15365
15365
  },
15366
- { json: _chunkEWWWOKX2js.argsWantJson.call(void 0, args) }
15366
+ { json: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args) }
15367
15367
  );
15368
15368
  return 0;
15369
15369
  }
@@ -15413,18 +15413,18 @@ async function handleRunStopAll(args) {
15413
15413
  reason = args[++index];
15414
15414
  }
15415
15415
  }
15416
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
15416
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
15417
15417
  if (dryRun) {
15418
15418
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
15419
15419
  const lines2 = buildStopAllDryRunTextLines(result2);
15420
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
15420
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
15421
15421
  {
15422
15422
  ...result2,
15423
15423
  render: {
15424
15424
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
15425
15425
  }
15426
15426
  },
15427
- { json: _chunkEWWWOKX2js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
15427
+ { json: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
15428
15428
  ` }
15429
15429
  );
15430
15430
  return 0;
@@ -15437,17 +15437,17 @@ async function handleRunStopAll(args) {
15437
15437
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
15438
15438
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
15439
15439
  ];
15440
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
15440
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
15441
15441
  {
15442
15442
  ...result,
15443
15443
  render: { sections: [{ title: "workspace stop-all", lines }] }
15444
15444
  },
15445
- { json: _chunkEWWWOKX2js.argsWantJson.call(void 0, args) }
15445
+ { json: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args) }
15446
15446
  );
15447
15447
  return result.failed > 0 || result.partial ? 1 : 0;
15448
15448
  }
15449
15449
  async function handleRunExport(args) {
15450
- const selection = _chunkEWWWOKX2js.parseJsonFields.call(void 0, args, "export");
15450
+ const selection = _chunkDD6MM6WXjs.parseJsonFields.call(void 0, args, "export");
15451
15451
  args = selection.args;
15452
15452
  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]";
15453
15453
  let runId;
@@ -15506,17 +15506,17 @@ async function handleRunExport(args) {
15506
15506
  "INVALID_ARGUMENT"
15507
15507
  );
15508
15508
  }
15509
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
15509
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
15510
15510
  let status = await client.getPlayStatus(runId, { full: true });
15511
15511
  assertRunExportStatusIdentity(status, runId);
15512
15512
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
15513
- const progress = _chunkOMWO2JLCjs.createCliProgress.call(void 0, !_chunkEWWWOKX2js.argsWantJson.call(void 0, args));
15513
+ const progress = _chunkF3MMA7JYjs.createCliProgress.call(void 0, !_chunkDD6MM6WXjs.argsWantJson.call(void 0, args));
15514
15514
  try {
15515
15515
  await waitForPlayCompletionByWatch({
15516
15516
  client,
15517
15517
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
15518
15518
  workflowId: runId,
15519
- jsonOutput: _chunkEWWWOKX2js.argsWantJson.call(void 0, args),
15519
+ jsonOutput: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args),
15520
15520
  emitLogs: false,
15521
15521
  waitTimeoutMs,
15522
15522
  startedAt: Date.now(),
@@ -15617,8 +15617,8 @@ async function handleRunExport(args) {
15617
15617
  "utf-8"
15618
15618
  );
15619
15619
  }
15620
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, payload, {
15621
- json: _chunkEWWWOKX2js.argsWantJson.call(void 0, args),
15620
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0, payload, {
15621
+ json: _chunkDD6MM6WXjs.argsWantJson.call(void 0, args),
15622
15622
  fields: selection.fields,
15623
15623
  text: `${lines.join("\n")}
15624
15624
  `
@@ -15652,10 +15652,10 @@ async function handlePlayGet(args) {
15652
15652
  );
15653
15653
  return 2;
15654
15654
  }
15655
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
15655
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
15656
15656
  const explicitJson = args.includes("--json");
15657
15657
  const sourceOutput = args.includes("--source");
15658
- const jsonOutput = sourceOutput ? explicitJson : _chunkEWWWOKX2js.argsWantJson.call(void 0, args);
15658
+ const jsonOutput = sourceOutput ? explicitJson : _chunkDD6MM6WXjs.argsWantJson.call(void 0, args);
15659
15659
  const requestedRevisionFlags = [
15660
15660
  args.includes("--working"),
15661
15661
  args.includes("--live"),
@@ -15715,7 +15715,7 @@ async function handlePlayGet(args) {
15715
15715
  }
15716
15716
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15717
15717
  if (jsonOutput) {
15718
- _chunkEWWWOKX2js.printCompactJson.call(void 0, {
15718
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, {
15719
15719
  ...detail,
15720
15720
  ...materializedFile ? {
15721
15721
  message: loadedMessage,
@@ -15807,8 +15807,8 @@ async function handlePlayVersions(args) {
15807
15807
  console.error("Usage: deepline plays versions --name <name> [--json]");
15808
15808
  return 1;
15809
15809
  }
15810
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
15811
- const jsonOutput = _chunkEWWWOKX2js.argsWantJson.call(void 0, args);
15810
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
15811
+ const jsonOutput = _chunkDD6MM6WXjs.argsWantJson.call(void 0, args);
15812
15812
  await assertCanonicalNamedPlayReference(client, playName, {
15813
15813
  command: "versions"
15814
15814
  });
@@ -15816,7 +15816,7 @@ async function handlePlayVersions(args) {
15816
15816
  parseReferencedPlayTarget2(playName).playName
15817
15817
  );
15818
15818
  if (jsonOutput) {
15819
- _chunkEWWWOKX2js.printCompactJson.call(void 0, { versions });
15819
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, { versions });
15820
15820
  return 0;
15821
15821
  }
15822
15822
  if (versions.length === 0) {
@@ -15854,9 +15854,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
15854
15854
  "signals"
15855
15855
  ];
15856
15856
  async function handlePlayList(args) {
15857
- const jsonOutput = _chunkEWWWOKX2js.argsWantJson.call(void 0, args);
15857
+ const jsonOutput = _chunkDD6MM6WXjs.argsWantJson.call(void 0, args);
15858
15858
  const showCost = args.includes("--show-cost");
15859
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
15859
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
15860
15860
  const categoriesIndex = args.indexOf("--categories");
15861
15861
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _552 => _552[categoriesIndex + 1], 'optionalAccess', _553 => _553.trim, 'call', _554 => _554()]) : void 0;
15862
15862
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15953,7 +15953,7 @@ async function handlePlayList(args) {
15953
15953
  lines.push("List truncated \u2014 more plays are available.");
15954
15954
  lines.push(`Next page: ${nextPage}`);
15955
15955
  }
15956
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
15956
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
15957
15957
  {
15958
15958
  plays,
15959
15959
  count: plays.length,
@@ -15971,7 +15971,7 @@ async function handlePlayList(args) {
15971
15971
  }
15972
15972
  async function handlePlayPin(args, pinned) {
15973
15973
  const target = _optionalChain([args, 'access', _561 => _561.find, 'call', _562 => _562((arg) => !arg.startsWith("-")), 'optionalAccess', _563 => _563.trim, 'call', _564 => _564()]);
15974
- const jsonOutput = _chunkEWWWOKX2js.argsWantJson.call(void 0, args);
15974
+ const jsonOutput = _chunkDD6MM6WXjs.argsWantJson.call(void 0, args);
15975
15975
  const dryRun = args.includes("--dry-run");
15976
15976
  if (!target) {
15977
15977
  console.error(
@@ -15989,11 +15989,11 @@ async function handlePlayPin(args, pinned) {
15989
15989
  const name = parsedTarget.playName;
15990
15990
  const plan = { name, pinned, dryRun };
15991
15991
  if (dryRun) {
15992
- _chunkEWWWOKX2js.printCompactJson.call(void 0, plan);
15992
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, plan);
15993
15993
  return 0;
15994
15994
  }
15995
- const result = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().setPlayPinned(name, pinned);
15996
- if (jsonOutput) _chunkEWWWOKX2js.printCompactJson.call(void 0, result);
15995
+ const result = await new (0, _chunkM2VXDQI2js.DeeplineClient)().setPlayPinned(name, pinned);
15996
+ if (jsonOutput) _chunkDD6MM6WXjs.printCompactJson.call(void 0, result);
15997
15997
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15998
15998
  return 0;
15999
15999
  }
@@ -16119,12 +16119,12 @@ async function handlePlayGrep(args) {
16119
16119
  console.error("Usage: deepline plays grep <query> [--json]");
16120
16120
  return 1;
16121
16121
  }
16122
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
16122
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
16123
16123
  const results = (await client.listPlays({ grep: query })).map(
16124
16124
  summarizePlayGrepResult
16125
16125
  );
16126
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
16127
- _chunkEWWWOKX2js.printCompactJson.call(void 0, {
16126
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
16127
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, {
16128
16128
  plays: results,
16129
16129
  count: results.length,
16130
16130
  query,
@@ -16147,7 +16147,7 @@ async function handlePlayGrep(args) {
16147
16147
  return 0;
16148
16148
  }
16149
16149
  async function handlePlayDescribe(args) {
16150
- const selection = _chunkEWWWOKX2js.parseJsonFields.call(void 0, args, "describe");
16150
+ const selection = _chunkDD6MM6WXjs.parseJsonFields.call(void 0, args, "describe");
16151
16151
  args = selection.args;
16152
16152
  const playName = args[0];
16153
16153
  if (!playName) {
@@ -16181,8 +16181,8 @@ async function handlePlayDescribe(args) {
16181
16181
  `deepline plays check ${playName}`,
16182
16182
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
16183
16183
  ];
16184
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
16185
- _chunkEWWWOKX2js.printCompactJson.call(void 0, {
16184
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
16185
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, {
16186
16186
  ok: false,
16187
16187
  error: { message },
16188
16188
  next
@@ -16196,7 +16196,7 @@ async function handlePlayDescribe(args) {
16196
16196
  }
16197
16197
  return 2;
16198
16198
  }
16199
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
16199
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
16200
16200
  await assertCanonicalNamedPlayReference(client, playName, {
16201
16201
  command: "describe"
16202
16202
  });
@@ -16206,9 +16206,9 @@ async function handlePlayDescribe(args) {
16206
16206
  compact: args.includes("--compact")
16207
16207
  }
16208
16208
  );
16209
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
16210
- if (selection.fields) _chunkEWWWOKX2js.printJson.call(void 0, play, selection.fields);
16211
- else _chunkEWWWOKX2js.printCompactJson.call(void 0, play);
16209
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
16210
+ if (selection.fields) _chunkDD6MM6WXjs.printJson.call(void 0, play, selection.fields);
16211
+ else _chunkDD6MM6WXjs.printCompactJson.call(void 0, play);
16212
16212
  return 0;
16213
16213
  }
16214
16214
  printPlayDescription(play);
@@ -16230,7 +16230,7 @@ async function handlePlaySave(args) {
16230
16230
  }
16231
16231
  let graph;
16232
16232
  try {
16233
- graph = await _chunkRAL75ND3js.traceCliSpan.call(void 0,
16233
+ graph = await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
16234
16234
  "cli.play_save_bundle_graph",
16235
16235
  { targetKind: "file" },
16236
16236
  () => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
@@ -16252,7 +16252,7 @@ async function handlePlaySave(args) {
16252
16252
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
16253
16253
  };
16254
16254
  if (options.jsonOutput) {
16255
- _chunkEWWWOKX2js.printCompactJson.call(void 0, result);
16255
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, result);
16256
16256
  } else {
16257
16257
  console.error(result.message);
16258
16258
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -16274,7 +16274,7 @@ async function handlePlaySave(args) {
16274
16274
  };
16275
16275
  if (options.dryRun) {
16276
16276
  if (options.jsonOutput) {
16277
- _chunkEWWWOKX2js.printCompactJson.call(void 0, dryRun);
16277
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, dryRun);
16278
16278
  } else {
16279
16279
  console.log(`Dry run: ${playName}`);
16280
16280
  console.log(` source: ${dryRun.sourceHash}`);
@@ -16283,14 +16283,14 @@ async function handlePlaySave(args) {
16283
16283
  }
16284
16284
  return 0;
16285
16285
  }
16286
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
16286
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
16287
16287
  try {
16288
- await _chunkRAL75ND3js.traceCliSpan.call(void 0,
16288
+ await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
16289
16289
  "cli.play_save_compile_manifests",
16290
16290
  { targetKind: "file", nodeCount: graph.nodes.size },
16291
16291
  () => compileBundledPlayGraphManifests(client, graph)
16292
16292
  );
16293
- const saved = await _chunkRAL75ND3js.traceCliSpan.call(void 0,
16293
+ const saved = await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
16294
16294
  "cli.play_save_register_draft",
16295
16295
  { targetKind: "file", playName, artifactHash },
16296
16296
  () => client.registerPlayArtifact({
@@ -16319,7 +16319,7 @@ async function handlePlaySave(args) {
16319
16319
  }
16320
16320
  };
16321
16321
  if (options.jsonOutput) {
16322
- _chunkEWWWOKX2js.printCompactJson.call(void 0, result);
16322
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, result);
16323
16323
  } else {
16324
16324
  console.log(
16325
16325
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -16345,7 +16345,7 @@ async function handlePlayPublish(args) {
16345
16345
  }
16346
16346
  const { target: playName, useLatest } = options;
16347
16347
  let revisionId = options.revisionId;
16348
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
16348
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
16349
16349
  if (isFileTarget2(playName)) {
16350
16350
  if (revisionId || useLatest) {
16351
16351
  console.error(
@@ -16355,7 +16355,7 @@ async function handlePlayPublish(args) {
16355
16355
  }
16356
16356
  let graph;
16357
16357
  try {
16358
- graph = await _chunkRAL75ND3js.traceCliSpan.call(void 0,
16358
+ graph = await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
16359
16359
  "cli.play_publish_bundle_graph",
16360
16360
  { targetKind: "file" },
16361
16361
  () => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
@@ -16377,7 +16377,7 @@ async function handlePlayPublish(args) {
16377
16377
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
16378
16378
  };
16379
16379
  if (options.jsonOutput) {
16380
- _chunkEWWWOKX2js.printCompactJson.call(void 0, result3);
16380
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, result3);
16381
16381
  } else {
16382
16382
  console.error(result3.message);
16383
16383
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -16400,7 +16400,7 @@ async function handlePlayPublish(args) {
16400
16400
  };
16401
16401
  if (options.dryRun) {
16402
16402
  if (options.jsonOutput) {
16403
- _chunkEWWWOKX2js.printCompactJson.call(void 0, dryRun);
16403
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, dryRun);
16404
16404
  } else {
16405
16405
  console.log(`Dry run: ${rootPlayName}`);
16406
16406
  console.log(` source: ${dryRun.sourceHash}`);
@@ -16419,12 +16419,12 @@ async function handlePlayPublish(args) {
16419
16419
  }
16420
16420
  }
16421
16421
  try {
16422
- await _chunkRAL75ND3js.traceCliSpan.call(void 0,
16422
+ await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
16423
16423
  "cli.play_publish_compile_manifests",
16424
16424
  { targetKind: "file", nodeCount: graph.nodes.size },
16425
16425
  () => compileBundledPlayGraphManifests(client, graph)
16426
16426
  );
16427
- await _chunkRAL75ND3js.traceCliSpan.call(void 0,
16427
+ await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
16428
16428
  "cli.play_publish_imports",
16429
16429
  { targetKind: "file", nodeCount: graph.nodes.size },
16430
16430
  () => publishImportedPlayDependencies(client, graph)
@@ -16433,7 +16433,7 @@ async function handlePlayPublish(args) {
16433
16433
  console.error(error instanceof Error ? error.message : String(error));
16434
16434
  return 1;
16435
16435
  }
16436
- const published = await _chunkRAL75ND3js.traceCliSpan.call(void 0,
16436
+ const published = await _chunkLSZZVHQPjs.traceCliSpan.call(void 0,
16437
16437
  "cli.play_publish_register_root",
16438
16438
  {
16439
16439
  targetKind: "file",
@@ -16468,7 +16468,7 @@ async function handlePlayPublish(args) {
16468
16468
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
16469
16469
  };
16470
16470
  if (options.jsonOutput) {
16471
- _chunkEWWWOKX2js.printCompactJson.call(void 0, result2);
16471
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, result2);
16472
16472
  } else {
16473
16473
  printPublishReceipt({
16474
16474
  name: rootPlayName,
@@ -16499,7 +16499,7 @@ async function handlePlayPublish(args) {
16499
16499
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
16500
16500
  latest: useLatest
16501
16501
  };
16502
- _chunkEWWWOKX2js.printCompactJson.call(void 0, result2);
16502
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, result2);
16503
16503
  return 0;
16504
16504
  }
16505
16505
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -16523,7 +16523,7 @@ async function handlePlayPublish(args) {
16523
16523
  revisionId ? { revisionId } : {}
16524
16524
  );
16525
16525
  if (options.jsonOutput) {
16526
- _chunkEWWWOKX2js.printCompactJson.call(void 0, result);
16526
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, result);
16527
16527
  } else {
16528
16528
  printPublishReceipt({
16529
16529
  name: result.name,
@@ -16563,7 +16563,7 @@ async function handlePlayDelete(args) {
16563
16563
  );
16564
16564
  return 2;
16565
16565
  }
16566
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
16566
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
16567
16567
  let detail;
16568
16568
  try {
16569
16569
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -16587,8 +16587,8 @@ async function handlePlayDelete(args) {
16587
16587
  name: resolvedName,
16588
16588
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
16589
16589
  };
16590
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
16591
- _chunkEWWWOKX2js.printCompactJson.call(void 0, result2);
16590
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
16591
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, result2);
16592
16592
  } else {
16593
16593
  process.stdout.write(
16594
16594
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -16598,8 +16598,8 @@ async function handlePlayDelete(args) {
16598
16598
  return 0;
16599
16599
  }
16600
16600
  const result = await client.deletePlay(resolvedName);
16601
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
16602
- _chunkEWWWOKX2js.printCompactJson.call(void 0, result);
16601
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
16602
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, result);
16603
16603
  return result.archived || result.alreadyArchived ? 0 : 4;
16604
16604
  }
16605
16605
  if (result.alreadyArchived) {
@@ -16638,13 +16638,13 @@ async function handlePlayRestore(args) {
16638
16638
  );
16639
16639
  return 2;
16640
16640
  }
16641
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
16641
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
16642
16642
  try {
16643
16643
  const result = await client.restorePlay(
16644
16644
  parseReferencedPlayTarget2(playName).playName
16645
16645
  );
16646
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
16647
- _chunkEWWWOKX2js.printCompactJson.call(void 0, result);
16646
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
16647
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, result);
16648
16648
  return result.restored || result.alreadyActive ? 0 : 4;
16649
16649
  }
16650
16650
  if (result.alreadyActive) {
@@ -16772,21 +16772,21 @@ Common commands:
16772
16772
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16773
16773
  }
16774
16774
  };
16775
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, result2, {
16775
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0, result2, {
16776
16776
  json: options.json,
16777
16777
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16778
16778
  `
16779
16779
  });
16780
16780
  return;
16781
16781
  }
16782
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
16782
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
16783
16783
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16784
16784
  throw new Error(
16785
16785
  "The submission belongs to a different API origin. Select its original host before recovery."
16786
16786
  );
16787
16787
  }
16788
16788
  const result = await client.startPlayRun(saved.request);
16789
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
16789
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
16790
16790
  { ...result },
16791
16791
  {
16792
16792
  json: options.json,
@@ -16822,7 +16822,7 @@ Examples:
16822
16822
  ).action(async (target, options) => {
16823
16823
  process.exitCode = await handlePlayCheck([
16824
16824
  target,
16825
- ..._chunkEWWWOKX2js.jsonFieldArgs.call(void 0, options.json),
16825
+ ..._chunkDD6MM6WXjs.jsonFieldArgs.call(void 0, options.json),
16826
16826
  ...options.full ? ["--full"] : []
16827
16827
  ]);
16828
16828
  });
@@ -17030,10 +17030,10 @@ JSON field selection:
17030
17030
  _nullishCoalesce(effectiveTarget, () => ( void 0)),
17031
17031
  options,
17032
17032
  passthroughArgs,
17033
- _chunkRAL75ND3js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
17033
+ _chunkLSZZVHQPjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
17034
17034
  )
17035
17035
  );
17036
- _chunkRAL75ND3js.recordCliTrace.call(void 0, {
17036
+ _chunkLSZZVHQPjs.recordCliTrace.call(void 0, {
17037
17037
  phase: "cli.play_command_exit",
17038
17038
  exitCode
17039
17039
  });
@@ -17082,9 +17082,9 @@ Examples:
17082
17082
  const limit = Number(options.historyLimit);
17083
17083
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
17084
17084
  throw new Error("--history-limit must be an integer from 1 to 30.");
17085
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
17085
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
17086
17086
  if (options.binding) {
17087
- _chunkEWWWOKX2js.printCompactJson.call(void 0,
17087
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0,
17088
17088
  await client.getPlayTriggerHistory(options.binding, { limit })
17089
17089
  );
17090
17090
  return;
@@ -17092,7 +17092,7 @@ Examples:
17092
17092
  const result = await client.listPlayTriggerInventory({
17093
17093
  cursor: options.cursor
17094
17094
  });
17095
- _chunkEWWWOKX2js.printCompactJson.call(void 0, {
17095
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, {
17096
17096
  ...result,
17097
17097
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
17098
17098
  });
@@ -17139,7 +17139,7 @@ Examples:
17139
17139
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
17140
17140
  throw new Error("--group-by must be kind or trigger_source.");
17141
17141
  }
17142
- const result = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().getPlaysActivity({
17142
+ const result = await new (0, _chunkM2VXDQI2js.DeeplineClient)().getPlaysActivity({
17143
17143
  timeZone: options.timeZone,
17144
17144
  days,
17145
17145
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -17153,7 +17153,7 @@ Examples:
17153
17153
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
17154
17154
  );
17155
17155
  }
17156
- _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
17156
+ _chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
17157
17157
  { ...result },
17158
17158
  {
17159
17159
  json: Boolean(options.json),
@@ -17182,7 +17182,7 @@ Examples:
17182
17182
  false
17183
17183
  );
17184
17184
  });
17185
- _chunk2U3AMRHFjs.registerDeprecatedSearchCommand.call(void 0,
17185
+ _chunk22XGRO2Mjs.registerDeprecatedSearchCommand.call(void 0,
17186
17186
  play,
17187
17187
  (options) => options.all ? ["plays"] : ["prebuilts"]
17188
17188
  );
@@ -17225,7 +17225,7 @@ Examples:
17225
17225
  );
17226
17226
  _chunkGXOQRZXGjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
17227
17227
  async (target, options) => {
17228
- const ownView = () => handlePlayDescribe(_chunkEWWWOKX2js.describeArgs.call(void 0, target, options));
17228
+ const ownView = () => handlePlayDescribe(_chunkDD6MM6WXjs.describeArgs.call(void 0, target, options));
17229
17229
  const [flagText] = [options.json].filter(
17230
17230
  (value) => typeof value === "string"
17231
17231
  );
@@ -17236,7 +17236,7 @@ Examples:
17236
17236
  process.exitCode = await ownView();
17237
17237
  return;
17238
17238
  }
17239
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-5RLXW332.js")));
17239
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-A2MGAI3Y.js")));
17240
17240
  process.exitCode = await describeAnything(
17241
17241
  name,
17242
17242
  {
@@ -17354,7 +17354,7 @@ Examples:
17354
17354
  deepline plays deployments <deployment-id>
17355
17355
  `
17356
17356
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
17357
- async (id, options) => id ? _chunkDRK6FYJUjs.handleDeploymentGet.call(void 0, id, options) : _chunkDRK6FYJUjs.handleDeploymentsList.call(void 0, options)
17357
+ async (id, options) => id ? _chunkCJD5QKYKjs.handleDeploymentGet.call(void 0, id, options) : _chunkCJD5QKYKjs.handleDeploymentsList.call(void 0, options)
17358
17358
  );
17359
17359
  addPublishHelp(
17360
17360
  play.command("publish <target>").description(
@@ -17489,14 +17489,14 @@ Examples:
17489
17489
  const limit = Number(options.limit);
17490
17490
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
17491
17491
  throw new Error("--limit must be an integer from 1 to 1000.");
17492
- const result = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().runs.rowHistory({
17492
+ const result = await new (0, _chunkM2VXDQI2js.DeeplineClient)().runs.rowHistory({
17493
17493
  playName: options.play,
17494
17494
  runId,
17495
17495
  tableNamespace: options.dataset,
17496
17496
  limit,
17497
17497
  cursor: options.cursor
17498
17498
  });
17499
- _chunkEWWWOKX2js.printCompactJson.call(void 0, {
17499
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, {
17500
17500
  ...result,
17501
17501
  ...result.nextCursor ? {
17502
17502
  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`
@@ -17566,7 +17566,7 @@ Examples:
17566
17566
  ).action(async (runId, options) => {
17567
17567
  process.exitCode = await handleRunGet([
17568
17568
  runId,
17569
- ..._chunkEWWWOKX2js.jsonFieldArgs.call(void 0, options.json),
17569
+ ..._chunkDD6MM6WXjs.jsonFieldArgs.call(void 0, options.json),
17570
17570
  ...options.webUrl ? ["--web-url"] : [],
17571
17571
  ...options.full ? ["--full"] : [],
17572
17572
  ...options.input ? ["--input"] : [],
@@ -17852,7 +17852,7 @@ Examples:
17852
17852
  ...options.allowEmpty ? ["--allow-empty"] : [],
17853
17853
  ...options.wait ? ["--wait"] : [],
17854
17854
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17855
- ..._chunkEWWWOKX2js.jsonFieldArgs.call(void 0, options.json)
17855
+ ..._chunkDD6MM6WXjs.jsonFieldArgs.call(void 0, options.json)
17856
17856
  ]);
17857
17857
  });
17858
17858
  const share = play.command("share").description(
@@ -18018,10 +18018,10 @@ async function handlePlayShareStatus(args) {
18018
18018
  return 2;
18019
18019
  }
18020
18020
  const name = parseReferencedPlayTarget2(target).playName;
18021
- const status = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().getSharePage(name);
18021
+ const status = await new (0, _chunkM2VXDQI2js.DeeplineClient)().getSharePage(name);
18022
18022
  const outputStatus = shareStatusForOutput(status);
18023
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
18024
- _chunkEWWWOKX2js.printCompactJson.call(void 0, outputStatus);
18023
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
18024
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, outputStatus);
18025
18025
  return 0;
18026
18026
  }
18027
18027
  if (!outputStatus.share) {
@@ -18060,7 +18060,7 @@ async function handlePlaySharePublish(args) {
18060
18060
  return 2;
18061
18061
  }
18062
18062
  const name = parseReferencedPlayTarget2(target).playName;
18063
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
18063
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
18064
18064
  let revisionId = shareFlagValue(args, "--revision-id");
18065
18065
  let resolvedVersion;
18066
18066
  if (!revisionId) {
@@ -18091,8 +18091,8 @@ async function handlePlaySharePublish(args) {
18091
18091
  );
18092
18092
  if (!hasCompleted) {
18093
18093
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
18094
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
18095
- _chunkEWWWOKX2js.printCompactJson.call(void 0, {
18094
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
18095
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, {
18096
18096
  ok: false,
18097
18097
  code: "NO_SUCCESSFUL_RUN",
18098
18098
  message,
@@ -18116,8 +18116,8 @@ async function handlePlaySharePublish(args) {
18116
18116
  };
18117
18117
  if (args.includes("--dry-run")) {
18118
18118
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
18119
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
18120
- _chunkEWWWOKX2js.printCompactJson.call(void 0, plan);
18119
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
18120
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, plan);
18121
18121
  } else {
18122
18122
  console.log(
18123
18123
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -18127,8 +18127,8 @@ async function handlePlaySharePublish(args) {
18127
18127
  }
18128
18128
  const status = await client.publishSharePage(name, request);
18129
18129
  const outputStatus = shareStatusForOutput(status);
18130
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
18131
- _chunkEWWWOKX2js.printCompactJson.call(void 0, outputStatus);
18130
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
18131
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, outputStatus);
18132
18132
  return 0;
18133
18133
  }
18134
18134
  const urls = shareUrlFields(outputStatus);
@@ -18159,9 +18159,9 @@ async function handlePlayShareUpdate(args) {
18159
18159
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
18160
18160
  ...seoIndexing ? { seoIndexing } : {}
18161
18161
  };
18162
- const status = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().updateSharePage(name, request);
18163
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
18164
- _chunkEWWWOKX2js.printCompactJson.call(void 0, status);
18162
+ const status = await new (0, _chunkM2VXDQI2js.DeeplineClient)().updateSharePage(name, request);
18163
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
18164
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, status);
18165
18165
  return 0;
18166
18166
  }
18167
18167
  console.log(`Updated ${name} share settings.`);
@@ -18176,7 +18176,7 @@ async function handlePlayShareRegenerate(args) {
18176
18176
  return 2;
18177
18177
  }
18178
18178
  const name = parseReferencedPlayTarget2(target).playName;
18179
- const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
18179
+ const client = new (0, _chunkM2VXDQI2js.DeeplineClient)();
18180
18180
  let revisionId = shareFlagValue(args, "--revision-id");
18181
18181
  const versionFlag = shareFlagValue(args, "--version");
18182
18182
  if (!revisionId && versionFlag) {
@@ -18193,8 +18193,8 @@ async function handlePlayShareRegenerate(args) {
18193
18193
  revisionId ? { revisionId } : {}
18194
18194
  );
18195
18195
  const outputStatus = shareStatusForOutput(status);
18196
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
18197
- _chunkEWWWOKX2js.printCompactJson.call(void 0, outputStatus);
18196
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
18197
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, outputStatus);
18198
18198
  return 0;
18199
18199
  }
18200
18200
  const urls = shareUrlFields(outputStatus);
@@ -18219,9 +18219,9 @@ async function handlePlayShareUnpublish(args) {
18219
18219
  return 2;
18220
18220
  }
18221
18221
  const name = parseReferencedPlayTarget2(target).playName;
18222
- const status = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().unpublishSharePage(name);
18223
- if (_chunkEWWWOKX2js.argsWantJson.call(void 0, args)) {
18224
- _chunkEWWWOKX2js.printCompactJson.call(void 0, status);
18222
+ const status = await new (0, _chunkM2VXDQI2js.DeeplineClient)().unpublishSharePage(name);
18223
+ if (_chunkDD6MM6WXjs.argsWantJson.call(void 0, args)) {
18224
+ _chunkDD6MM6WXjs.printCompactJson.call(void 0, status);
18225
18225
  return 0;
18226
18226
  }
18227
18227
  console.log(`Unpublished ${name}; the public page has been removed.`);