deepline 0.3.372 → 0.3.374

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 (116) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +1 -53
  3. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +15 -23
  4. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +65 -3
  5. package/dist/bundling-sources/shared_libs/plays/email-status.ts +95 -0
  6. package/dist/bundling-sources/shared_libs/plays/extractor-targets.ts +14 -0
  7. package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +253 -0
  8. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +2 -0
  9. package/dist/cli/auth-IFXXXZP6.js +33 -0
  10. package/dist/cli/{auth-ODSACXLF.mjs → auth-YGCDA4WG.mjs} +4 -4
  11. package/dist/cli/{billing-OPIOZLAN.mjs → billing-3ZLR3CJU.mjs} +4 -4
  12. package/dist/cli/{billing-4ERXY2DZ.js → billing-ZXRKPD5D.js} +73 -73
  13. package/dist/cli/{chunk-XSPAI6MF.mjs → chunk-2DAWTVNN.mjs} +2 -2
  14. package/dist/cli/{chunk-E5UD3JDQ.js → chunk-3VN4FTE3.js} +289 -5
  15. package/dist/cli/{chunk-VVFH745L.js → chunk-3XKAOV74.js} +6 -6
  16. package/dist/cli/{chunk-N5TPMNTT.js → chunk-53PZA4EP.js} +8 -8
  17. package/dist/cli/{chunk-BFLPCGOR.mjs → chunk-62IBVKWB.mjs} +1 -1
  18. package/dist/cli/{chunk-2RC5JQ3C.mjs → chunk-A62HBMHY.mjs} +1 -1
  19. package/dist/cli/{chunk-3GK3SH3G.mjs → chunk-E6BZWURC.mjs} +200 -13
  20. package/dist/cli/{chunk-KC2YOJTU.mjs → chunk-FT6O2ZVJ.mjs} +319 -115
  21. package/dist/cli/{chunk-5HYD3GMS.mjs → chunk-GT6KGIWV.mjs} +3 -3
  22. package/dist/cli/{chunk-RUYZAREB.js → chunk-HC5L6KGE.js} +9 -9
  23. package/dist/cli/{chunk-JAERLCMH.mjs → chunk-IZVGMVNX.mjs} +1 -1
  24. package/dist/cli/{chunk-ML2ZY7YD.js → chunk-JK547IDB.js} +4 -4
  25. package/dist/cli/{chunk-D6O3NJHX.js → chunk-MOBOAZMA.js} +60 -60
  26. package/dist/cli/{chunk-DONL233W.mjs → chunk-MQ5UW5AZ.mjs} +4 -4
  27. package/dist/cli/{chunk-MIMV5LTU.mjs → chunk-NNYQ24O5.mjs} +1 -1
  28. package/dist/cli/{chunk-DM5QUZJR.js → chunk-NOSIMGZV.js} +1 -1
  29. package/dist/cli/{chunk-AQFA7HMN.js → chunk-O7KJYX7R.js} +15 -15
  30. package/dist/cli/{chunk-U3W7E5WT.mjs → chunk-OS7GXARW.mjs} +27 -15
  31. package/dist/cli/{chunk-BVUGPOU3.mjs → chunk-OYTPVM2R.mjs} +2 -2
  32. package/dist/cli/{chunk-EFJL5FCU.js → chunk-PCYCNZLR.js} +8 -8
  33. package/dist/cli/{chunk-6MDAGRZP.js → chunk-RT5ICJ5V.js} +2 -2
  34. package/dist/cli/{chunk-GZQKUFM5.js → chunk-RXR7A2MX.js} +26 -26
  35. package/dist/cli/{chunk-4LIUZ4QR.mjs → chunk-SBB27CIJ.mjs} +2 -2
  36. package/dist/cli/{chunk-RJ7JJMQO.js → chunk-T35LCTC7.js} +266 -254
  37. package/dist/cli/{chunk-IUWPC5K6.js → chunk-TZTGK5JQ.js} +50 -50
  38. package/dist/cli/{chunk-FGHRRJ3D.mjs → chunk-VZSVYNZH.mjs} +1 -1
  39. package/dist/cli/{chunk-WJWO74MM.js → chunk-X5V2QTDR.js} +390 -186
  40. package/dist/cli/{chunk-JB6ERQUV.mjs → chunk-Y6VOGHF2.mjs} +284 -0
  41. package/dist/cli/{chunk-3CTB7V5F.mjs → chunk-YFFH6NDU.mjs} +2 -2
  42. package/dist/cli/{chunk-2JRRXXTA.js → chunk-YPVTQRUM.js} +201 -14
  43. package/dist/cli/client-O6IEMURJ.js +20 -0
  44. package/dist/cli/{client-KF2J754U.mjs → client-TV254HC4.mjs} +3 -3
  45. package/dist/cli/{csv-UL3MCD5D.mjs → csv-VEHHRUG4.mjs} +3 -3
  46. package/dist/cli/{csv-UJ3M7NFP.js → csv-WSRTANXI.js} +12 -12
  47. package/dist/cli/{db-SIOWA63T.mjs → db-BH25DX2G.mjs} +4 -4
  48. package/dist/cli/{db-444XYOTV.js → db-JXZNMFCE.js} +29 -29
  49. package/dist/cli/{describe-RRBESS3S.js → describe-N2OBGVJM.js} +61 -32
  50. package/dist/cli/{describe-GI5GHAKO.mjs → describe-TMBECHTX.mjs} +46 -17
  51. package/dist/cli/{executions-ERXZUOL5.js → executions-TX5CQF66.js} +6 -6
  52. package/dist/cli/{executions-4YDP6BXI.mjs → executions-Y4HQHYSO.mjs} +4 -4
  53. package/dist/cli/{feedback-3M7D7DZQ.js → feedback-ASEJ5A7I.js} +7 -7
  54. package/dist/cli/{feedback-CPWQL5LU.mjs → feedback-W7SRXYSP.mjs} +3 -3
  55. package/dist/cli/{git-XN6C3TJZ.mjs → git-2W7CZZRC.mjs} +4 -4
  56. package/dist/cli/git-SSSOIQ2L.js +23 -0
  57. package/dist/cli/index.js +81 -81
  58. package/dist/cli/index.mjs +32 -32
  59. package/dist/cli/{legacy-noops-5XDGOFWH.js → legacy-noops-NJYAAGBY.js} +7 -7
  60. package/dist/cli/{legacy-noops-KXQ6TFFL.mjs → legacy-noops-TXMPY3P7.mjs} +4 -4
  61. package/dist/cli/{monitors-33IU5JR6.mjs → monitors-G4L65QGQ.mjs} +4 -4
  62. package/dist/cli/{monitors-KH22PDOC.js → monitors-YLKTQ57D.js} +85 -85
  63. package/dist/cli/{org-MHYMWUEP.mjs → org-BCHOWKIA.mjs} +4 -4
  64. package/dist/cli/{org-X4NSLQG5.js → org-ENXO2A33.js} +64 -64
  65. package/dist/cli/{play-LCZKHKW2.mjs → play-JBY7HUYN.mjs} +8 -8
  66. package/dist/cli/play-SSJ3PO4D.js +155 -0
  67. package/dist/cli/{providers-J6LWCF5R.js → providers-GWFX3E7C.js} +7 -7
  68. package/dist/cli/{providers-L5FJTSEA.mjs → providers-JV2DZG43.mjs} +4 -4
  69. package/dist/cli/{quickstart-NE3BTWGL.mjs → quickstart-AIXURXZQ.mjs} +3 -3
  70. package/dist/cli/{quickstart-OOPFA4MX.js → quickstart-CASPK7F4.js} +5 -5
  71. package/dist/cli/{search-DBXOEOIE.mjs → search-DYQB7LHK.mjs} +5 -5
  72. package/dist/cli/search-N7K6A2YV.js +26 -0
  73. package/dist/cli/{secrets-WPMU7UBD.js → secrets-AZQG2E4U.js} +13 -13
  74. package/dist/cli/{secrets-U2MLWZH2.mjs → secrets-RQZPIPO5.mjs} +4 -4
  75. package/dist/cli/{sessions-WYNC4AUE.mjs → sessions-3FJJDMBB.mjs} +4 -4
  76. package/dist/cli/{sessions-YYZ3UJDS.js → sessions-ZY6RBYD4.js} +5 -5
  77. package/dist/cli/{settings-WQDFX3X6.js → settings-GXKWNR5V.js} +74 -74
  78. package/dist/cli/{settings-FQZSHFC6.mjs → settings-UNZDQGSE.mjs} +7 -7
  79. package/dist/cli/{setup-JKYJT35S.mjs → setup-PIRXJ2KJ.mjs} +6 -6
  80. package/dist/cli/{setup-DKYVNDTM.js → setup-UURZD4YO.js} +41 -41
  81. package/dist/cli/skills-4OUZLKTW.js +28 -0
  82. package/dist/cli/{skills-VHVCJJJY.mjs → skills-B4AQEIAF.mjs} +4 -4
  83. package/dist/cli/tools-MIZS5UN6.js +40 -0
  84. package/dist/cli/{tools-E23PU7KM.mjs → tools-UMGQKUSW.mjs} +8 -8
  85. package/dist/cli/update-3CO7LA4M.js +28 -0
  86. package/dist/cli/{update-4A4VU6CW.mjs → update-SFUTMEKL.mjs} +6 -6
  87. package/dist/cli/{workflow-WB2USWAA.js → workflow-CDAJCMT7.js} +15 -15
  88. package/dist/cli/{workflow-2ZR2ECTG.mjs → workflow-ON6XVW36.mjs} +5 -5
  89. package/dist/{client-Cw0e2Uec.d.mts → client-Cn-txrXv.d.mts} +1 -1
  90. package/dist/{client-CwdiawoG.d.ts → client-fPoIN-3V.d.ts} +1 -1
  91. package/dist/{compiler-manifest-DgdW0q0b.d.mts → compiler-manifest-CY2v8ab0.d.mts} +2 -0
  92. package/dist/{compiler-manifest-DgdW0q0b.d.ts → compiler-manifest-CY2v8ab0.d.ts} +2 -0
  93. package/dist/{index-C3nQQTI-.d.mts → index-B9fBZH1g.d.mts} +1 -1
  94. package/dist/{index-CEYQAfS0.d.ts → index-BZ6uzZJl.d.ts} +1 -1
  95. package/dist/index.d.mts +5 -5
  96. package/dist/index.d.ts +5 -5
  97. package/dist/index.js +79 -249
  98. package/dist/index.mjs +10 -180
  99. package/dist/install-integrity.json +85 -84
  100. package/dist/plays/bundle-play-file.d.mts +3 -3
  101. package/dist/plays/bundle-play-file.d.ts +3 -3
  102. package/dist/plays/run-request.d.mts +2 -2
  103. package/dist/plays/run-request.d.ts +2 -2
  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-4SXMV3CD.js +0 -33
  110. package/dist/cli/client-UUNLXOHF.js +0 -20
  111. package/dist/cli/git-ITSCNUVB.js +0 -23
  112. package/dist/cli/play-4QRPOBWW.js +0 -155
  113. package/dist/cli/search-UGQDBP76.js +0 -26
  114. package/dist/cli/skills-VBQMXDAX.js +0 -28
  115. package/dist/cli/tools-ACEJZMJD.js +0 -40
  116. package/dist/cli/update-V5KMYHVE.js +0 -28
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk2JRRXXTAjs = require('./chunk-2JRRXXTA.js');
5
+ var _chunkYPVTQRUMjs = require('./chunk-YPVTQRUM.js');
6
6
 
7
7
 
8
8
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
@@ -19,11 +19,11 @@ var _chunkQGKPTBRRjs = require('./chunk-QGKPTBRR.js');
19
19
  var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
20
20
 
21
21
 
22
- var _chunkN5TPMNTTjs = require('./chunk-N5TPMNTT.js');
22
+ var _chunk53PZA4EPjs = require('./chunk-53PZA4EP.js');
23
23
 
24
24
 
25
25
 
26
- var _chunkGZQKUFM5js = require('./chunk-GZQKUFM5.js');
26
+ var _chunkRXR7A2MXjs = require('./chunk-RXR7A2MX.js');
27
27
 
28
28
 
29
29
 
@@ -42,7 +42,7 @@ var _chunkGEJDBXXMjs = require('./chunk-GEJDBXXM.js');
42
42
 
43
43
 
44
44
 
45
- var _chunkRUYZAREBjs = require('./chunk-RUYZAREB.js');
45
+ var _chunkHC5L6KGEjs = require('./chunk-HC5L6KGE.js');
46
46
 
47
47
 
48
48
 
@@ -75,10 +75,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
75
75
 
76
76
 
77
77
 
78
- var _chunkVVFH745Ljs = require('./chunk-VVFH745L.js');
78
+ var _chunk3XKAOV74js = require('./chunk-3XKAOV74.js');
79
79
 
80
80
 
81
- var _chunkML2ZY7YDjs = require('./chunk-ML2ZY7YD.js');
81
+ var _chunkJK547IDBjs = require('./chunk-JK547IDB.js');
82
82
 
83
83
 
84
84
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -2062,7 +2062,7 @@ function resolveField(key, command) {
2062
2062
  function printSettings(result, json, name) {
2063
2063
  result = { ...result, settings: parsePlaySettings(result.settings) };
2064
2064
  const selected = fields.filter(([key]) => !name || key === name);
2065
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2065
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
2066
2066
  {
2067
2067
  ...result,
2068
2068
  settings: Object.fromEntries(
@@ -2106,7 +2106,7 @@ function registerPlaySettingsCommands(plays) {
2106
2106
  valueSyntax: field.cli.valueSyntax,
2107
2107
  examples: field.cli.examples
2108
2108
  }));
2109
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2109
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
2110
2110
  {
2111
2111
  fields: descriptions,
2112
2112
  render: {
@@ -2131,7 +2131,7 @@ function registerPlaySettingsCommands(plays) {
2131
2131
  async (options, command) => {
2132
2132
  if (options.name !== void 0) resolveField(options.name, command);
2133
2133
  printSettings(
2134
- await new (0, _chunkRUYZAREBjs.DeeplineClient)().getPlaySettings(options.play),
2134
+ await new (0, _chunkHC5L6KGEjs.DeeplineClient)().getPlaySettings(options.play),
2135
2135
  options.json,
2136
2136
  options.name
2137
2137
  );
@@ -2162,7 +2162,7 @@ function registerPlaySettingsCommands(plays) {
2162
2162
  );
2163
2163
  }
2164
2164
  if (options.dryRun) {
2165
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2165
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
2166
2166
  {
2167
2167
  dryRun: true,
2168
2168
  play,
@@ -2183,7 +2183,7 @@ function registerPlaySettingsCommands(plays) {
2183
2183
  return;
2184
2184
  }
2185
2185
  printSettings(
2186
- await new (0, _chunkRUYZAREBjs.DeeplineClient)().updatePlaySettings(play, patch),
2186
+ await new (0, _chunkHC5L6KGEjs.DeeplineClient)().updatePlaySettings(play, patch),
2187
2187
  options.json
2188
2188
  );
2189
2189
  };
@@ -2209,13 +2209,13 @@ function registerPlaySettingsCommands(plays) {
2209
2209
  "--root must be person or team; --limit must be 1\u2013100.",
2210
2210
  { exitCode: 2 }
2211
2211
  );
2212
- const page = await new (0, _chunkRUYZAREBjs.DeeplineClient)().listPlaySettingsPaths({
2212
+ const page = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().listPlaySettingsPaths({
2213
2213
  root: options.root,
2214
2214
  limit,
2215
2215
  cursor: options.cursor
2216
2216
  });
2217
2217
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2218
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2218
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
2219
2219
  {
2220
2220
  ...page,
2221
2221
  nextCommand,
@@ -2266,7 +2266,7 @@ function registerPlaySettingsCommands(plays) {
2266
2266
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2267
2267
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2268
2268
  };
2269
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
2269
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
2270
2270
  const paths = [];
2271
2271
  let cursor;
2272
2272
  do {
@@ -2328,7 +2328,7 @@ function registerPlaySettingsCommands(plays) {
2328
2328
  moved.push(move.playName);
2329
2329
  }
2330
2330
  }
2331
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2331
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
2332
2332
  {
2333
2333
  dryRun: Boolean(options.dryRun),
2334
2334
  from: options.from,
@@ -2456,7 +2456,7 @@ function triggerLines(view) {
2456
2456
  return lines;
2457
2457
  }
2458
2458
  function printView(view, json) {
2459
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2459
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
2460
2460
  {
2461
2461
  ...view,
2462
2462
  render: {
@@ -2469,7 +2469,7 @@ function printView(view, json) {
2469
2469
  );
2470
2470
  }
2471
2471
  function printResult(result, json) {
2472
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2472
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
2473
2473
  {
2474
2474
  ...result,
2475
2475
  render: {
@@ -2499,7 +2499,7 @@ async function mutate(command, options, build) {
2499
2499
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2500
2500
  }
2501
2501
  if (options.dryRun) {
2502
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2502
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
2503
2503
  {
2504
2504
  dryRun: true,
2505
2505
  play: options.play,
@@ -2518,7 +2518,7 @@ async function mutate(command, options, build) {
2518
2518
  return;
2519
2519
  }
2520
2520
  printResult(
2521
- await new (0, _chunkRUYZAREBjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2521
+ await new (0, _chunkHC5L6KGEjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2522
2522
  options.json
2523
2523
  );
2524
2524
  }
@@ -2551,7 +2551,7 @@ function registerPlayTriggerConfigCommands(plays) {
2551
2551
  }).addHelpText("after", help2);
2552
2552
  trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
2553
2553
  printView(
2554
- await new (0, _chunkRUYZAREBjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2554
+ await new (0, _chunkHC5L6KGEjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2555
2555
  options.json
2556
2556
  );
2557
2557
  });
@@ -2595,7 +2595,7 @@ function registerPlayTriggerConfigCommands(plays) {
2595
2595
  if (options.auth === void 0) {
2596
2596
  if (secrets.length || options.header || options.signaturePrefix)
2597
2597
  usage(setWebhook, "--secret/--header need --auth.");
2598
- const current = await new (0, _chunkRUYZAREBjs.DeeplineClient)().getPlayTriggerConfig(
2598
+ const current = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().getPlayTriggerConfig(
2599
2599
  options.play
2600
2600
  );
2601
2601
  return {
@@ -2672,7 +2672,7 @@ var KIND_DESCRIPTIONS = {
2672
2672
  "receipt.skipped": "Saved work result: skipped.",
2673
2673
  "runtime.event": "Other event."
2674
2674
  };
2675
- var RUN_LOGS_KIND_HELP = _chunkRUYZAREBjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2675
+ var RUN_LOGS_KIND_HELP = _chunkHC5L6KGEjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2676
2676
  kind,
2677
2677
  description: KIND_DESCRIPTIONS[kind]
2678
2678
  }));
@@ -2809,9 +2809,9 @@ function configureRunQueryCommandErrors(command, resource) {
2809
2809
  const args = program.args;
2810
2810
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2811
2811
  error.exitCode = 2;
2812
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2813
- _chunkVVFH745Ljs.printJsonError.call(void 0,
2814
- Object.assign(new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(error.message), {
2812
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2813
+ _chunk3XKAOV74js.printJsonError.call(void 0,
2814
+ Object.assign(new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(error.message), {
2815
2815
  exitCode: 2,
2816
2816
  retryable: false
2817
2817
  })
@@ -2855,14 +2855,14 @@ function parseQuery(args, resource) {
2855
2855
  if (VALUE_FLAGS.has(flag)) {
2856
2856
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2857
2857
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2858
- throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
2858
+ throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
2859
2859
  `${flag} requires a value. Use ${flag} <value>.`
2860
2860
  );
2861
2861
  }
2862
2862
  if (flag === "--sum") sums.push(value);
2863
2863
  else {
2864
2864
  if (values[flag] !== void 0) {
2865
- throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
2865
+ throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
2866
2866
  `${flag} may only be supplied once.`
2867
2867
  );
2868
2868
  }
@@ -2876,12 +2876,12 @@ function parseQuery(args, resource) {
2876
2876
  }
2877
2877
  if (arg.startsWith("-")) {
2878
2878
  const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
2879
- throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
2879
+ throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
2880
2880
  `Unsupported query flag ${flag}. ${correction}`
2881
2881
  );
2882
2882
  }
2883
2883
  if (runId !== void 0) {
2884
- throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
2884
+ throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
2885
2885
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2886
2886
  );
2887
2887
  }
@@ -2889,7 +2889,7 @@ function parseQuery(args, resource) {
2889
2889
  }
2890
2890
  if (switches.has("--fields")) {
2891
2891
  if (runId !== void 0) {
2892
- throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
2892
+ throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
2893
2893
  "--fields does not use a run ID. Omit the positional run ID."
2894
2894
  );
2895
2895
  }
@@ -2902,18 +2902,18 @@ function parseQuery(args, resource) {
2902
2902
  )
2903
2903
  ];
2904
2904
  if (incompatible.length) {
2905
- throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
2905
+ throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
2906
2906
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2907
2907
  );
2908
2908
  }
2909
2909
  }
2910
2910
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2911
- throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
2911
+ throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
2912
2912
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2913
2913
  );
2914
2914
  }
2915
2915
  if (sums.length && switches.has("--count")) {
2916
- throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
2916
+ throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
2917
2917
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2918
2918
  );
2919
2919
  }
@@ -2921,7 +2921,7 @@ function parseQuery(args, resource) {
2921
2921
  if (operation === "count") {
2922
2922
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2923
2923
  if (values[flag] !== void 0 || switches.has(flag)) {
2924
- throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
2924
+ throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
2925
2925
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2926
2926
  );
2927
2927
  }
@@ -2956,16 +2956,16 @@ function parseQuery(args, resource) {
2956
2956
  ];
2957
2957
  }
2958
2958
  }
2959
- const request = _chunkRUYZAREBjs.normalizeRunEventOperationRequest.call(void 0, body);
2959
+ const request = _chunkHC5L6KGEjs.normalizeRunEventOperationRequest.call(void 0, body);
2960
2960
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2961
2961
  const backend = values["--runtime-backend"];
2962
2962
  if (backend && backend !== "daytona" && backend !== "modal") {
2963
- throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
2963
+ throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
2964
2964
  "--runtime-backend must be daytona or modal."
2965
2965
  );
2966
2966
  }
2967
2967
  if (backend && !namespace) {
2968
- throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
2968
+ throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
2969
2969
  "--runtime-backend requires --runtime-namespace."
2970
2970
  );
2971
2971
  }
@@ -3012,12 +3012,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3012
3012
  const failure = error instanceof Error ? error : new Error(String(error));
3013
3013
  const record3 = failure;
3014
3014
  const status = record3.statusCode;
3015
- const exitCode = error instanceof _chunkRUYZAREBjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3015
+ const exitCode = error instanceof _chunkHC5L6KGEjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3016
3016
  const diagnostic = Object.assign(failure, {
3017
3017
  exitCode,
3018
3018
  retryable: exitCode === 5
3019
3019
  });
3020
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) _chunkVVFH745Ljs.printJsonError.call(void 0, diagnostic);
3020
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) _chunk3XKAOV74js.printJsonError.call(void 0, diagnostic);
3021
3021
  else console.error(`Error: ${diagnostic.message}`);
3022
3022
  return exitCode;
3023
3023
  }
@@ -3032,7 +3032,7 @@ async function executeRunEventQuery(args, resource) {
3032
3032
  ...criteria
3033
3033
  } = request;
3034
3034
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3035
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
3035
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
3036
3036
  let result;
3037
3037
  if (request.operation === "fields") {
3038
3038
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3098,13 +3098,13 @@ async function executeRunEventQuery(args, resource) {
3098
3098
  lines.push(`Next page: ${nextPage}`);
3099
3099
  }
3100
3100
  }
3101
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
3101
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
3102
3102
  {
3103
3103
  ...result,
3104
3104
  ...nextPage ? { next: { page: nextPage } } : {},
3105
3105
  render: { sections: [{ title: `run ${resource}`, lines }] }
3106
3106
  },
3107
- { json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3107
+ { json: _chunk3XKAOV74js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3108
3108
  ` }
3109
3109
  );
3110
3110
  return 0;
@@ -3924,7 +3924,7 @@ function checkedRunExample(plays, target) {
3924
3924
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3925
3925
  const base = `deepline plays run --file ${quote(target)}`;
3926
3926
  return {
3927
- command: `${base}${_chunkRUYZAREBjs.playInputExampleArgs.call(void 0, schema)}`,
3927
+ command: `${base}${_chunkHC5L6KGEjs.playInputExampleArgs.call(void 0, schema)}`,
3928
3928
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema."
3929
3929
  };
3930
3930
  }
@@ -4022,7 +4022,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4022
4022
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4023
4023
  );
4024
4024
  }
4025
- const response = await new (0, _chunkRUYZAREBjs.DeeplineClient)().runs.getReceipts(runId, {
4025
+ const response = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().runs.getReceipts(runId, {
4026
4026
  keys
4027
4027
  });
4028
4028
  const failed = response.receipts.filter(
@@ -4034,7 +4034,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4034
4034
  JSON.stringify(response, null, 2) + "\n",
4035
4035
  { flag: "wx", mode: 384 }
4036
4036
  );
4037
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
4037
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
4038
4038
  {
4039
4039
  runId,
4040
4040
  out: options.out,
@@ -4044,7 +4044,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4044
4044
  { json: true }
4045
4045
  );
4046
4046
  } else {
4047
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4047
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4048
4048
  }
4049
4049
  if (failed)
4050
4050
  process.exitCode = response.receipts.some(
@@ -4083,7 +4083,7 @@ includes nextCommand when another page is available.
4083
4083
  { exitCode: 2 }
4084
4084
  );
4085
4085
  }
4086
- const page = await new (0, _chunkRUYZAREBjs.DeeplineClient)().runs.children(parentRunId, {
4086
+ const page = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().runs.children(parentRunId, {
4087
4087
  launchKey: options.launchKey,
4088
4088
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4089
4089
  limit
@@ -4098,7 +4098,7 @@ includes nextCommand when another page is available.
4098
4098
  "--limit",
4099
4099
  String(limit)
4100
4100
  ].join(" ") : null;
4101
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
4101
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
4102
4102
  {
4103
4103
  parentRunId,
4104
4104
  launchKey: options.launchKey,
@@ -4134,7 +4134,7 @@ async function handleRunsHistory(options) {
4134
4134
  throw new Error("--limit must be a positive integer.");
4135
4135
  }
4136
4136
  }
4137
- const page = await new (0, _chunkRUYZAREBjs.DeeplineClient)().runs.history({
4137
+ const page = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().runs.history({
4138
4138
  cursor: options.cursor,
4139
4139
  orgId: options.org,
4140
4140
  search: options.search,
@@ -4150,7 +4150,7 @@ async function handleRunsHistory(options) {
4150
4150
  );
4151
4151
  }
4152
4152
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4153
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
4153
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
4154
4154
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4155
4155
  options.json ? { json: true } : {}
4156
4156
  );
@@ -4202,12 +4202,12 @@ async function runRunsRerunCommand(runId, options) {
4202
4202
  return 1;
4203
4203
  }
4204
4204
  }
4205
- const result = await new (0, _chunkRUYZAREBjs.DeeplineClient)().runs.rerun(runId, {
4205
+ const result = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().runs.rerun(runId, {
4206
4206
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4207
4207
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4208
4208
  });
4209
- if (_chunkVVFH745Ljs.shouldEmitJson.call(void 0, options.json)) {
4210
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0, result, { json: true });
4209
+ if (_chunk3XKAOV74js.shouldEmitJson.call(void 0, options.json)) {
4210
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0, result, { json: true });
4211
4211
  } else {
4212
4212
  console.log(
4213
4213
  result.deduplicated === true ? `
@@ -4475,7 +4475,7 @@ function projectRunDatasetCell(value) {
4475
4475
  const logicalValue = parseSerializedDatasetValue(value);
4476
4476
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
4477
4477
  if (typeof logicalValue === "object") {
4478
- return _chunkVVFH745Ljs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4478
+ return _chunk3XKAOV74js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4479
4479
  }
4480
4480
  return logicalValue;
4481
4481
  }
@@ -6892,7 +6892,7 @@ function renderOutcome(outcome) {
6892
6892
  function printResult2(input) {
6893
6893
  const failed = input.status === "failed" || input.status === "cancelled";
6894
6894
  if (failed) process.exitCode = 1;
6895
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
6895
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
6896
6896
  {
6897
6897
  deployment: { ...input.deployment, status: input.status },
6898
6898
  plays: input.outcomes,
@@ -6917,7 +6917,7 @@ async function handlePlaysDeploy(directory, options) {
6917
6917
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6918
6918
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6919
6919
  });
6920
- const { http, config } = _chunkVVFH745Ljs.getAuthedHttpClient.call(void 0, );
6920
+ const { http, config } = _chunk3XKAOV74js.getAuthedHttpClient.call(void 0, );
6921
6921
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6922
6922
  const startDeployment = () => http.post("/api/v2/deployments", {
6923
6923
  deliveryId,
@@ -6944,7 +6944,7 @@ async function handlePlaysDeploy(directory, options) {
6944
6944
  },
6945
6945
  {
6946
6946
  bundle: bundleDeployPlayFile,
6947
- fetchImpl: _chunkML2ZY7YDjs.fetchWithDeploymentProtection,
6947
+ fetchImpl: _chunkJK547IDBjs.fetchWithDeploymentProtection,
6948
6948
  // The plays are already here: "opening" the source is naming it.
6949
6949
  openSource: async () => ({
6950
6950
  open: async () => ({ repoRoot: root })
@@ -7512,7 +7512,7 @@ function parseInputFlagValue(raw) {
7512
7512
  return raw;
7513
7513
  }
7514
7514
  function parsePlayRunOptions(args, initialInput = null) {
7515
- const selection = _chunkVVFH745Ljs.parseJsonFields.call(void 0, args, "run");
7515
+ const selection = _chunk3XKAOV74js.parseJsonFields.call(void 0, args, "run");
7516
7516
  args = selection.args;
7517
7517
  const usage2 = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and ctx.dataset guidance.";
7518
7518
  let filePath = null;
@@ -7522,7 +7522,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7522
7522
  let revisionSelector = null;
7523
7523
  const watch = !args.includes("--no-wait");
7524
7524
  const dryRun = args.includes("--dry-run");
7525
- let jsonOutput = dryRun ? _chunkVVFH745Ljs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
7525
+ let jsonOutput = dryRun ? _chunk3XKAOV74js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk3XKAOV74js.argsWantJson.call(void 0, args);
7526
7526
  const fullJson = args.includes("--full");
7527
7527
  const force = args.includes("--force");
7528
7528
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -7569,7 +7569,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7569
7569
  "--log-level requires one of: debug, info, warn, error."
7570
7570
  );
7571
7571
  }
7572
- const parsed = _chunkRUYZAREBjs.parseLogLevel.call(void 0, value);
7572
+ const parsed = _chunkHC5L6KGEjs.parseLogLevel.call(void 0, value);
7573
7573
  if (!parsed) {
7574
7574
  throw new Error(
7575
7575
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -7876,7 +7876,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7876
7876
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
7877
7877
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
7878
7878
  );
7879
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkRUYZAREBjs.parseLogLevel.call(void 0, options.logLevel);
7879
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkHC5L6KGEjs.parseLogLevel.call(void 0, options.logLevel);
7880
7880
  if (!logLevel)
7881
7881
  throw new Error("--log-level requires one of: debug, info, warn, error.");
7882
7882
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -7890,13 +7890,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7890
7890
  if (debugAlias || debugMapLatency && logLevel === "info")
7891
7891
  logLevel = "debug";
7892
7892
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
7893
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkVVFH745Ljs.parseJsonFields.call(void 0,
7894
- [...fullJson ? ["--full"] : [], ..._chunkVVFH745Ljs.jsonFieldArgs.call(void 0, options.json)],
7893
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunk3XKAOV74js.parseJsonFields.call(void 0,
7894
+ [...fullJson ? ["--full"] : [], ..._chunk3XKAOV74js.jsonFieldArgs.call(void 0, options.json)],
7895
7895
  "run"
7896
7896
  ).fields;
7897
7897
  const watch = options.wait === false ? false : base.watch;
7898
7898
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
7899
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkVVFH745Ljs.argsWantJson.call(void 0, []) : explicitJson;
7899
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunk3XKAOV74js.argsWantJson.call(void 0, []) : explicitJson;
7900
7900
  const verboseLogs = Boolean(
7901
7901
  debugAlias || logLevel === "debug" || debugMapLatency
7902
7902
  );
@@ -7940,7 +7940,7 @@ function playAuthoringGraphPath(parent, filePath) {
7940
7940
  // src/cli/renderers/local-play-execution.ts
7941
7941
  function renderLocalPlayExecutionPlan(plan, options = {}) {
7942
7942
  if (options.dryRun) {
7943
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7943
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
7944
7944
  return;
7945
7945
  }
7946
7946
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -8904,7 +8904,7 @@ function playStatusErrorText(status) {
8904
8904
  function isRetryablePendingStartFailure(status) {
8905
8905
  if (status.status !== "failed") return false;
8906
8906
  if (status.runId && status.runId !== "pending") return false;
8907
- return _chunkRUYZAREBjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8907
+ return _chunkHC5L6KGEjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
8908
8908
  }
8909
8909
  function pendingStartFailureStatus(input) {
8910
8910
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -8931,13 +8931,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
8931
8931
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
8932
8932
  function watchSurfaceReaches(state, provenance, level) {
8933
8933
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
8934
- if (!_chunkRUYZAREBjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8934
+ if (!_chunkHC5L6KGEjs.logLevelReaches.call(void 0, level, minimumLevel)) {
8935
8935
  return false;
8936
8936
  }
8937
- if (_chunkRUYZAREBjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8937
+ if (_chunkHC5L6KGEjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8938
8938
  return true;
8939
8939
  }
8940
- return state.verbose === true && _chunkRUYZAREBjs.logProvenanceReaches.call(void 0, provenance, "debug");
8940
+ return state.verbose === true && _chunkHC5L6KGEjs.logProvenanceReaches.call(void 0, provenance, "debug");
8941
8941
  }
8942
8942
  function getEventPayload(event) {
8943
8943
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -9439,7 +9439,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
9439
9439
  }
9440
9440
  function openPlayDashboard(dashboardUrl, open2) {
9441
9441
  if (open2 && dashboardUrl) {
9442
- _chunkVVFH745Ljs.openInBrowser.call(void 0, dashboardUrl);
9442
+ _chunk3XKAOV74js.openInBrowser.call(void 0, dashboardUrl);
9443
9443
  }
9444
9444
  }
9445
9445
  function printPlayLogLines(input) {
@@ -9501,7 +9501,7 @@ async function waitForPlayCompletionByWatch(input) {
9501
9501
  billing: false
9502
9502
  });
9503
9503
  } catch (error) {
9504
- if (_chunkRUYZAREBjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9504
+ if (_chunkHC5L6KGEjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9505
9505
  return null;
9506
9506
  }
9507
9507
  throw error;
@@ -9690,7 +9690,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9690
9690
  billing: false
9691
9691
  });
9692
9692
  } catch (error) {
9693
- if (_chunkRUYZAREBjs.isTransientPlayRunReadError.call(void 0, error)) {
9693
+ if (_chunkHC5L6KGEjs.isTransientPlayRunReadError.call(void 0, error)) {
9694
9694
  return null;
9695
9695
  }
9696
9696
  throw error;
@@ -9898,7 +9898,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9898
9898
  lastPhase
9899
9899
  });
9900
9900
  }
9901
- if (lastKnownWorkflowId && _chunkRUYZAREBjs.isTransientPlayRunReadError.call(void 0, error)) {
9901
+ if (lastKnownWorkflowId && _chunkHC5L6KGEjs.isTransientPlayRunReadError.call(void 0, error)) {
9902
9902
  if (timeout) {
9903
9903
  clearTimeout(timeout);
9904
9904
  }
@@ -9934,7 +9934,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9934
9934
  onRunAdmitted: confirmAdmission
9935
9935
  });
9936
9936
  }
9937
- if (!lastKnownWorkflowId && _chunkRUYZAREBjs.isTransientPlayRunReadError.call(void 0, error)) {
9937
+ if (!lastKnownWorkflowId && _chunkHC5L6KGEjs.isTransientPlayRunReadError.call(void 0, error)) {
9938
9938
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
9939
9939
  phase: "cli.play_start_stream_transient_failure",
9940
9940
  ms: Date.now() - startedAt,
@@ -10033,7 +10033,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10033
10033
  "logs"
10034
10034
  ]);
10035
10035
  function formatPlayLogLine(rawLine, state) {
10036
- const classified = _chunkRUYZAREBjs.classifyLogLine.call(void 0, rawLine);
10036
+ const classified = _chunkHC5L6KGEjs.classifyLogLine.call(void 0, rawLine);
10037
10037
  const line = classified.line;
10038
10038
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10039
10039
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _308 => _308[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10048,14 +10048,14 @@ function formatPlayLogLine(rawLine, state) {
10048
10048
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10049
10049
  const providerWait = formatProviderCapacityWaitLogLine(line);
10050
10050
  if (providerWait && !state.verbose) {
10051
- return _chunkRUYZAREBjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10051
+ return _chunkHC5L6KGEjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10052
10052
  }
10053
10053
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10054
10054
  if (mapProgress && !state.verbose) {
10055
- return _chunkRUYZAREBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10055
+ return _chunkHC5L6KGEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10056
10056
  }
10057
10057
  if (/\[worker\] picked up run\b/.test(message)) {
10058
- if (!_chunkRUYZAREBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10058
+ if (!_chunkHC5L6KGEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10059
10059
  return null;
10060
10060
  }
10061
10061
  if (state.emittedRunnerStarted) {
@@ -10068,7 +10068,7 @@ function formatPlayLogLine(rawLine, state) {
10068
10068
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10069
10069
  );
10070
10070
  if (mapStart) {
10071
- if (!_chunkRUYZAREBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10071
+ if (!_chunkHC5L6KGEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10072
10072
  return null;
10073
10073
  }
10074
10074
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10078,7 +10078,7 @@ function formatPlayLogLine(rawLine, state) {
10078
10078
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10079
10079
  );
10080
10080
  if (mapDone) {
10081
- if (!_chunkRUYZAREBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10081
+ if (!_chunkHC5L6KGEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10082
10082
  return null;
10083
10083
  }
10084
10084
  const [, results, executed, cached] = mapDone;
@@ -10305,9 +10305,7 @@ function buildRunNextCommands(status) {
10305
10305
  const exportDatasetCmds = Array.isArray(actions2.exportDatasetCmds) ? actions2.exportDatasetCmds : !status.package && extractCanonicalRowsInfo(status) ? [`deepline runs export ${runId} --out output.csv`] : [];
10306
10306
  const commands = {
10307
10307
  get: String(_nullishCoalesce(actions2.getRunCmd, () => ( `deepline runs get ${runId}`))),
10308
- full: String(
10309
- _nullishCoalesce(actions2.getFullRunCmd, () => ( `deepline runs get ${runId} --full`))
10310
- ),
10308
+ full: String(_nullishCoalesce(actions2.getFullRunCmd, () => ( `deepline runs get ${runId} --full`))),
10311
10309
  ...exportDatasetCmds.length === 1 ? { export: String(exportDatasetCmds[0]) } : {},
10312
10310
  logs: String(
10313
10311
  !status.package ? `deepline runs logs ${runId} --out run.log` : _nullishCoalesce(actions2.getLogsCmd, () => ( `deepline runs logs ${runId} --limit 100`))
@@ -11367,7 +11365,7 @@ function formatRecentRunLogLines(value) {
11367
11365
  (line) => typeof line === "string"
11368
11366
  );
11369
11367
  if (tail.length === 0) return [];
11370
- const shown = tail.map((line) => _chunkRUYZAREBjs.classifyLogLine.call(void 0, line)).filter(
11368
+ const shown = tail.map((line) => _chunkHC5L6KGEjs.classifyLogLine.call(void 0, line)).filter(
11371
11369
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
11372
11370
  ).slice(-8);
11373
11371
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11643,11 +11641,11 @@ function buildPlayCompletionTextLines(status) {
11643
11641
  }
11644
11642
  function writePlayResult(status, jsonOutput, options) {
11645
11643
  const packaged = getPlayRunPackage(status);
11646
- if (status.package) _chunk2JRRXXTAjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11644
+ if (status.package) _chunkYPVTQRUMjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11647
11645
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _389 => _389.hits]), () => ( null));
11648
11646
  if (jsonOutput) {
11649
11647
  const payload2 = _optionalChain([options, 'optionalAccess', _390 => _390.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11650
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
11648
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
11651
11649
  hits ? { ...payload2, hits } : payload2,
11652
11650
  { json: true, fields: _optionalChain([options, 'optionalAccess', _391 => _391.jsonFields]) }
11653
11651
  );
@@ -11663,7 +11661,7 @@ function writePlayResult(status, jsonOutput, options) {
11663
11661
  ...buildPlayCompletionTextLines(status),
11664
11662
  ...formatRunHitsLines(hits)
11665
11663
  ];
11666
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0, displayPackage, {
11664
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0, displayPackage, {
11667
11665
  json: false,
11668
11666
  text: `${lines2.join("\n")}
11669
11667
  `
@@ -11714,7 +11712,7 @@ function writePlayResult(status, jsonOutput, options) {
11714
11712
  lines.push(...buildBillingRollupTextLines(status));
11715
11713
  const compact = compactPlayStatus(status);
11716
11714
  const payload = _optionalChain([options, 'optionalAccess', _393 => _393.fullJson]) ? status : compact;
11717
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
11715
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
11718
11716
  {
11719
11717
  ...payload,
11720
11718
  render: {
@@ -12297,9 +12295,7 @@ function formatActiveRunConflictError(input) {
12297
12295
  ` active: ${runId}${status ? ` status=${status}` : ""}${startedAt ? ` startedAt=${startedAt}` : ""}`
12298
12296
  );
12299
12297
  lines.push(` get: deepline runs get ${runId}`);
12300
- lines.push(
12301
- ` stop: deepline runs stop ${runId} --reason "stale lock"`
12302
- );
12298
+ lines.push(` stop: deepline runs stop ${runId} --reason "stale lock"`);
12303
12299
  }
12304
12300
  lines.push(
12305
12301
  ` rerun: start another run with the same deepline plays run command`
@@ -12473,7 +12469,7 @@ function renderServerResultView(value) {
12473
12469
  function writeStartedPlayRun(input) {
12474
12470
  if (input.package && isPlayRunPackageValue(input.package)) {
12475
12471
  const run = input.package.run;
12476
- _chunk2JRRXXTAjs.recordPlayTermination.call(void 0, {
12472
+ _chunkYPVTQRUMjs.recordPlayTermination.call(void 0, {
12477
12473
  id: run.id,
12478
12474
  status: run.status,
12479
12475
  finishedAt: run.finishedAt
@@ -12486,7 +12482,7 @@ function writeStartedPlayRun(input) {
12486
12482
  dashboardUrl: input.dashboardUrl,
12487
12483
  package: input.package
12488
12484
  };
12489
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12485
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12490
12486
  json: true,
12491
12487
  fields: input.jsonFields
12492
12488
  });
@@ -12508,7 +12504,7 @@ function writeStartedPlayRun(input) {
12508
12504
  input.progress.writeLine(output2, process.stdout);
12509
12505
  return;
12510
12506
  }
12511
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0, input.package, {
12507
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0, input.package, {
12512
12508
  json: false,
12513
12509
  text: `${output2}
12514
12510
  `
@@ -12537,7 +12533,7 @@ function writeStartedPlayRun(input) {
12537
12533
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12538
12534
  ];
12539
12535
  if (input.jsonOutput) {
12540
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12536
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12541
12537
  return;
12542
12538
  }
12543
12539
  if (input.dashboardUrl) {
@@ -12548,7 +12544,7 @@ function writeStartedPlayRun(input) {
12548
12544
  input.progress.writeLine(output, process.stdout);
12549
12545
  return;
12550
12546
  }
12551
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
12547
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
12552
12548
  {
12553
12549
  ...payload,
12554
12550
  render: { sections: [{ title: "play run", lines }] }
@@ -12558,7 +12554,7 @@ function writeStartedPlayRun(input) {
12558
12554
  );
12559
12555
  }
12560
12556
  function parsePlayCheckOptions(args) {
12561
- const selection = _chunkVVFH745Ljs.parseJsonFields.call(void 0, args, "check");
12557
+ const selection = _chunk3XKAOV74js.parseJsonFields.call(void 0, args, "check");
12562
12558
  args = selection.args;
12563
12559
  const target = args[0];
12564
12560
  if (!target || target.startsWith("-")) {
@@ -12570,7 +12566,7 @@ function parsePlayCheckOptions(args) {
12570
12566
  if (arg !== "--json" && arg !== "--full")
12571
12567
  throw new Error(`Unknown plays check option: ${arg}`);
12572
12568
  }
12573
- const jsonOutput = _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
12569
+ const jsonOutput = _chunk3XKAOV74js.argsWantJson.call(void 0, args);
12574
12570
  return {
12575
12571
  target,
12576
12572
  jsonOutput,
@@ -12646,7 +12642,7 @@ ${PLAY_PUBLISH_USAGE}`
12646
12642
  useLatest,
12647
12643
  expectedArtifactHash,
12648
12644
  dryRun,
12649
- jsonOutput: _chunkVVFH745Ljs.argsWantJson.call(void 0, args)
12645
+ jsonOutput: _chunk3XKAOV74js.argsWantJson.call(void 0, args)
12650
12646
  };
12651
12647
  }
12652
12648
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12687,7 +12683,7 @@ ${PLAY_SAVE_USAGE}`);
12687
12683
  target,
12688
12684
  expectedArtifactHash,
12689
12685
  dryRun,
12690
- jsonOutput: _chunkVVFH745Ljs.argsWantJson.call(void 0, args)
12686
+ jsonOutput: _chunk3XKAOV74js.argsWantJson.call(void 0, args)
12691
12687
  };
12692
12688
  }
12693
12689
  function printScheduledPlayCapacity(capacity) {
@@ -12898,7 +12894,7 @@ function printBundledRuntimeWarning(bundle) {
12898
12894
  async function handlePlayCheck(args) {
12899
12895
  const options = parsePlayCheckOptions(args);
12900
12896
  if (!isFileTarget2(options.target)) {
12901
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
12897
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
12902
12898
  try {
12903
12899
  await assertCanonicalNamedPlayReference(client, options.target, {
12904
12900
  command: "check"
@@ -12927,7 +12923,7 @@ async function handlePlayCheck(args) {
12927
12923
  },
12928
12924
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12929
12925
  };
12930
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0, result, {
12926
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0, result, {
12931
12927
  json: options.jsonOutput,
12932
12928
  fields: options.jsonFields,
12933
12929
  text: renderPlayCheckOutput(result) + "\n"
@@ -12937,7 +12933,7 @@ async function handlePlayCheck(args) {
12937
12933
  const resolved = _path.resolve.call(void 0, options.target);
12938
12934
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12939
12935
  if (options.jsonOutput) {
12940
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
12936
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
12941
12937
  {
12942
12938
  kind: "play_check",
12943
12939
  checked: "named_contract",
@@ -12979,7 +12975,7 @@ async function handlePlayCheck(args) {
12979
12975
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
12980
12976
  publishCommand: _optionalChain([primary, 'optionalAccess', _440 => _440.result, 'access', _441 => _441.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
12981
12977
  });
12982
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0, output, {
12978
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0, output, {
12983
12979
  json: options.jsonOutput,
12984
12980
  fields: options.jsonFields,
12985
12981
  text: renderPlayCheckOutput(output) + "\n"
@@ -13033,7 +13029,7 @@ async function checkOneExportedPlay(input) {
13033
13029
  }
13034
13030
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
13035
13031
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
13036
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
13032
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
13037
13033
  const integrationMode = resolveEvalIntegrationMode();
13038
13034
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
13039
13035
  playName: node.playName,
@@ -13110,7 +13106,7 @@ async function handleFileBackedRun(options, hooks) {
13110
13106
  );
13111
13107
  return 0;
13112
13108
  }
13113
- client = new (0, _chunkRUYZAREBjs.DeeplineClient)(playRunClientOptions(options));
13109
+ client = new (0, _chunkHC5L6KGEjs.DeeplineClient)(playRunClientOptions(options));
13114
13110
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
13115
13111
  if (canDeferCompilerManifest) {
13116
13112
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
@@ -13305,7 +13301,7 @@ async function handleNamedRun(options, hooks) {
13305
13301
  if (options.target.kind !== "name") {
13306
13302
  throw new Error("Expected a named play run target.");
13307
13303
  }
13308
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)(playRunClientOptions(options));
13304
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)(playRunClientOptions(options));
13309
13305
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
13310
13306
  const playName = options.target.name;
13311
13307
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -13702,10 +13698,10 @@ function renderRunOverviewText(overview, extras = {}) {
13702
13698
  );
13703
13699
  return `${lines.join("\n")}
13704
13700
 
13705
- ${_chunkVVFH745Ljs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13701
+ ${_chunk3XKAOV74js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13706
13702
  }
13707
13703
  async function handleRunGet(args) {
13708
- const selection = _chunkVVFH745Ljs.parseJsonFields.call(void 0,
13704
+ const selection = _chunk3XKAOV74js.parseJsonFields.call(void 0,
13709
13705
  args,
13710
13706
  args.includes("--config") ? "config" : "get"
13711
13707
  );
@@ -13718,7 +13714,7 @@ async function handleRunGet(args) {
13718
13714
  console.error(error instanceof Error ? error.message : usage2);
13719
13715
  return 1;
13720
13716
  }
13721
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
13717
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
13722
13718
  if (args.includes("--config")) {
13723
13719
  if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
13724
13720
  console.error(
@@ -13732,7 +13728,7 @@ async function handleRunGet(args) {
13732
13728
  "This server does not support recorded configuration reads."
13733
13729
  );
13734
13730
  }
13735
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
13731
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
13736
13732
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13737
13733
  { json: true, fields: selection.fields }
13738
13734
  );
@@ -13740,7 +13736,7 @@ async function handleRunGet(args) {
13740
13736
  }
13741
13737
  if (args.includes("--input")) {
13742
13738
  const input = await client.getRunInput(runId);
13743
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0, input, { json: true });
13739
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0, input, { json: true });
13744
13740
  return 0;
13745
13741
  }
13746
13742
  const full = args.includes("--full");
@@ -13748,14 +13744,14 @@ async function handleRunGet(args) {
13748
13744
  full: false,
13749
13745
  failedLogs: args.includes("--log-failed")
13750
13746
  });
13751
- if (status.package) _chunk2JRRXXTAjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13747
+ if (status.package) _chunkYPVTQRUMjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13752
13748
  if (!status.package) {
13753
13749
  const legacyStatus = full ? await client.runs.get(runId, {
13754
13750
  full: true,
13755
13751
  failedLogs: args.includes("--log-failed")
13756
13752
  }) : status;
13757
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
13758
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
13753
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
13754
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
13759
13755
  full ? legacyStatus : compactPlayStatus(legacyStatus),
13760
13756
  { json: true, fields: selection.fields }
13761
13757
  );
@@ -13771,8 +13767,8 @@ async function handleRunGet(args) {
13771
13767
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
13772
13768
  ]);
13773
13769
  const hitLines = formatRunHitsLines(hits);
13774
- const json = _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
13775
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
13770
+ const json = _chunk3XKAOV74js.argsWantJson.call(void 0, args);
13771
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
13776
13772
  {
13777
13773
  ...overview,
13778
13774
  credits,
@@ -13875,9 +13871,9 @@ async function handleRunLifecycleStatus(args) {
13875
13871
  console.error(error instanceof Error ? error.message : usage2);
13876
13872
  return 1;
13877
13873
  }
13878
- const status = await new (0, _chunkRUYZAREBjs.DeeplineClient)().runs.status(runId);
13879
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
13880
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0, status, { json: true });
13874
+ const status = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().runs.status(runId);
13875
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
13876
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0, status, { json: true });
13881
13877
  return 0;
13882
13878
  }
13883
13879
  if (!status.available) {
@@ -13917,7 +13913,7 @@ async function handleRunsRerun(args) {
13917
13913
  console.error(error instanceof Error ? error.message : usage2);
13918
13914
  return 1;
13919
13915
  }
13920
- const options = { json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) };
13916
+ const options = { json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) };
13921
13917
  for (let index = 0; index < args.length; index += 1) {
13922
13918
  if (args[index] === "--idempotency-key") {
13923
13919
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -13982,8 +13978,8 @@ ${usage2}
13982
13978
  Discover Plays: ${next.discover}
13983
13979
  Active runs: ${next.running}`
13984
13980
  );
13985
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
13986
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
13981
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
13982
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
13987
13983
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
13988
13984
  { json: true }
13989
13985
  );
@@ -13998,7 +13994,7 @@ Active runs: ${next.running}`
13998
13994
  console.error("--offset requires --play.");
13999
13995
  return 1;
14000
13996
  }
14001
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
13997
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
14002
13998
  const page = await client.runs.listPage({
14003
13999
  ...playName ? { play: playName } : {},
14004
14000
  ...statusFilter ? { status: statusFilter } : {},
@@ -14067,7 +14063,7 @@ Active runs: ${next.running}`
14067
14063
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14068
14064
  );
14069
14065
  }
14070
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
14066
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
14071
14067
  {
14072
14068
  runs,
14073
14069
  count: runs.length,
@@ -14081,7 +14077,7 @@ Active runs: ${next.running}`
14081
14077
  },
14082
14078
  render: { sections: [{ title: "runs", lines }] }
14083
14079
  },
14084
- { json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) }
14080
+ { json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) }
14085
14081
  );
14086
14082
  return 0;
14087
14083
  }
@@ -14111,7 +14107,7 @@ async function handleRunTail(args) {
14111
14107
  console.error("--log-level requires one of: debug, info, warn, error.");
14112
14108
  return 1;
14113
14109
  }
14114
- const parsed = _chunkRUYZAREBjs.parseLogLevel.call(void 0, value);
14110
+ const parsed = _chunkHC5L6KGEjs.parseLogLevel.call(void 0, value);
14115
14111
  if (!parsed) {
14116
14112
  console.error(
14117
14113
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14149,9 +14145,9 @@ async function handleRunTail(args) {
14149
14145
  );
14150
14146
  return 1;
14151
14147
  }
14152
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
14148
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
14153
14149
  const jsonLines = args.includes("--jsonl");
14154
- const jsonOutput = !jsonLines && _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
14150
+ const jsonOutput = !jsonLines && _chunk3XKAOV74js.argsWantJson.call(void 0, args);
14155
14151
  const compact = args.includes("--compact");
14156
14152
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14157
14153
  const compactState = {
@@ -14232,7 +14228,7 @@ async function handleRunLogs(args) {
14232
14228
  ]);
14233
14229
  const cursorIndex = args.indexOf("--cursor");
14234
14230
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14235
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkRUYZAREBjs.isRunLogsCursor.call(void 0, cursorValue));
14231
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkHC5L6KGEjs.isRunLogsCursor.call(void 0, cursorValue));
14236
14232
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14237
14233
  return handleRunEventSearch(args);
14238
14234
  }
@@ -14266,7 +14262,7 @@ async function handleRunLogs(args) {
14266
14262
  console.error("--log-level requires one of: debug, info, warn, error.");
14267
14263
  return 1;
14268
14264
  }
14269
- const parsed = _chunkRUYZAREBjs.parseLogLevel.call(void 0, value);
14265
+ const parsed = _chunkHC5L6KGEjs.parseLogLevel.call(void 0, value);
14270
14266
  if (!parsed) {
14271
14267
  console.error(
14272
14268
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14313,12 +14309,12 @@ async function handleRunLogs(args) {
14313
14309
  );
14314
14310
  return 1;
14315
14311
  }
14316
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
14312
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
14317
14313
  if (outPath) {
14318
14314
  const result2 = await client.runs.logs(runId, { all: true });
14319
- const logs = result2.entries.filter((line) => _chunkRUYZAREBjs.logLevelReaches.call(void 0, _chunkRUYZAREBjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkRUYZAREBjs.classifyLogLine.call(void 0, line).line);
14315
+ const logs = result2.entries.filter((line) => _chunkHC5L6KGEjs.logLevelReaches.call(void 0, _chunkHC5L6KGEjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkHC5L6KGEjs.classifyLogLine.call(void 0, line).line);
14320
14316
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14321
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
14317
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
14322
14318
  {
14323
14319
  runId: result2.runId,
14324
14320
  log_path: outPath,
@@ -14341,7 +14337,7 @@ async function handleRunLogs(args) {
14341
14337
  ]
14342
14338
  }
14343
14339
  },
14344
- { json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) }
14340
+ { json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) }
14345
14341
  );
14346
14342
  return 0;
14347
14343
  }
@@ -14372,7 +14368,7 @@ async function handleRunLogs(args) {
14372
14368
  }
14373
14369
  };
14374
14370
  const text = buildRunLogsText(filteredResult);
14375
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
14371
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
14376
14372
  {
14377
14373
  runId: result.runId,
14378
14374
  totalCount: result.totalCount,
@@ -14396,7 +14392,7 @@ async function handleRunLogs(args) {
14396
14392
  render: { sections: [{ title: "run logs", lines: entries }] }
14397
14393
  },
14398
14394
  {
14399
- json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args),
14395
+ json: _chunk3XKAOV74js.argsWantJson.call(void 0, args),
14400
14396
  text
14401
14397
  }
14402
14398
  );
@@ -14420,7 +14416,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14420
14416
  );
14421
14417
  }
14422
14418
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14423
- (entry) => _chunkRUYZAREBjs.logLevelReaches.call(void 0, _chunkRUYZAREBjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14419
+ (entry) => _chunkHC5L6KGEjs.logLevelReaches.call(void 0, _chunkHC5L6KGEjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14424
14420
  );
14425
14421
  const selected = matching.slice(-limit);
14426
14422
  const olderMatchesExist = matching.length > selected.length;
@@ -14430,7 +14426,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14430
14426
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _483 => _483.at, 'call', _484 => _484(-1), 'optionalAccess', _485 => _485.seq]), () => ( null)),
14431
14427
  truncated: result.truncated || olderMatchesExist,
14432
14428
  hasMore: olderMatchesExist,
14433
- nextCursor: olderMatchesExist ? _chunkRUYZAREBjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14429
+ nextCursor: olderMatchesExist ? _chunkHC5L6KGEjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14434
14430
  };
14435
14431
  }
14436
14432
  async function handleRunEventSearch(args) {
@@ -14497,7 +14493,7 @@ ${usage2}`);
14497
14493
  namespace,
14498
14494
  ...backend ? { backend } : {}
14499
14495
  } : void 0;
14500
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
14496
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
14501
14497
  const result = await client.runs.searchEvents({
14502
14498
  ...runId ? { runId } : {},
14503
14499
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14569,7 +14565,7 @@ ${renderedDetails}` : ""}`;
14569
14565
  "--limit",
14570
14566
  String(limit)
14571
14567
  ].join(" ") : null;
14572
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
14568
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
14573
14569
  {
14574
14570
  events,
14575
14571
  nextCursor: result.nextCursor,
@@ -14580,14 +14576,14 @@ ${renderedDetails}` : ""}`;
14580
14576
  render: { sections: [{ title: "runtime events", lines }] }
14581
14577
  },
14582
14578
  {
14583
- json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args),
14579
+ json: _chunk3XKAOV74js.argsWantJson.call(void 0, args),
14584
14580
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14585
14581
  }
14586
14582
  );
14587
14583
  return 0;
14588
14584
  }
14589
14585
  function buildRunLogsText(result) {
14590
- const lines = result.entries.map((line) => _chunkRUYZAREBjs.classifyLogLine.call(void 0, line).line);
14586
+ const lines = result.entries.map((line) => _chunkHC5L6KGEjs.classifyLogLine.call(void 0, line).line);
14591
14587
  if (result.warning) {
14592
14588
  if (lines.length > 0) lines.push("");
14593
14589
  lines.push(`warning: ${result.warning}`);
@@ -14621,7 +14617,7 @@ async function handleRunStop(args) {
14621
14617
  reason = args[++index];
14622
14618
  }
14623
14619
  }
14624
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
14620
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
14625
14621
  const result = await client.runs.stop(runId, { reason });
14626
14622
  const state = resolveRunStopState(result);
14627
14623
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14636,7 +14632,7 @@ async function handleRunStop(args) {
14636
14632
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14637
14633
  `inspect: deepline runs get ${runId} --full`
14638
14634
  ];
14639
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
14635
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
14640
14636
  {
14641
14637
  ...cancelling,
14642
14638
  state,
@@ -14651,7 +14647,7 @@ async function handleRunStop(args) {
14651
14647
  ]
14652
14648
  }
14653
14649
  },
14654
- { json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) }
14650
+ { json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) }
14655
14651
  );
14656
14652
  return 0;
14657
14653
  }
@@ -14668,7 +14664,7 @@ async function handleRunStop(args) {
14668
14664
  ];
14669
14665
  process.stderr.write(`${lines2.join("\n")}
14670
14666
  `);
14671
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
14667
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
14672
14668
  {
14673
14669
  ...result,
14674
14670
  render: {
@@ -14683,7 +14679,7 @@ async function handleRunStop(args) {
14683
14679
  ]
14684
14680
  }
14685
14681
  },
14686
- { json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) }
14682
+ { json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) }
14687
14683
  );
14688
14684
  return 1;
14689
14685
  }
@@ -14694,12 +14690,12 @@ async function handleRunStop(args) {
14694
14690
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14695
14691
  ] : []
14696
14692
  ];
14697
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
14693
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
14698
14694
  {
14699
14695
  ...result,
14700
14696
  render: { sections: [{ title: "run stop", lines }] }
14701
14697
  },
14702
- { json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) }
14698
+ { json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) }
14703
14699
  );
14704
14700
  return 0;
14705
14701
  }
@@ -14749,18 +14745,18 @@ async function handleRunStopAll(args) {
14749
14745
  reason = args[++index];
14750
14746
  }
14751
14747
  }
14752
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
14748
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
14753
14749
  if (dryRun) {
14754
14750
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14755
14751
  const lines2 = buildStopAllDryRunTextLines(result2);
14756
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
14752
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
14757
14753
  {
14758
14754
  ...result2,
14759
14755
  render: {
14760
14756
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14761
14757
  }
14762
14758
  },
14763
- { json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14759
+ { json: _chunk3XKAOV74js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14764
14760
  ` }
14765
14761
  );
14766
14762
  return 0;
@@ -14773,17 +14769,17 @@ async function handleRunStopAll(args) {
14773
14769
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14774
14770
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14775
14771
  ];
14776
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
14772
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
14777
14773
  {
14778
14774
  ...result,
14779
14775
  render: { sections: [{ title: "workspace stop-all", lines }] }
14780
14776
  },
14781
- { json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) }
14777
+ { json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) }
14782
14778
  );
14783
14779
  return result.failed > 0 || result.partial ? 1 : 0;
14784
14780
  }
14785
14781
  async function handleRunExport(args) {
14786
- const selection = _chunkVVFH745Ljs.parseJsonFields.call(void 0, args, "export");
14782
+ const selection = _chunk3XKAOV74js.parseJsonFields.call(void 0, args, "export");
14787
14783
  args = selection.args;
14788
14784
  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]";
14789
14785
  let runId;
@@ -14842,16 +14838,16 @@ async function handleRunExport(args) {
14842
14838
  "INVALID_ARGUMENT"
14843
14839
  );
14844
14840
  }
14845
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
14841
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
14846
14842
  let status = await client.getPlayStatus(runId, { full: true });
14847
14843
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14848
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkVVFH745Ljs.argsWantJson.call(void 0, args));
14844
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunk3XKAOV74js.argsWantJson.call(void 0, args));
14849
14845
  try {
14850
14846
  await waitForPlayCompletionByWatch({
14851
14847
  client,
14852
14848
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14853
14849
  workflowId: runId,
14854
- jsonOutput: _chunkVVFH745Ljs.argsWantJson.call(void 0, args),
14850
+ jsonOutput: _chunk3XKAOV74js.argsWantJson.call(void 0, args),
14855
14851
  emitLogs: false,
14856
14852
  waitTimeoutMs,
14857
14853
  startedAt: Date.now(),
@@ -14951,8 +14947,8 @@ async function handleRunExport(args) {
14951
14947
  "utf-8"
14952
14948
  );
14953
14949
  }
14954
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0, payload, {
14955
- json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args),
14950
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0, payload, {
14951
+ json: _chunk3XKAOV74js.argsWantJson.call(void 0, args),
14956
14952
  fields: selection.fields,
14957
14953
  text: `${lines.join("\n")}
14958
14954
  `
@@ -14973,10 +14969,10 @@ async function handlePlayGet(args) {
14973
14969
  );
14974
14970
  return 2;
14975
14971
  }
14976
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
14972
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
14977
14973
  const explicitJson = args.includes("--json");
14978
14974
  const sourceOutput = args.includes("--source");
14979
- const jsonOutput = sourceOutput ? explicitJson : _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
14975
+ const jsonOutput = sourceOutput ? explicitJson : _chunk3XKAOV74js.argsWantJson.call(void 0, args);
14980
14976
  const requestedRevisionFlags = [
14981
14977
  args.includes("--working"),
14982
14978
  args.includes("--live"),
@@ -15036,7 +15032,7 @@ async function handlePlayGet(args) {
15036
15032
  }
15037
15033
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15038
15034
  if (jsonOutput) {
15039
- _chunkVVFH745Ljs.printCompactJson.call(void 0, {
15035
+ _chunk3XKAOV74js.printCompactJson.call(void 0, {
15040
15036
  ...detail,
15041
15037
  ...materializedFile ? {
15042
15038
  message: loadedMessage,
@@ -15128,8 +15124,8 @@ async function handlePlayVersions(args) {
15128
15124
  console.error("Usage: deepline plays versions --name <name> [--json]");
15129
15125
  return 1;
15130
15126
  }
15131
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
15132
- const jsonOutput = _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
15127
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
15128
+ const jsonOutput = _chunk3XKAOV74js.argsWantJson.call(void 0, args);
15133
15129
  await assertCanonicalNamedPlayReference(client, playName, {
15134
15130
  command: "versions"
15135
15131
  });
@@ -15137,7 +15133,7 @@ async function handlePlayVersions(args) {
15137
15133
  parseReferencedPlayTarget2(playName).playName
15138
15134
  );
15139
15135
  if (jsonOutput) {
15140
- _chunkVVFH745Ljs.printCompactJson.call(void 0, { versions });
15136
+ _chunk3XKAOV74js.printCompactJson.call(void 0, { versions });
15141
15137
  return 0;
15142
15138
  }
15143
15139
  if (versions.length === 0) {
@@ -15169,9 +15165,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
15169
15165
  "signals"
15170
15166
  ];
15171
15167
  async function handlePlayList(args) {
15172
- const jsonOutput = _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
15168
+ const jsonOutput = _chunk3XKAOV74js.argsWantJson.call(void 0, args);
15173
15169
  const showCost = args.includes("--show-cost");
15174
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
15170
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
15175
15171
  const categoriesIndex = args.indexOf("--categories");
15176
15172
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _521 => _521[categoriesIndex + 1], 'optionalAccess', _522 => _522.trim, 'call', _523 => _523()]) : void 0;
15177
15173
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15268,7 +15264,7 @@ async function handlePlayList(args) {
15268
15264
  lines.push("List truncated \u2014 more plays are available.");
15269
15265
  lines.push(`Next page: ${nextPage}`);
15270
15266
  }
15271
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
15267
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
15272
15268
  {
15273
15269
  plays,
15274
15270
  count: plays.length,
@@ -15286,7 +15282,7 @@ async function handlePlayList(args) {
15286
15282
  }
15287
15283
  async function handlePlayPin(args, pinned) {
15288
15284
  const target = _optionalChain([args, 'access', _530 => _530.find, 'call', _531 => _531((arg) => !arg.startsWith("-")), 'optionalAccess', _532 => _532.trim, 'call', _533 => _533()]);
15289
- const jsonOutput = _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
15285
+ const jsonOutput = _chunk3XKAOV74js.argsWantJson.call(void 0, args);
15290
15286
  const dryRun = args.includes("--dry-run");
15291
15287
  if (!target) {
15292
15288
  console.error(
@@ -15304,11 +15300,11 @@ async function handlePlayPin(args, pinned) {
15304
15300
  const name = parsedTarget.playName;
15305
15301
  const plan = { name, pinned, dryRun };
15306
15302
  if (dryRun) {
15307
- _chunkVVFH745Ljs.printCompactJson.call(void 0, plan);
15303
+ _chunk3XKAOV74js.printCompactJson.call(void 0, plan);
15308
15304
  return 0;
15309
15305
  }
15310
- const result = await new (0, _chunkRUYZAREBjs.DeeplineClient)().setPlayPinned(name, pinned);
15311
- if (jsonOutput) _chunkVVFH745Ljs.printCompactJson.call(void 0, result);
15306
+ const result = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().setPlayPinned(name, pinned);
15307
+ if (jsonOutput) _chunk3XKAOV74js.printCompactJson.call(void 0, result);
15312
15308
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15313
15309
  return 0;
15314
15310
  }
@@ -15324,15 +15320,27 @@ function csvColumnLines(csvInput) {
15324
15320
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
15325
15321
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
15326
15322
  }),
15327
- _chunkRUYZAREBjs.CSV_HEADER_MATCHING_NOTE
15323
+ _chunkHC5L6KGEjs.CSV_HEADER_MATCHING_NOTE
15328
15324
  ];
15329
15325
  }
15330
15326
  function describedPlay(play) {
15331
15327
  const reference = formatPlayListReference(play);
15332
15328
  const starter = _nullishCoalesce(play.cloneEditStarter, () => ( buildCloneEditStarter(play)));
15333
15329
  const csv = _nullishCoalesce(play.csvInput, () => ( {}));
15330
+ const csvField2 = typeof csv.inputField === "string" ? csv.inputField : "csv";
15331
+ const alongside = /* @__PURE__ */ new Set([
15332
+ csvField2,
15333
+ "columns",
15334
+ ...Array.isArray(csv.runLevelControlFields) ? csv.runLevelControlFields.map(String) : []
15335
+ ]);
15336
+ const declared = _chunkYPVTQRUMjs.schemaFields.call(void 0, play.inputSchema).map((field) => field.name);
15337
+ const rowNames = _chunkYPVTQRUMjs.schemaFields.call(void 0, csv.rowInputSchema).map((field) => field.name);
15338
+ const replaced = play.csvInput ? (rowNames.length > 0 ? rowNames : declared).filter(
15339
+ (name) => declared.includes(name) && !alongside.has(name)
15340
+ ) : [];
15341
+ const exclusive = replaced.length ? { field: csvField2, with: replaced } : void 0;
15334
15342
  const headers = isRecord2(csv.defaultColumns) ? csv.defaultColumns : {};
15335
- const rowInputs = _chunk2JRRXXTAjs.schemaFields.call(void 0, csv.rowInputSchema).map((field) => {
15343
+ const rowInputs = _chunkYPVTQRUMjs.schemaFields.call(void 0, csv.rowInputSchema).map((field) => {
15336
15344
  const header = [headers[field.name]].flat().filter((name) => name && name !== field.name).join(" or ");
15337
15345
  return header ? {
15338
15346
  ...field,
@@ -15341,7 +15349,7 @@ function describedPlay(play) {
15341
15349
  });
15342
15350
  const rowOutput = _nullishCoalesce(play.rowOutputSchema, () => ( {}));
15343
15351
  const added = isRecord2(rowOutput.addedColumns) ? rowOutput.addedColumns : {};
15344
- const rowOutputs = _chunk2JRRXXTAjs.schemaFields.call(void 0,
15352
+ const rowOutputs = _chunkYPVTQRUMjs.schemaFields.call(void 0,
15345
15353
  Object.keys(added).length ? { properties: added } : rowOutput
15346
15354
  ).map((field) => ({ ...field, required: true }));
15347
15355
  return {
@@ -15351,8 +15359,8 @@ function describedPlay(play) {
15351
15359
  ...play.description ? { description: play.description } : {},
15352
15360
  ...play.observedCost ? { cost: play.observedCost.displayText } : {},
15353
15361
  guidance: [],
15354
- inputs: _chunk2JRRXXTAjs.schemaFields.call(void 0, play.inputSchema),
15355
- outputs: _chunk2JRRXXTAjs.schemaFields.call(void 0, play.outputSchema),
15362
+ inputs: _chunkYPVTQRUMjs.schemaFields.call(void 0, play.inputSchema),
15363
+ outputs: _chunkYPVTQRUMjs.schemaFields.call(void 0, play.outputSchema),
15356
15364
  ...rowInputs.length ? { rowInputs } : {},
15357
15365
  ...rowOutputs.length ? { rowOutputs } : {},
15358
15366
  runner: {
@@ -15361,7 +15369,10 @@ function describedPlay(play) {
15361
15369
  // A CSV play's run command is built by the server around its columns.
15362
15370
  ...play.csvInput ? { cli: play.runCommand } : {}
15363
15371
  },
15364
- ...starter ? { source: starter.command } : {}
15372
+ ...starter ? { source: starter.command } : {},
15373
+ ...exclusive ? { exclusive } : {},
15374
+ // A prebuilt's cost is what its recent runs were charged; there is no rate.
15375
+ ..._optionalChain([play, 'access', _534 => _534.observedCost, 'optionalAccess', _535 => _535.displayText]) ? { cost: play.observedCost.displayText } : {}
15365
15376
  };
15366
15377
  }
15367
15378
  function printPlayDescription(play) {
@@ -15393,7 +15404,7 @@ function printPlayDescription(play) {
15393
15404
  console.log(` ${line}`);
15394
15405
  }
15395
15406
  }
15396
- if (_optionalChain([play, 'access', _534 => _534.toolCategories, 'optionalAccess', _535 => _535.length])) {
15407
+ if (_optionalChain([play, 'access', _536 => _536.toolCategories, 'optionalAccess', _537 => _537.length])) {
15397
15408
  console.log(` Tool categories: ${play.toolCategories.join(", ")}`);
15398
15409
  }
15399
15410
  if (play.aliases.length > 0) {
@@ -15438,7 +15449,7 @@ function printPlayDescription(play) {
15438
15449
  const runtimeLimit = formatPlayRuntimeLimit(play.runtimeLimit);
15439
15450
  if (runtimeLimit) {
15440
15451
  console.log(
15441
- ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _536 => _536.runtimeLimit, 'optionalAccess', _537 => _537.source]), () => ( "live"))})`
15452
+ ` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _538 => _538.runtimeLimit, 'optionalAccess', _539 => _539.source]), () => ( "live"))})`
15442
15453
  );
15443
15454
  }
15444
15455
  printScheduledPlayCapacity(play.activeScheduledPlays);
@@ -15466,17 +15477,17 @@ function formatPlayGrepMatches(matches) {
15466
15477
  return matches.map((match) => `${match.field}: ${match.terms.join(", ")}`).join("; ");
15467
15478
  }
15468
15479
  async function handlePlayGrep(args) {
15469
- const query = _optionalChain([args, 'access', _538 => _538[0], 'optionalAccess', _539 => _539.trim, 'call', _540 => _540()]);
15480
+ const query = _optionalChain([args, 'access', _540 => _540[0], 'optionalAccess', _541 => _541.trim, 'call', _542 => _542()]);
15470
15481
  if (!query) {
15471
15482
  console.error("Usage: deepline plays grep <query> [--json]");
15472
15483
  return 1;
15473
15484
  }
15474
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
15485
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
15475
15486
  const results = (await client.listPlays({ grep: query })).map(
15476
15487
  summarizePlayGrepResult
15477
15488
  );
15478
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
15479
- _chunkVVFH745Ljs.printCompactJson.call(void 0, {
15489
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
15490
+ _chunk3XKAOV74js.printCompactJson.call(void 0, {
15480
15491
  plays: results,
15481
15492
  count: results.length,
15482
15493
  query,
@@ -15490,7 +15501,7 @@ async function handlePlayGrep(args) {
15490
15501
  `
15491
15502
  );
15492
15503
  for (const result of results) {
15493
- console.log(_optionalChain([result, 'access', _541 => _541.displayName, 'optionalAccess', _542 => _542.trim, 'call', _543 => _543()]) || result.name);
15504
+ console.log(_optionalChain([result, 'access', _543 => _543.displayName, 'optionalAccess', _544 => _544.trim, 'call', _545 => _545()]) || result.name);
15494
15505
  const matches = formatPlayGrepMatches(result.matches);
15495
15506
  if (matches) console.log(` Matched: ${matches}`);
15496
15507
  console.log(` Describe: ${result.describe}`);
@@ -15499,7 +15510,7 @@ async function handlePlayGrep(args) {
15499
15510
  return 0;
15500
15511
  }
15501
15512
  async function handlePlayDescribe(args) {
15502
- const selection = _chunkVVFH745Ljs.parseJsonFields.call(void 0, args, "describe");
15513
+ const selection = _chunk3XKAOV74js.parseJsonFields.call(void 0, args, "describe");
15503
15514
  args = selection.args;
15504
15515
  const playName = args[0];
15505
15516
  if (!playName) {
@@ -15533,8 +15544,8 @@ async function handlePlayDescribe(args) {
15533
15544
  `deepline plays check ${playName}`,
15534
15545
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15535
15546
  ];
15536
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
15537
- _chunkVVFH745Ljs.printCompactJson.call(void 0, {
15547
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
15548
+ _chunk3XKAOV74js.printCompactJson.call(void 0, {
15538
15549
  ok: false,
15539
15550
  error: { message },
15540
15551
  next
@@ -15548,7 +15559,7 @@ async function handlePlayDescribe(args) {
15548
15559
  }
15549
15560
  return 2;
15550
15561
  }
15551
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
15562
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
15552
15563
  await assertCanonicalNamedPlayReference(client, playName, {
15553
15564
  command: "describe"
15554
15565
  });
@@ -15558,9 +15569,9 @@ async function handlePlayDescribe(args) {
15558
15569
  compact: args.includes("--compact")
15559
15570
  }
15560
15571
  );
15561
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
15562
- if (selection.fields) _chunkVVFH745Ljs.printJson.call(void 0, play, selection.fields);
15563
- else _chunkVVFH745Ljs.printCompactJson.call(void 0, play);
15572
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
15573
+ if (selection.fields) _chunk3XKAOV74js.printJson.call(void 0, play, selection.fields);
15574
+ else _chunk3XKAOV74js.printCompactJson.call(void 0, play);
15564
15575
  return 0;
15565
15576
  }
15566
15577
  printPlayDescription(play);
@@ -15604,7 +15615,7 @@ async function handlePlaySave(args) {
15604
15615
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15605
15616
  };
15606
15617
  if (options.jsonOutput) {
15607
- _chunkVVFH745Ljs.printCompactJson.call(void 0, result);
15618
+ _chunk3XKAOV74js.printCompactJson.call(void 0, result);
15608
15619
  } else {
15609
15620
  console.error(result.message);
15610
15621
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15626,7 +15637,7 @@ async function handlePlaySave(args) {
15626
15637
  };
15627
15638
  if (options.dryRun) {
15628
15639
  if (options.jsonOutput) {
15629
- _chunkVVFH745Ljs.printCompactJson.call(void 0, dryRun);
15640
+ _chunk3XKAOV74js.printCompactJson.call(void 0, dryRun);
15630
15641
  } else {
15631
15642
  console.log(`Dry run: ${playName}`);
15632
15643
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15635,7 +15646,7 @@ async function handlePlaySave(args) {
15635
15646
  }
15636
15647
  return 0;
15637
15648
  }
15638
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
15649
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
15639
15650
  try {
15640
15651
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
15641
15652
  "cli.play_save_compile_manifests",
@@ -15671,7 +15682,7 @@ async function handlePlaySave(args) {
15671
15682
  }
15672
15683
  };
15673
15684
  if (options.jsonOutput) {
15674
- _chunkVVFH745Ljs.printCompactJson.call(void 0, result);
15685
+ _chunk3XKAOV74js.printCompactJson.call(void 0, result);
15675
15686
  } else {
15676
15687
  console.log(
15677
15688
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15697,7 +15708,7 @@ async function handlePlayPublish(args) {
15697
15708
  }
15698
15709
  const { target: playName, useLatest } = options;
15699
15710
  let revisionId = options.revisionId;
15700
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
15711
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
15701
15712
  if (isFileTarget2(playName)) {
15702
15713
  if (revisionId || useLatest) {
15703
15714
  console.error(
@@ -15729,7 +15740,7 @@ async function handlePlayPublish(args) {
15729
15740
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15730
15741
  };
15731
15742
  if (options.jsonOutput) {
15732
- _chunkVVFH745Ljs.printCompactJson.call(void 0, result3);
15743
+ _chunk3XKAOV74js.printCompactJson.call(void 0, result3);
15733
15744
  } else {
15734
15745
  console.error(result3.message);
15735
15746
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15752,7 +15763,7 @@ async function handlePlayPublish(args) {
15752
15763
  };
15753
15764
  if (options.dryRun) {
15754
15765
  if (options.jsonOutput) {
15755
- _chunkVVFH745Ljs.printCompactJson.call(void 0, dryRun);
15766
+ _chunk3XKAOV74js.printCompactJson.call(void 0, dryRun);
15756
15767
  } else {
15757
15768
  console.log(`Dry run: ${rootPlayName}`);
15758
15769
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15810,17 +15821,17 @@ async function handlePlayPublish(args) {
15810
15821
  artifactHash,
15811
15822
  liveVersion: _nullishCoalesce(published.version, () => ( null)),
15812
15823
  revisionId: _nullishCoalesce(published.revisionId, () => ( null)),
15813
- previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _544 => _544.version]), () => ( null)),
15814
- previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _545 => _545.artifactHash]), () => ( null)),
15824
+ previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _546 => _546.version]), () => ( null)),
15825
+ previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _547 => _547.artifactHash]), () => ( null)),
15815
15826
  sourceBytes: {
15816
- before: _optionalChain([previousLive, 'optionalAccess', _546 => _546.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15827
+ before: _optionalChain([previousLive, 'optionalAccess', _548 => _548.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
15817
15828
  after: Buffer.byteLength(graph.root.sourceCode, "utf8")
15818
15829
  },
15819
15830
  triggerMetadata: _nullishCoalesce(published.triggerMetadata, () => ( null)),
15820
15831
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15821
15832
  };
15822
15833
  if (options.jsonOutput) {
15823
- _chunkVVFH745Ljs.printCompactJson.call(void 0, result2);
15834
+ _chunk3XKAOV74js.printCompactJson.call(void 0, result2);
15824
15835
  } else {
15825
15836
  printPublishReceipt({
15826
15837
  name: rootPlayName,
@@ -15851,14 +15862,14 @@ async function handlePlayPublish(args) {
15851
15862
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15852
15863
  latest: useLatest
15853
15864
  };
15854
- _chunkVVFH745Ljs.printCompactJson.call(void 0, result2);
15865
+ _chunk3XKAOV74js.printCompactJson.call(void 0, result2);
15855
15866
  return 0;
15856
15867
  }
15857
15868
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
15858
15869
  if (useLatest) {
15859
15870
  const versions = await client.listPlayVersions(resolvedName);
15860
15871
  const latest = versions[0];
15861
- if (!_optionalChain([latest, 'optionalAccess', _547 => _547._id])) {
15872
+ if (!_optionalChain([latest, 'optionalAccess', _549 => _549._id])) {
15862
15873
  console.error(`No saved revisions found for ${resolvedName}.`);
15863
15874
  return 1;
15864
15875
  }
@@ -15875,7 +15886,7 @@ async function handlePlayPublish(args) {
15875
15886
  revisionId ? { revisionId } : {}
15876
15887
  );
15877
15888
  if (options.jsonOutput) {
15878
- _chunkVVFH745Ljs.printCompactJson.call(void 0, result);
15889
+ _chunk3XKAOV74js.printCompactJson.call(void 0, result);
15879
15890
  } else {
15880
15891
  printPublishReceipt({
15881
15892
  name: result.name,
@@ -15915,7 +15926,7 @@ async function handlePlayDelete(args) {
15915
15926
  );
15916
15927
  return 2;
15917
15928
  }
15918
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
15929
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
15919
15930
  let detail;
15920
15931
  try {
15921
15932
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -15939,8 +15950,8 @@ async function handlePlayDelete(args) {
15939
15950
  name: resolvedName,
15940
15951
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
15941
15952
  };
15942
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
15943
- _chunkVVFH745Ljs.printCompactJson.call(void 0, result2);
15953
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
15954
+ _chunk3XKAOV74js.printCompactJson.call(void 0, result2);
15944
15955
  } else {
15945
15956
  process.stdout.write(
15946
15957
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -15950,8 +15961,8 @@ async function handlePlayDelete(args) {
15950
15961
  return 0;
15951
15962
  }
15952
15963
  const result = await client.deletePlay(resolvedName);
15953
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
15954
- _chunkVVFH745Ljs.printCompactJson.call(void 0, result);
15964
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
15965
+ _chunk3XKAOV74js.printCompactJson.call(void 0, result);
15955
15966
  return result.archived || result.alreadyArchived ? 0 : 4;
15956
15967
  }
15957
15968
  if (result.alreadyArchived) {
@@ -15990,13 +16001,13 @@ async function handlePlayRestore(args) {
15990
16001
  );
15991
16002
  return 2;
15992
16003
  }
15993
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
16004
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
15994
16005
  try {
15995
16006
  const result = await client.restorePlay(
15996
16007
  parseReferencedPlayTarget2(playName).playName
15997
16008
  );
15998
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
15999
- _chunkVVFH745Ljs.printCompactJson.call(void 0, result);
16009
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
16010
+ _chunk3XKAOV74js.printCompactJson.call(void 0, result);
16000
16011
  return result.restored || result.alreadyActive ? 0 : 4;
16001
16012
  }
16002
16013
  if (result.alreadyActive) {
@@ -16102,7 +16113,7 @@ Examples:
16102
16113
  ).action(async (target, options) => {
16103
16114
  process.exitCode = await handlePlayCheck([
16104
16115
  target,
16105
- ..._chunkVVFH745Ljs.jsonFieldArgs.call(void 0, options.json),
16116
+ ..._chunk3XKAOV74js.jsonFieldArgs.call(void 0, options.json),
16106
16117
  ...options.full ? ["--full"] : []
16107
16118
  ]);
16108
16119
  });
@@ -16329,9 +16340,9 @@ Examples:
16329
16340
  const limit = Number(options.historyLimit);
16330
16341
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16331
16342
  throw new Error("--history-limit must be an integer from 1 to 30.");
16332
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
16343
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
16333
16344
  if (options.binding) {
16334
- _chunkVVFH745Ljs.printCompactJson.call(void 0,
16345
+ _chunk3XKAOV74js.printCompactJson.call(void 0,
16335
16346
  await client.getPlayTriggerHistory(options.binding, { limit })
16336
16347
  );
16337
16348
  return;
@@ -16339,7 +16350,7 @@ Examples:
16339
16350
  const result = await client.listPlayTriggerInventory({
16340
16351
  cursor: options.cursor
16341
16352
  });
16342
- _chunkVVFH745Ljs.printCompactJson.call(void 0, {
16353
+ _chunk3XKAOV74js.printCompactJson.call(void 0, {
16343
16354
  ...result,
16344
16355
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16345
16356
  });
@@ -16386,7 +16397,7 @@ Examples:
16386
16397
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16387
16398
  throw new Error("--group-by must be kind or trigger_source.");
16388
16399
  }
16389
- const result = await new (0, _chunkRUYZAREBjs.DeeplineClient)().getPlaysActivity({
16400
+ const result = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().getPlaysActivity({
16390
16401
  timeZone: options.timeZone,
16391
16402
  days,
16392
16403
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16400,7 +16411,7 @@ Examples:
16400
16411
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16401
16412
  );
16402
16413
  }
16403
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
16414
+ _chunk3XKAOV74js.printCommandEnvelope.call(void 0,
16404
16415
  { ...result },
16405
16416
  {
16406
16417
  json: Boolean(options.json),
@@ -16429,7 +16440,7 @@ Examples:
16429
16440
  false
16430
16441
  );
16431
16442
  });
16432
- _chunkN5TPMNTTjs.registerDeprecatedSearchCommand.call(void 0,
16443
+ _chunk53PZA4EPjs.registerDeprecatedSearchCommand.call(void 0,
16433
16444
  play,
16434
16445
  (options) => options.all ? ["plays"] : ["prebuilts"]
16435
16446
  );
@@ -16470,9 +16481,9 @@ Examples:
16470
16481
  "--json [fields]",
16471
16482
  "JSON output; optionally select comma-separated dotted paths"
16472
16483
  );
16473
- _chunk2JRRXXTAjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16484
+ _chunkYPVTQRUMjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16474
16485
  async (target, options) => {
16475
- const ownView = () => handlePlayDescribe(_chunkVVFH745Ljs.describeArgs.call(void 0, target, options));
16486
+ const ownView = () => handlePlayDescribe(_chunk3XKAOV74js.describeArgs.call(void 0, target, options));
16476
16487
  const [flagText] = [options.json].filter(
16477
16488
  (value) => typeof value === "string"
16478
16489
  );
@@ -16483,13 +16494,14 @@ Examples:
16483
16494
  process.exitCode = await ownView();
16484
16495
  return;
16485
16496
  }
16486
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-RRBESS3S.js")));
16497
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-N2OBGVJM.js")));
16487
16498
  process.exitCode = await describeAnything(
16488
16499
  name,
16489
16500
  {
16490
16501
  ...options,
16491
16502
  kinds: ["prebuilts", "custom"],
16492
- json: Boolean(options.json)
16503
+ json: Boolean(options.json),
16504
+ fullRecord: true
16493
16505
  },
16494
16506
  // An unknown play keeps this command's suggestions.
16495
16507
  ownView
@@ -16600,7 +16612,7 @@ Examples:
16600
16612
  deepline plays deployments <deployment-id>
16601
16613
  `
16602
16614
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16603
- async (id, options) => id ? _chunkGZQKUFM5js.handleDeploymentGet.call(void 0, id, options) : _chunkGZQKUFM5js.handleDeploymentsList.call(void 0, options)
16615
+ async (id, options) => id ? _chunkRXR7A2MXjs.handleDeploymentGet.call(void 0, id, options) : _chunkRXR7A2MXjs.handleDeploymentsList.call(void 0, options)
16604
16616
  );
16605
16617
  addPublishHelp(
16606
16618
  play.command("publish <target>").description(
@@ -16779,7 +16791,7 @@ Examples:
16779
16791
  ).action(async (runId, options) => {
16780
16792
  process.exitCode = await handleRunGet([
16781
16793
  runId,
16782
- ..._chunkVVFH745Ljs.jsonFieldArgs.call(void 0, options.json),
16794
+ ..._chunk3XKAOV74js.jsonFieldArgs.call(void 0, options.json),
16783
16795
  ...options.full ? ["--full"] : [],
16784
16796
  ...options.input ? ["--input"] : [],
16785
16797
  ...options.config ? ["--config"] : [],
@@ -17054,7 +17066,7 @@ Examples:
17054
17066
  ...options.allowEmpty ? ["--allow-empty"] : [],
17055
17067
  ...options.wait ? ["--wait"] : [],
17056
17068
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17057
- ..._chunkVVFH745Ljs.jsonFieldArgs.call(void 0, options.json)
17069
+ ..._chunk3XKAOV74js.jsonFieldArgs.call(void 0, options.json)
17058
17070
  ]);
17059
17071
  });
17060
17072
  const share = play.command("share").description(
@@ -17195,8 +17207,8 @@ function absolutePublicPlayUrl(path) {
17195
17207
  }
17196
17208
  function shareUrlFields(status) {
17197
17209
  return {
17198
- publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _548 => _548.share, 'optionalAccess', _549 => _549.publicPath])),
17199
- canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _550 => _550.share, 'optionalAccess', _551 => _551.canonicalPath]))
17210
+ publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _550 => _550.share, 'optionalAccess', _551 => _551.publicPath])),
17211
+ canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _552 => _552.share, 'optionalAccess', _553 => _553.canonicalPath]))
17200
17212
  };
17201
17213
  }
17202
17214
  function shareStatusForOutput(status) {
@@ -17220,10 +17232,10 @@ async function handlePlayShareStatus(args) {
17220
17232
  return 2;
17221
17233
  }
17222
17234
  const name = parseReferencedPlayTarget2(target).playName;
17223
- const status = await new (0, _chunkRUYZAREBjs.DeeplineClient)().getSharePage(name);
17235
+ const status = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().getSharePage(name);
17224
17236
  const outputStatus = shareStatusForOutput(status);
17225
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
17226
- _chunkVVFH745Ljs.printCompactJson.call(void 0, outputStatus);
17237
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
17238
+ _chunk3XKAOV74js.printCompactJson.call(void 0, outputStatus);
17227
17239
  return 0;
17228
17240
  }
17229
17241
  if (!outputStatus.share) {
@@ -17262,7 +17274,7 @@ async function handlePlaySharePublish(args) {
17262
17274
  return 2;
17263
17275
  }
17264
17276
  const name = parseReferencedPlayTarget2(target).playName;
17265
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
17277
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
17266
17278
  let revisionId = shareFlagValue(args, "--revision-id");
17267
17279
  let resolvedVersion;
17268
17280
  if (!revisionId) {
@@ -17293,8 +17305,8 @@ async function handlePlaySharePublish(args) {
17293
17305
  );
17294
17306
  if (!hasCompleted) {
17295
17307
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17296
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
17297
- _chunkVVFH745Ljs.printCompactJson.call(void 0, {
17308
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
17309
+ _chunk3XKAOV74js.printCompactJson.call(void 0, {
17298
17310
  ok: false,
17299
17311
  code: "NO_SUCCESSFUL_RUN",
17300
17312
  message,
@@ -17318,8 +17330,8 @@ async function handlePlaySharePublish(args) {
17318
17330
  };
17319
17331
  if (args.includes("--dry-run")) {
17320
17332
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17321
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
17322
- _chunkVVFH745Ljs.printCompactJson.call(void 0, plan);
17333
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
17334
+ _chunk3XKAOV74js.printCompactJson.call(void 0, plan);
17323
17335
  } else {
17324
17336
  console.log(
17325
17337
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17329,13 +17341,13 @@ async function handlePlaySharePublish(args) {
17329
17341
  }
17330
17342
  const status = await client.publishSharePage(name, request);
17331
17343
  const outputStatus = shareStatusForOutput(status);
17332
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
17333
- _chunkVVFH745Ljs.printCompactJson.call(void 0, outputStatus);
17344
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
17345
+ _chunk3XKAOV74js.printCompactJson.call(void 0, outputStatus);
17334
17346
  return 0;
17335
17347
  }
17336
17348
  const urls = shareUrlFields(outputStatus);
17337
17349
  console.log(
17338
- `Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _552 => _552.share, 'optionalAccess', _553 => _553.publicPath]))), () => ( ""))}`
17350
+ `Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _554 => _554.share, 'optionalAccess', _555 => _555.publicPath]))), () => ( ""))}`
17339
17351
  );
17340
17352
  if (urls.canonicalUrl && urls.canonicalUrl !== urls.publicUrl) {
17341
17353
  console.log(`Version URL: ${urls.canonicalUrl}`);
@@ -17361,9 +17373,9 @@ async function handlePlayShareUpdate(args) {
17361
17373
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17362
17374
  ...seoIndexing ? { seoIndexing } : {}
17363
17375
  };
17364
- const status = await new (0, _chunkRUYZAREBjs.DeeplineClient)().updateSharePage(name, request);
17365
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
17366
- _chunkVVFH745Ljs.printCompactJson.call(void 0, status);
17376
+ const status = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().updateSharePage(name, request);
17377
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
17378
+ _chunk3XKAOV74js.printCompactJson.call(void 0, status);
17367
17379
  return 0;
17368
17380
  }
17369
17381
  console.log(`Updated ${name} share settings.`);
@@ -17378,13 +17390,13 @@ async function handlePlayShareRegenerate(args) {
17378
17390
  return 2;
17379
17391
  }
17380
17392
  const name = parseReferencedPlayTarget2(target).playName;
17381
- const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
17393
+ const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
17382
17394
  let revisionId = shareFlagValue(args, "--revision-id");
17383
17395
  const versionFlag = shareFlagValue(args, "--version");
17384
17396
  if (!revisionId && versionFlag) {
17385
17397
  const versions = await client.listPlayVersions(name);
17386
17398
  const chosen = versions.find((r) => r.version === Number(versionFlag));
17387
- if (!_optionalChain([chosen, 'optionalAccess', _554 => _554._id])) {
17399
+ if (!_optionalChain([chosen, 'optionalAccess', _556 => _556._id])) {
17388
17400
  console.error(`Version ${versionFlag} not found for ${name}.`);
17389
17401
  return 4;
17390
17402
  }
@@ -17395,12 +17407,12 @@ async function handlePlayShareRegenerate(args) {
17395
17407
  revisionId ? { revisionId } : {}
17396
17408
  );
17397
17409
  const outputStatus = shareStatusForOutput(status);
17398
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
17399
- _chunkVVFH745Ljs.printCompactJson.call(void 0, outputStatus);
17410
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
17411
+ _chunk3XKAOV74js.printCompactJson.call(void 0, outputStatus);
17400
17412
  return 0;
17401
17413
  }
17402
17414
  const urls = shareUrlFields(outputStatus);
17403
- const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _555 => _555.share, 'optionalAccess', _556 => _556.publishedRevisionId]) === revisionId;
17415
+ const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _557 => _557.share, 'optionalAccess', _558 => _558.publishedRevisionId]) === revisionId;
17404
17416
  console.log(
17405
17417
  `Regenerated public copy for ${name}${regeneratedPublishedRevision && urls.publicUrl ? `: ${urls.publicUrl}` : "."}`
17406
17418
  );
@@ -17421,9 +17433,9 @@ async function handlePlayShareUnpublish(args) {
17421
17433
  return 2;
17422
17434
  }
17423
17435
  const name = parseReferencedPlayTarget2(target).playName;
17424
- const status = await new (0, _chunkRUYZAREBjs.DeeplineClient)().unpublishSharePage(name);
17425
- if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
17426
- _chunkVVFH745Ljs.printCompactJson.call(void 0, status);
17436
+ const status = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().unpublishSharePage(name);
17437
+ if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
17438
+ _chunk3XKAOV74js.printCompactJson.call(void 0, status);
17427
17439
  return 0;
17428
17440
  }
17429
17441
  console.log(`Unpublished ${name}; the public page has been removed.`);