deepline 0.3.452 → 0.3.454

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