@absolutejs/voice 0.0.22-beta.388 → 0.0.22-beta.389

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.
@@ -6557,6 +6557,7 @@ var runVoiceRealCallProfileRecoveryLoop = async (options) => {
6557
6557
  const requestTimeoutMs = options.requestTimeoutMs ?? 5000;
6558
6558
  const jobPollMs = options.jobPollMs ?? 1200;
6559
6559
  const jobTimeoutMs = options.jobTimeoutMs ?? 600000;
6560
+ const interPassDelayMs = typeof options.interPassDelayMs === "number" && Number.isFinite(options.interPassDelayMs) && options.interPassDelayMs > 0 ? options.interPassDelayMs : 5000;
6560
6561
  const maxPasses = typeof options.maxPasses === "number" && Number.isFinite(options.maxPasses) && options.maxPasses > 0 ? Math.floor(options.maxPasses) : 3;
6561
6562
  const readinessCheckLabel = options.readinessCheckLabel ?? "Real-call profile history";
6562
6563
  const fetchImpl = options.fetch ?? fetch;
@@ -6668,6 +6669,10 @@ var runVoiceRealCallProfileRecoveryLoop = async (options) => {
6668
6669
  if (realCallProfileGate?.status === "pass") {
6669
6670
  break;
6670
6671
  }
6672
+ if (pass < maxPasses) {
6673
+ options.logger?.log(`Waiting ${String(interPassDelayMs)}ms before the next real-call profile recovery pass.`);
6674
+ await sleepVoiceRealCallProfileRecoveryLoop(interPassDelayMs);
6675
+ }
6671
6676
  }
6672
6677
  return {
6673
6678
  actionCount: actions.length * passes,
package/dist/index.js CHANGED
@@ -17076,6 +17076,7 @@ var runVoiceRealCallProfileRecoveryLoop = async (options) => {
17076
17076
  const requestTimeoutMs = options.requestTimeoutMs ?? 5000;
17077
17077
  const jobPollMs = options.jobPollMs ?? 1200;
17078
17078
  const jobTimeoutMs = options.jobTimeoutMs ?? 600000;
17079
+ const interPassDelayMs = typeof options.interPassDelayMs === "number" && Number.isFinite(options.interPassDelayMs) && options.interPassDelayMs > 0 ? options.interPassDelayMs : 5000;
17079
17080
  const maxPasses = typeof options.maxPasses === "number" && Number.isFinite(options.maxPasses) && options.maxPasses > 0 ? Math.floor(options.maxPasses) : 3;
17080
17081
  const readinessCheckLabel = options.readinessCheckLabel ?? "Real-call profile history";
17081
17082
  const fetchImpl = options.fetch ?? fetch;
@@ -17187,6 +17188,10 @@ var runVoiceRealCallProfileRecoveryLoop = async (options) => {
17187
17188
  if (realCallProfileGate?.status === "pass") {
17188
17189
  break;
17189
17190
  }
17191
+ if (pass < maxPasses) {
17192
+ options.logger?.log(`Waiting ${String(interPassDelayMs)}ms before the next real-call profile recovery pass.`);
17193
+ await sleepVoiceRealCallProfileRecoveryLoop(interPassDelayMs);
17194
+ }
17190
17195
  }
17191
17196
  return {
17192
17197
  actionCount: actions.length * passes,
@@ -501,6 +501,7 @@ export type VoiceRealCallProfileRecoveryLoopOptions = {
501
501
  actionFilter?: (action: VoiceRealCallProfileRecoveryLoopAction) => boolean;
502
502
  baseUrl: string;
503
503
  fetch?: typeof fetch;
504
+ interPassDelayMs?: number;
504
505
  jobHref?: string | ((jobId: string) => string);
505
506
  jobPollMs?: number;
506
507
  jobTimeoutMs?: number;
@@ -4144,6 +4144,7 @@ var runVoiceRealCallProfileRecoveryLoop = async (options) => {
4144
4144
  const requestTimeoutMs = options.requestTimeoutMs ?? 5000;
4145
4145
  const jobPollMs = options.jobPollMs ?? 1200;
4146
4146
  const jobTimeoutMs = options.jobTimeoutMs ?? 600000;
4147
+ const interPassDelayMs = typeof options.interPassDelayMs === "number" && Number.isFinite(options.interPassDelayMs) && options.interPassDelayMs > 0 ? options.interPassDelayMs : 5000;
4147
4148
  const maxPasses = typeof options.maxPasses === "number" && Number.isFinite(options.maxPasses) && options.maxPasses > 0 ? Math.floor(options.maxPasses) : 3;
4148
4149
  const readinessCheckLabel = options.readinessCheckLabel ?? "Real-call profile history";
4149
4150
  const fetchImpl = options.fetch ?? fetch;
@@ -4255,6 +4256,10 @@ var runVoiceRealCallProfileRecoveryLoop = async (options) => {
4255
4256
  if (realCallProfileGate?.status === "pass") {
4256
4257
  break;
4257
4258
  }
4259
+ if (pass < maxPasses) {
4260
+ options.logger?.log(`Waiting ${String(interPassDelayMs)}ms before the next real-call profile recovery pass.`);
4261
+ await sleepVoiceRealCallProfileRecoveryLoop(interPassDelayMs);
4262
+ }
4258
4263
  }
4259
4264
  return {
4260
4265
  actionCount: actions.length * passes,
package/dist/vue/index.js CHANGED
@@ -4065,6 +4065,7 @@ var runVoiceRealCallProfileRecoveryLoop = async (options) => {
4065
4065
  const requestTimeoutMs = options.requestTimeoutMs ?? 5000;
4066
4066
  const jobPollMs = options.jobPollMs ?? 1200;
4067
4067
  const jobTimeoutMs = options.jobTimeoutMs ?? 600000;
4068
+ const interPassDelayMs = typeof options.interPassDelayMs === "number" && Number.isFinite(options.interPassDelayMs) && options.interPassDelayMs > 0 ? options.interPassDelayMs : 5000;
4068
4069
  const maxPasses = typeof options.maxPasses === "number" && Number.isFinite(options.maxPasses) && options.maxPasses > 0 ? Math.floor(options.maxPasses) : 3;
4069
4070
  const readinessCheckLabel = options.readinessCheckLabel ?? "Real-call profile history";
4070
4071
  const fetchImpl = options.fetch ?? fetch;
@@ -4176,6 +4177,10 @@ var runVoiceRealCallProfileRecoveryLoop = async (options) => {
4176
4177
  if (realCallProfileGate?.status === "pass") {
4177
4178
  break;
4178
4179
  }
4180
+ if (pass < maxPasses) {
4181
+ options.logger?.log(`Waiting ${String(interPassDelayMs)}ms before the next real-call profile recovery pass.`);
4182
+ await sleepVoiceRealCallProfileRecoveryLoop(interPassDelayMs);
4183
+ }
4179
4184
  }
4180
4185
  return {
4181
4186
  actionCount: actions.length * passes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.388",
3
+ "version": "0.0.22-beta.389",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",