deepline 0.3.408 → 0.3.409

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 (107) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +6 -1
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/cli/{auth-UVD3CUBB.mjs → auth-5HIIACF7.mjs} +4 -4
  4. package/dist/cli/auth-F6BX32XZ.js +40 -0
  5. package/dist/cli/{billing-BZVYAF6T.js → billing-4275N7FL.js} +73 -73
  6. package/dist/cli/{billing-BZVTXXLM.mjs → billing-EVZ3ZWKC.mjs} +4 -4
  7. package/dist/cli/{chunk-WPAB4DCU.mjs → chunk-264PC2RN.mjs} +1 -1
  8. package/dist/cli/{chunk-RWCY6YI2.js → chunk-2GI3QD3L.js} +53 -53
  9. package/dist/cli/{chunk-SD7MXAJA.mjs → chunk-2PRO2JTX.mjs} +1 -1
  10. package/dist/cli/{chunk-67RWR34T.mjs → chunk-44ZTYHMQ.mjs} +1 -1
  11. package/dist/cli/{chunk-Q3LFI3VH.js → chunk-53HN7WZN.js} +8 -8
  12. package/dist/cli/{chunk-J5PTX66Y.js → chunk-5MLCBXXU.js} +8 -1
  13. package/dist/cli/{chunk-YMOFWHGO.mjs → chunk-7AALNGTA.mjs} +3 -3
  14. package/dist/cli/{chunk-OSFWFV72.js → chunk-ALD4COBH.js} +3 -3
  15. package/dist/cli/{chunk-3ZB6IIA7.js → chunk-AU4OFDFX.js} +26 -26
  16. package/dist/cli/{chunk-XXLXOUUU.mjs → chunk-BEVLCKXG.mjs} +1 -1
  17. package/dist/cli/{chunk-D6FFBSM5.js → chunk-DEC3JECC.js} +1 -1
  18. package/dist/cli/{chunk-IWBXJDZA.mjs → chunk-FHPCKULR.mjs} +2 -2
  19. package/dist/cli/{chunk-QUAQX3FQ.js → chunk-FJCIUF34.js} +4 -4
  20. package/dist/cli/{chunk-4RNDKFNQ.js → chunk-GAICVLKL.js} +2 -2
  21. package/dist/cli/{chunk-MJELBQBU.mjs → chunk-IT3XBJQR.mjs} +4 -4
  22. package/dist/cli/{chunk-SJVVBWRL.mjs → chunk-J6DCKJNM.mjs} +1 -1
  23. package/dist/cli/{chunk-E3PJF6YP.js → chunk-JGHG4NBA.js} +2 -2
  24. package/dist/cli/{chunk-4CFULMRB.mjs → chunk-JRAVVJ3T.mjs} +1 -1
  25. package/dist/cli/{chunk-PYZZMAJQ.mjs → chunk-LFSHGNT2.mjs} +8 -1
  26. package/dist/cli/{chunk-IOHRWLQE.mjs → chunk-N44JHMKY.mjs} +6 -6
  27. package/dist/cli/{chunk-URACNNLO.mjs → chunk-NZSF57UO.mjs} +2 -2
  28. package/dist/cli/{chunk-BRJUESQV.js → chunk-O3VSXP2F.js} +50 -50
  29. package/dist/cli/{chunk-LOYISF7S.mjs → chunk-PBZYY7VZ.mjs} +5 -2
  30. package/dist/cli/{chunk-ECVLPS67.js → chunk-RTCDW2GU.js} +15 -15
  31. package/dist/cli/{chunk-WTT6CLED.mjs → chunk-TQNHMWUR.mjs} +1 -1
  32. package/dist/cli/{chunk-AUMD2VXP.js → chunk-V76R6HMV.js} +10 -7
  33. package/dist/cli/{chunk-4QFT5LGV.mjs → chunk-VWBTTJYQ.mjs} +2 -2
  34. package/dist/cli/{chunk-ZBABPK6Y.js → chunk-WHG43Z67.js} +8 -8
  35. package/dist/cli/{chunk-2XXXFPTD.js → chunk-WLOCMJWV.js} +67 -67
  36. package/dist/cli/{chunk-HQY2SG3K.js → chunk-WNUR6VP5.js} +2 -2
  37. package/dist/cli/{chunk-I3DHIXVJ.mjs → chunk-WYQO2CBS.mjs} +4 -4
  38. package/dist/cli/{chunk-Q3PUHXOY.js → chunk-YD7B53RW.js} +6 -6
  39. package/dist/cli/command-docs.js +2 -2
  40. package/dist/cli/command-docs.mjs +1 -1
  41. package/dist/cli/{csv-WPSXG6ZZ.mjs → csv-A2MP6EFV.mjs} +3 -3
  42. package/dist/cli/{csv-XLGLHJ6P.js → csv-BBOTCGQY.js} +12 -12
  43. package/dist/cli/{db-ABS57ABJ.mjs → db-3W5DMTUX.mjs} +4 -4
  44. package/dist/cli/{db-5PTNJG4X.js → db-G4CODDCA.js} +25 -25
  45. package/dist/cli/{describe-EZS6PQXA.js → describe-PQTQ5B6F.js} +11 -11
  46. package/dist/cli/{describe-PVWQJ2PB.mjs → describe-XYJ2ZT4M.mjs} +7 -7
  47. package/dist/cli/describe-core.d.mts +1 -1
  48. package/dist/cli/describe-core.d.ts +1 -1
  49. package/dist/cli/{executions-FNTAFQ7Y.js → executions-TLANVR7Y.js} +6 -6
  50. package/dist/cli/{executions-OKJGATQZ.mjs → executions-UR67CA5H.mjs} +4 -4
  51. package/dist/cli/{feedback-6YBOMSUA.js → feedback-6C2YTRJL.js} +7 -7
  52. package/dist/cli/{feedback-W27HDMRR.mjs → feedback-WHCMGEIL.mjs} +3 -3
  53. package/dist/cli/{git-YOOUEL6M.mjs → git-GWLB6VSA.mjs} +4 -4
  54. package/dist/cli/git-VQFF6D7C.js +24 -0
  55. package/dist/cli/index.js +124 -124
  56. package/dist/cli/index.mjs +36 -36
  57. package/dist/cli/{legacy-noops-V6OKW7VR.mjs → legacy-noops-KF4XIFEF.mjs} +4 -4
  58. package/dist/cli/{legacy-noops-2VZ7XT6C.js → legacy-noops-ZUFA7RWI.js} +7 -7
  59. package/dist/cli/{monitors-P2YYWTWT.mjs → monitors-6UOIDIMB.mjs} +4 -4
  60. package/dist/cli/{monitors-FBWGVIUS.js → monitors-TB3K2IVE.js} +84 -84
  61. package/dist/cli/{org-3XUSVX5T.js → org-CKWMBPIR.js} +64 -64
  62. package/dist/cli/{org-DVMG6H3C.mjs → org-WGHHMVDZ.mjs} +4 -4
  63. package/dist/cli/{play-GNC5CQAS.mjs → play-LYPAXCLD.mjs} +9 -9
  64. package/dist/cli/{play-YG5L4BWQ.js → play-N2B3KAVS.js} +266 -266
  65. package/dist/cli/{providers-JR33SLWL.mjs → providers-6DI5BVZJ.mjs} +4 -4
  66. package/dist/cli/{providers-7PSWG2OV.js → providers-UR42MD6Z.js} +7 -7
  67. package/dist/cli/{quickstart-FDVZ5BL3.js → quickstart-FCJG4XGB.js} +5 -5
  68. package/dist/cli/{quickstart-VUOBQYIQ.mjs → quickstart-MNA2S6PO.mjs} +3 -3
  69. package/dist/cli/search-NCEEONMQ.js +30 -0
  70. package/dist/cli/{search-JZYLO33K.mjs → search-VPPYUJ2M.mjs} +5 -5
  71. package/dist/cli/{secrets-3MCYBT4I.mjs → secrets-DRI4W7Z5.mjs} +4 -4
  72. package/dist/cli/{secrets-VS266FVA.js → secrets-QOSMVO36.js} +13 -13
  73. package/dist/cli/{sessions-TEHEWW7O.js → sessions-3WYKQABW.js} +5 -5
  74. package/dist/cli/{sessions-ELLLT23E.mjs → sessions-DQNUKP43.mjs} +4 -4
  75. package/dist/cli/{settings-PZCKAFII.mjs → settings-DWDK3Y2R.mjs} +8 -8
  76. package/dist/cli/{settings-7364NMMA.js → settings-JUGGCOPS.js} +75 -75
  77. package/dist/cli/{setup-PMWYLCT6.js → setup-AWBHNYXK.js} +42 -42
  78. package/dist/cli/{setup-A7GQ4KIA.mjs → setup-D5DWVNY4.mjs} +7 -7
  79. package/dist/cli/skills-AKPAJVSO.js +29 -0
  80. package/dist/cli/{skills-WS6BIFPQ.mjs → skills-YV2XR35J.mjs} +5 -5
  81. package/dist/cli/{tools-KK4BKVQR.js → tools-RBKEK6PM.js} +8 -8
  82. package/dist/cli/{tools-BR4DOZA2.mjs → tools-VFJYHNV2.mjs} +7 -7
  83. package/dist/cli/{update-D2B7UNFT.mjs → update-IM6VOTGL.mjs} +7 -7
  84. package/dist/cli/update-VFNUBLDA.js +29 -0
  85. package/dist/cli/{workflow-PQXC2R47.mjs → workflow-26URBWPV.mjs} +5 -5
  86. package/dist/cli/{workflow-6ODTCYXU.js → workflow-3BS6U6SL.js} +15 -15
  87. package/dist/{client-BcvhDfJJ.d.ts → client-BMjJFpan.d.ts} +2 -0
  88. package/dist/{client-Z9Pye1Wm.d.mts → client-BfInrZPB.d.mts} +2 -0
  89. package/dist/index.d.mts +2 -2
  90. package/dist/index.d.ts +2 -2
  91. package/dist/index.js +6 -6
  92. package/dist/index.mjs +3 -3
  93. package/dist/install-integrity.json +80 -80
  94. package/dist/plays/play-description.d.mts +1 -1
  95. package/dist/plays/play-description.d.ts +1 -1
  96. package/dist/plays/run-request.d.mts +1 -1
  97. package/dist/plays/run-request.d.ts +1 -1
  98. package/dist/release.d.mts +1 -1
  99. package/dist/release.d.ts +1 -1
  100. package/dist/release.js +2 -2
  101. package/dist/release.mjs +1 -1
  102. package/package.json +1 -1
  103. package/dist/cli/auth-3GB2K636.js +0 -40
  104. package/dist/cli/git-YKUXXJOR.js +0 -24
  105. package/dist/cli/search-PPPYC5OZ.js +0 -30
  106. package/dist/cli/skills-SYS7VRRK.js +0 -29
  107. package/dist/cli/update-2IV5JTX2.js +0 -29
@@ -4,11 +4,11 @@
4
4
  var _chunkZAAKSJASjs = require('./chunk-ZAAKSJAS.js');
5
5
 
6
6
 
7
- var _chunkQ3LFI3VHjs = require('./chunk-Q3LFI3VH.js');
7
+ var _chunk53HN7WZNjs = require('./chunk-53HN7WZN.js');
8
8
 
9
9
 
10
10
 
11
- var _chunk3ZB6IIA7js = require('./chunk-3ZB6IIA7.js');
11
+ var _chunkAU4OFDFXjs = require('./chunk-AU4OFDFX.js');
12
12
 
13
13
 
14
14
  var _chunkBQR6UN3Cjs = require('./chunk-BQR6UN3C.js');
@@ -45,7 +45,7 @@ require('./chunk-Z4VNJOF7.js');
45
45
 
46
46
 
47
47
 
48
- var _chunkAUMD2VXPjs = require('./chunk-AUMD2VXP.js');
48
+ var _chunkV76R6HMVjs = require('./chunk-V76R6HMV.js');
49
49
  require('./chunk-S6R3OX7B.js');
50
50
 
51
51
 
@@ -65,11 +65,11 @@ require('./chunk-XDVT3GOM.js');
65
65
 
66
66
 
67
67
 
68
- var _chunkE3PJF6YPjs = require('./chunk-E3PJF6YP.js');
68
+ var _chunkJGHG4NBAjs = require('./chunk-JGHG4NBA.js');
69
69
 
70
70
 
71
71
 
72
- var _chunkOSFWFV72js = require('./chunk-OSFWFV72.js');
72
+ var _chunkALD4COBHjs = require('./chunk-ALD4COBH.js');
73
73
 
74
74
 
75
75
 
@@ -84,16 +84,16 @@ var _chunkOSFWFV72js = require('./chunk-OSFWFV72.js');
84
84
 
85
85
 
86
86
 
87
- var _chunkQ3PUHXOYjs = require('./chunk-Q3PUHXOY.js');
87
+ var _chunkYD7B53RWjs = require('./chunk-YD7B53RW.js');
88
88
 
89
89
 
90
- var _chunkQUAQX3FQjs = require('./chunk-QUAQX3FQ.js');
90
+ var _chunkFJCIUF34js = require('./chunk-FJCIUF34.js');
91
91
  require('./chunk-Q2E4E4FJ.js');
92
92
  require('./chunk-XNYIZMNQ.js');
93
93
 
94
94
 
95
95
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
96
- require('./chunk-D6FFBSM5.js');
96
+ require('./chunk-DEC3JECC.js');
97
97
  require('./chunk-OG64RBAC.js');
98
98
 
99
99
 
@@ -2075,7 +2075,7 @@ function resolveField(key, command) {
2075
2075
  function printSettings(result, json, name) {
2076
2076
  result = { ...result, settings: parsePlaySettings(result.settings) };
2077
2077
  const selected = fields.filter(([key]) => !name || key === name);
2078
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
2078
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
2079
2079
  {
2080
2080
  ...result,
2081
2081
  settings: Object.fromEntries(
@@ -2119,7 +2119,7 @@ function registerPlaySettingsCommands(plays) {
2119
2119
  valueSyntax: field.cli.valueSyntax,
2120
2120
  examples: field.cli.examples
2121
2121
  }));
2122
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
2122
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
2123
2123
  {
2124
2124
  fields: descriptions,
2125
2125
  render: {
@@ -2144,7 +2144,7 @@ function registerPlaySettingsCommands(plays) {
2144
2144
  async (options, command) => {
2145
2145
  if (options.name !== void 0) resolveField(options.name, command);
2146
2146
  printSettings(
2147
- await new (0, _chunkAUMD2VXPjs.DeeplineClient)().getPlaySettings(options.play),
2147
+ await new (0, _chunkV76R6HMVjs.DeeplineClient)().getPlaySettings(options.play),
2148
2148
  options.json,
2149
2149
  options.name
2150
2150
  );
@@ -2175,7 +2175,7 @@ function registerPlaySettingsCommands(plays) {
2175
2175
  );
2176
2176
  }
2177
2177
  if (options.dryRun) {
2178
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
2178
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
2179
2179
  {
2180
2180
  dryRun: true,
2181
2181
  play,
@@ -2196,7 +2196,7 @@ function registerPlaySettingsCommands(plays) {
2196
2196
  return;
2197
2197
  }
2198
2198
  printSettings(
2199
- await new (0, _chunkAUMD2VXPjs.DeeplineClient)().updatePlaySettings(play, patch),
2199
+ await new (0, _chunkV76R6HMVjs.DeeplineClient)().updatePlaySettings(play, patch),
2200
2200
  options.json
2201
2201
  );
2202
2202
  };
@@ -2222,13 +2222,13 @@ function registerPlaySettingsCommands(plays) {
2222
2222
  "--root must be person or team; --limit must be 1\u2013100.",
2223
2223
  { exitCode: 2 }
2224
2224
  );
2225
- const page = await new (0, _chunkAUMD2VXPjs.DeeplineClient)().listPlaySettingsPaths({
2225
+ const page = await new (0, _chunkV76R6HMVjs.DeeplineClient)().listPlaySettingsPaths({
2226
2226
  root: options.root,
2227
2227
  limit,
2228
2228
  cursor: options.cursor
2229
2229
  });
2230
2230
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2231
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
2231
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
2232
2232
  {
2233
2233
  ...page,
2234
2234
  nextCommand,
@@ -2279,7 +2279,7 @@ function registerPlaySettingsCommands(plays) {
2279
2279
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2280
2280
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2281
2281
  };
2282
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
2282
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
2283
2283
  const paths = [];
2284
2284
  let cursor;
2285
2285
  do {
@@ -2341,7 +2341,7 @@ function registerPlaySettingsCommands(plays) {
2341
2341
  moved.push(move.playName);
2342
2342
  }
2343
2343
  }
2344
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
2344
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
2345
2345
  {
2346
2346
  dryRun: Boolean(options.dryRun),
2347
2347
  from: options.from,
@@ -2469,7 +2469,7 @@ function triggerLines(view) {
2469
2469
  return lines;
2470
2470
  }
2471
2471
  function printView(view, json) {
2472
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
2472
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
2473
2473
  {
2474
2474
  ...view,
2475
2475
  render: {
@@ -2482,7 +2482,7 @@ function printView(view, json) {
2482
2482
  );
2483
2483
  }
2484
2484
  function printResult(result, json) {
2485
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
2485
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
2486
2486
  {
2487
2487
  ...result,
2488
2488
  render: {
@@ -2512,7 +2512,7 @@ async function mutate(command, options, build) {
2512
2512
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2513
2513
  }
2514
2514
  if (options.dryRun) {
2515
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
2515
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
2516
2516
  {
2517
2517
  dryRun: true,
2518
2518
  play: options.play,
@@ -2531,7 +2531,7 @@ async function mutate(command, options, build) {
2531
2531
  return;
2532
2532
  }
2533
2533
  printResult(
2534
- await new (0, _chunkAUMD2VXPjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2534
+ await new (0, _chunkV76R6HMVjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2535
2535
  options.json
2536
2536
  );
2537
2537
  }
@@ -2564,7 +2564,7 @@ function registerPlayTriggerConfigCommands(plays) {
2564
2564
  }).addHelpText("after", help2);
2565
2565
  trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
2566
2566
  printView(
2567
- await new (0, _chunkAUMD2VXPjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2567
+ await new (0, _chunkV76R6HMVjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2568
2568
  options.json
2569
2569
  );
2570
2570
  });
@@ -2608,7 +2608,7 @@ function registerPlayTriggerConfigCommands(plays) {
2608
2608
  if (options.auth === void 0) {
2609
2609
  if (secrets.length || options.header || options.signaturePrefix)
2610
2610
  usage(setWebhook, "--secret/--header need --auth.");
2611
- const current = await new (0, _chunkAUMD2VXPjs.DeeplineClient)().getPlayTriggerConfig(
2611
+ const current = await new (0, _chunkV76R6HMVjs.DeeplineClient)().getPlayTriggerConfig(
2612
2612
  options.play
2613
2613
  );
2614
2614
  return {
@@ -2685,7 +2685,7 @@ var KIND_DESCRIPTIONS = {
2685
2685
  "receipt.skipped": "Saved work result: skipped.",
2686
2686
  "runtime.event": "Other event."
2687
2687
  };
2688
- var RUN_LOGS_KIND_HELP = _chunkAUMD2VXPjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2688
+ var RUN_LOGS_KIND_HELP = _chunkV76R6HMVjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2689
2689
  kind,
2690
2690
  description: KIND_DESCRIPTIONS[kind]
2691
2691
  }));
@@ -2822,9 +2822,9 @@ function configureRunQueryCommandErrors(command, resource) {
2822
2822
  const args = program.args;
2823
2823
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2824
2824
  error.exitCode = 2;
2825
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2826
- _chunkQ3PUHXOYjs.printJsonError.call(void 0,
2827
- Object.assign(new (0, _chunkAUMD2VXPjs.RunEventQueryInputError)(error.message), {
2825
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2826
+ _chunkYD7B53RWjs.printJsonError.call(void 0,
2827
+ Object.assign(new (0, _chunkV76R6HMVjs.RunEventQueryInputError)(error.message), {
2828
2828
  exitCode: 2,
2829
2829
  retryable: false
2830
2830
  })
@@ -2868,14 +2868,14 @@ function parseQuery(args, resource) {
2868
2868
  if (VALUE_FLAGS.has(flag)) {
2869
2869
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2870
2870
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2871
- throw new (0, _chunkAUMD2VXPjs.RunEventQueryInputError)(
2871
+ throw new (0, _chunkV76R6HMVjs.RunEventQueryInputError)(
2872
2872
  `${flag} requires a value. Use ${flag} <value>.`
2873
2873
  );
2874
2874
  }
2875
2875
  if (flag === "--sum") sums.push(value);
2876
2876
  else {
2877
2877
  if (values[flag] !== void 0) {
2878
- throw new (0, _chunkAUMD2VXPjs.RunEventQueryInputError)(
2878
+ throw new (0, _chunkV76R6HMVjs.RunEventQueryInputError)(
2879
2879
  `${flag} may only be supplied once.`
2880
2880
  );
2881
2881
  }
@@ -2889,12 +2889,12 @@ function parseQuery(args, resource) {
2889
2889
  }
2890
2890
  if (arg.startsWith("-")) {
2891
2891
  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.";
2892
- throw new (0, _chunkAUMD2VXPjs.RunEventQueryInputError)(
2892
+ throw new (0, _chunkV76R6HMVjs.RunEventQueryInputError)(
2893
2893
  `Unsupported query flag ${flag}. ${correction}`
2894
2894
  );
2895
2895
  }
2896
2896
  if (runId !== void 0) {
2897
- throw new (0, _chunkAUMD2VXPjs.RunEventQueryInputError)(
2897
+ throw new (0, _chunkV76R6HMVjs.RunEventQueryInputError)(
2898
2898
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2899
2899
  );
2900
2900
  }
@@ -2902,7 +2902,7 @@ function parseQuery(args, resource) {
2902
2902
  }
2903
2903
  if (switches.has("--fields")) {
2904
2904
  if (runId !== void 0) {
2905
- throw new (0, _chunkAUMD2VXPjs.RunEventQueryInputError)(
2905
+ throw new (0, _chunkV76R6HMVjs.RunEventQueryInputError)(
2906
2906
  "--fields does not use a run ID. Omit the positional run ID."
2907
2907
  );
2908
2908
  }
@@ -2915,18 +2915,18 @@ function parseQuery(args, resource) {
2915
2915
  )
2916
2916
  ];
2917
2917
  if (incompatible.length) {
2918
- throw new (0, _chunkAUMD2VXPjs.RunEventQueryInputError)(
2918
+ throw new (0, _chunkV76R6HMVjs.RunEventQueryInputError)(
2919
2919
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2920
2920
  );
2921
2921
  }
2922
2922
  }
2923
2923
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2924
- throw new (0, _chunkAUMD2VXPjs.RunEventQueryInputError)(
2924
+ throw new (0, _chunkV76R6HMVjs.RunEventQueryInputError)(
2925
2925
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2926
2926
  );
2927
2927
  }
2928
2928
  if (sums.length && switches.has("--count")) {
2929
- throw new (0, _chunkAUMD2VXPjs.RunEventQueryInputError)(
2929
+ throw new (0, _chunkV76R6HMVjs.RunEventQueryInputError)(
2930
2930
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2931
2931
  );
2932
2932
  }
@@ -2934,7 +2934,7 @@ function parseQuery(args, resource) {
2934
2934
  if (operation === "count") {
2935
2935
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2936
2936
  if (values[flag] !== void 0 || switches.has(flag)) {
2937
- throw new (0, _chunkAUMD2VXPjs.RunEventQueryInputError)(
2937
+ throw new (0, _chunkV76R6HMVjs.RunEventQueryInputError)(
2938
2938
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2939
2939
  );
2940
2940
  }
@@ -2969,16 +2969,16 @@ function parseQuery(args, resource) {
2969
2969
  ];
2970
2970
  }
2971
2971
  }
2972
- const request = _chunkAUMD2VXPjs.normalizeRunEventOperationRequest.call(void 0, body);
2972
+ const request = _chunkV76R6HMVjs.normalizeRunEventOperationRequest.call(void 0, body);
2973
2973
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2974
2974
  const backend = values["--runtime-backend"];
2975
2975
  if (backend && backend !== "daytona" && backend !== "modal") {
2976
- throw new (0, _chunkAUMD2VXPjs.RunEventQueryInputError)(
2976
+ throw new (0, _chunkV76R6HMVjs.RunEventQueryInputError)(
2977
2977
  "--runtime-backend must be daytona or modal."
2978
2978
  );
2979
2979
  }
2980
2980
  if (backend && !namespace) {
2981
- throw new (0, _chunkAUMD2VXPjs.RunEventQueryInputError)(
2981
+ throw new (0, _chunkV76R6HMVjs.RunEventQueryInputError)(
2982
2982
  "--runtime-backend requires --runtime-namespace."
2983
2983
  );
2984
2984
  }
@@ -3025,12 +3025,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3025
3025
  const failure = error instanceof Error ? error : new Error(String(error));
3026
3026
  const record3 = failure;
3027
3027
  const status = record3.statusCode;
3028
- const exitCode = error instanceof _chunkAUMD2VXPjs.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;
3028
+ const exitCode = error instanceof _chunkV76R6HMVjs.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;
3029
3029
  const diagnostic = Object.assign(failure, {
3030
3030
  exitCode,
3031
3031
  retryable: exitCode === 5
3032
3032
  });
3033
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) _chunkQ3PUHXOYjs.printJsonError.call(void 0, diagnostic);
3033
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) _chunkYD7B53RWjs.printJsonError.call(void 0, diagnostic);
3034
3034
  else console.error(`Error: ${diagnostic.message}`);
3035
3035
  return exitCode;
3036
3036
  }
@@ -3045,7 +3045,7 @@ async function executeRunEventQuery(args, resource) {
3045
3045
  ...criteria
3046
3046
  } = request;
3047
3047
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3048
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
3048
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
3049
3049
  let result;
3050
3050
  if (request.operation === "fields") {
3051
3051
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3111,13 +3111,13 @@ async function executeRunEventQuery(args, resource) {
3111
3111
  lines.push(`Next page: ${nextPage}`);
3112
3112
  }
3113
3113
  }
3114
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
3114
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
3115
3115
  {
3116
3116
  ...result,
3117
3117
  ...nextPage ? { next: { page: nextPage } } : {},
3118
3118
  render: { sections: [{ title: `run ${resource}`, lines }] }
3119
3119
  },
3120
- { json: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3120
+ { json: _chunkYD7B53RWjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3121
3121
  ` }
3122
3122
  );
3123
3123
  return 0;
@@ -4035,7 +4035,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4035
4035
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4036
4036
  );
4037
4037
  }
4038
- const response = await new (0, _chunkAUMD2VXPjs.DeeplineClient)().runs.getReceipts(runId, {
4038
+ const response = await new (0, _chunkV76R6HMVjs.DeeplineClient)().runs.getReceipts(runId, {
4039
4039
  keys
4040
4040
  });
4041
4041
  const failed = response.receipts.filter(
@@ -4047,7 +4047,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4047
4047
  JSON.stringify(response, null, 2) + "\n",
4048
4048
  { flag: "wx", mode: 384 }
4049
4049
  );
4050
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
4050
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
4051
4051
  {
4052
4052
  runId,
4053
4053
  out: options.out,
@@ -4057,7 +4057,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4057
4057
  { json: true }
4058
4058
  );
4059
4059
  } else {
4060
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4060
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4061
4061
  }
4062
4062
  if (failed)
4063
4063
  process.exitCode = response.receipts.some(
@@ -4096,7 +4096,7 @@ includes nextCommand when another page is available.
4096
4096
  { exitCode: 2 }
4097
4097
  );
4098
4098
  }
4099
- const page = await new (0, _chunkAUMD2VXPjs.DeeplineClient)().runs.children(parentRunId, {
4099
+ const page = await new (0, _chunkV76R6HMVjs.DeeplineClient)().runs.children(parentRunId, {
4100
4100
  launchKey: options.launchKey,
4101
4101
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4102
4102
  limit
@@ -4111,7 +4111,7 @@ includes nextCommand when another page is available.
4111
4111
  "--limit",
4112
4112
  String(limit)
4113
4113
  ].join(" ") : null;
4114
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
4114
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
4115
4115
  {
4116
4116
  parentRunId,
4117
4117
  launchKey: options.launchKey,
@@ -4147,7 +4147,7 @@ async function handleRunsHistory(options) {
4147
4147
  throw new Error("--limit must be a positive integer.");
4148
4148
  }
4149
4149
  }
4150
- const page = await new (0, _chunkAUMD2VXPjs.DeeplineClient)().runs.history({
4150
+ const page = await new (0, _chunkV76R6HMVjs.DeeplineClient)().runs.history({
4151
4151
  cursor: options.cursor,
4152
4152
  orgId: options.org,
4153
4153
  search: options.search,
@@ -4163,7 +4163,7 @@ async function handleRunsHistory(options) {
4163
4163
  );
4164
4164
  }
4165
4165
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4166
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
4166
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
4167
4167
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4168
4168
  options.json ? { json: true } : {}
4169
4169
  );
@@ -4215,12 +4215,12 @@ async function runRunsRerunCommand(runId, options) {
4215
4215
  return 1;
4216
4216
  }
4217
4217
  }
4218
- const result = await new (0, _chunkAUMD2VXPjs.DeeplineClient)().runs.rerun(runId, {
4218
+ const result = await new (0, _chunkV76R6HMVjs.DeeplineClient)().runs.rerun(runId, {
4219
4219
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4220
4220
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4221
4221
  });
4222
- if (_chunkQ3PUHXOYjs.shouldEmitJson.call(void 0, options.json)) {
4223
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, result, { json: true });
4222
+ if (_chunkYD7B53RWjs.shouldEmitJson.call(void 0, options.json)) {
4223
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0, result, { json: true });
4224
4224
  } else {
4225
4225
  console.log(
4226
4226
  result.deduplicated === true ? `
@@ -4488,7 +4488,7 @@ function projectRunDatasetCell(value) {
4488
4488
  const logicalValue = parseSerializedDatasetValue(value);
4489
4489
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
4490
4490
  if (typeof logicalValue === "object") {
4491
- return _chunkQ3PUHXOYjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4491
+ return _chunkYD7B53RWjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4492
4492
  }
4493
4493
  return logicalValue;
4494
4494
  }
@@ -6959,7 +6959,7 @@ function renderOutcome(outcome) {
6959
6959
  function printResult2(input) {
6960
6960
  const failed = input.status === "failed" || input.status === "cancelled";
6961
6961
  if (failed) process.exitCode = 1;
6962
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
6962
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
6963
6963
  {
6964
6964
  deployment: { ...input.deployment, status: input.status },
6965
6965
  plays: input.outcomes,
@@ -6984,7 +6984,7 @@ async function handlePlaysDeploy(directory, options) {
6984
6984
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6985
6985
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6986
6986
  });
6987
- const { http, config } = _chunkQ3PUHXOYjs.getAuthedHttpClient.call(void 0, );
6987
+ const { http, config } = _chunkYD7B53RWjs.getAuthedHttpClient.call(void 0, );
6988
6988
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6989
6989
  const startDeployment = () => http.post("/api/v2/deployments", {
6990
6990
  deliveryId,
@@ -7011,7 +7011,7 @@ async function handlePlaysDeploy(directory, options) {
7011
7011
  },
7012
7012
  {
7013
7013
  bundle: bundleDeployPlayFile,
7014
- fetchImpl: _chunkQUAQX3FQjs.fetchWithDeploymentProtection,
7014
+ fetchImpl: _chunkFJCIUF34js.fetchWithDeploymentProtection,
7015
7015
  // The plays are already here: "opening" the source is naming it.
7016
7016
  openSource: async () => ({
7017
7017
  open: async () => ({ repoRoot: root })
@@ -7579,7 +7579,7 @@ function parseInputFlagValue(raw) {
7579
7579
  return raw;
7580
7580
  }
7581
7581
  function parsePlayRunOptions(args, initialInput = null) {
7582
- const selection = _chunkQ3PUHXOYjs.parseJsonFields.call(void 0, args, "run");
7582
+ const selection = _chunkYD7B53RWjs.parseJsonFields.call(void 0, args, "run");
7583
7583
  args = selection.args;
7584
7584
  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.";
7585
7585
  let filePath = null;
@@ -7591,7 +7591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7591
7591
  let revisionSelector = null;
7592
7592
  const watch = !args.includes("--no-wait");
7593
7593
  const dryRun = args.includes("--dry-run");
7594
- let jsonOutput = dryRun ? _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args);
7594
+ let jsonOutput = dryRun ? _chunkYD7B53RWjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkYD7B53RWjs.argsWantJson.call(void 0, args);
7595
7595
  const fullJson = args.includes("--full");
7596
7596
  const force = args.includes("--force");
7597
7597
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -7654,7 +7654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7654
7654
  "--log-level requires one of: debug, info, warn, error."
7655
7655
  );
7656
7656
  }
7657
- const parsed = _chunkAUMD2VXPjs.parseLogLevel.call(void 0, value);
7657
+ const parsed = _chunkV76R6HMVjs.parseLogLevel.call(void 0, value);
7658
7658
  if (!parsed) {
7659
7659
  throw new Error(
7660
7660
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -7972,7 +7972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7972
7972
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
7973
7973
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
7974
7974
  );
7975
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkAUMD2VXPjs.parseLogLevel.call(void 0, options.logLevel);
7975
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkV76R6HMVjs.parseLogLevel.call(void 0, options.logLevel);
7976
7976
  if (!logLevel)
7977
7977
  throw new Error("--log-level requires one of: debug, info, warn, error.");
7978
7978
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -7986,13 +7986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7986
7986
  if (debugAlias || debugMapLatency && logLevel === "info")
7987
7987
  logLevel = "debug";
7988
7988
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
7989
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkQ3PUHXOYjs.parseJsonFields.call(void 0,
7990
- [...fullJson ? ["--full"] : [], ..._chunkQ3PUHXOYjs.jsonFieldArgs.call(void 0, options.json)],
7989
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkYD7B53RWjs.parseJsonFields.call(void 0,
7990
+ [...fullJson ? ["--full"] : [], ..._chunkYD7B53RWjs.jsonFieldArgs.call(void 0, options.json)],
7991
7991
  "run"
7992
7992
  ).fields;
7993
7993
  const watch = options.wait === false ? false : base.watch;
7994
7994
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
7995
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkQ3PUHXOYjs.argsWantJson.call(void 0, []) : explicitJson;
7995
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkYD7B53RWjs.argsWantJson.call(void 0, []) : explicitJson;
7996
7996
  const verboseLogs = Boolean(
7997
7997
  debugAlias || logLevel === "debug" || debugMapLatency
7998
7998
  );
@@ -8039,7 +8039,7 @@ function playAuthoringGraphPath(parent, filePath) {
8039
8039
  // src/cli/renderers/local-play-execution.ts
8040
8040
  function renderLocalPlayExecutionPlan(plan, options = {}) {
8041
8041
  if (options.dryRun) {
8042
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
8042
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
8043
8043
  return;
8044
8044
  }
8045
8045
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -8211,7 +8211,7 @@ function traceCliSync(phase, fields2, run) {
8211
8211
  const startedAt = Date.now();
8212
8212
  try {
8213
8213
  const result = run();
8214
- _chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
8214
+ _chunkJGHG4NBAjs.recordCliTrace.call(void 0, {
8215
8215
  phase,
8216
8216
  ms: Date.now() - startedAt,
8217
8217
  ok: true,
@@ -8219,7 +8219,7 @@ function traceCliSync(phase, fields2, run) {
8219
8219
  });
8220
8220
  return result;
8221
8221
  } catch (error) {
8222
- _chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
8222
+ _chunkJGHG4NBAjs.recordCliTrace.call(void 0, {
8223
8223
  phase,
8224
8224
  ms: Date.now() - startedAt,
8225
8225
  ok: false,
@@ -9003,7 +9003,7 @@ function playStatusErrorText(status) {
9003
9003
  function isRetryablePendingStartFailure(status) {
9004
9004
  if (status.status !== "failed") return false;
9005
9005
  if (status.runId && status.runId !== "pending") return false;
9006
- return _chunkAUMD2VXPjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
9006
+ return _chunkV76R6HMVjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
9007
9007
  }
9008
9008
  function pendingStartFailureStatus(input) {
9009
9009
  const message = input.error instanceof Error ? input.error.message : String(input.error);
@@ -9030,13 +9030,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
9030
9030
  var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
9031
9031
  function watchSurfaceReaches(state, provenance, level) {
9032
9032
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
9033
- if (!_chunkAUMD2VXPjs.logLevelReaches.call(void 0, level, minimumLevel)) {
9033
+ if (!_chunkV76R6HMVjs.logLevelReaches.call(void 0, level, minimumLevel)) {
9034
9034
  return false;
9035
9035
  }
9036
- if (_chunkAUMD2VXPjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
9036
+ if (_chunkV76R6HMVjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
9037
9037
  return true;
9038
9038
  }
9039
- return state.verbose === true && _chunkAUMD2VXPjs.logProvenanceReaches.call(void 0, provenance, "debug");
9039
+ return state.verbose === true && _chunkV76R6HMVjs.logProvenanceReaches.call(void 0, provenance, "debug");
9040
9040
  }
9041
9041
  function getEventPayload(event) {
9042
9042
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -9538,7 +9538,7 @@ function resolveRunPlayName(status, runId) {
9538
9538
  }
9539
9539
  function openPlayDashboard(dashboardUrl, open2) {
9540
9540
  if (open2 && dashboardUrl) {
9541
- _chunkQ3PUHXOYjs.openInBrowser.call(void 0, dashboardUrl);
9541
+ _chunkYD7B53RWjs.openInBrowser.call(void 0, dashboardUrl);
9542
9542
  }
9543
9543
  }
9544
9544
  function printPlayLogLines(input) {
@@ -9600,7 +9600,7 @@ async function waitForPlayCompletionByWatch(input) {
9600
9600
  billing: false
9601
9601
  });
9602
9602
  } catch (error) {
9603
- if (_chunkAUMD2VXPjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9603
+ if (_chunkV76R6HMVjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9604
9604
  return null;
9605
9605
  }
9606
9606
  throw error;
@@ -9737,7 +9737,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9737
9737
  `[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
9738
9738
  );
9739
9739
  }
9740
- _chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
9740
+ _chunkJGHG4NBAjs.recordCliTrace.call(void 0, {
9741
9741
  phase: "cli.play_start_stream_retry",
9742
9742
  ms: 0,
9743
9743
  ok: true,
@@ -9798,7 +9798,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9798
9798
  billing: false
9799
9799
  });
9800
9800
  } catch (error) {
9801
- if (_chunkAUMD2VXPjs.isTransientPlayRunReadError.call(void 0, error)) {
9801
+ if (_chunkV76R6HMVjs.isTransientPlayRunReadError.call(void 0, error)) {
9802
9802
  return null;
9803
9803
  }
9804
9804
  throw error;
@@ -9924,7 +9924,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9924
9924
  ...launchedRevisionId ? { revisionId: launchedRevisionId } : {}
9925
9925
  };
9926
9926
  if (!canonicalTerminal) {
9927
- _chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
9927
+ _chunkJGHG4NBAjs.recordCliTrace.call(void 0, {
9928
9928
  phase: "cli.play_start_stream_stale_terminal_ignored",
9929
9929
  ms: Date.now() - startedAt,
9930
9930
  ok: true,
@@ -9937,7 +9937,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9937
9937
  });
9938
9938
  continue;
9939
9939
  }
9940
- _chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
9940
+ _chunkJGHG4NBAjs.recordCliTrace.call(void 0, {
9941
9941
  phase: "cli.play_start_stream_terminal",
9942
9942
  ms: Date.now() - startedAt,
9943
9943
  ok: true,
@@ -9957,7 +9957,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9957
9957
  clearTimeout(timeout);
9958
9958
  }
9959
9959
  controller.abort();
9960
- _chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
9960
+ _chunkJGHG4NBAjs.recordCliTrace.call(void 0, {
9961
9961
  phase: "cli.play_start_stream_handoff_to_tail",
9962
9962
  ms: Date.now() - startedAt,
9963
9963
  ok: true,
@@ -9986,7 +9986,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9986
9986
  if (timedOut) {
9987
9987
  const terminal = await fetchKnownTerminalStatus();
9988
9988
  if (terminal) {
9989
- _chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
9989
+ _chunkJGHG4NBAjs.recordCliTrace.call(void 0, {
9990
9990
  phase: "cli.play_start_stream_timeout_status_reconcile",
9991
9991
  ms: Date.now() - startedAt,
9992
9992
  ok: true,
@@ -10006,7 +10006,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10006
10006
  lastPhase
10007
10007
  });
10008
10008
  }
10009
- if (lastKnownWorkflowId && _chunkAUMD2VXPjs.isTransientPlayRunReadError.call(void 0, error)) {
10009
+ if (lastKnownWorkflowId && _chunkV76R6HMVjs.isTransientPlayRunReadError.call(void 0, error)) {
10010
10010
  if (timeout) {
10011
10011
  clearTimeout(timeout);
10012
10012
  }
@@ -10017,7 +10017,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10017
10017
  `
10018
10018
  );
10019
10019
  }
10020
- _chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
10020
+ _chunkJGHG4NBAjs.recordCliTrace.call(void 0, {
10021
10021
  phase: "cli.play_start_stream_reconnect",
10022
10022
  ms: Date.now() - startedAt,
10023
10023
  ok: true,
@@ -10042,8 +10042,8 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10042
10042
  onRunAdmitted: confirmAdmission
10043
10043
  });
10044
10044
  }
10045
- if (!lastKnownWorkflowId && _chunkAUMD2VXPjs.isTransientPlayRunReadError.call(void 0, error)) {
10046
- _chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
10045
+ if (!lastKnownWorkflowId && _chunkV76R6HMVjs.isTransientPlayRunReadError.call(void 0, error)) {
10046
+ _chunkJGHG4NBAjs.recordCliTrace.call(void 0, {
10047
10047
  phase: "cli.play_start_stream_transient_failure",
10048
10048
  ms: Date.now() - startedAt,
10049
10049
  ok: false,
@@ -10071,7 +10071,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10071
10071
  `[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
10072
10072
  );
10073
10073
  }
10074
- _chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
10074
+ _chunkJGHG4NBAjs.recordCliTrace.call(void 0, {
10075
10075
  phase: "cli.play_start_stream_reconnect",
10076
10076
  ms: Date.now() - startedAt,
10077
10077
  ok: true,
@@ -10141,7 +10141,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10141
10141
  "logs"
10142
10142
  ]);
10143
10143
  function formatPlayLogLine(rawLine, state) {
10144
- const classified = _chunkAUMD2VXPjs.classifyLogLine.call(void 0, rawLine);
10144
+ const classified = _chunkV76R6HMVjs.classifyLogLine.call(void 0, rawLine);
10145
10145
  const line = classified.line;
10146
10146
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10147
10147
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _317 => _317[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10156,14 +10156,14 @@ function formatPlayLogLine(rawLine, state) {
10156
10156
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10157
10157
  const providerWait = formatProviderCapacityWaitLogLine(line);
10158
10158
  if (providerWait && !state.verbose) {
10159
- return _chunkAUMD2VXPjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10159
+ return _chunkV76R6HMVjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10160
10160
  }
10161
10161
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10162
10162
  if (mapProgress && !state.verbose) {
10163
- return _chunkAUMD2VXPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10163
+ return _chunkV76R6HMVjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10164
10164
  }
10165
10165
  if (/\[worker\] picked up run\b/.test(message)) {
10166
- if (!_chunkAUMD2VXPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10166
+ if (!_chunkV76R6HMVjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10167
10167
  return null;
10168
10168
  }
10169
10169
  if (state.emittedRunnerStarted) {
@@ -10176,7 +10176,7 @@ function formatPlayLogLine(rawLine, state) {
10176
10176
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10177
10177
  );
10178
10178
  if (mapStart) {
10179
- if (!_chunkAUMD2VXPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10179
+ if (!_chunkV76R6HMVjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10180
10180
  return null;
10181
10181
  }
10182
10182
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10186,7 +10186,7 @@ function formatPlayLogLine(rawLine, state) {
10186
10186
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10187
10187
  );
10188
10188
  if (mapDone) {
10189
- if (!_chunkAUMD2VXPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10189
+ if (!_chunkV76R6HMVjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10190
10190
  return null;
10191
10191
  }
10192
10192
  const [, results, executed, cached] = mapDone;
@@ -11475,7 +11475,7 @@ function formatRecentRunLogLines(value) {
11475
11475
  (line) => typeof line === "string"
11476
11476
  );
11477
11477
  if (tail.length === 0) return [];
11478
- const shown = tail.map((line) => _chunkAUMD2VXPjs.classifyLogLine.call(void 0, line)).filter(
11478
+ const shown = tail.map((line) => _chunkV76R6HMVjs.classifyLogLine.call(void 0, line)).filter(
11479
11479
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
11480
11480
  ).slice(-8);
11481
11481
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11758,7 +11758,7 @@ function writePlayResult(status, jsonOutput, options) {
11758
11758
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _398 => _398.hits]), () => ( null));
11759
11759
  if (jsonOutput) {
11760
11760
  const payload2 = _optionalChain([options, 'optionalAccess', _399 => _399.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11761
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
11761
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
11762
11762
  hits ? { ...payload2, hits } : payload2,
11763
11763
  { json: true, fields: _optionalChain([options, 'optionalAccess', _400 => _400.jsonFields]) }
11764
11764
  );
@@ -11774,7 +11774,7 @@ function writePlayResult(status, jsonOutput, options) {
11774
11774
  ...buildPlayCompletionTextLines(status),
11775
11775
  ...formatRunHitsLines(hits)
11776
11776
  ];
11777
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, displayPackage, {
11777
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0, displayPackage, {
11778
11778
  json: false,
11779
11779
  text: `${lines2.join("\n")}
11780
11780
  `
@@ -11825,7 +11825,7 @@ function writePlayResult(status, jsonOutput, options) {
11825
11825
  lines.push(...buildBillingRollupTextLines(status));
11826
11826
  const compact = compactPlayStatus(status);
11827
11827
  const payload = _optionalChain([options, 'optionalAccess', _402 => _402.fullJson]) ? status : compact;
11828
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
11828
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
11829
11829
  {
11830
11830
  ...payload,
11831
11831
  render: {
@@ -12595,7 +12595,7 @@ function writeStartedPlayRun(input) {
12595
12595
  dashboardUrl: input.dashboardUrl,
12596
12596
  package: input.package
12597
12597
  };
12598
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12598
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12599
12599
  json: true,
12600
12600
  fields: input.jsonFields
12601
12601
  });
@@ -12617,7 +12617,7 @@ function writeStartedPlayRun(input) {
12617
12617
  input.progress.writeLine(output2, process.stdout);
12618
12618
  return;
12619
12619
  }
12620
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, input.package, {
12620
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0, input.package, {
12621
12621
  json: false,
12622
12622
  text: `${output2}
12623
12623
  `
@@ -12646,7 +12646,7 @@ function writeStartedPlayRun(input) {
12646
12646
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12647
12647
  ];
12648
12648
  if (input.jsonOutput) {
12649
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12649
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12650
12650
  return;
12651
12651
  }
12652
12652
  if (input.dashboardUrl) {
@@ -12657,7 +12657,7 @@ function writeStartedPlayRun(input) {
12657
12657
  input.progress.writeLine(output, process.stdout);
12658
12658
  return;
12659
12659
  }
12660
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
12660
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
12661
12661
  {
12662
12662
  ...payload,
12663
12663
  render: { sections: [{ title: "play run", lines }] }
@@ -12667,7 +12667,7 @@ function writeStartedPlayRun(input) {
12667
12667
  );
12668
12668
  }
12669
12669
  function parsePlayCheckOptions(args) {
12670
- const selection = _chunkQ3PUHXOYjs.parseJsonFields.call(void 0, args, "check");
12670
+ const selection = _chunkYD7B53RWjs.parseJsonFields.call(void 0, args, "check");
12671
12671
  args = selection.args;
12672
12672
  const target = args[0];
12673
12673
  if (!target || target.startsWith("-")) {
@@ -12679,7 +12679,7 @@ function parsePlayCheckOptions(args) {
12679
12679
  if (arg !== "--json" && arg !== "--full")
12680
12680
  throw new Error(`Unknown plays check option: ${arg}`);
12681
12681
  }
12682
- const jsonOutput = _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args);
12682
+ const jsonOutput = _chunkYD7B53RWjs.argsWantJson.call(void 0, args);
12683
12683
  return {
12684
12684
  target,
12685
12685
  jsonOutput,
@@ -12755,7 +12755,7 @@ ${PLAY_PUBLISH_USAGE}`
12755
12755
  useLatest,
12756
12756
  expectedArtifactHash,
12757
12757
  dryRun,
12758
- jsonOutput: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)
12758
+ jsonOutput: _chunkYD7B53RWjs.argsWantJson.call(void 0, args)
12759
12759
  };
12760
12760
  }
12761
12761
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12796,7 +12796,7 @@ ${PLAY_SAVE_USAGE}`);
12796
12796
  target,
12797
12797
  expectedArtifactHash,
12798
12798
  dryRun,
12799
- jsonOutput: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)
12799
+ jsonOutput: _chunkYD7B53RWjs.argsWantJson.call(void 0, args)
12800
12800
  };
12801
12801
  }
12802
12802
  function printScheduledPlayCapacity(capacity) {
@@ -13007,7 +13007,7 @@ function printBundledRuntimeWarning(bundle) {
13007
13007
  async function handlePlayCheck(args) {
13008
13008
  const options = parsePlayCheckOptions(args);
13009
13009
  if (!isFileTarget2(options.target)) {
13010
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
13010
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
13011
13011
  try {
13012
13012
  await assertCanonicalNamedPlayReference(client, options.target, {
13013
13013
  command: "check"
@@ -13036,7 +13036,7 @@ async function handlePlayCheck(args) {
13036
13036
  },
13037
13037
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
13038
13038
  };
13039
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, result, {
13039
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0, result, {
13040
13040
  json: options.jsonOutput,
13041
13041
  fields: options.jsonFields,
13042
13042
  text: renderPlayCheckOutput(result) + "\n"
@@ -13046,7 +13046,7 @@ async function handlePlayCheck(args) {
13046
13046
  const resolved = _path.resolve.call(void 0, options.target);
13047
13047
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
13048
13048
  if (options.jsonOutput) {
13049
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
13049
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
13050
13050
  {
13051
13051
  kind: "play_check",
13052
13052
  checked: "named_contract",
@@ -13088,7 +13088,7 @@ async function handlePlayCheck(args) {
13088
13088
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
13089
13089
  publishCommand: _optionalChain([primary, 'optionalAccess', _449 => _449.result, 'access', _450 => _450.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
13090
13090
  });
13091
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, output, {
13091
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0, output, {
13092
13092
  json: options.jsonOutput,
13093
13093
  fields: options.jsonFields,
13094
13094
  text: renderPlayCheckOutput(output) + "\n"
@@ -13142,7 +13142,7 @@ async function checkOneExportedPlay(input) {
13142
13142
  }
13143
13143
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
13144
13144
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
13145
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
13145
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
13146
13146
  const integrationMode = resolveEvalIntegrationMode();
13147
13147
  const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
13148
13148
  playName: node.playName,
@@ -13183,7 +13183,7 @@ async function handleFileBackedRun(options, hooks) {
13183
13183
  throw new Error("Expected a file-backed play run target.");
13184
13184
  }
13185
13185
  let client;
13186
- const progress = _nullishCoalesce(_chunkOSFWFV72js.getActiveCliProgress.call(void 0, ), () => ( _chunkOSFWFV72js.createCliProgress.call(void 0, !options.jsonOutput)));
13186
+ const progress = _nullishCoalesce(_chunkALD4COBHjs.getActiveCliProgress.call(void 0, ), () => ( _chunkALD4COBHjs.createCliProgress.call(void 0, !options.jsonOutput)));
13187
13187
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
13188
13188
  progress.phase("compiling play");
13189
13189
  const sourceCode = traceCliSync(
@@ -13200,7 +13200,7 @@ async function handleFileBackedRun(options, hooks) {
13200
13200
  }
13201
13201
  let graph;
13202
13202
  try {
13203
- graph = await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
13203
+ graph = await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
13204
13204
  "cli.play_file_bundle_graph",
13205
13205
  { targetKind: "file" },
13206
13206
  () => collectBundledPlayGraph(
@@ -13219,10 +13219,10 @@ async function handleFileBackedRun(options, hooks) {
13219
13219
  );
13220
13220
  return 0;
13221
13221
  }
13222
- client = new (0, _chunkAUMD2VXPjs.DeeplineClient)(playRunClientOptions(options));
13222
+ client = new (0, _chunkV76R6HMVjs.DeeplineClient)(playRunClientOptions(options));
13223
13223
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
13224
13224
  if (canDeferCompilerManifest) {
13225
- _chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
13225
+ _chunkJGHG4NBAjs.recordCliTrace.call(void 0, {
13226
13226
  phase: "cli.play_file_compile_manifests",
13227
13227
  ms: 0,
13228
13228
  ok: true,
@@ -13231,7 +13231,7 @@ async function handleFileBackedRun(options, hooks) {
13231
13231
  reason: "validated_by_run_route"
13232
13232
  });
13233
13233
  } else {
13234
- await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
13234
+ await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
13235
13235
  "cli.play_file_compile_manifests",
13236
13236
  { targetKind: "file", skipped: false },
13237
13237
  () => compileBundledPlayGraphManifests(client, graph)
@@ -13255,7 +13255,7 @@ async function handleFileBackedRun(options, hooks) {
13255
13255
  _chunkGEJDBXXMjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
13256
13256
  );
13257
13257
  progress.phase("pinning imported plays");
13258
- graph = await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
13258
+ graph = await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
13259
13259
  "cli.play_file_pin_imports",
13260
13260
  { targetKind: "file" },
13261
13261
  () => _chunkGEJDBXXMjs.pinLocalPlayImports.call(void 0, client, graph)
@@ -13274,7 +13274,7 @@ async function handleFileBackedRun(options, hooks) {
13274
13274
  const fileInputBindings = _chunkUHNDVD3Pjs.fileInputBindingsFromStaticPipeline.call(void 0,
13275
13275
  _optionalChain([compilerManifest, 'optionalAccess', _455 => _455.staticPipeline])
13276
13276
  );
13277
- const stagedFileInputs = await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
13277
+ const stagedFileInputs = await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
13278
13278
  "cli.play_stage_inputs",
13279
13279
  {
13280
13280
  targetKind: "file",
@@ -13321,7 +13321,7 @@ async function handleFileBackedRun(options, hooks) {
13321
13321
  };
13322
13322
  if (options.watch) {
13323
13323
  progress.phase("starting run");
13324
- const finalStatus = await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
13324
+ const finalStatus = await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
13325
13325
  "cli.play_start_watch",
13326
13326
  { targetKind: "file", playName },
13327
13327
  () => startAndWaitForPlayCompletionByStream({
@@ -13371,7 +13371,7 @@ async function handleFileBackedRun(options, hooks) {
13371
13371
  return outputStatus.status === "completed" ? 0 : 1;
13372
13372
  }
13373
13373
  progress.phase("starting run");
13374
- const started = await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
13374
+ const started = await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
13375
13375
  "cli.play_start_unwatched",
13376
13376
  { targetKind: "file", playName },
13377
13377
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _461 => _461.onSubmission]) }).catch(async (error) => {
@@ -13418,8 +13418,8 @@ async function handleNamedRun(options, hooks) {
13418
13418
  if (options.target.kind !== "name") {
13419
13419
  throw new Error("Expected a named play run target.");
13420
13420
  }
13421
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)(playRunClientOptions(options));
13422
- const progress = _nullishCoalesce(_chunkOSFWFV72js.getActiveCliProgress.call(void 0, ), () => ( _chunkOSFWFV72js.createCliProgress.call(void 0, !options.jsonOutput)));
13421
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)(playRunClientOptions(options));
13422
+ const progress = _nullishCoalesce(_chunkALD4COBHjs.getActiveCliProgress.call(void 0, ), () => ( _chunkALD4COBHjs.createCliProgress.call(void 0, !options.jsonOutput)));
13423
13423
  const playName = options.target.name;
13424
13424
  const runtimeInput = options.input ? { ...options.input } : {};
13425
13425
  try {
@@ -13434,14 +13434,14 @@ async function handleNamedRun(options, hooks) {
13434
13434
  });
13435
13435
  const playDetail = needsPlayDefinition ? await (async () => {
13436
13436
  progress.phase("loading play definition");
13437
- return _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
13437
+ return _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
13438
13438
  "cli.play_load_definition",
13439
13439
  { targetKind: "name", playName, skipped: false },
13440
13440
  () => assertCanonicalNamedPlayReference(client, playName, {
13441
13441
  command: "run"
13442
13442
  })
13443
13443
  );
13444
- })() : (_chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
13444
+ })() : (_chunkJGHG4NBAjs.recordCliTrace.call(void 0, {
13445
13445
  phase: "cli.play_load_definition",
13446
13446
  ms: 0,
13447
13447
  ok: true,
@@ -13450,7 +13450,7 @@ async function handleNamedRun(options, hooks) {
13450
13450
  skipped: true
13451
13451
  }), null);
13452
13452
  progress.phase("selecting revision");
13453
- const selectedRevisionId = await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
13453
+ const selectedRevisionId = await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
13454
13454
  "cli.play_select_revision",
13455
13455
  {
13456
13456
  targetKind: "name",
@@ -13469,7 +13469,7 @@ async function handleNamedRun(options, hooks) {
13469
13469
  ..._chunkUHNDVD3Pjs.fileInputBindingsFromPlaySchema.call(void 0, playDetail.play.inputSchema),
13470
13470
  ..._chunkUHNDVD3Pjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
13471
13471
  ] : [];
13472
- const stagedFileInputs = await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
13472
+ const stagedFileInputs = await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
13473
13473
  "cli.play_stage_inputs",
13474
13474
  {
13475
13475
  targetKind: "name",
@@ -13513,7 +13513,7 @@ async function handleNamedRun(options, hooks) {
13513
13513
  });
13514
13514
  if (options.watch) {
13515
13515
  progress.phase("starting run");
13516
- const finalStatus = await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
13516
+ const finalStatus = await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
13517
13517
  "cli.play_start_watch",
13518
13518
  { targetKind: "name", playName },
13519
13519
  () => startAndWaitForPlayCompletionByStream({
@@ -13566,7 +13566,7 @@ async function handleNamedRun(options, hooks) {
13566
13566
  return outputStatus.status === "completed" ? 0 : 1;
13567
13567
  }
13568
13568
  progress.phase("starting run");
13569
- const started = await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
13569
+ const started = await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
13570
13570
  "cli.play_start_unwatched",
13571
13571
  { targetKind: "name", playName },
13572
13572
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _472 => _472.onSubmission]) }).catch(async (error) => {
@@ -13615,7 +13615,7 @@ async function handlePlayRun(args, hooks) {
13615
13615
  JSON.stringify({
13616
13616
  version: 1,
13617
13617
  admissionState: "submitted_unknown",
13618
- baseUrl: new (0, _chunkAUMD2VXPjs.DeeplineClient)().baseUrl,
13618
+ baseUrl: new (0, _chunkV76R6HMVjs.DeeplineClient)().baseUrl,
13619
13619
  ...intent
13620
13620
  })
13621
13621
  );
@@ -13844,7 +13844,7 @@ function renderRunOverviewText(overview, extras = {}) {
13844
13844
  );
13845
13845
  return `${lines.join("\n")}
13846
13846
 
13847
- ${_chunkQ3PUHXOYjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13847
+ ${_chunkYD7B53RWjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13848
13848
  }
13849
13849
  var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
13850
13850
  async function withRunReadTiming(command, stage, enabled, action) {
@@ -13868,7 +13868,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
13868
13868
  }
13869
13869
  }
13870
13870
  async function handleRunGet(args) {
13871
- const selection = _chunkQ3PUHXOYjs.parseJsonFields.call(void 0,
13871
+ const selection = _chunkYD7B53RWjs.parseJsonFields.call(void 0,
13872
13872
  args,
13873
13873
  args.includes("--config") ? "config" : "get"
13874
13874
  );
@@ -13881,7 +13881,7 @@ async function handleRunGet(args) {
13881
13881
  console.error(error instanceof Error ? error.message : usage2);
13882
13882
  return 1;
13883
13883
  }
13884
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
13884
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
13885
13885
  const timing = args.includes("--timing");
13886
13886
  if (args.includes("--web-url")) {
13887
13887
  const status2 = await withRunReadTiming(
@@ -13896,7 +13896,7 @@ async function handleRunGet(args) {
13896
13896
  return 1;
13897
13897
  }
13898
13898
  const dashboardUrl2 = _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
13899
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
13899
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
13900
13900
  { dashboardUrl: dashboardUrl2 },
13901
13901
  { json: args.includes("--json"), text: `${dashboardUrl2}
13902
13902
  ` }
@@ -13921,7 +13921,7 @@ async function handleRunGet(args) {
13921
13921
  "This server does not support recorded configuration reads."
13922
13922
  );
13923
13923
  }
13924
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
13924
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
13925
13925
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13926
13926
  { json: true, fields: selection.fields }
13927
13927
  );
@@ -13934,7 +13934,7 @@ async function handleRunGet(args) {
13934
13934
  timing,
13935
13935
  () => client.getRunInput(runId)
13936
13936
  );
13937
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, input, { json: true });
13937
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0, input, { json: true });
13938
13938
  return 0;
13939
13939
  }
13940
13940
  const full = args.includes("--full");
@@ -13960,8 +13960,8 @@ async function handleRunGet(args) {
13960
13960
  ) : status;
13961
13961
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
13962
13962
  const legacyDashboardUrl = legacyPlayName ? _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
13963
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
13964
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
13963
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
13964
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
13965
13965
  {
13966
13966
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
13967
13967
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
@@ -13971,7 +13971,7 @@ async function handleRunGet(args) {
13971
13971
  } else {
13972
13972
  writePlayResult(legacyStatus, false, { fullJson: full });
13973
13973
  if (legacyDashboardUrl)
13974
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
13974
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
13975
13975
  { dashboardUrl: legacyDashboardUrl },
13976
13976
  { json: false, text: `play page: ${legacyDashboardUrl}
13977
13977
  ` }
@@ -14001,10 +14001,10 @@ async function handleRunGet(args) {
14001
14001
  )
14002
14002
  ]);
14003
14003
  const hitLines = formatRunHitsLines(hits);
14004
- const json = _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args);
14004
+ const json = _chunkYD7B53RWjs.argsWantJson.call(void 0, args);
14005
14005
  const playName = resolveRunPlayName(status, runId);
14006
14006
  const dashboardUrl = playName ? _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
14007
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
14007
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
14008
14008
  {
14009
14009
  ...overview,
14010
14010
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -14108,9 +14108,9 @@ async function handleRunLifecycleStatus(args) {
14108
14108
  console.error(error instanceof Error ? error.message : usage2);
14109
14109
  return 1;
14110
14110
  }
14111
- const status = await new (0, _chunkAUMD2VXPjs.DeeplineClient)().runs.status(runId);
14112
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
14113
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, status, { json: true });
14111
+ const status = await new (0, _chunkV76R6HMVjs.DeeplineClient)().runs.status(runId);
14112
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
14113
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0, status, { json: true });
14114
14114
  return 0;
14115
14115
  }
14116
14116
  if (!status.available) {
@@ -14150,7 +14150,7 @@ async function handleRunsRerun(args) {
14150
14150
  console.error(error instanceof Error ? error.message : usage2);
14151
14151
  return 1;
14152
14152
  }
14153
- const options = { json: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args) };
14153
+ const options = { json: _chunkYD7B53RWjs.argsWantJson.call(void 0, args) };
14154
14154
  for (let index = 0; index < args.length; index += 1) {
14155
14155
  if (args[index] === "--idempotency-key") {
14156
14156
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -14216,8 +14216,8 @@ ${usage2}
14216
14216
  Discover Plays: ${next.discover}
14217
14217
  Active runs: ${next.running}`
14218
14218
  );
14219
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
14220
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
14219
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
14220
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
14221
14221
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
14222
14222
  { json: true }
14223
14223
  );
@@ -14232,7 +14232,7 @@ Active runs: ${next.running}`
14232
14232
  console.error("--offset requires --play.");
14233
14233
  return 1;
14234
14234
  }
14235
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
14235
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
14236
14236
  const page = await withRunReadTiming(
14237
14237
  "runs list",
14238
14238
  "run inventory",
@@ -14306,7 +14306,7 @@ Active runs: ${next.running}`
14306
14306
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14307
14307
  );
14308
14308
  }
14309
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
14309
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
14310
14310
  {
14311
14311
  runs,
14312
14312
  count: runs.length,
@@ -14320,7 +14320,7 @@ Active runs: ${next.running}`
14320
14320
  },
14321
14321
  render: { sections: [{ title: "runs", lines }] }
14322
14322
  },
14323
- { json: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args) }
14323
+ { json: _chunkYD7B53RWjs.argsWantJson.call(void 0, args) }
14324
14324
  );
14325
14325
  return 0;
14326
14326
  }
@@ -14350,7 +14350,7 @@ async function handleRunTail(args) {
14350
14350
  console.error("--log-level requires one of: debug, info, warn, error.");
14351
14351
  return 1;
14352
14352
  }
14353
- const parsed = _chunkAUMD2VXPjs.parseLogLevel.call(void 0, value);
14353
+ const parsed = _chunkV76R6HMVjs.parseLogLevel.call(void 0, value);
14354
14354
  if (!parsed) {
14355
14355
  console.error(
14356
14356
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14388,9 +14388,9 @@ async function handleRunTail(args) {
14388
14388
  );
14389
14389
  return 1;
14390
14390
  }
14391
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
14391
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
14392
14392
  const jsonLines = args.includes("--jsonl");
14393
- const jsonOutput = !jsonLines && _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args);
14393
+ const jsonOutput = !jsonLines && _chunkYD7B53RWjs.argsWantJson.call(void 0, args);
14394
14394
  const compact = args.includes("--compact");
14395
14395
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14396
14396
  const compactState = {
@@ -14471,7 +14471,7 @@ async function handleRunLogs(args) {
14471
14471
  ]);
14472
14472
  const cursorIndex = args.indexOf("--cursor");
14473
14473
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14474
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkAUMD2VXPjs.isRunLogsCursor.call(void 0, cursorValue));
14474
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkV76R6HMVjs.isRunLogsCursor.call(void 0, cursorValue));
14475
14475
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14476
14476
  return handleRunEventSearch(args);
14477
14477
  }
@@ -14505,7 +14505,7 @@ async function handleRunLogs(args) {
14505
14505
  console.error("--log-level requires one of: debug, info, warn, error.");
14506
14506
  return 1;
14507
14507
  }
14508
- const parsed = _chunkAUMD2VXPjs.parseLogLevel.call(void 0, value);
14508
+ const parsed = _chunkV76R6HMVjs.parseLogLevel.call(void 0, value);
14509
14509
  if (!parsed) {
14510
14510
  console.error(
14511
14511
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14552,12 +14552,12 @@ async function handleRunLogs(args) {
14552
14552
  );
14553
14553
  return 1;
14554
14554
  }
14555
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
14555
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
14556
14556
  if (outPath) {
14557
14557
  const result2 = await client.runs.logs(runId, { all: true });
14558
- const logs = result2.entries.filter((line) => _chunkAUMD2VXPjs.logLevelReaches.call(void 0, _chunkAUMD2VXPjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkAUMD2VXPjs.classifyLogLine.call(void 0, line).line);
14558
+ const logs = result2.entries.filter((line) => _chunkV76R6HMVjs.logLevelReaches.call(void 0, _chunkV76R6HMVjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkV76R6HMVjs.classifyLogLine.call(void 0, line).line);
14559
14559
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14560
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
14560
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
14561
14561
  {
14562
14562
  runId: result2.runId,
14563
14563
  log_path: outPath,
@@ -14580,7 +14580,7 @@ async function handleRunLogs(args) {
14580
14580
  ]
14581
14581
  }
14582
14582
  },
14583
- { json: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args) }
14583
+ { json: _chunkYD7B53RWjs.argsWantJson.call(void 0, args) }
14584
14584
  );
14585
14585
  return 0;
14586
14586
  }
@@ -14611,7 +14611,7 @@ async function handleRunLogs(args) {
14611
14611
  }
14612
14612
  };
14613
14613
  const text = buildRunLogsText(filteredResult);
14614
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
14614
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
14615
14615
  {
14616
14616
  runId: result.runId,
14617
14617
  totalCount: result.totalCount,
@@ -14635,7 +14635,7 @@ async function handleRunLogs(args) {
14635
14635
  render: { sections: [{ title: "run logs", lines: entries }] }
14636
14636
  },
14637
14637
  {
14638
- json: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args),
14638
+ json: _chunkYD7B53RWjs.argsWantJson.call(void 0, args),
14639
14639
  text
14640
14640
  }
14641
14641
  );
@@ -14659,7 +14659,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14659
14659
  );
14660
14660
  }
14661
14661
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14662
- (entry) => _chunkAUMD2VXPjs.logLevelReaches.call(void 0, _chunkAUMD2VXPjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14662
+ (entry) => _chunkV76R6HMVjs.logLevelReaches.call(void 0, _chunkV76R6HMVjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14663
14663
  );
14664
14664
  const selected = matching.slice(-limit);
14665
14665
  const olderMatchesExist = matching.length > selected.length;
@@ -14669,7 +14669,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14669
14669
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _500 => _500.at, 'call', _501 => _501(-1), 'optionalAccess', _502 => _502.seq]), () => ( null)),
14670
14670
  truncated: result.truncated || olderMatchesExist,
14671
14671
  hasMore: olderMatchesExist,
14672
- nextCursor: olderMatchesExist ? _chunkAUMD2VXPjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14672
+ nextCursor: olderMatchesExist ? _chunkV76R6HMVjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14673
14673
  };
14674
14674
  }
14675
14675
  async function handleRunEventSearch(args) {
@@ -14736,7 +14736,7 @@ ${usage2}`);
14736
14736
  namespace,
14737
14737
  ...backend ? { backend } : {}
14738
14738
  } : void 0;
14739
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
14739
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
14740
14740
  const result = await client.runs.searchEvents({
14741
14741
  ...runId ? { runId } : {},
14742
14742
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14808,7 +14808,7 @@ ${renderedDetails}` : ""}`;
14808
14808
  "--limit",
14809
14809
  String(limit)
14810
14810
  ].join(" ") : null;
14811
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
14811
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
14812
14812
  {
14813
14813
  events,
14814
14814
  nextCursor: result.nextCursor,
@@ -14819,14 +14819,14 @@ ${renderedDetails}` : ""}`;
14819
14819
  render: { sections: [{ title: "runtime events", lines }] }
14820
14820
  },
14821
14821
  {
14822
- json: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args),
14822
+ json: _chunkYD7B53RWjs.argsWantJson.call(void 0, args),
14823
14823
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14824
14824
  }
14825
14825
  );
14826
14826
  return 0;
14827
14827
  }
14828
14828
  function buildRunLogsText(result) {
14829
- const lines = result.entries.map((line) => _chunkAUMD2VXPjs.classifyLogLine.call(void 0, line).line);
14829
+ const lines = result.entries.map((line) => _chunkV76R6HMVjs.classifyLogLine.call(void 0, line).line);
14830
14830
  if (result.warning) {
14831
14831
  if (lines.length > 0) lines.push("");
14832
14832
  lines.push(`warning: ${result.warning}`);
@@ -14860,7 +14860,7 @@ async function handleRunStop(args) {
14860
14860
  reason = args[++index];
14861
14861
  }
14862
14862
  }
14863
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
14863
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
14864
14864
  const result = await client.runs.stop(runId, { reason });
14865
14865
  const state = resolveRunStopState(result);
14866
14866
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14875,7 +14875,7 @@ async function handleRunStop(args) {
14875
14875
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14876
14876
  `inspect: deepline runs get ${runId} --full`
14877
14877
  ];
14878
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
14878
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
14879
14879
  {
14880
14880
  ...cancelling,
14881
14881
  state,
@@ -14890,7 +14890,7 @@ async function handleRunStop(args) {
14890
14890
  ]
14891
14891
  }
14892
14892
  },
14893
- { json: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args) }
14893
+ { json: _chunkYD7B53RWjs.argsWantJson.call(void 0, args) }
14894
14894
  );
14895
14895
  return 0;
14896
14896
  }
@@ -14907,7 +14907,7 @@ async function handleRunStop(args) {
14907
14907
  ];
14908
14908
  process.stderr.write(`${lines2.join("\n")}
14909
14909
  `);
14910
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
14910
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
14911
14911
  {
14912
14912
  ...result,
14913
14913
  render: {
@@ -14922,7 +14922,7 @@ async function handleRunStop(args) {
14922
14922
  ]
14923
14923
  }
14924
14924
  },
14925
- { json: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args) }
14925
+ { json: _chunkYD7B53RWjs.argsWantJson.call(void 0, args) }
14926
14926
  );
14927
14927
  return 1;
14928
14928
  }
@@ -14933,12 +14933,12 @@ async function handleRunStop(args) {
14933
14933
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14934
14934
  ] : []
14935
14935
  ];
14936
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
14936
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
14937
14937
  {
14938
14938
  ...result,
14939
14939
  render: { sections: [{ title: "run stop", lines }] }
14940
14940
  },
14941
- { json: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args) }
14941
+ { json: _chunkYD7B53RWjs.argsWantJson.call(void 0, args) }
14942
14942
  );
14943
14943
  return 0;
14944
14944
  }
@@ -14988,18 +14988,18 @@ async function handleRunStopAll(args) {
14988
14988
  reason = args[++index];
14989
14989
  }
14990
14990
  }
14991
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
14991
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
14992
14992
  if (dryRun) {
14993
14993
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14994
14994
  const lines2 = buildStopAllDryRunTextLines(result2);
14995
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
14995
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
14996
14996
  {
14997
14997
  ...result2,
14998
14998
  render: {
14999
14999
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
15000
15000
  }
15001
15001
  },
15002
- { json: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
15002
+ { json: _chunkYD7B53RWjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
15003
15003
  ` }
15004
15004
  );
15005
15005
  return 0;
@@ -15012,17 +15012,17 @@ async function handleRunStopAll(args) {
15012
15012
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
15013
15013
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
15014
15014
  ];
15015
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
15015
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
15016
15016
  {
15017
15017
  ...result,
15018
15018
  render: { sections: [{ title: "workspace stop-all", lines }] }
15019
15019
  },
15020
- { json: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args) }
15020
+ { json: _chunkYD7B53RWjs.argsWantJson.call(void 0, args) }
15021
15021
  );
15022
15022
  return result.failed > 0 || result.partial ? 1 : 0;
15023
15023
  }
15024
15024
  async function handleRunExport(args) {
15025
- const selection = _chunkQ3PUHXOYjs.parseJsonFields.call(void 0, args, "export");
15025
+ const selection = _chunkYD7B53RWjs.parseJsonFields.call(void 0, args, "export");
15026
15026
  args = selection.args;
15027
15027
  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]";
15028
15028
  let runId;
@@ -15081,16 +15081,16 @@ async function handleRunExport(args) {
15081
15081
  "INVALID_ARGUMENT"
15082
15082
  );
15083
15083
  }
15084
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
15084
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
15085
15085
  let status = await client.getPlayStatus(runId, { full: true });
15086
15086
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
15087
- const progress = _chunkOSFWFV72js.createCliProgress.call(void 0, !_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args));
15087
+ const progress = _chunkALD4COBHjs.createCliProgress.call(void 0, !_chunkYD7B53RWjs.argsWantJson.call(void 0, args));
15088
15088
  try {
15089
15089
  await waitForPlayCompletionByWatch({
15090
15090
  client,
15091
15091
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
15092
15092
  workflowId: runId,
15093
- jsonOutput: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args),
15093
+ jsonOutput: _chunkYD7B53RWjs.argsWantJson.call(void 0, args),
15094
15094
  emitLogs: false,
15095
15095
  waitTimeoutMs,
15096
15096
  startedAt: Date.now(),
@@ -15190,8 +15190,8 @@ async function handleRunExport(args) {
15190
15190
  "utf-8"
15191
15191
  );
15192
15192
  }
15193
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, payload, {
15194
- json: _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args),
15193
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0, payload, {
15194
+ json: _chunkYD7B53RWjs.argsWantJson.call(void 0, args),
15195
15195
  fields: selection.fields,
15196
15196
  text: `${lines.join("\n")}
15197
15197
  `
@@ -15212,10 +15212,10 @@ async function handlePlayGet(args) {
15212
15212
  );
15213
15213
  return 2;
15214
15214
  }
15215
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
15215
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
15216
15216
  const explicitJson = args.includes("--json");
15217
15217
  const sourceOutput = args.includes("--source");
15218
- const jsonOutput = sourceOutput ? explicitJson : _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args);
15218
+ const jsonOutput = sourceOutput ? explicitJson : _chunkYD7B53RWjs.argsWantJson.call(void 0, args);
15219
15219
  const requestedRevisionFlags = [
15220
15220
  args.includes("--working"),
15221
15221
  args.includes("--live"),
@@ -15275,7 +15275,7 @@ async function handlePlayGet(args) {
15275
15275
  }
15276
15276
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15277
15277
  if (jsonOutput) {
15278
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, {
15278
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, {
15279
15279
  ...detail,
15280
15280
  ...materializedFile ? {
15281
15281
  message: loadedMessage,
@@ -15367,8 +15367,8 @@ async function handlePlayVersions(args) {
15367
15367
  console.error("Usage: deepline plays versions --name <name> [--json]");
15368
15368
  return 1;
15369
15369
  }
15370
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
15371
- const jsonOutput = _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args);
15370
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
15371
+ const jsonOutput = _chunkYD7B53RWjs.argsWantJson.call(void 0, args);
15372
15372
  await assertCanonicalNamedPlayReference(client, playName, {
15373
15373
  command: "versions"
15374
15374
  });
@@ -15376,7 +15376,7 @@ async function handlePlayVersions(args) {
15376
15376
  parseReferencedPlayTarget2(playName).playName
15377
15377
  );
15378
15378
  if (jsonOutput) {
15379
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, { versions });
15379
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, { versions });
15380
15380
  return 0;
15381
15381
  }
15382
15382
  if (versions.length === 0) {
@@ -15414,9 +15414,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
15414
15414
  "signals"
15415
15415
  ];
15416
15416
  async function handlePlayList(args) {
15417
- const jsonOutput = _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args);
15417
+ const jsonOutput = _chunkYD7B53RWjs.argsWantJson.call(void 0, args);
15418
15418
  const showCost = args.includes("--show-cost");
15419
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
15419
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
15420
15420
  const categoriesIndex = args.indexOf("--categories");
15421
15421
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _539 => _539[categoriesIndex + 1], 'optionalAccess', _540 => _540.trim, 'call', _541 => _541()]) : void 0;
15422
15422
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15513,7 +15513,7 @@ async function handlePlayList(args) {
15513
15513
  lines.push("List truncated \u2014 more plays are available.");
15514
15514
  lines.push(`Next page: ${nextPage}`);
15515
15515
  }
15516
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
15516
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
15517
15517
  {
15518
15518
  plays,
15519
15519
  count: plays.length,
@@ -15531,7 +15531,7 @@ async function handlePlayList(args) {
15531
15531
  }
15532
15532
  async function handlePlayPin(args, pinned) {
15533
15533
  const target = _optionalChain([args, 'access', _548 => _548.find, 'call', _549 => _549((arg) => !arg.startsWith("-")), 'optionalAccess', _550 => _550.trim, 'call', _551 => _551()]);
15534
- const jsonOutput = _chunkQ3PUHXOYjs.argsWantJson.call(void 0, args);
15534
+ const jsonOutput = _chunkYD7B53RWjs.argsWantJson.call(void 0, args);
15535
15535
  const dryRun = args.includes("--dry-run");
15536
15536
  if (!target) {
15537
15537
  console.error(
@@ -15549,11 +15549,11 @@ async function handlePlayPin(args, pinned) {
15549
15549
  const name = parsedTarget.playName;
15550
15550
  const plan = { name, pinned, dryRun };
15551
15551
  if (dryRun) {
15552
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, plan);
15552
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, plan);
15553
15553
  return 0;
15554
15554
  }
15555
- const result = await new (0, _chunkAUMD2VXPjs.DeeplineClient)().setPlayPinned(name, pinned);
15556
- if (jsonOutput) _chunkQ3PUHXOYjs.printCompactJson.call(void 0, result);
15555
+ const result = await new (0, _chunkV76R6HMVjs.DeeplineClient)().setPlayPinned(name, pinned);
15556
+ if (jsonOutput) _chunkYD7B53RWjs.printCompactJson.call(void 0, result);
15557
15557
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15558
15558
  return 0;
15559
15559
  }
@@ -15679,12 +15679,12 @@ async function handlePlayGrep(args) {
15679
15679
  console.error("Usage: deepline plays grep <query> [--json]");
15680
15680
  return 1;
15681
15681
  }
15682
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
15682
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
15683
15683
  const results = (await client.listPlays({ grep: query })).map(
15684
15684
  summarizePlayGrepResult
15685
15685
  );
15686
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
15687
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, {
15686
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
15687
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, {
15688
15688
  plays: results,
15689
15689
  count: results.length,
15690
15690
  query,
@@ -15707,7 +15707,7 @@ async function handlePlayGrep(args) {
15707
15707
  return 0;
15708
15708
  }
15709
15709
  async function handlePlayDescribe(args) {
15710
- const selection = _chunkQ3PUHXOYjs.parseJsonFields.call(void 0, args, "describe");
15710
+ const selection = _chunkYD7B53RWjs.parseJsonFields.call(void 0, args, "describe");
15711
15711
  args = selection.args;
15712
15712
  const playName = args[0];
15713
15713
  if (!playName) {
@@ -15741,8 +15741,8 @@ async function handlePlayDescribe(args) {
15741
15741
  `deepline plays check ${playName}`,
15742
15742
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15743
15743
  ];
15744
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
15745
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, {
15744
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
15745
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, {
15746
15746
  ok: false,
15747
15747
  error: { message },
15748
15748
  next
@@ -15756,7 +15756,7 @@ async function handlePlayDescribe(args) {
15756
15756
  }
15757
15757
  return 2;
15758
15758
  }
15759
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
15759
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
15760
15760
  await assertCanonicalNamedPlayReference(client, playName, {
15761
15761
  command: "describe"
15762
15762
  });
@@ -15766,9 +15766,9 @@ async function handlePlayDescribe(args) {
15766
15766
  compact: args.includes("--compact")
15767
15767
  }
15768
15768
  );
15769
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
15770
- if (selection.fields) _chunkQ3PUHXOYjs.printJson.call(void 0, play, selection.fields);
15771
- else _chunkQ3PUHXOYjs.printCompactJson.call(void 0, play);
15769
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
15770
+ if (selection.fields) _chunkYD7B53RWjs.printJson.call(void 0, play, selection.fields);
15771
+ else _chunkYD7B53RWjs.printCompactJson.call(void 0, play);
15772
15772
  return 0;
15773
15773
  }
15774
15774
  printPlayDescription(play);
@@ -15790,7 +15790,7 @@ async function handlePlaySave(args) {
15790
15790
  }
15791
15791
  let graph;
15792
15792
  try {
15793
- graph = await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
15793
+ graph = await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
15794
15794
  "cli.play_save_bundle_graph",
15795
15795
  { targetKind: "file" },
15796
15796
  () => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
@@ -15812,7 +15812,7 @@ async function handlePlaySave(args) {
15812
15812
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15813
15813
  };
15814
15814
  if (options.jsonOutput) {
15815
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, result);
15815
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, result);
15816
15816
  } else {
15817
15817
  console.error(result.message);
15818
15818
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15834,7 +15834,7 @@ async function handlePlaySave(args) {
15834
15834
  };
15835
15835
  if (options.dryRun) {
15836
15836
  if (options.jsonOutput) {
15837
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, dryRun);
15837
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, dryRun);
15838
15838
  } else {
15839
15839
  console.log(`Dry run: ${playName}`);
15840
15840
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15843,14 +15843,14 @@ async function handlePlaySave(args) {
15843
15843
  }
15844
15844
  return 0;
15845
15845
  }
15846
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
15846
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
15847
15847
  try {
15848
- await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
15848
+ await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
15849
15849
  "cli.play_save_compile_manifests",
15850
15850
  { targetKind: "file", nodeCount: graph.nodes.size },
15851
15851
  () => compileBundledPlayGraphManifests(client, graph)
15852
15852
  );
15853
- const saved = await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
15853
+ const saved = await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
15854
15854
  "cli.play_save_register_draft",
15855
15855
  { targetKind: "file", playName, artifactHash },
15856
15856
  () => client.registerPlayArtifact({
@@ -15879,7 +15879,7 @@ async function handlePlaySave(args) {
15879
15879
  }
15880
15880
  };
15881
15881
  if (options.jsonOutput) {
15882
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, result);
15882
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, result);
15883
15883
  } else {
15884
15884
  console.log(
15885
15885
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15905,7 +15905,7 @@ async function handlePlayPublish(args) {
15905
15905
  }
15906
15906
  const { target: playName, useLatest } = options;
15907
15907
  let revisionId = options.revisionId;
15908
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
15908
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
15909
15909
  if (isFileTarget2(playName)) {
15910
15910
  if (revisionId || useLatest) {
15911
15911
  console.error(
@@ -15915,7 +15915,7 @@ async function handlePlayPublish(args) {
15915
15915
  }
15916
15916
  let graph;
15917
15917
  try {
15918
- graph = await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
15918
+ graph = await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
15919
15919
  "cli.play_publish_bundle_graph",
15920
15920
  { targetKind: "file" },
15921
15921
  () => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
@@ -15937,7 +15937,7 @@ async function handlePlayPublish(args) {
15937
15937
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15938
15938
  };
15939
15939
  if (options.jsonOutput) {
15940
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, result3);
15940
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, result3);
15941
15941
  } else {
15942
15942
  console.error(result3.message);
15943
15943
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15960,7 +15960,7 @@ async function handlePlayPublish(args) {
15960
15960
  };
15961
15961
  if (options.dryRun) {
15962
15962
  if (options.jsonOutput) {
15963
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, dryRun);
15963
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, dryRun);
15964
15964
  } else {
15965
15965
  console.log(`Dry run: ${rootPlayName}`);
15966
15966
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15979,12 +15979,12 @@ async function handlePlayPublish(args) {
15979
15979
  }
15980
15980
  }
15981
15981
  try {
15982
- await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
15982
+ await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
15983
15983
  "cli.play_publish_compile_manifests",
15984
15984
  { targetKind: "file", nodeCount: graph.nodes.size },
15985
15985
  () => compileBundledPlayGraphManifests(client, graph)
15986
15986
  );
15987
- await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
15987
+ await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
15988
15988
  "cli.play_publish_imports",
15989
15989
  { targetKind: "file", nodeCount: graph.nodes.size },
15990
15990
  () => publishImportedPlayDependencies(client, graph)
@@ -15993,7 +15993,7 @@ async function handlePlayPublish(args) {
15993
15993
  console.error(error instanceof Error ? error.message : String(error));
15994
15994
  return 1;
15995
15995
  }
15996
- const published = await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
15996
+ const published = await _chunkJGHG4NBAjs.traceCliSpan.call(void 0,
15997
15997
  "cli.play_publish_register_root",
15998
15998
  {
15999
15999
  targetKind: "file",
@@ -16028,7 +16028,7 @@ async function handlePlayPublish(args) {
16028
16028
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
16029
16029
  };
16030
16030
  if (options.jsonOutput) {
16031
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, result2);
16031
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, result2);
16032
16032
  } else {
16033
16033
  printPublishReceipt({
16034
16034
  name: rootPlayName,
@@ -16059,7 +16059,7 @@ async function handlePlayPublish(args) {
16059
16059
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
16060
16060
  latest: useLatest
16061
16061
  };
16062
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, result2);
16062
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, result2);
16063
16063
  return 0;
16064
16064
  }
16065
16065
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -16083,7 +16083,7 @@ async function handlePlayPublish(args) {
16083
16083
  revisionId ? { revisionId } : {}
16084
16084
  );
16085
16085
  if (options.jsonOutput) {
16086
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, result);
16086
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, result);
16087
16087
  } else {
16088
16088
  printPublishReceipt({
16089
16089
  name: result.name,
@@ -16123,7 +16123,7 @@ async function handlePlayDelete(args) {
16123
16123
  );
16124
16124
  return 2;
16125
16125
  }
16126
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
16126
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
16127
16127
  let detail;
16128
16128
  try {
16129
16129
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -16147,8 +16147,8 @@ async function handlePlayDelete(args) {
16147
16147
  name: resolvedName,
16148
16148
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
16149
16149
  };
16150
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
16151
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, result2);
16150
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
16151
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, result2);
16152
16152
  } else {
16153
16153
  process.stdout.write(
16154
16154
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -16158,8 +16158,8 @@ async function handlePlayDelete(args) {
16158
16158
  return 0;
16159
16159
  }
16160
16160
  const result = await client.deletePlay(resolvedName);
16161
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
16162
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, result);
16161
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
16162
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, result);
16163
16163
  return result.archived || result.alreadyArchived ? 0 : 4;
16164
16164
  }
16165
16165
  if (result.alreadyArchived) {
@@ -16198,13 +16198,13 @@ async function handlePlayRestore(args) {
16198
16198
  );
16199
16199
  return 2;
16200
16200
  }
16201
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
16201
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
16202
16202
  try {
16203
16203
  const result = await client.restorePlay(
16204
16204
  parseReferencedPlayTarget2(playName).playName
16205
16205
  );
16206
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
16207
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, result);
16206
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
16207
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, result);
16208
16208
  return result.restored || result.alreadyActive ? 0 : 4;
16209
16209
  }
16210
16210
  if (result.alreadyActive) {
@@ -16317,21 +16317,21 @@ Common commands:
16317
16317
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16318
16318
  }
16319
16319
  };
16320
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, result2, {
16320
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0, result2, {
16321
16321
  json: options.json,
16322
16322
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16323
16323
  `
16324
16324
  });
16325
16325
  return;
16326
16326
  }
16327
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
16327
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
16328
16328
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16329
16329
  throw new Error(
16330
16330
  "The submission belongs to a different API origin. Select its original host before recovery."
16331
16331
  );
16332
16332
  }
16333
16333
  const result = await client.startPlayRun(saved.request);
16334
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
16334
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
16335
16335
  { ...result },
16336
16336
  {
16337
16337
  json: options.json,
@@ -16367,7 +16367,7 @@ Examples:
16367
16367
  ).action(async (target, options) => {
16368
16368
  process.exitCode = await handlePlayCheck([
16369
16369
  target,
16370
- ..._chunkQ3PUHXOYjs.jsonFieldArgs.call(void 0, options.json),
16370
+ ..._chunkYD7B53RWjs.jsonFieldArgs.call(void 0, options.json),
16371
16371
  ...options.full ? ["--full"] : []
16372
16372
  ]);
16373
16373
  });
@@ -16558,7 +16558,7 @@ JSON field selection:
16558
16558
  passthroughArgs
16559
16559
  )
16560
16560
  );
16561
- _chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
16561
+ _chunkJGHG4NBAjs.recordCliTrace.call(void 0, {
16562
16562
  phase: "cli.play_command_exit",
16563
16563
  exitCode
16564
16564
  });
@@ -16608,9 +16608,9 @@ Examples:
16608
16608
  const limit = Number(options.historyLimit);
16609
16609
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16610
16610
  throw new Error("--history-limit must be an integer from 1 to 30.");
16611
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
16611
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
16612
16612
  if (options.binding) {
16613
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0,
16613
+ _chunkYD7B53RWjs.printCompactJson.call(void 0,
16614
16614
  await client.getPlayTriggerHistory(options.binding, { limit })
16615
16615
  );
16616
16616
  return;
@@ -16618,7 +16618,7 @@ Examples:
16618
16618
  const result = await client.listPlayTriggerInventory({
16619
16619
  cursor: options.cursor
16620
16620
  });
16621
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, {
16621
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, {
16622
16622
  ...result,
16623
16623
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16624
16624
  });
@@ -16665,7 +16665,7 @@ Examples:
16665
16665
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16666
16666
  throw new Error("--group-by must be kind or trigger_source.");
16667
16667
  }
16668
- const result = await new (0, _chunkAUMD2VXPjs.DeeplineClient)().getPlaysActivity({
16668
+ const result = await new (0, _chunkV76R6HMVjs.DeeplineClient)().getPlaysActivity({
16669
16669
  timeZone: options.timeZone,
16670
16670
  days,
16671
16671
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16679,7 +16679,7 @@ Examples:
16679
16679
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16680
16680
  );
16681
16681
  }
16682
- _chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
16682
+ _chunkYD7B53RWjs.printCommandEnvelope.call(void 0,
16683
16683
  { ...result },
16684
16684
  {
16685
16685
  json: Boolean(options.json),
@@ -16708,7 +16708,7 @@ Examples:
16708
16708
  false
16709
16709
  );
16710
16710
  });
16711
- _chunkQ3LFI3VHjs.registerDeprecatedSearchCommand.call(void 0,
16711
+ _chunk53HN7WZNjs.registerDeprecatedSearchCommand.call(void 0,
16712
16712
  play,
16713
16713
  (options) => options.all ? ["plays"] : ["prebuilts"]
16714
16714
  );
@@ -16751,7 +16751,7 @@ Examples:
16751
16751
  );
16752
16752
  _chunkZAAKSJASjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16753
16753
  async (target, options) => {
16754
- const ownView = () => handlePlayDescribe(_chunkQ3PUHXOYjs.describeArgs.call(void 0, target, options));
16754
+ const ownView = () => handlePlayDescribe(_chunkYD7B53RWjs.describeArgs.call(void 0, target, options));
16755
16755
  const [flagText] = [options.json].filter(
16756
16756
  (value) => typeof value === "string"
16757
16757
  );
@@ -16762,7 +16762,7 @@ Examples:
16762
16762
  process.exitCode = await ownView();
16763
16763
  return;
16764
16764
  }
16765
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-EZS6PQXA.js")));
16765
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-PQTQ5B6F.js")));
16766
16766
  process.exitCode = await describeAnything(
16767
16767
  name,
16768
16768
  {
@@ -16880,7 +16880,7 @@ Examples:
16880
16880
  deepline plays deployments <deployment-id>
16881
16881
  `
16882
16882
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16883
- async (id, options) => id ? _chunk3ZB6IIA7js.handleDeploymentGet.call(void 0, id, options) : _chunk3ZB6IIA7js.handleDeploymentsList.call(void 0, options)
16883
+ async (id, options) => id ? _chunkAU4OFDFXjs.handleDeploymentGet.call(void 0, id, options) : _chunkAU4OFDFXjs.handleDeploymentsList.call(void 0, options)
16884
16884
  );
16885
16885
  addPublishHelp(
16886
16886
  play.command("publish <target>").description(
@@ -17015,14 +17015,14 @@ Examples:
17015
17015
  const limit = Number(options.limit);
17016
17016
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
17017
17017
  throw new Error("--limit must be an integer from 1 to 1000.");
17018
- const result = await new (0, _chunkAUMD2VXPjs.DeeplineClient)().runs.rowHistory({
17018
+ const result = await new (0, _chunkV76R6HMVjs.DeeplineClient)().runs.rowHistory({
17019
17019
  playName: options.play,
17020
17020
  runId,
17021
17021
  tableNamespace: options.dataset,
17022
17022
  limit,
17023
17023
  cursor: options.cursor
17024
17024
  });
17025
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, {
17025
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, {
17026
17026
  ...result,
17027
17027
  ...result.nextCursor ? {
17028
17028
  next: `deepline runs rows-history ${_chunkAID3OYVJjs.shellQuote.call(void 0, runId)} --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, result.nextCursor)} --json`
@@ -17092,7 +17092,7 @@ Examples:
17092
17092
  ).action(async (runId, options) => {
17093
17093
  process.exitCode = await handleRunGet([
17094
17094
  runId,
17095
- ..._chunkQ3PUHXOYjs.jsonFieldArgs.call(void 0, options.json),
17095
+ ..._chunkYD7B53RWjs.jsonFieldArgs.call(void 0, options.json),
17096
17096
  ...options.webUrl ? ["--web-url"] : [],
17097
17097
  ...options.full ? ["--full"] : [],
17098
17098
  ...options.input ? ["--input"] : [],
@@ -17377,7 +17377,7 @@ Examples:
17377
17377
  ...options.allowEmpty ? ["--allow-empty"] : [],
17378
17378
  ...options.wait ? ["--wait"] : [],
17379
17379
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17380
- ..._chunkQ3PUHXOYjs.jsonFieldArgs.call(void 0, options.json)
17380
+ ..._chunkYD7B53RWjs.jsonFieldArgs.call(void 0, options.json)
17381
17381
  ]);
17382
17382
  });
17383
17383
  const share = play.command("share").description(
@@ -17543,10 +17543,10 @@ async function handlePlayShareStatus(args) {
17543
17543
  return 2;
17544
17544
  }
17545
17545
  const name = parseReferencedPlayTarget2(target).playName;
17546
- const status = await new (0, _chunkAUMD2VXPjs.DeeplineClient)().getSharePage(name);
17546
+ const status = await new (0, _chunkV76R6HMVjs.DeeplineClient)().getSharePage(name);
17547
17547
  const outputStatus = shareStatusForOutput(status);
17548
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
17549
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, outputStatus);
17548
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
17549
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, outputStatus);
17550
17550
  return 0;
17551
17551
  }
17552
17552
  if (!outputStatus.share) {
@@ -17585,7 +17585,7 @@ async function handlePlaySharePublish(args) {
17585
17585
  return 2;
17586
17586
  }
17587
17587
  const name = parseReferencedPlayTarget2(target).playName;
17588
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
17588
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
17589
17589
  let revisionId = shareFlagValue(args, "--revision-id");
17590
17590
  let resolvedVersion;
17591
17591
  if (!revisionId) {
@@ -17616,8 +17616,8 @@ async function handlePlaySharePublish(args) {
17616
17616
  );
17617
17617
  if (!hasCompleted) {
17618
17618
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17619
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
17620
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, {
17619
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
17620
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, {
17621
17621
  ok: false,
17622
17622
  code: "NO_SUCCESSFUL_RUN",
17623
17623
  message,
@@ -17641,8 +17641,8 @@ async function handlePlaySharePublish(args) {
17641
17641
  };
17642
17642
  if (args.includes("--dry-run")) {
17643
17643
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17644
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
17645
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, plan);
17644
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
17645
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, plan);
17646
17646
  } else {
17647
17647
  console.log(
17648
17648
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17652,8 +17652,8 @@ async function handlePlaySharePublish(args) {
17652
17652
  }
17653
17653
  const status = await client.publishSharePage(name, request);
17654
17654
  const outputStatus = shareStatusForOutput(status);
17655
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
17656
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, outputStatus);
17655
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
17656
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, outputStatus);
17657
17657
  return 0;
17658
17658
  }
17659
17659
  const urls = shareUrlFields(outputStatus);
@@ -17684,9 +17684,9 @@ async function handlePlayShareUpdate(args) {
17684
17684
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17685
17685
  ...seoIndexing ? { seoIndexing } : {}
17686
17686
  };
17687
- const status = await new (0, _chunkAUMD2VXPjs.DeeplineClient)().updateSharePage(name, request);
17688
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
17689
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, status);
17687
+ const status = await new (0, _chunkV76R6HMVjs.DeeplineClient)().updateSharePage(name, request);
17688
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
17689
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, status);
17690
17690
  return 0;
17691
17691
  }
17692
17692
  console.log(`Updated ${name} share settings.`);
@@ -17701,7 +17701,7 @@ async function handlePlayShareRegenerate(args) {
17701
17701
  return 2;
17702
17702
  }
17703
17703
  const name = parseReferencedPlayTarget2(target).playName;
17704
- const client = new (0, _chunkAUMD2VXPjs.DeeplineClient)();
17704
+ const client = new (0, _chunkV76R6HMVjs.DeeplineClient)();
17705
17705
  let revisionId = shareFlagValue(args, "--revision-id");
17706
17706
  const versionFlag = shareFlagValue(args, "--version");
17707
17707
  if (!revisionId && versionFlag) {
@@ -17718,8 +17718,8 @@ async function handlePlayShareRegenerate(args) {
17718
17718
  revisionId ? { revisionId } : {}
17719
17719
  );
17720
17720
  const outputStatus = shareStatusForOutput(status);
17721
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
17722
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, outputStatus);
17721
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
17722
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, outputStatus);
17723
17723
  return 0;
17724
17724
  }
17725
17725
  const urls = shareUrlFields(outputStatus);
@@ -17744,9 +17744,9 @@ async function handlePlayShareUnpublish(args) {
17744
17744
  return 2;
17745
17745
  }
17746
17746
  const name = parseReferencedPlayTarget2(target).playName;
17747
- const status = await new (0, _chunkAUMD2VXPjs.DeeplineClient)().unpublishSharePage(name);
17748
- if (_chunkQ3PUHXOYjs.argsWantJson.call(void 0, args)) {
17749
- _chunkQ3PUHXOYjs.printCompactJson.call(void 0, status);
17747
+ const status = await new (0, _chunkV76R6HMVjs.DeeplineClient)().unpublishSharePage(name);
17748
+ if (_chunkYD7B53RWjs.argsWantJson.call(void 0, args)) {
17749
+ _chunkYD7B53RWjs.printCompactJson.call(void 0, status);
17750
17750
  return 0;
17751
17751
  }
17752
17752
  console.log(`Unpublished ${name}; the public page has been removed.`);