deepline 0.3.470 → 0.3.472

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 (157) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +14 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  3. package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/sdk/src/types.ts +29 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +3 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/play-admission-outcome.ts +34 -8
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +131 -22
  9. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +36 -1
  10. package/dist/cli/{auth-7J52UEWO.mjs → auth-35DAEPHC.mjs} +5 -5
  11. package/dist/cli/auth-Q5TM66UI.js +41 -0
  12. package/dist/cli/{billing-ASNWVDQG.js → billing-5ED5X2IO.js} +82 -81
  13. package/dist/cli/{billing-ORB3UZ73.mjs → billing-CXVBJEC4.mjs} +9 -8
  14. package/dist/cli/{chunk-4BQQ3Q3J.js → chunk-2DND7LLL.js} +8 -8
  15. package/dist/cli/{chunk-GDFO3ERN.js → chunk-2G4R4APL.js} +2 -2
  16. package/dist/cli/{chunk-RVQ333NB.mjs → chunk-2S36YV2K.mjs} +1 -1
  17. package/dist/cli/{chunk-EM2E7YIS.js → chunk-3L76SFGN.js} +53 -53
  18. package/dist/cli/{chunk-QG7UPPOK.mjs → chunk-4NFBYW7X.mjs} +3 -3
  19. package/dist/cli/{chunk-7WILY2XM.mjs → chunk-52VOORHM.mjs} +2 -2
  20. package/dist/cli/{chunk-CNQBCLQP.js → chunk-5FHU67AT.js} +3 -3
  21. package/dist/cli/{chunk-6B7XLHIE.mjs → chunk-6PKONIIP.mjs} +4 -4
  22. package/dist/cli/{chunk-HNP5V5BN.js → chunk-6ZTSHKJF.js} +25 -7
  23. package/dist/cli/{chunk-Y4OE46HH.js → chunk-7KAS4QOW.js} +112 -107
  24. package/dist/cli/{chunk-SHB7BUNQ.mjs → chunk-C5PY2PP6.mjs} +3 -3
  25. package/dist/cli/{chunk-CTDWQYBW.mjs → chunk-CFDQZQE2.mjs} +2 -2
  26. package/dist/cli/{chunk-262PYO4I.mjs → chunk-FHIO7WI2.mjs} +3 -3
  27. package/dist/cli/{chunk-6R5UKWRW.js → chunk-GJPRBELO.js} +16 -16
  28. package/dist/cli/{chunk-57F5VKHV.js → chunk-H7YFUC3J.js} +8 -8
  29. package/dist/cli/{chunk-F6OB5L74.js → chunk-HBVT4FW5.js} +6 -6
  30. package/dist/cli/{chunk-C7EA2VNR.js → chunk-IIQ6O5F3.js} +5 -5
  31. package/dist/cli/{chunk-3P4WOCRB.mjs → chunk-IPJ27SD2.mjs} +5 -5
  32. package/dist/cli/{chunk-JKVRBCZL.js → chunk-JDMR33HS.js} +1 -0
  33. package/dist/cli/{chunk-DSOTGAXS.mjs → chunk-JRZW4LWK.mjs} +1 -1
  34. package/dist/cli/{chunk-VL7OL7YR.mjs → chunk-KQJHIVCE.mjs} +1 -1
  35. package/dist/cli/{chunk-PWXHZPHK.js → chunk-L3AXQXNT.js} +10 -10
  36. package/dist/cli/{chunk-A7THVTRN.js → chunk-LQUOZGM6.js} +51 -51
  37. package/dist/cli/{chunk-YTFCKCII.js → chunk-M475BQ77.js} +3 -3
  38. package/dist/cli/{chunk-YBDQUVDE.mjs → chunk-MRZ7AO72.mjs} +10 -10
  39. package/dist/cli/{chunk-FAG4DFUC.mjs → chunk-NELMCOWK.mjs} +1 -0
  40. package/dist/cli/{chunk-SOME764Z.mjs → chunk-NZBZFEVA.mjs} +4 -4
  41. package/dist/cli/{chunk-ETTUFFBS.js → chunk-ODAARZSK.js} +36 -36
  42. package/dist/cli/{chunk-SETIOXN4.mjs → chunk-OMPW5ELS.mjs} +1 -1
  43. package/dist/cli/{chunk-NNCDHMCT.js → chunk-QLVYYDUI.js} +26 -26
  44. package/dist/cli/{chunk-SXQZYTUW.mjs → chunk-QSCLOPWR.mjs} +1 -1
  45. package/dist/cli/{chunk-PJX7BA7T.mjs → chunk-R6L6JRDR.mjs} +2 -2
  46. package/dist/cli/{chunk-3XLJPLXZ.mjs → chunk-R73LE2IM.mjs} +1 -1
  47. package/dist/cli/{chunk-F2XK4UN6.js → chunk-RDOPZK7A.js} +3 -3
  48. package/dist/cli/{chunk-44UR3BU2.js → chunk-RMQB72WW.js} +14 -14
  49. package/dist/cli/{chunk-D464JW3N.mjs → chunk-RZHUHL53.mjs} +19 -1
  50. package/dist/cli/{chunk-VBKN6ISP.js → chunk-SBPI7AEB.js} +93 -93
  51. package/dist/cli/{chunk-ORO2GFH4.js → chunk-SKVMC6K6.js} +5 -5
  52. package/dist/cli/{chunk-AGIEKE3L.js → chunk-SYWOSAW7.js} +4 -4
  53. package/dist/cli/{chunk-YFKOA4HW.mjs → chunk-T5H7ETIM.mjs} +4 -4
  54. package/dist/cli/{chunk-5ADROBCY.mjs → chunk-TMMODGPV.mjs} +2 -2
  55. package/dist/cli/{chunk-NSAKJQLX.js → chunk-UKKCS6Z4.js} +1 -1
  56. package/dist/cli/{chunk-KBNAI5BY.js → chunk-UPXGN62E.js} +21 -21
  57. package/dist/cli/{chunk-SV3B6KW4.mjs → chunk-UXFUD2MB.mjs} +5 -5
  58. package/dist/cli/{chunk-N72VIY7R.js → chunk-VDHDTXCK.js} +2 -2
  59. package/dist/cli/{chunk-MXAB4W6E.js → chunk-XSSIBO74.js} +8 -8
  60. package/dist/cli/{chunk-QW6HNDS7.mjs → chunk-YK64LQPQ.mjs} +7 -2
  61. package/dist/cli/{chunk-GLSFZYZB.mjs → chunk-YMB2CD55.mjs} +1 -1
  62. package/dist/cli/{chunk-F4L7WMLK.mjs → chunk-YNW47NOJ.mjs} +2 -2
  63. package/dist/cli/{chunk-FVYAEBGO.mjs → chunk-YUNPYX5T.mjs} +25 -7
  64. package/dist/cli/{chunk-WG3KGAII.js → chunk-Z52WEIBR.js} +19 -1
  65. package/dist/cli/{chunk-BWLXHUKH.mjs → chunk-ZZQIS3TH.mjs} +3 -3
  66. package/dist/cli/command-docs.js +2 -2
  67. package/dist/cli/command-docs.mjs +1 -1
  68. package/dist/cli/{csv-D3JPZVUN.mjs → csv-OSDYY3QW.mjs} +4 -4
  69. package/dist/cli/{csv-FSXDIWBP.js → csv-SQJQM3B2.js} +13 -13
  70. package/dist/cli/{db-3UWDQXLF.mjs → db-2M6BU6G5.mjs} +7 -7
  71. package/dist/cli/{db-DZQUPWI3.js → db-ATDYXAD5.js} +28 -28
  72. package/dist/cli/describe-37QXXDCF.js +48 -0
  73. package/dist/cli/{describe-APG2GVFG.mjs → describe-WIAJCWF3.mjs} +18 -18
  74. package/dist/cli/describe-core.d.mts +3 -3
  75. package/dist/cli/describe-core.d.ts +3 -3
  76. package/dist/cli/{executions-TDUX3575.mjs → executions-2J6CCJL2.mjs} +7 -7
  77. package/dist/cli/{executions-BFAPMPG2.js → executions-Y32LMYH6.js} +9 -9
  78. package/dist/cli/{feedback-BMV7PUDL.mjs → feedback-L4AVIMGI.mjs} +4 -4
  79. package/dist/cli/{feedback-2KNPCYTH.js → feedback-RXQLS6QU.js} +8 -8
  80. package/dist/cli/git-JGUR335T.js +25 -0
  81. package/dist/cli/{git-KBVONNE5.mjs → git-V3K77AWH.mjs} +5 -5
  82. package/dist/cli/index.js +139 -139
  83. package/dist/cli/index.mjs +41 -41
  84. package/dist/cli/{legacy-noops-LE6LJO7F.js → legacy-noops-B2KJT4CZ.js} +8 -8
  85. package/dist/cli/{legacy-noops-GZDRRUFE.mjs → legacy-noops-LOGMYOY5.mjs} +5 -5
  86. package/dist/cli/{monitors-CW22L3VL.mjs → monitors-5ETSB7S7.mjs} +8 -8
  87. package/dist/cli/{monitors-PGBHMKOU.js → monitors-A5WYUCGD.js} +92 -92
  88. package/dist/cli/{org-3V2VAH5D.js → org-7EZDWYKK.js} +73 -73
  89. package/dist/cli/{org-K5C23LAV.mjs → org-BJOAUSXL.mjs} +7 -7
  90. package/dist/cli/{pages-7V2C7GWU.mjs → pages-3BYGBTVK.mjs} +7 -7
  91. package/dist/cli/{pages-2F73VVWC.js → pages-45VNTEQU.js} +18 -18
  92. package/dist/cli/{play-62KSZGJQ.js → play-5KER3JFU.js} +586 -518
  93. package/dist/cli/{play-VT7TPJUH.mjs → play-R7JQV533.mjs} +93 -25
  94. package/dist/cli/{providers-3SI3QBT3.js → providers-OHMZ6QIF.js} +10 -10
  95. package/dist/cli/{providers-LX562YG7.mjs → providers-RMFCE6MM.mjs} +7 -7
  96. package/dist/cli/{quickstart-5HA5IFTB.js → quickstart-GNRE4SAT.js} +6 -6
  97. package/dist/cli/{quickstart-ADE7FV26.mjs → quickstart-IHR4VC5K.mjs} +4 -4
  98. package/dist/cli/{run-4ZV4UDKP.js → run-77QIMUUV.js} +37 -37
  99. package/dist/cli/{run-OITZJ6QZ.mjs → run-Y4MIRFJY.mjs} +23 -23
  100. package/dist/cli/{search-BI5VZQMD.mjs → search-24YKTHMK.mjs} +8 -8
  101. package/dist/cli/search-S3VO2UKV.js +32 -0
  102. package/dist/cli/{secrets-A2R36AZ6.mjs → secrets-KHX62AWC.mjs} +7 -7
  103. package/dist/cli/{secrets-UAKNTMYB.js → secrets-SSEBT3IS.js} +16 -16
  104. package/dist/cli/{sessions-3JM3OXME.js → sessions-E6KNWYEH.js} +6 -6
  105. package/dist/cli/{sessions-PPOFUFBW.mjs → sessions-H7T25HGE.mjs} +5 -5
  106. package/dist/cli/{settings-C4M5HOD4.js → settings-GXUYF5G7.js} +79 -79
  107. package/dist/cli/{settings-PZA6TBOL.mjs → settings-XSJG6M32.mjs} +12 -12
  108. package/dist/cli/{setup-245XVTBR.mjs → setup-GD7IOD4U.mjs} +9 -9
  109. package/dist/cli/{setup-TY2OSI6D.js → setup-JP5YPIA4.js} +44 -44
  110. package/dist/cli/skills-C4KTW3US.js +31 -0
  111. package/dist/cli/{skills-ZAN23KLR.mjs → skills-HLHE3ENN.mjs} +7 -7
  112. package/dist/cli/tools-KS7JMRK6.js +55 -0
  113. package/dist/cli/{tools-GG4KDQBM.mjs → tools-Q4XIQX7W.mjs} +17 -17
  114. package/dist/cli/{update-XKXIL6DU.mjs → update-3KRMR2QJ.mjs} +9 -9
  115. package/dist/cli/update-GYTQYK2W.js +33 -0
  116. package/dist/cli/{workflow-VN7M3D2U.js → workflow-NMUESL3O.js} +18 -18
  117. package/dist/cli/{workflow-LVQVTFUJ.mjs → workflow-NOZ7WFEY.mjs} +8 -8
  118. package/dist/{client-CdJR18SJ.d.mts → client-C9bJ0QXu.d.mts} +1 -1
  119. package/dist/{client-B3tlWsw7.d.ts → client-CuNH54w3.d.ts} +1 -1
  120. package/dist/{client-core-CxHBKfE5.d.ts → client-core-C8Q6DKga.d.ts} +38 -2
  121. package/dist/{client-core-ByJD7QXj.d.mts → client-core-CSiXbe2n.d.mts} +38 -2
  122. package/dist/{compiler-manifest-D5dARg3M.d.ts → compiler-manifest-Zwm9yqOA.d.mts} +39 -0
  123. package/dist/{compiler-manifest-D5dARg3M.d.mts → compiler-manifest-Zwm9yqOA.d.ts} +39 -0
  124. package/dist/{errors-BtHHzWL8.d.ts → errors-CsYwlpn4.d.ts} +1 -1
  125. package/dist/{errors-BveMVPwA.d.mts → errors-nEsqNLL8.d.mts} +1 -1
  126. package/dist/{index-C6sovoYP.d.ts → index-9pUZqkPH.d.ts} +1 -1
  127. package/dist/{index-BboApDGD.d.mts → index-CXF2jtza.d.mts} +1 -1
  128. package/dist/index.d.mts +7 -7
  129. package/dist/index.d.ts +7 -7
  130. package/dist/index.js +10 -10
  131. package/dist/index.mjs +7 -7
  132. package/dist/install-integrity.json +112 -112
  133. package/dist/plays/bundle-play-file.d.mts +3 -3
  134. package/dist/plays/bundle-play-file.d.ts +3 -3
  135. package/dist/plays/bundle-play-file.mjs +1 -1
  136. package/dist/plays/play-description.d.mts +2 -2
  137. package/dist/plays/play-description.d.ts +2 -2
  138. package/dist/plays/run-request.d.mts +2 -2
  139. package/dist/plays/run-request.d.ts +2 -2
  140. package/dist/plays/run-request.js +2 -2
  141. package/dist/plays/run-request.mjs +1 -1
  142. package/dist/release.d.mts +1 -1
  143. package/dist/release.d.ts +1 -1
  144. package/dist/release.js +2 -2
  145. package/dist/release.mjs +1 -1
  146. package/dist/server.d.mts +4 -4
  147. package/dist/server.d.ts +4 -4
  148. package/dist/server.js +6 -6
  149. package/dist/server.mjs +4 -4
  150. package/package.json +1 -1
  151. package/dist/cli/auth-4DBOZZDX.js +0 -41
  152. package/dist/cli/describe-2ENX4O3U.js +0 -48
  153. package/dist/cli/git-LUW3GBSD.js +0 -25
  154. package/dist/cli/search-PXFM3MGW.js +0 -32
  155. package/dist/cli/skills-UYNRYDDI.js +0 -31
  156. package/dist/cli/tools-OBESOBG7.js +0 -55
  157. package/dist/cli/update-2VMXTKBN.js +0 -33
@@ -15,7 +15,7 @@ var _chunkE4CABWXLjs = require('./chunk-E4CABWXL.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkJKVRBCZLjs = require('./chunk-JKVRBCZL.js');
18
+ var _chunkJDMR33HSjs = require('./chunk-JDMR33HS.js');
19
19
 
20
20
 
21
21
 
@@ -26,7 +26,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
26
26
 
27
27
 
28
28
 
29
- var _chunkAGIEKE3Ljs = require('./chunk-AGIEKE3L.js');
29
+ var _chunkSYWOSAW7js = require('./chunk-SYWOSAW7.js');
30
30
 
31
31
 
32
32
  var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
@@ -647,7 +647,7 @@ var ToolCalls = class {
647
647
  idempotencyKey,
648
648
  onResponse: (response2) => {
649
649
  lastResponse = null;
650
- atomicToolsSupported = response2.headers.get(_chunkAGIEKE3Ljs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
650
+ atomicToolsSupported = response2.headers.get(_chunkSYWOSAW7js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
651
651
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
652
652
  if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
653
653
  try {
@@ -1026,8 +1026,8 @@ function runtimeSelectionHeaders(runtime, env) {
1026
1026
  }
1027
1027
  const receivers = _optionalChain([env, 'access', _52 => _52.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _53 => _53.trim, 'call', _54 => _54()]);
1028
1028
  return {
1029
- [_chunkAGIEKE3Ljs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1030
- ...receivers ? { [_chunkAGIEKE3Ljs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1029
+ [_chunkSYWOSAW7js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1030
+ ...receivers ? { [_chunkSYWOSAW7js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1031
1031
  };
1032
1032
  }
1033
1033
  function normalizeTestPolicyOverrides(value, source) {
@@ -1061,10 +1061,10 @@ function isRecord2(value) {
1061
1061
  return Boolean(value && typeof value === "object" && !Array.isArray(value));
1062
1062
  }
1063
1063
  function normalizePlayStatus(raw) {
1064
- const runPackage = _chunkJKVRBCZLjs.isPlayRunPackage.call(void 0, raw) ? raw : _chunkJKVRBCZLjs.isPlayRunPackage.call(void 0, raw.package) ? raw.package : null;
1064
+ const runPackage = _chunkJDMR33HSjs.isPlayRunPackage.call(void 0, raw) ? raw : _chunkJDMR33HSjs.isPlayRunPackage.call(void 0, raw.package) ? raw.package : null;
1065
1065
  const packageRun = _optionalChain([runPackage, 'optionalAccess', _57 => _57.run]);
1066
1066
  const rawStatus = typeof raw.status === "string" ? raw.status : typeof _optionalChain([packageRun, 'optionalAccess', _58 => _58.status]) === "string" ? packageRun.status : null;
1067
- const status = _chunkJKVRBCZLjs.decodePlayRunPublicStatus.call(void 0, rawStatus);
1067
+ const status = _chunkJDMR33HSjs.decodePlayRunPublicStatus.call(void 0, rawStatus);
1068
1068
  if (!status) {
1069
1069
  throw new Error(
1070
1070
  `Invalid play run lifecycle status in API response: ${JSON.stringify(rawStatus)}.`
@@ -1095,10 +1095,10 @@ var PlayClient = class {
1095
1095
  async startPlayRun(request, options) {
1096
1096
  const resolved = resolveStartPlayRunRequest(request, this.environment);
1097
1097
  const headers = runtimeSelectionHeaders(resolved.runtime, this.environment);
1098
- return _chunkJKVRBCZLjs.startPlayRun.call(void 0,
1098
+ return _chunkJDMR33HSjs.startPlayRun.call(void 0,
1099
1099
  this.http,
1100
1100
  resolved.request,
1101
- _optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkAGIEKE3Ljs.SDK_API_MAJOR) } : headers,
1101
+ _optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkSYWOSAW7js.SDK_API_MAJOR) } : headers,
1102
1102
  options
1103
1103
  );
1104
1104
  }
@@ -2663,7 +2663,7 @@ var TERMINAL_STATUS_BY_EVENT_TYPE = {
2663
2663
 
2664
2664
  // ../play-runtime/run-snapshot-stream.ts
2665
2665
  function isTerminalPlayRunLiveStatus(status) {
2666
- return _chunkJKVRBCZLjs.isTerminalPlayRunLifecycleStatus.call(void 0, status);
2666
+ return _chunkJDMR33HSjs.isTerminalPlayRunLifecycleStatus.call(void 0, status);
2667
2667
  }
2668
2668
  function makeRunStreamEvent(input) {
2669
2669
  return {
@@ -3175,7 +3175,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3175
3175
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3176
3176
  );
3177
3177
  }
3178
- return { [_chunkAGIEKE3Ljs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3178
+ return { [_chunkSYWOSAW7js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3179
3179
  }
3180
3180
  function sleep(ms) {
3181
3181
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -3306,7 +3306,7 @@ function playLiveRunStatus(event) {
3306
3306
  return null;
3307
3307
  }
3308
3308
  const payload = getPlayLiveEventPayload(event);
3309
- return _nullishCoalesce(_chunkJKVRBCZLjs.decodePlayRunPublicStatus.call(void 0, payload.status), () => ( (_chunkJKVRBCZLjs.isPlayRunPackage.call(void 0, payload) ? _chunkJKVRBCZLjs.decodePlayRunPublicStatus.call(void 0, payload.run.status) : null)));
3309
+ return _nullishCoalesce(_chunkJDMR33HSjs.decodePlayRunPublicStatus.call(void 0, payload.status), () => ( (_chunkJDMR33HSjs.isPlayRunPackage.call(void 0, payload) ? _chunkJDMR33HSjs.decodePlayRunPublicStatus.call(void 0, payload.run.status) : null)));
3310
3310
  }
3311
3311
  function appendPlayLiveLogLines(state, payload) {
3312
3312
  const lines = readStringArray(payload.lines);
@@ -3338,7 +3338,7 @@ function updatePlayLiveStatusState(state, event) {
3338
3338
  if (event.type !== "play.run.snapshot" && event.type !== "play.run.status" && event.type !== "play.run.final_status") {
3339
3339
  return null;
3340
3340
  }
3341
- const runId = typeof payload.runId === "string" && payload.runId ? payload.runId : _chunkJKVRBCZLjs.isPlayRunPackage.call(void 0, payload) ? payload.run.id : state.runId;
3341
+ const runId = typeof payload.runId === "string" && payload.runId ? payload.runId : _chunkJDMR33HSjs.isPlayRunPackage.call(void 0, payload) ? payload.run.id : state.runId;
3342
3342
  const status = _nullishCoalesce(playLiveRunStatus(event), () => ( state.status));
3343
3343
  const progressPayload = isRecord3(payload.progress) ? payload.progress : {};
3344
3344
  if (event.type === "play.run.final_status" && state.logs.length === 0 && state.lastLogSeq === 0) {
@@ -3351,7 +3351,7 @@ function updatePlayLiveStatusState(state, event) {
3351
3351
  }
3352
3352
  if ("result" in payload) {
3353
3353
  state.result = payload.result;
3354
- } else if (_chunkJKVRBCZLjs.isPlayRunPackage.call(void 0, payload)) {
3354
+ } else if (_chunkJDMR33HSjs.isPlayRunPackage.call(void 0, payload)) {
3355
3355
  state.result = payload;
3356
3356
  }
3357
3357
  if (typeof payload.error === "string" && payload.error.trim()) {
@@ -3364,7 +3364,7 @@ function updatePlayLiveStatusState(state, event) {
3364
3364
  ...payload,
3365
3365
  runId,
3366
3366
  status,
3367
- ..._chunkJKVRBCZLjs.isPlayRunPackage.call(void 0, payload) ? { package: payload, outputs: payload.outputs } : {},
3367
+ ..._chunkJDMR33HSjs.isPlayRunPackage.call(void 0, payload) ? { package: payload, outputs: payload.outputs } : {},
3368
3368
  progress: {
3369
3369
  ...progressRecord,
3370
3370
  status: typeof progressRecord.status === "string" ? progressRecord.status : status,
@@ -3963,7 +3963,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
3963
3963
  */
3964
3964
  async preparePlayRunAdmission(request, options) {
3965
3965
  const resolved = resolveStartPlayRunRequest(request, this.environment);
3966
- const prepared = await _chunkJKVRBCZLjs.preparePlayRunAdmission.call(void 0,
3966
+ const prepared = await _chunkJDMR33HSjs.preparePlayRunAdmission.call(void 0,
3967
3967
  this.http,
3968
3968
  resolved.request,
3969
3969
  _optionalChain([options, 'optionalAccess', _177 => _177.onSubmission])
@@ -3983,13 +3983,13 @@ var DeeplineClient = (_class = class _DeeplineClient {
3983
3983
  );
3984
3984
  }
3985
3985
  if (submitted) {
3986
- await _chunkJKVRBCZLjs.preparePlayRunAdmission.call(void 0,
3986
+ await _chunkJDMR33HSjs.preparePlayRunAdmission.call(void 0,
3987
3987
  http,
3988
3988
  JSON.parse(bodyJson)
3989
3989
  );
3990
3990
  }
3991
3991
  submitted = true;
3992
- const streamPath = _optionalChain([options, 'optionalAccess', _178 => _178.cliAdmission]) ? _chunkJKVRBCZLjs.CLI_PLAY_RUN_START_STREAM_PATH : _chunkJKVRBCZLjs.PLAY_RUN_START_STREAM_PATH;
3992
+ const streamPath = _optionalChain([options, 'optionalAccess', _178 => _178.cliAdmission]) ? _chunkJDMR33HSjs.CLI_PLAY_RUN_START_STREAM_PATH : _chunkJDMR33HSjs.PLAY_RUN_START_STREAM_PATH;
3993
3993
  try {
3994
3994
  for await (const event of http.streamSse(streamPath, {
3995
3995
  method: "POST",
@@ -4002,7 +4002,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4002
4002
  }
4003
4003
  } catch (error) {
4004
4004
  if (_optionalChain([options, 'optionalAccess', _180 => _180.cliAdmission]) && error instanceof _chunkDIAWYWT5js.DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
4005
- throw new (0, _chunkJKVRBCZLjs.CliPlayAdmissionUnsupportedError)(error.statusCode);
4005
+ throw new (0, _chunkJDMR33HSjs.CliPlayAdmissionUnsupportedError)(error.statusCode);
4006
4006
  }
4007
4007
  throw error;
4008
4008
  }
@@ -4281,7 +4281,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4281
4281
  * ```
4282
4282
  */
4283
4283
  async stagePlayFiles(files) {
4284
- return _chunkJKVRBCZLjs.stagePlayFiles.call(void 0, this.http, files);
4284
+ return _chunkJDMR33HSjs.stagePlayFiles.call(void 0, this.http, files);
4285
4285
  }
4286
4286
  /**
4287
4287
  * Mint short-lived presigned upload targets for staged play files.
@@ -4290,7 +4290,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4290
4290
  * For other files, the server returns a presigned PUT URL. Upload the file body to that URL.
4291
4291
  */
4292
4292
  async mintStagedPlayFileUploads(files) {
4293
- return _chunkJKVRBCZLjs.mintStagedPlayFileUploads.call(void 0, this.http, files);
4293
+ return _chunkJDMR33HSjs.mintStagedPlayFileUploads.call(void 0, this.http, files);
4294
4294
  }
4295
4295
  /**
4296
4296
  * Resolve staged play files by content hash without uploading bytes.
@@ -4401,7 +4401,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4401
4401
  }
4402
4402
  })) {
4403
4403
  _optionalChain([options, 'optionalAccess', _218 => _218.onEvent, 'optionalCall', _219 => _219(event)]);
4404
- if (_chunkJKVRBCZLjs.isTerminalPlayRunLifecycleStatus.call(void 0, playLiveRunStatus(event))) {
4404
+ if (_chunkJDMR33HSjs.isTerminalPlayRunLifecycleStatus.call(void 0, playLiveRunStatus(event))) {
4405
4405
  terminalObserved = true;
4406
4406
  }
4407
4407
  }
@@ -4409,7 +4409,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4409
4409
  throw new (0, _chunkDIAWYWT5js.DeeplineError)("Run watch aborted.", void 0, "ABORTED");
4410
4410
  }
4411
4411
  const refreshed = await _asyncNullishCoalesce(terminalStatus, async () => ( await this.getRunStatus(runId)));
4412
- if (terminalObserved || _chunkJKVRBCZLjs.isTerminalPlayRunLifecycleStatus.call(void 0, refreshed.status)) {
4412
+ if (terminalObserved || _chunkJDMR33HSjs.isTerminalPlayRunLifecycleStatus.call(void 0, refreshed.status)) {
4413
4413
  return refreshed;
4414
4414
  }
4415
4415
  throw new (0, _chunkDIAWYWT5js.DeeplineError)(
@@ -5195,42 +5195,43 @@ var DeeplineClient = (_class = class _DeeplineClient {
5195
5195
  if (paginateInventory && !_optionalChain([options, 'optionalAccess', _272 => _272.grep, 'optionalAccess', _273 => _273.trim, 'call', _274 => _274()]))
5196
5196
  params.set("inventory_paginated", "1");
5197
5197
  if (_optionalChain([options, 'optionalAccess', _275 => _275.origin])) params.set("origin", options.origin);
5198
- if (_optionalChain([options, 'optionalAccess', _276 => _276.categories])) {
5198
+ if (_optionalChain([options, 'optionalAccess', _276 => _276.summaryOnly])) params.set("summary_only", "1");
5199
+ if (_optionalChain([options, 'optionalAccess', _277 => _277.categories])) {
5199
5200
  params.set(
5200
5201
  "categories",
5201
5202
  Array.isArray(options.categories) ? options.categories.join(",") : options.categories
5202
5203
  );
5203
5204
  }
5204
- if (_optionalChain([options, 'optionalAccess', _277 => _277.categories]) || _optionalChain([options, 'optionalAccess', _278 => _278.includeToolCategories])) {
5205
+ if (_optionalChain([options, 'optionalAccess', _278 => _278.categories]) || _optionalChain([options, 'optionalAccess', _279 => _279.includeToolCategories])) {
5205
5206
  params.set("include_tool_categories", "1");
5206
5207
  }
5207
- if (_optionalChain([options, 'optionalAccess', _279 => _279.tags])) {
5208
+ if (_optionalChain([options, 'optionalAccess', _280 => _280.tags])) {
5208
5209
  params.set(
5209
5210
  "tags",
5210
5211
  Array.isArray(options.tags) ? options.tags.join(",") : options.tags
5211
5212
  );
5212
5213
  }
5213
- if (_optionalChain([options, 'optionalAccess', _280 => _280.includeArchived])) params.set("include_archived", "1");
5214
- if (_optionalChain([options, 'optionalAccess', _281 => _281.includeCostEstimates])) {
5214
+ if (_optionalChain([options, 'optionalAccess', _281 => _281.includeArchived])) params.set("include_archived", "1");
5215
+ if (_optionalChain([options, 'optionalAccess', _282 => _282.includeCostEstimates])) {
5215
5216
  params.set("include_cost_estimates", "1");
5216
5217
  }
5217
- if (_optionalChain([options, 'optionalAccess', _282 => _282.grep, 'optionalAccess', _283 => _283.trim, 'call', _284 => _284()])) {
5218
+ if (_optionalChain([options, 'optionalAccess', _283 => _283.grep, 'optionalAccess', _284 => _284.trim, 'call', _285 => _285()])) {
5218
5219
  params.set("grep", options.grep.trim());
5219
5220
  params.set("limit", "60");
5220
5221
  }
5221
- if (_optionalChain([options, 'optionalAccess', _285 => _285.limit]) !== void 0) {
5222
+ if (_optionalChain([options, 'optionalAccess', _286 => _286.limit]) !== void 0) {
5222
5223
  if (!Number.isSafeInteger(options.limit) || options.limit < 1) {
5223
5224
  throw new Error("Play page limit must be a positive integer");
5224
5225
  }
5225
5226
  params.set("limit", String(options.limit));
5226
5227
  }
5227
- if (_optionalChain([options, 'optionalAccess', _286 => _286.cursor])) params.set("cursor", options.cursor);
5228
+ if (_optionalChain([options, 'optionalAccess', _287 => _287.cursor])) params.set("cursor", options.cursor);
5228
5229
  const suffix = params.size ? `?${params.toString()}` : "";
5229
5230
  const response = await this.http.get(`/api/v2/plays${suffix}`);
5230
5231
  return {
5231
5232
  plays: _nullishCoalesce(response.plays, () => ( [])),
5232
- cursor: _nullishCoalesce(_nullishCoalesce(_optionalChain([response, 'access', _287 => _287.pagination, 'optionalAccess', _288 => _288.cursor]), () => ( response.cursor)), () => ( null)),
5233
- hasMore: Boolean(_nullishCoalesce(_optionalChain([response, 'access', _289 => _289.pagination, 'optionalAccess', _290 => _290.hasMore]), () => ( response.hasMore)))
5233
+ cursor: _nullishCoalesce(_nullishCoalesce(_optionalChain([response, 'access', _288 => _288.pagination, 'optionalAccess', _289 => _289.cursor]), () => ( response.cursor)), () => ( null)),
5234
+ hasMore: Boolean(_nullishCoalesce(_optionalChain([response, 'access', _290 => _290.pagination, 'optionalAccess', _291 => _291.hasMore]), () => ( response.hasMore)))
5234
5235
  };
5235
5236
  }
5236
5237
  /** Read definition-level settings, independently of code revisions. */
@@ -5284,7 +5285,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5284
5285
  }
5285
5286
  /** Start provider OAuth and return the URL to open in a browser. */
5286
5287
  async startIntegrationOAuth(provider, options = {}) {
5287
- const scopes = _optionalChain([options, 'access', _291 => _291.scopes, 'optionalAccess', _292 => _292.map, 'call', _293 => _293((scope) => scope.trim()), 'access', _294 => _294.filter, 'call', _295 => _295(Boolean)]);
5288
+ const scopes = _optionalChain([options, 'access', _292 => _292.scopes, 'optionalAccess', _293 => _293.map, 'call', _294 => _294((scope) => scope.trim()), 'access', _295 => _295.filter, 'call', _296 => _296(Boolean)]);
5288
5289
  if (scopes !== void 0 && scopes.length === 0) {
5289
5290
  throw new Error("scopes must contain at least one OAuth scope.");
5290
5291
  }
@@ -5300,8 +5301,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
5300
5301
  return this.http.post("/api/v2/integrations/connect", {
5301
5302
  provider: "slack",
5302
5303
  scopes: [...PRODUCT_NOTIFICATION_SLACK_OAUTH_SCOPES],
5303
- ..._optionalChain([options, 'optionalAccess', _296 => _296.successUrl]) ? { success_url: options.successUrl } : {},
5304
- ..._optionalChain([options, 'optionalAccess', _297 => _297.failureUrl]) ? { failure_url: options.failureUrl } : {}
5304
+ ..._optionalChain([options, 'optionalAccess', _297 => _297.successUrl]) ? { success_url: options.successUrl } : {},
5305
+ ..._optionalChain([options, 'optionalAccess', _298 => _298.failureUrl]) ? { failure_url: options.failureUrl } : {}
5305
5306
  });
5306
5307
  }
5307
5308
  /** List Slack channels visible to the connected Deepline Slack app. */
@@ -5376,7 +5377,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5376
5377
  }
5377
5378
  const targets = input.targets.map(parseNotificationGroupTarget);
5378
5379
  const legacyEvents = _nullishCoalesce(input.legacyEvents, () => ( []));
5379
- const legacyTarget = targets.length === 1 && _optionalChain([targets, 'access', _298 => _298[0], 'optionalAccess', _299 => _299.kind]) === "slack" && legacyEvents.length > 0 ? targets[0] : null;
5380
+ const legacyTarget = targets.length === 1 && _optionalChain([targets, 'access', _299 => _299[0], 'optionalAccess', _300 => _300.kind]) === "slack" && legacyEvents.length > 0 ? targets[0] : null;
5380
5381
  if (legacyEvents.length > 0 && !legacyTarget) {
5381
5382
  throw new Error(
5382
5383
  "--for is supported only by the legacy one-Slack-target form. Create the group first, then add rules in notification configuration."
@@ -5412,7 +5413,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5412
5413
  const existingGroup = current.configuration.groups.find(
5413
5414
  (candidate) => candidate.name.toLowerCase() === name.toLowerCase()
5414
5415
  );
5415
- const groupKey = _nullishCoalesce(_optionalChain([existingGroup, 'optionalAccess', _300 => _300.groupKey]), () => ( notificationObjectKey("group")));
5416
+ const groupKey = _nullishCoalesce(_optionalChain([existingGroup, 'optionalAccess', _301 => _301.groupKey]), () => ( notificationObjectKey("group")));
5416
5417
  const group = _nullishCoalesce(existingGroup, () => ( {
5417
5418
  groupKey,
5418
5419
  name,
@@ -5633,10 +5634,14 @@ var DeeplineClient = (_class = class _DeeplineClient {
5633
5634
  async getPlay(name, options) {
5634
5635
  return this.playClient.getPlay(name, options);
5635
5636
  }
5637
+ /** Estimate one Play without reading the rest of the workspace catalog. */
5638
+ async getPlayCostEstimate(name) {
5639
+ return this.http.get(`/api/v2/plays/${encodeURIComponent(name)}/cost`);
5640
+ }
5636
5641
  /** Read one trigger inventory page without loading run histories. */
5637
5642
  async listPlayTriggerInventory(options) {
5638
5643
  const params = new URLSearchParams({ view: "inventory" });
5639
- if (_optionalChain([options, 'optionalAccess', _301 => _301.cursor])) params.set("cursor", options.cursor);
5644
+ if (_optionalChain([options, 'optionalAccess', _302 => _302.cursor])) params.set("cursor", options.cursor);
5640
5645
  return this.http.get(`/api/v2/plays/triggers?${params}`);
5641
5646
  }
5642
5647
  /** Read one trigger's recent runs, with an explicit partial-history flag. */
@@ -5645,7 +5650,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5645
5650
  view: "history",
5646
5651
  binding_id: bindingId
5647
5652
  });
5648
- if (_optionalChain([options, 'optionalAccess', _302 => _302.limit]) !== void 0)
5653
+ if (_optionalChain([options, 'optionalAccess', _303 => _303.limit]) !== void 0)
5649
5654
  params.set("history_limit", String(options.limit));
5650
5655
  return this.http.get(`/api/v2/plays/triggers?${params}`);
5651
5656
  }
@@ -5833,14 +5838,14 @@ var DeeplineClient = (_class = class _DeeplineClient {
5833
5838
  */
5834
5839
  async runPlay(code, csvPath, name, options) {
5835
5840
  const { workflowId } = await this.submitPlay(code, csvPath, name, {
5836
- input: _optionalChain([options, 'optionalAccess', _303 => _303.input]),
5837
- sourceCode: _optionalChain([options, 'optionalAccess', _304 => _304.sourceCode]),
5838
- artifact: _optionalChain([options, 'optionalAccess', _305 => _305.artifact]),
5839
- compilerManifest: _optionalChain([options, 'optionalAccess', _306 => _306.compilerManifest]),
5840
- inputFile: _optionalChain([options, 'optionalAccess', _307 => _307.inputFile]),
5841
- packagedFiles: _optionalChain([options, 'optionalAccess', _308 => _308.packagedFiles]),
5842
- force: _optionalChain([options, 'optionalAccess', _309 => _309.force]),
5843
- forceToolRefresh: _optionalChain([options, 'optionalAccess', _310 => _310.forceToolRefresh])
5841
+ input: _optionalChain([options, 'optionalAccess', _304 => _304.input]),
5842
+ sourceCode: _optionalChain([options, 'optionalAccess', _305 => _305.sourceCode]),
5843
+ artifact: _optionalChain([options, 'optionalAccess', _306 => _306.artifact]),
5844
+ compilerManifest: _optionalChain([options, 'optionalAccess', _307 => _307.compilerManifest]),
5845
+ inputFile: _optionalChain([options, 'optionalAccess', _308 => _308.inputFile]),
5846
+ packagedFiles: _optionalChain([options, 'optionalAccess', _309 => _309.packagedFiles]),
5847
+ force: _optionalChain([options, 'optionalAccess', _310 => _310.force]),
5848
+ forceToolRefresh: _optionalChain([options, 'optionalAccess', _311 => _311.forceToolRefresh])
5844
5849
  });
5845
5850
  const start = Date.now();
5846
5851
  const state = {
@@ -5851,7 +5856,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5851
5856
  latest: null
5852
5857
  };
5853
5858
  let terminalObserved = null;
5854
- if (_optionalChain([options, 'optionalAccess', _311 => _311.signal, 'optionalAccess', _312 => _312.aborted])) {
5859
+ if (_optionalChain([options, 'optionalAccess', _312 => _312.signal, 'optionalAccess', _313 => _313.aborted])) {
5855
5860
  await this.cancelPlay(workflowId);
5856
5861
  return {
5857
5862
  success: false,
@@ -5862,9 +5867,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
5862
5867
  };
5863
5868
  }
5864
5869
  for await (const event of this.watchRunEvents(workflowId, {
5865
- signal: _optionalChain([options, 'optionalAccess', _313 => _313.signal])
5870
+ signal: _optionalChain([options, 'optionalAccess', _314 => _314.signal])
5866
5871
  })) {
5867
- if (_optionalChain([options, 'optionalAccess', _314 => _314.signal, 'optionalAccess', _315 => _315.aborted])) {
5872
+ if (_optionalChain([options, 'optionalAccess', _315 => _315.signal, 'optionalAccess', _316 => _316.aborted])) {
5868
5873
  await this.cancelPlay(workflowId);
5869
5874
  return {
5870
5875
  success: false,
@@ -5874,19 +5879,19 @@ var DeeplineClient = (_class = class _DeeplineClient {
5874
5879
  error: "Cancelled by user"
5875
5880
  };
5876
5881
  }
5877
- const previousStatus = _optionalChain([state, 'access', _316 => _316.latest, 'optionalAccess', _317 => _317.status]);
5882
+ const previousStatus = _optionalChain([state, 'access', _317 => _317.latest, 'optionalAccess', _318 => _318.status]);
5878
5883
  const status = updatePlayLiveStatusState(state, event);
5879
5884
  if (!status) {
5880
5885
  continue;
5881
5886
  }
5882
5887
  if (event.type !== "play.run.status" || status.status !== previousStatus) {
5883
- _optionalChain([options, 'optionalAccess', _318 => _318.onProgress, 'optionalCall', _319 => _319(status)]);
5888
+ _optionalChain([options, 'optionalAccess', _319 => _319.onProgress, 'optionalCall', _320 => _320(status)]);
5884
5889
  }
5885
- if (_chunkJKVRBCZLjs.isTerminalPlayRunLifecycleStatus.call(void 0, status.status)) {
5890
+ if (_chunkJDMR33HSjs.isTerminalPlayRunLifecycleStatus.call(void 0, status.status)) {
5886
5891
  terminalObserved = status;
5887
5892
  }
5888
5893
  }
5889
- if (_optionalChain([options, 'optionalAccess', _320 => _320.signal, 'optionalAccess', _321 => _321.aborted])) {
5894
+ if (_optionalChain([options, 'optionalAccess', _321 => _321.signal, 'optionalAccess', _322 => _322.aborted])) {
5890
5895
  await this.cancelPlay(workflowId);
5891
5896
  return {
5892
5897
  success: false,
@@ -5939,7 +5944,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5939
5944
  const response = await this.http.get(
5940
5945
  `/api/v2/usage/events?request_id=${encodeURIComponent(normalizedRequestId)}`
5941
5946
  );
5942
- const event = _optionalChain([response, 'access', _322 => _322.entries, 'optionalAccess', _323 => _323[0]]);
5947
+ const event = _optionalChain([response, 'access', _323 => _323.entries, 'optionalAccess', _324 => _324[0]]);
5943
5948
  if (!event) {
5944
5949
  throw new (0, _chunkDIAWYWT5js.DeeplineError)(
5945
5950
  "No usage event was found for this request_id.",
@@ -6113,7 +6118,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6113
6118
  async cancelBillingSubscription(options) {
6114
6119
  return this.http.post(
6115
6120
  "/api/v2/billing/subscription/cancel",
6116
- { action: _optionalChain([options, 'optionalAccess', _324 => _324.undo]) ? "undo_cancel" : "cancel" }
6121
+ { action: _optionalChain([options, 'optionalAccess', _325 => _325.undo]) ? "undo_cancel" : "cancel" }
6117
6122
  );
6118
6123
  }
6119
6124
  /**
@@ -6125,7 +6130,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6125
6130
  */
6126
6131
  async listBillingInvoices(options) {
6127
6132
  const params = new URLSearchParams();
6128
- if (_optionalChain([options, 'optionalAccess', _325 => _325.limit]) !== void 0) {
6133
+ if (_optionalChain([options, 'optionalAccess', _326 => _326.limit]) !== void 0) {
6129
6134
  params.set("limit", String(options.limit));
6130
6135
  }
6131
6136
  const suffix = Array.from(params).length > 0 ? `?${params.toString()}` : "";
@@ -6235,7 +6240,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6235
6240
  /** Create a Stripe-hosted portal session for payment recovery and invoices. */
6236
6241
  async createTargetBillingPortalSession(options) {
6237
6242
  const response = await this.http.post(
6238
- _optionalChain([options, 'optionalAccess', _326 => _326.flow]) === "customer_update" ? "/api/v2/billing/portal-sessions?flow=customer_update" : "/api/v2/billing/portal-sessions",
6243
+ _optionalChain([options, 'optionalAccess', _327 => _327.flow]) === "customer_update" ? "/api/v2/billing/portal-sessions?flow=customer_update" : "/api/v2/billing/portal-sessions",
6239
6244
  {}
6240
6245
  );
6241
6246
  return response.data;
@@ -6285,8 +6290,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
6285
6290
  return this.http.request("/api/v2/monitors/audit", {
6286
6291
  method: "POST",
6287
6292
  body: {
6288
- ..._optionalChain([options, 'optionalAccess', _327 => _327.fleetId]) ? { fleet_id: options.fleetId } : {},
6289
- ..._optionalChain([options, 'optionalAccess', _328 => _328.cursor]) ? { cursor: options.cursor } : {}
6293
+ ..._optionalChain([options, 'optionalAccess', _328 => _328.fleetId]) ? { fleet_id: options.fleetId } : {},
6294
+ ..._optionalChain([options, 'optionalAccess', _329 => _329.cursor]) ? { cursor: options.cursor } : {}
6290
6295
  },
6291
6296
  maxRetries: 0
6292
6297
  });
@@ -6296,8 +6301,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
6296
6301
  return this.http.request("/api/v2/monitors/repair", {
6297
6302
  method: "POST",
6298
6303
  body: {
6299
- ..._optionalChain([options, 'optionalAccess', _329 => _329.fleetId]) ? { fleet_id: options.fleetId } : {},
6300
- ..._optionalChain([options, 'optionalAccess', _330 => _330.dryRun]) === void 0 ? {} : { dry_run: options.dryRun }
6304
+ ..._optionalChain([options, 'optionalAccess', _330 => _330.fleetId]) ? { fleet_id: options.fleetId } : {},
6305
+ ..._optionalChain([options, 'optionalAccess', _331 => _331.dryRun]) === void 0 ? {} : { dry_run: options.dryRun }
6301
6306
  },
6302
6307
  maxRetries: 0
6303
6308
  });
@@ -6305,7 +6310,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6305
6310
  /** Delivery and convergence health. Prefer `client.monitors.health(...)`. */
6306
6311
  async readMonitorsHealth(options) {
6307
6312
  const params = new URLSearchParams();
6308
- if (_optionalChain([options, 'optionalAccess', _331 => _331.fleetId])) params.set("fleet_id", options.fleetId);
6313
+ if (_optionalChain([options, 'optionalAccess', _332 => _332.fleetId])) params.set("fleet_id", options.fleetId);
6309
6314
  const query = params.toString();
6310
6315
  const suffix = query ? `?${query}` : "";
6311
6316
  return this.http.request(
@@ -6378,7 +6383,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6378
6383
  );
6379
6384
  }
6380
6385
  const params = new URLSearchParams();
6381
- if (_optionalChain([options, 'optionalAccess', _332 => _332.cursor])) params.set("cursor", options.cursor);
6386
+ if (_optionalChain([options, 'optionalAccess', _333 => _333.cursor])) params.set("cursor", options.cursor);
6382
6387
  const suffix = params.size > 0 ? `?${params}` : "";
6383
6388
  return this.http.request(
6384
6389
  `/api/v2/monitors/batch/${encodeURIComponent(runId)}${suffix}`,
@@ -6425,7 +6430,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6425
6430
  * a second charge. The submission is never replayed automatically.
6426
6431
  */
6427
6432
  async previewMonitor(definition, options) {
6428
- const idempotencyKey = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _333 => _333.idempotencyKey]), () => ( `monitor-preview-${_nullishCoalesce(_optionalChain([globalThis, 'access', _334 => _334.crypto, 'optionalAccess', _335 => _335.randomUUID, 'optionalCall', _336 => _336()]), () => ( `${Date.now()}-${Math.random().toString(36).slice(2)}`))}`));
6433
+ const idempotencyKey = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _334 => _334.idempotencyKey]), () => ( `monitor-preview-${_nullishCoalesce(_optionalChain([globalThis, 'access', _335 => _335.crypto, 'optionalAccess', _336 => _336.randomUUID, 'optionalCall', _337 => _337()]), () => ( `${Date.now()}-${Math.random().toString(36).slice(2)}`))}`));
6429
6434
  try {
6430
6435
  const result = await this.http.request(
6431
6436
  "/api/v2/monitors/preview",
@@ -6433,7 +6438,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6433
6438
  method: "POST",
6434
6439
  body: {
6435
6440
  ...definition,
6436
- ..._optionalChain([options, 'optionalAccess', _337 => _337.limit]) === void 0 ? {} : { limit: options.limit }
6441
+ ..._optionalChain([options, 'optionalAccess', _338 => _338.limit]) === void 0 ? {} : { limit: options.limit }
6437
6442
  },
6438
6443
  headers: { "Idempotency-Key": idempotencyKey },
6439
6444
  maxRetries: 0,
@@ -6455,7 +6460,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6455
6460
  * `client.monitors.deploy(...)`.
6456
6461
  */
6457
6462
  async deployMonitor(definition, options) {
6458
- if (_optionalChain([options, 'optionalAccess', _338 => _338.dryRun])) {
6463
+ if (_optionalChain([options, 'optionalAccess', _339 => _339.dryRun])) {
6459
6464
  return this.http.request("/api/v2/monitors/check", {
6460
6465
  method: "POST",
6461
6466
  body: definition
@@ -6491,12 +6496,12 @@ var DeeplineClient = (_class = class _DeeplineClient {
6491
6496
  /** List deployed monitors. Prefer `client.monitors.list(...)`. */
6492
6497
  async listMonitors(options) {
6493
6498
  const params = new URLSearchParams();
6494
- if (_optionalChain([options, 'optionalAccess', _339 => _339.state])) params.set("state", options.state);
6495
- else if (_optionalChain([options, 'optionalAccess', _340 => _340.status])) params.set("status", options.status);
6496
- if (_optionalChain([options, 'optionalAccess', _341 => _341.limit]) !== void 0)
6499
+ if (_optionalChain([options, 'optionalAccess', _340 => _340.state])) params.set("state", options.state);
6500
+ else if (_optionalChain([options, 'optionalAccess', _341 => _341.status])) params.set("status", options.status);
6501
+ if (_optionalChain([options, 'optionalAccess', _342 => _342.limit]) !== void 0)
6497
6502
  params.set("limit", String(options.limit));
6498
- if (_optionalChain([options, 'optionalAccess', _342 => _342.cursor])) params.set("cursor", options.cursor);
6499
- if (_optionalChain([options, 'optionalAccess', _343 => _343.includeConsumers])) params.set("include_consumers", "true");
6503
+ if (_optionalChain([options, 'optionalAccess', _343 => _343.cursor])) params.set("cursor", options.cursor);
6504
+ if (_optionalChain([options, 'optionalAccess', _344 => _344.includeConsumers])) params.set("include_consumers", "true");
6500
6505
  const query = params.toString();
6501
6506
  const suffix = query ? `?${query}` : "";
6502
6507
  return this.http.request(
@@ -6512,7 +6517,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6512
6517
  );
6513
6518
  }
6514
6519
  async testMonitorWebhook(key, payload, options) {
6515
- if (_optionalChain([options, 'optionalAccess', _344 => _344.dispatch]) === true || _optionalChain([options, 'optionalAccess', _345 => _345.validationOnly]) === false) {
6520
+ if (_optionalChain([options, 'optionalAccess', _345 => _345.dispatch]) === true || _optionalChain([options, 'optionalAccess', _346 => _346.validationOnly]) === false) {
6516
6521
  throw new (0, _chunkDIAWYWT5js.DeeplineError)(
6517
6522
  "Monitor tests are validation-only and cannot dispatch events.",
6518
6523
  void 0,
@@ -6567,7 +6572,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6567
6572
  }
6568
6573
  /** Delete a deployed monitor and its upstream provider resource. `dryRun` returns the delete plan. Prefer `client.monitors.delete(...)`. */
6569
6574
  async deleteMonitor(key, options) {
6570
- if (_optionalChain([options, 'optionalAccess', _346 => _346.localOnly]) === true) {
6575
+ if (_optionalChain([options, 'optionalAccess', _347 => _347.localOnly]) === true) {
6571
6576
  throw new (0, _chunkDIAWYWT5js.DeeplineError)(
6572
6577
  "localOnly monitor deletion is no longer supported. Monitor deletion always deprovisions the upstream provider resource.",
6573
6578
  void 0,
@@ -6575,11 +6580,11 @@ var DeeplineClient = (_class = class _DeeplineClient {
6575
6580
  );
6576
6581
  }
6577
6582
  const params = new URLSearchParams();
6578
- if (_optionalChain([options, 'optionalAccess', _347 => _347.dryRun])) params.set("dry_run", "true");
6583
+ if (_optionalChain([options, 'optionalAccess', _348 => _348.dryRun])) params.set("dry_run", "true");
6579
6584
  const query = params.toString();
6580
6585
  return this.http.request(
6581
6586
  `/api/v2/monitors/deployed/${encodeURIComponent(key)}${query ? `?${query}` : ""}`,
6582
- _optionalChain([options, 'optionalAccess', _348 => _348.dryRun]) ? { method: "DELETE" } : {
6587
+ _optionalChain([options, 'optionalAccess', _349 => _349.dryRun]) ? { method: "DELETE" } : {
6583
6588
  method: "DELETE",
6584
6589
  // Deletion is a provider lifecycle operation. A timeout is an
6585
6590
  // unknown outcome, not authority to begin another delete attempt.
@@ -6592,10 +6597,10 @@ var DeeplineClient = (_class = class _DeeplineClient {
6592
6597
  * Prefer `client.monitors.reactivate(...)`.
6593
6598
  */
6594
6599
  async reactivateMonitor(key, options) {
6595
- const query = _optionalChain([options, 'optionalAccess', _349 => _349.dryRun]) ? "?dry_run=true" : "";
6600
+ const query = _optionalChain([options, 'optionalAccess', _350 => _350.dryRun]) ? "?dry_run=true" : "";
6596
6601
  return this.http.request(
6597
6602
  `/api/v2/monitors/deployed/${encodeURIComponent(key)}/reactivate${query}`,
6598
- _optionalChain([options, 'optionalAccess', _350 => _350.dryRun]) ? { method: "POST", body: {} } : {
6603
+ _optionalChain([options, 'optionalAccess', _351 => _351.dryRun]) ? { method: "POST", body: {} } : {
6599
6604
  method: "POST",
6600
6605
  body: {},
6601
6606
  // Reactivation can create an upstream resource, so it must not use
@@ -6609,7 +6614,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6609
6614
  // ——————————————————————————————————————————————————————————
6610
6615
  static __initStatic() {this.MONITOR_JOB_IDEMPOTENCY_KEY_MAX_LENGTH = 96}
6611
6616
  monitorJobIdempotencyKey(operation) {
6612
- const uuid = _nullishCoalesce(_optionalChain([globalThis, 'access', _351 => _351.crypto, 'optionalAccess', _352 => _352.randomUUID, 'optionalCall', _353 => _353()]), () => ( `${Date.now()}-${Math.random().toString(36).slice(2)}`));
6617
+ const uuid = _nullishCoalesce(_optionalChain([globalThis, 'access', _352 => _352.crypto, 'optionalAccess', _353 => _353.randomUUID, 'optionalCall', _354 => _354()]), () => ( `${Date.now()}-${Math.random().toString(36).slice(2)}`));
6613
6618
  const prefix = "monitor-job-";
6614
6619
  const safeOperation = operation.replace(/[^A-Za-z0-9._-]/g, "-");
6615
6620
  const maxOperationLength = Math.max(
@@ -6620,7 +6625,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6620
6625
  }
6621
6626
  monitorJobHeaders(operation, idempotencyKey) {
6622
6627
  return {
6623
- "Idempotency-Key": _optionalChain([idempotencyKey, 'optionalAccess', _354 => _354.trim, 'call', _355 => _355()]) || this.monitorJobIdempotencyKey(operation)
6628
+ "Idempotency-Key": _optionalChain([idempotencyKey, 'optionalAccess', _355 => _355.trim, 'call', _356 => _356()]) || this.monitorJobIdempotencyKey(operation)
6624
6629
  };
6625
6630
  }
6626
6631
  async deployMonitorBatch(definitions, options) {
@@ -6631,7 +6636,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6631
6636
  body: { version: 1, kind: "batch", monitors: definitions },
6632
6637
  headers: this.monitorJobHeaders(
6633
6638
  "batch-deploy",
6634
- _optionalChain([options, 'optionalAccess', _356 => _356.idempotencyKey])
6639
+ _optionalChain([options, 'optionalAccess', _357 => _357.idempotencyKey])
6635
6640
  ),
6636
6641
  maxRetries: 0,
6637
6642
  exactUrlOnly: true
@@ -6650,11 +6655,11 @@ var DeeplineClient = (_class = class _DeeplineClient {
6650
6655
  version: 1,
6651
6656
  kind: "batch",
6652
6657
  monitors: definitions,
6653
- ..._optionalChain([options, 'optionalAccess', _357 => _357.expectedGeneration]) === void 0 ? {} : { expected_generation: options.expectedGeneration }
6658
+ ..._optionalChain([options, 'optionalAccess', _358 => _358.expectedGeneration]) === void 0 ? {} : { expected_generation: options.expectedGeneration }
6654
6659
  },
6655
6660
  headers: this.monitorJobHeaders(
6656
6661
  `batch-sync-${batchId}`,
6657
- _optionalChain([options, 'optionalAccess', _358 => _358.idempotencyKey])
6662
+ _optionalChain([options, 'optionalAccess', _359 => _359.idempotencyKey])
6658
6663
  ),
6659
6664
  maxRetries: 0,
6660
6665
  exactUrlOnly: true
@@ -6669,7 +6674,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6669
6674
  body: {},
6670
6675
  headers: this.monitorJobHeaders(
6671
6676
  `batch-start-${batchId}`,
6672
- _optionalChain([options, 'optionalAccess', _359 => _359.idempotencyKey])
6677
+ _optionalChain([options, 'optionalAccess', _360 => _360.idempotencyKey])
6673
6678
  ),
6674
6679
  maxRetries: 0,
6675
6680
  exactUrlOnly: true
@@ -6684,7 +6689,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6684
6689
  body: {},
6685
6690
  headers: this.monitorJobHeaders(
6686
6691
  `batch-stop-${batchId}`,
6687
- _optionalChain([options, 'optionalAccess', _360 => _360.idempotencyKey])
6692
+ _optionalChain([options, 'optionalAccess', _361 => _361.idempotencyKey])
6688
6693
  ),
6689
6694
  maxRetries: 0,
6690
6695
  exactUrlOnly: true
@@ -6705,7 +6710,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6705
6710
  body: {},
6706
6711
  headers: this.monitorJobHeaders(
6707
6712
  `${action}-${monitorKey}`,
6708
- _optionalChain([options, 'optionalAccess', _361 => _361.idempotencyKey])
6713
+ _optionalChain([options, 'optionalAccess', _362 => _362.idempotencyKey])
6709
6714
  ),
6710
6715
  maxRetries: 0,
6711
6716
  exactUrlOnly: true
@@ -6718,7 +6723,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6718
6723
  body: definition,
6719
6724
  headers: this.monitorJobHeaders(
6720
6725
  `sync-${definition.key}`,
6721
- _optionalChain([options, 'optionalAccess', _362 => _362.idempotencyKey])
6726
+ _optionalChain([options, 'optionalAccess', _363 => _363.idempotencyKey])
6722
6727
  ),
6723
6728
  maxRetries: 0,
6724
6729
  exactUrlOnly: true
@@ -6731,7 +6736,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6731
6736
  );
6732
6737
  }
6733
6738
  async getMonitorJobLogs(jobId, options) {
6734
- const query = _optionalChain([options, 'optionalAccess', _363 => _363.limit]) === void 0 ? "" : `?limit=${encodeURIComponent(String(options.limit))}`;
6739
+ const query = _optionalChain([options, 'optionalAccess', _364 => _364.limit]) === void 0 ? "" : `?limit=${encodeURIComponent(String(options.limit))}`;
6735
6740
  return this.http.request(
6736
6741
  `/api/v2/monitors/jobs/${encodeURIComponent(jobId)}/logs${query}`,
6737
6742
  { method: "GET" }
@@ -6744,15 +6749,15 @@ var DeeplineClient = (_class = class _DeeplineClient {
6744
6749
  );
6745
6750
  }
6746
6751
  async waitForMonitorJob(jobId, options) {
6747
- const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _364 => _364.timeoutMs]), () => ( 10 * 6e4)));
6748
- const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _365 => _365.pollIntervalMs]), () => ( 2e3)));
6752
+ const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _365 => _365.timeoutMs]), () => ( 10 * 6e4)));
6753
+ const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _366 => _366.pollIntervalMs]), () => ( 2e3)));
6749
6754
  const terminal = /* @__PURE__ */ new Set(["succeeded", "failed", "cancelled"]);
6750
6755
  const startedAt = Date.now();
6751
6756
  let latest = await this.getMonitorJob(jobId);
6752
6757
  while (true) {
6753
- _optionalChain([options, 'optionalAccess', _366 => _366.onProgress, 'optionalCall', _367 => _367(latest)]);
6758
+ _optionalChain([options, 'optionalAccess', _367 => _367.onProgress, 'optionalCall', _368 => _368(latest)]);
6754
6759
  const job = latest.job;
6755
- const state = typeof _optionalChain([job, 'optionalAccess', _368 => _368.state]) === "string" ? job.state : void 0;
6760
+ const state = typeof _optionalChain([job, 'optionalAccess', _369 => _369.state]) === "string" ? job.state : void 0;
6756
6761
  if (state && terminal.has(state)) return latest;
6757
6762
  if (Date.now() - startedAt >= timeoutMs) return latest;
6758
6763
  await sleep(pollIntervalMs);
@@ -6763,12 +6768,12 @@ var DeeplineClient = (_class = class _DeeplineClient {
6763
6768
  // Monitor Fleets
6764
6769
  // ——————————————————————————————————————————————————————————
6765
6770
  monitorFleetIdempotencyKey(operation) {
6766
- const uuid = _optionalChain([globalThis, 'access', _369 => _369.crypto, 'optionalAccess', _370 => _370.randomUUID, 'optionalCall', _371 => _371()]);
6771
+ const uuid = _optionalChain([globalThis, 'access', _370 => _370.crypto, 'optionalAccess', _371 => _371.randomUUID, 'optionalCall', _372 => _372()]);
6767
6772
  return `monitor-fleet-${operation}-${_nullishCoalesce(uuid, () => ( `${Date.now()}-${Math.random().toString(36).slice(2)}`))}`;
6768
6773
  }
6769
6774
  monitorFleetHeaders(operation, idempotencyKey) {
6770
6775
  return {
6771
- "Idempotency-Key": _optionalChain([idempotencyKey, 'optionalAccess', _372 => _372.trim, 'call', _373 => _373()]) || this.monitorFleetIdempotencyKey(operation)
6776
+ "Idempotency-Key": _optionalChain([idempotencyKey, 'optionalAccess', _373 => _373.trim, 'call', _374 => _374()]) || this.monitorFleetIdempotencyKey(operation)
6772
6777
  };
6773
6778
  }
6774
6779
  monitorFleetPath(fleetId) {
@@ -6788,15 +6793,15 @@ var DeeplineClient = (_class = class _DeeplineClient {
6788
6793
  const fleetId = typeof definitionOrId === "string" ? definitionOrId : definitionOrId.id;
6789
6794
  const body = {
6790
6795
  ...typeof definitionOrId === "string" ? {} : { definition: definitionOrId },
6791
- ..._optionalChain([options, 'optionalAccess', _374 => _374.dryRun]) ? { dry_run: true } : {},
6792
- ..._optionalChain([options, 'optionalAccess', _375 => _375.expectedGeneration]) !== void 0 ? { expected_generation: options.expectedGeneration } : {}
6796
+ ..._optionalChain([options, 'optionalAccess', _375 => _375.dryRun]) ? { dry_run: true } : {},
6797
+ ..._optionalChain([options, 'optionalAccess', _376 => _376.expectedGeneration]) !== void 0 ? { expected_generation: options.expectedGeneration } : {}
6793
6798
  };
6794
6799
  return this.http.request(
6795
6800
  this.monitorFleetPath(fleetId),
6796
6801
  {
6797
6802
  method: "PUT",
6798
6803
  body,
6799
- headers: this.monitorFleetHeaders("sync", _optionalChain([options, 'optionalAccess', _376 => _376.idempotencyKey])),
6804
+ headers: this.monitorFleetHeaders("sync", _optionalChain([options, 'optionalAccess', _377 => _377.idempotencyKey])),
6800
6805
  maxRetries: 0,
6801
6806
  exactUrlOnly: true
6802
6807
  }
@@ -6809,8 +6814,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
6809
6814
  }
6810
6815
  async getMonitorFleet(fleetId, options) {
6811
6816
  const params = new URLSearchParams();
6812
- if (_optionalChain([options, 'optionalAccess', _377 => _377.drift])) params.set("drift", "1");
6813
- if (_optionalChain([options, 'optionalAccess', _378 => _378.limit]) !== void 0)
6817
+ if (_optionalChain([options, 'optionalAccess', _378 => _378.drift])) params.set("drift", "1");
6818
+ if (_optionalChain([options, 'optionalAccess', _379 => _379.limit]) !== void 0)
6814
6819
  params.set("limit", String(options.limit));
6815
6820
  const query = params.toString();
6816
6821
  return this.http.request(
@@ -6823,10 +6828,10 @@ var DeeplineClient = (_class = class _DeeplineClient {
6823
6828
  this.monitorFleetPath(fleetId),
6824
6829
  {
6825
6830
  method: "DELETE",
6826
- body: _optionalChain([options, 'optionalAccess', _379 => _379.dryRun]) ? { dry_run: true } : {},
6831
+ body: _optionalChain([options, 'optionalAccess', _380 => _380.dryRun]) ? { dry_run: true } : {},
6827
6832
  headers: this.monitorFleetHeaders(
6828
6833
  "deactivate",
6829
- _optionalChain([options, 'optionalAccess', _380 => _380.idempotencyKey])
6834
+ _optionalChain([options, 'optionalAccess', _381 => _381.idempotencyKey])
6830
6835
  ),
6831
6836
  maxRetries: 0,
6832
6837
  exactUrlOnly: true
@@ -6841,7 +6846,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6841
6846
  body: {},
6842
6847
  headers: this.monitorFleetHeaders(
6843
6848
  "reactivate",
6844
- _optionalChain([options, 'optionalAccess', _381 => _381.idempotencyKey])
6849
+ _optionalChain([options, 'optionalAccess', _382 => _382.idempotencyKey])
6845
6850
  ),
6846
6851
  maxRetries: 0,
6847
6852
  exactUrlOnly: true
@@ -6858,13 +6863,13 @@ var DeeplineClient = (_class = class _DeeplineClient {
6858
6863
  * identical to "the request failed".
6859
6864
  */
6860
6865
  async waitForMonitorFleetConvergence(fleetId, options) {
6861
- const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _382 => _382.timeoutMs]), () => ( 10 * 6e4)));
6862
- const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _383 => _383.pollIntervalMs]), () => ( 2e3)));
6863
- const terminal = _optionalChain([options, 'optionalAccess', _384 => _384.until]) === "deactivated" ? /* @__PURE__ */ new Set(["deactivated", "degraded"]) : /* @__PURE__ */ new Set(["converged", "degraded", "deactivated"]);
6866
+ const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _383 => _383.timeoutMs]), () => ( 10 * 6e4)));
6867
+ const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _384 => _384.pollIntervalMs]), () => ( 2e3)));
6868
+ const terminal = _optionalChain([options, 'optionalAccess', _385 => _385.until]) === "deactivated" ? /* @__PURE__ */ new Set(["deactivated", "degraded"]) : /* @__PURE__ */ new Set(["converged", "degraded", "deactivated"]);
6864
6869
  const startedAt = Date.now();
6865
6870
  let latest = await this.getMonitorFleet(fleetId);
6866
6871
  while (true) {
6867
- _optionalChain([options, 'optionalAccess', _385 => _385.onProgress, 'optionalCall', _386 => _386(latest)]);
6872
+ _optionalChain([options, 'optionalAccess', _386 => _386.onProgress, 'optionalCall', _387 => _387(latest)]);
6868
6873
  const status = typeof latest.status === "string" ? latest.status : void 0;
6869
6874
  if (status && terminal.has(status)) return latest;
6870
6875
  if (Date.now() - startedAt >= timeoutMs) return latest;