deepline 0.3.437 → 0.3.439

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 (111) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +23 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +19 -0
  4. package/dist/cli/auth-5UUDH4A7.js +40 -0
  5. package/dist/cli/{auth-TSUA536O.mjs → auth-FE2LP7A5.mjs} +4 -4
  6. package/dist/cli/{billing-V3T2YPBR.js → billing-4QAWLCKH.js} +73 -73
  7. package/dist/cli/{billing-5TGADGMX.mjs → billing-GABU2MTX.mjs} +4 -4
  8. package/dist/cli/{chunk-PZGRH4X7.mjs → chunk-2ELMQ6LW.mjs} +4 -4
  9. package/dist/cli/{chunk-R4MGS7YD.mjs → chunk-2GNX6SCO.mjs} +24 -0
  10. package/dist/cli/{chunk-WXJAODJD.js → chunk-2I42ORGH.js} +1 -1
  11. package/dist/cli/{chunk-D7NOGNG5.js → chunk-3TYXI7MD.js} +6 -6
  12. package/dist/cli/{chunk-IPJ3DZ7I.js → chunk-72XLUEP6.js} +16 -16
  13. package/dist/cli/{chunk-632AG45P.js → chunk-76DCNYH3.js} +2 -2
  14. package/dist/cli/{chunk-7QLXY6RP.mjs → chunk-BQQ4LEQB.mjs} +1 -1
  15. package/dist/cli/{chunk-JU67SR7M.js → chunk-D4VWHTDT.js} +6 -6
  16. package/dist/cli/{chunk-K4EHBVYV.js → chunk-DM6Q634K.js} +24 -0
  17. package/dist/cli/{chunk-JJ7SVPMN.mjs → chunk-E6ESUF5C.mjs} +1 -1
  18. package/dist/cli/{chunk-Q5LCLAY5.js → chunk-EBW6KRTG.js} +4 -4
  19. package/dist/cli/{chunk-BFV62ZMO.mjs → chunk-F3ORKGAM.mjs} +2 -2
  20. package/dist/cli/{chunk-Z6TTBJHH.js → chunk-FB3B2NKV.js} +8 -8
  21. package/dist/cli/{chunk-U5PCCQMO.js → chunk-FCF5BP3Q.js} +2 -2
  22. package/dist/cli/{chunk-G56WUJBT.mjs → chunk-FDQAOF3L.mjs} +3 -3
  23. package/dist/cli/{chunk-KAM3ZGK4.mjs → chunk-HO2TOFKF.mjs} +14 -1
  24. package/dist/cli/{chunk-PXUAU5Q6.mjs → chunk-HUBVYO52.mjs} +2 -2
  25. package/dist/cli/{chunk-5IJDDKD6.mjs → chunk-IAL3KSJT.mjs} +1 -1
  26. package/dist/cli/{chunk-JHT2LCK3.js → chunk-IX7ZGPLU.js} +8 -8
  27. package/dist/cli/{chunk-BZ3RMXER.js → chunk-KGR7SR3C.js} +113 -81
  28. package/dist/cli/{chunk-QHDQIHME.mjs → chunk-MGBVCVJ7.mjs} +1 -1
  29. package/dist/cli/{chunk-XGKH5EC7.js → chunk-MPY4UD6H.js} +93 -80
  30. package/dist/cli/{chunk-AFWYYSKY.mjs → chunk-N7T6S5SU.mjs} +2 -2
  31. package/dist/cli/{chunk-6VB2BPUX.js → chunk-P4ITKGRQ.js} +50 -50
  32. package/dist/cli/{chunk-HS3A4Q6E.mjs → chunk-QFTJ24UV.mjs} +3 -3
  33. package/dist/cli/{chunk-ZOPU46KZ.js → chunk-R3X55OMZ.js} +20 -20
  34. package/dist/cli/{chunk-UNX3UQFJ.mjs → chunk-RIJ4VTYJ.mjs} +3 -3
  35. package/dist/cli/{chunk-OOXULCVG.mjs → chunk-SWZQBMXR.mjs} +2 -2
  36. package/dist/cli/{chunk-BR63JXVC.js → chunk-TWXPEHTM.js} +52 -52
  37. package/dist/cli/{chunk-QOTWZX7F.mjs → chunk-UN3F6ZKR.mjs} +5 -5
  38. package/dist/cli/{chunk-NEGUDVTQ.js → chunk-WJ4PNSX3.js} +26 -26
  39. package/dist/cli/{chunk-YRK64KJY.js → chunk-XFVHEDRH.js} +35 -35
  40. package/dist/cli/{chunk-RG4ORMHV.mjs → chunk-XMSVK6O4.mjs} +42 -10
  41. package/dist/cli/{chunk-JIY4IN6O.mjs → chunk-ZTJUGK5I.mjs} +1 -1
  42. package/dist/cli/command-docs.js +2 -2
  43. package/dist/cli/command-docs.mjs +1 -1
  44. package/dist/cli/{csv-BWEZ5PWQ.mjs → csv-NZOZIEQP.mjs} +3 -3
  45. package/dist/cli/{csv-WL7ZWIT5.js → csv-TVVXG42B.js} +12 -12
  46. package/dist/cli/{db-DCTSMDWZ.js → db-3Q2OPJW6.js} +25 -25
  47. package/dist/cli/{db-KAR7YCP4.mjs → db-PEZHN563.mjs} +4 -4
  48. package/dist/cli/{describe-EMVTMHVJ.mjs → describe-GHSBWUUS.mjs} +12 -12
  49. package/dist/cli/{describe-A7FCQTHV.js → describe-M7AP5WVH.js} +16 -16
  50. package/dist/cli/describe-core.d.mts +1 -1
  51. package/dist/cli/describe-core.d.ts +1 -1
  52. package/dist/cli/{executions-XR4PN6WX.mjs → executions-7E3GU4QA.mjs} +4 -4
  53. package/dist/cli/{executions-YSUL2TQR.js → executions-YKR2SAZF.js} +6 -6
  54. package/dist/cli/{feedback-PJSTAXH7.mjs → feedback-JSPMENHA.mjs} +3 -3
  55. package/dist/cli/{feedback-G5IU7E4Y.js → feedback-JTRYBUQZ.js} +7 -7
  56. package/dist/cli/git-6QITFAMM.js +24 -0
  57. package/dist/cli/{git-TJ5Q2Z7A.mjs → git-R4PATSRX.mjs} +4 -4
  58. package/dist/cli/index.js +135 -135
  59. package/dist/cli/index.mjs +37 -37
  60. package/dist/cli/{legacy-noops-GS3DMVI5.js → legacy-noops-3OMVEANW.js} +7 -7
  61. package/dist/cli/{legacy-noops-O6OLRAES.mjs → legacy-noops-W52GTS36.mjs} +4 -4
  62. package/dist/cli/{monitors-BPEMPIO4.mjs → monitors-SIXLFZJ3.mjs} +4 -4
  63. package/dist/cli/{monitors-A4S5WBGO.js → monitors-YA6X5BM4.js} +84 -84
  64. package/dist/cli/{org-VQCNY2WB.js → org-73YXPEZ5.js} +66 -66
  65. package/dist/cli/{org-OL3AIYSH.mjs → org-EYFKI2ZI.mjs} +4 -4
  66. package/dist/cli/{play-7XS2VNKK.mjs → play-7EF6XSS6.mjs} +10 -10
  67. package/dist/cli/{play-U6UJM67Q.js → play-CSRSSDTC.js} +283 -283
  68. package/dist/cli/{providers-RLVGGWTW.js → providers-IHQGSP3E.js} +7 -7
  69. package/dist/cli/{providers-S7Q4I65H.mjs → providers-MKIVZMBG.mjs} +4 -4
  70. package/dist/cli/{quickstart-BNSND2KM.js → quickstart-26QTTEHV.js} +5 -5
  71. package/dist/cli/{quickstart-2XZPRIBJ.mjs → quickstart-COU7YD7S.mjs} +3 -3
  72. package/dist/cli/search-DOK42NBV.js +30 -0
  73. package/dist/cli/{search-UVIIPKWR.mjs → search-YKN4OI4P.mjs} +5 -5
  74. package/dist/cli/{secrets-DQUHORO5.mjs → secrets-CQPQQJ76.mjs} +4 -4
  75. package/dist/cli/{secrets-RKE6ZNTC.js → secrets-W3DT7F7Q.js} +13 -13
  76. package/dist/cli/{sessions-4Y7G5432.js → sessions-GYKUO55E.js} +5 -5
  77. package/dist/cli/{sessions-W77NIN3J.mjs → sessions-U5ULT5CF.mjs} +4 -4
  78. package/dist/cli/{settings-SL5QVPV3.mjs → settings-6MZCTUWD.mjs} +8 -8
  79. package/dist/cli/{settings-CTNYYHZP.js → settings-U6ZOQ3FZ.js} +75 -75
  80. package/dist/cli/{setup-DP6PDQUN.js → setup-HEDWKIGE.js} +42 -42
  81. package/dist/cli/{setup-Y5UBJKVQ.mjs → setup-JFG3GZGE.mjs} +7 -7
  82. package/dist/cli/skills-FOGBZYDP.js +29 -0
  83. package/dist/cli/{skills-LWLEGYDS.mjs → skills-VIY56KK5.mjs} +5 -5
  84. package/dist/cli/{tools-M2XZNF66.mjs → tools-Y64ZTYTZ.mjs} +12 -12
  85. package/dist/cli/tools-ZN54N4NT.js +44 -0
  86. package/dist/cli/{update-EK2YNVKT.mjs → update-2RL67PK2.mjs} +7 -7
  87. package/dist/cli/update-AZCNZXXP.js +31 -0
  88. package/dist/cli/{workflow-BHDL5RHZ.js → workflow-FHKZGJGS.js} +15 -15
  89. package/dist/cli/{workflow-YFZDZT4Z.mjs → workflow-YRI7MT3F.mjs} +5 -5
  90. package/dist/{client-uX4RCcOS.d.ts → client-9nH8tx4R.d.ts} +9 -0
  91. package/dist/{client-jgdWPXpp.d.mts → client-Doml68vC.d.mts} +9 -0
  92. package/dist/index.d.mts +2 -2
  93. package/dist/index.d.ts +2 -2
  94. package/dist/index.js +6 -6
  95. package/dist/index.mjs +3 -3
  96. package/dist/install-integrity.json +82 -82
  97. package/dist/plays/play-description.d.mts +1 -1
  98. package/dist/plays/play-description.d.ts +1 -1
  99. package/dist/plays/run-request.d.mts +1 -1
  100. package/dist/plays/run-request.d.ts +1 -1
  101. package/dist/release.d.mts +1 -1
  102. package/dist/release.d.ts +1 -1
  103. package/dist/release.js +2 -2
  104. package/dist/release.mjs +1 -1
  105. package/package.json +1 -1
  106. package/dist/cli/auth-DN5GJY5Q.js +0 -40
  107. package/dist/cli/git-QHEYASI4.js +0 -24
  108. package/dist/cli/search-J6VQK6XY.js +0 -30
  109. package/dist/cli/skills-G2Y3KXA3.js +0 -29
  110. package/dist/cli/tools-6SKR5PQ4.js +0 -44
  111. package/dist/cli/update-AUB6RNSI.js +0 -31
@@ -28,7 +28,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
28
28
 
29
29
 
30
30
 
31
- var _chunkQ5LCLAY5js = require('./chunk-Q5LCLAY5.js');
31
+ var _chunkEBW6KRTGjs = require('./chunk-EBW6KRTG.js');
32
32
 
33
33
 
34
34
  var _chunkNPBJI7REjs = require('./chunk-NPBJI7RE.js');
@@ -647,7 +647,7 @@ var ToolCalls = class {
647
647
  idempotencyKey,
648
648
  onResponse: (response2) => {
649
649
  lastResponse = null;
650
- atomicToolsSupported = response2.headers.get(_chunkQ5LCLAY5js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
650
+ atomicToolsSupported = response2.headers.get(_chunkEBW6KRTGjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
651
651
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
652
652
  if (_optionalChain([options, 'optionalAccess', _29 => _29.onServerTiming])) {
653
653
  try {
@@ -997,8 +997,8 @@ function runtimeSelectionHeaders(runtime, env) {
997
997
  }
998
998
  const receivers = _optionalChain([env, 'access', _51 => _51.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]);
999
999
  return {
1000
- [_chunkQ5LCLAY5js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1001
- ...receivers ? { [_chunkQ5LCLAY5js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1000
+ [_chunkEBW6KRTGjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1001
+ ...receivers ? { [_chunkEBW6KRTGjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1002
1002
  };
1003
1003
  }
1004
1004
  function normalizeTestPolicyOverrides(value, source) {
@@ -1069,7 +1069,7 @@ var PlayClient = class {
1069
1069
  return _chunk2H4EY7KHjs.startPlayRun.call(void 0,
1070
1070
  this.http,
1071
1071
  resolved.request,
1072
- _optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkQ5LCLAY5js.SDK_API_MAJOR) } : headers,
1072
+ _optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkEBW6KRTGjs.SDK_API_MAJOR) } : headers,
1073
1073
  options
1074
1074
  );
1075
1075
  }
@@ -1135,9 +1135,9 @@ var PlayClient = class {
1135
1135
  }
1136
1136
  };
1137
1137
  function createPlayClient(options) {
1138
- const config = _chunkQ5LCLAY5js.resolveConfig.call(void 0, options);
1138
+ const config = _chunkEBW6KRTGjs.resolveConfig.call(void 0, options);
1139
1139
  return new PlayClient(
1140
- new (0, _chunkQ5LCLAY5js.HttpClient)(config),
1140
+ new (0, _chunkEBW6KRTGjs.HttpClient)(config),
1141
1141
  _nullishCoalesce(config.environment, () => ( process.env))
1142
1142
  );
1143
1143
  }
@@ -3151,7 +3151,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3151
3151
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3152
3152
  );
3153
3153
  }
3154
- return { [_chunkQ5LCLAY5js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3154
+ return { [_chunkEBW6KRTGjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3155
3155
  }
3156
3156
  function sleep(ms) {
3157
3157
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -3389,9 +3389,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
3389
3389
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3390
3390
  */
3391
3391
  constructor(options) {
3392
- this.config = _chunkQ5LCLAY5js.resolveConfig.call(void 0, options);
3392
+ this.config = _chunkEBW6KRTGjs.resolveConfig.call(void 0, options);
3393
3393
  this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
3394
- this.http = new (0, _chunkQ5LCLAY5js.HttpClient)(this.config);
3394
+ this.http = new (0, _chunkEBW6KRTGjs.HttpClient)(this.config);
3395
3395
  this.playClient = new PlayClient(this.http, this.environment);
3396
3396
  this.toolCalls = new ToolCalls(
3397
3397
  this.http,
@@ -5181,13 +5181,26 @@ var DeeplineClient = (_class = class _DeeplineClient {
5181
5181
  credentials
5182
5182
  });
5183
5183
  }
5184
+ /** Start provider OAuth and return the URL to open in a browser. */
5185
+ async startIntegrationOAuth(provider, options = {}) {
5186
+ const scopes = _optionalChain([options, 'access', _288 => _288.scopes, 'optionalAccess', _289 => _289.map, 'call', _290 => _290((scope) => scope.trim()), 'access', _291 => _291.filter, 'call', _292 => _292(Boolean)]);
5187
+ if (scopes !== void 0 && scopes.length === 0) {
5188
+ throw new Error("scopes must contain at least one OAuth scope.");
5189
+ }
5190
+ return this.http.post("/api/v2/integrations/connect", {
5191
+ provider,
5192
+ ...options.preset !== void 0 ? { preset: options.preset } : {},
5193
+ ...scopes !== void 0 ? { scopes } : {},
5194
+ ...options.optionalScopes !== void 0 ? { optional_scopes: options.optionalScopes } : {}
5195
+ });
5196
+ }
5184
5197
  /** Start the Slack OAuth flow required by product notifications. */
5185
5198
  async connectNotificationSlack(options) {
5186
5199
  return this.http.post("/api/v2/integrations/connect", {
5187
5200
  provider: "slack",
5188
5201
  scopes: [...PRODUCT_NOTIFICATION_SLACK_OAUTH_SCOPES],
5189
- ..._optionalChain([options, 'optionalAccess', _288 => _288.successUrl]) ? { success_url: options.successUrl } : {},
5190
- ..._optionalChain([options, 'optionalAccess', _289 => _289.failureUrl]) ? { failure_url: options.failureUrl } : {}
5202
+ ..._optionalChain([options, 'optionalAccess', _293 => _293.successUrl]) ? { success_url: options.successUrl } : {},
5203
+ ..._optionalChain([options, 'optionalAccess', _294 => _294.failureUrl]) ? { failure_url: options.failureUrl } : {}
5191
5204
  });
5192
5205
  }
5193
5206
  /** List Slack channels visible to the connected Deepline Slack app. */
@@ -5262,7 +5275,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5262
5275
  }
5263
5276
  const targets = input.targets.map(parseNotificationGroupTarget);
5264
5277
  const legacyEvents = _nullishCoalesce(input.legacyEvents, () => ( []));
5265
- const legacyTarget = targets.length === 1 && _optionalChain([targets, 'access', _290 => _290[0], 'optionalAccess', _291 => _291.kind]) === "slack" && legacyEvents.length > 0 ? targets[0] : null;
5278
+ const legacyTarget = targets.length === 1 && _optionalChain([targets, 'access', _295 => _295[0], 'optionalAccess', _296 => _296.kind]) === "slack" && legacyEvents.length > 0 ? targets[0] : null;
5266
5279
  if (legacyEvents.length > 0 && !legacyTarget) {
5267
5280
  throw new Error(
5268
5281
  "--for is supported only by the legacy one-Slack-target form. Create the group first, then add rules in notification configuration."
@@ -5298,7 +5311,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5298
5311
  const existingGroup = current.configuration.groups.find(
5299
5312
  (candidate) => candidate.name.toLowerCase() === name.toLowerCase()
5300
5313
  );
5301
- const groupKey = _nullishCoalesce(_optionalChain([existingGroup, 'optionalAccess', _292 => _292.groupKey]), () => ( notificationObjectKey("group")));
5314
+ const groupKey = _nullishCoalesce(_optionalChain([existingGroup, 'optionalAccess', _297 => _297.groupKey]), () => ( notificationObjectKey("group")));
5302
5315
  const group = _nullishCoalesce(existingGroup, () => ( {
5303
5316
  groupKey,
5304
5317
  name,
@@ -5522,7 +5535,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5522
5535
  /** Read one trigger inventory page without loading run histories. */
5523
5536
  async listPlayTriggerInventory(options) {
5524
5537
  const params = new URLSearchParams({ view: "inventory" });
5525
- if (_optionalChain([options, 'optionalAccess', _293 => _293.cursor])) params.set("cursor", options.cursor);
5538
+ if (_optionalChain([options, 'optionalAccess', _298 => _298.cursor])) params.set("cursor", options.cursor);
5526
5539
  return this.http.get(`/api/v2/plays/triggers?${params}`);
5527
5540
  }
5528
5541
  /** Read one trigger's recent runs, with an explicit partial-history flag. */
@@ -5531,7 +5544,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5531
5544
  view: "history",
5532
5545
  binding_id: bindingId
5533
5546
  });
5534
- if (_optionalChain([options, 'optionalAccess', _294 => _294.limit]) !== void 0)
5547
+ if (_optionalChain([options, 'optionalAccess', _299 => _299.limit]) !== void 0)
5535
5548
  params.set("history_limit", String(options.limit));
5536
5549
  return this.http.get(`/api/v2/plays/triggers?${params}`);
5537
5550
  }
@@ -5719,14 +5732,14 @@ var DeeplineClient = (_class = class _DeeplineClient {
5719
5732
  */
5720
5733
  async runPlay(code, csvPath, name, options) {
5721
5734
  const { workflowId } = await this.submitPlay(code, csvPath, name, {
5722
- input: _optionalChain([options, 'optionalAccess', _295 => _295.input]),
5723
- sourceCode: _optionalChain([options, 'optionalAccess', _296 => _296.sourceCode]),
5724
- artifact: _optionalChain([options, 'optionalAccess', _297 => _297.artifact]),
5725
- compilerManifest: _optionalChain([options, 'optionalAccess', _298 => _298.compilerManifest]),
5726
- inputFile: _optionalChain([options, 'optionalAccess', _299 => _299.inputFile]),
5727
- packagedFiles: _optionalChain([options, 'optionalAccess', _300 => _300.packagedFiles]),
5728
- force: _optionalChain([options, 'optionalAccess', _301 => _301.force]),
5729
- forceToolRefresh: _optionalChain([options, 'optionalAccess', _302 => _302.forceToolRefresh])
5735
+ input: _optionalChain([options, 'optionalAccess', _300 => _300.input]),
5736
+ sourceCode: _optionalChain([options, 'optionalAccess', _301 => _301.sourceCode]),
5737
+ artifact: _optionalChain([options, 'optionalAccess', _302 => _302.artifact]),
5738
+ compilerManifest: _optionalChain([options, 'optionalAccess', _303 => _303.compilerManifest]),
5739
+ inputFile: _optionalChain([options, 'optionalAccess', _304 => _304.inputFile]),
5740
+ packagedFiles: _optionalChain([options, 'optionalAccess', _305 => _305.packagedFiles]),
5741
+ force: _optionalChain([options, 'optionalAccess', _306 => _306.force]),
5742
+ forceToolRefresh: _optionalChain([options, 'optionalAccess', _307 => _307.forceToolRefresh])
5730
5743
  });
5731
5744
  const start = Date.now();
5732
5745
  const state = {
@@ -5737,7 +5750,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5737
5750
  latest: null
5738
5751
  };
5739
5752
  let terminalObserved = null;
5740
- if (_optionalChain([options, 'optionalAccess', _303 => _303.signal, 'optionalAccess', _304 => _304.aborted])) {
5753
+ if (_optionalChain([options, 'optionalAccess', _308 => _308.signal, 'optionalAccess', _309 => _309.aborted])) {
5741
5754
  await this.cancelPlay(workflowId);
5742
5755
  return {
5743
5756
  success: false,
@@ -5748,9 +5761,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
5748
5761
  };
5749
5762
  }
5750
5763
  for await (const event of this.watchRunEvents(workflowId, {
5751
- signal: _optionalChain([options, 'optionalAccess', _305 => _305.signal])
5764
+ signal: _optionalChain([options, 'optionalAccess', _310 => _310.signal])
5752
5765
  })) {
5753
- if (_optionalChain([options, 'optionalAccess', _306 => _306.signal, 'optionalAccess', _307 => _307.aborted])) {
5766
+ if (_optionalChain([options, 'optionalAccess', _311 => _311.signal, 'optionalAccess', _312 => _312.aborted])) {
5754
5767
  await this.cancelPlay(workflowId);
5755
5768
  return {
5756
5769
  success: false,
@@ -5760,19 +5773,19 @@ var DeeplineClient = (_class = class _DeeplineClient {
5760
5773
  error: "Cancelled by user"
5761
5774
  };
5762
5775
  }
5763
- const previousStatus = _optionalChain([state, 'access', _308 => _308.latest, 'optionalAccess', _309 => _309.status]);
5776
+ const previousStatus = _optionalChain([state, 'access', _313 => _313.latest, 'optionalAccess', _314 => _314.status]);
5764
5777
  const status = updatePlayLiveStatusState(state, event);
5765
5778
  if (!status) {
5766
5779
  continue;
5767
5780
  }
5768
5781
  if (event.type !== "play.run.status" || status.status !== previousStatus) {
5769
- _optionalChain([options, 'optionalAccess', _310 => _310.onProgress, 'optionalCall', _311 => _311(status)]);
5782
+ _optionalChain([options, 'optionalAccess', _315 => _315.onProgress, 'optionalCall', _316 => _316(status)]);
5770
5783
  }
5771
5784
  if (_chunk2H4EY7KHjs.isTerminalPlayRunLifecycleStatus.call(void 0, status.status)) {
5772
5785
  terminalObserved = status;
5773
5786
  }
5774
5787
  }
5775
- if (_optionalChain([options, 'optionalAccess', _312 => _312.signal, 'optionalAccess', _313 => _313.aborted])) {
5788
+ if (_optionalChain([options, 'optionalAccess', _317 => _317.signal, 'optionalAccess', _318 => _318.aborted])) {
5776
5789
  await this.cancelPlay(workflowId);
5777
5790
  return {
5778
5791
  success: false,
@@ -5825,7 +5838,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5825
5838
  const response = await this.http.get(
5826
5839
  `/api/v2/usage/events?request_id=${encodeURIComponent(normalizedRequestId)}`
5827
5840
  );
5828
- const event = _optionalChain([response, 'access', _314 => _314.entries, 'optionalAccess', _315 => _315[0]]);
5841
+ const event = _optionalChain([response, 'access', _319 => _319.entries, 'optionalAccess', _320 => _320[0]]);
5829
5842
  if (!event) {
5830
5843
  throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
5831
5844
  "No usage event was found for this request_id.",
@@ -5956,7 +5969,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5956
5969
  async cancelBillingSubscription(options) {
5957
5970
  return this.http.post(
5958
5971
  "/api/v2/billing/subscription/cancel",
5959
- { action: _optionalChain([options, 'optionalAccess', _316 => _316.undo]) ? "undo_cancel" : "cancel" }
5972
+ { action: _optionalChain([options, 'optionalAccess', _321 => _321.undo]) ? "undo_cancel" : "cancel" }
5960
5973
  );
5961
5974
  }
5962
5975
  /**
@@ -5968,7 +5981,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
5968
5981
  */
5969
5982
  async listBillingInvoices(options) {
5970
5983
  const params = new URLSearchParams();
5971
- if (_optionalChain([options, 'optionalAccess', _317 => _317.limit]) !== void 0) {
5984
+ if (_optionalChain([options, 'optionalAccess', _322 => _322.limit]) !== void 0) {
5972
5985
  params.set("limit", String(options.limit));
5973
5986
  }
5974
5987
  const suffix = Array.from(params).length > 0 ? `?${params.toString()}` : "";
@@ -6078,7 +6091,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6078
6091
  /** Create a Stripe-hosted portal session for payment recovery and invoices. */
6079
6092
  async createTargetBillingPortalSession(options) {
6080
6093
  const response = await this.http.post(
6081
- _optionalChain([options, 'optionalAccess', _318 => _318.flow]) === "customer_update" ? "/api/v2/billing/portal-sessions?flow=customer_update" : "/api/v2/billing/portal-sessions",
6094
+ _optionalChain([options, 'optionalAccess', _323 => _323.flow]) === "customer_update" ? "/api/v2/billing/portal-sessions?flow=customer_update" : "/api/v2/billing/portal-sessions",
6082
6095
  {}
6083
6096
  );
6084
6097
  return response.data;
@@ -6128,8 +6141,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
6128
6141
  return this.http.request("/api/v2/monitors/audit", {
6129
6142
  method: "POST",
6130
6143
  body: {
6131
- ..._optionalChain([options, 'optionalAccess', _319 => _319.fleetId]) ? { fleet_id: options.fleetId } : {},
6132
- ..._optionalChain([options, 'optionalAccess', _320 => _320.cursor]) ? { cursor: options.cursor } : {}
6144
+ ..._optionalChain([options, 'optionalAccess', _324 => _324.fleetId]) ? { fleet_id: options.fleetId } : {},
6145
+ ..._optionalChain([options, 'optionalAccess', _325 => _325.cursor]) ? { cursor: options.cursor } : {}
6133
6146
  },
6134
6147
  maxRetries: 0
6135
6148
  });
@@ -6139,8 +6152,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
6139
6152
  return this.http.request("/api/v2/monitors/repair", {
6140
6153
  method: "POST",
6141
6154
  body: {
6142
- ..._optionalChain([options, 'optionalAccess', _321 => _321.fleetId]) ? { fleet_id: options.fleetId } : {},
6143
- ..._optionalChain([options, 'optionalAccess', _322 => _322.dryRun]) === void 0 ? {} : { dry_run: options.dryRun }
6155
+ ..._optionalChain([options, 'optionalAccess', _326 => _326.fleetId]) ? { fleet_id: options.fleetId } : {},
6156
+ ..._optionalChain([options, 'optionalAccess', _327 => _327.dryRun]) === void 0 ? {} : { dry_run: options.dryRun }
6144
6157
  },
6145
6158
  maxRetries: 0
6146
6159
  });
@@ -6148,7 +6161,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6148
6161
  /** Delivery and convergence health. Prefer `client.monitors.health(...)`. */
6149
6162
  async readMonitorsHealth(options) {
6150
6163
  const params = new URLSearchParams();
6151
- if (_optionalChain([options, 'optionalAccess', _323 => _323.fleetId])) params.set("fleet_id", options.fleetId);
6164
+ if (_optionalChain([options, 'optionalAccess', _328 => _328.fleetId])) params.set("fleet_id", options.fleetId);
6152
6165
  const query = params.toString();
6153
6166
  const suffix = query ? `?${query}` : "";
6154
6167
  return this.http.request(
@@ -6221,7 +6234,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6221
6234
  );
6222
6235
  }
6223
6236
  const params = new URLSearchParams();
6224
- if (_optionalChain([options, 'optionalAccess', _324 => _324.cursor])) params.set("cursor", options.cursor);
6237
+ if (_optionalChain([options, 'optionalAccess', _329 => _329.cursor])) params.set("cursor", options.cursor);
6225
6238
  const suffix = params.size > 0 ? `?${params}` : "";
6226
6239
  return this.http.request(
6227
6240
  `/api/v2/monitors/batch/${encodeURIComponent(runId)}${suffix}`,
@@ -6265,7 +6278,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6265
6278
  * `client.monitors.deploy(...)`.
6266
6279
  */
6267
6280
  async deployMonitor(definition, options) {
6268
- if (_optionalChain([options, 'optionalAccess', _325 => _325.dryRun])) {
6281
+ if (_optionalChain([options, 'optionalAccess', _330 => _330.dryRun])) {
6269
6282
  return this.http.request("/api/v2/monitors/check", {
6270
6283
  method: "POST",
6271
6284
  body: definition
@@ -6301,12 +6314,12 @@ var DeeplineClient = (_class = class _DeeplineClient {
6301
6314
  /** List deployed monitors. Prefer `client.monitors.list(...)`. */
6302
6315
  async listMonitors(options) {
6303
6316
  const params = new URLSearchParams();
6304
- if (_optionalChain([options, 'optionalAccess', _326 => _326.state])) params.set("state", options.state);
6305
- else if (_optionalChain([options, 'optionalAccess', _327 => _327.status])) params.set("status", options.status);
6306
- if (_optionalChain([options, 'optionalAccess', _328 => _328.limit]) !== void 0)
6317
+ if (_optionalChain([options, 'optionalAccess', _331 => _331.state])) params.set("state", options.state);
6318
+ else if (_optionalChain([options, 'optionalAccess', _332 => _332.status])) params.set("status", options.status);
6319
+ if (_optionalChain([options, 'optionalAccess', _333 => _333.limit]) !== void 0)
6307
6320
  params.set("limit", String(options.limit));
6308
- if (_optionalChain([options, 'optionalAccess', _329 => _329.cursor])) params.set("cursor", options.cursor);
6309
- if (_optionalChain([options, 'optionalAccess', _330 => _330.includeConsumers])) params.set("include_consumers", "true");
6321
+ if (_optionalChain([options, 'optionalAccess', _334 => _334.cursor])) params.set("cursor", options.cursor);
6322
+ if (_optionalChain([options, 'optionalAccess', _335 => _335.includeConsumers])) params.set("include_consumers", "true");
6310
6323
  const query = params.toString();
6311
6324
  const suffix = query ? `?${query}` : "";
6312
6325
  return this.http.request(
@@ -6322,7 +6335,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6322
6335
  );
6323
6336
  }
6324
6337
  async testMonitorWebhook(key, payload, options) {
6325
- if (_optionalChain([options, 'optionalAccess', _331 => _331.dispatch]) === true || _optionalChain([options, 'optionalAccess', _332 => _332.validationOnly]) === false) {
6338
+ if (_optionalChain([options, 'optionalAccess', _336 => _336.dispatch]) === true || _optionalChain([options, 'optionalAccess', _337 => _337.validationOnly]) === false) {
6326
6339
  throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
6327
6340
  "Monitor tests are validation-only and cannot dispatch events.",
6328
6341
  void 0,
@@ -6377,7 +6390,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6377
6390
  }
6378
6391
  /** Delete a deployed monitor and its upstream provider resource. `dryRun` returns the delete plan. Prefer `client.monitors.delete(...)`. */
6379
6392
  async deleteMonitor(key, options) {
6380
- if (_optionalChain([options, 'optionalAccess', _333 => _333.localOnly]) === true) {
6393
+ if (_optionalChain([options, 'optionalAccess', _338 => _338.localOnly]) === true) {
6381
6394
  throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
6382
6395
  "localOnly monitor deletion is no longer supported. Monitor deletion always deprovisions the upstream provider resource.",
6383
6396
  void 0,
@@ -6385,11 +6398,11 @@ var DeeplineClient = (_class = class _DeeplineClient {
6385
6398
  );
6386
6399
  }
6387
6400
  const params = new URLSearchParams();
6388
- if (_optionalChain([options, 'optionalAccess', _334 => _334.dryRun])) params.set("dry_run", "true");
6401
+ if (_optionalChain([options, 'optionalAccess', _339 => _339.dryRun])) params.set("dry_run", "true");
6389
6402
  const query = params.toString();
6390
6403
  return this.http.request(
6391
6404
  `/api/v2/monitors/deployed/${encodeURIComponent(key)}${query ? `?${query}` : ""}`,
6392
- _optionalChain([options, 'optionalAccess', _335 => _335.dryRun]) ? { method: "DELETE" } : {
6405
+ _optionalChain([options, 'optionalAccess', _340 => _340.dryRun]) ? { method: "DELETE" } : {
6393
6406
  method: "DELETE",
6394
6407
  // Deletion is a provider lifecycle operation. A timeout is an
6395
6408
  // unknown outcome, not authority to begin another delete attempt.
@@ -6402,10 +6415,10 @@ var DeeplineClient = (_class = class _DeeplineClient {
6402
6415
  * Prefer `client.monitors.reactivate(...)`.
6403
6416
  */
6404
6417
  async reactivateMonitor(key, options) {
6405
- const query = _optionalChain([options, 'optionalAccess', _336 => _336.dryRun]) ? "?dry_run=true" : "";
6418
+ const query = _optionalChain([options, 'optionalAccess', _341 => _341.dryRun]) ? "?dry_run=true" : "";
6406
6419
  return this.http.request(
6407
6420
  `/api/v2/monitors/deployed/${encodeURIComponent(key)}/reactivate${query}`,
6408
- _optionalChain([options, 'optionalAccess', _337 => _337.dryRun]) ? { method: "POST", body: {} } : {
6421
+ _optionalChain([options, 'optionalAccess', _342 => _342.dryRun]) ? { method: "POST", body: {} } : {
6409
6422
  method: "POST",
6410
6423
  body: {},
6411
6424
  // Reactivation can create an upstream resource, so it must not use
@@ -6419,7 +6432,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6419
6432
  // ——————————————————————————————————————————————————————————
6420
6433
  static __initStatic() {this.MONITOR_JOB_IDEMPOTENCY_KEY_MAX_LENGTH = 96}
6421
6434
  monitorJobIdempotencyKey(operation) {
6422
- const uuid = _nullishCoalesce(_optionalChain([globalThis, 'access', _338 => _338.crypto, 'optionalAccess', _339 => _339.randomUUID, 'optionalCall', _340 => _340()]), () => ( `${Date.now()}-${Math.random().toString(36).slice(2)}`));
6435
+ const uuid = _nullishCoalesce(_optionalChain([globalThis, 'access', _343 => _343.crypto, 'optionalAccess', _344 => _344.randomUUID, 'optionalCall', _345 => _345()]), () => ( `${Date.now()}-${Math.random().toString(36).slice(2)}`));
6423
6436
  const prefix = "monitor-job-";
6424
6437
  const safeOperation = operation.replace(/[^A-Za-z0-9._-]/g, "-");
6425
6438
  const maxOperationLength = Math.max(
@@ -6430,7 +6443,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6430
6443
  }
6431
6444
  monitorJobHeaders(operation, idempotencyKey) {
6432
6445
  return {
6433
- "Idempotency-Key": _optionalChain([idempotencyKey, 'optionalAccess', _341 => _341.trim, 'call', _342 => _342()]) || this.monitorJobIdempotencyKey(operation)
6446
+ "Idempotency-Key": _optionalChain([idempotencyKey, 'optionalAccess', _346 => _346.trim, 'call', _347 => _347()]) || this.monitorJobIdempotencyKey(operation)
6434
6447
  };
6435
6448
  }
6436
6449
  async deployMonitorBatch(definitions, options) {
@@ -6441,7 +6454,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6441
6454
  body: { version: 1, kind: "batch", monitors: definitions },
6442
6455
  headers: this.monitorJobHeaders(
6443
6456
  "batch-deploy",
6444
- _optionalChain([options, 'optionalAccess', _343 => _343.idempotencyKey])
6457
+ _optionalChain([options, 'optionalAccess', _348 => _348.idempotencyKey])
6445
6458
  ),
6446
6459
  maxRetries: 0,
6447
6460
  exactUrlOnly: true
@@ -6460,11 +6473,11 @@ var DeeplineClient = (_class = class _DeeplineClient {
6460
6473
  version: 1,
6461
6474
  kind: "batch",
6462
6475
  monitors: definitions,
6463
- ..._optionalChain([options, 'optionalAccess', _344 => _344.expectedGeneration]) === void 0 ? {} : { expected_generation: options.expectedGeneration }
6476
+ ..._optionalChain([options, 'optionalAccess', _349 => _349.expectedGeneration]) === void 0 ? {} : { expected_generation: options.expectedGeneration }
6464
6477
  },
6465
6478
  headers: this.monitorJobHeaders(
6466
6479
  `batch-sync-${batchId}`,
6467
- _optionalChain([options, 'optionalAccess', _345 => _345.idempotencyKey])
6480
+ _optionalChain([options, 'optionalAccess', _350 => _350.idempotencyKey])
6468
6481
  ),
6469
6482
  maxRetries: 0,
6470
6483
  exactUrlOnly: true
@@ -6479,7 +6492,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6479
6492
  body: {},
6480
6493
  headers: this.monitorJobHeaders(
6481
6494
  `batch-start-${batchId}`,
6482
- _optionalChain([options, 'optionalAccess', _346 => _346.idempotencyKey])
6495
+ _optionalChain([options, 'optionalAccess', _351 => _351.idempotencyKey])
6483
6496
  ),
6484
6497
  maxRetries: 0,
6485
6498
  exactUrlOnly: true
@@ -6494,7 +6507,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6494
6507
  body: {},
6495
6508
  headers: this.monitorJobHeaders(
6496
6509
  `batch-stop-${batchId}`,
6497
- _optionalChain([options, 'optionalAccess', _347 => _347.idempotencyKey])
6510
+ _optionalChain([options, 'optionalAccess', _352 => _352.idempotencyKey])
6498
6511
  ),
6499
6512
  maxRetries: 0,
6500
6513
  exactUrlOnly: true
@@ -6515,7 +6528,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6515
6528
  body: {},
6516
6529
  headers: this.monitorJobHeaders(
6517
6530
  `${action}-${monitorKey}`,
6518
- _optionalChain([options, 'optionalAccess', _348 => _348.idempotencyKey])
6531
+ _optionalChain([options, 'optionalAccess', _353 => _353.idempotencyKey])
6519
6532
  ),
6520
6533
  maxRetries: 0,
6521
6534
  exactUrlOnly: true
@@ -6528,7 +6541,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6528
6541
  body: definition,
6529
6542
  headers: this.monitorJobHeaders(
6530
6543
  `sync-${definition.key}`,
6531
- _optionalChain([options, 'optionalAccess', _349 => _349.idempotencyKey])
6544
+ _optionalChain([options, 'optionalAccess', _354 => _354.idempotencyKey])
6532
6545
  ),
6533
6546
  maxRetries: 0,
6534
6547
  exactUrlOnly: true
@@ -6541,7 +6554,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6541
6554
  );
6542
6555
  }
6543
6556
  async getMonitorJobLogs(jobId, options) {
6544
- const query = _optionalChain([options, 'optionalAccess', _350 => _350.limit]) === void 0 ? "" : `?limit=${encodeURIComponent(String(options.limit))}`;
6557
+ const query = _optionalChain([options, 'optionalAccess', _355 => _355.limit]) === void 0 ? "" : `?limit=${encodeURIComponent(String(options.limit))}`;
6545
6558
  return this.http.request(
6546
6559
  `/api/v2/monitors/jobs/${encodeURIComponent(jobId)}/logs${query}`,
6547
6560
  { method: "GET" }
@@ -6554,15 +6567,15 @@ var DeeplineClient = (_class = class _DeeplineClient {
6554
6567
  );
6555
6568
  }
6556
6569
  async waitForMonitorJob(jobId, options) {
6557
- const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _351 => _351.timeoutMs]), () => ( 10 * 6e4)));
6558
- const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _352 => _352.pollIntervalMs]), () => ( 2e3)));
6570
+ const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _356 => _356.timeoutMs]), () => ( 10 * 6e4)));
6571
+ const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _357 => _357.pollIntervalMs]), () => ( 2e3)));
6559
6572
  const terminal = /* @__PURE__ */ new Set(["succeeded", "failed", "cancelled"]);
6560
6573
  const startedAt = Date.now();
6561
6574
  let latest = await this.getMonitorJob(jobId);
6562
6575
  while (true) {
6563
- _optionalChain([options, 'optionalAccess', _353 => _353.onProgress, 'optionalCall', _354 => _354(latest)]);
6576
+ _optionalChain([options, 'optionalAccess', _358 => _358.onProgress, 'optionalCall', _359 => _359(latest)]);
6564
6577
  const job = latest.job;
6565
- const state = typeof _optionalChain([job, 'optionalAccess', _355 => _355.state]) === "string" ? job.state : void 0;
6578
+ const state = typeof _optionalChain([job, 'optionalAccess', _360 => _360.state]) === "string" ? job.state : void 0;
6566
6579
  if (state && terminal.has(state)) return latest;
6567
6580
  if (Date.now() - startedAt >= timeoutMs) return latest;
6568
6581
  await sleep(pollIntervalMs);
@@ -6573,12 +6586,12 @@ var DeeplineClient = (_class = class _DeeplineClient {
6573
6586
  // Monitor Fleets
6574
6587
  // ——————————————————————————————————————————————————————————
6575
6588
  monitorFleetIdempotencyKey(operation) {
6576
- const uuid = _optionalChain([globalThis, 'access', _356 => _356.crypto, 'optionalAccess', _357 => _357.randomUUID, 'optionalCall', _358 => _358()]);
6589
+ const uuid = _optionalChain([globalThis, 'access', _361 => _361.crypto, 'optionalAccess', _362 => _362.randomUUID, 'optionalCall', _363 => _363()]);
6577
6590
  return `monitor-fleet-${operation}-${_nullishCoalesce(uuid, () => ( `${Date.now()}-${Math.random().toString(36).slice(2)}`))}`;
6578
6591
  }
6579
6592
  monitorFleetHeaders(operation, idempotencyKey) {
6580
6593
  return {
6581
- "Idempotency-Key": _optionalChain([idempotencyKey, 'optionalAccess', _359 => _359.trim, 'call', _360 => _360()]) || this.monitorFleetIdempotencyKey(operation)
6594
+ "Idempotency-Key": _optionalChain([idempotencyKey, 'optionalAccess', _364 => _364.trim, 'call', _365 => _365()]) || this.monitorFleetIdempotencyKey(operation)
6582
6595
  };
6583
6596
  }
6584
6597
  monitorFleetPath(fleetId) {
@@ -6598,15 +6611,15 @@ var DeeplineClient = (_class = class _DeeplineClient {
6598
6611
  const fleetId = typeof definitionOrId === "string" ? definitionOrId : definitionOrId.id;
6599
6612
  const body = {
6600
6613
  ...typeof definitionOrId === "string" ? {} : { definition: definitionOrId },
6601
- ..._optionalChain([options, 'optionalAccess', _361 => _361.dryRun]) ? { dry_run: true } : {},
6602
- ..._optionalChain([options, 'optionalAccess', _362 => _362.expectedGeneration]) !== void 0 ? { expected_generation: options.expectedGeneration } : {}
6614
+ ..._optionalChain([options, 'optionalAccess', _366 => _366.dryRun]) ? { dry_run: true } : {},
6615
+ ..._optionalChain([options, 'optionalAccess', _367 => _367.expectedGeneration]) !== void 0 ? { expected_generation: options.expectedGeneration } : {}
6603
6616
  };
6604
6617
  return this.http.request(
6605
6618
  this.monitorFleetPath(fleetId),
6606
6619
  {
6607
6620
  method: "PUT",
6608
6621
  body,
6609
- headers: this.monitorFleetHeaders("sync", _optionalChain([options, 'optionalAccess', _363 => _363.idempotencyKey])),
6622
+ headers: this.monitorFleetHeaders("sync", _optionalChain([options, 'optionalAccess', _368 => _368.idempotencyKey])),
6610
6623
  maxRetries: 0,
6611
6624
  exactUrlOnly: true
6612
6625
  }
@@ -6619,8 +6632,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
6619
6632
  }
6620
6633
  async getMonitorFleet(fleetId, options) {
6621
6634
  const params = new URLSearchParams();
6622
- if (_optionalChain([options, 'optionalAccess', _364 => _364.drift])) params.set("drift", "1");
6623
- if (_optionalChain([options, 'optionalAccess', _365 => _365.limit]) !== void 0)
6635
+ if (_optionalChain([options, 'optionalAccess', _369 => _369.drift])) params.set("drift", "1");
6636
+ if (_optionalChain([options, 'optionalAccess', _370 => _370.limit]) !== void 0)
6624
6637
  params.set("limit", String(options.limit));
6625
6638
  const query = params.toString();
6626
6639
  return this.http.request(
@@ -6633,10 +6646,10 @@ var DeeplineClient = (_class = class _DeeplineClient {
6633
6646
  this.monitorFleetPath(fleetId),
6634
6647
  {
6635
6648
  method: "DELETE",
6636
- body: _optionalChain([options, 'optionalAccess', _366 => _366.dryRun]) ? { dry_run: true } : {},
6649
+ body: _optionalChain([options, 'optionalAccess', _371 => _371.dryRun]) ? { dry_run: true } : {},
6637
6650
  headers: this.monitorFleetHeaders(
6638
6651
  "deactivate",
6639
- _optionalChain([options, 'optionalAccess', _367 => _367.idempotencyKey])
6652
+ _optionalChain([options, 'optionalAccess', _372 => _372.idempotencyKey])
6640
6653
  ),
6641
6654
  maxRetries: 0,
6642
6655
  exactUrlOnly: true
@@ -6651,7 +6664,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
6651
6664
  body: {},
6652
6665
  headers: this.monitorFleetHeaders(
6653
6666
  "reactivate",
6654
- _optionalChain([options, 'optionalAccess', _368 => _368.idempotencyKey])
6667
+ _optionalChain([options, 'optionalAccess', _373 => _373.idempotencyKey])
6655
6668
  ),
6656
6669
  maxRetries: 0,
6657
6670
  exactUrlOnly: true
@@ -6668,13 +6681,13 @@ var DeeplineClient = (_class = class _DeeplineClient {
6668
6681
  * identical to "the request failed".
6669
6682
  */
6670
6683
  async waitForMonitorFleetConvergence(fleetId, options) {
6671
- const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _369 => _369.timeoutMs]), () => ( 10 * 6e4)));
6672
- const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _370 => _370.pollIntervalMs]), () => ( 2e3)));
6673
- const terminal = _optionalChain([options, 'optionalAccess', _371 => _371.until]) === "deactivated" ? /* @__PURE__ */ new Set(["deactivated", "degraded"]) : /* @__PURE__ */ new Set(["converged", "degraded", "deactivated"]);
6684
+ const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _374 => _374.timeoutMs]), () => ( 10 * 6e4)));
6685
+ const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _375 => _375.pollIntervalMs]), () => ( 2e3)));
6686
+ const terminal = _optionalChain([options, 'optionalAccess', _376 => _376.until]) === "deactivated" ? /* @__PURE__ */ new Set(["deactivated", "degraded"]) : /* @__PURE__ */ new Set(["converged", "degraded", "deactivated"]);
6674
6687
  const startedAt = Date.now();
6675
6688
  let latest = await this.getMonitorFleet(fleetId);
6676
6689
  while (true) {
6677
- _optionalChain([options, 'optionalAccess', _372 => _372.onProgress, 'optionalCall', _373 => _373(latest)]);
6690
+ _optionalChain([options, 'optionalAccess', _377 => _377.onProgress, 'optionalCall', _378 => _378(latest)]);
6678
6691
  const status = typeof latest.status === "string" ? latest.status : void 0;
6679
6692
  if (status && terminal.has(status)) return latest;
6680
6693
  if (Date.now() - startedAt >= timeoutMs) return latest;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-JJ7SVPMN.mjs";
3
+ } from "./chunk-E6ESUF5C.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-UNX3UQFJ.mjs";
8
+ } from "./chunk-RIJ4VTYJ.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {