deepline 0.3.302 → 0.3.303

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 (96) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +82 -0
  3. package/dist/bundling-sources/shared_libs/plays/tool-response-contract.ts +25 -0
  4. package/dist/cli/{auth-WHKDFARX.mjs → auth-337SVWQD.mjs} +4 -4
  5. package/dist/cli/auth-4ME3NANJ.js +31 -0
  6. package/dist/cli/{billing-IMFI76GS.js → billing-CVQURTWQ.js} +71 -71
  7. package/dist/cli/{billing-7C66HEMK.mjs → billing-SVGYQSJI.mjs} +5 -5
  8. package/dist/cli/{chunk-OUREAAOT.js → chunk-4D5YQETI.js} +6 -6
  9. package/dist/cli/{chunk-V4WVYW3G.mjs → chunk-4LRG6AJZ.mjs} +2 -2
  10. package/dist/cli/{chunk-JCS5TPNY.mjs → chunk-4NIQA6S7.mjs} +1 -1
  11. package/dist/cli/{chunk-7AXKBZWF.js → chunk-5NEXN4MZ.js} +2 -2
  12. package/dist/cli/{chunk-GWIY7C7U.mjs → chunk-BVJSAJKV.mjs} +1 -1
  13. package/dist/cli/{chunk-PZOHVTQ3.mjs → chunk-DH6LEJWD.mjs} +3 -3
  14. package/dist/cli/{chunk-NRIVXKMQ.js → chunk-EAIGGEV5.js} +6 -6
  15. package/dist/cli/{chunk-KEPIGAJS.js → chunk-GQUI3NYN.js} +57 -57
  16. package/dist/cli/{chunk-AAZBNN6N.js → chunk-HIXYNASX.js} +4 -4
  17. package/dist/cli/{chunk-S6XS2ABF.mjs → chunk-IVT2CZPM.mjs} +2 -2
  18. package/dist/cli/{chunk-J2PPXZE4.js → chunk-JGEFX6FQ.js} +6 -6
  19. package/dist/cli/{chunk-GHYU5YWJ.mjs → chunk-JWUOPLAR.mjs} +1 -1
  20. package/dist/cli/{chunk-TVBPWUII.mjs → chunk-LGGR7CGZ.mjs} +4 -4
  21. package/dist/cli/{chunk-A4UUUINX.mjs → chunk-MTICVDNY.mjs} +1 -1
  22. package/dist/cli/{chunk-5FKCLTLS.js → chunk-NFWFUCGM.js} +11 -11
  23. package/dist/cli/{chunk-GXYR7DV4.js → chunk-OOQ4IRP4.js} +1 -1
  24. package/dist/cli/{chunk-OTAGK5MS.js → chunk-P2KELOST.js} +48 -48
  25. package/dist/cli/{chunk-2TCHWWRP.mjs → chunk-PUKK7SZX.mjs} +1 -1
  26. package/dist/cli/{chunk-JX3CNS4W.js → chunk-RY6WID7C.js} +26 -26
  27. package/dist/cli/{chunk-GONRLVV3.js → chunk-W7INSYJS.js} +9 -9
  28. package/dist/cli/{chunk-KI5DPDF2.js → chunk-WJGRIDWQ.js} +15 -15
  29. package/dist/cli/{chunk-AIIVF62D.mjs → chunk-XKW6HTWO.mjs} +1 -1
  30. package/dist/cli/{chunk-DTGPHQFC.mjs → chunk-XXQYOQWO.mjs} +2 -2
  31. package/dist/cli/{chunk-YLVIJZ2W.mjs → chunk-YZLPXH7G.mjs} +2 -2
  32. package/dist/cli/{client-M7OBRULN.mjs → client-AMSHGQFH.mjs} +4 -4
  33. package/dist/cli/client-WN33QCMV.js +20 -0
  34. package/dist/cli/{csv-SAJB2PYV.js → csv-B2OKPMNX.js} +12 -12
  35. package/dist/cli/{csv-AKVUO3PP.mjs → csv-F4RPWI4E.mjs} +3 -3
  36. package/dist/cli/{db-AASVDGJB.js → db-AJYYK5HH.js} +21 -21
  37. package/dist/cli/{db-KREGQID3.mjs → db-QP4WNVSS.mjs} +5 -5
  38. package/dist/cli/{executions-XSKRZWVG.js → executions-4LHEJCCY.js} +7 -7
  39. package/dist/cli/{executions-YL5UM6BY.mjs → executions-NY7HYAEH.mjs} +5 -5
  40. package/dist/cli/{feedback-XZNAGHZ4.js → feedback-CXXJJARR.js} +6 -6
  41. package/dist/cli/{feedback-ITNK5A5V.mjs → feedback-SJYHLVYY.mjs} +3 -3
  42. package/dist/cli/{git-IXYZ5H7T.mjs → git-DUODO3NL.mjs} +4 -4
  43. package/dist/cli/git-K7YPSXLC.js +23 -0
  44. package/dist/cli/index.d.mts +1 -6
  45. package/dist/cli/index.d.ts +1 -6
  46. package/dist/cli/index.js +100 -87
  47. package/dist/cli/index.mjs +54 -41
  48. package/dist/cli/{legacy-noops-BJZ3P455.js → legacy-noops-3UYJVVNW.js} +7 -7
  49. package/dist/cli/{legacy-noops-MT5VFDXS.mjs → legacy-noops-IUDXZFYO.mjs} +4 -4
  50. package/dist/cli/{monitors-XU62FCBX.js → monitors-IEEVACOD.js} +86 -86
  51. package/dist/cli/{monitors-QL4XDOQT.mjs → monitors-PDWE6BGA.mjs} +5 -5
  52. package/dist/cli/{org-6WSIPHVV.js → org-NUFEZRY7.js} +61 -61
  53. package/dist/cli/{org-NKFPS763.mjs → org-VSPO2YF3.mjs} +5 -5
  54. package/dist/cli/{play-CKL7RDIS.mjs → play-KMHPJVWH.mjs} +21 -19
  55. package/dist/cli/{play-RZO7CZKL.js → play-MXYK2BRE.js} +229 -227
  56. package/dist/cli/{providers-UKNXDCPJ.mjs → providers-7ENB4EYV.mjs} +5 -5
  57. package/dist/cli/{providers-PQPH374E.js → providers-YE5YRIML.js} +8 -8
  58. package/dist/cli/{proxy-env-M4ZHXHRL.mjs → proxy-env-NWUIGWS3.mjs} +34 -17
  59. package/dist/cli/{proxy-env-EBANZHPV.js → proxy-env-ZV2WZFAT.js} +37 -20
  60. package/dist/cli/{quickstart-JUTTMWIC.mjs → quickstart-GFOOHX2U.mjs} +3 -3
  61. package/dist/cli/{quickstart-3FFTESEL.js → quickstart-KXCU2MZ2.js} +5 -5
  62. package/dist/cli/{search-WGBQ5LE5.mjs → search-KESXCJDL.mjs} +6 -6
  63. package/dist/cli/search-R426JJQW.js +18 -0
  64. package/dist/cli/{secrets-GGQRCGLA.js → secrets-BRB5SIXG.js} +14 -14
  65. package/dist/cli/{secrets-EV6IOJLN.mjs → secrets-HDR522GC.mjs} +5 -5
  66. package/dist/cli/{sessions-VZJ23U7E.js → sessions-IK3OSQC6.js} +5 -5
  67. package/dist/cli/{sessions-HL3Q22O5.mjs → sessions-VOOSWVLS.mjs} +4 -4
  68. package/dist/cli/{settings-M5MSM7U6.mjs → settings-BZKDIHTX.mjs} +8 -8
  69. package/dist/cli/{settings-LJB5VZWM.js → settings-OPGEFGXL.js} +75 -75
  70. package/dist/cli/{setup-ZURYYFBI.mjs → setup-RVPS7AJJ.mjs} +6 -6
  71. package/dist/cli/{setup-ASOUDNYM.js → setup-TP2VWSCU.js} +41 -41
  72. package/dist/cli/{skills-4SRVGVA6.mjs → skills-7BDD2F4V.mjs} +4 -4
  73. package/dist/cli/skills-TK2CIWVS.js +28 -0
  74. package/dist/cli/{tools-UNDZCH7R.js → tools-46ILS57M.js} +51 -51
  75. package/dist/cli/{tools-UEFB5OPX.mjs → tools-XLGGDBM3.mjs} +6 -6
  76. package/dist/cli/{update-WUIQXM5B.mjs → update-2JEM7WUF.mjs} +6 -6
  77. package/dist/cli/update-3JOCQWNF.js +28 -0
  78. package/dist/cli/{workflow-BCXLF24Z.mjs → workflow-SSTGMXOQ.mjs} +6 -6
  79. package/dist/cli/{workflow-FUXRNNWD.js → workflow-ZKGPY7T4.js} +16 -16
  80. package/dist/index.js +7 -7
  81. package/dist/index.mjs +4 -4
  82. package/dist/install-integrity.json +74 -74
  83. package/dist/plays/bundle-play-file.mjs +2 -2
  84. package/dist/release.d.mts +1 -1
  85. package/dist/release.d.ts +1 -1
  86. package/dist/release.js +2 -2
  87. package/dist/release.mjs +1 -1
  88. package/package.json +1 -1
  89. package/dist/cli/auth-ZJDK7HFJ.js +0 -31
  90. package/dist/cli/client-FVPE6PB4.js +0 -20
  91. package/dist/cli/git-IOUJDZDJ.js +0 -23
  92. package/dist/cli/search-TKLHBKKK.js +0 -18
  93. package/dist/cli/skills-KMGB73LN.js +0 -28
  94. package/dist/cli/update-4AZ7S666.js +0 -28
  95. /package/dist/cli/{chunk-GVUJJJ5G.mjs → chunk-6IKARAYD.mjs} +0 -0
  96. /package/dist/cli/{chunk-6A3TJUWC.js → chunk-S6R3OX7B.js} +0 -0
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkJX3CNS4Wjs = require('./chunk-JX3CNS4W.js');
4
+ var _chunkRY6WID7Cjs = require('./chunk-RY6WID7C.js');
5
5
 
6
6
 
7
7
  var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
8
8
 
9
9
 
10
- var _chunkJ2PPXZE4js = require('./chunk-J2PPXZE4.js');
10
+ var _chunkJGEFX6FQjs = require('./chunk-JGEFX6FQ.js');
11
11
 
12
12
 
13
13
 
@@ -28,7 +28,7 @@ var _chunkSDK3ZA2Cjs = require('./chunk-SDK3ZA2C.js');
28
28
 
29
29
 
30
30
 
31
- var _chunk5FKCLTLSjs = require('./chunk-5FKCLTLS.js');
31
+ var _chunkNFWFUCGMjs = require('./chunk-NFWFUCGM.js');
32
32
 
33
33
 
34
34
 
@@ -59,12 +59,12 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
59
59
 
60
60
 
61
61
 
62
- var _chunkNRIVXKMQjs = require('./chunk-NRIVXKMQ.js');
62
+ var _chunkEAIGGEV5js = require('./chunk-EAIGGEV5.js');
63
63
 
64
64
 
65
- var _chunkAAZBNN6Njs = require('./chunk-AAZBNN6N.js');
65
+ var _chunkHIXYNASXjs = require('./chunk-HIXYNASX.js');
66
66
  require('./chunk-XNYIZMNQ.js');
67
- require('./chunk-GXYR7DV4.js');
67
+ require('./chunk-OOQ4IRP4.js');
68
68
 
69
69
 
70
70
 
@@ -72,10 +72,10 @@ require('./chunk-GXYR7DV4.js');
72
72
 
73
73
 
74
74
 
75
- var _chunkGONRLVV3js = require('./chunk-GONRLVV3.js');
75
+ var _chunkW7INSYJSjs = require('./chunk-W7INSYJS.js');
76
76
  require('./chunk-3KC45UVF.js');
77
77
  require('./chunk-ZDO3TO3M.js');
78
- require('./chunk-6A3TJUWC.js');
78
+ require('./chunk-S6R3OX7B.js');
79
79
 
80
80
 
81
81
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -2041,7 +2041,7 @@ function resolveField(key, command) {
2041
2041
  }
2042
2042
  function printSettings(result, json, name) {
2043
2043
  const selected = fields.filter(([key]) => !name || key === name);
2044
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
2044
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
2045
2045
  {
2046
2046
  ...result,
2047
2047
  settings: Object.fromEntries(
@@ -2085,7 +2085,7 @@ function registerPlaySettingsCommands(plays) {
2085
2085
  valueSyntax: field.cli.valueSyntax,
2086
2086
  examples: field.cli.examples
2087
2087
  }));
2088
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
2088
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
2089
2089
  {
2090
2090
  fields: descriptions,
2091
2091
  render: {
@@ -2110,7 +2110,7 @@ function registerPlaySettingsCommands(plays) {
2110
2110
  async (options, command) => {
2111
2111
  if (options.name !== void 0) resolveField(options.name, command);
2112
2112
  printSettings(
2113
- await new (0, _chunk5FKCLTLSjs.DeeplineClient)().getPlaySettings(options.play),
2113
+ await new (0, _chunkNFWFUCGMjs.DeeplineClient)().getPlaySettings(options.play),
2114
2114
  options.json,
2115
2115
  options.name
2116
2116
  );
@@ -2141,7 +2141,7 @@ function registerPlaySettingsCommands(plays) {
2141
2141
  );
2142
2142
  }
2143
2143
  if (options.dryRun) {
2144
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
2144
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
2145
2145
  {
2146
2146
  dryRun: true,
2147
2147
  play,
@@ -2162,7 +2162,7 @@ function registerPlaySettingsCommands(plays) {
2162
2162
  return;
2163
2163
  }
2164
2164
  printSettings(
2165
- await new (0, _chunk5FKCLTLSjs.DeeplineClient)().updatePlaySettings(play, patch),
2165
+ await new (0, _chunkNFWFUCGMjs.DeeplineClient)().updatePlaySettings(play, patch),
2166
2166
  options.json
2167
2167
  );
2168
2168
  };
@@ -2188,13 +2188,13 @@ function registerPlaySettingsCommands(plays) {
2188
2188
  "--root must be person or team; --limit must be 1\u2013100.",
2189
2189
  { exitCode: 2 }
2190
2190
  );
2191
- const page = await new (0, _chunk5FKCLTLSjs.DeeplineClient)().listPlaySettingsPaths({
2191
+ const page = await new (0, _chunkNFWFUCGMjs.DeeplineClient)().listPlaySettingsPaths({
2192
2192
  root: options.root,
2193
2193
  limit,
2194
2194
  cursor: options.cursor
2195
2195
  });
2196
2196
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""} --json` : null;
2197
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
2197
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
2198
2198
  {
2199
2199
  ...page,
2200
2200
  nextCommand,
@@ -2245,7 +2245,7 @@ function registerPlaySettingsCommands(plays) {
2245
2245
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2246
2246
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2247
2247
  };
2248
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
2248
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
2249
2249
  const paths = [];
2250
2250
  let cursor;
2251
2251
  do {
@@ -2307,7 +2307,7 @@ function registerPlaySettingsCommands(plays) {
2307
2307
  moved.push(move.playName);
2308
2308
  }
2309
2309
  }
2310
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
2310
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
2311
2311
  {
2312
2312
  dryRun: Boolean(options.dryRun),
2313
2313
  from: options.from,
@@ -2435,7 +2435,7 @@ function triggerLines(view) {
2435
2435
  return lines;
2436
2436
  }
2437
2437
  function printView(view, json) {
2438
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
2438
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
2439
2439
  {
2440
2440
  ...view,
2441
2441
  render: {
@@ -2448,7 +2448,7 @@ function printView(view, json) {
2448
2448
  );
2449
2449
  }
2450
2450
  function printResult(result, json) {
2451
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
2451
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
2452
2452
  {
2453
2453
  ...result,
2454
2454
  render: {
@@ -2478,7 +2478,7 @@ async function mutate(command, options, build) {
2478
2478
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2479
2479
  }
2480
2480
  if (options.dryRun) {
2481
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
2481
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
2482
2482
  {
2483
2483
  dryRun: true,
2484
2484
  play: options.play,
@@ -2497,7 +2497,7 @@ async function mutate(command, options, build) {
2497
2497
  return;
2498
2498
  }
2499
2499
  printResult(
2500
- await new (0, _chunk5FKCLTLSjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2500
+ await new (0, _chunkNFWFUCGMjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2501
2501
  options.json
2502
2502
  );
2503
2503
  }
@@ -2530,7 +2530,7 @@ function registerPlayTriggerConfigCommands(plays) {
2530
2530
  }).addHelpText("after", help2);
2531
2531
  trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON; automatic when piped").addHelpText("after", help2).action(async (options) => {
2532
2532
  printView(
2533
- await new (0, _chunk5FKCLTLSjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2533
+ await new (0, _chunkNFWFUCGMjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2534
2534
  options.json
2535
2535
  );
2536
2536
  });
@@ -2574,7 +2574,7 @@ function registerPlayTriggerConfigCommands(plays) {
2574
2574
  if (options.auth === void 0) {
2575
2575
  if (secrets.length || options.header || options.signaturePrefix)
2576
2576
  usage(setWebhook, "--secret/--header need --auth.");
2577
- const current = await new (0, _chunk5FKCLTLSjs.DeeplineClient)().getPlayTriggerConfig(
2577
+ const current = await new (0, _chunkNFWFUCGMjs.DeeplineClient)().getPlayTriggerConfig(
2578
2578
  options.play
2579
2579
  );
2580
2580
  return {
@@ -2651,7 +2651,7 @@ var KIND_DESCRIPTIONS = {
2651
2651
  "receipt.skipped": "Saved work result: skipped.",
2652
2652
  "runtime.event": "Other event."
2653
2653
  };
2654
- var RUN_LOGS_KIND_HELP = _chunk5FKCLTLSjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2654
+ var RUN_LOGS_KIND_HELP = _chunkNFWFUCGMjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2655
2655
  kind,
2656
2656
  description: KIND_DESCRIPTIONS[kind]
2657
2657
  }));
@@ -3511,7 +3511,7 @@ function checkedRunExample(plays, target) {
3511
3511
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3512
3512
  const base = `deepline plays run --file ${quote(target)}`;
3513
3513
  return {
3514
- command: `${base}${_chunk5FKCLTLSjs.playInputExampleArgs.call(void 0, schema)} --json`,
3514
+ command: `${base}${_chunkNFWFUCGMjs.playInputExampleArgs.call(void 0, schema)} --json`,
3515
3515
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema. Keep stderr separate from JSON stdout."
3516
3516
  };
3517
3517
  }
@@ -5129,7 +5129,7 @@ async function runPlayBootstrap(args) {
5129
5129
  return runMonitorBootstrap(args);
5130
5130
  }
5131
5131
  const options = parsePlayBootstrapOptions(args);
5132
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
5132
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
5133
5133
  const contracts = await loadBootstrapContracts(client, options);
5134
5134
  const csvContext = loadCsvContext(options.from);
5135
5135
  const source = generateBootstrapPlaySource({
@@ -5284,7 +5284,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5284
5284
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
5285
5285
  );
5286
5286
  }
5287
- const response = await new (0, _chunk5FKCLTLSjs.DeeplineClient)().runs.getReceipts(runId, {
5287
+ const response = await new (0, _chunkNFWFUCGMjs.DeeplineClient)().runs.getReceipts(runId, {
5288
5288
  keys
5289
5289
  });
5290
5290
  const failed = response.receipts.filter(
@@ -5296,7 +5296,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5296
5296
  JSON.stringify(response, null, 2) + "\n",
5297
5297
  { flag: "wx", mode: 384 }
5298
5298
  );
5299
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
5299
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
5300
5300
  {
5301
5301
  runId,
5302
5302
  out: options.out,
@@ -5306,7 +5306,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5306
5306
  { json: true }
5307
5307
  );
5308
5308
  } else {
5309
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5309
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5310
5310
  }
5311
5311
  if (failed)
5312
5312
  process.exitCode = response.receipts.some(
@@ -5345,7 +5345,7 @@ includes nextCommand when another page is available.
5345
5345
  { exitCode: 2 }
5346
5346
  );
5347
5347
  }
5348
- const page = await new (0, _chunk5FKCLTLSjs.DeeplineClient)().runs.children(parentRunId, {
5348
+ const page = await new (0, _chunkNFWFUCGMjs.DeeplineClient)().runs.children(parentRunId, {
5349
5349
  launchKey: options.launchKey,
5350
5350
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
5351
5351
  limit
@@ -5361,7 +5361,7 @@ includes nextCommand when another page is available.
5361
5361
  String(limit),
5362
5362
  "--json"
5363
5363
  ].join(" ") : null;
5364
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
5364
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
5365
5365
  {
5366
5366
  parentRunId,
5367
5367
  launchKey: options.launchKey,
@@ -5397,7 +5397,7 @@ async function handleRunsHistory(options) {
5397
5397
  throw new Error("--limit must be a positive integer.");
5398
5398
  }
5399
5399
  }
5400
- const page = await new (0, _chunk5FKCLTLSjs.DeeplineClient)().runs.history({
5400
+ const page = await new (0, _chunkNFWFUCGMjs.DeeplineClient)().runs.history({
5401
5401
  cursor: options.cursor,
5402
5402
  orgId: options.org,
5403
5403
  search: options.search,
@@ -5413,7 +5413,7 @@ async function handleRunsHistory(options) {
5413
5413
  );
5414
5414
  }
5415
5415
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
5416
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
5416
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
5417
5417
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
5418
5418
  options.json ? { json: true } : {}
5419
5419
  );
@@ -5689,7 +5689,7 @@ function projectRunDatasetCell(value) {
5689
5689
  const logicalValue = parseSerializedDatasetValue(value);
5690
5690
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
5691
5691
  if (typeof logicalValue === "object") {
5692
- return _chunkNRIVXKMQjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
5692
+ return _chunkEAIGGEV5js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
5693
5693
  }
5694
5694
  return logicalValue;
5695
5695
  }
@@ -7604,10 +7604,10 @@ function resolveOwnedPlayReferenceName(reference, ownerSlug) {
7604
7604
  // ../plays/deploy/run-deployment.ts
7605
7605
  var RUN_PLAY_METHOD_NAMES = /* @__PURE__ */ new Set(["runPlay", "runPlayAsync"]);
7606
7606
  function isRunPlayReceiver(node) {
7607
- return _chunkGONRLVV3js.isAstNode.call(void 0, node) && node.type === "Identifier" && typeof node.name === "string" && (node.name === "ctx" || node.name.endsWith("Ctx"));
7607
+ return _chunkW7INSYJSjs.isAstNode.call(void 0, node) && node.type === "Identifier" && typeof node.name === "string" && (node.name === "ctx" || node.name.endsWith("Ctx"));
7608
7608
  }
7609
7609
  function stringLiteralValue(node) {
7610
- if (!_chunkGONRLVV3js.isAstNode.call(void 0, node)) return null;
7610
+ if (!_chunkW7INSYJSjs.isAstNode.call(void 0, node)) return null;
7611
7611
  if (node.type === "Literal" && typeof node.value === "string") {
7612
7612
  return node.value;
7613
7613
  }
@@ -7618,12 +7618,12 @@ function stringLiteralValue(node) {
7618
7618
  return null;
7619
7619
  }
7620
7620
  async function extractRunPlayStringTargets(sourceCode) {
7621
- const program = _chunkGONRLVV3js.parsePlaySourceForAnalysis.call(void 0, sourceCode);
7621
+ const program = _chunkW7INSYJSjs.parsePlaySourceForAnalysis.call(void 0, sourceCode);
7622
7622
  if (!program) return await _asyncNullishCoalesce(await extractWithCompiler(sourceCode), async () => ( []));
7623
7623
  const targets = /* @__PURE__ */ new Set();
7624
7624
  const visit = (node) => {
7625
7625
  const callee = node.callee;
7626
- if (node.type === "CallExpression" && _chunkGONRLVV3js.isAstNode.call(void 0, callee) && callee.type === "MemberExpression" && callee.computed !== true && _chunkGONRLVV3js.isAstNode.call(void 0, callee.property) && RUN_PLAY_METHOD_NAMES.has(String(callee.property.name)) && isRunPlayReceiver(callee.object) && Array.isArray(node.arguments)) {
7626
+ if (node.type === "CallExpression" && _chunkW7INSYJSjs.isAstNode.call(void 0, callee) && callee.type === "MemberExpression" && callee.computed !== true && _chunkW7INSYJSjs.isAstNode.call(void 0, callee.property) && RUN_PLAY_METHOD_NAMES.has(String(callee.property.name)) && isRunPlayReceiver(callee.object) && Array.isArray(node.arguments)) {
7627
7627
  const playRef = stringLiteralValue(node.arguments[1]);
7628
7628
  const ownedName = playRef === null ? null : resolveOwnedPlayReferenceName(playRef);
7629
7629
  if (ownedName) targets.add(ownedName);
@@ -7631,7 +7631,7 @@ async function extractRunPlayStringTargets(sourceCode) {
7631
7631
  for (const [key, value] of Object.entries(node)) {
7632
7632
  if (key === "loc") continue;
7633
7633
  for (const child of Array.isArray(value) ? value : [value]) {
7634
- if (_chunkGONRLVV3js.isAstNode.call(void 0, child)) visit(child);
7634
+ if (_chunkW7INSYJSjs.isAstNode.call(void 0, child)) visit(child);
7635
7635
  }
7636
7636
  }
7637
7637
  };
@@ -8497,7 +8497,7 @@ function renderOutcome(outcome) {
8497
8497
  function printResult2(input) {
8498
8498
  const failed = input.status === "failed" || input.status === "cancelled";
8499
8499
  if (failed) process.exitCode = 1;
8500
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
8500
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
8501
8501
  {
8502
8502
  deployment: { ...input.deployment, status: input.status },
8503
8503
  plays: input.outcomes,
@@ -8522,7 +8522,7 @@ async function handlePlaysDeploy(directory, options) {
8522
8522
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
8523
8523
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
8524
8524
  });
8525
- const { http, config } = _chunkNRIVXKMQjs.getAuthedHttpClient.call(void 0, );
8525
+ const { http, config } = _chunkEAIGGEV5js.getAuthedHttpClient.call(void 0, );
8526
8526
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
8527
8527
  const startDeployment = () => http.post("/api/v2/deployments", {
8528
8528
  deliveryId,
@@ -8549,7 +8549,7 @@ async function handlePlaysDeploy(directory, options) {
8549
8549
  },
8550
8550
  {
8551
8551
  bundle: bundleDeployPlayFile,
8552
- fetchImpl: _chunkAAZBNN6Njs.fetchWithDeploymentProtection,
8552
+ fetchImpl: _chunkHIXYNASXjs.fetchWithDeploymentProtection,
8553
8553
  // The plays are already here: "opening" the source is naming it.
8554
8554
  openSource: async () => ({
8555
8555
  open: async () => ({ repoRoot: root })
@@ -9176,7 +9176,7 @@ function buildMissingDefinePlayError(filePath) {
9176
9176
  );
9177
9177
  }
9178
9178
  function extractPlayName(code, filePath) {
9179
- const definedPlayName = _chunkGONRLVV3js.extractDefinedPlayName.call(void 0, code);
9179
+ const definedPlayName = _chunkW7INSYJSjs.extractDefinedPlayName.call(void 0, code);
9180
9180
  if (definedPlayName) {
9181
9181
  return definedPlayName;
9182
9182
  }
@@ -9451,11 +9451,11 @@ function formatUnresolvedPackagedFiles(filePath, unresolvedFileReferences) {
9451
9451
  const details = unresolvedFileReferences.map((unresolved) => `${unresolved.sourceFragment}: ${unresolved.message}`).join("; ");
9452
9452
  return `Failed to package local ctx.csv(...) files in ${filePath}: ${details}`;
9453
9453
  }
9454
- async function collectBundledPlayGraph(entryFile, profile = null, entryExportName = _chunkGONRLVV3js.PLAY_DEFAULT_EXPORT) {
9454
+ async function collectBundledPlayGraph(entryFile, profile = null, entryExportName = _chunkW7INSYJSjs.PLAY_DEFAULT_EXPORT) {
9455
9455
  const playBundler = await loadPlayBundler();
9456
9456
  const nodes = /* @__PURE__ */ new Map();
9457
9457
  const visiting = /* @__PURE__ */ new Set();
9458
- const artifactKind = _chunkGONRLVV3js.resolveEnabledExecutionProfile.call(void 0, profile).artifactKind;
9458
+ const artifactKind = _chunkW7INSYJSjs.resolveEnabledExecutionProfile.call(void 0, profile).artifactKind;
9459
9459
  const rootPath = normalizePlayPath(entryFile);
9460
9460
  const visit = async (filePath) => {
9461
9461
  const absolutePath = normalizePlayPath(filePath);
@@ -9472,7 +9472,7 @@ async function collectBundledPlayGraph(entryFile, profile = null, entryExportNam
9472
9472
  try {
9473
9473
  const bundleResult = await playBundler.bundlePlayFile(absolutePath, {
9474
9474
  target: artifactKind,
9475
- ...absolutePath === rootPath && entryExportName !== _chunkGONRLVV3js.PLAY_DEFAULT_EXPORT ? { exportName: entryExportName } : {}
9475
+ ...absolutePath === rootPath && entryExportName !== _chunkW7INSYJSjs.PLAY_DEFAULT_EXPORT ? { exportName: entryExportName } : {}
9476
9476
  });
9477
9477
  if (bundleResult.success === false) {
9478
9478
  throw new Error(
@@ -9651,7 +9651,7 @@ function playStatusErrorText(status) {
9651
9651
  function isRetryablePendingStartFailure(status) {
9652
9652
  if (status.status !== "failed") return false;
9653
9653
  if (status.runId && status.runId !== "pending") return false;
9654
- return _chunk5FKCLTLSjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
9654
+ return _chunkNFWFUCGMjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
9655
9655
  }
9656
9656
  function pendingStartFailureStatus(input) {
9657
9657
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -9678,13 +9678,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
9678
9678
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
9679
9679
  function watchSurfaceReaches(state, provenance, level) {
9680
9680
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
9681
- if (!_chunk5FKCLTLSjs.logLevelReaches.call(void 0, level, minimumLevel)) {
9681
+ if (!_chunkNFWFUCGMjs.logLevelReaches.call(void 0, level, minimumLevel)) {
9682
9682
  return false;
9683
9683
  }
9684
- if (_chunk5FKCLTLSjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
9684
+ if (_chunkNFWFUCGMjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
9685
9685
  return true;
9686
9686
  }
9687
- return state.verbose === true && _chunk5FKCLTLSjs.logProvenanceReaches.call(void 0, provenance, "debug");
9687
+ return state.verbose === true && _chunkNFWFUCGMjs.logProvenanceReaches.call(void 0, provenance, "debug");
9688
9688
  }
9689
9689
  function getEventPayload(event) {
9690
9690
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -10186,7 +10186,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
10186
10186
  }
10187
10187
  function openPlayDashboard(dashboardUrl, open2) {
10188
10188
  if (open2 && dashboardUrl) {
10189
- _chunkNRIVXKMQjs.openInBrowser.call(void 0, dashboardUrl);
10189
+ _chunkEAIGGEV5js.openInBrowser.call(void 0, dashboardUrl);
10190
10190
  }
10191
10191
  }
10192
10192
  function printPlayLogLines(input) {
@@ -10248,7 +10248,7 @@ async function waitForPlayCompletionByWatch(input) {
10248
10248
  billing: false
10249
10249
  });
10250
10250
  } catch (error) {
10251
- if (_chunk5FKCLTLSjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
10251
+ if (_chunkNFWFUCGMjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
10252
10252
  return null;
10253
10253
  }
10254
10254
  throw error;
@@ -10437,7 +10437,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10437
10437
  billing: false
10438
10438
  });
10439
10439
  } catch (error) {
10440
- if (_chunk5FKCLTLSjs.isTransientPlayRunReadError.call(void 0, error)) {
10440
+ if (_chunkNFWFUCGMjs.isTransientPlayRunReadError.call(void 0, error)) {
10441
10441
  return null;
10442
10442
  }
10443
10443
  throw error;
@@ -10645,7 +10645,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10645
10645
  lastPhase
10646
10646
  });
10647
10647
  }
10648
- if (lastKnownWorkflowId && _chunk5FKCLTLSjs.isTransientPlayRunReadError.call(void 0, error)) {
10648
+ if (lastKnownWorkflowId && _chunkNFWFUCGMjs.isTransientPlayRunReadError.call(void 0, error)) {
10649
10649
  if (timeout) {
10650
10650
  clearTimeout(timeout);
10651
10651
  }
@@ -10681,7 +10681,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10681
10681
  onRunAdmitted: confirmAdmission
10682
10682
  });
10683
10683
  }
10684
- if (!lastKnownWorkflowId && _chunk5FKCLTLSjs.isTransientPlayRunReadError.call(void 0, error)) {
10684
+ if (!lastKnownWorkflowId && _chunkNFWFUCGMjs.isTransientPlayRunReadError.call(void 0, error)) {
10685
10685
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
10686
10686
  phase: "cli.play_start_stream_transient_failure",
10687
10687
  ms: Date.now() - startedAt,
@@ -10780,7 +10780,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10780
10780
  "logs"
10781
10781
  ]);
10782
10782
  function formatPlayLogLine(rawLine, state) {
10783
- const classified = _chunk5FKCLTLSjs.classifyLogLine.call(void 0, rawLine);
10783
+ const classified = _chunkNFWFUCGMjs.classifyLogLine.call(void 0, rawLine);
10784
10784
  const line = classified.line;
10785
10785
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10786
10786
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _343 => _343[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10795,14 +10795,14 @@ function formatPlayLogLine(rawLine, state) {
10795
10795
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10796
10796
  const providerWait = formatProviderCapacityWaitLogLine(line);
10797
10797
  if (providerWait && !state.verbose) {
10798
- return _chunk5FKCLTLSjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10798
+ return _chunkNFWFUCGMjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10799
10799
  }
10800
10800
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10801
10801
  if (mapProgress && !state.verbose) {
10802
- return _chunk5FKCLTLSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10802
+ return _chunkNFWFUCGMjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10803
10803
  }
10804
10804
  if (/\[worker\] picked up run\b/.test(message)) {
10805
- if (!_chunk5FKCLTLSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10805
+ if (!_chunkNFWFUCGMjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10806
10806
  return null;
10807
10807
  }
10808
10808
  if (state.emittedRunnerStarted) {
@@ -10815,7 +10815,7 @@ function formatPlayLogLine(rawLine, state) {
10815
10815
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10816
10816
  );
10817
10817
  if (mapStart) {
10818
- if (!_chunk5FKCLTLSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10818
+ if (!_chunkNFWFUCGMjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10819
10819
  return null;
10820
10820
  }
10821
10821
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10825,7 +10825,7 @@ function formatPlayLogLine(rawLine, state) {
10825
10825
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10826
10826
  );
10827
10827
  if (mapDone) {
10828
- if (!_chunk5FKCLTLSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10828
+ if (!_chunkNFWFUCGMjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10829
10829
  return null;
10830
10830
  }
10831
10831
  const [, results, executed, cached] = mapDone;
@@ -12114,7 +12114,7 @@ function formatRecentRunLogLines(value) {
12114
12114
  (line) => typeof line === "string"
12115
12115
  );
12116
12116
  if (tail.length === 0) return [];
12117
- const shown = tail.map((line) => _chunk5FKCLTLSjs.classifyLogLine.call(void 0, line)).filter(
12117
+ const shown = tail.map((line) => _chunkNFWFUCGMjs.classifyLogLine.call(void 0, line)).filter(
12118
12118
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
12119
12119
  ).slice(-8);
12120
12120
  const total = readNonNegativeInteger(logs.totalCount);
@@ -12394,7 +12394,7 @@ function writePlayResult(status, jsonOutput, options) {
12394
12394
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
12395
12395
  if (jsonOutput) {
12396
12396
  const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
12397
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
12397
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
12398
12398
  hits ? { ...payload2, hits } : payload2,
12399
12399
  { json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
12400
12400
  );
@@ -12410,7 +12410,7 @@ function writePlayResult(status, jsonOutput, options) {
12410
12410
  ...buildPlayCompletionTextLines(status),
12411
12411
  ...formatRunHitsLines(hits)
12412
12412
  ];
12413
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0, displayPackage, {
12413
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0, displayPackage, {
12414
12414
  json: false,
12415
12415
  text: `${lines2.join("\n")}
12416
12416
  `
@@ -12461,7 +12461,7 @@ function writePlayResult(status, jsonOutput, options) {
12461
12461
  lines.push(...buildBillingRollupTextLines(status));
12462
12462
  const compact = compactPlayStatus(status);
12463
12463
  const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
12464
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
12464
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
12465
12465
  {
12466
12466
  ...payload,
12467
12467
  render: {
@@ -13221,7 +13221,7 @@ function writeStartedPlayRun(input) {
13221
13221
  dashboardUrl: input.dashboardUrl,
13222
13222
  package: input.package
13223
13223
  };
13224
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
13224
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
13225
13225
  json: true,
13226
13226
  fields: input.jsonFields
13227
13227
  });
@@ -13243,7 +13243,7 @@ function writeStartedPlayRun(input) {
13243
13243
  input.progress.writeLine(output2, process.stdout);
13244
13244
  return;
13245
13245
  }
13246
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0, input.package, {
13246
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0, input.package, {
13247
13247
  json: false,
13248
13248
  text: `${output2}
13249
13249
  `
@@ -13272,7 +13272,7 @@ function writeStartedPlayRun(input) {
13272
13272
  ) ? [`Stop: deepline runs stop ${shellSingleQuote(input.runId)} --json`] : []
13273
13273
  ];
13274
13274
  if (input.jsonOutput) {
13275
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13275
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13276
13276
  return;
13277
13277
  }
13278
13278
  if (input.dashboardUrl) {
@@ -13283,7 +13283,7 @@ function writeStartedPlayRun(input) {
13283
13283
  input.progress.writeLine(output, process.stdout);
13284
13284
  return;
13285
13285
  }
13286
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
13286
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
13287
13287
  {
13288
13288
  ...payload,
13289
13289
  render: { sections: [{ title: "play run", lines }] }
@@ -13293,7 +13293,7 @@ function writeStartedPlayRun(input) {
13293
13293
  );
13294
13294
  }
13295
13295
  function parsePlayRunOptions(args) {
13296
- const selection = _chunkNRIVXKMQjs.parseJsonFields.call(void 0, args, "run");
13296
+ const selection = _chunkEAIGGEV5js.parseJsonFields.call(void 0, args, "run");
13297
13297
  args = selection.args;
13298
13298
  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.";
13299
13299
  let filePath = null;
@@ -13302,7 +13302,7 @@ function parsePlayRunOptions(args) {
13302
13302
  let revisionId = null;
13303
13303
  let revisionSelector = null;
13304
13304
  const watch = !args.includes("--no-wait");
13305
- let jsonOutput = watch ? args.includes("--json") : _chunkNRIVXKMQjs.argsWantJson.call(void 0, args);
13305
+ let jsonOutput = watch ? args.includes("--json") : _chunkEAIGGEV5js.argsWantJson.call(void 0, args);
13306
13306
  const fullJson = args.includes("--full");
13307
13307
  const force = args.includes("--force");
13308
13308
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -13349,7 +13349,7 @@ function parsePlayRunOptions(args) {
13349
13349
  "--log-level requires one of: debug, info, warn, error."
13350
13350
  );
13351
13351
  }
13352
- const parsed = _chunk5FKCLTLSjs.parseLogLevel.call(void 0, value);
13352
+ const parsed = _chunkNFWFUCGMjs.parseLogLevel.call(void 0, value);
13353
13353
  if (!parsed) {
13354
13354
  throw new Error(
13355
13355
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -13386,7 +13386,7 @@ function parsePlayRunOptions(args) {
13386
13386
  throw new Error("--profile requires an execution profile id.");
13387
13387
  }
13388
13388
  profile = value.trim();
13389
- _chunkGONRLVV3js.resolveEnabledExecutionProfile.call(void 0, profile);
13389
+ _chunkW7INSYJSjs.resolveEnabledExecutionProfile.call(void 0, profile);
13390
13390
  index += 1;
13391
13391
  continue;
13392
13392
  }
@@ -13576,7 +13576,7 @@ function parsePlayRunOptions(args) {
13576
13576
  };
13577
13577
  }
13578
13578
  function parsePlayCheckOptions(args) {
13579
- const selection = _chunkNRIVXKMQjs.parseJsonFields.call(void 0, args, "check");
13579
+ const selection = _chunkEAIGGEV5js.parseJsonFields.call(void 0, args, "check");
13580
13580
  args = selection.args;
13581
13581
  const target = args[0];
13582
13582
  if (!target || target.startsWith("-")) {
@@ -13588,7 +13588,7 @@ function parsePlayCheckOptions(args) {
13588
13588
  if (arg !== "--json" && arg !== "--full")
13589
13589
  throw new Error(`Unknown plays check option: ${arg}`);
13590
13590
  }
13591
- const jsonOutput = _chunkNRIVXKMQjs.argsWantJson.call(void 0, args);
13591
+ const jsonOutput = _chunkEAIGGEV5js.argsWantJson.call(void 0, args);
13592
13592
  return {
13593
13593
  target,
13594
13594
  jsonOutput,
@@ -13664,7 +13664,7 @@ ${PLAY_PUBLISH_USAGE}`
13664
13664
  useLatest,
13665
13665
  expectedArtifactHash,
13666
13666
  dryRun,
13667
- jsonOutput: _chunkNRIVXKMQjs.argsWantJson.call(void 0, args)
13667
+ jsonOutput: _chunkEAIGGEV5js.argsWantJson.call(void 0, args)
13668
13668
  };
13669
13669
  }
13670
13670
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -13705,7 +13705,7 @@ ${PLAY_SAVE_USAGE}`);
13705
13705
  target,
13706
13706
  expectedArtifactHash,
13707
13707
  dryRun,
13708
- jsonOutput: _chunkNRIVXKMQjs.argsWantJson.call(void 0, args)
13708
+ jsonOutput: _chunkEAIGGEV5js.argsWantJson.call(void 0, args)
13709
13709
  };
13710
13710
  }
13711
13711
  function printScheduledPlayCapacity(capacity) {
@@ -13916,7 +13916,7 @@ function printBundledRuntimeWarning(bundle) {
13916
13916
  async function handlePlayCheck(args) {
13917
13917
  const options = parsePlayCheckOptions(args);
13918
13918
  if (!isFileTarget(options.target)) {
13919
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
13919
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
13920
13920
  try {
13921
13921
  await assertCanonicalNamedPlayReference(client, options.target, {
13922
13922
  command: "check"
@@ -13945,7 +13945,7 @@ async function handlePlayCheck(args) {
13945
13945
  },
13946
13946
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
13947
13947
  };
13948
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0, result, {
13948
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0, result, {
13949
13949
  json: options.jsonOutput,
13950
13950
  fields: options.jsonFields,
13951
13951
  text: renderPlayCheckOutput(result) + "\n"
@@ -13955,7 +13955,7 @@ async function handlePlayCheck(args) {
13955
13955
  const resolved = _path.resolve.call(void 0, options.target);
13956
13956
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
13957
13957
  if (options.jsonOutput) {
13958
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
13958
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
13959
13959
  {
13960
13960
  kind: "play_check",
13961
13961
  checked: "named_contract",
@@ -13988,7 +13988,7 @@ async function handlePlayCheck(args) {
13988
13988
  );
13989
13989
  }
13990
13990
  const primary = outcomes.find(
13991
- (outcome) => outcome.exportName === _chunkGONRLVV3js.PLAY_DEFAULT_EXPORT
13991
+ (outcome) => outcome.exportName === _chunkW7INSYJSjs.PLAY_DEFAULT_EXPORT
13992
13992
  );
13993
13993
  const output = buildPlayCheckOutput({
13994
13994
  outcomes,
@@ -13997,7 +13997,7 @@ async function handlePlayCheck(args) {
13997
13997
  detailsCommand: `deepline plays check ${shellQuote2(options.target)} --full --json`,
13998
13998
  publishCommand: _optionalChain([primary, 'optionalAccess', _474 => _474.result, 'access', _475 => _475.artifactHash]) ? `deepline plays publish ${shellQuote2(options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
13999
13999
  });
14000
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0, output, {
14000
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0, output, {
14001
14001
  json: options.jsonOutput,
14002
14002
  fields: options.jsonFields,
14003
14003
  text: renderPlayCheckOutput(output) + "\n"
@@ -14005,8 +14005,8 @@ async function handlePlayCheck(args) {
14005
14005
  return output.valid ? 0 : 1;
14006
14006
  }
14007
14007
  function resolvePlayCheckExportNames(sourceCode) {
14008
- const exports = _chunkGONRLVV3js.listPlayFileExports.call(void 0, sourceCode);
14009
- if (!exports || exports.length === 0) return [_chunkGONRLVV3js.PLAY_DEFAULT_EXPORT];
14008
+ const exports = _chunkW7INSYJSjs.listPlayFileExports.call(void 0, sourceCode);
14009
+ if (!exports || exports.length === 0) return [_chunkW7INSYJSjs.PLAY_DEFAULT_EXPORT];
14010
14010
  return exports.map((entry) => entry.name);
14011
14011
  }
14012
14012
  function artifactForProductionCompatibilityCheck(artifact) {
@@ -14059,7 +14059,7 @@ async function checkOneExportedPlay(input) {
14059
14059
  result: { valid: false, errors: descriptionErrors }
14060
14060
  };
14061
14061
  }
14062
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
14062
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
14063
14063
  const integrationMode = resolveEvalIntegrationMode();
14064
14064
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
14065
14065
  playName: node.playName,
@@ -14072,7 +14072,7 @@ async function checkOneExportedPlay(input) {
14072
14072
  sourceFiles: graph.root.sourceFiles,
14073
14073
  description: _nullishCoalesce(graph.root.playDescription, () => ( void 0)),
14074
14074
  artifact: artifactForProductionCompatibilityCheck(graph.root.artifact),
14075
- ...exportName === _chunkGONRLVV3js.PLAY_DEFAULT_EXPORT ? {} : { exportName },
14075
+ ...exportName === _chunkW7INSYJSjs.PLAY_DEFAULT_EXPORT ? {} : { exportName },
14076
14076
  ...importedPlays.length > 0 ? { importedPlays } : {},
14077
14077
  ...integrationMode ? { integrationMode } : {}
14078
14078
  });
@@ -14096,7 +14096,7 @@ async function handleFileBackedRun(options, hooks) {
14096
14096
  if (options.target.kind !== "file") {
14097
14097
  throw new Error("Expected a file-backed play run target.");
14098
14098
  }
14099
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)(playRunClientOptions(options));
14099
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)(playRunClientOptions(options));
14100
14100
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
14101
14101
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
14102
14102
  progress.phase("compiling play");
@@ -14149,17 +14149,19 @@ async function handleFileBackedRun(options, hooks) {
14149
14149
  const bundleResult = graph.root;
14150
14150
  const playName = _nullishCoalesce(bundleResult.playName, () => ( extractPlayName(sourceCode, absolutePlayPath)));
14151
14151
  printBundledRuntimeWarning(bundleResult);
14152
- try {
14153
- progress.phase("publishing imported plays");
14154
- await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
14155
- "cli.play_file_publish_imports",
14156
- { targetKind: "file" },
14157
- () => publishImportedPlayDependencies(client, graph)
14158
- );
14159
- } catch (error) {
14160
- progress.fail();
14161
- console.error(error instanceof Error ? error.message : String(error));
14162
- return 1;
14152
+ if (bundleResult.importedPlayDependencies.length > 0) {
14153
+ try {
14154
+ progress.phase("registering imported play dependencies");
14155
+ await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
14156
+ "cli.play_file_publish_imports",
14157
+ { targetKind: "file" },
14158
+ () => publishImportedPlayDependencies(client, graph)
14159
+ );
14160
+ } catch (error) {
14161
+ progress.fail();
14162
+ console.error(error instanceof Error ? error.message : String(error));
14163
+ return 1;
14164
+ }
14163
14165
  }
14164
14166
  const packagedFileUploads = bundleResult.packagedFiles.map(
14165
14167
  (file) => stageFile(file.logicalPath, file.absolutePath)
@@ -14308,7 +14310,7 @@ async function handleNamedRun(options, hooks) {
14308
14310
  if (options.target.kind !== "name") {
14309
14311
  throw new Error("Expected a named play run target.");
14310
14312
  }
14311
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)(playRunClientOptions(options));
14313
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)(playRunClientOptions(options));
14312
14314
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
14313
14315
  const playName = options.target.name;
14314
14316
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -14705,10 +14707,10 @@ function renderRunOverviewText(overview, extras = {}) {
14705
14707
  );
14706
14708
  return `${lines.join("\n")}
14707
14709
 
14708
- ${_chunkNRIVXKMQjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
14710
+ ${_chunkEAIGGEV5js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
14709
14711
  }
14710
14712
  async function handleRunGet(args) {
14711
- const selection = _chunkNRIVXKMQjs.parseJsonFields.call(void 0,
14713
+ const selection = _chunkEAIGGEV5js.parseJsonFields.call(void 0,
14712
14714
  args,
14713
14715
  args.includes("--config") ? "config" : "get"
14714
14716
  );
@@ -14721,7 +14723,7 @@ async function handleRunGet(args) {
14721
14723
  console.error(error instanceof Error ? error.message : usage2);
14722
14724
  return 1;
14723
14725
  }
14724
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
14726
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
14725
14727
  if (args.includes("--config")) {
14726
14728
  if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
14727
14729
  console.error(
@@ -14735,7 +14737,7 @@ async function handleRunGet(args) {
14735
14737
  "This server does not support recorded configuration reads."
14736
14738
  );
14737
14739
  }
14738
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
14740
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
14739
14741
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
14740
14742
  { json: true, fields: selection.fields }
14741
14743
  );
@@ -14743,7 +14745,7 @@ async function handleRunGet(args) {
14743
14745
  }
14744
14746
  if (args.includes("--input")) {
14745
14747
  const input = await client.getRunInput(runId);
14746
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0, input, { json: true });
14748
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0, input, { json: true });
14747
14749
  return 0;
14748
14750
  }
14749
14751
  const full = args.includes("--full");
@@ -14756,8 +14758,8 @@ async function handleRunGet(args) {
14756
14758
  full: true,
14757
14759
  failedLogs: args.includes("--log-failed")
14758
14760
  }) : status;
14759
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
14760
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
14761
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
14762
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
14761
14763
  full ? legacyStatus : compactPlayStatus(legacyStatus),
14762
14764
  { json: true, fields: selection.fields }
14763
14765
  );
@@ -14773,8 +14775,8 @@ async function handleRunGet(args) {
14773
14775
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
14774
14776
  ]);
14775
14777
  const hitLines = formatRunHitsLines(hits);
14776
- const json = _chunkNRIVXKMQjs.argsWantJson.call(void 0, args);
14777
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
14778
+ const json = _chunkEAIGGEV5js.argsWantJson.call(void 0, args);
14779
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
14778
14780
  {
14779
14781
  ...overview,
14780
14782
  credits,
@@ -14877,9 +14879,9 @@ async function handleRunLifecycleStatus(args) {
14877
14879
  console.error(error instanceof Error ? error.message : usage2);
14878
14880
  return 1;
14879
14881
  }
14880
- const status = await new (0, _chunk5FKCLTLSjs.DeeplineClient)().runs.status(runId);
14881
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
14882
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0, status, { json: true });
14882
+ const status = await new (0, _chunkNFWFUCGMjs.DeeplineClient)().runs.status(runId);
14883
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
14884
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0, status, { json: true });
14883
14885
  return 0;
14884
14886
  }
14885
14887
  if (!status.available) {
@@ -14953,12 +14955,12 @@ async function handleRunsRerun(args) {
14953
14955
  index += 1;
14954
14956
  }
14955
14957
  }
14956
- const result = await new (0, _chunk5FKCLTLSjs.DeeplineClient)().runs.rerun(runId, {
14958
+ const result = await new (0, _chunkNFWFUCGMjs.DeeplineClient)().runs.rerun(runId, {
14957
14959
  ...idempotencyKey ? { idempotencyKey } : {},
14958
14960
  ...inputOverrides ? { inputOverrides } : {}
14959
14961
  });
14960
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
14961
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0, result, { json: true });
14962
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
14963
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0, result, { json: true });
14962
14964
  } else {
14963
14965
  console.log(
14964
14966
  result.deduplicated === true ? `
@@ -15023,8 +15025,8 @@ ${usage2}
15023
15025
  Discover Plays: ${next.discover}
15024
15026
  Active runs: ${next.running}`
15025
15027
  );
15026
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
15027
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
15028
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
15029
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
15028
15030
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
15029
15031
  { json: true }
15030
15032
  );
@@ -15035,7 +15037,7 @@ Active runs: ${next.running}`
15035
15037
  console.error("--offset requires --play.");
15036
15038
  return 1;
15037
15039
  }
15038
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
15040
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
15039
15041
  const page = await client.runs.listPage({
15040
15042
  ...playName ? { play: playName } : {},
15041
15043
  ...statusFilter ? { status: statusFilter } : {},
@@ -15088,7 +15090,7 @@ Active runs: ${next.running}`
15088
15090
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
15089
15091
  );
15090
15092
  }
15091
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
15093
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
15092
15094
  {
15093
15095
  runs,
15094
15096
  count: runs.length,
@@ -15102,7 +15104,7 @@ Active runs: ${next.running}`
15102
15104
  },
15103
15105
  render: { sections: [{ title: "runs", lines }] }
15104
15106
  },
15105
- { json: _chunkNRIVXKMQjs.argsWantJson.call(void 0, args) }
15107
+ { json: _chunkEAIGGEV5js.argsWantJson.call(void 0, args) }
15106
15108
  );
15107
15109
  return 0;
15108
15110
  }
@@ -15132,7 +15134,7 @@ async function handleRunTail(args) {
15132
15134
  console.error("--log-level requires one of: debug, info, warn, error.");
15133
15135
  return 1;
15134
15136
  }
15135
- const parsed = _chunk5FKCLTLSjs.parseLogLevel.call(void 0, value);
15137
+ const parsed = _chunkNFWFUCGMjs.parseLogLevel.call(void 0, value);
15136
15138
  if (!parsed) {
15137
15139
  console.error(
15138
15140
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15170,9 +15172,9 @@ async function handleRunTail(args) {
15170
15172
  );
15171
15173
  return 1;
15172
15174
  }
15173
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
15175
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
15174
15176
  const jsonLines = args.includes("--jsonl");
15175
- const jsonOutput = !jsonLines && _chunkNRIVXKMQjs.argsWantJson.call(void 0, args);
15177
+ const jsonOutput = !jsonLines && _chunkEAIGGEV5js.argsWantJson.call(void 0, args);
15176
15178
  const compact = args.includes("--compact");
15177
15179
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
15178
15180
  const compactState = {
@@ -15252,7 +15254,7 @@ async function handleRunLogs(args) {
15252
15254
  ]);
15253
15255
  const cursorIndex = args.indexOf("--cursor");
15254
15256
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
15255
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk5FKCLTLSjs.isRunLogsCursor.call(void 0, cursorValue));
15257
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkNFWFUCGMjs.isRunLogsCursor.call(void 0, cursorValue));
15256
15258
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
15257
15259
  return handleRunEventSearch(args);
15258
15260
  }
@@ -15286,7 +15288,7 @@ async function handleRunLogs(args) {
15286
15288
  console.error("--log-level requires one of: debug, info, warn, error.");
15287
15289
  return 1;
15288
15290
  }
15289
- const parsed = _chunk5FKCLTLSjs.parseLogLevel.call(void 0, value);
15291
+ const parsed = _chunkNFWFUCGMjs.parseLogLevel.call(void 0, value);
15290
15292
  if (!parsed) {
15291
15293
  console.error(
15292
15294
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15333,12 +15335,12 @@ async function handleRunLogs(args) {
15333
15335
  );
15334
15336
  return 1;
15335
15337
  }
15336
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
15338
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
15337
15339
  if (outPath) {
15338
15340
  const result2 = await client.runs.logs(runId, { all: true });
15339
- const logs = result2.entries.filter((line) => _chunk5FKCLTLSjs.logLevelReaches.call(void 0, _chunk5FKCLTLSjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk5FKCLTLSjs.classifyLogLine.call(void 0, line).line);
15341
+ const logs = result2.entries.filter((line) => _chunkNFWFUCGMjs.logLevelReaches.call(void 0, _chunkNFWFUCGMjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkNFWFUCGMjs.classifyLogLine.call(void 0, line).line);
15340
15342
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
15341
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
15343
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
15342
15344
  {
15343
15345
  runId: result2.runId,
15344
15346
  log_path: outPath,
@@ -15361,7 +15363,7 @@ async function handleRunLogs(args) {
15361
15363
  ]
15362
15364
  }
15363
15365
  },
15364
- { json: _chunkNRIVXKMQjs.argsWantJson.call(void 0, args) }
15366
+ { json: _chunkEAIGGEV5js.argsWantJson.call(void 0, args) }
15365
15367
  );
15366
15368
  return 0;
15367
15369
  }
@@ -15392,7 +15394,7 @@ async function handleRunLogs(args) {
15392
15394
  }
15393
15395
  };
15394
15396
  const text = buildRunLogsText(filteredResult);
15395
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
15397
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
15396
15398
  {
15397
15399
  runId: result.runId,
15398
15400
  totalCount: result.totalCount,
@@ -15416,7 +15418,7 @@ async function handleRunLogs(args) {
15416
15418
  render: { sections: [{ title: "run logs", lines: entries }] }
15417
15419
  },
15418
15420
  {
15419
- json: _chunkNRIVXKMQjs.argsWantJson.call(void 0, args),
15421
+ json: _chunkEAIGGEV5js.argsWantJson.call(void 0, args),
15420
15422
  text
15421
15423
  }
15422
15424
  );
@@ -15440,7 +15442,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15440
15442
  );
15441
15443
  }
15442
15444
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
15443
- (entry) => _chunk5FKCLTLSjs.logLevelReaches.call(void 0, _chunk5FKCLTLSjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
15445
+ (entry) => _chunkNFWFUCGMjs.logLevelReaches.call(void 0, _chunkNFWFUCGMjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
15444
15446
  );
15445
15447
  const selected = matching.slice(-limit);
15446
15448
  const olderMatchesExist = matching.length > selected.length;
@@ -15450,7 +15452,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15450
15452
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _517 => _517.at, 'call', _518 => _518(-1), 'optionalAccess', _519 => _519.seq]), () => ( null)),
15451
15453
  truncated: result.truncated || olderMatchesExist,
15452
15454
  hasMore: olderMatchesExist,
15453
- nextCursor: olderMatchesExist ? _chunk5FKCLTLSjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15455
+ nextCursor: olderMatchesExist ? _chunkNFWFUCGMjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15454
15456
  };
15455
15457
  }
15456
15458
  async function handleRunEventSearch(args) {
@@ -15517,7 +15519,7 @@ ${usage2}`);
15517
15519
  namespace,
15518
15520
  ...backend ? { backend } : {}
15519
15521
  } : void 0;
15520
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
15522
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
15521
15523
  const result = await client.runs.searchEvents({
15522
15524
  ...runId ? { runId } : {},
15523
15525
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -15590,7 +15592,7 @@ ${renderedDetails}` : ""}`;
15590
15592
  String(limit),
15591
15593
  "--json"
15592
15594
  ].join(" ") : null;
15593
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
15595
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
15594
15596
  {
15595
15597
  events,
15596
15598
  nextCursor: result.nextCursor,
@@ -15601,14 +15603,14 @@ ${renderedDetails}` : ""}`;
15601
15603
  render: { sections: [{ title: "runtime events", lines }] }
15602
15604
  },
15603
15605
  {
15604
- json: _chunkNRIVXKMQjs.argsWantJson.call(void 0, args),
15606
+ json: _chunkEAIGGEV5js.argsWantJson.call(void 0, args),
15605
15607
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
15606
15608
  }
15607
15609
  );
15608
15610
  return 0;
15609
15611
  }
15610
15612
  function buildRunLogsText(result) {
15611
- const lines = result.entries.map((line) => _chunk5FKCLTLSjs.classifyLogLine.call(void 0, line).line);
15613
+ const lines = result.entries.map((line) => _chunkNFWFUCGMjs.classifyLogLine.call(void 0, line).line);
15612
15614
  if (result.warning) {
15613
15615
  if (lines.length > 0) lines.push("");
15614
15616
  lines.push(`warning: ${result.warning}`);
@@ -15642,7 +15644,7 @@ async function handleRunStop(args) {
15642
15644
  reason = args[++index];
15643
15645
  }
15644
15646
  }
15645
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
15647
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
15646
15648
  const result = await client.runs.stop(runId, { reason });
15647
15649
  const state = resolveRunStopState(result);
15648
15650
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -15657,7 +15659,7 @@ async function handleRunStop(args) {
15657
15659
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
15658
15660
  `inspect: deepline runs get ${runId} --full --json`
15659
15661
  ];
15660
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
15662
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
15661
15663
  {
15662
15664
  ...cancelling,
15663
15665
  state,
@@ -15672,7 +15674,7 @@ async function handleRunStop(args) {
15672
15674
  ]
15673
15675
  }
15674
15676
  },
15675
- { json: _chunkNRIVXKMQjs.argsWantJson.call(void 0, args) }
15677
+ { json: _chunkEAIGGEV5js.argsWantJson.call(void 0, args) }
15676
15678
  );
15677
15679
  return 0;
15678
15680
  }
@@ -15689,7 +15691,7 @@ async function handleRunStop(args) {
15689
15691
  ];
15690
15692
  process.stderr.write(`${lines2.join("\n")}
15691
15693
  `);
15692
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
15694
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
15693
15695
  {
15694
15696
  ...result,
15695
15697
  render: {
@@ -15704,7 +15706,7 @@ async function handleRunStop(args) {
15704
15706
  ]
15705
15707
  }
15706
15708
  },
15707
- { json: _chunkNRIVXKMQjs.argsWantJson.call(void 0, args) }
15709
+ { json: _chunkEAIGGEV5js.argsWantJson.call(void 0, args) }
15708
15710
  );
15709
15711
  return 1;
15710
15712
  }
@@ -15715,12 +15717,12 @@ async function handleRunStop(args) {
15715
15717
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
15716
15718
  ] : []
15717
15719
  ];
15718
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
15720
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
15719
15721
  {
15720
15722
  ...result,
15721
15723
  render: { sections: [{ title: "run stop", lines }] }
15722
15724
  },
15723
- { json: _chunkNRIVXKMQjs.argsWantJson.call(void 0, args) }
15725
+ { json: _chunkEAIGGEV5js.argsWantJson.call(void 0, args) }
15724
15726
  );
15725
15727
  return 0;
15726
15728
  }
@@ -15770,18 +15772,18 @@ async function handleRunStopAll(args) {
15770
15772
  reason = args[++index];
15771
15773
  }
15772
15774
  }
15773
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
15775
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
15774
15776
  if (dryRun) {
15775
15777
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
15776
15778
  const lines2 = buildStopAllDryRunTextLines(result2);
15777
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
15779
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
15778
15780
  {
15779
15781
  ...result2,
15780
15782
  render: {
15781
15783
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
15782
15784
  }
15783
15785
  },
15784
- { json: _chunkNRIVXKMQjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
15786
+ { json: _chunkEAIGGEV5js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
15785
15787
  ` }
15786
15788
  );
15787
15789
  return 0;
@@ -15794,17 +15796,17 @@ async function handleRunStopAll(args) {
15794
15796
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
15795
15797
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
15796
15798
  ];
15797
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
15799
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
15798
15800
  {
15799
15801
  ...result,
15800
15802
  render: { sections: [{ title: "workspace stop-all", lines }] }
15801
15803
  },
15802
- { json: _chunkNRIVXKMQjs.argsWantJson.call(void 0, args) }
15804
+ { json: _chunkEAIGGEV5js.argsWantJson.call(void 0, args) }
15803
15805
  );
15804
15806
  return result.failed > 0 || result.partial ? 1 : 0;
15805
15807
  }
15806
15808
  async function handleRunExport(args) {
15807
- const selection = _chunkNRIVXKMQjs.parseJsonFields.call(void 0, args, "export");
15809
+ const selection = _chunkEAIGGEV5js.parseJsonFields.call(void 0, args, "export");
15808
15810
  args = selection.args;
15809
15811
  const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--json]";
15810
15812
  let runId;
@@ -15863,16 +15865,16 @@ async function handleRunExport(args) {
15863
15865
  "INVALID_ARGUMENT"
15864
15866
  );
15865
15867
  }
15866
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
15868
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
15867
15869
  let status = await client.getPlayStatus(runId, { full: true });
15868
15870
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
15869
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkNRIVXKMQjs.argsWantJson.call(void 0, args));
15871
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkEAIGGEV5js.argsWantJson.call(void 0, args));
15870
15872
  try {
15871
15873
  await waitForPlayCompletionByWatch({
15872
15874
  client,
15873
15875
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
15874
15876
  workflowId: runId,
15875
- jsonOutput: _chunkNRIVXKMQjs.argsWantJson.call(void 0, args),
15877
+ jsonOutput: _chunkEAIGGEV5js.argsWantJson.call(void 0, args),
15876
15878
  emitLogs: false,
15877
15879
  waitTimeoutMs,
15878
15880
  startedAt: Date.now(),
@@ -15971,8 +15973,8 @@ async function handleRunExport(args) {
15971
15973
  "utf-8"
15972
15974
  );
15973
15975
  }
15974
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0, payload, {
15975
- json: _chunkNRIVXKMQjs.argsWantJson.call(void 0, args),
15976
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0, payload, {
15977
+ json: _chunkEAIGGEV5js.argsWantJson.call(void 0, args),
15976
15978
  fields: selection.fields,
15977
15979
  text: `${lines.join("\n")}
15978
15980
  `
@@ -15993,10 +15995,10 @@ async function handlePlayGet(args) {
15993
15995
  );
15994
15996
  return 2;
15995
15997
  }
15996
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
15998
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
15997
15999
  const explicitJson = args.includes("--json");
15998
16000
  const sourceOutput = args.includes("--source");
15999
- const jsonOutput = sourceOutput ? explicitJson : _chunkNRIVXKMQjs.argsWantJson.call(void 0, args);
16001
+ const jsonOutput = sourceOutput ? explicitJson : _chunkEAIGGEV5js.argsWantJson.call(void 0, args);
16000
16002
  const requestedRevisionFlags = [
16001
16003
  args.includes("--working"),
16002
16004
  args.includes("--live"),
@@ -16056,7 +16058,7 @@ async function handlePlayGet(args) {
16056
16058
  }
16057
16059
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
16058
16060
  if (jsonOutput) {
16059
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, {
16061
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, {
16060
16062
  ...detail,
16061
16063
  ...materializedFile ? {
16062
16064
  message: loadedMessage,
@@ -16143,8 +16145,8 @@ async function handlePlayVersions(args) {
16143
16145
  console.error("Usage: deepline plays versions --name <name> [--json]");
16144
16146
  return 1;
16145
16147
  }
16146
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
16147
- const jsonOutput = _chunkNRIVXKMQjs.argsWantJson.call(void 0, args);
16148
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
16149
+ const jsonOutput = _chunkEAIGGEV5js.argsWantJson.call(void 0, args);
16148
16150
  await assertCanonicalNamedPlayReference(client, playName, {
16149
16151
  command: "versions"
16150
16152
  });
@@ -16152,7 +16154,7 @@ async function handlePlayVersions(args) {
16152
16154
  parseReferencedPlayTarget2(playName).playName
16153
16155
  );
16154
16156
  if (jsonOutput) {
16155
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, { versions });
16157
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, { versions });
16156
16158
  return 0;
16157
16159
  }
16158
16160
  if (versions.length === 0) {
@@ -16184,9 +16186,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
16184
16186
  "signals"
16185
16187
  ];
16186
16188
  async function handlePlayList(args) {
16187
- const jsonOutput = _chunkNRIVXKMQjs.argsWantJson.call(void 0, args);
16189
+ const jsonOutput = _chunkEAIGGEV5js.argsWantJson.call(void 0, args);
16188
16190
  const showCost = args.includes("--show-cost");
16189
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
16191
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
16190
16192
  const categoriesIndex = args.indexOf("--categories");
16191
16193
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _555 => _555[categoriesIndex + 1], 'optionalAccess', _556 => _556.trim, 'call', _557 => _557()]) : void 0;
16192
16194
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -16283,7 +16285,7 @@ async function handlePlayList(args) {
16283
16285
  lines.push("List truncated \u2014 more plays are available.");
16284
16286
  lines.push(`Next page: ${nextPage}`);
16285
16287
  }
16286
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
16288
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
16287
16289
  {
16288
16290
  plays,
16289
16291
  count: plays.length,
@@ -16301,7 +16303,7 @@ async function handlePlayList(args) {
16301
16303
  }
16302
16304
  async function handlePlayPin(args, pinned) {
16303
16305
  const target = _optionalChain([args, 'access', _564 => _564.find, 'call', _565 => _565((arg) => !arg.startsWith("-")), 'optionalAccess', _566 => _566.trim, 'call', _567 => _567()]);
16304
- const jsonOutput = _chunkNRIVXKMQjs.argsWantJson.call(void 0, args);
16306
+ const jsonOutput = _chunkEAIGGEV5js.argsWantJson.call(void 0, args);
16305
16307
  const dryRun = args.includes("--dry-run");
16306
16308
  if (!target) {
16307
16309
  console.error(
@@ -16319,11 +16321,11 @@ async function handlePlayPin(args, pinned) {
16319
16321
  const name = parsedTarget.playName;
16320
16322
  const plan = { name, pinned, dryRun };
16321
16323
  if (dryRun) {
16322
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, plan);
16324
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, plan);
16323
16325
  return 0;
16324
16326
  }
16325
- const result = await new (0, _chunk5FKCLTLSjs.DeeplineClient)().setPlayPinned(name, pinned);
16326
- if (jsonOutput) _chunkNRIVXKMQjs.printCompactJson.call(void 0, result);
16327
+ const result = await new (0, _chunkNFWFUCGMjs.DeeplineClient)().setPlayPinned(name, pinned);
16328
+ if (jsonOutput) _chunkEAIGGEV5js.printCompactJson.call(void 0, result);
16327
16329
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
16328
16330
  return 0;
16329
16331
  }
@@ -16339,7 +16341,7 @@ function csvColumnLines(csvInput) {
16339
16341
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
16340
16342
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
16341
16343
  }),
16342
- _chunk5FKCLTLSjs.CSV_HEADER_MATCHING_NOTE
16344
+ _chunkNFWFUCGMjs.CSV_HEADER_MATCHING_NOTE
16343
16345
  ];
16344
16346
  }
16345
16347
  function printPlayDescription(play) {
@@ -16446,12 +16448,12 @@ async function handlePlayGrep(args) {
16446
16448
  console.error("Usage: deepline plays grep <query> [--json]");
16447
16449
  return 1;
16448
16450
  }
16449
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
16451
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
16450
16452
  const results = (await client.listPlays({ grep: query })).map(
16451
16453
  summarizePlayGrepResult
16452
16454
  );
16453
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
16454
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, {
16455
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
16456
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, {
16455
16457
  plays: results,
16456
16458
  count: results.length,
16457
16459
  query,
@@ -16474,7 +16476,7 @@ async function handlePlayGrep(args) {
16474
16476
  return 0;
16475
16477
  }
16476
16478
  async function handlePlayDescribe(args) {
16477
- const selection = _chunkNRIVXKMQjs.parseJsonFields.call(void 0, args, "describe");
16479
+ const selection = _chunkEAIGGEV5js.parseJsonFields.call(void 0, args, "describe");
16478
16480
  args = selection.args;
16479
16481
  const playName = args[0];
16480
16482
  if (!playName) {
@@ -16508,8 +16510,8 @@ async function handlePlayDescribe(args) {
16508
16510
  `deepline plays check ${playName}`,
16509
16511
  ...definedName ? [`deepline plays describe <workspace>/${definedName}`] : []
16510
16512
  ];
16511
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
16512
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, {
16513
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
16514
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, {
16513
16515
  ok: false,
16514
16516
  error: { message },
16515
16517
  next
@@ -16523,7 +16525,7 @@ async function handlePlayDescribe(args) {
16523
16525
  }
16524
16526
  return 2;
16525
16527
  }
16526
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
16528
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
16527
16529
  await assertCanonicalNamedPlayReference(client, playName, {
16528
16530
  command: "describe"
16529
16531
  });
@@ -16533,9 +16535,9 @@ async function handlePlayDescribe(args) {
16533
16535
  compact: args.includes("--compact")
16534
16536
  }
16535
16537
  );
16536
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
16537
- if (selection.fields) _chunkNRIVXKMQjs.printJson.call(void 0, play, selection.fields);
16538
- else _chunkNRIVXKMQjs.printCompactJson.call(void 0, play);
16538
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
16539
+ if (selection.fields) _chunkEAIGGEV5js.printJson.call(void 0, play, selection.fields);
16540
+ else _chunkEAIGGEV5js.printCompactJson.call(void 0, play);
16539
16541
  return 0;
16540
16542
  }
16541
16543
  printPlayDescription(play);
@@ -16579,7 +16581,7 @@ async function handlePlaySave(args) {
16579
16581
  next: `deepline plays check ${shellQuote2(options.target)}`
16580
16582
  };
16581
16583
  if (options.jsonOutput) {
16582
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, result);
16584
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, result);
16583
16585
  } else {
16584
16586
  console.error(result.message);
16585
16587
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -16601,7 +16603,7 @@ async function handlePlaySave(args) {
16601
16603
  };
16602
16604
  if (options.dryRun) {
16603
16605
  if (options.jsonOutput) {
16604
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, dryRun);
16606
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, dryRun);
16605
16607
  } else {
16606
16608
  console.log(`Dry run: ${playName}`);
16607
16609
  console.log(` source: ${dryRun.sourceHash}`);
@@ -16610,7 +16612,7 @@ async function handlePlaySave(args) {
16610
16612
  }
16611
16613
  return 0;
16612
16614
  }
16613
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
16615
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
16614
16616
  try {
16615
16617
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
16616
16618
  "cli.play_save_compile_manifests",
@@ -16646,7 +16648,7 @@ async function handlePlaySave(args) {
16646
16648
  }
16647
16649
  };
16648
16650
  if (options.jsonOutput) {
16649
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, result);
16651
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, result);
16650
16652
  } else {
16651
16653
  console.log(
16652
16654
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -16672,7 +16674,7 @@ async function handlePlayPublish(args) {
16672
16674
  }
16673
16675
  const { target: playName, useLatest } = options;
16674
16676
  let revisionId = options.revisionId;
16675
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
16677
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
16676
16678
  if (isFileTarget(playName)) {
16677
16679
  if (revisionId || useLatest) {
16678
16680
  console.error(
@@ -16704,7 +16706,7 @@ async function handlePlayPublish(args) {
16704
16706
  next: `deepline plays check ${shellQuote2(playName)}`
16705
16707
  };
16706
16708
  if (options.jsonOutput) {
16707
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, result3);
16709
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, result3);
16708
16710
  } else {
16709
16711
  console.error(result3.message);
16710
16712
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -16727,7 +16729,7 @@ async function handlePlayPublish(args) {
16727
16729
  };
16728
16730
  if (options.dryRun) {
16729
16731
  if (options.jsonOutput) {
16730
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, dryRun);
16732
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, dryRun);
16731
16733
  } else {
16732
16734
  console.log(`Dry run: ${rootPlayName}`);
16733
16735
  console.log(` source: ${dryRun.sourceHash}`);
@@ -16795,7 +16797,7 @@ async function handlePlayPublish(args) {
16795
16797
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
16796
16798
  };
16797
16799
  if (options.jsonOutput) {
16798
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, result2);
16800
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, result2);
16799
16801
  } else {
16800
16802
  printPublishReceipt({
16801
16803
  name: rootPlayName,
@@ -16826,7 +16828,7 @@ async function handlePlayPublish(args) {
16826
16828
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
16827
16829
  latest: useLatest
16828
16830
  };
16829
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, result2);
16831
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, result2);
16830
16832
  return 0;
16831
16833
  }
16832
16834
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -16850,7 +16852,7 @@ async function handlePlayPublish(args) {
16850
16852
  revisionId ? { revisionId } : {}
16851
16853
  );
16852
16854
  if (options.jsonOutput) {
16853
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, result);
16855
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, result);
16854
16856
  } else {
16855
16857
  printPublishReceipt({
16856
16858
  name: result.name,
@@ -16890,7 +16892,7 @@ async function handlePlayDelete(args) {
16890
16892
  );
16891
16893
  return 2;
16892
16894
  }
16893
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
16895
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
16894
16896
  let detail;
16895
16897
  try {
16896
16898
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -16914,8 +16916,8 @@ async function handlePlayDelete(args) {
16914
16916
  name: resolvedName,
16915
16917
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
16916
16918
  };
16917
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
16918
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, result2);
16919
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
16920
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, result2);
16919
16921
  } else {
16920
16922
  process.stdout.write(
16921
16923
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -16925,8 +16927,8 @@ async function handlePlayDelete(args) {
16925
16927
  return 0;
16926
16928
  }
16927
16929
  const result = await client.deletePlay(resolvedName);
16928
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
16929
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, result);
16930
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
16931
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, result);
16930
16932
  return result.archived || result.alreadyArchived ? 0 : 4;
16931
16933
  }
16932
16934
  if (result.alreadyArchived) {
@@ -16965,13 +16967,13 @@ async function handlePlayRestore(args) {
16965
16967
  );
16966
16968
  return 2;
16967
16969
  }
16968
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
16970
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
16969
16971
  try {
16970
16972
  const result = await client.restorePlay(
16971
16973
  parseReferencedPlayTarget2(playName).playName
16972
16974
  );
16973
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
16974
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, result);
16975
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
16976
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, result);
16975
16977
  return result.restored || result.alreadyActive ? 0 : 4;
16976
16978
  }
16977
16979
  if (result.alreadyActive) {
@@ -17076,7 +17078,7 @@ Examples:
17076
17078
  ).action(async (target, options) => {
17077
17079
  process.exitCode = await handlePlayCheck([
17078
17080
  target,
17079
- ..._chunkNRIVXKMQjs.jsonFieldArgs.call(void 0, options.json),
17081
+ ..._chunkEAIGGEV5js.jsonFieldArgs.call(void 0, options.json),
17080
17082
  ...options.full ? ["--full"] : []
17081
17083
  ]);
17082
17084
  });
@@ -17263,7 +17265,7 @@ JSON field selection:
17263
17265
  ...options.maxConcurrentRows ? ["--max-concurrent-rows", options.maxConcurrentRows] : [],
17264
17266
  ...options.open ? ["--open"] : [],
17265
17267
  ...options.debugMapLatency ? ["--debug-map-latency"] : [],
17266
- ..._chunkNRIVXKMQjs.jsonFieldArgs.call(void 0, options.json),
17268
+ ..._chunkEAIGGEV5js.jsonFieldArgs.call(void 0, options.json),
17267
17269
  ...options.full ? ["--full"] : [],
17268
17270
  ...passthroughArgs
17269
17271
  ]);
@@ -17318,9 +17320,9 @@ Examples:
17318
17320
  const limit = Number(options.historyLimit);
17319
17321
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
17320
17322
  throw new Error("--history-limit must be an integer from 1 to 30.");
17321
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
17323
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
17322
17324
  if (options.binding) {
17323
- _chunkNRIVXKMQjs.printCompactJson.call(void 0,
17325
+ _chunkEAIGGEV5js.printCompactJson.call(void 0,
17324
17326
  await client.getPlayTriggerHistory(options.binding, { limit })
17325
17327
  );
17326
17328
  return;
@@ -17328,7 +17330,7 @@ Examples:
17328
17330
  const result = await client.listPlayTriggerInventory({
17329
17331
  cursor: options.cursor
17330
17332
  });
17331
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, {
17333
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, {
17332
17334
  ...result,
17333
17335
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
17334
17336
  });
@@ -17375,7 +17377,7 @@ Examples:
17375
17377
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
17376
17378
  throw new Error("--group-by must be kind or trigger_source.");
17377
17379
  }
17378
- const result = await new (0, _chunk5FKCLTLSjs.DeeplineClient)().getPlaysActivity({
17380
+ const result = await new (0, _chunkNFWFUCGMjs.DeeplineClient)().getPlaysActivity({
17379
17381
  timeZone: options.timeZone,
17380
17382
  days,
17381
17383
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -17389,7 +17391,7 @@ Examples:
17389
17391
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
17390
17392
  );
17391
17393
  }
17392
- _chunkNRIVXKMQjs.printCommandEnvelope.call(void 0,
17394
+ _chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
17393
17395
  { ...result },
17394
17396
  {
17395
17397
  json: options.json || !process.stdout.isTTY,
@@ -17418,7 +17420,7 @@ Examples:
17418
17420
  false
17419
17421
  );
17420
17422
  });
17421
- _chunkJ2PPXZE4js.registerDeprecatedSearchCommand.call(void 0,
17423
+ _chunkJGEFX6FQjs.registerDeprecatedSearchCommand.call(void 0,
17422
17424
  play,
17423
17425
  (options) => options.all ? ["plays"] : ["prebuilts"]
17424
17426
  );
@@ -17461,7 +17463,7 @@ Examples:
17461
17463
  "JSON output; optionally select comma-separated dotted paths"
17462
17464
  ).action(async (target, options) => {
17463
17465
  process.exitCode = await handlePlayDescribe(
17464
- _chunkNRIVXKMQjs.describeArgs.call(void 0, target, options)
17466
+ _chunkEAIGGEV5js.describeArgs.call(void 0, target, options)
17465
17467
  );
17466
17468
  });
17467
17469
  play.command("versions").description("List revisions for a named play.").addHelpText(
@@ -17568,7 +17570,7 @@ Examples:
17568
17570
  deepline plays deployments <deployment-id>
17569
17571
  `
17570
17572
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
17571
- async (id, options) => id ? _chunkJX3CNS4Wjs.handleDeploymentGet.call(void 0, id, options) : _chunkJX3CNS4Wjs.handleDeploymentsList.call(void 0, options)
17573
+ async (id, options) => id ? _chunkRY6WID7Cjs.handleDeploymentGet.call(void 0, id, options) : _chunkRY6WID7Cjs.handleDeploymentsList.call(void 0, options)
17572
17574
  );
17573
17575
  addPublishHelp(
17574
17576
  play.command("publish <target>").description(
@@ -17747,7 +17749,7 @@ Examples:
17747
17749
  ).action(async (runId, options) => {
17748
17750
  process.exitCode = await handleRunGet([
17749
17751
  runId,
17750
- ..._chunkNRIVXKMQjs.jsonFieldArgs.call(void 0, options.json),
17752
+ ..._chunkEAIGGEV5js.jsonFieldArgs.call(void 0, options.json),
17751
17753
  ...options.full ? ["--full"] : [],
17752
17754
  ...options.input ? ["--input"] : [],
17753
17755
  ...options.config ? ["--config"] : [],
@@ -18000,7 +18002,7 @@ Examples:
18000
18002
  ...options.metadataOut ? ["--metadata-out", options.metadataOut] : [],
18001
18003
  ...options.wait ? ["--wait"] : [],
18002
18004
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
18003
- ..._chunkNRIVXKMQjs.jsonFieldArgs.call(void 0, options.json)
18005
+ ..._chunkEAIGGEV5js.jsonFieldArgs.call(void 0, options.json)
18004
18006
  ]);
18005
18007
  });
18006
18008
  const share = play.command("share").description(
@@ -18166,10 +18168,10 @@ async function handlePlayShareStatus(args) {
18166
18168
  return 2;
18167
18169
  }
18168
18170
  const name = parseReferencedPlayTarget2(target).playName;
18169
- const status = await new (0, _chunk5FKCLTLSjs.DeeplineClient)().getSharePage(name);
18171
+ const status = await new (0, _chunkNFWFUCGMjs.DeeplineClient)().getSharePage(name);
18170
18172
  const outputStatus = shareStatusForOutput(status);
18171
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
18172
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, outputStatus);
18173
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
18174
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, outputStatus);
18173
18175
  return 0;
18174
18176
  }
18175
18177
  if (!outputStatus.share) {
@@ -18208,7 +18210,7 @@ async function handlePlaySharePublish(args) {
18208
18210
  return 2;
18209
18211
  }
18210
18212
  const name = parseReferencedPlayTarget2(target).playName;
18211
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
18213
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
18212
18214
  let revisionId = shareFlagValue(args, "--revision-id");
18213
18215
  let resolvedVersion;
18214
18216
  if (!revisionId) {
@@ -18239,8 +18241,8 @@ async function handlePlaySharePublish(args) {
18239
18241
  );
18240
18242
  if (!hasCompleted) {
18241
18243
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
18242
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
18243
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, {
18244
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
18245
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, {
18244
18246
  ok: false,
18245
18247
  code: "NO_SUCCESSFUL_RUN",
18246
18248
  message,
@@ -18264,8 +18266,8 @@ async function handlePlaySharePublish(args) {
18264
18266
  };
18265
18267
  if (args.includes("--dry-run")) {
18266
18268
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
18267
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
18268
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, plan);
18269
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
18270
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, plan);
18269
18271
  } else {
18270
18272
  console.log(
18271
18273
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -18275,8 +18277,8 @@ async function handlePlaySharePublish(args) {
18275
18277
  }
18276
18278
  const status = await client.publishSharePage(name, request);
18277
18279
  const outputStatus = shareStatusForOutput(status);
18278
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
18279
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, outputStatus);
18280
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
18281
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, outputStatus);
18280
18282
  return 0;
18281
18283
  }
18282
18284
  const urls = shareUrlFields(outputStatus);
@@ -18307,9 +18309,9 @@ async function handlePlayShareUpdate(args) {
18307
18309
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
18308
18310
  ...seoIndexing ? { seoIndexing } : {}
18309
18311
  };
18310
- const status = await new (0, _chunk5FKCLTLSjs.DeeplineClient)().updateSharePage(name, request);
18311
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
18312
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, status);
18312
+ const status = await new (0, _chunkNFWFUCGMjs.DeeplineClient)().updateSharePage(name, request);
18313
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
18314
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, status);
18313
18315
  return 0;
18314
18316
  }
18315
18317
  console.log(`Updated ${name} share settings.`);
@@ -18324,7 +18326,7 @@ async function handlePlayShareRegenerate(args) {
18324
18326
  return 2;
18325
18327
  }
18326
18328
  const name = parseReferencedPlayTarget2(target).playName;
18327
- const client = new (0, _chunk5FKCLTLSjs.DeeplineClient)();
18329
+ const client = new (0, _chunkNFWFUCGMjs.DeeplineClient)();
18328
18330
  let revisionId = shareFlagValue(args, "--revision-id");
18329
18331
  const versionFlag = shareFlagValue(args, "--version");
18330
18332
  if (!revisionId && versionFlag) {
@@ -18341,8 +18343,8 @@ async function handlePlayShareRegenerate(args) {
18341
18343
  revisionId ? { revisionId } : {}
18342
18344
  );
18343
18345
  const outputStatus = shareStatusForOutput(status);
18344
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
18345
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, outputStatus);
18346
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
18347
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, outputStatus);
18346
18348
  return 0;
18347
18349
  }
18348
18350
  const urls = shareUrlFields(outputStatus);
@@ -18367,9 +18369,9 @@ async function handlePlayShareUnpublish(args) {
18367
18369
  return 2;
18368
18370
  }
18369
18371
  const name = parseReferencedPlayTarget2(target).playName;
18370
- const status = await new (0, _chunk5FKCLTLSjs.DeeplineClient)().unpublishSharePage(name);
18371
- if (_chunkNRIVXKMQjs.argsWantJson.call(void 0, args)) {
18372
- _chunkNRIVXKMQjs.printCompactJson.call(void 0, status);
18372
+ const status = await new (0, _chunkNFWFUCGMjs.DeeplineClient)().unpublishSharePage(name);
18373
+ if (_chunkEAIGGEV5js.argsWantJson.call(void 0, args)) {
18374
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, status);
18373
18375
  return 0;
18374
18376
  }
18375
18377
  console.log(`Unpublished ${name}; the public page has been removed.`);