deepline 0.3.345 → 0.3.347

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 (104) hide show
  1. package/dist/bundling-sources/sdk/src/http.ts +14 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/tool-calls.ts +78 -17
  4. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +40 -18
  5. package/dist/cli/auth-PSMCNXBC.js +31 -0
  6. package/dist/cli/{auth-YQSQYS2V.mjs → auth-RWP45MJX.mjs} +4 -4
  7. package/dist/cli/{billing-JRP2ZFMV.js → billing-F6RNSQWW.js} +71 -71
  8. package/dist/cli/{billing-HA75G3SK.mjs → billing-XPKHI4LF.mjs} +4 -4
  9. package/dist/cli/{chunk-5QPHJFNN.mjs → chunk-3JJLQQLW.mjs} +2 -2
  10. package/dist/cli/{chunk-4INBT3OR.js → chunk-3PRBUTJK.js} +240 -231
  11. package/dist/cli/{chunk-MO6QJPEB.js → chunk-5UJOJKPW.js} +33 -27
  12. package/dist/cli/{chunk-EEPFLZ7V.js → chunk-723POEH5.js} +279 -244
  13. package/dist/cli/{chunk-FDH572QX.js → chunk-AGV2VS4U.js} +55 -53
  14. package/dist/cli/{chunk-EWYAS4WD.mjs → chunk-AOKWJJLP.mjs} +1 -1
  15. package/dist/cli/{chunk-TAX3OOC6.mjs → chunk-AYR45POY.mjs} +51 -16
  16. package/dist/cli/{chunk-KXFPDFUO.js → chunk-BUXJSW26.js} +26 -26
  17. package/dist/cli/{chunk-IT6MAYZ3.js → chunk-EOS73ZCP.js} +8 -8
  18. package/dist/cli/{chunk-2OTDDG2J.js → chunk-GS2ZSOAQ.js} +2 -2
  19. package/dist/cli/{chunk-FBUWH67Y.js → chunk-GT7OCAWV.js} +48 -48
  20. package/dist/cli/{chunk-ITOJRSOU.js → chunk-JB4UKD3B.js} +6 -6
  21. package/dist/cli/{chunk-UJCHR3J3.js → chunk-L4TXOCCC.js} +1 -1
  22. package/dist/cli/{chunk-S3JKJL44.mjs → chunk-LH4VHCN5.mjs} +9 -7
  23. package/dist/cli/{chunk-WRTLSH6R.js → chunk-LPKV6IBM.js} +8 -8
  24. package/dist/cli/{chunk-DOPNLW2H.mjs → chunk-LTJOC47W.mjs} +16 -7
  25. package/dist/cli/{chunk-AFNEQ43J.js → chunk-MX53GIOB.js} +40 -1
  26. package/dist/cli/{chunk-AW2G44QA.mjs → chunk-NU5EU2SH.mjs} +4 -4
  27. package/dist/cli/{chunk-YGQ4AIK7.mjs → chunk-OS6CZRJE.mjs} +3 -3
  28. package/dist/cli/{chunk-JDSRPSES.mjs → chunk-PQGDU7B5.mjs} +7 -1
  29. package/dist/cli/{chunk-URPZWUVN.js → chunk-ROEN4NXY.js} +60 -60
  30. package/dist/cli/{chunk-NTIWTBEH.mjs → chunk-SFJEAK54.mjs} +1 -1
  31. package/dist/cli/{chunk-3XKBPPP7.mjs → chunk-U2GPF4SB.mjs} +2 -2
  32. package/dist/cli/{chunk-N3GUUSDO.mjs → chunk-VRYRVD3F.mjs} +1 -1
  33. package/dist/cli/{chunk-TDW3RU7S.js → chunk-WX7W76U7.js} +15 -15
  34. package/dist/cli/{chunk-GGRQBO3S.mjs → chunk-X32ZLEUU.mjs} +2 -2
  35. package/dist/cli/{chunk-MLO7ZGSH.mjs → chunk-Y6D2JYBR.mjs} +2 -2
  36. package/dist/cli/{chunk-JOA6IKDE.mjs → chunk-Z6B4UPM4.mjs} +39 -0
  37. package/dist/cli/{client-VKQGBPZ5.mjs → client-FZJ3RSO3.mjs} +3 -3
  38. package/dist/cli/client-J4QGSQ6Y.js +20 -0
  39. package/dist/cli/{csv-ZFMAI2HY.mjs → csv-HPBPBU3I.mjs} +3 -3
  40. package/dist/cli/{csv-UNP7KAXF.js → csv-QSMT5HZS.js} +12 -12
  41. package/dist/cli/{db-C5YWXRLY.mjs → db-2KAUAVVC.mjs} +4 -4
  42. package/dist/cli/{db-LDLXC2JQ.js → db-IKZKICP3.js} +29 -29
  43. package/dist/cli/{describe-UYNKJV6T.mjs → describe-EW4GZMUK.mjs} +9 -9
  44. package/dist/cli/{describe-FO62H2CB.js → describe-QM7Q5Y2H.js} +25 -25
  45. package/dist/cli/{executions-DIADSK2E.js → executions-5ICONLFX.js} +6 -6
  46. package/dist/cli/{executions-JYKV3GQJ.mjs → executions-U5WWUFEZ.mjs} +4 -4
  47. package/dist/cli/{feedback-YBO47O7G.js → feedback-N2KGAK4V.js} +7 -7
  48. package/dist/cli/{feedback-4UEJJFRL.mjs → feedback-ZBQPQPFG.mjs} +3 -3
  49. package/dist/cli/git-2N5LS25H.js +23 -0
  50. package/dist/cli/{git-A6DPLCMU.mjs → git-M5YEP57H.mjs} +4 -4
  51. package/dist/cli/index.js +79 -79
  52. package/dist/cli/index.mjs +31 -31
  53. package/dist/cli/{legacy-noops-HCAOJI7X.mjs → legacy-noops-GJUYBH2F.mjs} +4 -4
  54. package/dist/cli/{legacy-noops-F6TJLZV2.js → legacy-noops-IQIPPJF7.js} +7 -7
  55. package/dist/cli/{monitors-B5QFSFK7.js → monitors-DQUCHISX.js} +85 -85
  56. package/dist/cli/{monitors-XYP7XNCT.mjs → monitors-XJAJNMG4.mjs} +4 -4
  57. package/dist/cli/{org-O5VBVLSP.mjs → org-DFWDN4EJ.mjs} +4 -4
  58. package/dist/cli/{org-NMWNBQZI.js → org-G45CXUJV.js} +60 -60
  59. package/dist/cli/{play-Z2STHYQB.mjs → play-URTZW2Q4.mjs} +8 -8
  60. package/dist/cli/play-WWMUYKWS.js +153 -0
  61. package/dist/cli/{providers-WGIJLFBZ.mjs → providers-CCKMRCXU.mjs} +4 -4
  62. package/dist/cli/{providers-BAPO54GE.js → providers-IVUWWGFP.js} +7 -7
  63. package/dist/cli/{quickstart-LL6KUMJ5.mjs → quickstart-CRHIA3PZ.mjs} +3 -3
  64. package/dist/cli/{quickstart-JGRMJ6M4.js → quickstart-MMIVNRV4.js} +5 -5
  65. package/dist/cli/{search-P7BVN4OI.mjs → search-NDRDOINX.mjs} +5 -5
  66. package/dist/cli/search-YZL2QRIF.js +26 -0
  67. package/dist/cli/{secrets-QUBFPBE5.js → secrets-GQUBMJGM.js} +13 -13
  68. package/dist/cli/{secrets-5JHLILQD.mjs → secrets-SUC3KLLH.mjs} +4 -4
  69. package/dist/cli/{sessions-3BYS3WQZ.mjs → sessions-7CAU6JL5.mjs} +4 -4
  70. package/dist/cli/{sessions-TATDTEY6.js → sessions-AQCRVLHW.js} +5 -5
  71. package/dist/cli/{settings-SLFYXPRP.js → settings-4SDI73XW.js} +74 -74
  72. package/dist/cli/{settings-TXWQLO34.mjs → settings-LFFOFAU6.mjs} +7 -7
  73. package/dist/cli/{setup-XTAW2JS2.mjs → setup-BKCQOJBD.mjs} +6 -6
  74. package/dist/cli/{setup-A3CXCYRI.js → setup-FQ3E7U7G.js} +41 -41
  75. package/dist/cli/skills-7BPEGDIA.js +28 -0
  76. package/dist/cli/{skills-P323CMPH.mjs → skills-USGJ5MF7.mjs} +4 -4
  77. package/dist/cli/{tools-FMSH7Z7I.mjs → tools-5HTXLDZ4.mjs} +7 -7
  78. package/dist/cli/tools-5VEZ4QR4.js +40 -0
  79. package/dist/cli/{update-CGKRTVOD.mjs → update-F7TIJEIV.mjs} +6 -6
  80. package/dist/cli/update-YFPMWKI4.js +28 -0
  81. package/dist/cli/{workflow-2DVIYBLG.mjs → workflow-FXJ2D2MG.mjs} +5 -5
  82. package/dist/cli/{workflow-EFOSJKW7.js → workflow-J5JVOUIL.js} +15 -15
  83. package/dist/{client-BHReRdWK.d.mts → client-D20uyRYB.d.mts} +6 -0
  84. package/dist/{client-DW3zASj8.d.ts → client-rHyf5s_Y.d.ts} +6 -0
  85. package/dist/index.d.mts +2 -2
  86. package/dist/index.d.ts +2 -2
  87. package/dist/index.js +6 -6
  88. package/dist/index.mjs +3 -3
  89. package/dist/install-integrity.json +78 -78
  90. package/dist/plays/run-request.d.mts +1 -1
  91. package/dist/plays/run-request.d.ts +1 -1
  92. package/dist/release.d.mts +1 -1
  93. package/dist/release.d.ts +1 -1
  94. package/dist/release.js +2 -2
  95. package/dist/release.mjs +1 -1
  96. package/package.json +1 -1
  97. package/dist/cli/auth-4HCZZPZH.js +0 -31
  98. package/dist/cli/client-VOXK5Z4D.js +0 -20
  99. package/dist/cli/git-FPC5VIIK.js +0 -23
  100. package/dist/cli/play-D2SCAJXG.js +0 -153
  101. package/dist/cli/search-UNJN5P72.js +0 -26
  102. package/dist/cli/skills-ZOUUC72T.js +0 -28
  103. package/dist/cli/tools-O7TLYHFT.js +0 -40
  104. package/dist/cli/update-3LT6YSIP.js +0 -28
@@ -1,7 +1,8 @@
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 _chunkAFNEQ43Jjs = require('./chunk-AFNEQ43J.js');
4
+
5
+ var _chunkMX53GIOBjs = require('./chunk-MX53GIOB.js');
5
6
 
6
7
 
7
8
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
@@ -10,11 +11,11 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
10
11
  var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
11
12
 
12
13
 
13
- var _chunkWRTLSH6Rjs = require('./chunk-WRTLSH6R.js');
14
+ var _chunkLPKV6IBMjs = require('./chunk-LPKV6IBM.js');
14
15
 
15
16
 
16
17
 
17
- var _chunkKXFPDFUOjs = require('./chunk-KXFPDFUO.js');
18
+ var _chunkBUXJSW26js = require('./chunk-BUXJSW26.js');
18
19
 
19
20
 
20
21
 
@@ -39,7 +40,7 @@ var _chunkLVEDPCLJjs = require('./chunk-LVEDPCLJ.js');
39
40
 
40
41
 
41
42
 
42
- var _chunkEEPFLZ7Vjs = require('./chunk-EEPFLZ7V.js');
43
+ var _chunk723POEH5js = require('./chunk-723POEH5.js');
43
44
 
44
45
 
45
46
 
@@ -72,10 +73,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
72
73
 
73
74
 
74
75
 
75
- var _chunkITOJRSOUjs = require('./chunk-ITOJRSOU.js');
76
+ var _chunkJB4UKD3Bjs = require('./chunk-JB4UKD3B.js');
76
77
 
77
78
 
78
- var _chunkMO6QJPEBjs = require('./chunk-MO6QJPEB.js');
79
+ var _chunk5UJOJKPWjs = require('./chunk-5UJOJKPW.js');
79
80
 
80
81
 
81
82
 
@@ -2067,7 +2068,7 @@ function resolveField(key, command) {
2067
2068
  function printSettings(result, json, name) {
2068
2069
  result = { ...result, settings: parsePlaySettings(result.settings) };
2069
2070
  const selected = fields.filter(([key]) => !name || key === name);
2070
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
2071
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
2071
2072
  {
2072
2073
  ...result,
2073
2074
  settings: Object.fromEntries(
@@ -2111,7 +2112,7 @@ function registerPlaySettingsCommands(plays) {
2111
2112
  valueSyntax: field.cli.valueSyntax,
2112
2113
  examples: field.cli.examples
2113
2114
  }));
2114
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
2115
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
2115
2116
  {
2116
2117
  fields: descriptions,
2117
2118
  render: {
@@ -2136,7 +2137,7 @@ function registerPlaySettingsCommands(plays) {
2136
2137
  async (options, command) => {
2137
2138
  if (options.name !== void 0) resolveField(options.name, command);
2138
2139
  printSettings(
2139
- await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().getPlaySettings(options.play),
2140
+ await new (0, _chunk723POEH5js.DeeplineClient)().getPlaySettings(options.play),
2140
2141
  options.json,
2141
2142
  options.name
2142
2143
  );
@@ -2167,7 +2168,7 @@ function registerPlaySettingsCommands(plays) {
2167
2168
  );
2168
2169
  }
2169
2170
  if (options.dryRun) {
2170
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
2171
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
2171
2172
  {
2172
2173
  dryRun: true,
2173
2174
  play,
@@ -2188,7 +2189,7 @@ function registerPlaySettingsCommands(plays) {
2188
2189
  return;
2189
2190
  }
2190
2191
  printSettings(
2191
- await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().updatePlaySettings(play, patch),
2192
+ await new (0, _chunk723POEH5js.DeeplineClient)().updatePlaySettings(play, patch),
2192
2193
  options.json
2193
2194
  );
2194
2195
  };
@@ -2214,13 +2215,13 @@ function registerPlaySettingsCommands(plays) {
2214
2215
  "--root must be person or team; --limit must be 1\u2013100.",
2215
2216
  { exitCode: 2 }
2216
2217
  );
2217
- const page = await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().listPlaySettingsPaths({
2218
+ const page = await new (0, _chunk723POEH5js.DeeplineClient)().listPlaySettingsPaths({
2218
2219
  root: options.root,
2219
2220
  limit,
2220
2221
  cursor: options.cursor
2221
2222
  });
2222
2223
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""} --json` : null;
2223
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
2224
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
2224
2225
  {
2225
2226
  ...page,
2226
2227
  nextCommand,
@@ -2271,7 +2272,7 @@ function registerPlaySettingsCommands(plays) {
2271
2272
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2272
2273
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2273
2274
  };
2274
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
2275
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
2275
2276
  const paths = [];
2276
2277
  let cursor;
2277
2278
  do {
@@ -2333,7 +2334,7 @@ function registerPlaySettingsCommands(plays) {
2333
2334
  moved.push(move.playName);
2334
2335
  }
2335
2336
  }
2336
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
2337
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
2337
2338
  {
2338
2339
  dryRun: Boolean(options.dryRun),
2339
2340
  from: options.from,
@@ -2461,7 +2462,7 @@ function triggerLines(view) {
2461
2462
  return lines;
2462
2463
  }
2463
2464
  function printView(view, json) {
2464
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
2465
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
2465
2466
  {
2466
2467
  ...view,
2467
2468
  render: {
@@ -2474,7 +2475,7 @@ function printView(view, json) {
2474
2475
  );
2475
2476
  }
2476
2477
  function printResult(result, json) {
2477
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
2478
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
2478
2479
  {
2479
2480
  ...result,
2480
2481
  render: {
@@ -2504,7 +2505,7 @@ async function mutate(command, options, build) {
2504
2505
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2505
2506
  }
2506
2507
  if (options.dryRun) {
2507
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
2508
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
2508
2509
  {
2509
2510
  dryRun: true,
2510
2511
  play: options.play,
@@ -2523,7 +2524,7 @@ async function mutate(command, options, build) {
2523
2524
  return;
2524
2525
  }
2525
2526
  printResult(
2526
- await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2527
+ await new (0, _chunk723POEH5js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2527
2528
  options.json
2528
2529
  );
2529
2530
  }
@@ -2556,7 +2557,7 @@ function registerPlayTriggerConfigCommands(plays) {
2556
2557
  }).addHelpText("after", help2);
2557
2558
  trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON; automatic when piped").addHelpText("after", help2).action(async (options) => {
2558
2559
  printView(
2559
- await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2560
+ await new (0, _chunk723POEH5js.DeeplineClient)().getPlayTriggerConfig(options.play),
2560
2561
  options.json
2561
2562
  );
2562
2563
  });
@@ -2600,7 +2601,7 @@ function registerPlayTriggerConfigCommands(plays) {
2600
2601
  if (options.auth === void 0) {
2601
2602
  if (secrets.length || options.header || options.signaturePrefix)
2602
2603
  usage(setWebhook, "--secret/--header need --auth.");
2603
- const current = await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().getPlayTriggerConfig(
2604
+ const current = await new (0, _chunk723POEH5js.DeeplineClient)().getPlayTriggerConfig(
2604
2605
  options.play
2605
2606
  );
2606
2607
  return {
@@ -2677,7 +2678,7 @@ var KIND_DESCRIPTIONS = {
2677
2678
  "receipt.skipped": "Saved work result: skipped.",
2678
2679
  "runtime.event": "Other event."
2679
2680
  };
2680
- var RUN_LOGS_KIND_HELP = _chunkEEPFLZ7Vjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2681
+ var RUN_LOGS_KIND_HELP = _chunk723POEH5js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2681
2682
  kind,
2682
2683
  description: KIND_DESCRIPTIONS[kind]
2683
2684
  }));
@@ -2814,9 +2815,9 @@ function configureRunQueryCommandErrors(command, resource) {
2814
2815
  const args = program.args;
2815
2816
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2816
2817
  error.exitCode = 2;
2817
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2818
- _chunkITOJRSOUjs.printJsonError.call(void 0,
2819
- Object.assign(new (0, _chunkEEPFLZ7Vjs.RunEventQueryInputError)(error.message), {
2818
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2819
+ _chunkJB4UKD3Bjs.printJsonError.call(void 0,
2820
+ Object.assign(new (0, _chunk723POEH5js.RunEventQueryInputError)(error.message), {
2820
2821
  exitCode: 2,
2821
2822
  retryable: false
2822
2823
  })
@@ -2860,14 +2861,14 @@ function parseQuery(args, resource) {
2860
2861
  if (VALUE_FLAGS.has(flag)) {
2861
2862
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2862
2863
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2863
- throw new (0, _chunkEEPFLZ7Vjs.RunEventQueryInputError)(
2864
+ throw new (0, _chunk723POEH5js.RunEventQueryInputError)(
2864
2865
  `${flag} requires a value. Use ${flag} <value>.`
2865
2866
  );
2866
2867
  }
2867
2868
  if (flag === "--sum") sums.push(value);
2868
2869
  else {
2869
2870
  if (values[flag] !== void 0) {
2870
- throw new (0, _chunkEEPFLZ7Vjs.RunEventQueryInputError)(
2871
+ throw new (0, _chunk723POEH5js.RunEventQueryInputError)(
2871
2872
  `${flag} may only be supplied once.`
2872
2873
  );
2873
2874
  }
@@ -2881,12 +2882,12 @@ function parseQuery(args, resource) {
2881
2882
  }
2882
2883
  if (arg.startsWith("-")) {
2883
2884
  const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
2884
- throw new (0, _chunkEEPFLZ7Vjs.RunEventQueryInputError)(
2885
+ throw new (0, _chunk723POEH5js.RunEventQueryInputError)(
2885
2886
  `Unsupported query flag ${flag}. ${correction}`
2886
2887
  );
2887
2888
  }
2888
2889
  if (runId !== void 0) {
2889
- throw new (0, _chunkEEPFLZ7Vjs.RunEventQueryInputError)(
2890
+ throw new (0, _chunk723POEH5js.RunEventQueryInputError)(
2890
2891
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2891
2892
  );
2892
2893
  }
@@ -2894,7 +2895,7 @@ function parseQuery(args, resource) {
2894
2895
  }
2895
2896
  if (switches.has("--fields")) {
2896
2897
  if (runId !== void 0) {
2897
- throw new (0, _chunkEEPFLZ7Vjs.RunEventQueryInputError)(
2898
+ throw new (0, _chunk723POEH5js.RunEventQueryInputError)(
2898
2899
  "--fields does not use a run ID. Omit the positional run ID."
2899
2900
  );
2900
2901
  }
@@ -2907,18 +2908,18 @@ function parseQuery(args, resource) {
2907
2908
  )
2908
2909
  ];
2909
2910
  if (incompatible.length) {
2910
- throw new (0, _chunkEEPFLZ7Vjs.RunEventQueryInputError)(
2911
+ throw new (0, _chunk723POEH5js.RunEventQueryInputError)(
2911
2912
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2912
2913
  );
2913
2914
  }
2914
2915
  }
2915
2916
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2916
- throw new (0, _chunkEEPFLZ7Vjs.RunEventQueryInputError)(
2917
+ throw new (0, _chunk723POEH5js.RunEventQueryInputError)(
2917
2918
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2918
2919
  );
2919
2920
  }
2920
2921
  if (sums.length && switches.has("--count")) {
2921
- throw new (0, _chunkEEPFLZ7Vjs.RunEventQueryInputError)(
2922
+ throw new (0, _chunk723POEH5js.RunEventQueryInputError)(
2922
2923
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2923
2924
  );
2924
2925
  }
@@ -2926,7 +2927,7 @@ function parseQuery(args, resource) {
2926
2927
  if (operation === "count") {
2927
2928
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2928
2929
  if (values[flag] !== void 0 || switches.has(flag)) {
2929
- throw new (0, _chunkEEPFLZ7Vjs.RunEventQueryInputError)(
2930
+ throw new (0, _chunk723POEH5js.RunEventQueryInputError)(
2930
2931
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2931
2932
  );
2932
2933
  }
@@ -2961,16 +2962,16 @@ function parseQuery(args, resource) {
2961
2962
  ];
2962
2963
  }
2963
2964
  }
2964
- const request = _chunkEEPFLZ7Vjs.normalizeRunEventOperationRequest.call(void 0, body);
2965
+ const request = _chunk723POEH5js.normalizeRunEventOperationRequest.call(void 0, body);
2965
2966
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2966
2967
  const backend = values["--runtime-backend"];
2967
2968
  if (backend && backend !== "daytona" && backend !== "modal") {
2968
- throw new (0, _chunkEEPFLZ7Vjs.RunEventQueryInputError)(
2969
+ throw new (0, _chunk723POEH5js.RunEventQueryInputError)(
2969
2970
  "--runtime-backend must be daytona or modal."
2970
2971
  );
2971
2972
  }
2972
2973
  if (backend && !namespace) {
2973
- throw new (0, _chunkEEPFLZ7Vjs.RunEventQueryInputError)(
2974
+ throw new (0, _chunk723POEH5js.RunEventQueryInputError)(
2974
2975
  "--runtime-backend requires --runtime-namespace."
2975
2976
  );
2976
2977
  }
@@ -3018,12 +3019,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3018
3019
  const failure = error instanceof Error ? error : new Error(String(error));
3019
3020
  const record3 = failure;
3020
3021
  const status = record3.statusCode;
3021
- const exitCode = error instanceof _chunkEEPFLZ7Vjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3022
+ const exitCode = error instanceof _chunk723POEH5js.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
3022
3023
  const diagnostic = Object.assign(failure, {
3023
3024
  exitCode,
3024
3025
  retryable: exitCode === 5
3025
3026
  });
3026
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) _chunkITOJRSOUjs.printJsonError.call(void 0, diagnostic);
3027
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) _chunkJB4UKD3Bjs.printJsonError.call(void 0, diagnostic);
3027
3028
  else console.error(`Error: ${diagnostic.message}`);
3028
3029
  return exitCode;
3029
3030
  }
@@ -3038,7 +3039,7 @@ async function executeRunEventQuery(args, resource) {
3038
3039
  ...criteria
3039
3040
  } = request;
3040
3041
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3041
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
3042
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
3042
3043
  let result;
3043
3044
  if (request.operation === "fields") {
3044
3045
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3104,13 +3105,13 @@ async function executeRunEventQuery(args, resource) {
3104
3105
  lines.push(`Next page: ${nextPage}`);
3105
3106
  }
3106
3107
  }
3107
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
3108
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
3108
3109
  {
3109
3110
  ...result,
3110
3111
  ...nextPage ? { next: { page: nextPage } } : {},
3111
3112
  render: { sections: [{ title: `run ${resource}`, lines }] }
3112
3113
  },
3113
- { json: _chunkITOJRSOUjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3114
+ { json: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3114
3115
  ` }
3115
3116
  );
3116
3117
  return 0;
@@ -3930,7 +3931,7 @@ function checkedRunExample(plays, target) {
3930
3931
  const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
3931
3932
  const base = `deepline plays run --file ${quote(target)}`;
3932
3933
  return {
3933
- command: `${base}${_chunkEEPFLZ7Vjs.playInputExampleArgs.call(void 0, schema)} --json`,
3934
+ command: `${base}${_chunk723POEH5js.playInputExampleArgs.call(void 0, schema)} --json`,
3934
3935
  note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema. Keep stderr separate from JSON stdout."
3935
3936
  };
3936
3937
  }
@@ -5553,7 +5554,7 @@ async function runPlayBootstrap(args) {
5553
5554
  return runMonitorBootstrap(args);
5554
5555
  }
5555
5556
  const options = parsePlayBootstrapOptions(args);
5556
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
5557
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
5557
5558
  const contracts = await loadBootstrapContracts(client, options);
5558
5559
  const csvContext = loadCsvContext(options.from);
5559
5560
  const source = generateBootstrapPlaySource({
@@ -5708,7 +5709,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5708
5709
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
5709
5710
  );
5710
5711
  }
5711
- const response = await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().runs.getReceipts(runId, {
5712
+ const response = await new (0, _chunk723POEH5js.DeeplineClient)().runs.getReceipts(runId, {
5712
5713
  keys
5713
5714
  });
5714
5715
  const failed = response.receipts.filter(
@@ -5720,7 +5721,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5720
5721
  JSON.stringify(response, null, 2) + "\n",
5721
5722
  { flag: "wx", mode: 384 }
5722
5723
  );
5723
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
5724
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
5724
5725
  {
5725
5726
  runId,
5726
5727
  out: options.out,
@@ -5730,7 +5731,7 @@ Existing credential redactions and referenced-list previews remain as stored.
5730
5731
  { json: true }
5731
5732
  );
5732
5733
  } else {
5733
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5734
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
5734
5735
  }
5735
5736
  if (failed)
5736
5737
  process.exitCode = response.receipts.some(
@@ -5769,7 +5770,7 @@ includes nextCommand when another page is available.
5769
5770
  { exitCode: 2 }
5770
5771
  );
5771
5772
  }
5772
- const page = await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().runs.children(parentRunId, {
5773
+ const page = await new (0, _chunk723POEH5js.DeeplineClient)().runs.children(parentRunId, {
5773
5774
  launchKey: options.launchKey,
5774
5775
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
5775
5776
  limit
@@ -5785,7 +5786,7 @@ includes nextCommand when another page is available.
5785
5786
  String(limit),
5786
5787
  "--json"
5787
5788
  ].join(" ") : null;
5788
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
5789
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
5789
5790
  {
5790
5791
  parentRunId,
5791
5792
  launchKey: options.launchKey,
@@ -5821,7 +5822,7 @@ async function handleRunsHistory(options) {
5821
5822
  throw new Error("--limit must be a positive integer.");
5822
5823
  }
5823
5824
  }
5824
- const page = await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().runs.history({
5825
+ const page = await new (0, _chunk723POEH5js.DeeplineClient)().runs.history({
5825
5826
  cursor: options.cursor,
5826
5827
  orgId: options.org,
5827
5828
  search: options.search,
@@ -5837,7 +5838,7 @@ async function handleRunsHistory(options) {
5837
5838
  );
5838
5839
  }
5839
5840
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
5840
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
5841
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
5841
5842
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
5842
5843
  options.json ? { json: true } : {}
5843
5844
  );
@@ -5889,12 +5890,12 @@ async function runRunsRerunCommand(runId, options) {
5889
5890
  return 1;
5890
5891
  }
5891
5892
  }
5892
- const result = await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().runs.rerun(runId, {
5893
+ const result = await new (0, _chunk723POEH5js.DeeplineClient)().runs.rerun(runId, {
5893
5894
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
5894
5895
  ...inputOverrides === void 0 ? {} : { inputOverrides }
5895
5896
  });
5896
- if (_chunkITOJRSOUjs.shouldEmitJson.call(void 0, options.json)) {
5897
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0, result, { json: true });
5897
+ if (_chunkJB4UKD3Bjs.shouldEmitJson.call(void 0, options.json)) {
5898
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0, result, { json: true });
5898
5899
  } else {
5899
5900
  console.log(
5900
5901
  result.deduplicated === true ? `
@@ -6162,7 +6163,7 @@ function projectRunDatasetCell(value) {
6162
6163
  const logicalValue = parseSerializedDatasetValue(value);
6163
6164
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
6164
6165
  if (typeof logicalValue === "object") {
6165
- return _chunkITOJRSOUjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
6166
+ return _chunkJB4UKD3Bjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
6166
6167
  }
6167
6168
  return logicalValue;
6168
6169
  }
@@ -8579,7 +8580,7 @@ function renderOutcome(outcome) {
8579
8580
  function printResult2(input) {
8580
8581
  const failed = input.status === "failed" || input.status === "cancelled";
8581
8582
  if (failed) process.exitCode = 1;
8582
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
8583
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
8583
8584
  {
8584
8585
  deployment: { ...input.deployment, status: input.status },
8585
8586
  plays: input.outcomes,
@@ -8604,7 +8605,7 @@ async function handlePlaysDeploy(directory, options) {
8604
8605
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
8605
8606
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
8606
8607
  });
8607
- const { http, config } = _chunkITOJRSOUjs.getAuthedHttpClient.call(void 0, );
8608
+ const { http, config } = _chunkJB4UKD3Bjs.getAuthedHttpClient.call(void 0, );
8608
8609
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
8609
8610
  const startDeployment = () => http.post("/api/v2/deployments", {
8610
8611
  deliveryId,
@@ -8631,7 +8632,7 @@ async function handlePlaysDeploy(directory, options) {
8631
8632
  },
8632
8633
  {
8633
8634
  bundle: bundleDeployPlayFile,
8634
- fetchImpl: _chunkMO6QJPEBjs.fetchWithDeploymentProtection,
8635
+ fetchImpl: _chunk5UJOJKPWjs.fetchWithDeploymentProtection,
8635
8636
  // The plays are already here: "opening" the source is naming it.
8636
8637
  openSource: async () => ({
8637
8638
  open: async () => ({ repoRoot: root })
@@ -9199,7 +9200,7 @@ function parseInputFlagValue(raw) {
9199
9200
  return raw;
9200
9201
  }
9201
9202
  function parsePlayRunOptions(args, initialInput = null) {
9202
- const selection = _chunkITOJRSOUjs.parseJsonFields.call(void 0, args, "run");
9203
+ const selection = _chunkJB4UKD3Bjs.parseJsonFields.call(void 0, args, "run");
9203
9204
  args = selection.args;
9204
9205
  const usage2 = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and ctx.dataset guidance.";
9205
9206
  let filePath = null;
@@ -9209,7 +9210,7 @@ function parsePlayRunOptions(args, initialInput = null) {
9209
9210
  let revisionSelector = null;
9210
9211
  const watch = !args.includes("--no-wait");
9211
9212
  const dryRun = args.includes("--dry-run");
9212
- let jsonOutput = dryRun ? _chunkITOJRSOUjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkITOJRSOUjs.argsWantJson.call(void 0, args);
9213
+ let jsonOutput = dryRun ? _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args);
9213
9214
  const fullJson = args.includes("--full");
9214
9215
  const force = args.includes("--force");
9215
9216
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -9256,7 +9257,7 @@ function parsePlayRunOptions(args, initialInput = null) {
9256
9257
  "--log-level requires one of: debug, info, warn, error."
9257
9258
  );
9258
9259
  }
9259
- const parsed = _chunkEEPFLZ7Vjs.parseLogLevel.call(void 0, value);
9260
+ const parsed = _chunk723POEH5js.parseLogLevel.call(void 0, value);
9260
9261
  if (!parsed) {
9261
9262
  throw new Error(
9262
9263
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -9563,7 +9564,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
9563
9564
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
9564
9565
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
9565
9566
  );
9566
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkEEPFLZ7Vjs.parseLogLevel.call(void 0, options.logLevel);
9567
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk723POEH5js.parseLogLevel.call(void 0, options.logLevel);
9567
9568
  if (!logLevel)
9568
9569
  throw new Error("--log-level requires one of: debug, info, warn, error.");
9569
9570
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -9577,13 +9578,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
9577
9578
  if (debugAlias || debugMapLatency && logLevel === "info")
9578
9579
  logLevel = "debug";
9579
9580
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
9580
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkITOJRSOUjs.parseJsonFields.call(void 0,
9581
- [...fullJson ? ["--full"] : [], ..._chunkITOJRSOUjs.jsonFieldArgs.call(void 0, options.json)],
9581
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkJB4UKD3Bjs.parseJsonFields.call(void 0,
9582
+ [...fullJson ? ["--full"] : [], ..._chunkJB4UKD3Bjs.jsonFieldArgs.call(void 0, options.json)],
9582
9583
  "run"
9583
9584
  ).fields;
9584
9585
  const watch = options.wait === false ? false : base.watch;
9585
9586
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
9586
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkITOJRSOUjs.argsWantJson.call(void 0, []) : explicitJson;
9587
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkJB4UKD3Bjs.argsWantJson.call(void 0, []) : explicitJson;
9587
9588
  const verboseLogs = Boolean(
9588
9589
  debugAlias || logLevel === "debug" || debugMapLatency
9589
9590
  );
@@ -9627,7 +9628,7 @@ function playAuthoringGraphPath(parent, filePath) {
9627
9628
  // src/cli/renderers/local-play-execution.ts
9628
9629
  function renderLocalPlayExecutionPlan(plan, options = {}) {
9629
9630
  if (options.dryRun) {
9630
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
9631
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
9631
9632
  return;
9632
9633
  }
9633
9634
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -10583,7 +10584,7 @@ function playStatusErrorText(status) {
10583
10584
  function isRetryablePendingStartFailure(status) {
10584
10585
  if (status.status !== "failed") return false;
10585
10586
  if (status.runId && status.runId !== "pending") return false;
10586
- return _chunkEEPFLZ7Vjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
10587
+ return _chunk723POEH5js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
10587
10588
  }
10588
10589
  function pendingStartFailureStatus(input) {
10589
10590
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -10610,13 +10611,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
10610
10611
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
10611
10612
  function watchSurfaceReaches(state, provenance, level) {
10612
10613
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
10613
- if (!_chunkEEPFLZ7Vjs.logLevelReaches.call(void 0, level, minimumLevel)) {
10614
+ if (!_chunk723POEH5js.logLevelReaches.call(void 0, level, minimumLevel)) {
10614
10615
  return false;
10615
10616
  }
10616
- if (_chunkEEPFLZ7Vjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
10617
+ if (_chunk723POEH5js.logProvenanceReaches.call(void 0, provenance, "watch")) {
10617
10618
  return true;
10618
10619
  }
10619
- return state.verbose === true && _chunkEEPFLZ7Vjs.logProvenanceReaches.call(void 0, provenance, "debug");
10620
+ return state.verbose === true && _chunk723POEH5js.logProvenanceReaches.call(void 0, provenance, "debug");
10620
10621
  }
10621
10622
  function getEventPayload(event) {
10622
10623
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -11118,7 +11119,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
11118
11119
  }
11119
11120
  function openPlayDashboard(dashboardUrl, open2) {
11120
11121
  if (open2 && dashboardUrl) {
11121
- _chunkITOJRSOUjs.openInBrowser.call(void 0, dashboardUrl);
11122
+ _chunkJB4UKD3Bjs.openInBrowser.call(void 0, dashboardUrl);
11122
11123
  }
11123
11124
  }
11124
11125
  function printPlayLogLines(input) {
@@ -11180,7 +11181,7 @@ async function waitForPlayCompletionByWatch(input) {
11180
11181
  billing: false
11181
11182
  });
11182
11183
  } catch (error) {
11183
- if (_chunkEEPFLZ7Vjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
11184
+ if (_chunk723POEH5js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
11184
11185
  return null;
11185
11186
  }
11186
11187
  throw error;
@@ -11369,7 +11370,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11369
11370
  billing: false
11370
11371
  });
11371
11372
  } catch (error) {
11372
- if (_chunkEEPFLZ7Vjs.isTransientPlayRunReadError.call(void 0, error)) {
11373
+ if (_chunk723POEH5js.isTransientPlayRunReadError.call(void 0, error)) {
11373
11374
  return null;
11374
11375
  }
11375
11376
  throw error;
@@ -11577,7 +11578,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11577
11578
  lastPhase
11578
11579
  });
11579
11580
  }
11580
- if (lastKnownWorkflowId && _chunkEEPFLZ7Vjs.isTransientPlayRunReadError.call(void 0, error)) {
11581
+ if (lastKnownWorkflowId && _chunk723POEH5js.isTransientPlayRunReadError.call(void 0, error)) {
11581
11582
  if (timeout) {
11582
11583
  clearTimeout(timeout);
11583
11584
  }
@@ -11613,7 +11614,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
11613
11614
  onRunAdmitted: confirmAdmission
11614
11615
  });
11615
11616
  }
11616
- if (!lastKnownWorkflowId && _chunkEEPFLZ7Vjs.isTransientPlayRunReadError.call(void 0, error)) {
11617
+ if (!lastKnownWorkflowId && _chunk723POEH5js.isTransientPlayRunReadError.call(void 0, error)) {
11617
11618
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
11618
11619
  phase: "cli.play_start_stream_transient_failure",
11619
11620
  ms: Date.now() - startedAt,
@@ -11712,7 +11713,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
11712
11713
  "logs"
11713
11714
  ]);
11714
11715
  function formatPlayLogLine(rawLine, state) {
11715
- const classified = _chunkEEPFLZ7Vjs.classifyLogLine.call(void 0, rawLine);
11716
+ const classified = _chunk723POEH5js.classifyLogLine.call(void 0, rawLine);
11716
11717
  const line = classified.line;
11717
11718
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
11718
11719
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _351 => _351[1]]) ? new Date(timestampMatch[1]) : null;
@@ -11727,14 +11728,14 @@ function formatPlayLogLine(rawLine, state) {
11727
11728
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
11728
11729
  const providerWait = formatProviderCapacityWaitLogLine(line);
11729
11730
  if (providerWait && !state.verbose) {
11730
- return _chunkEEPFLZ7Vjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
11731
+ return _chunk723POEH5js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
11731
11732
  }
11732
11733
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
11733
11734
  if (mapProgress && !state.verbose) {
11734
- return _chunkEEPFLZ7Vjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
11735
+ return _chunk723POEH5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
11735
11736
  }
11736
11737
  if (/\[worker\] picked up run\b/.test(message)) {
11737
- if (!_chunkEEPFLZ7Vjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11738
+ if (!_chunk723POEH5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11738
11739
  return null;
11739
11740
  }
11740
11741
  if (state.emittedRunnerStarted) {
@@ -11747,7 +11748,7 @@ function formatPlayLogLine(rawLine, state) {
11747
11748
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
11748
11749
  );
11749
11750
  if (mapStart) {
11750
- if (!_chunkEEPFLZ7Vjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11751
+ if (!_chunk723POEH5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11751
11752
  return null;
11752
11753
  }
11753
11754
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -11757,7 +11758,7 @@ function formatPlayLogLine(rawLine, state) {
11757
11758
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
11758
11759
  );
11759
11760
  if (mapDone) {
11760
- if (!_chunkEEPFLZ7Vjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11761
+ if (!_chunk723POEH5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
11761
11762
  return null;
11762
11763
  }
11763
11764
  const [, results, executed, cached] = mapDone;
@@ -13046,7 +13047,7 @@ function formatRecentRunLogLines(value) {
13046
13047
  (line) => typeof line === "string"
13047
13048
  );
13048
13049
  if (tail.length === 0) return [];
13049
- const shown = tail.map((line) => _chunkEEPFLZ7Vjs.classifyLogLine.call(void 0, line)).filter(
13050
+ const shown = tail.map((line) => _chunk723POEH5js.classifyLogLine.call(void 0, line)).filter(
13050
13051
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
13051
13052
  ).slice(-8);
13052
13053
  const total = readNonNegativeInteger(logs.totalCount);
@@ -13322,10 +13323,11 @@ function buildPlayCompletionTextLines(status) {
13322
13323
  }
13323
13324
  function writePlayResult(status, jsonOutput, options) {
13324
13325
  const packaged = getPlayRunPackage(status);
13326
+ if (status.package) _chunkMX53GIOBjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13325
13327
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _432 => _432.hits]), () => ( null));
13326
13328
  if (jsonOutput) {
13327
13329
  const payload2 = _optionalChain([options, 'optionalAccess', _433 => _433.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
13328
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
13330
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
13329
13331
  hits ? { ...payload2, hits } : payload2,
13330
13332
  { json: true, fields: _optionalChain([options, 'optionalAccess', _434 => _434.jsonFields]) }
13331
13333
  );
@@ -13341,7 +13343,7 @@ function writePlayResult(status, jsonOutput, options) {
13341
13343
  ...buildPlayCompletionTextLines(status),
13342
13344
  ...formatRunHitsLines(hits)
13343
13345
  ];
13344
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0, displayPackage, {
13346
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0, displayPackage, {
13345
13347
  json: false,
13346
13348
  text: `${lines2.join("\n")}
13347
13349
  `
@@ -13392,7 +13394,7 @@ function writePlayResult(status, jsonOutput, options) {
13392
13394
  lines.push(...buildBillingRollupTextLines(status));
13393
13395
  const compact = compactPlayStatus(status);
13394
13396
  const payload = _optionalChain([options, 'optionalAccess', _436 => _436.fullJson]) ? status : compact;
13395
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
13397
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
13396
13398
  {
13397
13399
  ...payload,
13398
13400
  render: {
@@ -14150,6 +14152,12 @@ function renderServerResultView(value) {
14150
14152
  }
14151
14153
  function writeStartedPlayRun(input) {
14152
14154
  if (input.package && isPlayRunPackageValue(input.package)) {
14155
+ const run = input.package.run;
14156
+ _chunkMX53GIOBjs.recordPlayTermination.call(void 0, {
14157
+ id: run.id,
14158
+ status: run.status,
14159
+ finishedAt: run.finishedAt
14160
+ });
14153
14161
  if (input.jsonOutput) {
14154
14162
  const status = {
14155
14163
  runId: input.runId,
@@ -14158,7 +14166,7 @@ function writeStartedPlayRun(input) {
14158
14166
  dashboardUrl: input.dashboardUrl,
14159
14167
  package: input.package
14160
14168
  };
14161
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
14169
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
14162
14170
  json: true,
14163
14171
  fields: input.jsonFields
14164
14172
  });
@@ -14180,7 +14188,7 @@ function writeStartedPlayRun(input) {
14180
14188
  input.progress.writeLine(output2, process.stdout);
14181
14189
  return;
14182
14190
  }
14183
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0, input.package, {
14191
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0, input.package, {
14184
14192
  json: false,
14185
14193
  text: `${output2}
14186
14194
  `
@@ -14209,7 +14217,7 @@ function writeStartedPlayRun(input) {
14209
14217
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)} --json`] : []
14210
14218
  ];
14211
14219
  if (input.jsonOutput) {
14212
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
14220
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
14213
14221
  return;
14214
14222
  }
14215
14223
  if (input.dashboardUrl) {
@@ -14220,7 +14228,7 @@ function writeStartedPlayRun(input) {
14220
14228
  input.progress.writeLine(output, process.stdout);
14221
14229
  return;
14222
14230
  }
14223
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
14231
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
14224
14232
  {
14225
14233
  ...payload,
14226
14234
  render: { sections: [{ title: "play run", lines }] }
@@ -14230,7 +14238,7 @@ function writeStartedPlayRun(input) {
14230
14238
  );
14231
14239
  }
14232
14240
  function parsePlayCheckOptions(args) {
14233
- const selection = _chunkITOJRSOUjs.parseJsonFields.call(void 0, args, "check");
14241
+ const selection = _chunkJB4UKD3Bjs.parseJsonFields.call(void 0, args, "check");
14234
14242
  args = selection.args;
14235
14243
  const target = args[0];
14236
14244
  if (!target || target.startsWith("-")) {
@@ -14242,7 +14250,7 @@ function parsePlayCheckOptions(args) {
14242
14250
  if (arg !== "--json" && arg !== "--full")
14243
14251
  throw new Error(`Unknown plays check option: ${arg}`);
14244
14252
  }
14245
- const jsonOutput = _chunkITOJRSOUjs.argsWantJson.call(void 0, args);
14253
+ const jsonOutput = _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args);
14246
14254
  return {
14247
14255
  target,
14248
14256
  jsonOutput,
@@ -14318,7 +14326,7 @@ ${PLAY_PUBLISH_USAGE}`
14318
14326
  useLatest,
14319
14327
  expectedArtifactHash,
14320
14328
  dryRun,
14321
- jsonOutput: _chunkITOJRSOUjs.argsWantJson.call(void 0, args)
14329
+ jsonOutput: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)
14322
14330
  };
14323
14331
  }
14324
14332
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -14359,7 +14367,7 @@ ${PLAY_SAVE_USAGE}`);
14359
14367
  target,
14360
14368
  expectedArtifactHash,
14361
14369
  dryRun,
14362
- jsonOutput: _chunkITOJRSOUjs.argsWantJson.call(void 0, args)
14370
+ jsonOutput: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)
14363
14371
  };
14364
14372
  }
14365
14373
  function printScheduledPlayCapacity(capacity) {
@@ -14570,7 +14578,7 @@ function printBundledRuntimeWarning(bundle) {
14570
14578
  async function handlePlayCheck(args) {
14571
14579
  const options = parsePlayCheckOptions(args);
14572
14580
  if (!isFileTarget2(options.target)) {
14573
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
14581
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
14574
14582
  try {
14575
14583
  await assertCanonicalNamedPlayReference(client, options.target, {
14576
14584
  command: "check"
@@ -14599,7 +14607,7 @@ async function handlePlayCheck(args) {
14599
14607
  },
14600
14608
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
14601
14609
  };
14602
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0, result, {
14610
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0, result, {
14603
14611
  json: options.jsonOutput,
14604
14612
  fields: options.jsonFields,
14605
14613
  text: renderPlayCheckOutput(result) + "\n"
@@ -14609,7 +14617,7 @@ async function handlePlayCheck(args) {
14609
14617
  const resolved = _path.resolve.call(void 0, options.target);
14610
14618
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
14611
14619
  if (options.jsonOutput) {
14612
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
14620
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
14613
14621
  {
14614
14622
  kind: "play_check",
14615
14623
  checked: "named_contract",
@@ -14651,7 +14659,7 @@ async function handlePlayCheck(args) {
14651
14659
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full --json`,
14652
14660
  publishCommand: _optionalChain([primary, 'optionalAccess', _483 => _483.result, 'access', _484 => _484.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
14653
14661
  });
14654
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0, output, {
14662
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0, output, {
14655
14663
  json: options.jsonOutput,
14656
14664
  fields: options.jsonFields,
14657
14665
  text: renderPlayCheckOutput(output) + "\n"
@@ -14705,7 +14713,7 @@ async function checkOneExportedPlay(input) {
14705
14713
  }
14706
14714
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
14707
14715
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
14708
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
14716
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
14709
14717
  const integrationMode = resolveEvalIntegrationMode();
14710
14718
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
14711
14719
  playName: node.playName,
@@ -14782,7 +14790,7 @@ async function handleFileBackedRun(options, hooks) {
14782
14790
  );
14783
14791
  return 0;
14784
14792
  }
14785
- client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)(playRunClientOptions(options));
14793
+ client = new (0, _chunk723POEH5js.DeeplineClient)(playRunClientOptions(options));
14786
14794
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
14787
14795
  if (canDeferCompilerManifest) {
14788
14796
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
@@ -14977,7 +14985,7 @@ async function handleNamedRun(options, hooks) {
14977
14985
  if (options.target.kind !== "name") {
14978
14986
  throw new Error("Expected a named play run target.");
14979
14987
  }
14980
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)(playRunClientOptions(options));
14988
+ const client = new (0, _chunk723POEH5js.DeeplineClient)(playRunClientOptions(options));
14981
14989
  const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
14982
14990
  const playName = options.target.name;
14983
14991
  const runtimeInput = options.input ? { ...options.input } : {};
@@ -15374,10 +15382,10 @@ function renderRunOverviewText(overview, extras = {}) {
15374
15382
  );
15375
15383
  return `${lines.join("\n")}
15376
15384
 
15377
- ${_chunkITOJRSOUjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
15385
+ ${_chunkJB4UKD3Bjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
15378
15386
  }
15379
15387
  async function handleRunGet(args) {
15380
- const selection = _chunkITOJRSOUjs.parseJsonFields.call(void 0,
15388
+ const selection = _chunkJB4UKD3Bjs.parseJsonFields.call(void 0,
15381
15389
  args,
15382
15390
  args.includes("--config") ? "config" : "get"
15383
15391
  );
@@ -15390,7 +15398,7 @@ async function handleRunGet(args) {
15390
15398
  console.error(error instanceof Error ? error.message : usage2);
15391
15399
  return 1;
15392
15400
  }
15393
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
15401
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
15394
15402
  if (args.includes("--config")) {
15395
15403
  if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
15396
15404
  console.error(
@@ -15404,7 +15412,7 @@ async function handleRunGet(args) {
15404
15412
  "This server does not support recorded configuration reads."
15405
15413
  );
15406
15414
  }
15407
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
15415
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
15408
15416
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
15409
15417
  { json: true, fields: selection.fields }
15410
15418
  );
@@ -15412,7 +15420,7 @@ async function handleRunGet(args) {
15412
15420
  }
15413
15421
  if (args.includes("--input")) {
15414
15422
  const input = await client.getRunInput(runId);
15415
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0, input, { json: true });
15423
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0, input, { json: true });
15416
15424
  return 0;
15417
15425
  }
15418
15426
  const full = args.includes("--full");
@@ -15420,13 +15428,14 @@ async function handleRunGet(args) {
15420
15428
  full: false,
15421
15429
  failedLogs: args.includes("--log-failed")
15422
15430
  });
15431
+ if (status.package) _chunkMX53GIOBjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
15423
15432
  if (!status.package) {
15424
15433
  const legacyStatus = full ? await client.runs.get(runId, {
15425
15434
  full: true,
15426
15435
  failedLogs: args.includes("--log-failed")
15427
15436
  }) : status;
15428
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
15429
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
15437
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
15438
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
15430
15439
  full ? legacyStatus : compactPlayStatus(legacyStatus),
15431
15440
  { json: true, fields: selection.fields }
15432
15441
  );
@@ -15442,8 +15451,8 @@ async function handleRunGet(args) {
15442
15451
  readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
15443
15452
  ]);
15444
15453
  const hitLines = formatRunHitsLines(hits);
15445
- const json = _chunkITOJRSOUjs.argsWantJson.call(void 0, args);
15446
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
15454
+ const json = _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args);
15455
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
15447
15456
  {
15448
15457
  ...overview,
15449
15458
  credits,
@@ -15546,9 +15555,9 @@ async function handleRunLifecycleStatus(args) {
15546
15555
  console.error(error instanceof Error ? error.message : usage2);
15547
15556
  return 1;
15548
15557
  }
15549
- const status = await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().runs.status(runId);
15550
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
15551
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0, status, { json: true });
15558
+ const status = await new (0, _chunk723POEH5js.DeeplineClient)().runs.status(runId);
15559
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
15560
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0, status, { json: true });
15552
15561
  return 0;
15553
15562
  }
15554
15563
  if (!status.available) {
@@ -15588,7 +15597,7 @@ async function handleRunsRerun(args) {
15588
15597
  console.error(error instanceof Error ? error.message : usage2);
15589
15598
  return 1;
15590
15599
  }
15591
- const options = { json: _chunkITOJRSOUjs.argsWantJson.call(void 0, args) };
15600
+ const options = { json: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args) };
15592
15601
  for (let index = 0; index < args.length; index += 1) {
15593
15602
  if (args[index] === "--idempotency-key") {
15594
15603
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -15653,8 +15662,8 @@ ${usage2}
15653
15662
  Discover Plays: ${next.discover}
15654
15663
  Active runs: ${next.running}`
15655
15664
  );
15656
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
15657
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
15665
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
15666
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
15658
15667
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
15659
15668
  { json: true }
15660
15669
  );
@@ -15669,7 +15678,7 @@ Active runs: ${next.running}`
15669
15678
  console.error("--offset requires --play.");
15670
15679
  return 1;
15671
15680
  }
15672
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
15681
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
15673
15682
  const page = await client.runs.listPage({
15674
15683
  ...playName ? { play: playName } : {},
15675
15684
  ...statusFilter ? { status: statusFilter } : {},
@@ -15738,7 +15747,7 @@ Active runs: ${next.running}`
15738
15747
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
15739
15748
  );
15740
15749
  }
15741
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
15750
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
15742
15751
  {
15743
15752
  runs,
15744
15753
  count: runs.length,
@@ -15752,7 +15761,7 @@ Active runs: ${next.running}`
15752
15761
  },
15753
15762
  render: { sections: [{ title: "runs", lines }] }
15754
15763
  },
15755
- { json: _chunkITOJRSOUjs.argsWantJson.call(void 0, args) }
15764
+ { json: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args) }
15756
15765
  );
15757
15766
  return 0;
15758
15767
  }
@@ -15782,7 +15791,7 @@ async function handleRunTail(args) {
15782
15791
  console.error("--log-level requires one of: debug, info, warn, error.");
15783
15792
  return 1;
15784
15793
  }
15785
- const parsed = _chunkEEPFLZ7Vjs.parseLogLevel.call(void 0, value);
15794
+ const parsed = _chunk723POEH5js.parseLogLevel.call(void 0, value);
15786
15795
  if (!parsed) {
15787
15796
  console.error(
15788
15797
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15820,9 +15829,9 @@ async function handleRunTail(args) {
15820
15829
  );
15821
15830
  return 1;
15822
15831
  }
15823
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
15832
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
15824
15833
  const jsonLines = args.includes("--jsonl");
15825
- const jsonOutput = !jsonLines && _chunkITOJRSOUjs.argsWantJson.call(void 0, args);
15834
+ const jsonOutput = !jsonLines && _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args);
15826
15835
  const compact = args.includes("--compact");
15827
15836
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
15828
15837
  const compactState = {
@@ -15903,7 +15912,7 @@ async function handleRunLogs(args) {
15903
15912
  ]);
15904
15913
  const cursorIndex = args.indexOf("--cursor");
15905
15914
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
15906
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkEEPFLZ7Vjs.isRunLogsCursor.call(void 0, cursorValue));
15915
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk723POEH5js.isRunLogsCursor.call(void 0, cursorValue));
15907
15916
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
15908
15917
  return handleRunEventSearch(args);
15909
15918
  }
@@ -15937,7 +15946,7 @@ async function handleRunLogs(args) {
15937
15946
  console.error("--log-level requires one of: debug, info, warn, error.");
15938
15947
  return 1;
15939
15948
  }
15940
- const parsed = _chunkEEPFLZ7Vjs.parseLogLevel.call(void 0, value);
15949
+ const parsed = _chunk723POEH5js.parseLogLevel.call(void 0, value);
15941
15950
  if (!parsed) {
15942
15951
  console.error(
15943
15952
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -15984,12 +15993,12 @@ async function handleRunLogs(args) {
15984
15993
  );
15985
15994
  return 1;
15986
15995
  }
15987
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
15996
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
15988
15997
  if (outPath) {
15989
15998
  const result2 = await client.runs.logs(runId, { all: true });
15990
- const logs = result2.entries.filter((line) => _chunkEEPFLZ7Vjs.logLevelReaches.call(void 0, _chunkEEPFLZ7Vjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkEEPFLZ7Vjs.classifyLogLine.call(void 0, line).line);
15999
+ const logs = result2.entries.filter((line) => _chunk723POEH5js.logLevelReaches.call(void 0, _chunk723POEH5js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk723POEH5js.classifyLogLine.call(void 0, line).line);
15991
16000
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
15992
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
16001
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
15993
16002
  {
15994
16003
  runId: result2.runId,
15995
16004
  log_path: outPath,
@@ -16012,7 +16021,7 @@ async function handleRunLogs(args) {
16012
16021
  ]
16013
16022
  }
16014
16023
  },
16015
- { json: _chunkITOJRSOUjs.argsWantJson.call(void 0, args) }
16024
+ { json: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args) }
16016
16025
  );
16017
16026
  return 0;
16018
16027
  }
@@ -16043,7 +16052,7 @@ async function handleRunLogs(args) {
16043
16052
  }
16044
16053
  };
16045
16054
  const text = buildRunLogsText(filteredResult);
16046
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
16055
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
16047
16056
  {
16048
16057
  runId: result.runId,
16049
16058
  totalCount: result.totalCount,
@@ -16067,7 +16076,7 @@ async function handleRunLogs(args) {
16067
16076
  render: { sections: [{ title: "run logs", lines: entries }] }
16068
16077
  },
16069
16078
  {
16070
- json: _chunkITOJRSOUjs.argsWantJson.call(void 0, args),
16079
+ json: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args),
16071
16080
  text
16072
16081
  }
16073
16082
  );
@@ -16091,7 +16100,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
16091
16100
  );
16092
16101
  }
16093
16102
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
16094
- (entry) => _chunkEEPFLZ7Vjs.logLevelReaches.call(void 0, _chunkEEPFLZ7Vjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
16103
+ (entry) => _chunk723POEH5js.logLevelReaches.call(void 0, _chunk723POEH5js.classifyLogLine.call(void 0, entry.line).level, logLevel)
16095
16104
  );
16096
16105
  const selected = matching.slice(-limit);
16097
16106
  const olderMatchesExist = matching.length > selected.length;
@@ -16101,7 +16110,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
16101
16110
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _526 => _526.at, 'call', _527 => _527(-1), 'optionalAccess', _528 => _528.seq]), () => ( null)),
16102
16111
  truncated: result.truncated || olderMatchesExist,
16103
16112
  hasMore: olderMatchesExist,
16104
- nextCursor: olderMatchesExist ? _chunkEEPFLZ7Vjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
16113
+ nextCursor: olderMatchesExist ? _chunk723POEH5js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
16105
16114
  };
16106
16115
  }
16107
16116
  async function handleRunEventSearch(args) {
@@ -16168,7 +16177,7 @@ ${usage2}`);
16168
16177
  namespace,
16169
16178
  ...backend ? { backend } : {}
16170
16179
  } : void 0;
16171
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
16180
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
16172
16181
  const result = await client.runs.searchEvents({
16173
16182
  ...runId ? { runId } : {},
16174
16183
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -16241,7 +16250,7 @@ ${renderedDetails}` : ""}`;
16241
16250
  String(limit),
16242
16251
  "--json"
16243
16252
  ].join(" ") : null;
16244
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
16253
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
16245
16254
  {
16246
16255
  events,
16247
16256
  nextCursor: result.nextCursor,
@@ -16252,14 +16261,14 @@ ${renderedDetails}` : ""}`;
16252
16261
  render: { sections: [{ title: "runtime events", lines }] }
16253
16262
  },
16254
16263
  {
16255
- json: _chunkITOJRSOUjs.argsWantJson.call(void 0, args),
16264
+ json: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args),
16256
16265
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
16257
16266
  }
16258
16267
  );
16259
16268
  return 0;
16260
16269
  }
16261
16270
  function buildRunLogsText(result) {
16262
- const lines = result.entries.map((line) => _chunkEEPFLZ7Vjs.classifyLogLine.call(void 0, line).line);
16271
+ const lines = result.entries.map((line) => _chunk723POEH5js.classifyLogLine.call(void 0, line).line);
16263
16272
  if (result.warning) {
16264
16273
  if (lines.length > 0) lines.push("");
16265
16274
  lines.push(`warning: ${result.warning}`);
@@ -16293,7 +16302,7 @@ async function handleRunStop(args) {
16293
16302
  reason = args[++index];
16294
16303
  }
16295
16304
  }
16296
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
16305
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
16297
16306
  const result = await client.runs.stop(runId, { reason });
16298
16307
  const state = resolveRunStopState(result);
16299
16308
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -16308,7 +16317,7 @@ async function handleRunStop(args) {
16308
16317
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
16309
16318
  `inspect: deepline runs get ${runId} --full --json`
16310
16319
  ];
16311
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
16320
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
16312
16321
  {
16313
16322
  ...cancelling,
16314
16323
  state,
@@ -16323,7 +16332,7 @@ async function handleRunStop(args) {
16323
16332
  ]
16324
16333
  }
16325
16334
  },
16326
- { json: _chunkITOJRSOUjs.argsWantJson.call(void 0, args) }
16335
+ { json: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args) }
16327
16336
  );
16328
16337
  return 0;
16329
16338
  }
@@ -16340,7 +16349,7 @@ async function handleRunStop(args) {
16340
16349
  ];
16341
16350
  process.stderr.write(`${lines2.join("\n")}
16342
16351
  `);
16343
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
16352
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
16344
16353
  {
16345
16354
  ...result,
16346
16355
  render: {
@@ -16355,7 +16364,7 @@ async function handleRunStop(args) {
16355
16364
  ]
16356
16365
  }
16357
16366
  },
16358
- { json: _chunkITOJRSOUjs.argsWantJson.call(void 0, args) }
16367
+ { json: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args) }
16359
16368
  );
16360
16369
  return 1;
16361
16370
  }
@@ -16366,12 +16375,12 @@ async function handleRunStop(args) {
16366
16375
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
16367
16376
  ] : []
16368
16377
  ];
16369
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
16378
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
16370
16379
  {
16371
16380
  ...result,
16372
16381
  render: { sections: [{ title: "run stop", lines }] }
16373
16382
  },
16374
- { json: _chunkITOJRSOUjs.argsWantJson.call(void 0, args) }
16383
+ { json: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args) }
16375
16384
  );
16376
16385
  return 0;
16377
16386
  }
@@ -16421,18 +16430,18 @@ async function handleRunStopAll(args) {
16421
16430
  reason = args[++index];
16422
16431
  }
16423
16432
  }
16424
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
16433
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
16425
16434
  if (dryRun) {
16426
16435
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
16427
16436
  const lines2 = buildStopAllDryRunTextLines(result2);
16428
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
16437
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
16429
16438
  {
16430
16439
  ...result2,
16431
16440
  render: {
16432
16441
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
16433
16442
  }
16434
16443
  },
16435
- { json: _chunkITOJRSOUjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
16444
+ { json: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
16436
16445
  ` }
16437
16446
  );
16438
16447
  return 0;
@@ -16445,17 +16454,17 @@ async function handleRunStopAll(args) {
16445
16454
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
16446
16455
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
16447
16456
  ];
16448
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
16457
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
16449
16458
  {
16450
16459
  ...result,
16451
16460
  render: { sections: [{ title: "workspace stop-all", lines }] }
16452
16461
  },
16453
- { json: _chunkITOJRSOUjs.argsWantJson.call(void 0, args) }
16462
+ { json: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args) }
16454
16463
  );
16455
16464
  return result.failed > 0 || result.partial ? 1 : 0;
16456
16465
  }
16457
16466
  async function handleRunExport(args) {
16458
- const selection = _chunkITOJRSOUjs.parseJsonFields.call(void 0, args, "export");
16467
+ const selection = _chunkJB4UKD3Bjs.parseJsonFields.call(void 0, args, "export");
16459
16468
  args = selection.args;
16460
16469
  const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
16461
16470
  let runId;
@@ -16514,16 +16523,16 @@ async function handleRunExport(args) {
16514
16523
  "INVALID_ARGUMENT"
16515
16524
  );
16516
16525
  }
16517
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
16526
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
16518
16527
  let status = await client.getPlayStatus(runId, { full: true });
16519
16528
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
16520
- const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkITOJRSOUjs.argsWantJson.call(void 0, args));
16529
+ const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args));
16521
16530
  try {
16522
16531
  await waitForPlayCompletionByWatch({
16523
16532
  client,
16524
16533
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
16525
16534
  workflowId: runId,
16526
- jsonOutput: _chunkITOJRSOUjs.argsWantJson.call(void 0, args),
16535
+ jsonOutput: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args),
16527
16536
  emitLogs: false,
16528
16537
  waitTimeoutMs,
16529
16538
  startedAt: Date.now(),
@@ -16623,8 +16632,8 @@ async function handleRunExport(args) {
16623
16632
  "utf-8"
16624
16633
  );
16625
16634
  }
16626
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0, payload, {
16627
- json: _chunkITOJRSOUjs.argsWantJson.call(void 0, args),
16635
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0, payload, {
16636
+ json: _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args),
16628
16637
  fields: selection.fields,
16629
16638
  text: `${lines.join("\n")}
16630
16639
  `
@@ -16645,10 +16654,10 @@ async function handlePlayGet(args) {
16645
16654
  );
16646
16655
  return 2;
16647
16656
  }
16648
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
16657
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
16649
16658
  const explicitJson = args.includes("--json");
16650
16659
  const sourceOutput = args.includes("--source");
16651
- const jsonOutput = sourceOutput ? explicitJson : _chunkITOJRSOUjs.argsWantJson.call(void 0, args);
16660
+ const jsonOutput = sourceOutput ? explicitJson : _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args);
16652
16661
  const requestedRevisionFlags = [
16653
16662
  args.includes("--working"),
16654
16663
  args.includes("--live"),
@@ -16708,7 +16717,7 @@ async function handlePlayGet(args) {
16708
16717
  }
16709
16718
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
16710
16719
  if (jsonOutput) {
16711
- _chunkITOJRSOUjs.printCompactJson.call(void 0, {
16720
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, {
16712
16721
  ...detail,
16713
16722
  ...materializedFile ? {
16714
16723
  message: loadedMessage,
@@ -16795,8 +16804,8 @@ async function handlePlayVersions(args) {
16795
16804
  console.error("Usage: deepline plays versions --name <name> [--json]");
16796
16805
  return 1;
16797
16806
  }
16798
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
16799
- const jsonOutput = _chunkITOJRSOUjs.argsWantJson.call(void 0, args);
16807
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
16808
+ const jsonOutput = _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args);
16800
16809
  await assertCanonicalNamedPlayReference(client, playName, {
16801
16810
  command: "versions"
16802
16811
  });
@@ -16804,7 +16813,7 @@ async function handlePlayVersions(args) {
16804
16813
  parseReferencedPlayTarget3(playName).playName
16805
16814
  );
16806
16815
  if (jsonOutput) {
16807
- _chunkITOJRSOUjs.printCompactJson.call(void 0, { versions });
16816
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, { versions });
16808
16817
  return 0;
16809
16818
  }
16810
16819
  if (versions.length === 0) {
@@ -16836,9 +16845,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
16836
16845
  "signals"
16837
16846
  ];
16838
16847
  async function handlePlayList(args) {
16839
- const jsonOutput = _chunkITOJRSOUjs.argsWantJson.call(void 0, args);
16848
+ const jsonOutput = _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args);
16840
16849
  const showCost = args.includes("--show-cost");
16841
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
16850
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
16842
16851
  const categoriesIndex = args.indexOf("--categories");
16843
16852
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _564 => _564[categoriesIndex + 1], 'optionalAccess', _565 => _565.trim, 'call', _566 => _566()]) : void 0;
16844
16853
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -16935,7 +16944,7 @@ async function handlePlayList(args) {
16935
16944
  lines.push("List truncated \u2014 more plays are available.");
16936
16945
  lines.push(`Next page: ${nextPage}`);
16937
16946
  }
16938
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
16947
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
16939
16948
  {
16940
16949
  plays,
16941
16950
  count: plays.length,
@@ -16953,7 +16962,7 @@ async function handlePlayList(args) {
16953
16962
  }
16954
16963
  async function handlePlayPin(args, pinned) {
16955
16964
  const target = _optionalChain([args, 'access', _573 => _573.find, 'call', _574 => _574((arg) => !arg.startsWith("-")), 'optionalAccess', _575 => _575.trim, 'call', _576 => _576()]);
16956
- const jsonOutput = _chunkITOJRSOUjs.argsWantJson.call(void 0, args);
16965
+ const jsonOutput = _chunkJB4UKD3Bjs.argsWantJson.call(void 0, args);
16957
16966
  const dryRun = args.includes("--dry-run");
16958
16967
  if (!target) {
16959
16968
  console.error(
@@ -16971,11 +16980,11 @@ async function handlePlayPin(args, pinned) {
16971
16980
  const name = parsedTarget.playName;
16972
16981
  const plan = { name, pinned, dryRun };
16973
16982
  if (dryRun) {
16974
- _chunkITOJRSOUjs.printCompactJson.call(void 0, plan);
16983
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, plan);
16975
16984
  return 0;
16976
16985
  }
16977
- const result = await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().setPlayPinned(name, pinned);
16978
- if (jsonOutput) _chunkITOJRSOUjs.printCompactJson.call(void 0, result);
16986
+ const result = await new (0, _chunk723POEH5js.DeeplineClient)().setPlayPinned(name, pinned);
16987
+ if (jsonOutput) _chunkJB4UKD3Bjs.printCompactJson.call(void 0, result);
16979
16988
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
16980
16989
  return 0;
16981
16990
  }
@@ -16991,7 +17000,7 @@ function csvColumnLines(csvInput) {
16991
17000
  const headers = [defaults[column]].flat().filter((header) => header && header !== column);
16992
17001
  return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
16993
17002
  }),
16994
- _chunkEEPFLZ7Vjs.CSV_HEADER_MATCHING_NOTE
17003
+ _chunk723POEH5js.CSV_HEADER_MATCHING_NOTE
16995
17004
  ];
16996
17005
  }
16997
17006
  function describedPlay(play) {
@@ -16999,7 +17008,7 @@ function describedPlay(play) {
16999
17008
  const starter = _nullishCoalesce(play.cloneEditStarter, () => ( buildCloneEditStarter(play)));
17000
17009
  const csv = _nullishCoalesce(play.csvInput, () => ( {}));
17001
17010
  const headers = isRecord3(csv.defaultColumns) ? csv.defaultColumns : {};
17002
- const rowInputs = _chunkAFNEQ43Jjs.schemaFields.call(void 0, csv.rowInputSchema).map((field) => {
17011
+ const rowInputs = _chunkMX53GIOBjs.schemaFields.call(void 0, csv.rowInputSchema).map((field) => {
17003
17012
  const header = [headers[field.name]].flat().filter((name) => name && name !== field.name).join(" or ");
17004
17013
  return header ? {
17005
17014
  ...field,
@@ -17008,7 +17017,7 @@ function describedPlay(play) {
17008
17017
  });
17009
17018
  const rowOutput = _nullishCoalesce(play.rowOutputSchema, () => ( {}));
17010
17019
  const added = isRecord3(rowOutput.addedColumns) ? rowOutput.addedColumns : {};
17011
- const rowOutputs = _chunkAFNEQ43Jjs.schemaFields.call(void 0,
17020
+ const rowOutputs = _chunkMX53GIOBjs.schemaFields.call(void 0,
17012
17021
  Object.keys(added).length ? { properties: added } : rowOutput
17013
17022
  ).map((field) => ({ ...field, required: true }));
17014
17023
  return {
@@ -17017,8 +17026,8 @@ function describedPlay(play) {
17017
17026
  ...play.displayName && play.displayName !== play.name ? { displayName: play.displayName } : {},
17018
17027
  ...play.description ? { description: play.description } : {},
17019
17028
  guidance: [],
17020
- inputs: _chunkAFNEQ43Jjs.schemaFields.call(void 0, play.inputSchema),
17021
- outputs: _chunkAFNEQ43Jjs.schemaFields.call(void 0, play.outputSchema),
17029
+ inputs: _chunkMX53GIOBjs.schemaFields.call(void 0, play.inputSchema),
17030
+ outputs: _chunkMX53GIOBjs.schemaFields.call(void 0, play.outputSchema),
17022
17031
  ...rowInputs.length ? { rowInputs } : {},
17023
17032
  ...rowOutputs.length ? { rowOutputs } : {},
17024
17033
  runner: {
@@ -17135,12 +17144,12 @@ async function handlePlayGrep(args) {
17135
17144
  console.error("Usage: deepline plays grep <query> [--json]");
17136
17145
  return 1;
17137
17146
  }
17138
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
17147
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
17139
17148
  const results = (await client.listPlays({ grep: query })).map(
17140
17149
  summarizePlayGrepResult
17141
17150
  );
17142
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
17143
- _chunkITOJRSOUjs.printCompactJson.call(void 0, {
17151
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
17152
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, {
17144
17153
  plays: results,
17145
17154
  count: results.length,
17146
17155
  query,
@@ -17163,7 +17172,7 @@ async function handlePlayGrep(args) {
17163
17172
  return 0;
17164
17173
  }
17165
17174
  async function handlePlayDescribe(args) {
17166
- const selection = _chunkITOJRSOUjs.parseJsonFields.call(void 0, args, "describe");
17175
+ const selection = _chunkJB4UKD3Bjs.parseJsonFields.call(void 0, args, "describe");
17167
17176
  args = selection.args;
17168
17177
  const playName = args[0];
17169
17178
  if (!playName) {
@@ -17197,8 +17206,8 @@ async function handlePlayDescribe(args) {
17197
17206
  `deepline plays check ${playName}`,
17198
17207
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
17199
17208
  ];
17200
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
17201
- _chunkITOJRSOUjs.printCompactJson.call(void 0, {
17209
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
17210
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, {
17202
17211
  ok: false,
17203
17212
  error: { message },
17204
17213
  next
@@ -17212,7 +17221,7 @@ async function handlePlayDescribe(args) {
17212
17221
  }
17213
17222
  return 2;
17214
17223
  }
17215
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
17224
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
17216
17225
  await assertCanonicalNamedPlayReference(client, playName, {
17217
17226
  command: "describe"
17218
17227
  });
@@ -17222,9 +17231,9 @@ async function handlePlayDescribe(args) {
17222
17231
  compact: args.includes("--compact")
17223
17232
  }
17224
17233
  );
17225
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
17226
- if (selection.fields) _chunkITOJRSOUjs.printJson.call(void 0, play, selection.fields);
17227
- else _chunkITOJRSOUjs.printCompactJson.call(void 0, play);
17234
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
17235
+ if (selection.fields) _chunkJB4UKD3Bjs.printJson.call(void 0, play, selection.fields);
17236
+ else _chunkJB4UKD3Bjs.printCompactJson.call(void 0, play);
17228
17237
  return 0;
17229
17238
  }
17230
17239
  printPlayDescription(play);
@@ -17268,7 +17277,7 @@ async function handlePlaySave(args) {
17268
17277
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
17269
17278
  };
17270
17279
  if (options.jsonOutput) {
17271
- _chunkITOJRSOUjs.printCompactJson.call(void 0, result);
17280
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, result);
17272
17281
  } else {
17273
17282
  console.error(result.message);
17274
17283
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -17290,7 +17299,7 @@ async function handlePlaySave(args) {
17290
17299
  };
17291
17300
  if (options.dryRun) {
17292
17301
  if (options.jsonOutput) {
17293
- _chunkITOJRSOUjs.printCompactJson.call(void 0, dryRun);
17302
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, dryRun);
17294
17303
  } else {
17295
17304
  console.log(`Dry run: ${playName}`);
17296
17305
  console.log(` source: ${dryRun.sourceHash}`);
@@ -17299,7 +17308,7 @@ async function handlePlaySave(args) {
17299
17308
  }
17300
17309
  return 0;
17301
17310
  }
17302
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
17311
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
17303
17312
  try {
17304
17313
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
17305
17314
  "cli.play_save_compile_manifests",
@@ -17335,7 +17344,7 @@ async function handlePlaySave(args) {
17335
17344
  }
17336
17345
  };
17337
17346
  if (options.jsonOutput) {
17338
- _chunkITOJRSOUjs.printCompactJson.call(void 0, result);
17347
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, result);
17339
17348
  } else {
17340
17349
  console.log(
17341
17350
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -17361,7 +17370,7 @@ async function handlePlayPublish(args) {
17361
17370
  }
17362
17371
  const { target: playName, useLatest } = options;
17363
17372
  let revisionId = options.revisionId;
17364
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
17373
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
17365
17374
  if (isFileTarget2(playName)) {
17366
17375
  if (revisionId || useLatest) {
17367
17376
  console.error(
@@ -17393,7 +17402,7 @@ async function handlePlayPublish(args) {
17393
17402
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
17394
17403
  };
17395
17404
  if (options.jsonOutput) {
17396
- _chunkITOJRSOUjs.printCompactJson.call(void 0, result3);
17405
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, result3);
17397
17406
  } else {
17398
17407
  console.error(result3.message);
17399
17408
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -17416,7 +17425,7 @@ async function handlePlayPublish(args) {
17416
17425
  };
17417
17426
  if (options.dryRun) {
17418
17427
  if (options.jsonOutput) {
17419
- _chunkITOJRSOUjs.printCompactJson.call(void 0, dryRun);
17428
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, dryRun);
17420
17429
  } else {
17421
17430
  console.log(`Dry run: ${rootPlayName}`);
17422
17431
  console.log(` source: ${dryRun.sourceHash}`);
@@ -17484,7 +17493,7 @@ async function handlePlayPublish(args) {
17484
17493
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
17485
17494
  };
17486
17495
  if (options.jsonOutput) {
17487
- _chunkITOJRSOUjs.printCompactJson.call(void 0, result2);
17496
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, result2);
17488
17497
  } else {
17489
17498
  printPublishReceipt({
17490
17499
  name: rootPlayName,
@@ -17515,7 +17524,7 @@ async function handlePlayPublish(args) {
17515
17524
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
17516
17525
  latest: useLatest
17517
17526
  };
17518
- _chunkITOJRSOUjs.printCompactJson.call(void 0, result2);
17527
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, result2);
17519
17528
  return 0;
17520
17529
  }
17521
17530
  const resolvedName = parseReferencedPlayTarget3(playName).playName;
@@ -17539,7 +17548,7 @@ async function handlePlayPublish(args) {
17539
17548
  revisionId ? { revisionId } : {}
17540
17549
  );
17541
17550
  if (options.jsonOutput) {
17542
- _chunkITOJRSOUjs.printCompactJson.call(void 0, result);
17551
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, result);
17543
17552
  } else {
17544
17553
  printPublishReceipt({
17545
17554
  name: result.name,
@@ -17579,7 +17588,7 @@ async function handlePlayDelete(args) {
17579
17588
  );
17580
17589
  return 2;
17581
17590
  }
17582
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
17591
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
17583
17592
  let detail;
17584
17593
  try {
17585
17594
  detail = await client.getPlay(parseReferencedPlayTarget3(playName).playName);
@@ -17603,8 +17612,8 @@ async function handlePlayDelete(args) {
17603
17612
  name: resolvedName,
17604
17613
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
17605
17614
  };
17606
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
17607
- _chunkITOJRSOUjs.printCompactJson.call(void 0, result2);
17615
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
17616
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, result2);
17608
17617
  } else {
17609
17618
  process.stdout.write(
17610
17619
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -17614,8 +17623,8 @@ async function handlePlayDelete(args) {
17614
17623
  return 0;
17615
17624
  }
17616
17625
  const result = await client.deletePlay(resolvedName);
17617
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
17618
- _chunkITOJRSOUjs.printCompactJson.call(void 0, result);
17626
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
17627
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, result);
17619
17628
  return result.archived || result.alreadyArchived ? 0 : 4;
17620
17629
  }
17621
17630
  if (result.alreadyArchived) {
@@ -17654,13 +17663,13 @@ async function handlePlayRestore(args) {
17654
17663
  );
17655
17664
  return 2;
17656
17665
  }
17657
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
17666
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
17658
17667
  try {
17659
17668
  const result = await client.restorePlay(
17660
17669
  parseReferencedPlayTarget3(playName).playName
17661
17670
  );
17662
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
17663
- _chunkITOJRSOUjs.printCompactJson.call(void 0, result);
17671
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
17672
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, result);
17664
17673
  return result.restored || result.alreadyActive ? 0 : 4;
17665
17674
  }
17666
17675
  if (result.alreadyActive) {
@@ -17767,7 +17776,7 @@ Examples:
17767
17776
  ).action(async (target, options) => {
17768
17777
  process.exitCode = await handlePlayCheck([
17769
17778
  target,
17770
- ..._chunkITOJRSOUjs.jsonFieldArgs.call(void 0, options.json),
17779
+ ..._chunkJB4UKD3Bjs.jsonFieldArgs.call(void 0, options.json),
17771
17780
  ...options.full ? ["--full"] : []
17772
17781
  ]);
17773
17782
  });
@@ -17996,9 +18005,9 @@ Examples:
17996
18005
  const limit = Number(options.historyLimit);
17997
18006
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
17998
18007
  throw new Error("--history-limit must be an integer from 1 to 30.");
17999
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
18008
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
18000
18009
  if (options.binding) {
18001
- _chunkITOJRSOUjs.printCompactJson.call(void 0,
18010
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0,
18002
18011
  await client.getPlayTriggerHistory(options.binding, { limit })
18003
18012
  );
18004
18013
  return;
@@ -18006,7 +18015,7 @@ Examples:
18006
18015
  const result = await client.listPlayTriggerInventory({
18007
18016
  cursor: options.cursor
18008
18017
  });
18009
- _chunkITOJRSOUjs.printCompactJson.call(void 0, {
18018
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, {
18010
18019
  ...result,
18011
18020
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
18012
18021
  });
@@ -18053,7 +18062,7 @@ Examples:
18053
18062
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
18054
18063
  throw new Error("--group-by must be kind or trigger_source.");
18055
18064
  }
18056
- const result = await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().getPlaysActivity({
18065
+ const result = await new (0, _chunk723POEH5js.DeeplineClient)().getPlaysActivity({
18057
18066
  timeZone: options.timeZone,
18058
18067
  days,
18059
18068
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -18067,7 +18076,7 @@ Examples:
18067
18076
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
18068
18077
  );
18069
18078
  }
18070
- _chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
18079
+ _chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
18071
18080
  { ...result },
18072
18081
  {
18073
18082
  json: options.json || !process.stdout.isTTY,
@@ -18096,7 +18105,7 @@ Examples:
18096
18105
  false
18097
18106
  );
18098
18107
  });
18099
- _chunkWRTLSH6Rjs.registerDeprecatedSearchCommand.call(void 0,
18108
+ _chunkLPKV6IBMjs.registerDeprecatedSearchCommand.call(void 0,
18100
18109
  play,
18101
18110
  (options) => options.all ? ["plays"] : ["prebuilts"]
18102
18111
  );
@@ -18138,9 +18147,9 @@ Examples:
18138
18147
  "--json [fields]",
18139
18148
  "JSON output; optionally select comma-separated dotted paths"
18140
18149
  );
18141
- _chunkAFNEQ43Jjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
18150
+ _chunkMX53GIOBjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
18142
18151
  async (target, options) => {
18143
- const ownView = () => handlePlayDescribe(_chunkITOJRSOUjs.describeArgs.call(void 0, target, options));
18152
+ const ownView = () => handlePlayDescribe(_chunkJB4UKD3Bjs.describeArgs.call(void 0, target, options));
18144
18153
  const [flagText] = [options.json].filter(
18145
18154
  (value) => typeof value === "string"
18146
18155
  );
@@ -18151,7 +18160,7 @@ Examples:
18151
18160
  process.exitCode = await ownView();
18152
18161
  return;
18153
18162
  }
18154
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-FO62H2CB.js")));
18163
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-QM7Q5Y2H.js")));
18155
18164
  process.exitCode = await describeAnything(
18156
18165
  name,
18157
18166
  {
@@ -18268,7 +18277,7 @@ Examples:
18268
18277
  deepline plays deployments <deployment-id>
18269
18278
  `
18270
18279
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
18271
- async (id, options) => id ? _chunkKXFPDFUOjs.handleDeploymentGet.call(void 0, id, options) : _chunkKXFPDFUOjs.handleDeploymentsList.call(void 0, options)
18280
+ async (id, options) => id ? _chunkBUXJSW26js.handleDeploymentGet.call(void 0, id, options) : _chunkBUXJSW26js.handleDeploymentsList.call(void 0, options)
18272
18281
  );
18273
18282
  addPublishHelp(
18274
18283
  play.command("publish <target>").description(
@@ -18448,7 +18457,7 @@ Examples:
18448
18457
  ).action(async (runId, options) => {
18449
18458
  process.exitCode = await handleRunGet([
18450
18459
  runId,
18451
- ..._chunkITOJRSOUjs.jsonFieldArgs.call(void 0, options.json),
18460
+ ..._chunkJB4UKD3Bjs.jsonFieldArgs.call(void 0, options.json),
18452
18461
  ...options.full ? ["--full"] : [],
18453
18462
  ...options.input ? ["--input"] : [],
18454
18463
  ...options.config ? ["--config"] : [],
@@ -18724,7 +18733,7 @@ Examples:
18724
18733
  ...options.allowEmpty ? ["--allow-empty"] : [],
18725
18734
  ...options.wait ? ["--wait"] : [],
18726
18735
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
18727
- ..._chunkITOJRSOUjs.jsonFieldArgs.call(void 0, options.json)
18736
+ ..._chunkJB4UKD3Bjs.jsonFieldArgs.call(void 0, options.json)
18728
18737
  ]);
18729
18738
  });
18730
18739
  const share = play.command("share").description(
@@ -18890,10 +18899,10 @@ async function handlePlayShareStatus(args) {
18890
18899
  return 2;
18891
18900
  }
18892
18901
  const name = parseReferencedPlayTarget3(target).playName;
18893
- const status = await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().getSharePage(name);
18902
+ const status = await new (0, _chunk723POEH5js.DeeplineClient)().getSharePage(name);
18894
18903
  const outputStatus = shareStatusForOutput(status);
18895
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
18896
- _chunkITOJRSOUjs.printCompactJson.call(void 0, outputStatus);
18904
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
18905
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, outputStatus);
18897
18906
  return 0;
18898
18907
  }
18899
18908
  if (!outputStatus.share) {
@@ -18932,7 +18941,7 @@ async function handlePlaySharePublish(args) {
18932
18941
  return 2;
18933
18942
  }
18934
18943
  const name = parseReferencedPlayTarget3(target).playName;
18935
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
18944
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
18936
18945
  let revisionId = shareFlagValue(args, "--revision-id");
18937
18946
  let resolvedVersion;
18938
18947
  if (!revisionId) {
@@ -18963,8 +18972,8 @@ async function handlePlaySharePublish(args) {
18963
18972
  );
18964
18973
  if (!hasCompleted) {
18965
18974
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
18966
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
18967
- _chunkITOJRSOUjs.printCompactJson.call(void 0, {
18975
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
18976
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, {
18968
18977
  ok: false,
18969
18978
  code: "NO_SUCCESSFUL_RUN",
18970
18979
  message,
@@ -18988,8 +18997,8 @@ async function handlePlaySharePublish(args) {
18988
18997
  };
18989
18998
  if (args.includes("--dry-run")) {
18990
18999
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
18991
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
18992
- _chunkITOJRSOUjs.printCompactJson.call(void 0, plan);
19000
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
19001
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, plan);
18993
19002
  } else {
18994
19003
  console.log(
18995
19004
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -18999,8 +19008,8 @@ async function handlePlaySharePublish(args) {
18999
19008
  }
19000
19009
  const status = await client.publishSharePage(name, request);
19001
19010
  const outputStatus = shareStatusForOutput(status);
19002
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
19003
- _chunkITOJRSOUjs.printCompactJson.call(void 0, outputStatus);
19011
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
19012
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, outputStatus);
19004
19013
  return 0;
19005
19014
  }
19006
19015
  const urls = shareUrlFields(outputStatus);
@@ -19031,9 +19040,9 @@ async function handlePlayShareUpdate(args) {
19031
19040
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
19032
19041
  ...seoIndexing ? { seoIndexing } : {}
19033
19042
  };
19034
- const status = await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().updateSharePage(name, request);
19035
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
19036
- _chunkITOJRSOUjs.printCompactJson.call(void 0, status);
19043
+ const status = await new (0, _chunk723POEH5js.DeeplineClient)().updateSharePage(name, request);
19044
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
19045
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, status);
19037
19046
  return 0;
19038
19047
  }
19039
19048
  console.log(`Updated ${name} share settings.`);
@@ -19048,7 +19057,7 @@ async function handlePlayShareRegenerate(args) {
19048
19057
  return 2;
19049
19058
  }
19050
19059
  const name = parseReferencedPlayTarget3(target).playName;
19051
- const client = new (0, _chunkEEPFLZ7Vjs.DeeplineClient)();
19060
+ const client = new (0, _chunk723POEH5js.DeeplineClient)();
19052
19061
  let revisionId = shareFlagValue(args, "--revision-id");
19053
19062
  const versionFlag = shareFlagValue(args, "--version");
19054
19063
  if (!revisionId && versionFlag) {
@@ -19065,8 +19074,8 @@ async function handlePlayShareRegenerate(args) {
19065
19074
  revisionId ? { revisionId } : {}
19066
19075
  );
19067
19076
  const outputStatus = shareStatusForOutput(status);
19068
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
19069
- _chunkITOJRSOUjs.printCompactJson.call(void 0, outputStatus);
19077
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
19078
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, outputStatus);
19070
19079
  return 0;
19071
19080
  }
19072
19081
  const urls = shareUrlFields(outputStatus);
@@ -19091,9 +19100,9 @@ async function handlePlayShareUnpublish(args) {
19091
19100
  return 2;
19092
19101
  }
19093
19102
  const name = parseReferencedPlayTarget3(target).playName;
19094
- const status = await new (0, _chunkEEPFLZ7Vjs.DeeplineClient)().unpublishSharePage(name);
19095
- if (_chunkITOJRSOUjs.argsWantJson.call(void 0, args)) {
19096
- _chunkITOJRSOUjs.printCompactJson.call(void 0, status);
19103
+ const status = await new (0, _chunk723POEH5js.DeeplineClient)().unpublishSharePage(name);
19104
+ if (_chunkJB4UKD3Bjs.argsWantJson.call(void 0, args)) {
19105
+ _chunkJB4UKD3Bjs.printCompactJson.call(void 0, status);
19097
19106
  return 0;
19098
19107
  }
19099
19108
  console.log(`Unpublished ${name}; the public page has been removed.`);