deepline 0.3.439 → 0.3.441

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 (135) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +10 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +8 -4
  4. package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +17 -3
  5. package/dist/bundling-sources/shared_libs/tool-execution-error.ts +17 -3
  6. package/dist/cli/{auth-FE2LP7A5.mjs → auth-D2ZF664Y.mjs} +6 -6
  7. package/dist/cli/auth-XTW4JZT4.js +40 -0
  8. package/dist/cli/{billing-GABU2MTX.mjs → billing-4MIYCPSV.mjs} +7 -7
  9. package/dist/cli/{billing-4QAWLCKH.js → billing-5OLSZRHE.js} +83 -83
  10. package/dist/cli/{chunk-72XLUEP6.js → chunk-27LQEDGO.js} +16 -16
  11. package/dist/cli/{chunk-FDQAOF3L.mjs → chunk-2LVCAPN7.mjs} +3 -3
  12. package/dist/cli/{chunk-TWXPEHTM.js → chunk-2MMUUSBN.js} +57 -57
  13. package/dist/cli/{chunk-XFVHEDRH.js → chunk-2VZKT2PE.js} +35 -35
  14. package/dist/cli/{chunk-D4VWHTDT.js → chunk-3IRJIEIE.js} +12 -12
  15. package/dist/cli/{chunk-FB3B2NKV.js → chunk-3XPO3MWC.js} +8 -8
  16. package/dist/cli/{chunk-F3ORKGAM.mjs → chunk-4N3ZT6OJ.mjs} +2 -2
  17. package/dist/cli/{chunk-MAMVGOSC.mjs → chunk-4QF2K7TM.mjs} +1 -1
  18. package/dist/cli/{chunk-HO2TOFKF.mjs → chunk-55GDG7QJ.mjs} +4 -4
  19. package/dist/cli/{chunk-N5D4EMIY.mjs → chunk-7DH2FD7Y.mjs} +1 -1
  20. package/dist/cli/{chunk-WU4U6VSB.js → chunk-A6QCMBGL.js} +5 -5
  21. package/dist/cli/{chunk-3TYXI7MD.js → chunk-AG5SQSH5.js} +6 -6
  22. package/dist/cli/{chunk-NPBJI7RE.js → chunk-ALJJRZNJ.js} +8 -8
  23. package/dist/cli/{chunk-2ELMQ6LW.mjs → chunk-ARVYJDPQ.mjs} +4 -4
  24. package/dist/cli/{chunk-KGR7SR3C.js → chunk-AVQ4V6Y7.js} +93 -93
  25. package/dist/cli/{chunk-N7T6S5SU.mjs → chunk-AZZCCHOL.mjs} +2 -2
  26. package/dist/cli/{chunk-KAJK6XVI.js → chunk-CFUTOWE4.js} +6 -6
  27. package/dist/cli/{chunk-76DCNYH3.js → chunk-DE354WOP.js} +2 -2
  28. package/dist/cli/{chunk-PPDBRJRW.js → chunk-DIAWYWT5.js} +6 -1
  29. package/dist/cli/{chunk-E6ESUF5C.mjs → chunk-DIDMHGVH.mjs} +1 -1
  30. package/dist/cli/{chunk-IX7ZGPLU.js → chunk-DV4G676C.js} +8 -8
  31. package/dist/cli/{chunk-WJ4PNSX3.js → chunk-F2EMJUDJ.js} +26 -26
  32. package/dist/cli/{chunk-KCC3FKIW.mjs → chunk-FAG4DFUC.mjs} +1 -1
  33. package/dist/cli/{chunk-BQQ4LEQB.mjs → chunk-FOLT3LUQ.mjs} +2 -2
  34. package/dist/cli/{chunk-FCF5BP3Q.js → chunk-GAGGHXYN.js} +2 -2
  35. package/dist/cli/{chunk-RDIN3NKA.js → chunk-GEQOPXOS.js} +2 -2
  36. package/dist/cli/{chunk-E4IXDAZI.mjs → chunk-HBL4PM5Q.mjs} +6 -1
  37. package/dist/cli/{chunk-SWZQBMXR.mjs → chunk-HS6ASYW5.mjs} +2 -2
  38. package/dist/cli/{chunk-EBW6KRTG.js → chunk-HUH6EA5B.js} +33 -33
  39. package/dist/cli/{chunk-2H4EY7KH.js → chunk-JKVRBCZL.js} +26 -26
  40. package/dist/cli/{chunk-XMSVK6O4.mjs → chunk-KSWTIOZT.mjs} +9 -9
  41. package/dist/cli/{chunk-MGBVCVJ7.mjs → chunk-LB5TQPKK.mjs} +1 -1
  42. package/dist/cli/{chunk-IAL3KSJT.mjs → chunk-M65GHY4K.mjs} +1 -1
  43. package/dist/cli/{chunk-HUBVYO52.mjs → chunk-NYLJMRYD.mjs} +2 -2
  44. package/dist/cli/{chunk-R3X55OMZ.js → chunk-OWXLYPMV.js} +20 -20
  45. package/dist/cli/{chunk-NUX2QHNC.mjs → chunk-OZDT2CZW.mjs} +1 -1
  46. package/dist/cli/{chunk-P4ITKGRQ.js → chunk-PNS3K6A2.js} +50 -50
  47. package/dist/cli/{chunk-QFTJ24UV.mjs → chunk-POSRLOHP.mjs} +3 -3
  48. package/dist/cli/{chunk-ZTJUGK5I.mjs → chunk-PPJ4PF6F.mjs} +3 -3
  49. package/dist/cli/{chunk-RIJ4VTYJ.mjs → chunk-PUWMWNBM.mjs} +4 -4
  50. package/dist/cli/{chunk-DS7Y7X26.mjs → chunk-SKXQZUMX.mjs} +1 -1
  51. package/dist/cli/{chunk-2I42ORGH.js → chunk-UJLPE55B.js} +1 -1
  52. package/dist/cli/{chunk-MPY4UD6H.js → chunk-XM5Z53VA.js} +101 -101
  53. package/dist/cli/{chunk-UN3F6ZKR.mjs → chunk-XUART5TY.mjs} +5 -5
  54. package/dist/cli/{csv-TVVXG42B.js → csv-PWSQ7DBG.js} +14 -14
  55. package/dist/cli/{csv-NZOZIEQP.mjs → csv-ZWRKX6NU.mjs} +5 -5
  56. package/dist/cli/{db-PEZHN563.mjs → db-AYIEGUOY.mjs} +7 -7
  57. package/dist/cli/{db-3Q2OPJW6.js → db-M24C22YN.js} +34 -34
  58. package/dist/cli/{describe-M7AP5WVH.js → describe-F34NXGCE.js} +22 -22
  59. package/dist/cli/{describe-GHSBWUUS.mjs → describe-K2CCAFJO.mjs} +16 -16
  60. package/dist/cli/describe-core.d.mts +2 -2
  61. package/dist/cli/describe-core.d.ts +2 -2
  62. package/dist/cli/describe-core.js +4 -4
  63. package/dist/cli/describe-core.mjs +3 -3
  64. package/dist/cli/{executions-7E3GU4QA.mjs → executions-TMH5FSYX.mjs} +7 -7
  65. package/dist/cli/{executions-YKR2SAZF.js → executions-UHHRRBBT.js} +9 -9
  66. package/dist/cli/{feedback-JSPMENHA.mjs → feedback-GCTX3HJS.mjs} +5 -5
  67. package/dist/cli/{feedback-JTRYBUQZ.js → feedback-Z7C47J2X.js} +9 -9
  68. package/dist/cli/git-MCFHPAML.js +24 -0
  69. package/dist/cli/{git-R4PATSRX.mjs → git-RDHXJML2.mjs} +6 -6
  70. package/dist/cli/index.js +136 -136
  71. package/dist/cli/index.mjs +38 -38
  72. package/dist/cli/{legacy-noops-W52GTS36.mjs → legacy-noops-3E75KHWC.mjs} +6 -6
  73. package/dist/cli/{legacy-noops-3OMVEANW.js → legacy-noops-X6QQUMNF.js} +9 -9
  74. package/dist/cli/{monitors-YA6X5BM4.js → monitors-AVTVW5L2.js} +93 -93
  75. package/dist/cli/{monitors-SIXLFZJ3.mjs → monitors-HCNIDGV2.mjs} +7 -7
  76. package/dist/cli/{org-EYFKI2ZI.mjs → org-ILD73S74.mjs} +7 -7
  77. package/dist/cli/{org-73YXPEZ5.js → org-QUJYCJJE.js} +69 -69
  78. package/dist/cli/{play-CSRSSDTC.js → play-7M53PMCN.js} +373 -373
  79. package/dist/cli/{play-7EF6XSS6.mjs → play-DQJ7LGQG.mjs} +15 -15
  80. package/dist/cli/{providers-IHQGSP3E.js → providers-3HC5S52G.js} +10 -10
  81. package/dist/cli/{providers-MKIVZMBG.mjs → providers-WV35XXID.mjs} +7 -7
  82. package/dist/cli/{quickstart-26QTTEHV.js → quickstart-KJZOURAH.js} +7 -7
  83. package/dist/cli/{quickstart-COU7YD7S.mjs → quickstart-UESOANHH.mjs} +5 -5
  84. package/dist/cli/search-255SE477.js +30 -0
  85. package/dist/cli/{search-YKN4OI4P.mjs → search-V3ZQE4UU.mjs} +8 -8
  86. package/dist/cli/{secrets-CQPQQJ76.mjs → secrets-ILDTXJ3L.mjs} +7 -7
  87. package/dist/cli/{secrets-W3DT7F7Q.js → secrets-IU2FWIQI.js} +16 -16
  88. package/dist/cli/{sessions-U5ULT5CF.mjs → sessions-4M6WBATB.mjs} +6 -6
  89. package/dist/cli/sessions-Y25VJZSV.js +16 -0
  90. package/dist/cli/{settings-U6ZOQ3FZ.js → settings-5BMSV6EL.js} +78 -78
  91. package/dist/cli/{settings-6MZCTUWD.mjs → settings-Z4R5U5OZ.mjs} +11 -11
  92. package/dist/cli/{setup-JFG3GZGE.mjs → setup-FWSJMJWR.mjs} +9 -9
  93. package/dist/cli/{setup-HEDWKIGE.js → setup-QZ3ZN4RI.js} +44 -44
  94. package/dist/cli/skills-4JXC4C57.js +29 -0
  95. package/dist/cli/{skills-VIY56KK5.mjs → skills-RA7HJTXG.mjs} +7 -7
  96. package/dist/cli/{tools-Y64ZTYTZ.mjs → tools-5VI3FPWV.mjs} +15 -15
  97. package/dist/cli/tools-BGVCWIZ5.js +44 -0
  98. package/dist/cli/update-GPXJHQXJ.js +31 -0
  99. package/dist/cli/{update-2RL67PK2.mjs → update-O7B44SN5.mjs} +9 -9
  100. package/dist/cli/{workflow-YRI7MT3F.mjs → workflow-3MOKM4IM.mjs} +8 -8
  101. package/dist/cli/{workflow-FHKZGJGS.js → workflow-7W3BTJPH.js} +18 -18
  102. package/dist/{client-Doml68vC.d.mts → client-BCmnJaL9.d.mts} +1 -1
  103. package/dist/{client-9nH8tx4R.d.ts → client-BqQ7Rb11.d.ts} +1 -1
  104. package/dist/{compiler-manifest-CF2qngKr.d.ts → compiler-manifest-CWz_sNOQ.d.mts} +6 -2
  105. package/dist/{compiler-manifest-CF2qngKr.d.mts → compiler-manifest-CWz_sNOQ.d.ts} +6 -2
  106. package/dist/{index-Bq37k0sE.d.ts → index-4NPXDzlD.d.ts} +1 -1
  107. package/dist/{index-DTI-iNw8.d.mts → index-BF2JB_Ug.d.mts} +1 -1
  108. package/dist/index.d.mts +5 -5
  109. package/dist/index.d.ts +5 -5
  110. package/dist/index.js +10 -10
  111. package/dist/index.mjs +6 -6
  112. package/dist/install-integrity.json +96 -96
  113. package/dist/plays/bundle-play-file.d.mts +3 -3
  114. package/dist/plays/bundle-play-file.d.ts +3 -3
  115. package/dist/plays/bundle-play-file.mjs +2 -2
  116. package/dist/plays/csv-data-input.js +3 -3
  117. package/dist/plays/csv-data-input.mjs +2 -2
  118. package/dist/plays/play-description.d.mts +2 -2
  119. package/dist/plays/play-description.d.ts +2 -2
  120. package/dist/plays/run-request.d.mts +2 -2
  121. package/dist/plays/run-request.d.ts +2 -2
  122. package/dist/plays/run-request.js +3 -3
  123. package/dist/plays/run-request.mjs +2 -2
  124. package/dist/release.d.mts +1 -1
  125. package/dist/release.d.ts +1 -1
  126. package/dist/release.js +2 -2
  127. package/dist/release.mjs +1 -1
  128. package/package.json +1 -1
  129. package/dist/cli/auth-5UUDH4A7.js +0 -40
  130. package/dist/cli/git-6QITFAMM.js +0 -24
  131. package/dist/cli/search-DOK42NBV.js +0 -30
  132. package/dist/cli/sessions-GYKUO55E.js +0 -16
  133. package/dist/cli/skills-FOGBZYDP.js +0 -29
  134. package/dist/cli/tools-ZN54N4NT.js +0 -44
  135. package/dist/cli/update-AZCNZXXP.js +0 -31
@@ -4,11 +4,11 @@
4
4
  var _chunkGXOQRZXGjs = require('./chunk-GXOQRZXG.js');
5
5
 
6
6
 
7
- var _chunkIX7ZGPLUjs = require('./chunk-IX7ZGPLU.js');
7
+ var _chunkDV4G676Cjs = require('./chunk-DV4G676C.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkWJ4PNSX3js = require('./chunk-WJ4PNSX3.js');
11
+ var _chunkF2EMJUDJjs = require('./chunk-F2EMJUDJ.js');
12
12
 
13
13
 
14
14
  var _chunkVUYUI35Qjs = require('./chunk-VUYUI35Q.js');
@@ -25,12 +25,12 @@ require('./chunk-ZM2YPJQJ.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkKAJK6XVIjs = require('./chunk-KAJK6XVI.js');
28
+ var _chunkCFUTOWE4js = require('./chunk-CFUTOWE4.js');
29
29
  require('./chunk-3KC45UVF.js');
30
30
  require('./chunk-J33TSWO5.js');
31
31
 
32
32
 
33
- var _chunkWU4U6VSBjs = require('./chunk-WU4U6VSB.js');
33
+ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
34
34
 
35
35
 
36
36
 
@@ -49,7 +49,7 @@ require('./chunk-VKKVSFRD.js');
49
49
 
50
50
 
51
51
 
52
- var _chunkMPY4UD6Hjs = require('./chunk-MPY4UD6H.js');
52
+ var _chunkXM5Z53VAjs = require('./chunk-XM5Z53VA.js');
53
53
  require('./chunk-E4CABWXL.js');
54
54
 
55
55
 
@@ -61,7 +61,7 @@ require('./chunk-E4CABWXL.js');
61
61
 
62
62
 
63
63
 
64
- var _chunk2H4EY7KHjs = require('./chunk-2H4EY7KH.js');
64
+ var _chunkJKVRBCZLjs = require('./chunk-JKVRBCZL.js');
65
65
 
66
66
 
67
67
 
@@ -70,17 +70,17 @@ require('./chunk-XDVT3GOM.js');
70
70
 
71
71
 
72
72
 
73
- var _chunk3TYXI7MDjs = require('./chunk-3TYXI7MD.js');
73
+ var _chunkAG5SQSH5js = require('./chunk-AG5SQSH5.js');
74
74
 
75
75
 
76
76
 
77
77
 
78
78
 
79
- var _chunk76DCNYH3js = require('./chunk-76DCNYH3.js');
79
+ var _chunkDE354WOPjs = require('./chunk-DE354WOP.js');
80
80
 
81
81
 
82
82
 
83
- var _chunkTWXPEHTMjs = require('./chunk-TWXPEHTM.js');
83
+ var _chunk2MMUUSBNjs = require('./chunk-2MMUUSBN.js');
84
84
 
85
85
 
86
86
 
@@ -95,16 +95,16 @@ var _chunkTWXPEHTMjs = require('./chunk-TWXPEHTM.js');
95
95
 
96
96
 
97
97
 
98
- var _chunkD4VWHTDTjs = require('./chunk-D4VWHTDT.js');
98
+ var _chunk3IRJIEIEjs = require('./chunk-3IRJIEIE.js');
99
99
 
100
100
 
101
- var _chunkEBW6KRTGjs = require('./chunk-EBW6KRTG.js');
102
- require('./chunk-NPBJI7RE.js');
101
+ var _chunkHUH6EA5Bjs = require('./chunk-HUH6EA5B.js');
102
+ require('./chunk-ALJJRZNJ.js');
103
103
  require('./chunk-XNYIZMNQ.js');
104
104
 
105
105
 
106
- var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
107
- require('./chunk-2I42ORGH.js');
106
+ var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
107
+ require('./chunk-UJLPE55B.js');
108
108
  require('./chunk-OG64RBAC.js');
109
109
 
110
110
 
@@ -2086,7 +2086,7 @@ function resolveField(key, command) {
2086
2086
  function printSettings(result, json, name) {
2087
2087
  result = { ...result, settings: parsePlaySettings(result.settings) };
2088
2088
  const selected = fields.filter(([key]) => !name || key === name);
2089
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
2089
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
2090
2090
  {
2091
2091
  ...result,
2092
2092
  settings: Object.fromEntries(
@@ -2130,7 +2130,7 @@ function registerPlaySettingsCommands(plays) {
2130
2130
  valueSyntax: field.cli.valueSyntax,
2131
2131
  examples: field.cli.examples
2132
2132
  }));
2133
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
2133
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
2134
2134
  {
2135
2135
  fields: descriptions,
2136
2136
  render: {
@@ -2155,7 +2155,7 @@ function registerPlaySettingsCommands(plays) {
2155
2155
  async (options, command) => {
2156
2156
  if (options.name !== void 0) resolveField(options.name, command);
2157
2157
  printSettings(
2158
- await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().getPlaySettings(options.play),
2158
+ await new (0, _chunkXM5Z53VAjs.DeeplineClient)().getPlaySettings(options.play),
2159
2159
  options.json,
2160
2160
  options.name
2161
2161
  );
@@ -2186,7 +2186,7 @@ function registerPlaySettingsCommands(plays) {
2186
2186
  );
2187
2187
  }
2188
2188
  if (options.dryRun) {
2189
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
2189
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
2190
2190
  {
2191
2191
  dryRun: true,
2192
2192
  play,
@@ -2207,7 +2207,7 @@ function registerPlaySettingsCommands(plays) {
2207
2207
  return;
2208
2208
  }
2209
2209
  printSettings(
2210
- await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().updatePlaySettings(play, patch),
2210
+ await new (0, _chunkXM5Z53VAjs.DeeplineClient)().updatePlaySettings(play, patch),
2211
2211
  options.json
2212
2212
  );
2213
2213
  };
@@ -2233,13 +2233,13 @@ function registerPlaySettingsCommands(plays) {
2233
2233
  "--root must be person or team; --limit must be 1\u2013100.",
2234
2234
  { exitCode: 2 }
2235
2235
  );
2236
- const page = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().listPlaySettingsPaths({
2236
+ const page = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().listPlaySettingsPaths({
2237
2237
  root: options.root,
2238
2238
  limit,
2239
2239
  cursor: options.cursor
2240
2240
  });
2241
2241
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2242
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
2242
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
2243
2243
  {
2244
2244
  ...page,
2245
2245
  nextCommand,
@@ -2290,7 +2290,7 @@ function registerPlaySettingsCommands(plays) {
2290
2290
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
2291
2291
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
2292
2292
  };
2293
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
2293
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
2294
2294
  const paths = [];
2295
2295
  let cursor;
2296
2296
  do {
@@ -2352,7 +2352,7 @@ function registerPlaySettingsCommands(plays) {
2352
2352
  moved.push(move.playName);
2353
2353
  }
2354
2354
  }
2355
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
2355
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
2356
2356
  {
2357
2357
  dryRun: Boolean(options.dryRun),
2358
2358
  from: options.from,
@@ -2480,7 +2480,7 @@ function triggerLines(view) {
2480
2480
  return lines;
2481
2481
  }
2482
2482
  function printView(view, json) {
2483
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
2483
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
2484
2484
  {
2485
2485
  ...view,
2486
2486
  render: {
@@ -2493,7 +2493,7 @@ function printView(view, json) {
2493
2493
  );
2494
2494
  }
2495
2495
  function printResult(result, json) {
2496
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
2496
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
2497
2497
  {
2498
2498
  ...result,
2499
2499
  render: {
@@ -2523,7 +2523,7 @@ async function mutate(command, options, build) {
2523
2523
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2524
2524
  }
2525
2525
  if (options.dryRun) {
2526
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
2526
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
2527
2527
  {
2528
2528
  dryRun: true,
2529
2529
  play: options.play,
@@ -2542,7 +2542,7 @@ async function mutate(command, options, build) {
2542
2542
  return;
2543
2543
  }
2544
2544
  printResult(
2545
- await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2545
+ await new (0, _chunkXM5Z53VAjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2546
2546
  options.json
2547
2547
  );
2548
2548
  }
@@ -2575,7 +2575,7 @@ function registerPlayTriggerConfigCommands(plays) {
2575
2575
  }).addHelpText("after", help2);
2576
2576
  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
2577
  printView(
2578
- await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2578
+ await new (0, _chunkXM5Z53VAjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2579
2579
  options.json
2580
2580
  );
2581
2581
  });
@@ -2619,7 +2619,7 @@ function registerPlayTriggerConfigCommands(plays) {
2619
2619
  if (options.auth === void 0) {
2620
2620
  if (secrets.length || options.header || options.signaturePrefix)
2621
2621
  usage(setWebhook, "--secret/--header need --auth.");
2622
- const current = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().getPlayTriggerConfig(
2622
+ const current = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().getPlayTriggerConfig(
2623
2623
  options.play
2624
2624
  );
2625
2625
  return {
@@ -2696,7 +2696,7 @@ var KIND_DESCRIPTIONS = {
2696
2696
  "receipt.skipped": "Saved work result: skipped.",
2697
2697
  "runtime.event": "Other event."
2698
2698
  };
2699
- var RUN_LOGS_KIND_HELP = _chunkMPY4UD6Hjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2699
+ var RUN_LOGS_KIND_HELP = _chunkXM5Z53VAjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2700
2700
  kind,
2701
2701
  description: KIND_DESCRIPTIONS[kind]
2702
2702
  }));
@@ -2833,9 +2833,9 @@ function configureRunQueryCommandErrors(command, resource) {
2833
2833
  const args = program.args;
2834
2834
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2835
2835
  error.exitCode = 2;
2836
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2837
- _chunkD4VWHTDTjs.printJsonError.call(void 0,
2838
- Object.assign(new (0, _chunkMPY4UD6Hjs.RunEventQueryInputError)(error.message), {
2836
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2837
+ _chunk3IRJIEIEjs.printJsonError.call(void 0,
2838
+ Object.assign(new (0, _chunkXM5Z53VAjs.RunEventQueryInputError)(error.message), {
2839
2839
  exitCode: 2,
2840
2840
  retryable: false
2841
2841
  })
@@ -2879,14 +2879,14 @@ function parseQuery(args, resource) {
2879
2879
  if (VALUE_FLAGS.has(flag)) {
2880
2880
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2881
2881
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2882
- throw new (0, _chunkMPY4UD6Hjs.RunEventQueryInputError)(
2882
+ throw new (0, _chunkXM5Z53VAjs.RunEventQueryInputError)(
2883
2883
  `${flag} requires a value. Use ${flag} <value>.`
2884
2884
  );
2885
2885
  }
2886
2886
  if (flag === "--sum") sums.push(value);
2887
2887
  else {
2888
2888
  if (values[flag] !== void 0) {
2889
- throw new (0, _chunkMPY4UD6Hjs.RunEventQueryInputError)(
2889
+ throw new (0, _chunkXM5Z53VAjs.RunEventQueryInputError)(
2890
2890
  `${flag} may only be supplied once.`
2891
2891
  );
2892
2892
  }
@@ -2900,12 +2900,12 @@ function parseQuery(args, resource) {
2900
2900
  }
2901
2901
  if (arg.startsWith("-")) {
2902
2902
  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, _chunkMPY4UD6Hjs.RunEventQueryInputError)(
2903
+ throw new (0, _chunkXM5Z53VAjs.RunEventQueryInputError)(
2904
2904
  `Unsupported query flag ${flag}. ${correction}`
2905
2905
  );
2906
2906
  }
2907
2907
  if (runId !== void 0) {
2908
- throw new (0, _chunkMPY4UD6Hjs.RunEventQueryInputError)(
2908
+ throw new (0, _chunkXM5Z53VAjs.RunEventQueryInputError)(
2909
2909
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2910
2910
  );
2911
2911
  }
@@ -2913,7 +2913,7 @@ function parseQuery(args, resource) {
2913
2913
  }
2914
2914
  if (switches.has("--fields")) {
2915
2915
  if (runId !== void 0) {
2916
- throw new (0, _chunkMPY4UD6Hjs.RunEventQueryInputError)(
2916
+ throw new (0, _chunkXM5Z53VAjs.RunEventQueryInputError)(
2917
2917
  "--fields does not use a run ID. Omit the positional run ID."
2918
2918
  );
2919
2919
  }
@@ -2926,18 +2926,18 @@ function parseQuery(args, resource) {
2926
2926
  )
2927
2927
  ];
2928
2928
  if (incompatible.length) {
2929
- throw new (0, _chunkMPY4UD6Hjs.RunEventQueryInputError)(
2929
+ throw new (0, _chunkXM5Z53VAjs.RunEventQueryInputError)(
2930
2930
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2931
2931
  );
2932
2932
  }
2933
2933
  }
2934
2934
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2935
- throw new (0, _chunkMPY4UD6Hjs.RunEventQueryInputError)(
2935
+ throw new (0, _chunkXM5Z53VAjs.RunEventQueryInputError)(
2936
2936
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2937
2937
  );
2938
2938
  }
2939
2939
  if (sums.length && switches.has("--count")) {
2940
- throw new (0, _chunkMPY4UD6Hjs.RunEventQueryInputError)(
2940
+ throw new (0, _chunkXM5Z53VAjs.RunEventQueryInputError)(
2941
2941
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2942
2942
  );
2943
2943
  }
@@ -2945,7 +2945,7 @@ function parseQuery(args, resource) {
2945
2945
  if (operation === "count") {
2946
2946
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2947
2947
  if (values[flag] !== void 0 || switches.has(flag)) {
2948
- throw new (0, _chunkMPY4UD6Hjs.RunEventQueryInputError)(
2948
+ throw new (0, _chunkXM5Z53VAjs.RunEventQueryInputError)(
2949
2949
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2950
2950
  );
2951
2951
  }
@@ -2980,16 +2980,16 @@ function parseQuery(args, resource) {
2980
2980
  ];
2981
2981
  }
2982
2982
  }
2983
- const request = _chunkMPY4UD6Hjs.normalizeRunEventOperationRequest.call(void 0, body);
2983
+ const request = _chunkXM5Z53VAjs.normalizeRunEventOperationRequest.call(void 0, body);
2984
2984
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
2985
2985
  const backend = values["--runtime-backend"];
2986
2986
  if (backend && backend !== "daytona" && backend !== "modal") {
2987
- throw new (0, _chunkMPY4UD6Hjs.RunEventQueryInputError)(
2987
+ throw new (0, _chunkXM5Z53VAjs.RunEventQueryInputError)(
2988
2988
  "--runtime-backend must be daytona or modal."
2989
2989
  );
2990
2990
  }
2991
2991
  if (backend && !namespace) {
2992
- throw new (0, _chunkMPY4UD6Hjs.RunEventQueryInputError)(
2992
+ throw new (0, _chunkXM5Z53VAjs.RunEventQueryInputError)(
2993
2993
  "--runtime-backend requires --runtime-namespace."
2994
2994
  );
2995
2995
  }
@@ -3036,12 +3036,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3036
3036
  const failure = error instanceof Error ? error : new Error(String(error));
3037
3037
  const record3 = failure;
3038
3038
  const status = record3.statusCode;
3039
- const exitCode = error instanceof _chunkMPY4UD6Hjs.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;
3039
+ const exitCode = error instanceof _chunkXM5Z53VAjs.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
3040
  const diagnostic = Object.assign(failure, {
3041
3041
  exitCode,
3042
3042
  retryable: exitCode === 5
3043
3043
  });
3044
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) _chunkD4VWHTDTjs.printJsonError.call(void 0, diagnostic);
3044
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) _chunk3IRJIEIEjs.printJsonError.call(void 0, diagnostic);
3045
3045
  else console.error(`Error: ${diagnostic.message}`);
3046
3046
  return exitCode;
3047
3047
  }
@@ -3056,7 +3056,7 @@ async function executeRunEventQuery(args, resource) {
3056
3056
  ...criteria
3057
3057
  } = request;
3058
3058
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3059
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
3059
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
3060
3060
  let result;
3061
3061
  if (request.operation === "fields") {
3062
3062
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3122,13 +3122,13 @@ async function executeRunEventQuery(args, resource) {
3122
3122
  lines.push(`Next page: ${nextPage}`);
3123
3123
  }
3124
3124
  }
3125
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
3125
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
3126
3126
  {
3127
3127
  ...result,
3128
3128
  ...nextPage ? { next: { page: nextPage } } : {},
3129
3129
  render: { sections: [{ title: `run ${resource}`, lines }] }
3130
3130
  },
3131
- { json: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3131
+ { json: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3132
3132
  ` }
3133
3133
  );
3134
3134
  return 0;
@@ -3199,7 +3199,7 @@ function rowCountsFrom(input) {
3199
3199
  return { completed: c, failed: f, total: known };
3200
3200
  }
3201
3201
  function decodeRunStatus(status) {
3202
- return _chunk2H4EY7KHjs.decodePlayRunPublicStatus.call(void 0, status);
3202
+ return _chunkJKVRBCZLjs.decodePlayRunPublicStatus.call(void 0, status);
3203
3203
  }
3204
3204
  function deriveRunExecutionState(input) {
3205
3205
  const status = decodeRunStatus(input.status);
@@ -4047,7 +4047,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4047
4047
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4048
4048
  );
4049
4049
  }
4050
- const response = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().runs.getReceipts(runId, {
4050
+ const response = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().runs.getReceipts(runId, {
4051
4051
  keys
4052
4052
  });
4053
4053
  const failed = response.receipts.filter(
@@ -4059,7 +4059,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4059
4059
  JSON.stringify(response, null, 2) + "\n",
4060
4060
  { flag: "wx", mode: 384 }
4061
4061
  );
4062
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
4062
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
4063
4063
  {
4064
4064
  runId,
4065
4065
  out: options.out,
@@ -4069,7 +4069,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4069
4069
  { json: true }
4070
4070
  );
4071
4071
  } else {
4072
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4072
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4073
4073
  }
4074
4074
  if (failed)
4075
4075
  process.exitCode = response.receipts.some(
@@ -4108,7 +4108,7 @@ includes nextCommand when another page is available.
4108
4108
  { exitCode: 2 }
4109
4109
  );
4110
4110
  }
4111
- const page = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().runs.children(parentRunId, {
4111
+ const page = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().runs.children(parentRunId, {
4112
4112
  launchKey: options.launchKey,
4113
4113
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4114
4114
  limit
@@ -4123,7 +4123,7 @@ includes nextCommand when another page is available.
4123
4123
  "--limit",
4124
4124
  String(limit)
4125
4125
  ].join(" ") : null;
4126
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
4126
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
4127
4127
  {
4128
4128
  parentRunId,
4129
4129
  launchKey: options.launchKey,
@@ -4159,7 +4159,7 @@ async function handleRunsHistory(options) {
4159
4159
  throw new Error("--limit must be a positive integer.");
4160
4160
  }
4161
4161
  }
4162
- const page = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().runs.history({
4162
+ const page = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().runs.history({
4163
4163
  cursor: options.cursor,
4164
4164
  orgId: options.org,
4165
4165
  search: options.search,
@@ -4175,7 +4175,7 @@ async function handleRunsHistory(options) {
4175
4175
  );
4176
4176
  }
4177
4177
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4178
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
4178
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
4179
4179
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4180
4180
  options.json ? { json: true } : {}
4181
4181
  );
@@ -4227,12 +4227,12 @@ async function runRunsRerunCommand(runId, options) {
4227
4227
  return 1;
4228
4228
  }
4229
4229
  }
4230
- const result = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().runs.rerun(runId, {
4230
+ const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().runs.rerun(runId, {
4231
4231
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4232
4232
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4233
4233
  });
4234
- if (_chunkD4VWHTDTjs.shouldEmitJson.call(void 0, options.json)) {
4235
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, result, { json: true });
4234
+ if (_chunk3IRJIEIEjs.shouldEmitJson.call(void 0, options.json)) {
4235
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, result, { json: true });
4236
4236
  } else {
4237
4237
  console.log(
4238
4238
  result.deduplicated === true ? `
@@ -4500,7 +4500,7 @@ function projectRunDatasetCell(value) {
4500
4500
  const logicalValue = parseSerializedDatasetValue(value);
4501
4501
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
4502
4502
  if (typeof logicalValue === "object") {
4503
- return _chunkD4VWHTDTjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4503
+ return _chunk3IRJIEIEjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
4504
4504
  }
4505
4505
  return logicalValue;
4506
4506
  }
@@ -5266,7 +5266,7 @@ function resolveDatasetByName(available, datasetPath) {
5266
5266
  function uniqueDatasetMatch(infos, selector) {
5267
5267
  const matches = distinctCanonicalRowsInfos(infos);
5268
5268
  if (matches.length > 1) {
5269
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
5269
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
5270
5270
  `Dataset selector '${selector}' is ambiguous; it matches multiple identities. Choose a unique Dataset ID or path.`,
5271
5271
  void 0,
5272
5272
  "RUN_EXPORT_DATASET_AMBIGUOUS",
@@ -5359,7 +5359,7 @@ function resolveReturnedDataset(output, available) {
5359
5359
  if (legacy && (!datasetId || !legacy.datasetId)) {
5360
5360
  return datasetId ? { ...legacy, datasetId } : legacy;
5361
5361
  }
5362
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
5362
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
5363
5363
  `Returned Dataset '${_nullishCoalesce(_nullishCoalesce(datasetId, () => ( path)), () => ( "unknown"))}' is missing from the run catalog; cannot choose another dataset in its place.`,
5364
5364
  void 0,
5365
5365
  "RUN_EXPORT_DATASET_NOT_FOUND",
@@ -6078,10 +6078,10 @@ function resolveOwnedPlayReferenceName(reference, ownerSlug) {
6078
6078
  // ../plays/deploy/run-deployment.ts
6079
6079
  var RUN_PLAY_METHOD_NAMES = /* @__PURE__ */ new Set(["runPlay", "runPlayAsync"]);
6080
6080
  function isRunPlayReceiver(node) {
6081
- return _chunkKAJK6XVIjs.isAstNode.call(void 0, node) && node.type === "Identifier" && typeof node.name === "string" && (node.name === "ctx" || node.name.endsWith("Ctx"));
6081
+ return _chunkCFUTOWE4js.isAstNode.call(void 0, node) && node.type === "Identifier" && typeof node.name === "string" && (node.name === "ctx" || node.name.endsWith("Ctx"));
6082
6082
  }
6083
6083
  function stringLiteralValue(node) {
6084
- if (!_chunkKAJK6XVIjs.isAstNode.call(void 0, node)) return null;
6084
+ if (!_chunkCFUTOWE4js.isAstNode.call(void 0, node)) return null;
6085
6085
  if (node.type === "Literal" && typeof node.value === "string") {
6086
6086
  return node.value;
6087
6087
  }
@@ -6092,12 +6092,12 @@ function stringLiteralValue(node) {
6092
6092
  return null;
6093
6093
  }
6094
6094
  async function extractRunPlayStringTargets(sourceCode) {
6095
- const program = _chunkKAJK6XVIjs.parsePlaySourceForAnalysis.call(void 0, sourceCode);
6095
+ const program = _chunkCFUTOWE4js.parsePlaySourceForAnalysis.call(void 0, sourceCode);
6096
6096
  if (!program) return await _asyncNullishCoalesce(await extractWithCompiler(sourceCode), async () => ( []));
6097
6097
  const targets = /* @__PURE__ */ new Set();
6098
6098
  const visit = (node) => {
6099
6099
  const callee = node.callee;
6100
- if (node.type === "CallExpression" && _chunkKAJK6XVIjs.isAstNode.call(void 0, callee) && callee.type === "MemberExpression" && callee.computed !== true && _chunkKAJK6XVIjs.isAstNode.call(void 0, callee.property) && RUN_PLAY_METHOD_NAMES.has(String(callee.property.name)) && isRunPlayReceiver(callee.object) && Array.isArray(node.arguments)) {
6100
+ if (node.type === "CallExpression" && _chunkCFUTOWE4js.isAstNode.call(void 0, callee) && callee.type === "MemberExpression" && callee.computed !== true && _chunkCFUTOWE4js.isAstNode.call(void 0, callee.property) && RUN_PLAY_METHOD_NAMES.has(String(callee.property.name)) && isRunPlayReceiver(callee.object) && Array.isArray(node.arguments)) {
6101
6101
  const playRef = stringLiteralValue(node.arguments[1]);
6102
6102
  const ownedName = playRef === null ? null : resolveOwnedPlayReferenceName(playRef);
6103
6103
  if (ownedName) targets.add(ownedName);
@@ -6105,7 +6105,7 @@ async function extractRunPlayStringTargets(sourceCode) {
6105
6105
  for (const [key, value] of Object.entries(node)) {
6106
6106
  if (key === "loc") continue;
6107
6107
  for (const child of Array.isArray(value) ? value : [value]) {
6108
- if (_chunkKAJK6XVIjs.isAstNode.call(void 0, child)) visit(child);
6108
+ if (_chunkCFUTOWE4js.isAstNode.call(void 0, child)) visit(child);
6109
6109
  }
6110
6110
  }
6111
6111
  };
@@ -6971,7 +6971,7 @@ function renderOutcome(outcome) {
6971
6971
  function printResult2(input) {
6972
6972
  const failed = input.status === "failed" || input.status === "cancelled";
6973
6973
  if (failed) process.exitCode = 1;
6974
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
6974
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
6975
6975
  {
6976
6976
  deployment: { ...input.deployment, status: input.status },
6977
6977
  plays: input.outcomes,
@@ -6996,7 +6996,7 @@ async function handlePlaysDeploy(directory, options) {
6996
6996
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6997
6997
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6998
6998
  });
6999
- const { http, config } = _chunkD4VWHTDTjs.getAuthedHttpClient.call(void 0, );
6999
+ const { http, config } = _chunk3IRJIEIEjs.getAuthedHttpClient.call(void 0, );
7000
7000
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
7001
7001
  const startDeployment = () => http.post("/api/v2/deployments", {
7002
7002
  deliveryId,
@@ -7023,7 +7023,7 @@ async function handlePlaysDeploy(directory, options) {
7023
7023
  },
7024
7024
  {
7025
7025
  bundle: bundleDeployPlayFile,
7026
- fetchImpl: _chunkEBW6KRTGjs.fetchWithDeploymentProtection,
7026
+ fetchImpl: _chunkHUH6EA5Bjs.fetchWithDeploymentProtection,
7027
7027
  // The plays are already here: "opening" the source is naming it.
7028
7028
  openSource: async () => ({
7029
7029
  open: async () => ({ repoRoot: root })
@@ -7547,14 +7547,14 @@ function parseJsonInput(raw, flag = "--input") {
7547
7547
  try {
7548
7548
  parsed = JSON.parse(source);
7549
7549
  } catch (e9) {
7550
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
7550
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
7551
7551
  `${flag} expects a valid JSON object or @input.json. A bare file path is not JSON.${flag === "--input" ? " Use the field names and run example from plays check <file> or deepline describe <play>. --csv contacts.csv supplies input.csv only when the Play declares that field." : ""}`,
7552
7552
  void 0,
7553
7553
  "INVALID_JSON"
7554
7554
  );
7555
7555
  }
7556
7556
  if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
7557
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
7557
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
7558
7558
  `${flag} must be a JSON object.`,
7559
7559
  void 0,
7560
7560
  "INVALID_JSON"
@@ -7591,7 +7591,7 @@ function parseInputFlagValue(raw) {
7591
7591
  return raw;
7592
7592
  }
7593
7593
  function parsePlayRunOptions(args, initialInput = null) {
7594
- const selection = _chunkD4VWHTDTjs.parseJsonFields.call(void 0, args, "run");
7594
+ const selection = _chunk3IRJIEIEjs.parseJsonFields.call(void 0, args, "run");
7595
7595
  args = selection.args;
7596
7596
  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
7597
  let filePath = null;
@@ -7603,7 +7603,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7603
7603
  let revisionSelector = null;
7604
7604
  const watch = !args.includes("--no-wait");
7605
7605
  const dryRun = args.includes("--dry-run");
7606
- let jsonOutput = dryRun ? _chunkD4VWHTDTjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkD4VWHTDTjs.argsWantJson.call(void 0, args);
7606
+ let jsonOutput = dryRun ? _chunk3IRJIEIEjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk3IRJIEIEjs.argsWantJson.call(void 0, args);
7607
7607
  const fullJson = args.includes("--full");
7608
7608
  const force = args.includes("--force");
7609
7609
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -7666,7 +7666,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7666
7666
  "--log-level requires one of: debug, info, warn, error."
7667
7667
  );
7668
7668
  }
7669
- const parsed = _chunkMPY4UD6Hjs.parseLogLevel.call(void 0, value);
7669
+ const parsed = _chunkXM5Z53VAjs.parseLogLevel.call(void 0, value);
7670
7670
  if (!parsed) {
7671
7671
  throw new Error(
7672
7672
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -7703,7 +7703,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7703
7703
  throw new Error("--profile requires an execution profile id.");
7704
7704
  }
7705
7705
  profile = value.trim();
7706
- _chunkKAJK6XVIjs.resolveEnabledExecutionProfile.call(void 0, profile);
7706
+ _chunkCFUTOWE4js.resolveEnabledExecutionProfile.call(void 0, profile);
7707
7707
  index += 1;
7708
7708
  continue;
7709
7709
  }
@@ -7790,12 +7790,12 @@ function parsePlayRunOptions(args, initialInput = null) {
7790
7790
  }
7791
7791
  if (arg === "--debug" && args[index + 1] && !args[index + 1].startsWith("--")) {
7792
7792
  input ??= {};
7793
- _chunk2H4EY7KHjs.setDottedInputValue.call(void 0, input, "debug", parseInputFlagValue(args[++index]));
7793
+ _chunkJKVRBCZLjs.setDottedInputValue.call(void 0, input, "debug", parseInputFlagValue(args[++index]));
7794
7794
  continue;
7795
7795
  }
7796
7796
  if (arg.startsWith("--debug=")) {
7797
7797
  input ??= {};
7798
- _chunk2H4EY7KHjs.setDottedInputValue.call(void 0,
7798
+ _chunkJKVRBCZLjs.setDottedInputValue.call(void 0,
7799
7799
  input,
7800
7800
  "debug",
7801
7801
  parseInputFlagValue(arg.slice("--debug=".length))
@@ -7823,7 +7823,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7823
7823
  if (arg.startsWith("--")) {
7824
7824
  const { path, value } = parseInputFieldFlag(arg, args[index + 1]);
7825
7825
  input ??= {};
7826
- _chunk2H4EY7KHjs.setDottedInputValue.call(void 0, input, path, parseInputFlagValue(value));
7826
+ _chunkJKVRBCZLjs.setDottedInputValue.call(void 0, input, path, parseInputFlagValue(value));
7827
7827
  if (!arg.includes("=")) {
7828
7828
  index += 1;
7829
7829
  }
@@ -7912,7 +7912,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
7912
7912
  let initialInput = options.input === void 0 ? null : parseJsonInput(options.input);
7913
7913
  if (typeof options.debug === "string") {
7914
7914
  initialInput ??= {};
7915
- _chunk2H4EY7KHjs.setDottedInputValue.call(void 0,
7915
+ _chunkJKVRBCZLjs.setDottedInputValue.call(void 0,
7916
7916
  initialInput,
7917
7917
  "debug",
7918
7918
  parseInputFlagValue(options.debug)
@@ -7949,7 +7949,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
7949
7949
  if (dryRun && resolvedTarget.kind !== "file")
7950
7950
  throw new Error("--dry-run currently requires a local Play file.");
7951
7951
  const profile = _nullishCoalesce(_optionalChain([stringOption, 'call', _237 => _237(options.profile, "--profile"), 'optionalAccess', _238 => _238.trim, 'call', _239 => _239()]), () => ( base.profile));
7952
- if (profile !== null) _chunkKAJK6XVIjs.resolveEnabledExecutionProfile.call(void 0, profile);
7952
+ if (profile !== null) _chunkCFUTOWE4js.resolveEnabledExecutionProfile.call(void 0, profile);
7953
7953
  const countOption = (value, flag) => {
7954
7954
  if (value === void 0) return void 0;
7955
7955
  if (!/^[1-9]\d*$/.test(value))
@@ -7984,7 +7984,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
7984
7984
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
7985
7985
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
7986
7986
  );
7987
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkMPY4UD6Hjs.parseLogLevel.call(void 0, options.logLevel);
7987
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkXM5Z53VAjs.parseLogLevel.call(void 0, options.logLevel);
7988
7988
  if (!logLevel)
7989
7989
  throw new Error("--log-level requires one of: debug, info, warn, error.");
7990
7990
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -7998,13 +7998,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
7998
7998
  if (debugAlias || debugMapLatency && logLevel === "info")
7999
7999
  logLevel = "debug";
8000
8000
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
8001
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkD4VWHTDTjs.parseJsonFields.call(void 0,
8002
- [...fullJson ? ["--full"] : [], ..._chunkD4VWHTDTjs.jsonFieldArgs.call(void 0, options.json)],
8001
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunk3IRJIEIEjs.parseJsonFields.call(void 0,
8002
+ [...fullJson ? ["--full"] : [], ..._chunk3IRJIEIEjs.jsonFieldArgs.call(void 0, options.json)],
8003
8003
  "run"
8004
8004
  ).fields;
8005
8005
  const watch = options.wait === false ? false : base.watch;
8006
8006
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
8007
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkD4VWHTDTjs.argsWantJson.call(void 0, []) : explicitJson;
8007
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunk3IRJIEIEjs.argsWantJson.call(void 0, []) : explicitJson;
8008
8008
  const verboseLogs = Boolean(
8009
8009
  debugAlias || logLevel === "debug" || debugMapLatency
8010
8010
  );
@@ -8125,7 +8125,7 @@ async function checkLocalPlayGraph(input) {
8125
8125
  // src/cli/renderers/local-play-execution.ts
8126
8126
  function renderLocalPlayExecutionPlan(plan, options = {}) {
8127
8127
  if (options.dryRun) {
8128
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
8128
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
8129
8129
  return;
8130
8130
  }
8131
8131
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -8297,7 +8297,7 @@ function traceCliSync(phase, fields2, run) {
8297
8297
  const startedAt = Date.now();
8298
8298
  try {
8299
8299
  const result = run();
8300
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
8300
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
8301
8301
  phase,
8302
8302
  ms: Date.now() - startedAt,
8303
8303
  ok: true,
@@ -8305,7 +8305,7 @@ function traceCliSync(phase, fields2, run) {
8305
8305
  });
8306
8306
  return result;
8307
8307
  } catch (error) {
8308
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
8308
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
8309
8309
  phase,
8310
8310
  ms: Date.now() - startedAt,
8311
8311
  ok: false,
@@ -8340,10 +8340,10 @@ function buildBarePrebuiltReferenceError(input) {
8340
8340
  return new Error(buildBarePrebuiltReferenceMessage(input));
8341
8341
  }
8342
8342
  function isPlayNotFoundError(error) {
8343
- return error instanceof _chunkPPDBRJRWjs.DeeplineError && (error.statusCode === 404 || error.code === "PLAY_NOT_FOUND" || error.code === "NOT_FOUND");
8343
+ return error instanceof _chunkDIAWYWT5js.DeeplineError && (error.statusCode === 404 || error.code === "PLAY_NOT_FOUND" || error.code === "NOT_FOUND");
8344
8344
  }
8345
8345
  function isExplicitMissingPlayReferenceError(error) {
8346
- if (!(error instanceof _chunkPPDBRJRWjs.DeeplineError)) {
8346
+ if (!(error instanceof _chunkDIAWYWT5js.DeeplineError)) {
8347
8347
  return false;
8348
8348
  }
8349
8349
  if (error.statusCode !== 404 && error.code !== "PLAY_NOT_FOUND") {
@@ -8496,9 +8496,9 @@ async function buildPlayReferenceNotFoundError(input) {
8496
8496
  } catch (e11) {
8497
8497
  suggestions = [];
8498
8498
  }
8499
- const sourceError = input.sourceError instanceof _chunkPPDBRJRWjs.DeeplineError ? input.sourceError : null;
8499
+ const sourceError = input.sourceError instanceof _chunkDIAWYWT5js.DeeplineError ? input.sourceError : null;
8500
8500
  const code = _optionalChain([sourceError, 'optionalAccess', _262 => _262.code]) && sourceError.code !== "API_ERROR" ? sourceError.code : "PLAY_NOT_FOUND";
8501
- return new (0, _chunkPPDBRJRWjs.DeeplineError)(
8501
+ return new (0, _chunkDIAWYWT5js.DeeplineError)(
8502
8502
  buildPlayReferenceNotFoundMessage({
8503
8503
  requested: input.target,
8504
8504
  command: input.command,
@@ -8513,7 +8513,7 @@ async function isMissingRunPlayReferenceError(input) {
8513
8513
  if (isExplicitMissingPlayReferenceError(input.error)) {
8514
8514
  return true;
8515
8515
  }
8516
- if (!(input.error instanceof _chunkPPDBRJRWjs.DeeplineError) || input.error.statusCode !== 404 || !/^no artifact-backed revision found for play:/i.test(
8516
+ if (!(input.error instanceof _chunkDIAWYWT5js.DeeplineError) || input.error.statusCode !== 404 || !/^no artifact-backed revision found for play:/i.test(
8517
8517
  input.error.message.trim()
8518
8518
  )) {
8519
8519
  return false;
@@ -8667,8 +8667,8 @@ async function ensureEditableRemotePlay(client, target) {
8667
8667
  return detail;
8668
8668
  }
8669
8669
  function writeInlinePlay(code) {
8670
- const filePath = _path.resolve.call(void 0, _chunkKAJK6XVIjs.INLINE_PLAY_FILE);
8671
- const source = _chunkKAJK6XVIjs.inlinePlaySource.call(void 0, code);
8670
+ const filePath = _path.resolve.call(void 0, _chunkCFUTOWE4js.INLINE_PLAY_FILE);
8671
+ const source = _chunkCFUTOWE4js.inlinePlaySource.call(void 0, code);
8672
8672
  try {
8673
8673
  _fs.writeFileSync.call(void 0, filePath, source, { flag: "wx" });
8674
8674
  } catch (error) {
@@ -8687,7 +8687,7 @@ function buildMissingDefinePlayError(filePath) {
8687
8687
  );
8688
8688
  }
8689
8689
  function extractPlayName(code, filePath) {
8690
- const definedPlayName = _chunkKAJK6XVIjs.extractDefinedPlayName.call(void 0, code, filePath);
8690
+ const definedPlayName = _chunkCFUTOWE4js.extractDefinedPlayName.call(void 0, code, filePath);
8691
8691
  if (definedPlayName) {
8692
8692
  return definedPlayName;
8693
8693
  }
@@ -8766,7 +8766,7 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
8766
8766
  if (!trimmed || isUrlValue(trimmed)) {
8767
8767
  return;
8768
8768
  }
8769
- const keyIsCsvData = key === _chunk2H4EY7KHjs.CSV_DATA_INPUT_KEY;
8769
+ const keyIsCsvData = key === _chunkJKVRBCZLjs.CSV_DATA_INPUT_KEY;
8770
8770
  const endsWithCsv = /\.csv$/i.test(trimmed);
8771
8771
  const looksLikeFile = /\.[a-z0-9]{1,8}$/i.test(trimmed);
8772
8772
  if (keyIsCsvData) {
@@ -8797,14 +8797,14 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
8797
8797
  }
8798
8798
  }
8799
8799
  function preflightLocalFileInputs(runtimeInput) {
8800
- if (_chunk2H4EY7KHjs.CSV_DATA_INPUT_KEY in runtimeInput) {
8801
- const csvValue = runtimeInput[_chunk2H4EY7KHjs.CSV_DATA_INPUT_KEY];
8800
+ if (_chunkJKVRBCZLjs.CSV_DATA_INPUT_KEY in runtimeInput) {
8801
+ const csvValue = runtimeInput[_chunkJKVRBCZLjs.CSV_DATA_INPUT_KEY];
8802
8802
  if (typeof csvValue === "string" && csvValue.trim().length === 0) {
8803
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
8804
- `Input ${_chunk2H4EY7KHjs.CSV_DATA_INPUT_KEY} is an empty string. Provide a path to a CSV file (or a CSV URL). No run was created.`,
8803
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
8804
+ `Input ${_chunkJKVRBCZLjs.CSV_DATA_INPUT_KEY} is an empty string. Provide a path to a CSV file (or a CSV URL). No run was created.`,
8805
8805
  void 0,
8806
8806
  "PLAY_INPUT_FILE_PREFLIGHT",
8807
- { inputPath: _chunk2H4EY7KHjs.CSV_DATA_INPUT_KEY, reason: "csv_empty_string" }
8807
+ { inputPath: _chunkJKVRBCZLjs.CSV_DATA_INPUT_KEY, reason: "csv_empty_string" }
8808
8808
  );
8809
8809
  }
8810
8810
  }
@@ -8815,7 +8815,7 @@ function preflightLocalFileInputs(runtimeInput) {
8815
8815
  for (const ref of refs) {
8816
8816
  const absolutePath = _path.resolve.call(void 0, ref.value);
8817
8817
  if (!_fs.existsSync.call(void 0, absolutePath)) {
8818
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
8818
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
8819
8819
  `Input ${ref.inputPath} references a local file that does not exist: ${ref.value} (resolved to ${absolutePath}). No run was created.`,
8820
8820
  void 0,
8821
8821
  "PLAY_INPUT_FILE_PREFLIGHT",
@@ -8826,7 +8826,7 @@ function preflightLocalFileInputs(runtimeInput) {
8826
8826
  try {
8827
8827
  stat2 = _fs.statSync.call(void 0, absolutePath);
8828
8828
  } catch (error) {
8829
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
8829
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
8830
8830
  `Input ${ref.inputPath} references a local file that is not readable: ${ref.value} (${error instanceof Error ? error.message : String(error)}). No run was created.`,
8831
8831
  void 0,
8832
8832
  "PLAY_INPUT_FILE_PREFLIGHT",
@@ -8834,7 +8834,7 @@ function preflightLocalFileInputs(runtimeInput) {
8834
8834
  );
8835
8835
  }
8836
8836
  if (!stat2.isFile()) {
8837
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
8837
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
8838
8838
  `Input ${ref.inputPath} references ${ref.value}, which is not a file. No run was created.`,
8839
8839
  void 0,
8840
8840
  "PLAY_INPUT_FILE_PREFLIGHT",
@@ -8852,14 +8852,14 @@ function preflightCsvDataInput(ref, absolutePath) {
8852
8852
  try {
8853
8853
  content = _fs.readFileSync.call(void 0, absolutePath, "utf-8");
8854
8854
  } catch (error) {
8855
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
8855
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
8856
8856
  `Input ${ref.inputPath} CSV ${ref.value} is not readable: ${error instanceof Error ? error.message : String(error)}. No run was created.`,
8857
8857
  void 0,
8858
8858
  "PLAY_INPUT_FILE_PREFLIGHT",
8859
8859
  { inputPath: ref.inputPath, path: ref.value }
8860
8860
  );
8861
8861
  }
8862
- _chunkWU4U6VSBjs.parseCsvDataInput.call(void 0, { inputPath: ref.inputPath, value: ref.value }, content);
8862
+ _chunkA6QCMBGLjs.parseCsvDataInput.call(void 0, { inputPath: ref.inputPath, value: ref.value }, content);
8863
8863
  }
8864
8864
  function namedRunNeedsPlayDefinition(input) {
8865
8865
  return input.revisionSelector === "latest" || inputContainsLocalFilePath(input.runtimeInput);
@@ -8871,7 +8871,7 @@ var NODE_STAGED_FILE_CODEC = {
8871
8871
  )
8872
8872
  };
8873
8873
  async function stageFileInputArgs(input) {
8874
- return _chunk2H4EY7KHjs.stageFileInputs.call(void 0, {
8874
+ return _chunkJKVRBCZLjs.stageFileInputs.call(void 0, {
8875
8875
  stage: (files) => input.client.stagePlayFiles(files),
8876
8876
  runtimeInput: input.runtimeInput,
8877
8877
  bindings: input.bindings,
@@ -8895,7 +8895,7 @@ function stageFile(logicalPath, absolutePath) {
8895
8895
  logicalPath,
8896
8896
  contentBase64: buffer.toString("base64"),
8897
8897
  contentHash: _crypto.createHash.call(void 0, "sha256").update(buffer).digest("hex"),
8898
- contentType: _chunk2H4EY7KHjs.stagedFileContentType.call(void 0, absolutePath),
8898
+ contentType: _chunkJKVRBCZLjs.stagedFileContentType.call(void 0, absolutePath),
8899
8899
  bytes: buffer.byteLength
8900
8900
  };
8901
8901
  }
@@ -8916,12 +8916,12 @@ function unresolvedPackagedFilesMessage(node) {
8916
8916
  const details = node.unresolvedFileReferences.map((unresolved) => `${unresolved.sourceFragment}: ${unresolved.message}`).join("; ");
8917
8917
  return `Failed to package local deepline.csv(...) files in ${node.filePath}: ${details}`;
8918
8918
  }
8919
- async function collectBundledPlayGraph(entryFile, profile = null, entryExportName = _chunkKAJK6XVIjs.PLAY_DEFAULT_EXPORT, options = {}) {
8919
+ async function collectBundledPlayGraph(entryFile, profile = null, entryExportName = _chunkCFUTOWE4js.PLAY_DEFAULT_EXPORT, options = {}) {
8920
8920
  const playBundler = await loadPlayBundler();
8921
8921
  const nodes = /* @__PURE__ */ new Map();
8922
8922
  const diagnostics = [];
8923
8923
  const visited = /* @__PURE__ */ new Set();
8924
- const artifactKind = _chunkKAJK6XVIjs.resolveEnabledExecutionProfile.call(void 0, profile).artifactKind;
8924
+ const artifactKind = _chunkCFUTOWE4js.resolveEnabledExecutionProfile.call(void 0, profile).artifactKind;
8925
8925
  const rootPath = normalizePlayPath(entryFile);
8926
8926
  const visit = async (filePath) => {
8927
8927
  const absolutePath = normalizePlayPath(filePath);
@@ -8930,7 +8930,7 @@ async function collectBundledPlayGraph(entryFile, profile = null, entryExportNam
8930
8930
  const bundleResult = await playBundler.bundlePlayFile(absolutePath, {
8931
8931
  target: artifactKind,
8932
8932
  ...options.cache === false ? { cache: false } : {},
8933
- ...absolutePath === rootPath && entryExportName !== _chunkKAJK6XVIjs.PLAY_DEFAULT_EXPORT ? { exportName: entryExportName } : {}
8933
+ ...absolutePath === rootPath && entryExportName !== _chunkCFUTOWE4js.PLAY_DEFAULT_EXPORT ? { exportName: entryExportName } : {}
8934
8934
  });
8935
8935
  if (bundleResult.success === false) {
8936
8936
  diagnostics.push(
@@ -9094,10 +9094,10 @@ function playStatusErrorText(status) {
9094
9094
  function isRetryablePendingStartFailure(status) {
9095
9095
  if (status.status !== "failed") return false;
9096
9096
  if (status.runId && status.runId !== "pending") return false;
9097
- return _chunkMPY4UD6Hjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
9097
+ return _chunkXM5Z53VAjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
9098
9098
  }
9099
9099
  function isAmbiguousPlayStartOutcomeError(error) {
9100
- if (error instanceof _chunkPPDBRJRWjs.DeeplineError && typeof error.statusCode === "number") {
9100
+ if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
9101
9101
  return error.statusCode >= 500;
9102
9102
  }
9103
9103
  return true;
@@ -9120,14 +9120,14 @@ var RetryablePlayStartAttemptError = class extends Error {
9120
9120
  this.name = "RetryablePlayStartAttemptError";
9121
9121
  }
9122
9122
  };
9123
- var PlayStartOutcomeUnknownError = (_class = class extends _chunkPPDBRJRWjs.DeeplineError {
9123
+ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.DeeplineError {
9124
9124
  __init() {this.retryable = false}
9125
9125
  constructor(playName, cause) {
9126
9126
  const causeMessage = cause instanceof Error ? cause.message : String(cause);
9127
9127
  const recoveryCommand = `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)} --json`;
9128
9128
  super(
9129
9129
  `Play ${playName} may have started, but the CLI did not receive confirmation. Do not run it again until you inspect the original workspace with: ${recoveryCommand}`,
9130
- cause instanceof _chunkPPDBRJRWjs.DeeplineError ? cause.statusCode : void 0,
9130
+ cause instanceof _chunkDIAWYWT5js.DeeplineError ? cause.statusCode : void 0,
9131
9131
  "PLAY_START_OUTCOME_UNKNOWN",
9132
9132
  {
9133
9133
  outcome: "unknown",
@@ -9143,13 +9143,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkPPDBRJRWjs.Deep
9143
9143
  }, _class);
9144
9144
  function watchSurfaceReaches(state, provenance, level) {
9145
9145
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
9146
- if (!_chunkMPY4UD6Hjs.logLevelReaches.call(void 0, level, minimumLevel)) {
9146
+ if (!_chunkXM5Z53VAjs.logLevelReaches.call(void 0, level, minimumLevel)) {
9147
9147
  return false;
9148
9148
  }
9149
- if (_chunkMPY4UD6Hjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
9149
+ if (_chunkXM5Z53VAjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
9150
9150
  return true;
9151
9151
  }
9152
- return state.verbose === true && _chunkMPY4UD6Hjs.logProvenanceReaches.call(void 0, provenance, "debug");
9152
+ return state.verbose === true && _chunkXM5Z53VAjs.logProvenanceReaches.call(void 0, provenance, "debug");
9153
9153
  }
9154
9154
  function getEventPayload(event) {
9155
9155
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -9651,7 +9651,7 @@ function resolveRunPlayName(status, runId) {
9651
9651
  }
9652
9652
  function openPlayDashboard(dashboardUrl, open2) {
9653
9653
  if (open2 && dashboardUrl) {
9654
- _chunkD4VWHTDTjs.openInBrowser.call(void 0, dashboardUrl);
9654
+ _chunk3IRJIEIEjs.openInBrowser.call(void 0, dashboardUrl);
9655
9655
  }
9656
9656
  }
9657
9657
  function printPlayLogLines(input) {
@@ -9668,7 +9668,7 @@ function assertPlayWaitNotTimedOut(input) {
9668
9668
  const hasRealRunId = input.workflowId.length > 0 && input.workflowId !== "pending";
9669
9669
  const phaseSuffix = input.lastPhase && input.lastPhase.trim() ? ` (last observed phase: ${input.lastPhase.trim()})` : "";
9670
9670
  const tailHint = hasRealRunId ? ` The CLI stopped waiting; it did not cancel the run. Check its current state with 'deepline runs get ${input.workflowId}', or reattach with 'deepline runs watch ${input.workflowId}'. Do not start another run just to retrieve results.` : ` No run id was received, so acceptance is unknown. Check recent runs with 'deepline runs list --play <play-name>' before submitting again.`;
9671
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
9671
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
9672
9672
  `Timed out waiting for play ${hasRealRunId ? input.workflowId : "<no run id>"} after ${Math.ceil(input.waitTimeoutMs / 1e3)}s${phaseSuffix}.${tailHint}`,
9673
9673
  void 0,
9674
9674
  "PLAY_WAIT_TIMEOUT",
@@ -9682,7 +9682,7 @@ function assertPlayWaitNotTimedOut(input) {
9682
9682
  }
9683
9683
  var RUN_WATCH_RETRY_INTERVAL_MS = 2e3;
9684
9684
  function isAdmittedRunVisibilityDelay(error) {
9685
- return error instanceof _chunkPPDBRJRWjs.DeeplineError && error.statusCode === 404 && error.message.trim() === "Workflow run not found.";
9685
+ return error instanceof _chunkDIAWYWT5js.DeeplineError && error.statusCode === 404 && error.message.trim() === "Workflow run not found.";
9686
9686
  }
9687
9687
  async function waitForPlayCompletionByWatch(input) {
9688
9688
  let lastPhase = null;
@@ -9728,7 +9728,7 @@ async function waitForPlayCompletionByWatch(input) {
9728
9728
  ...input.fullJson === void 0 ? {} : { full: input.fullJson }
9729
9729
  });
9730
9730
  } catch (error) {
9731
- if (_chunkMPY4UD6Hjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9731
+ if (_chunkXM5Z53VAjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9732
9732
  return null;
9733
9733
  }
9734
9734
  throw error;
@@ -9808,9 +9808,9 @@ async function waitForPlayCompletionByWatch(input) {
9808
9808
  signal: controller.signal,
9809
9809
  deferLogs: !input.emitLogs,
9810
9810
  omitTerminalLogs: !input.emitLogs,
9811
- ..._chunk76DCNYH3js.isCliTraceEnabled.call(void 0, ) ? {
9811
+ ..._chunkDE354WOPjs.isCliTraceEnabled.call(void 0, ) ? {
9812
9812
  onPoll: (observation) => {
9813
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
9813
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
9814
9814
  phase: "play_watch_poll",
9815
9815
  workflowId: input.workflowId,
9816
9816
  ms: observation.durationMs,
@@ -9824,7 +9824,7 @@ async function waitForPlayCompletionByWatch(input) {
9824
9824
  full: input.fullJson,
9825
9825
  billing: false,
9826
9826
  onStatus: async (status) => {
9827
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
9827
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
9828
9828
  phase: "play_watch_terminal_status",
9829
9829
  workflowId: input.workflowId,
9830
9830
  full: input.fullJson === true
@@ -9861,7 +9861,7 @@ async function waitForPlayCompletionByWatch(input) {
9861
9861
  const terminal = await fetchTerminalStatus();
9862
9862
  if (terminal) return terminal;
9863
9863
  assertPlayWaitNotTimedOut({ ...input, lastPhase });
9864
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
9864
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
9865
9865
  `Run watch for ${input.workflowId} ended before a terminal status.`,
9866
9866
  void 0,
9867
9867
  "PLAY_WATCH_ENDED"
@@ -9893,8 +9893,8 @@ async function startAndWaitForPlayCompletion(input) {
9893
9893
  ...input.cliAdmission ? { cliAdmission: true } : {}
9894
9894
  });
9895
9895
  } catch (error) {
9896
- if (!(error instanceof _chunk2H4EY7KHjs.CliPlayAdmissionUnsupportedError)) throw error;
9897
- await _chunk3TYXI7MDjs.checkPlayRunCompatibility.call(void 0,
9896
+ if (!(error instanceof _chunkJKVRBCZLjs.CliPlayAdmissionUnsupportedError)) throw error;
9897
+ await _chunkAG5SQSH5js.checkPlayRunCompatibility.call(void 0,
9898
9898
  input.client.baseUrl,
9899
9899
  input.maintenancePolicy
9900
9900
  );
@@ -9919,7 +9919,7 @@ async function startAndWaitForPlayCompletion(input) {
9919
9919
  }
9920
9920
  const workflowId = started.workflowId;
9921
9921
  if (!workflowId || workflowId === "pending") {
9922
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
9922
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
9923
9923
  "Play admission returned no run id. Check recent runs before submitting again.",
9924
9924
  void 0,
9925
9925
  "PLAY_START_MISSING_RUN_ID"
@@ -9940,7 +9940,7 @@ async function startAndWaitForPlayCompletion(input) {
9940
9940
  }
9941
9941
  openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
9942
9942
  input.progress.phase("running");
9943
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
9943
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
9944
9944
  phase: "cli.play_start_admitted",
9945
9945
  ms: Date.now() - startedAt,
9946
9946
  ok: true,
@@ -9957,7 +9957,7 @@ async function startAndWaitForPlayCompletion(input) {
9957
9957
  startedAt,
9958
9958
  waitTimeoutMs: input.waitTimeoutMs
9959
9959
  });
9960
- const initialStatus = _chunkMPY4UD6Hjs.normalizePlayStatus.call(void 0, initialTerminal);
9960
+ const initialStatus = _chunkXM5Z53VAjs.normalizePlayStatus.call(void 0, initialTerminal);
9961
9961
  const status2 = await resolvePlayRunOutputStatus({
9962
9962
  client: input.client,
9963
9963
  status: initialStatus,
@@ -9965,7 +9965,7 @@ async function startAndWaitForPlayCompletion(input) {
9965
9965
  jsonOutput: input.jsonOutput,
9966
9966
  fromDurableStatus: true
9967
9967
  });
9968
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
9968
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
9969
9969
  phase: "play_watch_terminal_status",
9970
9970
  workflowId,
9971
9971
  full: true,
@@ -10008,8 +10008,8 @@ async function startAndWaitForPlayCompletionByStream(input) {
10008
10008
  try {
10009
10009
  status = await startAndWaitForPlayCompletionByStreamOnce(pinnedInput);
10010
10010
  } catch (error) {
10011
- if (error instanceof _chunk2H4EY7KHjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
10012
- await _chunk3TYXI7MDjs.checkPlayRunCompatibility.call(void 0,
10011
+ if (error instanceof _chunkJKVRBCZLjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
10012
+ await _chunkAG5SQSH5js.checkPlayRunCompatibility.call(void 0,
10013
10013
  input.client.baseUrl,
10014
10014
  input.maintenancePolicy
10015
10015
  );
@@ -10022,7 +10022,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
10022
10022
  if (!(error instanceof RetryablePlayStartAttemptError)) throw error;
10023
10023
  const retryDelayMs2 = retryDelays[attempt];
10024
10024
  if (retryDelayMs2 === void 0) {
10025
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
10025
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
10026
10026
  `Play ${input.playName} did not start after retrying transient start failures.`,
10027
10027
  void 0,
10028
10028
  "PLAY_START_RETRY_EXHAUSTED",
@@ -10036,7 +10036,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
10036
10036
  `[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
10037
10037
  );
10038
10038
  }
10039
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
10039
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
10040
10040
  phase: "cli.play_start_stream_retry",
10041
10041
  ms: 0,
10042
10042
  ok: true,
@@ -10057,7 +10057,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
10057
10057
  `[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
10058
10058
  );
10059
10059
  }
10060
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
10060
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
10061
10061
  phase: "cli.play_start_stream_retry",
10062
10062
  ms: 0,
10063
10063
  ok: true,
@@ -10067,7 +10067,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
10067
10067
  });
10068
10068
  await sleep(retryDelayMs);
10069
10069
  }
10070
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
10070
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
10071
10071
  `Play ${input.playName} did not start after retrying transient start failures.`,
10072
10072
  void 0,
10073
10073
  "PLAY_START_RETRY_EXHAUSTED"
@@ -10101,7 +10101,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10101
10101
  if (launchConfirmed || !runId || runId === "pending") return;
10102
10102
  launchConfirmed = true;
10103
10103
  await _optionalChain([input, 'access', _319 => _319.onRunAdmitted, 'optionalCall', _320 => _320(runId)]);
10104
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
10104
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
10105
10105
  phase: "cli.play_start_admitted",
10106
10106
  ms: Date.now() - startedAt,
10107
10107
  ok: true,
@@ -10135,7 +10135,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10135
10135
  full: input.fullJson
10136
10136
  });
10137
10137
  } catch (error) {
10138
- if (_chunkMPY4UD6Hjs.isTransientPlayRunReadError.call(void 0, error)) {
10138
+ if (_chunkXM5Z53VAjs.isTransientPlayRunReadError.call(void 0, error)) {
10139
10139
  return null;
10140
10140
  }
10141
10141
  throw error;
@@ -10268,7 +10268,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10268
10268
  };
10269
10269
  }
10270
10270
  if (!canonicalTerminal) {
10271
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
10271
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
10272
10272
  phase: "cli.play_start_stream_stale_terminal_ignored",
10273
10273
  ms: Date.now() - startedAt,
10274
10274
  ok: true,
@@ -10289,14 +10289,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10289
10289
  fromDurableStatus
10290
10290
  }) : canonicalTerminal;
10291
10291
  if (input.fullJson === true) {
10292
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
10292
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
10293
10293
  phase: "play_watch_terminal_status",
10294
10294
  workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
10295
10295
  full: true,
10296
10296
  source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
10297
10297
  });
10298
10298
  }
10299
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
10299
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
10300
10300
  phase: "cli.play_start_stream_terminal",
10301
10301
  ms: Date.now() - startedAt,
10302
10302
  ok: true,
@@ -10316,7 +10316,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10316
10316
  clearTimeout(timeout);
10317
10317
  }
10318
10318
  controller.abort();
10319
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
10319
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
10320
10320
  phase: "cli.play_start_stream_handoff_to_tail",
10321
10321
  ms: Date.now() - startedAt,
10322
10322
  ok: true,
@@ -10347,7 +10347,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10347
10347
  if (timedOut) {
10348
10348
  const terminal = await fetchKnownTerminalStatus();
10349
10349
  if (terminal) {
10350
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
10350
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
10351
10351
  phase: "cli.play_start_stream_timeout_status_reconcile",
10352
10352
  ms: Date.now() - startedAt,
10353
10353
  ok: true,
@@ -10367,7 +10367,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10367
10367
  lastPhase
10368
10368
  });
10369
10369
  }
10370
- if (lastKnownWorkflowId && (terminalWindowExpired || _chunkMPY4UD6Hjs.isTransientPlayRunReadError.call(void 0, error))) {
10370
+ if (lastKnownWorkflowId && (terminalWindowExpired || _chunkXM5Z53VAjs.isTransientPlayRunReadError.call(void 0, error))) {
10371
10371
  if (timeout) {
10372
10372
  clearTimeout(timeout);
10373
10373
  }
@@ -10378,7 +10378,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10378
10378
  `
10379
10379
  );
10380
10380
  }
10381
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
10381
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
10382
10382
  phase: "cli.play_start_stream_reconnect",
10383
10383
  ms: Date.now() - startedAt,
10384
10384
  ok: true,
@@ -10405,7 +10405,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10405
10405
  });
10406
10406
  }
10407
10407
  if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
10408
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
10408
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
10409
10409
  phase: "cli.play_start_stream_transient_failure",
10410
10410
  ms: Date.now() - startedAt,
10411
10411
  ok: false,
@@ -10433,7 +10433,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10433
10433
  `[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
10434
10434
  );
10435
10435
  }
10436
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
10436
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
10437
10437
  phase: "cli.play_start_stream_reconnect",
10438
10438
  ms: Date.now() - startedAt,
10439
10439
  ok: true,
@@ -10462,7 +10462,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
10462
10462
  }
10463
10463
  const phaseSuffix = lastPhase && lastPhase.trim() ? ` (last observed phase: ${lastPhase.trim()})` : "";
10464
10464
  const idSuffix = lastKnownWorkflowId ? ` runId=${lastKnownWorkflowId}` : "";
10465
- const endedBeforeConfirmation = new (0, _chunkPPDBRJRWjs.DeeplineError)(
10465
+ const endedBeforeConfirmation = new (0, _chunkDIAWYWT5js.DeeplineError)(
10466
10466
  `Play start request ended before terminal status was observed${idSuffix}${phaseSuffix}.`,
10467
10467
  void 0,
10468
10468
  "PLAY_START_STREAM_ENDED",
@@ -10513,7 +10513,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
10513
10513
  "logs"
10514
10514
  ]);
10515
10515
  function formatPlayLogLine(rawLine, state) {
10516
- const classified = _chunkMPY4UD6Hjs.classifyLogLine.call(void 0, rawLine);
10516
+ const classified = _chunkXM5Z53VAjs.classifyLogLine.call(void 0, rawLine);
10517
10517
  const line = classified.line;
10518
10518
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
10519
10519
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _323 => _323[1]]) ? new Date(timestampMatch[1]) : null;
@@ -10528,14 +10528,14 @@ function formatPlayLogLine(rawLine, state) {
10528
10528
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
10529
10529
  const providerWait = formatProviderCapacityWaitLogLine(line);
10530
10530
  if (providerWait && !state.verbose) {
10531
- return _chunkMPY4UD6Hjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10531
+ return _chunkXM5Z53VAjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
10532
10532
  }
10533
10533
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
10534
10534
  if (mapProgress && !state.verbose) {
10535
- return _chunkMPY4UD6Hjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10535
+ return _chunkXM5Z53VAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
10536
10536
  }
10537
10537
  if (/\[worker\] picked up run\b/.test(message)) {
10538
- if (!_chunkMPY4UD6Hjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10538
+ if (!_chunkXM5Z53VAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10539
10539
  return null;
10540
10540
  }
10541
10541
  if (state.emittedRunnerStarted) {
@@ -10548,7 +10548,7 @@ function formatPlayLogLine(rawLine, state) {
10548
10548
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
10549
10549
  );
10550
10550
  if (mapStart) {
10551
- if (!_chunkMPY4UD6Hjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10551
+ if (!_chunkXM5Z53VAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10552
10552
  return null;
10553
10553
  }
10554
10554
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -10558,7 +10558,7 @@ function formatPlayLogLine(rawLine, state) {
10558
10558
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
10559
10559
  );
10560
10560
  if (mapDone) {
10561
- if (!_chunkMPY4UD6Hjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10561
+ if (!_chunkXM5Z53VAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
10562
10562
  return null;
10563
10563
  }
10564
10564
  const [, results, executed, cached] = mapDone;
@@ -11847,7 +11847,7 @@ function formatRecentRunLogLines(value) {
11847
11847
  (line) => typeof line === "string"
11848
11848
  );
11849
11849
  if (tail.length === 0) return [];
11850
- const shown = tail.map((line) => _chunkMPY4UD6Hjs.classifyLogLine.call(void 0, line)).filter(
11850
+ const shown = tail.map((line) => _chunkXM5Z53VAjs.classifyLogLine.call(void 0, line)).filter(
11851
11851
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
11852
11852
  ).slice(-8);
11853
11853
  const total = readNonNegativeInteger(logs.totalCount);
@@ -12130,7 +12130,7 @@ function writePlayResult(status, jsonOutput, options) {
12130
12130
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _404 => _404.hits]), () => ( null));
12131
12131
  if (jsonOutput) {
12132
12132
  const payload2 = _optionalChain([options, 'optionalAccess', _405 => _405.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
12133
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
12133
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
12134
12134
  hits ? { ...payload2, hits } : payload2,
12135
12135
  { json: true, fields: _optionalChain([options, 'optionalAccess', _406 => _406.jsonFields]) }
12136
12136
  );
@@ -12146,7 +12146,7 @@ function writePlayResult(status, jsonOutput, options) {
12146
12146
  ...buildPlayCompletionTextLines(status),
12147
12147
  ...formatRunHitsLines(hits)
12148
12148
  ];
12149
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, displayPackage, {
12149
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, displayPackage, {
12150
12150
  json: false,
12151
12151
  text: `${lines2.join("\n")}
12152
12152
  `
@@ -12197,7 +12197,7 @@ function writePlayResult(status, jsonOutput, options) {
12197
12197
  lines.push(...buildBillingRollupTextLines(status));
12198
12198
  const compact = compactPlayStatus(status);
12199
12199
  const payload = _optionalChain([options, 'optionalAccess', _408 => _408.fullJson]) ? status : compact;
12200
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
12200
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
12201
12201
  {
12202
12202
  ...payload,
12203
12203
  render: {
@@ -12380,7 +12380,7 @@ async function fetchBackingDatasetRows(input) {
12380
12380
  if (seenEnvelopeKeys.has(key)) {
12381
12381
  const activeRun = !TERMINAL_PLAY_STATUSES.has(input.status.status);
12382
12382
  const waitCommand = `${input.retryCommand} --wait`;
12383
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
12383
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
12384
12384
  "The backing dataset returned a Runtime Sheet row more than once while paging; the export is not ready to write. " + (activeRun ? `Wait for this same run: ${waitCommand}. Do not rerun the Play to retrieve results.` : `Retry with: ${input.retryCommand}`),
12385
12385
  void 0,
12386
12386
  "RUN_EXPORT_NOT_READY",
@@ -12511,7 +12511,7 @@ function assertDatasetHasExportableRows(input) {
12511
12511
  const currentTableQueryCommand2 = input.rowsInfo.currentTableQueryCommand;
12512
12512
  if (!TERMINAL_PLAY_STATUSES.has(input.status.status)) {
12513
12513
  const waitCommand = `${retryCommand} --wait`;
12514
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
12514
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
12515
12515
  `Run ${input.status.runId} is ${runStatus}; this dataset has zero rows to export yet. Wait for this same run: ${waitCommand}. Do not start another run to retrieve results.`,
12516
12516
  void 0,
12517
12517
  "RUN_EXPORT_EMPTY",
@@ -12529,7 +12529,7 @@ function assertDatasetHasExportableRows(input) {
12529
12529
  );
12530
12530
  }
12531
12531
  const explanation = terminalRunWithMissingAdvertisedRows ? ` The terminal result advertised ${advertisedRows} row(s), but none are currently attributed to this run's durable sheet. Those rows may have been reused from an earlier run or the projection may still be lagging; export refuses to guess another run's rows. Retry the same export after projection catches up (do not rerun the Play): ${retryCommand}. If it remains empty, inspect the full package with ${inspectCommand}` + (currentTableQueryCommand2 ? `, then inspect the current table's _run_id/_writer_run_id with ${currentTableQueryCommand2} and export the run that owns those rows` : " and export the run that owns the durable dataset") + "; this command will not use a database-wide table query that could mix runs." : ` The run status is '${runStatus || "unknown"}', so it likely failed before persisting rows to this dataset. That means provider calls may have been billed without a durable row; inspect ${inspectCommand}, fix the failure cause, then rerun the Play so completed receipts can be reused.`;
12532
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
12532
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
12533
12533
  `Run ${input.status.runId} has zero rows to export from dataset '${datasetLabel}'.` + explanation + (available.length > 0 ? ` Available datasets: ${available.join(", ")}.` : " No datasets were materialized for this run."),
12534
12534
  void 0,
12535
12535
  "RUN_EXPORT_EMPTY",
@@ -12584,7 +12584,7 @@ async function exportPlayStatusRows(client, status, outPath, options = {}) {
12584
12584
  outPath,
12585
12585
  options
12586
12586
  });
12587
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
12587
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
12588
12588
  `Run ${status.runId} did not return a dataset at ${options.datasetPath}.` + (available.length > 0 ? ` Available datasets: ${available.join(", ")}.
12589
12589
  ${commands.join("\n")}` : ""),
12590
12590
  void 0,
@@ -12600,7 +12600,7 @@ ${commands.join("\n")}` : ""),
12600
12600
  outPath,
12601
12601
  options
12602
12602
  });
12603
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
12603
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
12604
12604
  `Run ${status.runId} returned multiple datasets. Choose one:
12605
12605
  ${commands.join("\n")}`,
12606
12606
  void 0,
@@ -12623,7 +12623,7 @@ ${commands.join("\n")}`,
12623
12623
  outPath,
12624
12624
  options
12625
12625
  });
12626
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
12626
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
12627
12627
  `Run ${status.runId} has multiple recovered datasets. Choose one:
12628
12628
  ${commands.join("\n")}`,
12629
12629
  void 0,
@@ -12639,14 +12639,14 @@ ${commands.join("\n")}`,
12639
12639
  );
12640
12640
  }
12641
12641
  if (!rowsInfo) {
12642
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
12642
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
12643
12643
  `Run ${status.runId} did not expose a row-shaped final output to export.`
12644
12644
  );
12645
12645
  }
12646
12646
  const canExportPreview = rowsInfo.complete && !rowsInfo.currentTable;
12647
12647
  if (rowsInfo.exportUnavailableReason === "returned_dataset_not_persisted") {
12648
12648
  const datasetLabel = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(options.datasetPath, () => ( rowsInfo.source)), () => ( rowsInfo.datasetId)), () => ( "result.rows"));
12649
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
12649
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
12650
12650
  _nullishCoalesce(rowsInfo.exportUnavailableMessage, () => ( `Run ${status.runId} returned rows for '${datasetLabel}' without a run-scoped durable dataset. Persist the rows with deepline.dataset("rows", rows).run() before returning them.`)),
12651
12651
  void 0,
12652
12652
  "RUN_EXPORT_NOT_AVAILABLE",
@@ -12680,7 +12680,7 @@ ${commands.join("\n")}`,
12680
12680
  retryCommand
12681
12681
  });
12682
12682
  } catch (error) {
12683
- if (error instanceof _chunkPPDBRJRWjs.DeeplineError && (error.code === "RUN_EXPORT_SCOPE_MISMATCH" || error.code === "RUN_EXPORT_NOT_READY")) {
12683
+ if (error instanceof _chunkDIAWYWT5js.DeeplineError && (error.code === "RUN_EXPORT_SCOPE_MISMATCH" || error.code === "RUN_EXPORT_NOT_READY")) {
12684
12684
  throw error;
12685
12685
  }
12686
12686
  if (!canExportPreview) {
@@ -12719,7 +12719,7 @@ ${commands.join("\n")}`,
12719
12719
  const previewReason = rowsInfo.currentTable ? "Legacy shared-table metadata does not prove this preview belongs to the run" : `Run output only includes ${rowsInfo.rows.length} preview row(s) of ${rowsInfo.totalRows}`;
12720
12720
  const activeRun = !TERMINAL_PLAY_STATUSES.has(status.status);
12721
12721
  const waitCommand = `${retryCommand} --wait`;
12722
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
12722
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
12723
12723
  `${previewReason}; the backing dataset was not ready to export yet. ` + (activeRun ? `The run is ${status.status}. Wait for this same run: ${waitCommand}. Do not rerun the Play to retrieve results.` : `Retry with: ${retryCommand}`),
12724
12724
  void 0,
12725
12725
  "RUN_EXPORT_NOT_READY",
@@ -12746,7 +12746,7 @@ ${commands.join("\n")}`,
12746
12746
  return writeExport(guarded);
12747
12747
  }
12748
12748
  function extractActiveRunsFromError(error) {
12749
- if (!(error instanceof _chunkPPDBRJRWjs.DeeplineError)) {
12749
+ if (!(error instanceof _chunkDIAWYWT5js.DeeplineError)) {
12750
12750
  return [];
12751
12751
  }
12752
12752
  const response = _optionalChain([error, 'access', _431 => _431.details, 'optionalAccess', _432 => _432.response]);
@@ -12797,7 +12797,7 @@ function stringArrayField(record3, key) {
12797
12797
  return value.filter((entry) => typeof entry === "string");
12798
12798
  }
12799
12799
  function extractPlayValidationErrors(value) {
12800
- if (value instanceof _chunkPPDBRJRWjs.DeeplineError) {
12800
+ if (value instanceof _chunkDIAWYWT5js.DeeplineError) {
12801
12801
  return extractPlayValidationErrors(value.details);
12802
12802
  }
12803
12803
  if (!isRecord2(value)) {
@@ -12836,21 +12836,21 @@ function normalizePlayValidationError(error) {
12836
12836
  if (!message.trim()) {
12837
12837
  return error;
12838
12838
  }
12839
- return new (0, _chunkPPDBRJRWjs.DeeplineError)(
12839
+ return new (0, _chunkDIAWYWT5js.DeeplineError)(
12840
12840
  message,
12841
- error instanceof _chunkPPDBRJRWjs.DeeplineError ? error.statusCode : void 0,
12842
- error instanceof _chunkPPDBRJRWjs.DeeplineError ? error.code : "PLAY_VALIDATION_ERROR",
12843
- error instanceof _chunkPPDBRJRWjs.DeeplineError ? error.details : void 0
12841
+ error instanceof _chunkDIAWYWT5js.DeeplineError ? error.statusCode : void 0,
12842
+ error instanceof _chunkDIAWYWT5js.DeeplineError ? error.code : "PLAY_VALIDATION_ERROR",
12843
+ error instanceof _chunkDIAWYWT5js.DeeplineError ? error.details : void 0
12844
12844
  );
12845
12845
  }
12846
12846
  async function normalizePlayStartError(client, error, playName, options = {}) {
12847
12847
  const activeRuns = extractActiveRunsFromError(error);
12848
12848
  if (activeRuns.length > 0) {
12849
- return new (0, _chunkPPDBRJRWjs.DeeplineError)(
12849
+ return new (0, _chunkDIAWYWT5js.DeeplineError)(
12850
12850
  formatActiveRunConflictError({ playName, activeRuns }),
12851
- error instanceof _chunkPPDBRJRWjs.DeeplineError ? error.statusCode : 409,
12851
+ error instanceof _chunkDIAWYWT5js.DeeplineError ? error.statusCode : 409,
12852
12852
  "ACTIVE_RUN_EXISTS",
12853
- error instanceof _chunkPPDBRJRWjs.DeeplineError ? error.details : void 0
12853
+ error instanceof _chunkDIAWYWT5js.DeeplineError ? error.details : void 0
12854
12854
  );
12855
12855
  }
12856
12856
  if (options.suggestMissingPlay && await isMissingRunPlayReferenceError({ client, error, playName })) {
@@ -12967,7 +12967,7 @@ function writeStartedPlayRun(input) {
12967
12967
  dashboardUrl: input.dashboardUrl,
12968
12968
  package: input.package
12969
12969
  };
12970
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12970
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12971
12971
  json: true,
12972
12972
  fields: input.jsonFields
12973
12973
  });
@@ -12989,7 +12989,7 @@ function writeStartedPlayRun(input) {
12989
12989
  input.progress.writeLine(output2, process.stdout);
12990
12990
  return;
12991
12991
  }
12992
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, input.package, {
12992
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, input.package, {
12993
12993
  json: false,
12994
12994
  text: `${output2}
12995
12995
  `
@@ -13018,7 +13018,7 @@ function writeStartedPlayRun(input) {
13018
13018
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
13019
13019
  ];
13020
13020
  if (input.jsonOutput) {
13021
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13021
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
13022
13022
  return;
13023
13023
  }
13024
13024
  if (input.dashboardUrl) {
@@ -13029,7 +13029,7 @@ function writeStartedPlayRun(input) {
13029
13029
  input.progress.writeLine(output, process.stdout);
13030
13030
  return;
13031
13031
  }
13032
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
13032
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
13033
13033
  {
13034
13034
  ...payload,
13035
13035
  render: { sections: [{ title: "play run", lines }] }
@@ -13039,7 +13039,7 @@ function writeStartedPlayRun(input) {
13039
13039
  );
13040
13040
  }
13041
13041
  function parsePlayCheckOptions(args) {
13042
- const selection = _chunkD4VWHTDTjs.parseJsonFields.call(void 0, args, "check");
13042
+ const selection = _chunk3IRJIEIEjs.parseJsonFields.call(void 0, args, "check");
13043
13043
  args = selection.args;
13044
13044
  const target = args[0];
13045
13045
  if (!target || target.startsWith("-")) {
@@ -13051,7 +13051,7 @@ function parsePlayCheckOptions(args) {
13051
13051
  if (arg !== "--json" && arg !== "--full")
13052
13052
  throw new Error(`Unknown plays check option: ${arg}`);
13053
13053
  }
13054
- const jsonOutput = _chunkD4VWHTDTjs.argsWantJson.call(void 0, args);
13054
+ const jsonOutput = _chunk3IRJIEIEjs.argsWantJson.call(void 0, args);
13055
13055
  return {
13056
13056
  target,
13057
13057
  jsonOutput,
@@ -13127,7 +13127,7 @@ ${PLAY_PUBLISH_USAGE}`
13127
13127
  useLatest,
13128
13128
  expectedArtifactHash,
13129
13129
  dryRun,
13130
- jsonOutput: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args)
13130
+ jsonOutput: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args)
13131
13131
  };
13132
13132
  }
13133
13133
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -13168,7 +13168,7 @@ ${PLAY_SAVE_USAGE}`);
13168
13168
  target,
13169
13169
  expectedArtifactHash,
13170
13170
  dryRun,
13171
- jsonOutput: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args)
13171
+ jsonOutput: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args)
13172
13172
  };
13173
13173
  }
13174
13174
  function printScheduledPlayCapacity(capacity) {
@@ -13379,7 +13379,7 @@ function printBundledRuntimeWarning(bundle) {
13379
13379
  async function handlePlayCheck(args) {
13380
13380
  const options = parsePlayCheckOptions(args);
13381
13381
  if (!isFileTarget2(options.target)) {
13382
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
13382
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
13383
13383
  try {
13384
13384
  await assertCanonicalNamedPlayReference(client, options.target, {
13385
13385
  command: "check"
@@ -13408,7 +13408,7 @@ async function handlePlayCheck(args) {
13408
13408
  },
13409
13409
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
13410
13410
  };
13411
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, result, {
13411
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, result, {
13412
13412
  json: options.jsonOutput,
13413
13413
  fields: options.jsonFields,
13414
13414
  text: renderPlayCheckOutput(result) + "\n"
@@ -13418,7 +13418,7 @@ async function handlePlayCheck(args) {
13418
13418
  const resolved = _path.resolve.call(void 0, options.target);
13419
13419
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
13420
13420
  if (options.jsonOutput) {
13421
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
13421
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
13422
13422
  {
13423
13423
  kind: "play_check",
13424
13424
  checked: "named_contract",
@@ -13451,7 +13451,7 @@ async function handlePlayCheck(args) {
13451
13451
  );
13452
13452
  }
13453
13453
  const primary = outcomes.find(
13454
- (outcome) => outcome.exportName === _chunkKAJK6XVIjs.PLAY_DEFAULT_EXPORT
13454
+ (outcome) => outcome.exportName === _chunkCFUTOWE4js.PLAY_DEFAULT_EXPORT
13455
13455
  );
13456
13456
  const output = buildPlayCheckOutput({
13457
13457
  outcomes,
@@ -13460,7 +13460,7 @@ async function handlePlayCheck(args) {
13460
13460
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
13461
13461
  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
13462
  });
13463
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, output, {
13463
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, output, {
13464
13464
  json: options.jsonOutput,
13465
13465
  fields: options.jsonFields,
13466
13466
  text: renderPlayCheckOutput(output) + "\n"
@@ -13468,8 +13468,8 @@ async function handlePlayCheck(args) {
13468
13468
  return output.valid ? 0 : 1;
13469
13469
  }
13470
13470
  function resolvePlayCheckExportNames(sourceCode) {
13471
- const exports = _chunkKAJK6XVIjs.listPlayFileExports.call(void 0, sourceCode);
13472
- if (!exports || exports.length === 0) return [_chunkKAJK6XVIjs.PLAY_DEFAULT_EXPORT];
13471
+ const exports = _chunkCFUTOWE4js.listPlayFileExports.call(void 0, sourceCode);
13472
+ if (!exports || exports.length === 0) return [_chunkCFUTOWE4js.PLAY_DEFAULT_EXPORT];
13473
13473
  return exports.map((entry) => entry.name);
13474
13474
  }
13475
13475
  function artifactForProductionCompatibilityCheck(artifact) {
@@ -13514,7 +13514,7 @@ async function checkOneExportedPlay(input) {
13514
13514
  }
13515
13515
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
13516
13516
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
13517
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
13517
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
13518
13518
  const integrationMode = resolveEvalIntegrationMode();
13519
13519
  const checked = await checkLocalPlayGraph({
13520
13520
  client,
@@ -13567,11 +13567,11 @@ async function handleFileBackedRun(options, hooks) {
13567
13567
  throw new Error("Expected a file-backed play run target.");
13568
13568
  }
13569
13569
  let client;
13570
- let cliAdmission = _chunk3TYXI7MDjs.usesInlinePlayAdmission.call(void 0,
13570
+ let cliAdmission = _chunkAG5SQSH5js.usesInlinePlayAdmission.call(void 0,
13571
13571
  "plays run",
13572
13572
  process.argv.slice(2)
13573
13573
  );
13574
- const progress = _nullishCoalesce(_chunkTWXPEHTMjs.getActiveCliProgress.call(void 0, ), () => ( _chunkTWXPEHTMjs.createCliProgress.call(void 0, !options.jsonOutput)));
13574
+ const progress = _nullishCoalesce(_chunk2MMUUSBNjs.getActiveCliProgress.call(void 0, ), () => ( _chunk2MMUUSBNjs.createCliProgress.call(void 0, !options.jsonOutput)));
13575
13575
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
13576
13576
  progress.phase("compiling play");
13577
13577
  const sourceCode = traceCliSync(
@@ -13588,13 +13588,13 @@ async function handleFileBackedRun(options, hooks) {
13588
13588
  }
13589
13589
  let graph;
13590
13590
  try {
13591
- graph = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
13591
+ graph = await _chunkDE354WOPjs.traceCliSpan.call(void 0,
13592
13592
  "cli.play_file_bundle_graph",
13593
13593
  { targetKind: "file" },
13594
13594
  () => collectBundledPlayGraph(
13595
13595
  absolutePlayPath,
13596
13596
  options.profile,
13597
- _chunkKAJK6XVIjs.PLAY_DEFAULT_EXPORT,
13597
+ _chunkCFUTOWE4js.PLAY_DEFAULT_EXPORT,
13598
13598
  { cache: !options.dryRun }
13599
13599
  )
13600
13600
  );
@@ -13607,9 +13607,9 @@ async function handleFileBackedRun(options, hooks) {
13607
13607
  );
13608
13608
  return 0;
13609
13609
  }
13610
- client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)(playRunClientOptions(options));
13610
+ client = new (0, _chunkXM5Z53VAjs.DeeplineClient)(playRunClientOptions(options));
13611
13611
  if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
13612
- await _chunk3TYXI7MDjs.checkPlayRunCompatibility.call(void 0,
13612
+ await _chunkAG5SQSH5js.checkPlayRunCompatibility.call(void 0,
13613
13613
  client.baseUrl,
13614
13614
  options.maintenancePolicy
13615
13615
  );
@@ -13622,7 +13622,7 @@ async function handleFileBackedRun(options, hooks) {
13622
13622
  });
13623
13623
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
13624
13624
  if (canDeferCompilerManifest) {
13625
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
13625
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
13626
13626
  phase: "cli.play_file_compile_manifests",
13627
13627
  ms: 0,
13628
13628
  ok: true,
@@ -13631,7 +13631,7 @@ async function handleFileBackedRun(options, hooks) {
13631
13631
  reason: "validated_by_run_route"
13632
13632
  });
13633
13633
  } else {
13634
- await _chunk76DCNYH3js.traceCliSpan.call(void 0,
13634
+ await _chunkDE354WOPjs.traceCliSpan.call(void 0,
13635
13635
  "cli.play_file_compile_manifests",
13636
13636
  { targetKind: "file", skipped: false },
13637
13637
  () => compileBundledPlayGraphManifests(client, graph)
@@ -13655,7 +13655,7 @@ async function handleFileBackedRun(options, hooks) {
13655
13655
  _chunkQWRHGGUHjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
13656
13656
  );
13657
13657
  progress.phase("pinning imported plays");
13658
- graph = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
13658
+ graph = await _chunkDE354WOPjs.traceCliSpan.call(void 0,
13659
13659
  "cli.play_file_pin_imports",
13660
13660
  { targetKind: "file" },
13661
13661
  () => _chunkQWRHGGUHjs.pinLocalPlayImports.call(void 0, client, graph)
@@ -13671,10 +13671,10 @@ async function handleFileBackedRun(options, hooks) {
13671
13671
  (file) => stageFile(file.logicalPath, file.absolutePath)
13672
13672
  );
13673
13673
  const compilerManifest = _nullishCoalesce(bundleResult.compilerManifest, () => ( null));
13674
- const fileInputBindings = _chunk2H4EY7KHjs.fileInputBindingsFromStaticPipeline.call(void 0,
13674
+ const fileInputBindings = _chunkJKVRBCZLjs.fileInputBindingsFromStaticPipeline.call(void 0,
13675
13675
  _optionalChain([compilerManifest, 'optionalAccess', _468 => _468.staticPipeline])
13676
13676
  );
13677
- const stagedFileInputs = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
13677
+ const stagedFileInputs = await _chunkDE354WOPjs.traceCliSpan.call(void 0,
13678
13678
  "cli.play_stage_inputs",
13679
13679
  {
13680
13680
  targetKind: "file",
@@ -13721,7 +13721,7 @@ async function handleFileBackedRun(options, hooks) {
13721
13721
  };
13722
13722
  if (options.watch) {
13723
13723
  progress.phase("starting run");
13724
- const finalStatus = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
13724
+ const finalStatus = await _chunkDE354WOPjs.traceCliSpan.call(void 0,
13725
13725
  "cli.play_start_watch",
13726
13726
  { targetKind: "file", playName },
13727
13727
  () => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -13777,7 +13777,7 @@ async function handleFileBackedRun(options, hooks) {
13777
13777
  return outputStatus.status === "completed" ? 0 : 1;
13778
13778
  }
13779
13779
  progress.phase("starting run");
13780
- const started = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
13780
+ const started = await _chunkDE354WOPjs.traceCliSpan.call(void 0,
13781
13781
  "cli.play_start_unwatched",
13782
13782
  { targetKind: "file", playName },
13783
13783
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _474 => _474.onSubmission]) }).catch(async (error) => {
@@ -13824,12 +13824,12 @@ async function handleNamedRun(options, hooks) {
13824
13824
  if (options.target.kind !== "name") {
13825
13825
  throw new Error("Expected a named play run target.");
13826
13826
  }
13827
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)(playRunClientOptions(options));
13828
- let cliAdmission = _chunk3TYXI7MDjs.usesInlinePlayAdmission.call(void 0,
13827
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)(playRunClientOptions(options));
13828
+ let cliAdmission = _chunkAG5SQSH5js.usesInlinePlayAdmission.call(void 0,
13829
13829
  "plays run",
13830
13830
  process.argv.slice(2)
13831
13831
  );
13832
- const progress = _nullishCoalesce(_chunkTWXPEHTMjs.getActiveCliProgress.call(void 0, ), () => ( _chunkTWXPEHTMjs.createCliProgress.call(void 0, !options.jsonOutput)));
13832
+ const progress = _nullishCoalesce(_chunk2MMUUSBNjs.getActiveCliProgress.call(void 0, ), () => ( _chunk2MMUUSBNjs.createCliProgress.call(void 0, !options.jsonOutput)));
13833
13833
  const playName = options.target.name;
13834
13834
  const runtimeInput = options.input ? { ...options.input } : {};
13835
13835
  try {
@@ -13844,14 +13844,14 @@ async function handleNamedRun(options, hooks) {
13844
13844
  });
13845
13845
  const playDetail = needsPlayDefinition ? await (async () => {
13846
13846
  progress.phase("loading play definition");
13847
- return _chunk76DCNYH3js.traceCliSpan.call(void 0,
13847
+ return _chunkDE354WOPjs.traceCliSpan.call(void 0,
13848
13848
  "cli.play_load_definition",
13849
13849
  { targetKind: "name", playName, skipped: false },
13850
13850
  () => assertCanonicalNamedPlayReference(client, playName, {
13851
13851
  command: "run"
13852
13852
  })
13853
13853
  );
13854
- })() : (_chunk76DCNYH3js.recordCliTrace.call(void 0, {
13854
+ })() : (_chunkDE354WOPjs.recordCliTrace.call(void 0, {
13855
13855
  phase: "cli.play_load_definition",
13856
13856
  ms: 0,
13857
13857
  ok: true,
@@ -13860,7 +13860,7 @@ async function handleNamedRun(options, hooks) {
13860
13860
  skipped: true
13861
13861
  }), null);
13862
13862
  progress.phase("selecting revision");
13863
- const selectedRevisionId = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
13863
+ const selectedRevisionId = await _chunkDE354WOPjs.traceCliSpan.call(void 0,
13864
13864
  "cli.play_select_revision",
13865
13865
  {
13866
13866
  targetKind: "name",
@@ -13881,14 +13881,14 @@ async function handleNamedRun(options, hooks) {
13881
13881
  maxTotalCredits: options.maxTotalCredits
13882
13882
  });
13883
13883
  const fileInputBindings = playDetail ? [
13884
- ..._chunk2H4EY7KHjs.fileInputBindingsFromPlaySchema.call(void 0, playDetail.play.inputSchema),
13885
- ..._chunk2H4EY7KHjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
13884
+ ..._chunkJKVRBCZLjs.fileInputBindingsFromPlaySchema.call(void 0, playDetail.play.inputSchema),
13885
+ ..._chunkJKVRBCZLjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
13886
13886
  ] : [];
13887
13887
  if (cliAdmission && fileInputBindings.length > 0) {
13888
- await _chunk3TYXI7MDjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13888
+ await _chunkAG5SQSH5js.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13889
13889
  cliAdmission = false;
13890
13890
  }
13891
- const stagedFileInputs = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
13891
+ const stagedFileInputs = await _chunkDE354WOPjs.traceCliSpan.call(void 0,
13892
13892
  "cli.play_stage_inputs",
13893
13893
  {
13894
13894
  targetKind: "name",
@@ -13911,7 +13911,7 @@ async function handleNamedRun(options, hooks) {
13911
13911
  const testPolicyOverrides = {
13912
13912
  ...options.debugMapLatency ? { mapLatencyProfile: true } : {}
13913
13913
  };
13914
- const startRequest = _chunk2H4EY7KHjs.buildNamedPlayRunRequest.call(void 0, {
13914
+ const startRequest = _chunkJKVRBCZLjs.buildNamedPlayRunRequest.call(void 0, {
13915
13915
  name: playName,
13916
13916
  revisionId: selectedRevisionId,
13917
13917
  runtimeInput,
@@ -13932,7 +13932,7 @@ async function handleNamedRun(options, hooks) {
13932
13932
  });
13933
13933
  if (options.watch) {
13934
13934
  progress.phase("starting run");
13935
- const finalStatus = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
13935
+ const finalStatus = await _chunkDE354WOPjs.traceCliSpan.call(void 0,
13936
13936
  "cli.play_start_watch",
13937
13937
  { targetKind: "name", playName },
13938
13938
  () => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -13991,7 +13991,7 @@ async function handleNamedRun(options, hooks) {
13991
13991
  return outputStatus.status === "completed" ? 0 : 1;
13992
13992
  }
13993
13993
  progress.phase("starting run");
13994
- const started = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
13994
+ const started = await _chunkDE354WOPjs.traceCliSpan.call(void 0,
13995
13995
  "cli.play_start_unwatched",
13996
13996
  { targetKind: "name", playName },
13997
13997
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _485 => _485.onSubmission]) }).catch(async (error) => {
@@ -14040,7 +14040,7 @@ async function handlePlayRun(args, hooks) {
14040
14040
  JSON.stringify({
14041
14041
  version: 1,
14042
14042
  admissionState: "submitted_unknown",
14043
- baseUrl: new (0, _chunkMPY4UD6Hjs.DeeplineClient)().baseUrl,
14043
+ baseUrl: new (0, _chunkXM5Z53VAjs.DeeplineClient)().baseUrl,
14044
14044
  ...intent
14045
14045
  })
14046
14046
  );
@@ -14123,7 +14123,7 @@ function parseRunIdPositional(args, usage2) {
14123
14123
  return arg;
14124
14124
  }
14125
14125
  }
14126
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(usage2);
14126
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(usage2);
14127
14127
  }
14128
14128
  function formatRunFactLines(value) {
14129
14129
  if (Array.isArray(value)) return value.flatMap(formatRunFactLines);
@@ -14269,7 +14269,7 @@ function renderRunOverviewText(overview, extras = {}) {
14269
14269
  );
14270
14270
  return `${lines.join("\n")}
14271
14271
 
14272
- ${_chunkD4VWHTDTjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
14272
+ ${_chunk3IRJIEIEjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
14273
14273
  }
14274
14274
  var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
14275
14275
  async function withRunReadTiming(command, stage, enabled, action) {
@@ -14293,7 +14293,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
14293
14293
  }
14294
14294
  }
14295
14295
  async function handleRunGet(args) {
14296
- const selection = _chunkD4VWHTDTjs.parseJsonFields.call(void 0,
14296
+ const selection = _chunk3IRJIEIEjs.parseJsonFields.call(void 0,
14297
14297
  args,
14298
14298
  args.includes("--config") ? "config" : "get"
14299
14299
  );
@@ -14306,7 +14306,7 @@ async function handleRunGet(args) {
14306
14306
  console.error(error instanceof Error ? error.message : usage2);
14307
14307
  return 1;
14308
14308
  }
14309
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
14309
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
14310
14310
  const timing = args.includes("--timing");
14311
14311
  if (args.includes("--web-url")) {
14312
14312
  const status2 = await withRunReadTiming(
@@ -14321,7 +14321,7 @@ async function handleRunGet(args) {
14321
14321
  return 1;
14322
14322
  }
14323
14323
  const dashboardUrl2 = _chunkVUYUI35Qjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
14324
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
14324
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
14325
14325
  { dashboardUrl: dashboardUrl2 },
14326
14326
  { json: args.includes("--json"), text: `${dashboardUrl2}
14327
14327
  ` }
@@ -14346,7 +14346,7 @@ async function handleRunGet(args) {
14346
14346
  "This server does not support recorded configuration reads."
14347
14347
  );
14348
14348
  }
14349
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
14349
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
14350
14350
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
14351
14351
  { json: true, fields: selection.fields }
14352
14352
  );
@@ -14359,7 +14359,7 @@ async function handleRunGet(args) {
14359
14359
  timing,
14360
14360
  () => client.getRunInput(runId)
14361
14361
  );
14362
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, input, { json: true });
14362
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, input, { json: true });
14363
14363
  return 0;
14364
14364
  }
14365
14365
  const full = args.includes("--full");
@@ -14385,8 +14385,8 @@ async function handleRunGet(args) {
14385
14385
  ) : status;
14386
14386
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
14387
14387
  const legacyDashboardUrl = legacyPlayName ? _chunkVUYUI35Qjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
14388
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
14389
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
14388
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
14389
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
14390
14390
  {
14391
14391
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
14392
14392
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
@@ -14396,7 +14396,7 @@ async function handleRunGet(args) {
14396
14396
  } else {
14397
14397
  writePlayResult(legacyStatus, false, { fullJson: full });
14398
14398
  if (legacyDashboardUrl)
14399
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
14399
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
14400
14400
  { dashboardUrl: legacyDashboardUrl },
14401
14401
  { json: false, text: `play page: ${legacyDashboardUrl}
14402
14402
  ` }
@@ -14426,10 +14426,10 @@ async function handleRunGet(args) {
14426
14426
  )
14427
14427
  ]);
14428
14428
  const hitLines = formatRunHitsLines(hits);
14429
- const json = _chunkD4VWHTDTjs.argsWantJson.call(void 0, args);
14429
+ const json = _chunk3IRJIEIEjs.argsWantJson.call(void 0, args);
14430
14430
  const playName = resolveRunPlayName(status, runId);
14431
14431
  const dashboardUrl = playName ? _chunkVUYUI35Qjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
14432
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
14432
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
14433
14433
  {
14434
14434
  ...overview,
14435
14435
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -14533,9 +14533,9 @@ async function handleRunLifecycleStatus(args) {
14533
14533
  console.error(error instanceof Error ? error.message : usage2);
14534
14534
  return 1;
14535
14535
  }
14536
- const status = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().runs.status(runId);
14537
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
14538
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, status, { json: true });
14536
+ const status = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().runs.status(runId);
14537
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
14538
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, status, { json: true });
14539
14539
  return 0;
14540
14540
  }
14541
14541
  if (!status.available) {
@@ -14575,7 +14575,7 @@ async function handleRunsRerun(args) {
14575
14575
  console.error(error instanceof Error ? error.message : usage2);
14576
14576
  return 1;
14577
14577
  }
14578
- const options = { json: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args) };
14578
+ const options = { json: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args) };
14579
14579
  for (let index = 0; index < args.length; index += 1) {
14580
14580
  if (args[index] === "--idempotency-key") {
14581
14581
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -14641,8 +14641,8 @@ ${usage2}
14641
14641
  Discover Plays: ${next.discover}
14642
14642
  Active runs: ${next.running}`
14643
14643
  );
14644
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
14645
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
14644
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
14645
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
14646
14646
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
14647
14647
  { json: true }
14648
14648
  );
@@ -14657,7 +14657,7 @@ Active runs: ${next.running}`
14657
14657
  console.error("--offset requires --play.");
14658
14658
  return 1;
14659
14659
  }
14660
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
14660
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
14661
14661
  const page = await withRunReadTiming(
14662
14662
  "runs list",
14663
14663
  "run inventory",
@@ -14724,14 +14724,14 @@ Active runs: ${next.running}`
14724
14724
  return lines2.join("\n");
14725
14725
  });
14726
14726
  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}${_chunkD4VWHTDTjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
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}${_chunk3IRJIEIEjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14728
14728
  if (page.hasMore) {
14729
14729
  lines.push("List truncated \u2014 more runs match this filter.");
14730
14730
  lines.push(
14731
14731
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14732
14732
  );
14733
14733
  }
14734
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
14734
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
14735
14735
  {
14736
14736
  runs,
14737
14737
  count: runs.length,
@@ -14745,7 +14745,7 @@ Active runs: ${next.running}`
14745
14745
  },
14746
14746
  render: { sections: [{ title: "runs", lines }] }
14747
14747
  },
14748
- { json: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args) }
14748
+ { json: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args) }
14749
14749
  );
14750
14750
  return 0;
14751
14751
  }
@@ -14775,7 +14775,7 @@ async function handleRunTail(args) {
14775
14775
  console.error("--log-level requires one of: debug, info, warn, error.");
14776
14776
  return 1;
14777
14777
  }
14778
- const parsed = _chunkMPY4UD6Hjs.parseLogLevel.call(void 0, value);
14778
+ const parsed = _chunkXM5Z53VAjs.parseLogLevel.call(void 0, value);
14779
14779
  if (!parsed) {
14780
14780
  console.error(
14781
14781
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14813,9 +14813,9 @@ async function handleRunTail(args) {
14813
14813
  );
14814
14814
  return 1;
14815
14815
  }
14816
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
14816
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
14817
14817
  const jsonLines = args.includes("--jsonl");
14818
- const jsonOutput = !jsonLines && _chunkD4VWHTDTjs.argsWantJson.call(void 0, args);
14818
+ const jsonOutput = !jsonLines && _chunk3IRJIEIEjs.argsWantJson.call(void 0, args);
14819
14819
  const compact = args.includes("--compact");
14820
14820
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14821
14821
  const compactState = {
@@ -14896,7 +14896,7 @@ async function handleRunLogs(args) {
14896
14896
  ]);
14897
14897
  const cursorIndex = args.indexOf("--cursor");
14898
14898
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14899
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkMPY4UD6Hjs.isRunLogsCursor.call(void 0, cursorValue));
14899
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkXM5Z53VAjs.isRunLogsCursor.call(void 0, cursorValue));
14900
14900
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14901
14901
  return handleRunEventSearch(args);
14902
14902
  }
@@ -14930,7 +14930,7 @@ async function handleRunLogs(args) {
14930
14930
  console.error("--log-level requires one of: debug, info, warn, error.");
14931
14931
  return 1;
14932
14932
  }
14933
- const parsed = _chunkMPY4UD6Hjs.parseLogLevel.call(void 0, value);
14933
+ const parsed = _chunkXM5Z53VAjs.parseLogLevel.call(void 0, value);
14934
14934
  if (!parsed) {
14935
14935
  console.error(
14936
14936
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14977,12 +14977,12 @@ async function handleRunLogs(args) {
14977
14977
  );
14978
14978
  return 1;
14979
14979
  }
14980
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
14980
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
14981
14981
  if (outPath) {
14982
14982
  const result2 = await client.runs.logs(runId, { all: true });
14983
- const logs = result2.entries.filter((line) => _chunkMPY4UD6Hjs.logLevelReaches.call(void 0, _chunkMPY4UD6Hjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkMPY4UD6Hjs.classifyLogLine.call(void 0, line).line);
14983
+ const logs = result2.entries.filter((line) => _chunkXM5Z53VAjs.logLevelReaches.call(void 0, _chunkXM5Z53VAjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkXM5Z53VAjs.classifyLogLine.call(void 0, line).line);
14984
14984
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14985
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
14985
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
14986
14986
  {
14987
14987
  runId: result2.runId,
14988
14988
  log_path: outPath,
@@ -15005,7 +15005,7 @@ async function handleRunLogs(args) {
15005
15005
  ]
15006
15006
  }
15007
15007
  },
15008
- { json: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args) }
15008
+ { json: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args) }
15009
15009
  );
15010
15010
  return 0;
15011
15011
  }
@@ -15036,7 +15036,7 @@ async function handleRunLogs(args) {
15036
15036
  }
15037
15037
  };
15038
15038
  const text = buildRunLogsText(filteredResult);
15039
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
15039
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
15040
15040
  {
15041
15041
  runId: result.runId,
15042
15042
  totalCount: result.totalCount,
@@ -15060,7 +15060,7 @@ async function handleRunLogs(args) {
15060
15060
  render: { sections: [{ title: "run logs", lines: entries }] }
15061
15061
  },
15062
15062
  {
15063
- json: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args),
15063
+ json: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args),
15064
15064
  text
15065
15065
  }
15066
15066
  );
@@ -15084,7 +15084,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15084
15084
  );
15085
15085
  }
15086
15086
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
15087
- (entry) => _chunkMPY4UD6Hjs.logLevelReaches.call(void 0, _chunkMPY4UD6Hjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
15087
+ (entry) => _chunkXM5Z53VAjs.logLevelReaches.call(void 0, _chunkXM5Z53VAjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
15088
15088
  );
15089
15089
  const selected = matching.slice(-limit);
15090
15090
  const olderMatchesExist = matching.length > selected.length;
@@ -15094,7 +15094,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
15094
15094
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _513 => _513.at, 'call', _514 => _514(-1), 'optionalAccess', _515 => _515.seq]), () => ( null)),
15095
15095
  truncated: result.truncated || olderMatchesExist,
15096
15096
  hasMore: olderMatchesExist,
15097
- nextCursor: olderMatchesExist ? _chunkMPY4UD6Hjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15097
+ nextCursor: olderMatchesExist ? _chunkXM5Z53VAjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
15098
15098
  };
15099
15099
  }
15100
15100
  async function handleRunEventSearch(args) {
@@ -15161,7 +15161,7 @@ ${usage2}`);
15161
15161
  namespace,
15162
15162
  ...backend ? { backend } : {}
15163
15163
  } : void 0;
15164
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
15164
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
15165
15165
  const result = await client.runs.searchEvents({
15166
15166
  ...runId ? { runId } : {},
15167
15167
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -15233,7 +15233,7 @@ ${renderedDetails}` : ""}`;
15233
15233
  "--limit",
15234
15234
  String(limit)
15235
15235
  ].join(" ") : null;
15236
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
15236
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
15237
15237
  {
15238
15238
  events,
15239
15239
  nextCursor: result.nextCursor,
@@ -15244,14 +15244,14 @@ ${renderedDetails}` : ""}`;
15244
15244
  render: { sections: [{ title: "runtime events", lines }] }
15245
15245
  },
15246
15246
  {
15247
- json: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args),
15247
+ json: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args),
15248
15248
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
15249
15249
  }
15250
15250
  );
15251
15251
  return 0;
15252
15252
  }
15253
15253
  function buildRunLogsText(result) {
15254
- const lines = result.entries.map((line) => _chunkMPY4UD6Hjs.classifyLogLine.call(void 0, line).line);
15254
+ const lines = result.entries.map((line) => _chunkXM5Z53VAjs.classifyLogLine.call(void 0, line).line);
15255
15255
  if (result.warning) {
15256
15256
  if (lines.length > 0) lines.push("");
15257
15257
  lines.push(`warning: ${result.warning}`);
@@ -15285,7 +15285,7 @@ async function handleRunStop(args) {
15285
15285
  reason = args[++index];
15286
15286
  }
15287
15287
  }
15288
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
15288
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
15289
15289
  const result = await client.runs.stop(runId, { reason });
15290
15290
  const state = resolveRunStopState(result);
15291
15291
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -15300,7 +15300,7 @@ async function handleRunStop(args) {
15300
15300
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
15301
15301
  `inspect: deepline runs get ${runId} --full`
15302
15302
  ];
15303
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
15303
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
15304
15304
  {
15305
15305
  ...cancelling,
15306
15306
  state,
@@ -15315,7 +15315,7 @@ async function handleRunStop(args) {
15315
15315
  ]
15316
15316
  }
15317
15317
  },
15318
- { json: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args) }
15318
+ { json: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args) }
15319
15319
  );
15320
15320
  return 0;
15321
15321
  }
@@ -15332,7 +15332,7 @@ async function handleRunStop(args) {
15332
15332
  ];
15333
15333
  process.stderr.write(`${lines2.join("\n")}
15334
15334
  `);
15335
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
15335
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
15336
15336
  {
15337
15337
  ...result,
15338
15338
  render: {
@@ -15347,7 +15347,7 @@ async function handleRunStop(args) {
15347
15347
  ]
15348
15348
  }
15349
15349
  },
15350
- { json: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args) }
15350
+ { json: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args) }
15351
15351
  );
15352
15352
  return 1;
15353
15353
  }
@@ -15358,12 +15358,12 @@ async function handleRunStop(args) {
15358
15358
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
15359
15359
  ] : []
15360
15360
  ];
15361
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
15361
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
15362
15362
  {
15363
15363
  ...result,
15364
15364
  render: { sections: [{ title: "run stop", lines }] }
15365
15365
  },
15366
- { json: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args) }
15366
+ { json: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args) }
15367
15367
  );
15368
15368
  return 0;
15369
15369
  }
@@ -15413,18 +15413,18 @@ async function handleRunStopAll(args) {
15413
15413
  reason = args[++index];
15414
15414
  }
15415
15415
  }
15416
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
15416
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
15417
15417
  if (dryRun) {
15418
15418
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
15419
15419
  const lines2 = buildStopAllDryRunTextLines(result2);
15420
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
15420
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
15421
15421
  {
15422
15422
  ...result2,
15423
15423
  render: {
15424
15424
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
15425
15425
  }
15426
15426
  },
15427
- { json: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
15427
+ { json: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
15428
15428
  ` }
15429
15429
  );
15430
15430
  return 0;
@@ -15437,17 +15437,17 @@ async function handleRunStopAll(args) {
15437
15437
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
15438
15438
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
15439
15439
  ];
15440
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
15440
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
15441
15441
  {
15442
15442
  ...result,
15443
15443
  render: { sections: [{ title: "workspace stop-all", lines }] }
15444
15444
  },
15445
- { json: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args) }
15445
+ { json: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args) }
15446
15446
  );
15447
15447
  return result.failed > 0 || result.partial ? 1 : 0;
15448
15448
  }
15449
15449
  async function handleRunExport(args) {
15450
- const selection = _chunkD4VWHTDTjs.parseJsonFields.call(void 0, args, "export");
15450
+ const selection = _chunk3IRJIEIEjs.parseJsonFields.call(void 0, args, "export");
15451
15451
  args = selection.args;
15452
15452
  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
15453
  let runId;
@@ -15480,7 +15480,7 @@ async function handleRunExport(args) {
15480
15480
  if (arg === "--timeout-ms") {
15481
15481
  waitTimeoutMs = parsePositiveInteger2(_nullishCoalesce(args[++index], () => ( "")), arg);
15482
15482
  if (!wait) {
15483
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
15483
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
15484
15484
  "--timeout-ms requires --wait.",
15485
15485
  void 0,
15486
15486
  "INVALID_ARGUMENT"
@@ -15493,30 +15493,30 @@ async function handleRunExport(args) {
15493
15493
  return 1;
15494
15494
  }
15495
15495
  if (format !== "csv" && format !== "json") {
15496
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
15496
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
15497
15497
  "Invalid --format. Choose csv or json.",
15498
15498
  void 0,
15499
15499
  "INVALID_ARGUMENT"
15500
15500
  );
15501
15501
  }
15502
15502
  if (metadataOutPath === outPath) {
15503
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
15503
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
15504
15504
  "--metadata-out must differ from --out.",
15505
15505
  void 0,
15506
15506
  "INVALID_ARGUMENT"
15507
15507
  );
15508
15508
  }
15509
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
15509
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
15510
15510
  let status = await client.getPlayStatus(runId, { full: true });
15511
15511
  assertRunExportStatusIdentity(status, runId);
15512
15512
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
15513
- const progress = _chunkTWXPEHTMjs.createCliProgress.call(void 0, !_chunkD4VWHTDTjs.argsWantJson.call(void 0, args));
15513
+ const progress = _chunk2MMUUSBNjs.createCliProgress.call(void 0, !_chunk3IRJIEIEjs.argsWantJson.call(void 0, args));
15514
15514
  try {
15515
15515
  await waitForPlayCompletionByWatch({
15516
15516
  client,
15517
15517
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
15518
15518
  workflowId: runId,
15519
- jsonOutput: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args),
15519
+ jsonOutput: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args),
15520
15520
  emitLogs: false,
15521
15521
  waitTimeoutMs,
15522
15522
  startedAt: Date.now(),
@@ -15617,8 +15617,8 @@ async function handleRunExport(args) {
15617
15617
  "utf-8"
15618
15618
  );
15619
15619
  }
15620
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, payload, {
15621
- json: _chunkD4VWHTDTjs.argsWantJson.call(void 0, args),
15620
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, payload, {
15621
+ json: _chunk3IRJIEIEjs.argsWantJson.call(void 0, args),
15622
15622
  fields: selection.fields,
15623
15623
  text: `${lines.join("\n")}
15624
15624
  `
@@ -15627,7 +15627,7 @@ async function handleRunExport(args) {
15627
15627
  }
15628
15628
  function assertRunExportStatusIdentity(status, requestedRunId) {
15629
15629
  if (status.runId === requestedRunId) return;
15630
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
15630
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
15631
15631
  `Run status identity did not match requested run ${requestedRunId}; refusing to export rows for ${status.runId || "an unidentified run"}.`,
15632
15632
  void 0,
15633
15633
  "RUN_EXPORT_SCOPE_MISMATCH",
@@ -15652,10 +15652,10 @@ async function handlePlayGet(args) {
15652
15652
  );
15653
15653
  return 2;
15654
15654
  }
15655
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
15655
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
15656
15656
  const explicitJson = args.includes("--json");
15657
15657
  const sourceOutput = args.includes("--source");
15658
- const jsonOutput = sourceOutput ? explicitJson : _chunkD4VWHTDTjs.argsWantJson.call(void 0, args);
15658
+ const jsonOutput = sourceOutput ? explicitJson : _chunk3IRJIEIEjs.argsWantJson.call(void 0, args);
15659
15659
  const requestedRevisionFlags = [
15660
15660
  args.includes("--working"),
15661
15661
  args.includes("--live"),
@@ -15715,7 +15715,7 @@ async function handlePlayGet(args) {
15715
15715
  }
15716
15716
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15717
15717
  if (jsonOutput) {
15718
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, {
15718
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, {
15719
15719
  ...detail,
15720
15720
  ...materializedFile ? {
15721
15721
  message: loadedMessage,
@@ -15807,8 +15807,8 @@ async function handlePlayVersions(args) {
15807
15807
  console.error("Usage: deepline plays versions --name <name> [--json]");
15808
15808
  return 1;
15809
15809
  }
15810
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
15811
- const jsonOutput = _chunkD4VWHTDTjs.argsWantJson.call(void 0, args);
15810
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
15811
+ const jsonOutput = _chunk3IRJIEIEjs.argsWantJson.call(void 0, args);
15812
15812
  await assertCanonicalNamedPlayReference(client, playName, {
15813
15813
  command: "versions"
15814
15814
  });
@@ -15816,7 +15816,7 @@ async function handlePlayVersions(args) {
15816
15816
  parseReferencedPlayTarget2(playName).playName
15817
15817
  );
15818
15818
  if (jsonOutput) {
15819
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, { versions });
15819
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, { versions });
15820
15820
  return 0;
15821
15821
  }
15822
15822
  if (versions.length === 0) {
@@ -15854,9 +15854,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
15854
15854
  "signals"
15855
15855
  ];
15856
15856
  async function handlePlayList(args) {
15857
- const jsonOutput = _chunkD4VWHTDTjs.argsWantJson.call(void 0, args);
15857
+ const jsonOutput = _chunk3IRJIEIEjs.argsWantJson.call(void 0, args);
15858
15858
  const showCost = args.includes("--show-cost");
15859
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
15859
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
15860
15860
  const categoriesIndex = args.indexOf("--categories");
15861
15861
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _552 => _552[categoriesIndex + 1], 'optionalAccess', _553 => _553.trim, 'call', _554 => _554()]) : void 0;
15862
15862
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15953,7 +15953,7 @@ async function handlePlayList(args) {
15953
15953
  lines.push("List truncated \u2014 more plays are available.");
15954
15954
  lines.push(`Next page: ${nextPage}`);
15955
15955
  }
15956
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
15956
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
15957
15957
  {
15958
15958
  plays,
15959
15959
  count: plays.length,
@@ -15971,7 +15971,7 @@ async function handlePlayList(args) {
15971
15971
  }
15972
15972
  async function handlePlayPin(args, pinned) {
15973
15973
  const target = _optionalChain([args, 'access', _563 => _563.find, 'call', _564 => _564((arg) => !arg.startsWith("-")), 'optionalAccess', _565 => _565.trim, 'call', _566 => _566()]);
15974
- const jsonOutput = _chunkD4VWHTDTjs.argsWantJson.call(void 0, args);
15974
+ const jsonOutput = _chunk3IRJIEIEjs.argsWantJson.call(void 0, args);
15975
15975
  const dryRun = args.includes("--dry-run");
15976
15976
  if (!target) {
15977
15977
  console.error(
@@ -15989,11 +15989,11 @@ async function handlePlayPin(args, pinned) {
15989
15989
  const name = parsedTarget.playName;
15990
15990
  const plan = { name, pinned, dryRun };
15991
15991
  if (dryRun) {
15992
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, plan);
15992
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, plan);
15993
15993
  return 0;
15994
15994
  }
15995
- const result = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().setPlayPinned(name, pinned);
15996
- if (jsonOutput) _chunkD4VWHTDTjs.printCompactJson.call(void 0, result);
15995
+ const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().setPlayPinned(name, pinned);
15996
+ if (jsonOutput) _chunk3IRJIEIEjs.printCompactJson.call(void 0, result);
15997
15997
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15998
15998
  return 0;
15999
15999
  }
@@ -16119,12 +16119,12 @@ async function handlePlayGrep(args) {
16119
16119
  console.error("Usage: deepline plays grep <query> [--json]");
16120
16120
  return 1;
16121
16121
  }
16122
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
16122
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
16123
16123
  const results = (await client.listPlays({ grep: query })).map(
16124
16124
  summarizePlayGrepResult
16125
16125
  );
16126
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
16127
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, {
16126
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
16127
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, {
16128
16128
  plays: results,
16129
16129
  count: results.length,
16130
16130
  query,
@@ -16147,7 +16147,7 @@ async function handlePlayGrep(args) {
16147
16147
  return 0;
16148
16148
  }
16149
16149
  async function handlePlayDescribe(args) {
16150
- const selection = _chunkD4VWHTDTjs.parseJsonFields.call(void 0, args, "describe");
16150
+ const selection = _chunk3IRJIEIEjs.parseJsonFields.call(void 0, args, "describe");
16151
16151
  args = selection.args;
16152
16152
  const playName = args[0];
16153
16153
  if (!playName) {
@@ -16181,8 +16181,8 @@ async function handlePlayDescribe(args) {
16181
16181
  `deepline plays check ${playName}`,
16182
16182
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
16183
16183
  ];
16184
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
16185
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, {
16184
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
16185
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, {
16186
16186
  ok: false,
16187
16187
  error: { message },
16188
16188
  next
@@ -16196,7 +16196,7 @@ async function handlePlayDescribe(args) {
16196
16196
  }
16197
16197
  return 2;
16198
16198
  }
16199
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
16199
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
16200
16200
  await assertCanonicalNamedPlayReference(client, playName, {
16201
16201
  command: "describe"
16202
16202
  });
@@ -16206,9 +16206,9 @@ async function handlePlayDescribe(args) {
16206
16206
  compact: args.includes("--compact")
16207
16207
  }
16208
16208
  );
16209
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
16210
- if (selection.fields) _chunkD4VWHTDTjs.printJson.call(void 0, play, selection.fields);
16211
- else _chunkD4VWHTDTjs.printCompactJson.call(void 0, play);
16209
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
16210
+ if (selection.fields) _chunk3IRJIEIEjs.printJson.call(void 0, play, selection.fields);
16211
+ else _chunk3IRJIEIEjs.printCompactJson.call(void 0, play);
16212
16212
  return 0;
16213
16213
  }
16214
16214
  printPlayDescription(play);
@@ -16230,7 +16230,7 @@ async function handlePlaySave(args) {
16230
16230
  }
16231
16231
  let graph;
16232
16232
  try {
16233
- graph = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
16233
+ graph = await _chunkDE354WOPjs.traceCliSpan.call(void 0,
16234
16234
  "cli.play_save_bundle_graph",
16235
16235
  { targetKind: "file" },
16236
16236
  () => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
@@ -16252,7 +16252,7 @@ async function handlePlaySave(args) {
16252
16252
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
16253
16253
  };
16254
16254
  if (options.jsonOutput) {
16255
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, result);
16255
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, result);
16256
16256
  } else {
16257
16257
  console.error(result.message);
16258
16258
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -16274,7 +16274,7 @@ async function handlePlaySave(args) {
16274
16274
  };
16275
16275
  if (options.dryRun) {
16276
16276
  if (options.jsonOutput) {
16277
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, dryRun);
16277
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, dryRun);
16278
16278
  } else {
16279
16279
  console.log(`Dry run: ${playName}`);
16280
16280
  console.log(` source: ${dryRun.sourceHash}`);
@@ -16283,14 +16283,14 @@ async function handlePlaySave(args) {
16283
16283
  }
16284
16284
  return 0;
16285
16285
  }
16286
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
16286
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
16287
16287
  try {
16288
- await _chunk76DCNYH3js.traceCliSpan.call(void 0,
16288
+ await _chunkDE354WOPjs.traceCliSpan.call(void 0,
16289
16289
  "cli.play_save_compile_manifests",
16290
16290
  { targetKind: "file", nodeCount: graph.nodes.size },
16291
16291
  () => compileBundledPlayGraphManifests(client, graph)
16292
16292
  );
16293
- const saved = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
16293
+ const saved = await _chunkDE354WOPjs.traceCliSpan.call(void 0,
16294
16294
  "cli.play_save_register_draft",
16295
16295
  { targetKind: "file", playName, artifactHash },
16296
16296
  () => client.registerPlayArtifact({
@@ -16319,7 +16319,7 @@ async function handlePlaySave(args) {
16319
16319
  }
16320
16320
  };
16321
16321
  if (options.jsonOutput) {
16322
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, result);
16322
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, result);
16323
16323
  } else {
16324
16324
  console.log(
16325
16325
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -16345,7 +16345,7 @@ async function handlePlayPublish(args) {
16345
16345
  }
16346
16346
  const { target: playName, useLatest } = options;
16347
16347
  let revisionId = options.revisionId;
16348
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
16348
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
16349
16349
  if (isFileTarget2(playName)) {
16350
16350
  if (revisionId || useLatest) {
16351
16351
  console.error(
@@ -16355,7 +16355,7 @@ async function handlePlayPublish(args) {
16355
16355
  }
16356
16356
  let graph;
16357
16357
  try {
16358
- graph = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
16358
+ graph = await _chunkDE354WOPjs.traceCliSpan.call(void 0,
16359
16359
  "cli.play_publish_bundle_graph",
16360
16360
  { targetKind: "file" },
16361
16361
  () => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
@@ -16377,7 +16377,7 @@ async function handlePlayPublish(args) {
16377
16377
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
16378
16378
  };
16379
16379
  if (options.jsonOutput) {
16380
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, result3);
16380
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, result3);
16381
16381
  } else {
16382
16382
  console.error(result3.message);
16383
16383
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -16400,7 +16400,7 @@ async function handlePlayPublish(args) {
16400
16400
  };
16401
16401
  if (options.dryRun) {
16402
16402
  if (options.jsonOutput) {
16403
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, dryRun);
16403
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, dryRun);
16404
16404
  } else {
16405
16405
  console.log(`Dry run: ${rootPlayName}`);
16406
16406
  console.log(` source: ${dryRun.sourceHash}`);
@@ -16413,18 +16413,18 @@ async function handlePlayPublish(args) {
16413
16413
  try {
16414
16414
  previousLive = await _asyncNullishCoalesce((await client.getPlay(rootPlayName)).play.liveRevision, async () => ( null));
16415
16415
  } catch (error) {
16416
- if (!(error instanceof _chunkPPDBRJRWjs.DeeplineError) || error.statusCode !== 404) {
16416
+ if (!(error instanceof _chunkDIAWYWT5js.DeeplineError) || error.statusCode !== 404) {
16417
16417
  console.error(error instanceof Error ? error.message : String(error));
16418
16418
  return 5;
16419
16419
  }
16420
16420
  }
16421
16421
  try {
16422
- await _chunk76DCNYH3js.traceCliSpan.call(void 0,
16422
+ await _chunkDE354WOPjs.traceCliSpan.call(void 0,
16423
16423
  "cli.play_publish_compile_manifests",
16424
16424
  { targetKind: "file", nodeCount: graph.nodes.size },
16425
16425
  () => compileBundledPlayGraphManifests(client, graph)
16426
16426
  );
16427
- await _chunk76DCNYH3js.traceCliSpan.call(void 0,
16427
+ await _chunkDE354WOPjs.traceCliSpan.call(void 0,
16428
16428
  "cli.play_publish_imports",
16429
16429
  { targetKind: "file", nodeCount: graph.nodes.size },
16430
16430
  () => publishImportedPlayDependencies(client, graph)
@@ -16433,7 +16433,7 @@ async function handlePlayPublish(args) {
16433
16433
  console.error(error instanceof Error ? error.message : String(error));
16434
16434
  return 1;
16435
16435
  }
16436
- const published = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
16436
+ const published = await _chunkDE354WOPjs.traceCliSpan.call(void 0,
16437
16437
  "cli.play_publish_register_root",
16438
16438
  {
16439
16439
  targetKind: "file",
@@ -16468,7 +16468,7 @@ async function handlePlayPublish(args) {
16468
16468
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
16469
16469
  };
16470
16470
  if (options.jsonOutput) {
16471
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, result2);
16471
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, result2);
16472
16472
  } else {
16473
16473
  printPublishReceipt({
16474
16474
  name: rootPlayName,
@@ -16499,7 +16499,7 @@ async function handlePlayPublish(args) {
16499
16499
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
16500
16500
  latest: useLatest
16501
16501
  };
16502
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, result2);
16502
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, result2);
16503
16503
  return 0;
16504
16504
  }
16505
16505
  const resolvedName = parseReferencedPlayTarget2(playName).playName;
@@ -16523,7 +16523,7 @@ async function handlePlayPublish(args) {
16523
16523
  revisionId ? { revisionId } : {}
16524
16524
  );
16525
16525
  if (options.jsonOutput) {
16526
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, result);
16526
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, result);
16527
16527
  } else {
16528
16528
  printPublishReceipt({
16529
16529
  name: result.name,
@@ -16563,7 +16563,7 @@ async function handlePlayDelete(args) {
16563
16563
  );
16564
16564
  return 2;
16565
16565
  }
16566
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
16566
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
16567
16567
  let detail;
16568
16568
  try {
16569
16569
  detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
@@ -16587,8 +16587,8 @@ async function handlePlayDelete(args) {
16587
16587
  name: resolvedName,
16588
16588
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
16589
16589
  };
16590
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
16591
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, result2);
16590
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
16591
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, result2);
16592
16592
  } else {
16593
16593
  process.stdout.write(
16594
16594
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -16598,8 +16598,8 @@ async function handlePlayDelete(args) {
16598
16598
  return 0;
16599
16599
  }
16600
16600
  const result = await client.deletePlay(resolvedName);
16601
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
16602
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, result);
16601
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
16602
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, result);
16603
16603
  return result.archived || result.alreadyArchived ? 0 : 4;
16604
16604
  }
16605
16605
  if (result.alreadyArchived) {
@@ -16638,13 +16638,13 @@ async function handlePlayRestore(args) {
16638
16638
  );
16639
16639
  return 2;
16640
16640
  }
16641
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
16641
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
16642
16642
  try {
16643
16643
  const result = await client.restorePlay(
16644
16644
  parseReferencedPlayTarget2(playName).playName
16645
16645
  );
16646
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
16647
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, result);
16646
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
16647
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, result);
16648
16648
  return result.restored || result.alreadyActive ? 0 : 4;
16649
16649
  }
16650
16650
  if (result.alreadyActive) {
@@ -16772,21 +16772,21 @@ Common commands:
16772
16772
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16773
16773
  }
16774
16774
  };
16775
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, result2, {
16775
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0, result2, {
16776
16776
  json: options.json,
16777
16777
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16778
16778
  `
16779
16779
  });
16780
16780
  return;
16781
16781
  }
16782
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
16782
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
16783
16783
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16784
16784
  throw new Error(
16785
16785
  "The submission belongs to a different API origin. Select its original host before recovery."
16786
16786
  );
16787
16787
  }
16788
16788
  const result = await client.startPlayRun(saved.request);
16789
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
16789
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
16790
16790
  { ...result },
16791
16791
  {
16792
16792
  json: options.json,
@@ -16822,7 +16822,7 @@ Examples:
16822
16822
  ).action(async (target, options) => {
16823
16823
  process.exitCode = await handlePlayCheck([
16824
16824
  target,
16825
- ..._chunkD4VWHTDTjs.jsonFieldArgs.call(void 0, options.json),
16825
+ ..._chunk3IRJIEIEjs.jsonFieldArgs.call(void 0, options.json),
16826
16826
  ...options.full ? ["--full"] : []
16827
16827
  ]);
16828
16828
  });
@@ -17030,10 +17030,10 @@ JSON field selection:
17030
17030
  _nullishCoalesce(effectiveTarget, () => ( void 0)),
17031
17031
  options,
17032
17032
  passthroughArgs,
17033
- _chunk76DCNYH3js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
17033
+ _chunkDE354WOPjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
17034
17034
  )
17035
17035
  );
17036
- _chunk76DCNYH3js.recordCliTrace.call(void 0, {
17036
+ _chunkDE354WOPjs.recordCliTrace.call(void 0, {
17037
17037
  phase: "cli.play_command_exit",
17038
17038
  exitCode
17039
17039
  });
@@ -17082,9 +17082,9 @@ Examples:
17082
17082
  const limit = Number(options.historyLimit);
17083
17083
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
17084
17084
  throw new Error("--history-limit must be an integer from 1 to 30.");
17085
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
17085
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
17086
17086
  if (options.binding) {
17087
- _chunkD4VWHTDTjs.printCompactJson.call(void 0,
17087
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0,
17088
17088
  await client.getPlayTriggerHistory(options.binding, { limit })
17089
17089
  );
17090
17090
  return;
@@ -17092,7 +17092,7 @@ Examples:
17092
17092
  const result = await client.listPlayTriggerInventory({
17093
17093
  cursor: options.cursor
17094
17094
  });
17095
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, {
17095
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, {
17096
17096
  ...result,
17097
17097
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
17098
17098
  });
@@ -17139,7 +17139,7 @@ Examples:
17139
17139
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
17140
17140
  throw new Error("--group-by must be kind or trigger_source.");
17141
17141
  }
17142
- const result = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().getPlaysActivity({
17142
+ const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().getPlaysActivity({
17143
17143
  timeZone: options.timeZone,
17144
17144
  days,
17145
17145
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -17153,7 +17153,7 @@ Examples:
17153
17153
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
17154
17154
  );
17155
17155
  }
17156
- _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
17156
+ _chunk3IRJIEIEjs.printCommandEnvelope.call(void 0,
17157
17157
  { ...result },
17158
17158
  {
17159
17159
  json: Boolean(options.json),
@@ -17182,7 +17182,7 @@ Examples:
17182
17182
  false
17183
17183
  );
17184
17184
  });
17185
- _chunkIX7ZGPLUjs.registerDeprecatedSearchCommand.call(void 0,
17185
+ _chunkDV4G676Cjs.registerDeprecatedSearchCommand.call(void 0,
17186
17186
  play,
17187
17187
  (options) => options.all ? ["plays"] : ["prebuilts"]
17188
17188
  );
@@ -17225,7 +17225,7 @@ Examples:
17225
17225
  );
17226
17226
  _chunkGXOQRZXGjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
17227
17227
  async (target, options) => {
17228
- const ownView = () => handlePlayDescribe(_chunkD4VWHTDTjs.describeArgs.call(void 0, target, options));
17228
+ const ownView = () => handlePlayDescribe(_chunk3IRJIEIEjs.describeArgs.call(void 0, target, options));
17229
17229
  const [flagText] = [options.json].filter(
17230
17230
  (value) => typeof value === "string"
17231
17231
  );
@@ -17236,7 +17236,7 @@ Examples:
17236
17236
  process.exitCode = await ownView();
17237
17237
  return;
17238
17238
  }
17239
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-M7AP5WVH.js")));
17239
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-F34NXGCE.js")));
17240
17240
  process.exitCode = await describeAnything(
17241
17241
  name,
17242
17242
  {
@@ -17354,7 +17354,7 @@ Examples:
17354
17354
  deepline plays deployments <deployment-id>
17355
17355
  `
17356
17356
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
17357
- async (id, options) => id ? _chunkWJ4PNSX3js.handleDeploymentGet.call(void 0, id, options) : _chunkWJ4PNSX3js.handleDeploymentsList.call(void 0, options)
17357
+ async (id, options) => id ? _chunkF2EMJUDJjs.handleDeploymentGet.call(void 0, id, options) : _chunkF2EMJUDJjs.handleDeploymentsList.call(void 0, options)
17358
17358
  );
17359
17359
  addPublishHelp(
17360
17360
  play.command("publish <target>").description(
@@ -17489,14 +17489,14 @@ Examples:
17489
17489
  const limit = Number(options.limit);
17490
17490
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
17491
17491
  throw new Error("--limit must be an integer from 1 to 1000.");
17492
- const result = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().runs.rowHistory({
17492
+ const result = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().runs.rowHistory({
17493
17493
  playName: options.play,
17494
17494
  runId,
17495
17495
  tableNamespace: options.dataset,
17496
17496
  limit,
17497
17497
  cursor: options.cursor
17498
17498
  });
17499
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, {
17499
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, {
17500
17500
  ...result,
17501
17501
  ...result.nextCursor ? {
17502
17502
  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 +17566,7 @@ Examples:
17566
17566
  ).action(async (runId, options) => {
17567
17567
  process.exitCode = await handleRunGet([
17568
17568
  runId,
17569
- ..._chunkD4VWHTDTjs.jsonFieldArgs.call(void 0, options.json),
17569
+ ..._chunk3IRJIEIEjs.jsonFieldArgs.call(void 0, options.json),
17570
17570
  ...options.webUrl ? ["--web-url"] : [],
17571
17571
  ...options.full ? ["--full"] : [],
17572
17572
  ...options.input ? ["--input"] : [],
@@ -17852,7 +17852,7 @@ Examples:
17852
17852
  ...options.allowEmpty ? ["--allow-empty"] : [],
17853
17853
  ...options.wait ? ["--wait"] : [],
17854
17854
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17855
- ..._chunkD4VWHTDTjs.jsonFieldArgs.call(void 0, options.json)
17855
+ ..._chunk3IRJIEIEjs.jsonFieldArgs.call(void 0, options.json)
17856
17856
  ]);
17857
17857
  });
17858
17858
  const share = play.command("share").description(
@@ -18018,10 +18018,10 @@ async function handlePlayShareStatus(args) {
18018
18018
  return 2;
18019
18019
  }
18020
18020
  const name = parseReferencedPlayTarget2(target).playName;
18021
- const status = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().getSharePage(name);
18021
+ const status = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().getSharePage(name);
18022
18022
  const outputStatus = shareStatusForOutput(status);
18023
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
18024
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, outputStatus);
18023
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
18024
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, outputStatus);
18025
18025
  return 0;
18026
18026
  }
18027
18027
  if (!outputStatus.share) {
@@ -18060,7 +18060,7 @@ async function handlePlaySharePublish(args) {
18060
18060
  return 2;
18061
18061
  }
18062
18062
  const name = parseReferencedPlayTarget2(target).playName;
18063
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
18063
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
18064
18064
  let revisionId = shareFlagValue(args, "--revision-id");
18065
18065
  let resolvedVersion;
18066
18066
  if (!revisionId) {
@@ -18091,8 +18091,8 @@ async function handlePlaySharePublish(args) {
18091
18091
  );
18092
18092
  if (!hasCompleted) {
18093
18093
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
18094
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
18095
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, {
18094
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
18095
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, {
18096
18096
  ok: false,
18097
18097
  code: "NO_SUCCESSFUL_RUN",
18098
18098
  message,
@@ -18116,8 +18116,8 @@ async function handlePlaySharePublish(args) {
18116
18116
  };
18117
18117
  if (args.includes("--dry-run")) {
18118
18118
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
18119
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
18120
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, plan);
18119
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
18120
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, plan);
18121
18121
  } else {
18122
18122
  console.log(
18123
18123
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -18127,8 +18127,8 @@ async function handlePlaySharePublish(args) {
18127
18127
  }
18128
18128
  const status = await client.publishSharePage(name, request);
18129
18129
  const outputStatus = shareStatusForOutput(status);
18130
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
18131
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, outputStatus);
18130
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
18131
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, outputStatus);
18132
18132
  return 0;
18133
18133
  }
18134
18134
  const urls = shareUrlFields(outputStatus);
@@ -18159,9 +18159,9 @@ async function handlePlayShareUpdate(args) {
18159
18159
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
18160
18160
  ...seoIndexing ? { seoIndexing } : {}
18161
18161
  };
18162
- const status = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().updateSharePage(name, request);
18163
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
18164
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, status);
18162
+ const status = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().updateSharePage(name, request);
18163
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
18164
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, status);
18165
18165
  return 0;
18166
18166
  }
18167
18167
  console.log(`Updated ${name} share settings.`);
@@ -18176,7 +18176,7 @@ async function handlePlayShareRegenerate(args) {
18176
18176
  return 2;
18177
18177
  }
18178
18178
  const name = parseReferencedPlayTarget2(target).playName;
18179
- const client = new (0, _chunkMPY4UD6Hjs.DeeplineClient)();
18179
+ const client = new (0, _chunkXM5Z53VAjs.DeeplineClient)();
18180
18180
  let revisionId = shareFlagValue(args, "--revision-id");
18181
18181
  const versionFlag = shareFlagValue(args, "--version");
18182
18182
  if (!revisionId && versionFlag) {
@@ -18193,8 +18193,8 @@ async function handlePlayShareRegenerate(args) {
18193
18193
  revisionId ? { revisionId } : {}
18194
18194
  );
18195
18195
  const outputStatus = shareStatusForOutput(status);
18196
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
18197
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, outputStatus);
18196
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
18197
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, outputStatus);
18198
18198
  return 0;
18199
18199
  }
18200
18200
  const urls = shareUrlFields(outputStatus);
@@ -18219,9 +18219,9 @@ async function handlePlayShareUnpublish(args) {
18219
18219
  return 2;
18220
18220
  }
18221
18221
  const name = parseReferencedPlayTarget2(target).playName;
18222
- const status = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().unpublishSharePage(name);
18223
- if (_chunkD4VWHTDTjs.argsWantJson.call(void 0, args)) {
18224
- _chunkD4VWHTDTjs.printCompactJson.call(void 0, status);
18222
+ const status = await new (0, _chunkXM5Z53VAjs.DeeplineClient)().unpublishSharePage(name);
18223
+ if (_chunk3IRJIEIEjs.argsWantJson.call(void 0, args)) {
18224
+ _chunk3IRJIEIEjs.printCompactJson.call(void 0, status);
18225
18225
  return 0;
18226
18226
  }
18227
18227
  console.log(`Unpublished ${name}; the public page has been removed.`);