deepline 0.3.503 → 0.3.504

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 (130) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
  3. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
  4. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
  5. package/dist/cli/{auth-IC4WLSE3.mjs → auth-3L5AA5AX.mjs} +5 -5
  6. package/dist/cli/auth-UPK4IIIN.js +43 -0
  7. package/dist/cli/{billing-2VOV64SD.mjs → billing-E7EASVPO.mjs} +19 -12
  8. package/dist/cli/{billing-LWQOII22.js → billing-HOGXVE2V.js} +92 -85
  9. package/dist/cli/{chunk-FHJ54BHH.mjs → chunk-22OCKCYS.mjs} +1 -1
  10. package/dist/cli/{chunk-D27HP3HS.mjs → chunk-2ABRDH3B.mjs} +2 -2
  11. package/dist/cli/{chunk-WHP3FJ7T.js → chunk-2W77YCKH.js} +5 -5
  12. package/dist/cli/{chunk-KGLVATEB.mjs → chunk-3MLFFWDM.mjs} +2 -2
  13. package/dist/cli/{chunk-K7NFFQFU.mjs → chunk-4CC67XH5.mjs} +2 -2
  14. package/dist/cli/{chunk-DPI5OYVU.mjs → chunk-5CHBIJIM.mjs} +2 -2
  15. package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
  16. package/dist/cli/{chunk-A2C6ONWA.js → chunk-5Z6EULD5.js} +6 -6
  17. package/dist/cli/{chunk-33JUK73X.js → chunk-67OI26OE.js} +7 -7
  18. package/dist/cli/{chunk-IIP46RVC.js → chunk-6JNBMTCZ.js} +1 -1
  19. package/dist/cli/{chunk-HRTDCXHI.js → chunk-6SMR7LU7.js} +2 -2
  20. package/dist/cli/{chunk-7HEDCIR3.mjs → chunk-7F4OEHQK.mjs} +1 -1
  21. package/dist/cli/{chunk-C5RQTTLP.js → chunk-7P2QVMBP.js} +7 -7
  22. package/dist/cli/{chunk-MJQOG4TZ.js → chunk-A6LA42JY.js} +16 -16
  23. package/dist/cli/{chunk-XYZZZLN6.mjs → chunk-BTWUNKKX.mjs} +2 -2
  24. package/dist/cli/{chunk-EDMV4JT5.mjs → chunk-BX45XMXZ.mjs} +2 -2
  25. package/dist/cli/{chunk-GIHNEYBG.mjs → chunk-DEAJVQEG.mjs} +1 -1
  26. package/dist/cli/{chunk-2K2QBLYO.js → chunk-FISP4LCK.js} +53 -53
  27. package/dist/cli/{chunk-26RSSTCF.js → chunk-FTRVCIGC.js} +26 -26
  28. package/dist/cli/{chunk-JJVN7OIX.mjs → chunk-GGBXNQCR.mjs} +4 -4
  29. package/dist/cli/{chunk-4IIYSBEP.js → chunk-GJ2DA35C.js} +30 -4
  30. package/dist/cli/{chunk-RVOBFO7C.js → chunk-GRAGUYIE.js} +41 -41
  31. package/dist/cli/{chunk-ZEQPCEV4.mjs → chunk-HUX5DZO6.mjs} +3 -3
  32. package/dist/cli/{chunk-6XTE6C3W.mjs → chunk-IGNQKOWT.mjs} +10 -10
  33. package/dist/cli/{chunk-FVDTERO2.js → chunk-IPAMOMGP.js} +21 -21
  34. package/dist/cli/{chunk-FZHOWPSN.js → chunk-JPR2546F.js} +16 -16
  35. package/dist/cli/{chunk-3CXHK4TW.js → chunk-KCKAFTPY.js} +6 -6
  36. package/dist/cli/{chunk-2626LTU3.js → chunk-KGUGNEKL.js} +96 -96
  37. package/dist/cli/{chunk-QIEYEY6Z.js → chunk-LHXYCZYO.js} +8 -8
  38. package/dist/cli/{chunk-PVA3MWCO.js → chunk-MJTK6Q3G.js} +3 -3
  39. package/dist/cli/{chunk-EQ3WMKFY.mjs → chunk-MLMWM5DV.mjs} +5 -5
  40. package/dist/cli/{chunk-VC5B462T.mjs → chunk-NZ7Z7WNM.mjs} +2 -2
  41. package/dist/cli/{chunk-5GI6NKOE.mjs → chunk-OX2D6BG4.mjs} +1 -1
  42. package/dist/cli/{chunk-F73PD2XD.js → chunk-QKKU2FH4.js} +7 -7
  43. package/dist/cli/{chunk-URZNSJE2.mjs → chunk-QOLX2O2S.mjs} +4 -4
  44. package/dist/cli/chunk-R7J7CJPZ.js +209 -0
  45. package/dist/cli/{chunk-TCQYWZFS.js → chunk-SMSQVRHE.js} +5 -5
  46. package/dist/cli/{chunk-J6RBOLK7.mjs → chunk-SVFTZTCI.mjs} +1 -1
  47. package/dist/cli/{chunk-5M5WSFRZ.mjs → chunk-UFYJTRSF.mjs} +28 -2
  48. package/dist/cli/{chunk-FIUTDSJX.js → chunk-UJMBG5JU.js} +4 -4
  49. package/dist/cli/{chunk-AARF4SOW.js → chunk-USTJEEND.js} +9 -9
  50. package/dist/cli/{chunk-YXGPMTAK.js → chunk-UXQQPMYO.js} +2 -2
  51. package/dist/cli/{chunk-GLZBFBJS.mjs → chunk-VJVJWZ6I.mjs} +5 -5
  52. package/dist/cli/{chunk-HS63YBT5.js → chunk-WBIDPDKJ.js} +3 -3
  53. package/dist/cli/{chunk-B3X4YWQ6.js → chunk-WZSFIJMG.js} +53 -53
  54. package/dist/cli/{chunk-BI2Q45SY.mjs → chunk-XHZSPMNC.mjs} +4 -4
  55. package/dist/cli/{chunk-L3TZV625.mjs → chunk-Y6XKCEPK.mjs} +1 -1
  56. package/dist/cli/{chunk-JPDD4Y53.mjs → chunk-Y7VEHKID.mjs} +6 -6
  57. package/dist/cli/{chunk-KPBBT6OS.mjs → chunk-YOQ2NNDO.mjs} +1 -1
  58. package/dist/cli/{chunk-WS274KID.mjs → chunk-Z6FXUDIL.mjs} +1 -1
  59. package/dist/cli/command-docs.d.mts +2 -1
  60. package/dist/cli/command-docs.d.ts +2 -1
  61. package/dist/cli/command-docs.js +6 -2
  62. package/dist/cli/command-docs.mjs +5 -1
  63. package/dist/cli/{csv-NEWCNOSZ.js → csv-2XWGPITO.js} +13 -13
  64. package/dist/cli/{csv-2TXOI3UE.mjs → csv-433JEHLQ.mjs} +4 -4
  65. package/dist/cli/{db-PX7EQEIG.mjs → db-K747DH43.mjs} +6 -6
  66. package/dist/cli/{db-J3IJS4OG.js → db-PJJMD4VH.js} +27 -27
  67. package/dist/cli/describe-OYS7LZJD.js +49 -0
  68. package/dist/cli/{describe-GQHGTZSL.mjs → describe-VEDDYW4P.mjs} +17 -17
  69. package/dist/cli/{executions-RO3TJUXL.js → executions-HM5T72H6.js} +8 -8
  70. package/dist/cli/{executions-FFKK24RY.mjs → executions-JWRX3XCT.mjs} +6 -6
  71. package/dist/cli/{feedback-XRR4HIS6.js → feedback-34UG4BO3.js} +8 -8
  72. package/dist/cli/{feedback-ZTO56SRL.mjs → feedback-MNSIA63Y.mjs} +4 -4
  73. package/dist/cli/git-5YQJSJFR.js +25 -0
  74. package/dist/cli/{git-FIPBVFYZ.mjs → git-ZKEOXV3A.mjs} +5 -5
  75. package/dist/cli/index.js +143 -141
  76. package/dist/cli/index.mjs +43 -41
  77. package/dist/cli/{legacy-noops-AMD2NWHF.mjs → legacy-noops-5M4T4ZVT.mjs} +5 -5
  78. package/dist/cli/{legacy-noops-MTBBGM27.js → legacy-noops-YXSI4FVU.js} +8 -8
  79. package/dist/cli/{monitors-24LDKDJX.mjs → monitors-C65OC4AW.mjs} +7 -7
  80. package/dist/cli/{monitors-42PIGLBF.js → monitors-O25GDOYE.js} +95 -95
  81. package/dist/cli/{org-GQMCA3MN.js → org-2GSPLY2A.js} +72 -72
  82. package/dist/cli/{org-4B7SCFRL.mjs → org-ZRMG5NS2.mjs} +6 -6
  83. package/dist/cli/{pages-RL2M62GJ.js → pages-45DPADK6.js} +18 -18
  84. package/dist/cli/{pages-PD5EGL2R.mjs → pages-TZZUFBRO.mjs} +6 -6
  85. package/dist/cli/{play-5V54VTUR.mjs → play-3D7HH273.mjs} +23 -217
  86. package/dist/cli/{play-FST6ZAHW.js → play-RCGMND6X.js} +323 -517
  87. package/dist/cli/{providers-HBUUPN7J.js → providers-3N3ECMTY.js} +9 -9
  88. package/dist/cli/{providers-N5YVCKPL.mjs → providers-PSAKV6CJ.mjs} +6 -6
  89. package/dist/cli/{quickstart-NJDDVTQR.mjs → quickstart-2A35SMGC.mjs} +4 -4
  90. package/dist/cli/{quickstart-4QIQNSHG.js → quickstart-6R6AIXM6.js} +6 -6
  91. package/dist/cli/{run-JHI5MTHD.mjs → run-F3TLDGUO.mjs} +22 -22
  92. package/dist/cli/{run-FGOKCG4J.js → run-F6ZXTASZ.js} +40 -40
  93. package/dist/cli/{search-EWIZBIY2.mjs → search-CZLCY3D2.mjs} +7 -7
  94. package/dist/cli/search-R5VEWJO2.js +32 -0
  95. package/dist/cli/{search-output-NAK3MWBH.mjs → search-output-MQTSTLN5.mjs} +4 -4
  96. package/dist/cli/{search-output-TMQTRC2W.js → search-output-R5XDNILW.js} +6 -6
  97. package/dist/cli/{secrets-ONQVW5SR.mjs → secrets-D3GF4B2Z.mjs} +6 -6
  98. package/dist/cli/{secrets-5TSUEOJB.js → secrets-DCJYHDSY.js} +15 -15
  99. package/dist/cli/{sessions-B7F5O3ZR.mjs → sessions-QGEQ2UYZ.mjs} +5 -5
  100. package/dist/cli/{sessions-BSGE5EET.js → sessions-Z4JYJSDP.js} +6 -6
  101. package/dist/cli/{settings-SGGFQV5R.mjs → settings-G7QEXA4N.mjs} +11 -11
  102. package/dist/cli/{settings-47LARBRU.js → settings-UVXXAT4A.js} +78 -78
  103. package/dist/cli/{setup-BNFZFXO6.js → setup-5I42W7D4.js} +49 -49
  104. package/dist/cli/{setup-ATGNXQUK.mjs → setup-QHJU3DUI.mjs} +9 -9
  105. package/dist/cli/{skills-CIMBRM5R.mjs → skills-5LRF4UKX.mjs} +7 -7
  106. package/dist/cli/skills-FB6TV52O.js +36 -0
  107. package/dist/cli/tools-L2364RPA.js +56 -0
  108. package/dist/cli/{tools-DTDXAULX.mjs → tools-PUT6STVG.mjs} +16 -16
  109. package/dist/cli/{update-EOIJBJCO.mjs → update-CJ2GA64X.mjs} +9 -9
  110. package/dist/cli/update-ESYJGYVZ.js +34 -0
  111. package/dist/cli/{workflow-IWXUJPWY.mjs → workflow-HVEWRTXD.mjs} +7 -7
  112. package/dist/cli/{workflow-V5VKPICQ.js → workflow-O67MEBCP.js} +17 -17
  113. package/dist/index.js +9 -9
  114. package/dist/index.mjs +6 -6
  115. package/dist/install-integrity.json +102 -100
  116. package/dist/plays/bundle-play-file.mjs +4 -4
  117. package/dist/release.d.mts +1 -1
  118. package/dist/release.d.ts +1 -1
  119. package/dist/release.js +2 -2
  120. package/dist/release.mjs +1 -1
  121. package/dist/server.js +5 -5
  122. package/dist/server.mjs +3 -3
  123. package/package.json +1 -1
  124. package/dist/cli/auth-ZCMSXZO4.js +0 -43
  125. package/dist/cli/describe-LE7EZCL4.js +0 -49
  126. package/dist/cli/git-26AH4XIO.js +0 -25
  127. package/dist/cli/search-CTKSEVSO.js +0 -32
  128. package/dist/cli/skills-6RD25MVM.js +0 -36
  129. package/dist/cli/tools-TDZH4XHS.js +0 -56
  130. package/dist/cli/update-Y32VT4VL.js +0 -34
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var _chunkAARF4SOWjs = require('./chunk-AARF4SOW.js');
8
+ var _chunkUSTJEENDjs = require('./chunk-USTJEEND.js');
9
9
 
10
10
 
11
11
 
@@ -18,15 +18,15 @@ var _chunkAARF4SOWjs = require('./chunk-AARF4SOW.js');
18
18
 
19
19
 
20
20
 
21
- var _chunk3CXHK4TWjs = require('./chunk-3CXHK4TW.js');
21
+ var _chunkKCKAFTPYjs = require('./chunk-KCKAFTPY.js');
22
22
 
23
23
 
24
- var _chunk33JUK73Xjs = require('./chunk-33JUK73X.js');
24
+ var _chunk67OI26OEjs = require('./chunk-67OI26OE.js');
25
25
  require('./chunk-D3BCSAN7.js');
26
26
 
27
27
 
28
28
 
29
- var _chunk26RSSTCFjs = require('./chunk-26RSSTCF.js');
29
+ var _chunkFTRVCIGCjs = require('./chunk-FTRVCIGC.js');
30
30
 
31
31
 
32
32
 
@@ -44,14 +44,6 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
44
44
  var _chunkKQSTV4MWjs = require('./chunk-KQSTV4MW.js');
45
45
 
46
46
 
47
-
48
-
49
-
50
-
51
-
52
- var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
53
-
54
-
55
47
  var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
56
48
 
57
49
 
@@ -59,10 +51,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
59
51
 
60
52
 
61
53
 
62
- var _chunkWHP3FJ7Tjs = require('./chunk-WHP3FJ7T.js');
54
+ var _chunk2W77YCKHjs = require('./chunk-2W77YCKH.js');
63
55
 
64
56
 
65
- var _chunkTCQYWZFSjs = require('./chunk-TCQYWZFS.js');
57
+ var _chunkSMSQVRHEjs = require('./chunk-SMSQVRHE.js');
66
58
 
67
59
 
68
60
 
@@ -75,7 +67,7 @@ var _chunkTCQYWZFSjs = require('./chunk-TCQYWZFS.js');
75
67
 
76
68
 
77
69
 
78
- var _chunkC5RQTTLPjs = require('./chunk-C5RQTTLP.js');
70
+ var _chunk7P2QVMBPjs = require('./chunk-7P2QVMBP.js');
79
71
  require('./chunk-E4CABWXL.js');
80
72
 
81
73
 
@@ -98,20 +90,25 @@ require('./chunk-WSGXBROE.js');
98
90
 
99
91
 
100
92
 
101
- var _chunkA2C6ONWAjs = require('./chunk-A2C6ONWA.js');
93
+ var _chunk5Z6EULD5js = require('./chunk-5Z6EULD5.js');
102
94
 
103
95
 
104
96
 
105
97
 
106
98
 
107
- var _chunkYXGPMTAKjs = require('./chunk-YXGPMTAK.js');
108
- require('./chunk-B3X4YWQ6.js');
99
+ var _chunkUXQQPMYOjs = require('./chunk-UXQQPMYO.js');
100
+ require('./chunk-WZSFIJMG.js');
109
101
 
110
102
 
111
103
 
112
- var _chunkPVA3MWCOjs = require('./chunk-PVA3MWCO.js');
104
+ var _chunkMJTK6Q3Gjs = require('./chunk-MJTK6Q3G.js');
113
105
 
114
106
 
107
+ var _chunkR7J7CJPZjs = require('./chunk-R7J7CJPZ.js');
108
+
109
+
110
+ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
111
+
115
112
 
116
113
 
117
114
 
@@ -123,17 +120,18 @@ var _chunkPVA3MWCOjs = require('./chunk-PVA3MWCO.js');
123
120
 
124
121
 
125
122
 
126
- var _chunkF73PD2XDjs = require('./chunk-F73PD2XD.js');
127
- require('./chunk-HS63YBT5.js');
128
123
 
124
+ var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
125
+ require('./chunk-WBIDPDKJ.js');
129
126
 
130
- var _chunkFIUTDSJXjs = require('./chunk-FIUTDSJX.js');
127
+
128
+ var _chunkUJMBG5JUjs = require('./chunk-UJMBG5JU.js');
131
129
  require('./chunk-ALJJRZNJ.js');
132
130
  require('./chunk-XNYIZMNQ.js');
133
131
 
134
132
 
135
133
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
136
- require('./chunk-IIP46RVC.js');
134
+ require('./chunk-6JNBMTCZ.js');
137
135
  require('./chunk-OG64RBAC.js');
138
136
 
139
137
 
@@ -2115,7 +2113,7 @@ function resolveField(key, command) {
2115
2113
  function printSettings(result, json, name) {
2116
2114
  result = { ...result, settings: parsePlaySettings(result.settings) };
2117
2115
  const selected = fields.filter(([key]) => !name || key === name);
2118
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
2116
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
2119
2117
  {
2120
2118
  ...result,
2121
2119
  settings: Object.fromEntries(
@@ -2159,7 +2157,7 @@ function registerPlaySettingsCommands(plays) {
2159
2157
  valueSyntax: field.cli.valueSyntax,
2160
2158
  examples: field.cli.examples
2161
2159
  }));
2162
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
2160
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
2163
2161
  {
2164
2162
  fields: descriptions,
2165
2163
  render: {
@@ -2184,7 +2182,7 @@ function registerPlaySettingsCommands(plays) {
2184
2182
  async (options, command) => {
2185
2183
  if (options.name !== void 0) resolveField(options.name, command);
2186
2184
  printSettings(
2187
- await new (0, _chunkTCQYWZFSjs.DeeplineClient)().getPlaySettings(options.play),
2185
+ await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getPlaySettings(options.play),
2188
2186
  options.json,
2189
2187
  options.name
2190
2188
  );
@@ -2215,7 +2213,7 @@ function registerPlaySettingsCommands(plays) {
2215
2213
  );
2216
2214
  }
2217
2215
  if (options.dryRun) {
2218
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
2216
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
2219
2217
  {
2220
2218
  dryRun: true,
2221
2219
  play,
@@ -2236,7 +2234,7 @@ function registerPlaySettingsCommands(plays) {
2236
2234
  return;
2237
2235
  }
2238
2236
  printSettings(
2239
- await new (0, _chunkTCQYWZFSjs.DeeplineClient)().updatePlaySettings(play, patch),
2237
+ await new (0, _chunkSMSQVRHEjs.DeeplineClient)().updatePlaySettings(play, patch),
2240
2238
  options.json
2241
2239
  );
2242
2240
  };
@@ -2262,13 +2260,13 @@ function registerPlaySettingsCommands(plays) {
2262
2260
  "--root must be person or team; --limit must be 1\u2013100.",
2263
2261
  { exitCode: 2 }
2264
2262
  );
2265
- const page = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().listPlaySettingsPaths({
2263
+ const page = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().listPlaySettingsPaths({
2266
2264
  root: options.root,
2267
2265
  limit,
2268
2266
  cursor: options.cursor
2269
2267
  });
2270
2268
  const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
2271
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
2269
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
2272
2270
  {
2273
2271
  ...page,
2274
2272
  nextCommand,
@@ -2319,7 +2317,7 @@ function registerPlaySettingsCommands(plays) {
2319
2317
  root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
2320
2318
  folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
2321
2319
  };
2322
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
2320
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
2323
2321
  const paths = [];
2324
2322
  let cursor;
2325
2323
  do {
@@ -2381,7 +2379,7 @@ function registerPlaySettingsCommands(plays) {
2381
2379
  moved.push(move.playName);
2382
2380
  }
2383
2381
  }
2384
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
2382
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
2385
2383
  {
2386
2384
  dryRun: Boolean(options.dryRun),
2387
2385
  from: options.from,
@@ -2509,7 +2507,7 @@ function triggerLines(view) {
2509
2507
  return lines;
2510
2508
  }
2511
2509
  function printView(view, json) {
2512
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
2510
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
2513
2511
  {
2514
2512
  ...view,
2515
2513
  render: {
@@ -2522,7 +2520,7 @@ function printView(view, json) {
2522
2520
  );
2523
2521
  }
2524
2522
  function printResult(result, json) {
2525
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
2523
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
2526
2524
  {
2527
2525
  ...result,
2528
2526
  render: {
@@ -2552,7 +2550,7 @@ async function mutate(command, options, build) {
2552
2550
  usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
2553
2551
  }
2554
2552
  if (options.dryRun) {
2555
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
2553
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
2556
2554
  {
2557
2555
  dryRun: true,
2558
2556
  play: options.play,
@@ -2571,7 +2569,7 @@ async function mutate(command, options, build) {
2571
2569
  return;
2572
2570
  }
2573
2571
  printResult(
2574
- await new (0, _chunkTCQYWZFSjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2572
+ await new (0, _chunkSMSQVRHEjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
2575
2573
  options.json
2576
2574
  );
2577
2575
  }
@@ -2604,7 +2602,7 @@ function registerPlayTriggerConfigCommands(plays) {
2604
2602
  }).addHelpText("after", help2);
2605
2603
  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) => {
2606
2604
  printView(
2607
- await new (0, _chunkTCQYWZFSjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2605
+ await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getPlayTriggerConfig(options.play),
2608
2606
  options.json
2609
2607
  );
2610
2608
  });
@@ -2648,7 +2646,7 @@ function registerPlayTriggerConfigCommands(plays) {
2648
2646
  if (options.auth === void 0) {
2649
2647
  if (secrets.length || options.header || options.signaturePrefix)
2650
2648
  usage(setWebhook, "--secret/--header need --auth.");
2651
- const current = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().getPlayTriggerConfig(
2649
+ const current = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getPlayTriggerConfig(
2652
2650
  options.play
2653
2651
  );
2654
2652
  return {
@@ -2725,7 +2723,7 @@ var KIND_DESCRIPTIONS = {
2725
2723
  "receipt.skipped": "Saved work result: skipped.",
2726
2724
  "runtime.event": "Other event."
2727
2725
  };
2728
- var RUN_LOGS_KIND_HELP = _chunkC5RQTTLPjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2726
+ var RUN_LOGS_KIND_HELP = _chunk7P2QVMBPjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
2729
2727
  kind,
2730
2728
  description: KIND_DESCRIPTIONS[kind]
2731
2729
  }));
@@ -2862,9 +2860,9 @@ function configureRunQueryCommandErrors(command, resource) {
2862
2860
  const args = program.args;
2863
2861
  if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
2864
2862
  error.exitCode = 2;
2865
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2866
- _chunkF73PD2XDjs.printJsonError.call(void 0,
2867
- Object.assign(new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(error.message), {
2863
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
2864
+ _chunkQKKU2FH4js.printJsonError.call(void 0,
2865
+ Object.assign(new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(error.message), {
2868
2866
  exitCode: 2,
2869
2867
  retryable: false
2870
2868
  })
@@ -2908,14 +2906,14 @@ function parseQuery(args, resource) {
2908
2906
  if (VALUE_FLAGS.has(flag)) {
2909
2907
  const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
2910
2908
  if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
2911
- throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
2909
+ throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
2912
2910
  `${flag} requires a value. Use ${flag} <value>.`
2913
2911
  );
2914
2912
  }
2915
2913
  if (flag === "--sum") sums.push(value);
2916
2914
  else {
2917
2915
  if (values[flag] !== void 0) {
2918
- throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
2916
+ throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
2919
2917
  `${flag} may only be supplied once.`
2920
2918
  );
2921
2919
  }
@@ -2929,12 +2927,12 @@ function parseQuery(args, resource) {
2929
2927
  }
2930
2928
  if (arg.startsWith("-")) {
2931
2929
  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.";
2932
- throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
2930
+ throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
2933
2931
  `Unsupported query flag ${flag}. ${correction}`
2934
2932
  );
2935
2933
  }
2936
2934
  if (runId !== void 0) {
2937
- throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
2935
+ throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
2938
2936
  `Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
2939
2937
  );
2940
2938
  }
@@ -2942,7 +2940,7 @@ function parseQuery(args, resource) {
2942
2940
  }
2943
2941
  if (switches.has("--fields")) {
2944
2942
  if (runId !== void 0) {
2945
- throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
2943
+ throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
2946
2944
  "--fields does not use a run ID. Omit the positional run ID."
2947
2945
  );
2948
2946
  }
@@ -2955,18 +2953,18 @@ function parseQuery(args, resource) {
2955
2953
  )
2956
2954
  ];
2957
2955
  if (incompatible.length) {
2958
- throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
2956
+ throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
2959
2957
  `--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
2960
2958
  );
2961
2959
  }
2962
2960
  }
2963
2961
  if (switches.has("--count") && values["--group-by"] !== void 0) {
2964
- throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
2962
+ throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
2965
2963
  "--count cannot be combined with --group-by. Use --group-by for counts per group."
2966
2964
  );
2967
2965
  }
2968
2966
  if (sums.length && switches.has("--count")) {
2969
- throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
2967
+ throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
2970
2968
  "--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
2971
2969
  );
2972
2970
  }
@@ -2974,7 +2972,7 @@ function parseQuery(args, resource) {
2974
2972
  if (operation === "count") {
2975
2973
  for (const flag of ["--limit", "--cursor", "--payloads"]) {
2976
2974
  if (values[flag] !== void 0 || switches.has(flag)) {
2977
- throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
2975
+ throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
2978
2976
  `--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
2979
2977
  );
2980
2978
  }
@@ -3009,16 +3007,16 @@ function parseQuery(args, resource) {
3009
3007
  ];
3010
3008
  }
3011
3009
  }
3012
- const request = _chunkC5RQTTLPjs.normalizeRunEventOperationRequest.call(void 0, body);
3010
+ const request = _chunk7P2QVMBPjs.normalizeRunEventOperationRequest.call(void 0, body);
3013
3011
  const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
3014
3012
  const backend = values["--runtime-backend"];
3015
3013
  if (backend && backend !== "daytona" && backend !== "modal") {
3016
- throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
3014
+ throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
3017
3015
  "--runtime-backend must be daytona or modal."
3018
3016
  );
3019
3017
  }
3020
3018
  if (backend && !namespace) {
3021
- throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
3019
+ throw new (0, _chunk7P2QVMBPjs.RunEventQueryInputError)(
3022
3020
  "--runtime-backend requires --runtime-namespace."
3023
3021
  );
3024
3022
  }
@@ -3065,12 +3063,12 @@ async function handleRunEventQuery(args, resource = "logs") {
3065
3063
  const failure = error instanceof Error ? error : new Error(String(error));
3066
3064
  const record3 = failure;
3067
3065
  const status = record3.statusCode;
3068
- const exitCode = error instanceof _chunkC5RQTTLPjs.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;
3066
+ const exitCode = error instanceof _chunk7P2QVMBPjs.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;
3069
3067
  const diagnostic = Object.assign(failure, {
3070
3068
  exitCode,
3071
3069
  retryable: exitCode === 5
3072
3070
  });
3073
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) _chunkF73PD2XDjs.printJsonError.call(void 0, diagnostic);
3071
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) _chunkQKKU2FH4js.printJsonError.call(void 0, diagnostic);
3074
3072
  else console.error(`Error: ${diagnostic.message}`);
3075
3073
  return exitCode;
3076
3074
  }
@@ -3085,7 +3083,7 @@ async function executeRunEventQuery(args, resource) {
3085
3083
  ...criteria
3086
3084
  } = request;
3087
3085
  const options = { ...criteria, ...runtime ? { runtime } : {} };
3088
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
3086
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
3089
3087
  let result;
3090
3088
  if (request.operation === "fields") {
3091
3089
  result = await client.runs[resource].fields(runtime ? { runtime } : {});
@@ -3151,13 +3149,13 @@ async function executeRunEventQuery(args, resource) {
3151
3149
  lines.push(`Next page: ${nextPage}`);
3152
3150
  }
3153
3151
  }
3154
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
3152
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
3155
3153
  {
3156
3154
  ...result,
3157
3155
  ...nextPage ? { next: { page: nextPage } } : {},
3158
3156
  render: { sections: [{ title: `run ${resource}`, lines }] }
3159
3157
  },
3160
- { json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3158
+ { json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
3161
3159
  ` }
3162
3160
  );
3163
3161
  return 0;
@@ -4076,7 +4074,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4076
4074
  ...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
4077
4075
  );
4078
4076
  }
4079
- const response = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.getReceipts(runId, {
4077
+ const response = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.getReceipts(runId, {
4080
4078
  keys
4081
4079
  });
4082
4080
  const failed = response.receipts.filter(
@@ -4088,7 +4086,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4088
4086
  JSON.stringify(response, null, 2) + "\n",
4089
4087
  { flag: "wx", mode: 384 }
4090
4088
  );
4091
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
4089
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
4092
4090
  {
4093
4091
  runId,
4094
4092
  out: options.out,
@@ -4098,7 +4096,7 @@ Existing credential redactions and referenced-list previews remain as stored.
4098
4096
  { json: true }
4099
4097
  );
4100
4098
  } else {
4101
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4099
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
4102
4100
  }
4103
4101
  if (failed)
4104
4102
  process.exitCode = response.receipts.some(
@@ -4137,7 +4135,7 @@ includes nextCommand when another page is available.
4137
4135
  { exitCode: 2 }
4138
4136
  );
4139
4137
  }
4140
- const page = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.children(parentRunId, {
4138
+ const page = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.children(parentRunId, {
4141
4139
  launchKey: options.launchKey,
4142
4140
  ...options.cursor !== void 0 ? { cursor: options.cursor } : {},
4143
4141
  limit
@@ -4152,7 +4150,7 @@ includes nextCommand when another page is available.
4152
4150
  "--limit",
4153
4151
  String(limit)
4154
4152
  ].join(" ") : null;
4155
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
4153
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
4156
4154
  {
4157
4155
  parentRunId,
4158
4156
  launchKey: options.launchKey,
@@ -4188,7 +4186,7 @@ async function handleRunsHistory(options) {
4188
4186
  throw new Error("--limit must be a positive integer.");
4189
4187
  }
4190
4188
  }
4191
- const page = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.history({
4189
+ const page = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.history({
4192
4190
  cursor: options.cursor,
4193
4191
  orgId: options.org,
4194
4192
  search: options.search,
@@ -4204,7 +4202,7 @@ async function handleRunsHistory(options) {
4204
4202
  );
4205
4203
  }
4206
4204
  if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
4207
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
4205
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
4208
4206
  { ...page, render: { sections: [{ title: "Run history", lines }] } },
4209
4207
  options.json ? { json: true } : {}
4210
4208
  );
@@ -4257,12 +4255,12 @@ async function runRunsRerunCommand(runId, options) {
4257
4255
  }
4258
4256
  }
4259
4257
  if (options.notice) console.error(options.notice);
4260
- const result = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.rerun(runId, {
4258
+ const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.rerun(runId, {
4261
4259
  ...idempotencyKey === void 0 ? {} : { idempotencyKey },
4262
4260
  ...inputOverrides === void 0 ? {} : { inputOverrides }
4263
4261
  });
4264
- if (_chunkF73PD2XDjs.shouldEmitJson.call(void 0, options.json)) {
4265
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, result, { json: true });
4262
+ if (_chunkQKKU2FH4js.shouldEmitJson.call(void 0, options.json)) {
4263
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, result, { json: true });
4266
4264
  } else if (result.rateLimited) {
4267
4265
  console.log(`
4268
4266
  ${result.rateLimited.message}`);
@@ -4286,7 +4284,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
4286
4284
  // src/cli/operations/runs-resume.ts
4287
4285
  async function runRunsResumeCommand(runId) {
4288
4286
  try {
4289
- const result = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.resume(runId);
4287
+ const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.resume(runId);
4290
4288
  if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
4291
4289
  throw new Error(
4292
4290
  "Invalid resume receipt: expected the requested run and a new positive epoch."
@@ -5076,13 +5074,13 @@ var RunDataset = class _RunDataset {
5076
5074
  const absolutePath = _path.resolve.call(void 0, outPath);
5077
5075
  _fs.writeFileSync.call(void 0,
5078
5076
  absolutePath,
5079
- `${JSON.stringify(_chunk3CXHK4TWjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
5077
+ `${JSON.stringify(_chunkKCKAFTPYjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
5080
5078
  `,
5081
5079
  "utf-8"
5082
5080
  );
5083
5081
  return absolutePath;
5084
5082
  }
5085
- return _chunk3CXHK4TWjs.writeRunDatasetCsv.call(void 0, {
5083
+ return _chunkKCKAFTPYjs.writeRunDatasetCsv.call(void 0, {
5086
5084
  rows: this.rows,
5087
5085
  columns: this.#info.columns,
5088
5086
  outPath
@@ -5281,198 +5279,6 @@ ${hint}`;
5281
5279
  });
5282
5280
  }
5283
5281
 
5284
- // ../play-runtime/worker-api-types.ts
5285
- var DAYTONA_COMPUTE_PRICING_USD = {
5286
- vcpuSecond: 14e-6,
5287
- memoryGiBSecond: 45e-7,
5288
- storageGiBSecond: 3e-8,
5289
- includedStorageGiB: 5
5290
- };
5291
- var MODAL_SANDBOX_COMPUTE_PRICING_USD = {
5292
- physicalCoreSecond: 3942e-8,
5293
- memoryGiBSecond: 667e-8
5294
- };
5295
- var MODAL_SANDBOX_CPU_CORES = 0.5;
5296
- function modalSandboxResourcesForPlay(input) {
5297
- return {
5298
- physicalCpuCores: MODAL_SANDBOX_CPU_CORES * input.cpu,
5299
- memoryMiB: input.memoryGiB * 1024
5300
- };
5301
- }
5302
- function roundUsd(amount) {
5303
- return Number(Math.max(0, amount).toFixed(12));
5304
- }
5305
- function sandboxSizeMetadata(cpu, memoryGiB) {
5306
- const entry = Object.entries(_chunkYGCKMI5Pjs.PLAY_SANDBOX_SIZE_LIMITS).find(
5307
- ([, limits]) => limits.cpu === cpu && limits.memoryGiB === memoryGiB
5308
- );
5309
- return entry ? { sandboxSize: entry[0] } : {};
5310
- }
5311
- function runtimeLimitMetadata(maxBillingDurationSeconds, observedWallTimeSeconds) {
5312
- if (typeof maxBillingDurationSeconds !== "number" || !Number.isFinite(maxBillingDurationSeconds) || maxBillingDurationSeconds <= 0) {
5313
- return {};
5314
- }
5315
- return {
5316
- maxBillingDurationSeconds,
5317
- ...typeof observedWallTimeSeconds === "number" && Number.isFinite(observedWallTimeSeconds) ? { observedWallTimeSeconds: Math.max(0, observedWallTimeSeconds) } : {}
5318
- };
5319
- }
5320
- function resolveDaytonaSandboxComputeItem(input) {
5321
- const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
5322
- const cpu = Math.max(0, input.cpu);
5323
- const memoryGiB = Math.max(0, input.memoryGiB);
5324
- const billableDiskGiB = Math.max(
5325
- 0,
5326
- input.diskGiB - DAYTONA_COMPUTE_PRICING_USD.includedStorageGiB
5327
- );
5328
- const providerCostUsd = roundUsd(
5329
- billableSeconds * (cpu * DAYTONA_COMPUTE_PRICING_USD.vcpuSecond + memoryGiB * DAYTONA_COMPUTE_PRICING_USD.memoryGiBSecond + billableDiskGiB * DAYTONA_COMPUTE_PRICING_USD.storageGiBSecond)
5330
- );
5331
- return {
5332
- itemId: input.itemId,
5333
- source: _nullishCoalesce(input.source, () => ( "daytona")),
5334
- unit: "sandbox_second",
5335
- units: billableSeconds,
5336
- providerCostUsd,
5337
- metadata: {
5338
- ...sandboxSizeMetadata(cpu, memoryGiB),
5339
- sandboxId: _nullishCoalesce(input.sandboxId, () => ( null)),
5340
- cpu,
5341
- memoryGiB,
5342
- diskGiB: Math.max(0, input.diskGiB),
5343
- billableDiskGiB,
5344
- startedAt: input.startedAt,
5345
- endedAt: input.endedAt,
5346
- ...runtimeLimitMetadata(
5347
- input.maxBillingDurationSeconds,
5348
- input.observedWallTimeSeconds
5349
- )
5350
- }
5351
- };
5352
- }
5353
- function resolveModalSandboxComputeItem(input) {
5354
- const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
5355
- const physicalCpuCores = Math.max(0, input.physicalCpuCores);
5356
- const memoryGiB = Math.max(0, input.memoryGiB);
5357
- const providerCostUsd = roundUsd(
5358
- billableSeconds * (physicalCpuCores * MODAL_SANDBOX_COMPUTE_PRICING_USD.physicalCoreSecond + memoryGiB * MODAL_SANDBOX_COMPUTE_PRICING_USD.memoryGiBSecond)
5359
- );
5360
- return {
5361
- itemId: input.itemId,
5362
- source: "modal",
5363
- unit: "sandbox_second",
5364
- units: billableSeconds,
5365
- providerCostUsd,
5366
- metadata: {
5367
- ...sandboxSizeMetadata(
5368
- physicalCpuCores / MODAL_SANDBOX_CPU_CORES,
5369
- memoryGiB
5370
- ),
5371
- sandboxId: _nullishCoalesce(input.sandboxId, () => ( null)),
5372
- physicalCpuCores,
5373
- memoryGiB,
5374
- ...input.memoryLimitGiB === void 0 ? {} : {
5375
- memoryLimitGiB: input.memoryLimitGiB,
5376
- // The Preview evaluation preserves the existing compute price.
5377
- // Sampled burst cost is diagnostic until provider billing can be
5378
- // reconciled; a hard ceiling is never presented as actual usage.
5379
- costBasis: "reserved_resources"
5380
- },
5381
- startedAt: input.startedAt,
5382
- endedAt: input.endedAt,
5383
- ...runtimeLimitMetadata(
5384
- input.maxBillingDurationSeconds,
5385
- input.observedWallTimeSeconds
5386
- )
5387
- }
5388
- };
5389
- }
5390
-
5391
- // ../play-runtime/runtime-constants.ts
5392
- var STANDARD_PLAY_RUNTIME_LIMIT_SECONDS = 30 * 60;
5393
- var PLAY_RUNNER_TERMINAL_GRACE_SECONDS = 90;
5394
- var PLAY_RUNNER_STARTUP_GRACE_SECONDS = 4 * 60;
5395
- var SANDBOX_NETWORK_CUT_MAX_MS = 11 * 6e4;
5396
- var RUNNER_GATEWAY_CONNECTION_RETRY_BUDGET_MS = SANDBOX_NETWORK_CUT_MAX_MS + 6e4;
5397
- var PLAY_RUNNER_TIMEOUT_SECONDS = 40 * 60;
5398
- var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS = _chunkYGCKMI5Pjs.MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds + (PLAY_RUNNER_TIMEOUT_SECONDS - STANDARD_PLAY_RUNTIME_LIMIT_SECONDS);
5399
-
5400
- // ../billing/compute-pricing-contract.ts
5401
- var COMPUTE_BILLING_MARKUP_MULTIPLIER = 5;
5402
- var DEFAULT_USD_PER_CUSTOMER_CREDIT = 0.1;
5403
- var DEFAULT_PROVIDER_MARKUP_MULTIPLIER = 1.4;
5404
- var MAX_SANDBOX_COMPUTE_BILLING_SECONDS = 60 * 60;
5405
- var MAX_SANDBOX_COMPUTE_PROVIDER_COST_USD = Math.max(
5406
- ...Object.values(_chunkYGCKMI5Pjs.PLAY_SANDBOX_SIZE_LIMITS).flatMap((profile) => {
5407
- const modalResources = modalSandboxResourcesForPlay(profile);
5408
- return [
5409
- resolveDaytonaSandboxComputeItem({
5410
- itemId: "billing-cap",
5411
- wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
5412
- cpu: profile.cpu,
5413
- memoryGiB: profile.memoryGiB,
5414
- diskGiB: profile.diskGiB
5415
- }).providerCostUsd,
5416
- resolveModalSandboxComputeItem({
5417
- itemId: "billing-cap",
5418
- wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
5419
- physicalCpuCores: modalResources.physicalCpuCores,
5420
- memoryGiB: profile.memoryGiB
5421
- }).providerCostUsd
5422
- ];
5423
- })
5424
- );
5425
- function roundUpCredits(value) {
5426
- if (!Number.isFinite(value) || value <= 0) return 0;
5427
- return Math.ceil(value * 100) / 100;
5428
- }
5429
- function maximumPlaySandboxBillingSeconds(limits) {
5430
- return Math.min(
5431
- limits.timeoutSeconds + PLAY_RUNNER_TERMINAL_GRACE_SECONDS,
5432
- MAX_SANDBOX_COMPUTE_BILLING_SECONDS
5433
- );
5434
- }
5435
- function estimateDaytonaMaximumComputeCredits(limits) {
5436
- const item = resolveDaytonaSandboxComputeItem({
5437
- itemId: "estimate",
5438
- wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
5439
- cpu: limits.cpu,
5440
- memoryGiB: limits.memoryGiB,
5441
- diskGiB: limits.diskGiB
5442
- });
5443
- return roundUpCredits(
5444
- item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
5445
- );
5446
- }
5447
- function estimateModalMaximumComputeCredits(limits, elasticMemory = false) {
5448
- const resources = modalSandboxResourcesForPlay(limits);
5449
- const item = resolveModalSandboxComputeItem({
5450
- itemId: "estimate",
5451
- wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
5452
- physicalCpuCores: resources.physicalCpuCores,
5453
- memoryGiB: elasticMemory ? _chunkYGCKMI5Pjs.modalSandboxMemoryLimitGiBForPlay.call(void 0, limits) : limits.memoryGiB
5454
- });
5455
- return roundUpCredits(
5456
- item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
5457
- );
5458
- }
5459
- function estimateMaximumSandboxComputeCredits(limits, elasticMemory = false) {
5460
- return Math.max(
5461
- estimateDaytonaMaximumComputeCredits(limits),
5462
- estimateModalMaximumComputeCredits(limits, elasticMemory)
5463
- );
5464
- }
5465
- function formatNonStandardSandboxRuntimeWarning(limits) {
5466
- const size = _chunkYGCKMI5Pjs.playSandboxSizeForLimits.call(void 0, limits);
5467
- if (!size) return null;
5468
- if (size === "standard" && limits.timeoutSeconds <= _chunkYGCKMI5Pjs.STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds) {
5469
- return null;
5470
- }
5471
- const maximumComputeCredits = estimateMaximumSandboxComputeCredits(limits);
5472
- const quotedTimeout = `${Math.ceil(limits.timeoutSeconds / 60)}m`;
5473
- return `This Play requests the ${size} sandbox for up to ${limits.timeoutSeconds}s (${limits.memoryGiB}GiB memory, ${limits.cpu} CPU, ${limits.diskGiB}GiB disk). Resource-based pricing estimate: ${maximumComputeCredits.toFixed(2)} Deepline credits. Workspace plan pricing can differ. Run deepline billing quote --sandbox-timeout ${quotedTimeout} --sandbox-size ${size} for your workspace's session ceiling.`;
5474
- }
5475
-
5476
5282
  // ../play-runtime/internal-step-ids.ts
5477
5283
  var INTERNAL_GLUE_NODE_ID_PREFIX = "run_javascript:";
5478
5284
  function isInternalGlueStepId(stepId) {
@@ -6779,7 +6585,7 @@ function renderOutcome(outcome) {
6779
6585
  function printResult2(input) {
6780
6586
  const failed = input.status === "failed" || input.status === "cancelled";
6781
6587
  if (failed) process.exitCode = 1;
6782
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
6588
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
6783
6589
  {
6784
6590
  deployment: { ...input.deployment, status: input.status },
6785
6591
  plays: input.outcomes,
@@ -6804,7 +6610,7 @@ async function handlePlaysDeploy(directory, options) {
6804
6610
  const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
6805
6611
  throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
6806
6612
  });
6807
- const { http, config } = _chunkF73PD2XDjs.getAuthedHttpClient.call(void 0, );
6613
+ const { http, config } = _chunkQKKU2FH4js.getAuthedHttpClient.call(void 0, );
6808
6614
  const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
6809
6615
  const startDeployment = () => http.post("/api/v2/deployments", {
6810
6616
  deliveryId,
@@ -6831,7 +6637,7 @@ async function handlePlaysDeploy(directory, options) {
6831
6637
  },
6832
6638
  {
6833
6639
  bundle: bundleDeployPlayFile,
6834
- fetchImpl: _chunkFIUTDSJXjs.fetchWithDeploymentProtection,
6640
+ fetchImpl: _chunkUJMBG5JUjs.fetchWithDeploymentProtection,
6835
6641
  // The plays are already here: "opening" the source is naming it.
6836
6642
  openSource: async () => ({
6837
6643
  open: async () => ({ repoRoot: root })
@@ -6957,7 +6763,7 @@ async function checkLocalPlayGraph(input) {
6957
6763
  // src/cli/renderers/local-play-execution.ts
6958
6764
  function renderLocalPlayExecutionPlan(plan, options = {}) {
6959
6765
  if (options.dryRun) {
6960
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6766
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
6961
6767
  return;
6962
6768
  }
6963
6769
  process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
@@ -7129,7 +6935,7 @@ function traceCliSync(phase, fields2, run) {
7129
6935
  const startedAt = Date.now();
7130
6936
  try {
7131
6937
  const result = run();
7132
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
6938
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
7133
6939
  phase,
7134
6940
  ms: Date.now() - startedAt,
7135
6941
  ok: true,
@@ -7137,7 +6943,7 @@ function traceCliSync(phase, fields2, run) {
7137
6943
  });
7138
6944
  return result;
7139
6945
  } catch (error) {
7140
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
6946
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
7141
6947
  phase,
7142
6948
  ms: Date.now() - startedAt,
7143
6949
  ok: false,
@@ -7943,7 +7749,7 @@ function playStatusErrorText(status) {
7943
7749
  function isRetryablePendingStartFailure(status) {
7944
7750
  if (status.status !== "failed") return false;
7945
7751
  if (status.runId && status.runId !== "pending") return false;
7946
- return _chunkC5RQTTLPjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7752
+ return _chunk7P2QVMBPjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
7947
7753
  }
7948
7754
  function isAmbiguousPlayStartOutcomeError(error) {
7949
7755
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
@@ -7993,13 +7799,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
7993
7799
  }, _class);
7994
7800
  function watchSurfaceReaches(state, provenance, level) {
7995
7801
  const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
7996
- if (!_chunkC5RQTTLPjs.logLevelReaches.call(void 0, level, minimumLevel)) {
7802
+ if (!_chunk7P2QVMBPjs.logLevelReaches.call(void 0, level, minimumLevel)) {
7997
7803
  return false;
7998
7804
  }
7999
- if (_chunkC5RQTTLPjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
7805
+ if (_chunk7P2QVMBPjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
8000
7806
  return true;
8001
7807
  }
8002
- return state.verbose === true && _chunkC5RQTTLPjs.logProvenanceReaches.call(void 0, provenance, "debug");
7808
+ return state.verbose === true && _chunk7P2QVMBPjs.logProvenanceReaches.call(void 0, provenance, "debug");
8003
7809
  }
8004
7810
  function getEventPayload(event) {
8005
7811
  return event.payload && typeof event.payload === "object" ? event.payload : {};
@@ -8509,7 +8315,7 @@ function resolvePlayRunUrl(input) {
8509
8315
  }
8510
8316
  function openPlayDashboard(url, open2) {
8511
8317
  if (open2 && url) {
8512
- _chunkF73PD2XDjs.openInBrowser.call(void 0, url);
8318
+ _chunkQKKU2FH4js.openInBrowser.call(void 0, url);
8513
8319
  }
8514
8320
  }
8515
8321
  function printPlayLogLines(input) {
@@ -8590,7 +8396,7 @@ async function waitForPlayCompletionByWatch(input) {
8590
8396
  ...input.fullJson === void 0 ? {} : { full: input.fullJson }
8591
8397
  });
8592
8398
  } catch (error) {
8593
- if (_chunkC5RQTTLPjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8399
+ if (_chunk7P2QVMBPjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
8594
8400
  return null;
8595
8401
  }
8596
8402
  throw error;
@@ -8671,9 +8477,9 @@ async function waitForPlayCompletionByWatch(input) {
8671
8477
  signal: controller.signal,
8672
8478
  deferLogs: !input.emitLogs,
8673
8479
  omitTerminalLogs: !input.emitLogs,
8674
- ..._chunkYXGPMTAKjs.isCliTraceEnabled.call(void 0, ) ? {
8480
+ ..._chunkUXQQPMYOjs.isCliTraceEnabled.call(void 0, ) ? {
8675
8481
  onPoll: (observation) => {
8676
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
8482
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
8677
8483
  phase: "play_watch_poll",
8678
8484
  workflowId: input.workflowId,
8679
8485
  ms: observation.durationMs,
@@ -8687,7 +8493,7 @@ async function waitForPlayCompletionByWatch(input) {
8687
8493
  full: input.fullJson,
8688
8494
  billing: false,
8689
8495
  onStatus: async (status) => {
8690
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
8496
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
8691
8497
  phase: "play_watch_terminal_status",
8692
8498
  workflowId: input.workflowId,
8693
8499
  full: input.fullJson === true
@@ -8776,7 +8582,7 @@ async function startAndWaitForPlayCompletion(input) {
8776
8582
  signal: controller.signal,
8777
8583
  cliAdmission: useCliAdmission
8778
8584
  });
8779
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
8585
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
8780
8586
  phase: "cli.play_start_admission_attempt",
8781
8587
  ms: Date.now() - postStartedAt,
8782
8588
  ok: true,
@@ -8788,7 +8594,7 @@ async function startAndWaitForPlayCompletion(input) {
8788
8594
  });
8789
8595
  break;
8790
8596
  } catch (error) {
8791
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
8597
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
8792
8598
  phase: "cli.play_start_admission_attempt",
8793
8599
  ms: Date.now() - postStartedAt,
8794
8600
  ok: false,
@@ -8839,7 +8645,7 @@ async function startAndWaitForPlayCompletion(input) {
8839
8645
  prepared.workflowId
8840
8646
  );
8841
8647
  }
8842
- await _chunkA2C6ONWAjs.checkPlayRunCompatibility.call(void 0,
8648
+ await _chunk5Z6EULD5js.checkPlayRunCompatibility.call(void 0,
8843
8649
  input.client.baseUrl,
8844
8650
  input.maintenancePolicy
8845
8651
  );
@@ -8857,7 +8663,7 @@ async function startAndWaitForPlayCompletion(input) {
8857
8663
  `[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
8858
8664
  );
8859
8665
  }
8860
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
8666
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
8861
8667
  phase: "cli.play_start_json_retry",
8862
8668
  ms: 0,
8863
8669
  ok: true,
@@ -8937,7 +8743,7 @@ async function startAndWaitForPlayCompletion(input) {
8937
8743
  _nullishCoalesce(input.open, () => ( false))
8938
8744
  );
8939
8745
  input.progress.phase("running");
8940
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
8746
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
8941
8747
  phase: "cli.play_start_admitted",
8942
8748
  ms: Date.now() - startedAt,
8943
8749
  ok: true,
@@ -8955,7 +8761,7 @@ async function startAndWaitForPlayCompletion(input) {
8955
8761
  startedAt,
8956
8762
  waitTimeoutMs: input.waitTimeoutMs
8957
8763
  });
8958
- const initialStatus = _chunkC5RQTTLPjs.normalizePlayStatus.call(void 0, initialTerminal);
8764
+ const initialStatus = _chunk7P2QVMBPjs.normalizePlayStatus.call(void 0, initialTerminal);
8959
8765
  const status2 = await resolvePlayRunOutputStatus({
8960
8766
  client: input.client,
8961
8767
  status: initialStatus,
@@ -8963,7 +8769,7 @@ async function startAndWaitForPlayCompletion(input) {
8963
8769
  jsonOutput: input.jsonOutput,
8964
8770
  fromDurableStatus: true
8965
8771
  });
8966
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
8772
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
8967
8773
  phase: "play_watch_terminal_status",
8968
8774
  workflowId,
8969
8775
  full: true,
@@ -9068,7 +8874,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9068
8874
  });
9069
8875
  }
9070
8876
  if (error instanceof _chunkRNSHCJMEjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
9071
- await _chunkA2C6ONWAjs.checkPlayRunCompatibility.call(void 0,
8877
+ await _chunk5Z6EULD5js.checkPlayRunCompatibility.call(void 0,
9072
8878
  input.client.baseUrl,
9073
8879
  input.maintenancePolicy,
9074
8880
  admissionDeadline.signal
@@ -9109,7 +8915,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9109
8915
  `[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
9110
8916
  );
9111
8917
  }
9112
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
8918
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
9113
8919
  phase: "cli.play_start_stream_retry",
9114
8920
  ms: 0,
9115
8921
  ok: true,
@@ -9130,7 +8936,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
9130
8936
  `[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
9131
8937
  );
9132
8938
  }
9133
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
8939
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
9134
8940
  phase: "cli.play_start_stream_retry",
9135
8941
  ms: 0,
9136
8942
  ok: true,
@@ -9187,7 +8993,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9187
8993
  if (launchConfirmed || !runId || runId === "pending") return;
9188
8994
  launchConfirmed = true;
9189
8995
  await _optionalChain([input, 'access', _313 => _313.onRunAdmitted, 'optionalCall', _314 => _314(runId)]);
9190
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
8996
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
9191
8997
  phase: "cli.play_start_admitted",
9192
8998
  ms: Date.now() - startedAt,
9193
8999
  ok: true,
@@ -9221,7 +9027,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9221
9027
  full: input.fullJson
9222
9028
  });
9223
9029
  } catch (error) {
9224
- if (_chunkC5RQTTLPjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9030
+ if (_chunk7P2QVMBPjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
9225
9031
  return null;
9226
9032
  }
9227
9033
  throw error;
@@ -9392,7 +9198,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9392
9198
  };
9393
9199
  }
9394
9200
  if (!canonicalTerminal) {
9395
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
9201
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
9396
9202
  phase: "cli.play_start_stream_stale_terminal_ignored",
9397
9203
  ms: Date.now() - startedAt,
9398
9204
  ok: true,
@@ -9413,14 +9219,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9413
9219
  fromDurableStatus
9414
9220
  }) : canonicalTerminal;
9415
9221
  if (input.fullJson === true) {
9416
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
9222
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
9417
9223
  phase: "play_watch_terminal_status",
9418
9224
  workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
9419
9225
  full: true,
9420
9226
  source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
9421
9227
  });
9422
9228
  }
9423
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
9229
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
9424
9230
  phase: "cli.play_start_stream_terminal",
9425
9231
  ms: Date.now() - startedAt,
9426
9232
  ok: true,
@@ -9440,7 +9246,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9440
9246
  clearTimeout(timeout);
9441
9247
  }
9442
9248
  controller.abort();
9443
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
9249
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
9444
9250
  phase: "cli.play_start_stream_handoff_to_tail",
9445
9251
  ms: Date.now() - startedAt,
9446
9252
  ok: true,
@@ -9471,7 +9277,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9471
9277
  if (timedOut) {
9472
9278
  const terminal = await fetchKnownTerminalStatus();
9473
9279
  if (terminal) {
9474
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
9280
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
9475
9281
  phase: "cli.play_start_stream_timeout_status_reconcile",
9476
9282
  ms: Date.now() - startedAt,
9477
9283
  ok: true,
@@ -9491,7 +9297,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9491
9297
  lastPhase
9492
9298
  });
9493
9299
  }
9494
- if (lastKnownWorkflowId && (terminalWindowExpired || _chunkC5RQTTLPjs.isTransientPlayRunReadError.call(void 0, error))) {
9300
+ if (lastKnownWorkflowId && (terminalWindowExpired || _chunk7P2QVMBPjs.isTransientPlayRunReadError.call(void 0, error))) {
9495
9301
  if (timeout) {
9496
9302
  clearTimeout(timeout);
9497
9303
  }
@@ -9502,7 +9308,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9502
9308
  `
9503
9309
  );
9504
9310
  }
9505
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
9311
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
9506
9312
  phase: "cli.play_start_stream_reconnect",
9507
9313
  ms: Date.now() - startedAt,
9508
9314
  ok: true,
@@ -9529,7 +9335,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9529
9335
  });
9530
9336
  }
9531
9337
  if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
9532
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
9338
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
9533
9339
  phase: "cli.play_start_stream_transient_failure",
9534
9340
  ms: Date.now() - startedAt,
9535
9341
  ok: false,
@@ -9557,7 +9363,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
9557
9363
  `[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
9558
9364
  );
9559
9365
  }
9560
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
9366
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
9561
9367
  phase: "cli.play_start_stream_reconnect",
9562
9368
  ms: Date.now() - startedAt,
9563
9369
  ok: true,
@@ -9637,7 +9443,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
9637
9443
  "logs"
9638
9444
  ]);
9639
9445
  function formatPlayLogLine(rawLine, state) {
9640
- const classified = _chunkC5RQTTLPjs.classifyLogLine.call(void 0, rawLine);
9446
+ const classified = _chunk7P2QVMBPjs.classifyLogLine.call(void 0, rawLine);
9641
9447
  const line = classified.line;
9642
9448
  const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
9643
9449
  const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _336 => _336[1]]) ? new Date(timestampMatch[1]) : null;
@@ -9652,14 +9458,14 @@ function formatPlayLogLine(rawLine, state) {
9652
9458
  if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
9653
9459
  const providerWait = formatProviderCapacityWaitLogLine(line);
9654
9460
  if (providerWait && !state.verbose) {
9655
- return _chunkC5RQTTLPjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9461
+ return _chunk7P2QVMBPjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
9656
9462
  }
9657
9463
  const mapProgress = formatMapProgressDiagnosticLogLine(line);
9658
9464
  if (mapProgress && !state.verbose) {
9659
- return _chunkC5RQTTLPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9465
+ return _chunk7P2QVMBPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
9660
9466
  }
9661
9467
  if (/\[worker\] picked up run\b/.test(message)) {
9662
- if (!_chunkC5RQTTLPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9468
+ if (!_chunk7P2QVMBPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9663
9469
  return null;
9664
9470
  }
9665
9471
  if (state.emittedRunnerStarted) {
@@ -9672,7 +9478,7 @@ function formatPlayLogLine(rawLine, state) {
9672
9478
  /^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
9673
9479
  );
9674
9480
  if (mapStart) {
9675
- if (!_chunkC5RQTTLPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9481
+ if (!_chunk7P2QVMBPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9676
9482
  return null;
9677
9483
  }
9678
9484
  const [, rows, fields2, namespace, cached, pending] = mapStart;
@@ -9682,7 +9488,7 @@ function formatPlayLogLine(rawLine, state) {
9682
9488
  /^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
9683
9489
  );
9684
9490
  if (mapDone) {
9685
- if (!_chunkC5RQTTLPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9491
+ if (!_chunk7P2QVMBPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
9686
9492
  return null;
9687
9493
  }
9688
9494
  const [, results, executed, cached] = mapDone;
@@ -10982,7 +10788,7 @@ function formatRecentRunLogLines(value) {
10982
10788
  (line) => typeof line === "string"
10983
10789
  );
10984
10790
  if (tail.length === 0) return [];
10985
- const shown = tail.map((line) => _chunkC5RQTTLPjs.classifyLogLine.call(void 0, line)).filter(
10791
+ const shown = tail.map((line) => _chunk7P2QVMBPjs.classifyLogLine.call(void 0, line)).filter(
10986
10792
  (entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
10987
10793
  ).slice(-8);
10988
10794
  const total = readNonNegativeInteger(logs.totalCount);
@@ -11280,11 +11086,11 @@ function buildPlayCompletionTextLines(status) {
11280
11086
  }
11281
11087
  function writePlayResult(status, jsonOutput, options) {
11282
11088
  const packaged = getPlayRunPackage(status);
11283
- if (status.package) _chunk3CXHK4TWjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11089
+ if (status.package) _chunkKCKAFTPYjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
11284
11090
  const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
11285
11091
  if (jsonOutput) {
11286
11092
  const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
11287
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
11093
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
11288
11094
  hits ? { ...payload2, hits } : payload2,
11289
11095
  { json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
11290
11096
  );
@@ -11300,7 +11106,7 @@ function writePlayResult(status, jsonOutput, options) {
11300
11106
  ...buildPlayCompletionTextLines(status),
11301
11107
  ...formatRunHitsLines(hits)
11302
11108
  ];
11303
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, displayPackage, {
11109
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, displayPackage, {
11304
11110
  json: false,
11305
11111
  text: `${lines2.join("\n")}
11306
11112
  `
@@ -11351,7 +11157,7 @@ function writePlayResult(status, jsonOutput, options) {
11351
11157
  lines.push(...buildBillingRollupTextLines(status));
11352
11158
  const compact = compactPlayStatus(status);
11353
11159
  const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
11354
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
11160
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
11355
11161
  {
11356
11162
  ...payload,
11357
11163
  render: {
@@ -11575,7 +11381,7 @@ async function fetchBackingDatasetRows(input) {
11575
11381
  }
11576
11382
  offset += page.rows.length;
11577
11383
  }
11578
- const withError = _chunk3CXHK4TWjs.tableExportHasFailedRows.call(void 0,
11384
+ const withError = _chunkKCKAFTPYjs.tableExportHasFailedRows.call(void 0,
11579
11385
  sheetRows.filter(
11580
11386
  (row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
11581
11387
  )
@@ -11591,7 +11397,7 @@ async function fetchBackingDatasetRows(input) {
11591
11397
  return [
11592
11398
  withError ? {
11593
11399
  ...exported,
11594
- [_chunk3CXHK4TWjs.TABLE_EXPORT_ERROR_COLUMN]: _chunk3CXHK4TWjs.tableExportErrorCell.call(void 0,
11400
+ [_chunkKCKAFTPYjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkKCKAFTPYjs.tableExportErrorCell.call(void 0,
11595
11401
  row
11596
11402
  )
11597
11403
  } : exported
@@ -12126,7 +11932,7 @@ function renderServerResultView(value) {
12126
11932
  function writeStartedPlayRun(input) {
12127
11933
  if (input.package && isPlayRunPackageValue(input.package)) {
12128
11934
  const run = input.package.run;
12129
- _chunk3CXHK4TWjs.recordPlayTermination.call(void 0, {
11935
+ _chunkKCKAFTPYjs.recordPlayTermination.call(void 0, {
12130
11936
  id: run.id,
12131
11937
  status: run.status,
12132
11938
  finishedAt: run.finishedAt
@@ -12139,7 +11945,7 @@ function writeStartedPlayRun(input) {
12139
11945
  dashboardUrl: input.dashboardUrl,
12140
11946
  package: input.package
12141
11947
  };
12142
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
11948
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
12143
11949
  json: true,
12144
11950
  fields: input.jsonFields
12145
11951
  });
@@ -12161,7 +11967,7 @@ function writeStartedPlayRun(input) {
12161
11967
  input.progress.writeLine(output2, process.stdout);
12162
11968
  return;
12163
11969
  }
12164
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, input.package, {
11970
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, input.package, {
12165
11971
  json: false,
12166
11972
  text: `${output2}
12167
11973
  `
@@ -12196,7 +12002,7 @@ function writeStartedPlayRun(input) {
12196
12002
  ) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
12197
12003
  ];
12198
12004
  if (input.jsonOutput) {
12199
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12005
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
12200
12006
  return;
12201
12007
  }
12202
12008
  const output = lines.join("\n");
@@ -12204,7 +12010,7 @@ function writeStartedPlayRun(input) {
12204
12010
  input.progress.writeLine(output, process.stdout);
12205
12011
  return;
12206
12012
  }
12207
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
12013
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
12208
12014
  {
12209
12015
  ...payload,
12210
12016
  render: { sections: [{ title: "play run", lines }] }
@@ -12214,7 +12020,7 @@ function writeStartedPlayRun(input) {
12214
12020
  );
12215
12021
  }
12216
12022
  function parsePlayCheckOptions(args) {
12217
- const selection = _chunkF73PD2XDjs.parseJsonFields.call(void 0, args, "check");
12023
+ const selection = _chunkQKKU2FH4js.parseJsonFields.call(void 0, args, "check");
12218
12024
  args = selection.args;
12219
12025
  const target = args[0];
12220
12026
  if (!target || target.startsWith("-")) {
@@ -12226,7 +12032,7 @@ function parsePlayCheckOptions(args) {
12226
12032
  if (arg !== "--json" && arg !== "--full")
12227
12033
  throw new Error(`Unknown plays check option: ${arg}`);
12228
12034
  }
12229
- const jsonOutput = _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
12035
+ const jsonOutput = _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
12230
12036
  return {
12231
12037
  target,
12232
12038
  jsonOutput,
@@ -12302,7 +12108,7 @@ ${PLAY_PUBLISH_USAGE}`
12302
12108
  useLatest,
12303
12109
  expectedArtifactHash,
12304
12110
  dryRun,
12305
- jsonOutput: _chunkF73PD2XDjs.argsWantJson.call(void 0, args)
12111
+ jsonOutput: _chunkQKKU2FH4js.argsWantJson.call(void 0, args)
12306
12112
  };
12307
12113
  }
12308
12114
  var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
@@ -12343,7 +12149,7 @@ ${PLAY_SAVE_USAGE}`);
12343
12149
  target,
12344
12150
  expectedArtifactHash,
12345
12151
  dryRun,
12346
- jsonOutput: _chunkF73PD2XDjs.argsWantJson.call(void 0, args)
12152
+ jsonOutput: _chunkQKKU2FH4js.argsWantJson.call(void 0, args)
12347
12153
  };
12348
12154
  }
12349
12155
  function printScheduledPlayCapacity(capacity) {
@@ -12540,7 +12346,7 @@ function printPublishReceipt(input) {
12540
12346
  }
12541
12347
  function formatPlaySandboxRuntimeWarning(declaration) {
12542
12348
  if (!declaration) return null;
12543
- const warning = formatNonStandardSandboxRuntimeWarning(
12349
+ const warning = _chunkR7J7CJPZjs.formatNonStandardSandboxRuntimeWarning.call(void 0,
12544
12350
  _chunkYGCKMI5Pjs.resolvePlaySandboxRuntimeLimits.call(void 0, declaration)
12545
12351
  );
12546
12352
  return warning ? `Warning: ${warning}` : null;
@@ -12554,7 +12360,7 @@ function printBundledRuntimeWarning(bundle) {
12554
12360
  async function handlePlayCheck(args) {
12555
12361
  const options = parsePlayCheckOptions(args);
12556
12362
  if (!isFileTarget(options.target)) {
12557
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
12363
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
12558
12364
  try {
12559
12365
  await assertCanonicalNamedPlayReference(client, options.target, {
12560
12366
  command: "check"
@@ -12583,7 +12389,7 @@ async function handlePlayCheck(args) {
12583
12389
  },
12584
12390
  ...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
12585
12391
  };
12586
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, result, {
12392
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, result, {
12587
12393
  json: options.jsonOutput,
12588
12394
  fields: options.jsonFields,
12589
12395
  text: renderPlayCheckOutput(result) + "\n"
@@ -12593,7 +12399,7 @@ async function handlePlayCheck(args) {
12593
12399
  const resolved = _path.resolve.call(void 0, options.target);
12594
12400
  const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
12595
12401
  if (options.jsonOutput) {
12596
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
12402
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
12597
12403
  {
12598
12404
  kind: "play_check",
12599
12405
  checked: "named_contract",
@@ -12624,7 +12430,7 @@ async function handlePlayCheck(args) {
12624
12430
  detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
12625
12431
  publishCommand: _optionalChain([primary, 'optionalAccess', _478 => _478.result, 'access', _479 => _479.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
12626
12432
  });
12627
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, output, {
12433
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, output, {
12628
12434
  json: options.jsonOutput,
12629
12435
  fields: options.jsonFields,
12630
12436
  text: renderPlayCheckOutput(output) + "\n"
@@ -12692,7 +12498,7 @@ async function checkOneExportedPlay(input) {
12692
12498
  }
12693
12499
  const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
12694
12500
  const authoringErrors = collectPlayGraphAuthoringErrors(graph);
12695
- const client = _nullishCoalesce(input.client, () => ( new (0, _chunkTCQYWZFSjs.DeeplineClient)()));
12501
+ const client = _nullishCoalesce(input.client, () => ( new (0, _chunkSMSQVRHEjs.DeeplineClient)()));
12696
12502
  const integrationMode = resolveEvalIntegrationMode();
12697
12503
  const checked = await checkLocalPlayGraph({
12698
12504
  client,
@@ -12748,8 +12554,8 @@ async function handleFileBackedRun(options, hooks) {
12748
12554
  let prefetchClient;
12749
12555
  let admissionCapability;
12750
12556
  let cancelAdmissionCapability;
12751
- let cliAdmission = _chunkA2C6ONWAjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12752
- const progress = _nullishCoalesce(_chunkPVA3MWCOjs.getActiveCliProgress.call(void 0, ), () => ( _chunkPVA3MWCOjs.createCliProgress.call(void 0, !options.jsonOutput)));
12557
+ let cliAdmission = _chunk5Z6EULD5js.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12558
+ const progress = _nullishCoalesce(_chunkMJTK6Q3Gjs.getActiveCliProgress.call(void 0, ), () => ( _chunkMJTK6Q3Gjs.createCliProgress.call(void 0, !options.jsonOutput)));
12753
12559
  const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _488 => _488.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
12754
12560
  const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
12755
12561
  progress.phase("compiling play");
@@ -12766,11 +12572,11 @@ async function handleFileBackedRun(options, hooks) {
12766
12572
  return 1;
12767
12573
  }
12768
12574
  if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
12769
- const clientForPrefetch = new (0, _chunkTCQYWZFSjs.DeeplineClient)(playRunClientOptions(options));
12575
+ const clientForPrefetch = new (0, _chunkSMSQVRHEjs.DeeplineClient)(playRunClientOptions(options));
12770
12576
  prefetchClient = clientForPrefetch;
12771
12577
  const capabilityController = new AbortController();
12772
12578
  cancelAdmissionCapability = () => capabilityController.abort();
12773
- admissionCapability = _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
12579
+ admissionCapability = _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
12774
12580
  "cli.play_admission_capability_prefetch",
12775
12581
  { targetKind: "file" },
12776
12582
  () => clientForPrefetch.prefetchPlayRunAdmissionCapability({
@@ -12781,7 +12587,7 @@ async function handleFileBackedRun(options, hooks) {
12781
12587
  }
12782
12588
  let graph;
12783
12589
  try {
12784
- graph = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
12590
+ graph = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
12785
12591
  "cli.play_file_bundle_graph",
12786
12592
  { targetKind: "file" },
12787
12593
  () => collectBundledPlayGraph(
@@ -12794,7 +12600,7 @@ async function handleFileBackedRun(options, hooks) {
12794
12600
  assertPlayGraphAuthoring(graph);
12795
12601
  if (options.dryRun) {
12796
12602
  progress.complete();
12797
- const plan = _chunkWHP3FJ7Tjs.planLocalPlayExecution.call(void 0, graph, {
12603
+ const plan = _chunk2W77YCKHjs.planLocalPlayExecution.call(void 0, graph, {
12798
12604
  runIdFile: options.runIdFile
12799
12605
  });
12800
12606
  if (_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
@@ -12805,9 +12611,9 @@ async function handleFileBackedRun(options, hooks) {
12805
12611
  });
12806
12612
  return 0;
12807
12613
  }
12808
- client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkTCQYWZFSjs.DeeplineClient)(playRunClientOptions(options))));
12614
+ client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkSMSQVRHEjs.DeeplineClient)(playRunClientOptions(options))));
12809
12615
  if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
12810
- await _chunkA2C6ONWAjs.checkPlayRunCompatibility.call(void 0,
12616
+ await _chunk5Z6EULD5js.checkPlayRunCompatibility.call(void 0,
12811
12617
  client.baseUrl,
12812
12618
  options.maintenancePolicy
12813
12619
  );
@@ -12820,7 +12626,7 @@ async function handleFileBackedRun(options, hooks) {
12820
12626
  });
12821
12627
  const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
12822
12628
  if (canDeferCompilerManifest) {
12823
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
12629
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
12824
12630
  phase: "cli.play_file_compile_manifests",
12825
12631
  ms: 0,
12826
12632
  ok: true,
@@ -12829,7 +12635,7 @@ async function handleFileBackedRun(options, hooks) {
12829
12635
  reason: "validated_by_run_route"
12830
12636
  });
12831
12637
  } else {
12832
- await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
12638
+ await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
12833
12639
  "cli.play_file_compile_manifests",
12834
12640
  { targetKind: "file", skipped: false },
12835
12641
  () => compileBundledPlayGraphManifests(client, graph)
@@ -12837,7 +12643,7 @@ async function handleFileBackedRun(options, hooks) {
12837
12643
  }
12838
12644
  progress.phase("compiled play");
12839
12645
  } catch (error) {
12840
- if (error instanceof _chunk3CXHK4TWjs.ExecutionOutputError) throw error;
12646
+ if (error instanceof _chunkKCKAFTPYjs.ExecutionOutputError) throw error;
12841
12647
  progress.fail();
12842
12648
  reportError(normalizePlayValidationError(error));
12843
12649
  return 1;
@@ -12848,13 +12654,13 @@ async function handleFileBackedRun(options, hooks) {
12848
12654
  if (bundleResult.importedPlayDependencies.length > 0) {
12849
12655
  try {
12850
12656
  renderLocalPlayExecutionPlan(
12851
- _chunkWHP3FJ7Tjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12657
+ _chunk2W77YCKHjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
12852
12658
  );
12853
12659
  progress.phase("pinning imported plays");
12854
- graph = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
12660
+ graph = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
12855
12661
  "cli.play_file_pin_imports",
12856
12662
  { targetKind: "file" },
12857
- () => _chunkWHP3FJ7Tjs.pinLocalPlayImports.call(void 0, client, graph)
12663
+ () => _chunk2W77YCKHjs.pinLocalPlayImports.call(void 0, client, graph)
12858
12664
  );
12859
12665
  bundleResult = graph.root;
12860
12666
  } catch (error) {
@@ -12870,7 +12676,7 @@ async function handleFileBackedRun(options, hooks) {
12870
12676
  const fileInputBindings = _chunkRNSHCJMEjs.fileInputBindingsFromStaticPipeline.call(void 0,
12871
12677
  _optionalChain([compilerManifest, 'optionalAccess', _490 => _490.staticPipeline])
12872
12678
  );
12873
- const stagedFileInputs = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
12679
+ const stagedFileInputs = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
12874
12680
  "cli.play_stage_inputs",
12875
12681
  {
12876
12682
  targetKind: "file",
@@ -12917,7 +12723,7 @@ async function handleFileBackedRun(options, hooks) {
12917
12723
  };
12918
12724
  if (options.watch) {
12919
12725
  progress.phase("starting run");
12920
- const finalStatus = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
12726
+ const finalStatus = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
12921
12727
  "cli.play_start_watch",
12922
12728
  { targetKind: "file", playName },
12923
12729
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -12979,7 +12785,7 @@ async function handleFileBackedRun(options, hooks) {
12979
12785
  return outputStatus.status === "completed" ? 0 : 1;
12980
12786
  }
12981
12787
  progress.phase("starting run");
12982
- const started = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
12788
+ const started = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
12983
12789
  "cli.play_start_unwatched",
12984
12790
  { targetKind: "file", playName },
12985
12791
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _497 => _497.onSubmission]) }).catch(async (error) => {
@@ -13045,9 +12851,9 @@ async function handleNamedRun(options, hooks) {
13045
12851
  if (options.target.kind !== "name") {
13046
12852
  throw new Error("Expected a named play run target.");
13047
12853
  }
13048
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)(playRunClientOptions(options));
13049
- let cliAdmission = _chunkA2C6ONWAjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
13050
- const progress = _nullishCoalesce(_chunkPVA3MWCOjs.getActiveCliProgress.call(void 0, ), () => ( _chunkPVA3MWCOjs.createCliProgress.call(void 0, !options.jsonOutput)));
12854
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)(playRunClientOptions(options));
12855
+ let cliAdmission = _chunk5Z6EULD5js.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
12856
+ const progress = _nullishCoalesce(_chunkMJTK6Q3Gjs.getActiveCliProgress.call(void 0, ), () => ( _chunkMJTK6Q3Gjs.createCliProgress.call(void 0, !options.jsonOutput)));
13051
12857
  const playName = options.target.name;
13052
12858
  const runtimeInput = options.input ? { ...options.input } : {};
13053
12859
  try {
@@ -13065,7 +12871,7 @@ async function handleNamedRun(options, hooks) {
13065
12871
  if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
13066
12872
  const capabilityController = new AbortController();
13067
12873
  cancelAdmissionCapability = () => capabilityController.abort();
13068
- admissionCapability = _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
12874
+ admissionCapability = _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
13069
12875
  "cli.play_admission_capability_prefetch",
13070
12876
  { targetKind: "name", playName },
13071
12877
  () => client.prefetchPlayRunAdmissionCapability({
@@ -13076,14 +12882,14 @@ async function handleNamedRun(options, hooks) {
13076
12882
  }
13077
12883
  const playDetail = needsPlayDefinition ? await (async () => {
13078
12884
  progress.phase("loading play definition");
13079
- return _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
12885
+ return _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
13080
12886
  "cli.play_load_definition",
13081
12887
  { targetKind: "name", playName, skipped: false },
13082
12888
  () => assertCanonicalNamedPlayReference(client, playName, {
13083
12889
  command: "run"
13084
12890
  })
13085
12891
  );
13086
- })() : (_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
12892
+ })() : (_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
13087
12893
  phase: "cli.play_load_definition",
13088
12894
  ms: 0,
13089
12895
  ok: true,
@@ -13092,7 +12898,7 @@ async function handleNamedRun(options, hooks) {
13092
12898
  skipped: true
13093
12899
  }), null);
13094
12900
  progress.phase("selecting revision");
13095
- const selectedRevisionId = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
12901
+ const selectedRevisionId = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
13096
12902
  "cli.play_select_revision",
13097
12903
  {
13098
12904
  targetKind: "name",
@@ -13117,10 +12923,10 @@ async function handleNamedRun(options, hooks) {
13117
12923
  ..._chunkRNSHCJMEjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
13118
12924
  ] : [];
13119
12925
  if (cliAdmission && fileInputBindings.length > 0) {
13120
- await _chunkA2C6ONWAjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
12926
+ await _chunk5Z6EULD5js.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
13121
12927
  cliAdmission = false;
13122
12928
  }
13123
- const stagedFileInputs = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
12929
+ const stagedFileInputs = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
13124
12930
  "cli.play_stage_inputs",
13125
12931
  {
13126
12932
  targetKind: "name",
@@ -13164,7 +12970,7 @@ async function handleNamedRun(options, hooks) {
13164
12970
  });
13165
12971
  if (options.watch) {
13166
12972
  progress.phase("starting run");
13167
- const finalStatus = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
12973
+ const finalStatus = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
13168
12974
  "cli.play_start_watch",
13169
12975
  { targetKind: "name", playName },
13170
12976
  () => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
@@ -13229,7 +13035,7 @@ async function handleNamedRun(options, hooks) {
13229
13035
  return outputStatus.status === "completed" ? 0 : 1;
13230
13036
  }
13231
13037
  progress.phase("starting run");
13232
- const started = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
13038
+ const started = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
13233
13039
  "cli.play_start_unwatched",
13234
13040
  { targetKind: "name", playName },
13235
13041
  () => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _510 => _510.onSubmission]) }).catch(async (error) => {
@@ -13289,7 +13095,7 @@ async function writePlayRunReceipt(client, status, output) {
13289
13095
  const next = { status: `deepline runs get ${status.runId}` };
13290
13096
  const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _518 => _518.exec, 'call', _519 => _519(status.runId), 'optionalAccess', _520 => _520[1]]), () => ( extractRunPlayName(status))), () => ( null));
13291
13097
  if (!terminal) {
13292
- _chunk3CXHK4TWjs.writeExecutionOutput.call(void 0,
13098
+ _chunkKCKAFTPYjs.writeExecutionOutput.call(void 0,
13293
13099
  {
13294
13100
  id: status.runId,
13295
13101
  status: status.status,
@@ -13369,10 +13175,10 @@ async function writePlayRunReceipt(client, status, output) {
13369
13175
  };
13370
13176
  }
13371
13177
  const byRows = new Map(collections.map((c) => [c.rows, c]));
13372
- const allCollections = _chunk3CXHK4TWjs.outputCollections.call(void 0, data).map(
13178
+ const allCollections = _chunkKCKAFTPYjs.outputCollections.call(void 0, data).map(
13373
13179
  (collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
13374
13180
  );
13375
- _chunk3CXHK4TWjs.writeExecutionOutput.call(void 0,
13181
+ _chunkKCKAFTPYjs.writeExecutionOutput.call(void 0,
13376
13182
  {
13377
13183
  id: status.runId,
13378
13184
  status: status.status,
@@ -13393,7 +13199,7 @@ async function writePlayRunReceipt(client, status, output) {
13393
13199
  }
13394
13200
  var TOOL_EXECUTION_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
13395
13201
  async function handlePlayRun(args, hooks) {
13396
- const parsedOptions = Array.isArray(args) ? _chunkAARF4SOWjs.parsePlayRunOptions.call(void 0, args) : args;
13202
+ const parsedOptions = Array.isArray(args) ? _chunkUSTJEENDjs.parsePlayRunOptions.call(void 0, args) : args;
13397
13203
  const options = parsedOptions.runIdFile ? {
13398
13204
  ...parsedOptions,
13399
13205
  runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
@@ -13410,7 +13216,7 @@ async function handlePlayRun(args, hooks) {
13410
13216
  JSON.stringify({
13411
13217
  version: 1,
13412
13218
  admissionState: "submitted_unknown",
13413
- baseUrl: new (0, _chunkTCQYWZFSjs.DeeplineClient)().baseUrl,
13219
+ baseUrl: new (0, _chunkSMSQVRHEjs.DeeplineClient)().baseUrl,
13414
13220
  ...intent
13415
13221
  })
13416
13222
  );
@@ -13644,7 +13450,7 @@ function renderRunOverviewText(overview, extras = {}) {
13644
13450
  );
13645
13451
  return `${lines.join("\n")}
13646
13452
 
13647
- ${_chunkF73PD2XDjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13453
+ ${_chunkQKKU2FH4js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
13648
13454
  }
13649
13455
  var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
13650
13456
  async function withRunReadTiming(command, stage, enabled, action) {
@@ -13668,7 +13474,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
13668
13474
  }
13669
13475
  }
13670
13476
  async function handleRunGet(args) {
13671
- const selection = _chunkF73PD2XDjs.parseJsonFields.call(void 0,
13477
+ const selection = _chunkQKKU2FH4js.parseJsonFields.call(void 0,
13672
13478
  args,
13673
13479
  args.includes("--config") ? "config" : "get"
13674
13480
  );
@@ -13681,7 +13487,7 @@ async function handleRunGet(args) {
13681
13487
  console.error(error instanceof Error ? error.message : usage2);
13682
13488
  return 1;
13683
13489
  }
13684
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
13490
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
13685
13491
  const timing = args.includes("--timing");
13686
13492
  const web = args.includes("--web");
13687
13493
  if (web || args.includes("--web-url")) {
@@ -13699,8 +13505,8 @@ async function handleRunGet(args) {
13699
13505
  const dashboardUrl2 = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
13700
13506
  const runUrl2 = _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
13701
13507
  if (web) {
13702
- const opened = _chunkF73PD2XDjs.openInBrowser.call(void 0, runUrl2);
13703
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
13508
+ const opened = _chunkQKKU2FH4js.openInBrowser.call(void 0, runUrl2);
13509
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
13704
13510
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
13705
13511
  {
13706
13512
  json: args.includes("--json"),
@@ -13711,7 +13517,7 @@ async function handleRunGet(args) {
13711
13517
  );
13712
13518
  return 0;
13713
13519
  }
13714
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
13520
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
13715
13521
  { dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
13716
13522
  { json: args.includes("--json"), text: `${runUrl2}
13717
13523
  ` }
@@ -13736,7 +13542,7 @@ async function handleRunGet(args) {
13736
13542
  "This server does not support recorded configuration reads."
13737
13543
  );
13738
13544
  }
13739
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
13545
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
13740
13546
  { runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
13741
13547
  { json: true, fields: selection.fields }
13742
13548
  );
@@ -13749,7 +13555,7 @@ async function handleRunGet(args) {
13749
13555
  timing,
13750
13556
  () => client.getRunInput(runId)
13751
13557
  );
13752
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, input, { json: true });
13558
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, input, { json: true });
13753
13559
  return 0;
13754
13560
  }
13755
13561
  const full = args.includes("--full");
@@ -13762,7 +13568,7 @@ async function handleRunGet(args) {
13762
13568
  failedLogs: args.includes("--log-failed")
13763
13569
  })
13764
13570
  );
13765
- if (status.package) _chunk3CXHK4TWjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13571
+ if (status.package) _chunkKCKAFTPYjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
13766
13572
  if (!status.package) {
13767
13573
  const legacyStatus = full ? await withRunReadTiming(
13768
13574
  "runs get",
@@ -13776,8 +13582,8 @@ async function handleRunGet(args) {
13776
13582
  const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
13777
13583
  const legacyDashboardUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
13778
13584
  const legacyRunUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
13779
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
13780
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
13585
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
13586
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
13781
13587
  {
13782
13588
  ...full ? legacyStatus : compactPlayStatus(legacyStatus),
13783
13589
  ...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
@@ -13788,7 +13594,7 @@ async function handleRunGet(args) {
13788
13594
  } else {
13789
13595
  writePlayResult(legacyStatus, false, { fullJson: full });
13790
13596
  if (legacyRunUrl)
13791
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
13597
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
13792
13598
  { dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
13793
13599
  { json: false, text: `run page: ${legacyRunUrl}
13794
13600
  ` }
@@ -13818,11 +13624,11 @@ async function handleRunGet(args) {
13818
13624
  )
13819
13625
  ]);
13820
13626
  const hitLines = formatRunHitsLines(hits);
13821
- const json = _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
13627
+ const json = _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
13822
13628
  const playName = resolveRunPlayName(status, runId);
13823
13629
  const dashboardUrl = playName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
13824
13630
  const runUrl = playName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
13825
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
13631
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
13826
13632
  {
13827
13633
  ...overview,
13828
13634
  ...dashboardUrl ? { dashboardUrl } : {},
@@ -13927,9 +13733,9 @@ async function handleRunLifecycleStatus(args) {
13927
13733
  console.error(error instanceof Error ? error.message : usage2);
13928
13734
  return 1;
13929
13735
  }
13930
- const status = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.status(runId);
13931
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
13932
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, status, { json: true });
13736
+ const status = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.status(runId);
13737
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
13738
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, status, { json: true });
13933
13739
  return 0;
13934
13740
  }
13935
13741
  if (!status.available) {
@@ -13972,7 +13778,7 @@ async function handleRunsRerun(args) {
13972
13778
  console.error(error instanceof Error ? error.message : usage2);
13973
13779
  return 1;
13974
13780
  }
13975
- const options = { json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) };
13781
+ const options = { json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) };
13976
13782
  for (let index = 0; index < args.length; index += 1) {
13977
13783
  if (args[index] === "--idempotency-key") {
13978
13784
  options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
@@ -14038,8 +13844,8 @@ ${usage2}
14038
13844
  Discover Plays: ${next.discover}
14039
13845
  Active runs: ${next.running}`
14040
13846
  );
14041
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
14042
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
13847
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
13848
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
14043
13849
  { ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
14044
13850
  { json: true }
14045
13851
  );
@@ -14054,7 +13860,7 @@ Active runs: ${next.running}`
14054
13860
  console.error("--offset requires --play.");
14055
13861
  return 1;
14056
13862
  }
14057
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
13863
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
14058
13864
  const page = await withRunReadTiming(
14059
13865
  "runs list",
14060
13866
  "run inventory",
@@ -14121,14 +13927,14 @@ Active runs: ${next.running}`
14121
13927
  return lines2.join("\n");
14122
13928
  });
14123
13929
  const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
14124
- 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}${_chunkF73PD2XDjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
13930
+ 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}${_chunkQKKU2FH4js.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
14125
13931
  if (page.hasMore) {
14126
13932
  lines.push("List truncated \u2014 more runs match this filter.");
14127
13933
  lines.push(
14128
13934
  nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
14129
13935
  );
14130
13936
  }
14131
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
13937
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
14132
13938
  {
14133
13939
  runs,
14134
13940
  count: runs.length,
@@ -14142,7 +13948,7 @@ Active runs: ${next.running}`
14142
13948
  },
14143
13949
  render: { sections: [{ title: "runs", lines }] }
14144
13950
  },
14145
- { json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) }
13951
+ { json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) }
14146
13952
  );
14147
13953
  return 0;
14148
13954
  }
@@ -14172,7 +13978,7 @@ async function handleRunTail(args) {
14172
13978
  console.error("--log-level requires one of: debug, info, warn, error.");
14173
13979
  return 1;
14174
13980
  }
14175
- const parsed = _chunkC5RQTTLPjs.parseLogLevel.call(void 0, value);
13981
+ const parsed = _chunk7P2QVMBPjs.parseLogLevel.call(void 0, value);
14176
13982
  if (!parsed) {
14177
13983
  console.error(
14178
13984
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14210,9 +14016,9 @@ async function handleRunTail(args) {
14210
14016
  );
14211
14017
  return 1;
14212
14018
  }
14213
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
14019
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
14214
14020
  const jsonLines = args.includes("--jsonl");
14215
- const jsonOutput = !jsonLines && _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
14021
+ const jsonOutput = !jsonLines && _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
14216
14022
  const compact = args.includes("--compact");
14217
14023
  const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
14218
14024
  const compactState = {
@@ -14293,7 +14099,7 @@ async function handleRunLogs(args) {
14293
14099
  ]);
14294
14100
  const cursorIndex = args.indexOf("--cursor");
14295
14101
  const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
14296
- const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkC5RQTTLPjs.isRunLogsCursor.call(void 0, cursorValue));
14102
+ const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk7P2QVMBPjs.isRunLogsCursor.call(void 0, cursorValue));
14297
14103
  if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
14298
14104
  return handleRunEventSearch(args);
14299
14105
  }
@@ -14327,7 +14133,7 @@ async function handleRunLogs(args) {
14327
14133
  console.error("--log-level requires one of: debug, info, warn, error.");
14328
14134
  return 1;
14329
14135
  }
14330
- const parsed = _chunkC5RQTTLPjs.parseLogLevel.call(void 0, value);
14136
+ const parsed = _chunk7P2QVMBPjs.parseLogLevel.call(void 0, value);
14331
14137
  if (!parsed) {
14332
14138
  console.error(
14333
14139
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -14374,12 +14180,12 @@ async function handleRunLogs(args) {
14374
14180
  );
14375
14181
  return 1;
14376
14182
  }
14377
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
14183
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
14378
14184
  if (outPath) {
14379
14185
  const result2 = await client.runs.logs(runId, { all: true });
14380
- const logs = result2.entries.filter((line) => _chunkC5RQTTLPjs.logLevelReaches.call(void 0, _chunkC5RQTTLPjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkC5RQTTLPjs.classifyLogLine.call(void 0, line).line);
14186
+ const logs = result2.entries.filter((line) => _chunk7P2QVMBPjs.logLevelReaches.call(void 0, _chunk7P2QVMBPjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk7P2QVMBPjs.classifyLogLine.call(void 0, line).line);
14381
14187
  _fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
14382
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
14188
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
14383
14189
  {
14384
14190
  runId: result2.runId,
14385
14191
  log_path: outPath,
@@ -14402,7 +14208,7 @@ async function handleRunLogs(args) {
14402
14208
  ]
14403
14209
  }
14404
14210
  },
14405
- { json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) }
14211
+ { json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) }
14406
14212
  );
14407
14213
  return 0;
14408
14214
  }
@@ -14433,7 +14239,7 @@ async function handleRunLogs(args) {
14433
14239
  }
14434
14240
  };
14435
14241
  const text = buildRunLogsText(filteredResult);
14436
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
14242
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
14437
14243
  {
14438
14244
  runId: result.runId,
14439
14245
  totalCount: result.totalCount,
@@ -14457,7 +14263,7 @@ async function handleRunLogs(args) {
14457
14263
  render: { sections: [{ title: "run logs", lines: entries }] }
14458
14264
  },
14459
14265
  {
14460
- json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args),
14266
+ json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args),
14461
14267
  text
14462
14268
  }
14463
14269
  );
@@ -14481,7 +14287,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14481
14287
  );
14482
14288
  }
14483
14289
  const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
14484
- (entry) => _chunkC5RQTTLPjs.logLevelReaches.call(void 0, _chunkC5RQTTLPjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14290
+ (entry) => _chunk7P2QVMBPjs.logLevelReaches.call(void 0, _chunk7P2QVMBPjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
14485
14291
  );
14486
14292
  const selected = matching.slice(-limit);
14487
14293
  const olderMatchesExist = matching.length > selected.length;
@@ -14491,7 +14297,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
14491
14297
  lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _553 => _553.at, 'call', _554 => _554(-1), 'optionalAccess', _555 => _555.seq]), () => ( null)),
14492
14298
  truncated: result.truncated || olderMatchesExist,
14493
14299
  hasMore: olderMatchesExist,
14494
- nextCursor: olderMatchesExist ? _chunkC5RQTTLPjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14300
+ nextCursor: olderMatchesExist ? _chunk7P2QVMBPjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
14495
14301
  };
14496
14302
  }
14497
14303
  async function handleRunEventSearch(args) {
@@ -14558,7 +14364,7 @@ ${usage2}`);
14558
14364
  namespace,
14559
14365
  ...backend ? { backend } : {}
14560
14366
  } : void 0;
14561
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
14367
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
14562
14368
  const result = await client.runs.searchEvents({
14563
14369
  ...runId ? { runId } : {},
14564
14370
  ...values["--since"] ? { since: values["--since"] } : {},
@@ -14630,7 +14436,7 @@ ${renderedDetails}` : ""}`;
14630
14436
  "--limit",
14631
14437
  String(limit)
14632
14438
  ].join(" ") : null;
14633
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
14439
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
14634
14440
  {
14635
14441
  events,
14636
14442
  nextCursor: result.nextCursor,
@@ -14641,14 +14447,14 @@ ${renderedDetails}` : ""}`;
14641
14447
  render: { sections: [{ title: "runtime events", lines }] }
14642
14448
  },
14643
14449
  {
14644
- json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args),
14450
+ json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args),
14645
14451
  text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
14646
14452
  }
14647
14453
  );
14648
14454
  return 0;
14649
14455
  }
14650
14456
  function buildRunLogsText(result) {
14651
- const lines = result.entries.map((line) => _chunkC5RQTTLPjs.classifyLogLine.call(void 0, line).line);
14457
+ const lines = result.entries.map((line) => _chunk7P2QVMBPjs.classifyLogLine.call(void 0, line).line);
14652
14458
  if (result.warning) {
14653
14459
  if (lines.length > 0) lines.push("");
14654
14460
  lines.push(`warning: ${result.warning}`);
@@ -14682,7 +14488,7 @@ async function handleRunStop(args) {
14682
14488
  reason = args[++index];
14683
14489
  }
14684
14490
  }
14685
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
14491
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
14686
14492
  const result = await client.runs.stop(runId, { reason });
14687
14493
  const state = resolveRunStopState(result);
14688
14494
  const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
@@ -14697,7 +14503,7 @@ async function handleRunStop(args) {
14697
14503
  ...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
14698
14504
  `inspect: deepline runs get ${runId} --full`
14699
14505
  ];
14700
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
14506
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
14701
14507
  {
14702
14508
  ...cancelling,
14703
14509
  state,
@@ -14712,7 +14518,7 @@ async function handleRunStop(args) {
14712
14518
  ]
14713
14519
  }
14714
14520
  },
14715
- { json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) }
14521
+ { json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) }
14716
14522
  );
14717
14523
  return 0;
14718
14524
  }
@@ -14729,7 +14535,7 @@ async function handleRunStop(args) {
14729
14535
  ];
14730
14536
  process.stderr.write(`${lines2.join("\n")}
14731
14537
  `);
14732
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
14538
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
14733
14539
  {
14734
14540
  ...result,
14735
14541
  render: {
@@ -14744,7 +14550,7 @@ async function handleRunStop(args) {
14744
14550
  ]
14745
14551
  }
14746
14552
  },
14747
- { json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) }
14553
+ { json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) }
14748
14554
  );
14749
14555
  return 1;
14750
14556
  }
@@ -14755,12 +14561,12 @@ async function handleRunStop(args) {
14755
14561
  `warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
14756
14562
  ] : []
14757
14563
  ];
14758
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
14564
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
14759
14565
  {
14760
14566
  ...result,
14761
14567
  render: { sections: [{ title: "run stop", lines }] }
14762
14568
  },
14763
- { json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) }
14569
+ { json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) }
14764
14570
  );
14765
14571
  return 0;
14766
14572
  }
@@ -14810,18 +14616,18 @@ async function handleRunStopAll(args) {
14810
14616
  reason = args[++index];
14811
14617
  }
14812
14618
  }
14813
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
14619
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
14814
14620
  if (dryRun) {
14815
14621
  const result2 = await client.runs.stopAll({ dryRun: true, reason });
14816
14622
  const lines2 = buildStopAllDryRunTextLines(result2);
14817
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
14623
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
14818
14624
  {
14819
14625
  ...result2,
14820
14626
  render: {
14821
14627
  sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
14822
14628
  }
14823
14629
  },
14824
- { json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14630
+ { json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
14825
14631
  ` }
14826
14632
  );
14827
14633
  return 0;
@@ -14834,17 +14640,17 @@ async function handleRunStopAll(args) {
14834
14640
  ...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
14835
14641
  ...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
14836
14642
  ];
14837
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
14643
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
14838
14644
  {
14839
14645
  ...result,
14840
14646
  render: { sections: [{ title: "workspace stop-all", lines }] }
14841
14647
  },
14842
- { json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) }
14648
+ { json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args) }
14843
14649
  );
14844
14650
  return result.failed > 0 || result.partial ? 1 : 0;
14845
14651
  }
14846
14652
  async function handleRunExport(args) {
14847
- const selection = _chunkF73PD2XDjs.parseJsonFields.call(void 0, args, "export");
14653
+ const selection = _chunkQKKU2FH4js.parseJsonFields.call(void 0, args, "export");
14848
14654
  args = selection.args;
14849
14655
  const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--summary full|counts] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
14850
14656
  let runId;
@@ -14915,17 +14721,17 @@ async function handleRunExport(args) {
14915
14721
  "INVALID_ARGUMENT"
14916
14722
  );
14917
14723
  }
14918
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
14724
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
14919
14725
  let status = await client.getPlayStatus(runId, { full: true });
14920
14726
  assertRunExportStatusIdentity(status, runId);
14921
14727
  if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
14922
- const progress = _chunkPVA3MWCOjs.createCliProgress.call(void 0, !_chunkF73PD2XDjs.argsWantJson.call(void 0, args));
14728
+ const progress = _chunkMJTK6Q3Gjs.createCliProgress.call(void 0, !_chunkQKKU2FH4js.argsWantJson.call(void 0, args));
14923
14729
  try {
14924
14730
  await waitForPlayCompletionByWatch({
14925
14731
  client,
14926
14732
  playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
14927
14733
  workflowId: runId,
14928
- jsonOutput: _chunkF73PD2XDjs.argsWantJson.call(void 0, args),
14734
+ jsonOutput: _chunkQKKU2FH4js.argsWantJson.call(void 0, args),
14929
14735
  emitLogs: false,
14930
14736
  waitTimeoutMs,
14931
14737
  startedAt: Date.now(),
@@ -14993,7 +14799,7 @@ async function handleRunExport(args) {
14993
14799
  rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _569 => _569.rowsInfo, 'access', _570 => _570.totalRows]), () => ( null)),
14994
14800
  ...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
14995
14801
  ...rowFailures ? { rowFailures } : {},
14996
- columns: _chunk3CXHK4TWjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.columns]), () => ( []))),
14802
+ columns: _chunkKCKAFTPYjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.columns]), () => ( []))),
14997
14803
  ...currentTableNotice ? { notice: currentTableNotice } : {},
14998
14804
  ...metadataOutPath ? { metadata_path: metadataOutPath } : {},
14999
14805
  ...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
@@ -15027,8 +14833,8 @@ async function handleRunExport(args) {
15027
14833
  "utf-8"
15028
14834
  );
15029
14835
  }
15030
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, payload, {
15031
- json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args),
14836
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, payload, {
14837
+ json: _chunkQKKU2FH4js.argsWantJson.call(void 0, args),
15032
14838
  fields: selection.fields,
15033
14839
  text: `${lines.join("\n")}
15034
14840
  `
@@ -15062,10 +14868,10 @@ async function handlePlayGet(args) {
15062
14868
  );
15063
14869
  return 2;
15064
14870
  }
15065
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
14871
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
15066
14872
  const explicitJson = args.includes("--json");
15067
14873
  const sourceOutput = args.includes("--source");
15068
- const jsonOutput = sourceOutput ? explicitJson : _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
14874
+ const jsonOutput = sourceOutput ? explicitJson : _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
15069
14875
  const requestedRevisionFlags = [
15070
14876
  args.includes("--working"),
15071
14877
  args.includes("--live"),
@@ -15128,7 +14934,7 @@ async function handlePlayGet(args) {
15128
14934
  }
15129
14935
  const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
15130
14936
  if (jsonOutput) {
15131
- _chunkF73PD2XDjs.printCompactJson.call(void 0, {
14937
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, {
15132
14938
  ...detail,
15133
14939
  ...materializedFile ? {
15134
14940
  message: loadedMessage,
@@ -15220,8 +15026,8 @@ async function handlePlayVersions(args) {
15220
15026
  console.error("Usage: deepline plays versions --name <name> [--json]");
15221
15027
  return 1;
15222
15028
  }
15223
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
15224
- const jsonOutput = _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
15029
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
15030
+ const jsonOutput = _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
15225
15031
  await assertCanonicalNamedPlayReference(client, playName, {
15226
15032
  command: "versions"
15227
15033
  });
@@ -15229,7 +15035,7 @@ async function handlePlayVersions(args) {
15229
15035
  parseReferencedPlayTarget(playName).playName
15230
15036
  );
15231
15037
  if (jsonOutput) {
15232
- _chunkF73PD2XDjs.printCompactJson.call(void 0, { versions });
15038
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, { versions });
15233
15039
  return 0;
15234
15040
  }
15235
15041
  if (versions.length === 0) {
@@ -15272,8 +15078,8 @@ async function handlePlayCost(args) {
15272
15078
  console.error("Usage: deepline plays cost <play> [--json]");
15273
15079
  return 2;
15274
15080
  }
15275
- const result = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().getPlayCostEstimate(name);
15276
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15081
+ const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getPlayCostEstimate(name);
15082
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
15277
15083
  else
15278
15084
  console.log(
15279
15085
  `${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
@@ -15281,9 +15087,9 @@ async function handlePlayCost(args) {
15281
15087
  return 0;
15282
15088
  }
15283
15089
  async function handlePlayList(args) {
15284
- const jsonOutput = _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
15090
+ const jsonOutput = _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
15285
15091
  const showCost = args.includes("--show-cost");
15286
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
15092
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
15287
15093
  const categoriesIndex = args.indexOf("--categories");
15288
15094
  const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _592 => _592[categoriesIndex + 1], 'optionalAccess', _593 => _593.trim, 'call', _594 => _594()]) : void 0;
15289
15095
  const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
@@ -15381,7 +15187,7 @@ async function handlePlayList(args) {
15381
15187
  lines.push("List truncated \u2014 more plays are available.");
15382
15188
  lines.push(`Next page: ${nextPage}`);
15383
15189
  }
15384
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
15190
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
15385
15191
  {
15386
15192
  plays,
15387
15193
  count: plays.length,
@@ -15399,7 +15205,7 @@ async function handlePlayList(args) {
15399
15205
  }
15400
15206
  async function handlePlayPin(args, pinned) {
15401
15207
  const target = _optionalChain([args, 'access', _603 => _603.find, 'call', _604 => _604((arg) => !arg.startsWith("-")), 'optionalAccess', _605 => _605.trim, 'call', _606 => _606()]);
15402
- const jsonOutput = _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
15208
+ const jsonOutput = _chunkQKKU2FH4js.argsWantJson.call(void 0, args);
15403
15209
  const dryRun = args.includes("--dry-run");
15404
15210
  if (!target) {
15405
15211
  console.error(
@@ -15417,11 +15223,11 @@ async function handlePlayPin(args, pinned) {
15417
15223
  const name = parsedTarget.playName;
15418
15224
  const plan = { name, pinned, dryRun };
15419
15225
  if (dryRun) {
15420
- _chunkF73PD2XDjs.printCompactJson.call(void 0, plan);
15226
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, plan);
15421
15227
  return 0;
15422
15228
  }
15423
- const result = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().setPlayPinned(name, pinned);
15424
- if (jsonOutput) _chunkF73PD2XDjs.printCompactJson.call(void 0, result);
15229
+ const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().setPlayPinned(name, pinned);
15230
+ if (jsonOutput) _chunkQKKU2FH4js.printCompactJson.call(void 0, result);
15425
15231
  else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
15426
15232
  return 0;
15427
15233
  }
@@ -15547,12 +15353,12 @@ async function handlePlayGrep(args) {
15547
15353
  console.error("Usage: deepline plays grep <query> [--json]");
15548
15354
  return 1;
15549
15355
  }
15550
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
15356
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
15551
15357
  const results = (await client.listPlays({ grep: query })).map(
15552
15358
  summarizePlayGrepResult
15553
15359
  );
15554
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
15555
- _chunkF73PD2XDjs.printCompactJson.call(void 0, {
15360
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
15361
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, {
15556
15362
  plays: results,
15557
15363
  count: results.length,
15558
15364
  query,
@@ -15575,7 +15381,7 @@ async function handlePlayGrep(args) {
15575
15381
  return 0;
15576
15382
  }
15577
15383
  async function handlePlayDescribe(args) {
15578
- const selection = _chunkF73PD2XDjs.parseJsonFields.call(void 0, args, "describe");
15384
+ const selection = _chunkQKKU2FH4js.parseJsonFields.call(void 0, args, "describe");
15579
15385
  args = selection.args;
15580
15386
  const playName = args[0];
15581
15387
  if (!playName) {
@@ -15609,8 +15415,8 @@ async function handlePlayDescribe(args) {
15609
15415
  `deepline plays check ${playName}`,
15610
15416
  ...definedName ? [`deepline describe <workspace>/${definedName}`] : []
15611
15417
  ];
15612
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
15613
- _chunkF73PD2XDjs.printCompactJson.call(void 0, {
15418
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
15419
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, {
15614
15420
  ok: false,
15615
15421
  error: { message },
15616
15422
  next
@@ -15624,7 +15430,7 @@ async function handlePlayDescribe(args) {
15624
15430
  }
15625
15431
  return 2;
15626
15432
  }
15627
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
15433
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
15628
15434
  await assertCanonicalNamedPlayReference(client, playName, {
15629
15435
  command: "describe"
15630
15436
  });
@@ -15634,9 +15440,9 @@ async function handlePlayDescribe(args) {
15634
15440
  compact: args.includes("--compact")
15635
15441
  }
15636
15442
  );
15637
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
15638
- if (selection.fields) _chunkF73PD2XDjs.printJson.call(void 0, play, selection.fields);
15639
- else _chunkF73PD2XDjs.printCompactJson.call(void 0, play);
15443
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
15444
+ if (selection.fields) _chunkQKKU2FH4js.printJson.call(void 0, play, selection.fields);
15445
+ else _chunkQKKU2FH4js.printCompactJson.call(void 0, play);
15640
15446
  return 0;
15641
15447
  }
15642
15448
  printPlayDescription(play);
@@ -15658,7 +15464,7 @@ async function handlePlaySave(args) {
15658
15464
  }
15659
15465
  let graph;
15660
15466
  try {
15661
- graph = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
15467
+ graph = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
15662
15468
  "cli.play_save_bundle_graph",
15663
15469
  { targetKind: "file" },
15664
15470
  () => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
@@ -15680,7 +15486,7 @@ async function handlePlaySave(args) {
15680
15486
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
15681
15487
  };
15682
15488
  if (options.jsonOutput) {
15683
- _chunkF73PD2XDjs.printCompactJson.call(void 0, result);
15489
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, result);
15684
15490
  } else {
15685
15491
  console.error(result.message);
15686
15492
  console.error(` checked artifact: ${result.expectedArtifactHash}`);
@@ -15702,7 +15508,7 @@ async function handlePlaySave(args) {
15702
15508
  };
15703
15509
  if (options.dryRun) {
15704
15510
  if (options.jsonOutput) {
15705
- _chunkF73PD2XDjs.printCompactJson.call(void 0, dryRun);
15511
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, dryRun);
15706
15512
  } else {
15707
15513
  console.log(`Dry run: ${playName}`);
15708
15514
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15711,14 +15517,14 @@ async function handlePlaySave(args) {
15711
15517
  }
15712
15518
  return 0;
15713
15519
  }
15714
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
15520
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
15715
15521
  try {
15716
- await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
15522
+ await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
15717
15523
  "cli.play_save_compile_manifests",
15718
15524
  { targetKind: "file", nodeCount: graph.nodes.size },
15719
15525
  () => compileBundledPlayGraphManifests(client, graph)
15720
15526
  );
15721
- const saved = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
15527
+ const saved = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
15722
15528
  "cli.play_save_register_draft",
15723
15529
  { targetKind: "file", playName, artifactHash },
15724
15530
  () => client.registerPlayArtifact({
@@ -15747,7 +15553,7 @@ async function handlePlaySave(args) {
15747
15553
  }
15748
15554
  };
15749
15555
  if (options.jsonOutput) {
15750
- _chunkF73PD2XDjs.printCompactJson.call(void 0, result);
15556
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, result);
15751
15557
  } else {
15752
15558
  console.log(
15753
15559
  `\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
@@ -15773,7 +15579,7 @@ async function handlePlayPublish(args) {
15773
15579
  }
15774
15580
  const { target: playName, useLatest } = options;
15775
15581
  let revisionId = options.revisionId;
15776
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
15582
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
15777
15583
  if (isFileTarget(playName)) {
15778
15584
  if (revisionId || useLatest) {
15779
15585
  console.error(
@@ -15783,7 +15589,7 @@ async function handlePlayPublish(args) {
15783
15589
  }
15784
15590
  let graph;
15785
15591
  try {
15786
- graph = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
15592
+ graph = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
15787
15593
  "cli.play_publish_bundle_graph",
15788
15594
  { targetKind: "file" },
15789
15595
  () => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
@@ -15805,7 +15611,7 @@ async function handlePlayPublish(args) {
15805
15611
  next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
15806
15612
  };
15807
15613
  if (options.jsonOutput) {
15808
- _chunkF73PD2XDjs.printCompactJson.call(void 0, result3);
15614
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, result3);
15809
15615
  } else {
15810
15616
  console.error(result3.message);
15811
15617
  console.error(` checked artifact: ${result3.expectedArtifactHash}`);
@@ -15828,7 +15634,7 @@ async function handlePlayPublish(args) {
15828
15634
  };
15829
15635
  if (options.dryRun) {
15830
15636
  if (options.jsonOutput) {
15831
- _chunkF73PD2XDjs.printCompactJson.call(void 0, dryRun);
15637
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, dryRun);
15832
15638
  } else {
15833
15639
  console.log(`Dry run: ${rootPlayName}`);
15834
15640
  console.log(` source: ${dryRun.sourceHash}`);
@@ -15847,12 +15653,12 @@ async function handlePlayPublish(args) {
15847
15653
  }
15848
15654
  }
15849
15655
  try {
15850
- await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
15656
+ await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
15851
15657
  "cli.play_publish_compile_manifests",
15852
15658
  { targetKind: "file", nodeCount: graph.nodes.size },
15853
15659
  () => compileBundledPlayGraphManifests(client, graph)
15854
15660
  );
15855
- await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
15661
+ await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
15856
15662
  "cli.play_publish_imports",
15857
15663
  { targetKind: "file", nodeCount: graph.nodes.size },
15858
15664
  () => publishImportedPlayDependencies(client, graph)
@@ -15861,7 +15667,7 @@ async function handlePlayPublish(args) {
15861
15667
  console.error(error instanceof Error ? error.message : String(error));
15862
15668
  return 1;
15863
15669
  }
15864
- const published = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
15670
+ const published = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
15865
15671
  "cli.play_publish_register_root",
15866
15672
  {
15867
15673
  targetKind: "file",
@@ -15896,7 +15702,7 @@ async function handlePlayPublish(args) {
15896
15702
  triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
15897
15703
  };
15898
15704
  if (options.jsonOutput) {
15899
- _chunkF73PD2XDjs.printCompactJson.call(void 0, result2);
15705
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, result2);
15900
15706
  } else {
15901
15707
  printPublishReceipt({
15902
15708
  name: rootPlayName,
@@ -15927,7 +15733,7 @@ async function handlePlayPublish(args) {
15927
15733
  revisionId: _nullishCoalesce(revisionId, () => ( null)),
15928
15734
  latest: useLatest
15929
15735
  };
15930
- _chunkF73PD2XDjs.printCompactJson.call(void 0, result2);
15736
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, result2);
15931
15737
  return 0;
15932
15738
  }
15933
15739
  const resolvedName = parseReferencedPlayTarget(playName).playName;
@@ -15951,7 +15757,7 @@ async function handlePlayPublish(args) {
15951
15757
  revisionId ? { revisionId } : {}
15952
15758
  );
15953
15759
  if (options.jsonOutput) {
15954
- _chunkF73PD2XDjs.printCompactJson.call(void 0, result);
15760
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, result);
15955
15761
  } else {
15956
15762
  printPublishReceipt({
15957
15763
  name: result.name,
@@ -15991,7 +15797,7 @@ async function handlePlayDelete(args) {
15991
15797
  );
15992
15798
  return 2;
15993
15799
  }
15994
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
15800
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
15995
15801
  let detail;
15996
15802
  try {
15997
15803
  detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
@@ -16015,8 +15821,8 @@ async function handlePlayDelete(args) {
16015
15821
  name: resolvedName,
16016
15822
  plannedMutation: "move saved org-owned play to Trash and stop triggers"
16017
15823
  };
16018
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
16019
- _chunkF73PD2XDjs.printCompactJson.call(void 0, result2);
15824
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
15825
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, result2);
16020
15826
  } else {
16021
15827
  process.stdout.write(
16022
15828
  `Dry run: would move ${result2.name} to Trash and stop its active triggers.
@@ -16026,8 +15832,8 @@ async function handlePlayDelete(args) {
16026
15832
  return 0;
16027
15833
  }
16028
15834
  const result = await client.deletePlay(resolvedName);
16029
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
16030
- _chunkF73PD2XDjs.printCompactJson.call(void 0, result);
15835
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
15836
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, result);
16031
15837
  return result.archived || result.alreadyArchived ? 0 : 4;
16032
15838
  }
16033
15839
  if (result.alreadyArchived) {
@@ -16066,13 +15872,13 @@ async function handlePlayRestore(args) {
16066
15872
  );
16067
15873
  return 2;
16068
15874
  }
16069
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
15875
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
16070
15876
  try {
16071
15877
  const result = await client.restorePlay(
16072
15878
  parseReferencedPlayTarget(playName).playName
16073
15879
  );
16074
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
16075
- _chunkF73PD2XDjs.printCompactJson.call(void 0, result);
15880
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
15881
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, result);
16076
15882
  return result.restored || result.alreadyActive ? 0 : 4;
16077
15883
  }
16078
15884
  if (result.alreadyActive) {
@@ -16199,21 +16005,21 @@ Common commands:
16199
16005
  resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
16200
16006
  }
16201
16007
  };
16202
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0, result2, {
16008
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, result2, {
16203
16009
  json: options.json,
16204
16010
  text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
16205
16011
  `
16206
16012
  });
16207
16013
  return;
16208
16014
  }
16209
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
16015
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
16210
16016
  if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
16211
16017
  throw new Error(
16212
16018
  "The submission belongs to a different API origin. Select its original host before recovery."
16213
16019
  );
16214
16020
  }
16215
16021
  const result = await client.startPlayRun(saved.request);
16216
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
16022
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
16217
16023
  { ...result },
16218
16024
  {
16219
16025
  json: options.json,
@@ -16249,7 +16055,7 @@ Examples:
16249
16055
  ).action(async (target, options) => {
16250
16056
  process.exitCode = await handlePlayCheck([
16251
16057
  target,
16252
- ..._chunkF73PD2XDjs.jsonFieldArgs.call(void 0, options.json),
16058
+ ..._chunkQKKU2FH4js.jsonFieldArgs.call(void 0, options.json),
16253
16059
  ...options.full ? ["--full"] : []
16254
16060
  ]);
16255
16061
  });
@@ -16292,10 +16098,10 @@ Notes:
16292
16098
  retained input and pinned revision, and returns once it starts. It accepts
16293
16099
  only --json.
16294
16100
  --max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
16295
- resident-work ceiling. Default: ${_chunkAARF4SOWjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkAARF4SOWjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16101
+ resident-work ceiling. Default: ${_chunkUSTJEENDjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkUSTJEENDjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
16296
16102
  Provider pacing and sandbox memory limits still apply.
16297
16103
  --max-concurrent-rows sets the run-wide default and ceiling for live map row
16298
- resolvers. Accepted range: 1-${_chunkAARF4SOWjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16104
+ resolvers. Accepted range: 1-${_chunkUSTJEENDjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16299
16105
  may lower it when source-row size exceeds the active-row memory budget.
16300
16106
  --max-credits replaces the play's billing.maxCreditsPerRun for this run.
16301
16107
  Tool calls that would exceed it are denied.
@@ -16420,10 +16226,10 @@ Examples:
16420
16226
  ).hideHelp()
16421
16227
  ).option(
16422
16228
  "--max-concurrent-external-calls <count>",
16423
- `Concurrent provider-tool and deepline.fetch executions (${_chunkAARF4SOWjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkAARF4SOWjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16229
+ `Concurrent provider-tool and deepline.fetch executions (${_chunkUSTJEENDjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkUSTJEENDjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
16424
16230
  ).option(
16425
16231
  "--max-concurrent-rows <count>",
16426
- `Run-wide dataset map row resolver ceiling (max ${_chunkAARF4SOWjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16232
+ `Run-wide dataset map row resolver ceiling (max ${_chunkUSTJEENDjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16427
16233
  ).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
16428
16234
  "--debug-map-latency",
16429
16235
  "Internal diagnostics: emit one aggregate latency profile per dataset map"
@@ -16509,14 +16315,14 @@ JSON field selection:
16509
16315
  passthroughArgs.shift();
16510
16316
  }
16511
16317
  const exitCode = await handlePlayRun(
16512
- _chunkAARF4SOWjs.resolvePlayRunCliOptions.call(void 0,
16318
+ _chunkUSTJEENDjs.resolvePlayRunCliOptions.call(void 0,
16513
16319
  _nullishCoalesce(effectiveTarget, () => ( void 0)),
16514
16320
  options,
16515
16321
  passthroughArgs,
16516
- _chunkYXGPMTAKjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16322
+ _chunkUXQQPMYOjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
16517
16323
  )
16518
16324
  );
16519
- _chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
16325
+ _chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
16520
16326
  phase: "cli.play_command_exit",
16521
16327
  exitCode
16522
16328
  });
@@ -16565,9 +16371,9 @@ Examples:
16565
16371
  const limit = Number(options.historyLimit);
16566
16372
  if (!Number.isInteger(limit) || limit < 1 || limit > 30)
16567
16373
  throw new Error("--history-limit must be an integer from 1 to 30.");
16568
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
16374
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
16569
16375
  if (options.binding) {
16570
- _chunkF73PD2XDjs.printCompactJson.call(void 0,
16376
+ _chunkQKKU2FH4js.printCompactJson.call(void 0,
16571
16377
  await client.getPlayTriggerHistory(options.binding, { limit })
16572
16378
  );
16573
16379
  return;
@@ -16575,7 +16381,7 @@ Examples:
16575
16381
  const result = await client.listPlayTriggerInventory({
16576
16382
  cursor: options.cursor
16577
16383
  });
16578
- _chunkF73PD2XDjs.printCompactJson.call(void 0, {
16384
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, {
16579
16385
  ...result,
16580
16386
  next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
16581
16387
  });
@@ -16634,7 +16440,7 @@ Examples:
16634
16440
  if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
16635
16441
  throw new Error("--group-by must be kind or trigger_source.");
16636
16442
  }
16637
- const result = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().getPlaysActivity({
16443
+ const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getPlaysActivity({
16638
16444
  timeZone: options.timeZone,
16639
16445
  days,
16640
16446
  ...options.endDate ? { endDate: options.endDate } : {},
@@ -16648,7 +16454,7 @@ Examples:
16648
16454
  `${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
16649
16455
  );
16650
16456
  }
16651
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
16457
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
16652
16458
  { ...result },
16653
16459
  {
16654
16460
  json: Boolean(options.json),
@@ -16677,7 +16483,7 @@ Examples:
16677
16483
  false
16678
16484
  );
16679
16485
  });
16680
- _chunk33JUK73Xjs.registerDeprecatedSearchCommand.call(void 0,
16486
+ _chunk67OI26OEjs.registerDeprecatedSearchCommand.call(void 0,
16681
16487
  play,
16682
16488
  (options) => options.all ? ["plays"] : ["prebuilts"]
16683
16489
  );
@@ -16718,9 +16524,9 @@ Examples:
16718
16524
  "--json [fields]",
16719
16525
  "JSON output; optionally select comma-separated dotted paths"
16720
16526
  );
16721
- _chunk3CXHK4TWjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16527
+ _chunkKCKAFTPYjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
16722
16528
  async (target, options) => {
16723
- const ownView = () => handlePlayDescribe(_chunkF73PD2XDjs.describeArgs.call(void 0, target, options));
16529
+ const ownView = () => handlePlayDescribe(_chunkQKKU2FH4js.describeArgs.call(void 0, target, options));
16724
16530
  const [flagText] = [options.json].filter(
16725
16531
  (value) => typeof value === "string"
16726
16532
  );
@@ -16731,7 +16537,7 @@ Examples:
16731
16537
  process.exitCode = await ownView();
16732
16538
  return;
16733
16539
  }
16734
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-LE7EZCL4.js")));
16540
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-OYS7LZJD.js")));
16735
16541
  process.exitCode = await describeAnything(
16736
16542
  name,
16737
16543
  {
@@ -16849,7 +16655,7 @@ Examples:
16849
16655
  deepline plays deployments <deployment-id>
16850
16656
  `
16851
16657
  ).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
16852
- async (id, options) => id ? _chunk26RSSTCFjs.handleDeploymentGet.call(void 0, id, options) : _chunk26RSSTCFjs.handleDeploymentsList.call(void 0, options)
16658
+ async (id, options) => id ? _chunkFTRVCIGCjs.handleDeploymentGet.call(void 0, id, options) : _chunkFTRVCIGCjs.handleDeploymentsList.call(void 0, options)
16853
16659
  );
16854
16660
  addPublishHelp(
16855
16661
  play.command("publish <target>").description(
@@ -16984,14 +16790,14 @@ Examples:
16984
16790
  const limit = Number(options.limit);
16985
16791
  if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
16986
16792
  throw new Error("--limit must be an integer from 1 to 1000.");
16987
- const result = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.rowHistory({
16793
+ const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().runs.rowHistory({
16988
16794
  playName: options.play,
16989
16795
  runId,
16990
16796
  tableNamespace: options.dataset,
16991
16797
  limit,
16992
16798
  cursor: options.cursor
16993
16799
  });
16994
- _chunkF73PD2XDjs.printCompactJson.call(void 0, {
16800
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, {
16995
16801
  ...result,
16996
16802
  ...result.nextCursor ? {
16997
16803
  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`
@@ -17069,7 +16875,7 @@ Examples:
17069
16875
  new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
17070
16876
  ).action(async (runId, options) => {
17071
16877
  if (TOOL_EXECUTION_ID.test(runId)) {
17072
- const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-TDZH4XHS.js")));
16878
+ const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-L2364RPA.js")));
17073
16879
  process.exitCode = await getToolExecutionReceipt(runId, {
17074
16880
  receiptJson: options.json !== void 0
17075
16881
  });
@@ -17077,7 +16883,7 @@ Examples:
17077
16883
  }
17078
16884
  process.exitCode = await handleRunGet([
17079
16885
  runId,
17080
- ..._chunkF73PD2XDjs.jsonFieldArgs.call(void 0, options.json),
16886
+ ..._chunkQKKU2FH4js.jsonFieldArgs.call(void 0, options.json),
17081
16887
  ...options.web ? ["--web"] : [],
17082
16888
  ...options.webUrl ? ["--web-url"] : [],
17083
16889
  ...options.full ? ["--full"] : [],
@@ -17394,7 +17200,7 @@ Examples:
17394
17200
  ...options.allowEmpty ? ["--allow-empty"] : [],
17395
17201
  ...options.wait ? ["--wait"] : [],
17396
17202
  ...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
17397
- ..._chunkF73PD2XDjs.jsonFieldArgs.call(void 0, options.json)
17203
+ ..._chunkQKKU2FH4js.jsonFieldArgs.call(void 0, options.json)
17398
17204
  ]);
17399
17205
  });
17400
17206
  const share = play.command("share").description(
@@ -17560,10 +17366,10 @@ async function handlePlayShareStatus(args) {
17560
17366
  return 2;
17561
17367
  }
17562
17368
  const name = parseReferencedPlayTarget(target).playName;
17563
- const status = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().getSharePage(name);
17369
+ const status = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getSharePage(name);
17564
17370
  const outputStatus = shareStatusForOutput(status);
17565
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
17566
- _chunkF73PD2XDjs.printCompactJson.call(void 0, outputStatus);
17371
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
17372
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, outputStatus);
17567
17373
  return 0;
17568
17374
  }
17569
17375
  if (!outputStatus.share) {
@@ -17602,7 +17408,7 @@ async function handlePlaySharePublish(args) {
17602
17408
  return 2;
17603
17409
  }
17604
17410
  const name = parseReferencedPlayTarget(target).playName;
17605
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
17411
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
17606
17412
  let revisionId = shareFlagValue(args, "--revision-id");
17607
17413
  let resolvedVersion;
17608
17414
  if (!revisionId) {
@@ -17633,8 +17439,8 @@ async function handlePlaySharePublish(args) {
17633
17439
  );
17634
17440
  if (!hasCompleted) {
17635
17441
  const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
17636
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
17637
- _chunkF73PD2XDjs.printCompactJson.call(void 0, {
17442
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
17443
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, {
17638
17444
  ok: false,
17639
17445
  code: "NO_SUCCESSFUL_RUN",
17640
17446
  message,
@@ -17658,8 +17464,8 @@ async function handlePlaySharePublish(args) {
17658
17464
  };
17659
17465
  if (args.includes("--dry-run")) {
17660
17466
  const plan = { dryRun: true, name, version: resolvedVersion, ...request };
17661
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
17662
- _chunkF73PD2XDjs.printCompactJson.call(void 0, plan);
17467
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
17468
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, plan);
17663
17469
  } else {
17664
17470
  console.log(
17665
17471
  `Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
@@ -17669,8 +17475,8 @@ async function handlePlaySharePublish(args) {
17669
17475
  }
17670
17476
  const status = await client.publishSharePage(name, request);
17671
17477
  const outputStatus = shareStatusForOutput(status);
17672
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
17673
- _chunkF73PD2XDjs.printCompactJson.call(void 0, outputStatus);
17478
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
17479
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, outputStatus);
17674
17480
  return 0;
17675
17481
  }
17676
17482
  const urls = shareUrlFields(outputStatus);
@@ -17701,9 +17507,9 @@ async function handlePlayShareUpdate(args) {
17701
17507
  ...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
17702
17508
  ...seoIndexing ? { seoIndexing } : {}
17703
17509
  };
17704
- const status = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().updateSharePage(name, request);
17705
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
17706
- _chunkF73PD2XDjs.printCompactJson.call(void 0, status);
17510
+ const status = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().updateSharePage(name, request);
17511
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
17512
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, status);
17707
17513
  return 0;
17708
17514
  }
17709
17515
  console.log(`Updated ${name} share settings.`);
@@ -17718,7 +17524,7 @@ async function handlePlayShareRegenerate(args) {
17718
17524
  return 2;
17719
17525
  }
17720
17526
  const name = parseReferencedPlayTarget(target).playName;
17721
- const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
17527
+ const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
17722
17528
  let revisionId = shareFlagValue(args, "--revision-id");
17723
17529
  const versionFlag = shareFlagValue(args, "--version");
17724
17530
  if (!revisionId && versionFlag) {
@@ -17735,8 +17541,8 @@ async function handlePlayShareRegenerate(args) {
17735
17541
  revisionId ? { revisionId } : {}
17736
17542
  );
17737
17543
  const outputStatus = shareStatusForOutput(status);
17738
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
17739
- _chunkF73PD2XDjs.printCompactJson.call(void 0, outputStatus);
17544
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
17545
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, outputStatus);
17740
17546
  return 0;
17741
17547
  }
17742
17548
  const urls = shareUrlFields(outputStatus);
@@ -17761,9 +17567,9 @@ async function handlePlayShareUnpublish(args) {
17761
17567
  return 2;
17762
17568
  }
17763
17569
  const name = parseReferencedPlayTarget(target).playName;
17764
- const status = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().unpublishSharePage(name);
17765
- if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
17766
- _chunkF73PD2XDjs.printCompactJson.call(void 0, status);
17570
+ const status = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().unpublishSharePage(name);
17571
+ if (_chunkQKKU2FH4js.argsWantJson.call(void 0, args)) {
17572
+ _chunkQKKU2FH4js.printCompactJson.call(void 0, status);
17767
17573
  return 0;
17768
17574
  }
17769
17575
  console.log(`Unpublished ${name}; the public page has been removed.`);
@@ -17840,4 +17646,4 @@ async function handlePlayShareUnpublish(args) {
17840
17646
 
17841
17647
 
17842
17648
 
17843
- exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkAARF4SOWjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkAARF4SOWjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
17649
+ exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkUSTJEENDjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkUSTJEENDjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;