@absolutejs/voice 0.0.22-beta.380 → 0.0.22-beta.381
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.
- package/dist/client/index.js +15 -1
- package/dist/index.js +15 -1
- package/dist/react/index.js +15 -1
- package/dist/vue/index.js +15 -1
- package/package.json +1 -1
package/dist/client/index.js
CHANGED
|
@@ -4696,8 +4696,22 @@ var buildVoiceRealCallProfileRecoveryActions = (report, options = {}) => {
|
|
|
4696
4696
|
const missingProfiles = [...requiredProfiles].filter((profileId) => !profilesById.has(profileId));
|
|
4697
4697
|
const warningProfiles = report.defaults.profiles.filter((profile) => (requiredProfiles.size === 0 || requiredProfiles.has(profile.profileId)) && profile.status !== "pass");
|
|
4698
4698
|
const missingRoleProfiles = report.defaults.profiles.filter((profile) => (options.requiredProviderRoles ?? []).some((role) => !profile.providerRoutes[role]));
|
|
4699
|
+
const summariesByProfile = new Map((report.summary.profiles ?? []).map((profile) => [profile.id, profile]));
|
|
4700
|
+
const missingDepthProfiles = [...requiredProfiles].filter((profileId) => {
|
|
4701
|
+
const summaryProfile = summariesByProfile.get(profileId);
|
|
4702
|
+
if (options.minProfileCycles !== undefined && (summaryProfile?.cycles ?? 0) < options.minProfileCycles) {
|
|
4703
|
+
return true;
|
|
4704
|
+
}
|
|
4705
|
+
if (options.minProfileSessions !== undefined && (summaryProfile?.sessionCount ?? 0) < options.minProfileSessions) {
|
|
4706
|
+
return true;
|
|
4707
|
+
}
|
|
4708
|
+
const requiredProfileSurfaces = options.requiredProfileSurfaces;
|
|
4709
|
+
const requiredSurfaces = requiredProfileSurfaces === undefined ? [] : Array.isArray(requiredProfileSurfaces) ? requiredProfileSurfaces : requiredProfileSurfaces[profileId] ?? [];
|
|
4710
|
+
const observedSurfaces = new Set(summaryProfile?.surfaces ?? []);
|
|
4711
|
+
return requiredSurfaces.some((surface) => !observedSurfaces.has(surface));
|
|
4712
|
+
});
|
|
4699
4713
|
const ageMs = report.trend.ageMs ?? (report.generatedAt ? Date.now() - new Date(report.generatedAt).getTime() : undefined);
|
|
4700
|
-
if (missingProfiles.length > 0 || warningProfiles.length > 0 || missingRoleProfiles.length > 0 || options.minCycles !== undefined && (report.summary.cycles ?? 0) < options.minCycles || options.minActionableProfiles !== undefined && report.defaults.summary.actionableProfiles < options.minActionableProfiles) {
|
|
4714
|
+
if (missingProfiles.length > 0 || warningProfiles.length > 0 || missingRoleProfiles.length > 0 || missingDepthProfiles.length > 0 || options.minCycles !== undefined && (report.summary.cycles ?? 0) < options.minCycles || options.minActionableProfiles !== undefined && report.defaults.summary.actionableProfiles < options.minActionableProfiles) {
|
|
4701
4715
|
actions.push({
|
|
4702
4716
|
description: "Run browser profile proof to collect microphone, WebSocket, live-latency, and provider traces for missing profiles.",
|
|
4703
4717
|
href: options.browserProofHref ?? "/voice/browser-call-profiles",
|
package/dist/index.js
CHANGED
|
@@ -16165,8 +16165,22 @@ var buildVoiceRealCallProfileRecoveryActions = (report, options = {}) => {
|
|
|
16165
16165
|
const missingProfiles = [...requiredProfiles].filter((profileId) => !profilesById.has(profileId));
|
|
16166
16166
|
const warningProfiles = report.defaults.profiles.filter((profile) => (requiredProfiles.size === 0 || requiredProfiles.has(profile.profileId)) && profile.status !== "pass");
|
|
16167
16167
|
const missingRoleProfiles = report.defaults.profiles.filter((profile) => (options.requiredProviderRoles ?? []).some((role) => !profile.providerRoutes[role]));
|
|
16168
|
+
const summariesByProfile = new Map((report.summary.profiles ?? []).map((profile) => [profile.id, profile]));
|
|
16169
|
+
const missingDepthProfiles = [...requiredProfiles].filter((profileId) => {
|
|
16170
|
+
const summaryProfile = summariesByProfile.get(profileId);
|
|
16171
|
+
if (options.minProfileCycles !== undefined && (summaryProfile?.cycles ?? 0) < options.minProfileCycles) {
|
|
16172
|
+
return true;
|
|
16173
|
+
}
|
|
16174
|
+
if (options.minProfileSessions !== undefined && (summaryProfile?.sessionCount ?? 0) < options.minProfileSessions) {
|
|
16175
|
+
return true;
|
|
16176
|
+
}
|
|
16177
|
+
const requiredProfileSurfaces = options.requiredProfileSurfaces;
|
|
16178
|
+
const requiredSurfaces = requiredProfileSurfaces === undefined ? [] : Array.isArray(requiredProfileSurfaces) ? requiredProfileSurfaces : requiredProfileSurfaces[profileId] ?? [];
|
|
16179
|
+
const observedSurfaces = new Set(summaryProfile?.surfaces ?? []);
|
|
16180
|
+
return requiredSurfaces.some((surface) => !observedSurfaces.has(surface));
|
|
16181
|
+
});
|
|
16168
16182
|
const ageMs = report.trend.ageMs ?? (report.generatedAt ? Date.now() - new Date(report.generatedAt).getTime() : undefined);
|
|
16169
|
-
if (missingProfiles.length > 0 || warningProfiles.length > 0 || missingRoleProfiles.length > 0 || options.minCycles !== undefined && (report.summary.cycles ?? 0) < options.minCycles || options.minActionableProfiles !== undefined && report.defaults.summary.actionableProfiles < options.minActionableProfiles) {
|
|
16183
|
+
if (missingProfiles.length > 0 || warningProfiles.length > 0 || missingRoleProfiles.length > 0 || missingDepthProfiles.length > 0 || options.minCycles !== undefined && (report.summary.cycles ?? 0) < options.minCycles || options.minActionableProfiles !== undefined && report.defaults.summary.actionableProfiles < options.minActionableProfiles) {
|
|
16170
16184
|
actions.push({
|
|
16171
16185
|
description: "Run browser profile proof to collect microphone, WebSocket, live-latency, and provider traces for missing profiles.",
|
|
16172
16186
|
href: options.browserProofHref ?? "/voice/browser-call-profiles",
|
package/dist/react/index.js
CHANGED
|
@@ -2283,8 +2283,22 @@ var buildVoiceRealCallProfileRecoveryActions = (report, options = {}) => {
|
|
|
2283
2283
|
const missingProfiles = [...requiredProfiles].filter((profileId) => !profilesById.has(profileId));
|
|
2284
2284
|
const warningProfiles = report.defaults.profiles.filter((profile) => (requiredProfiles.size === 0 || requiredProfiles.has(profile.profileId)) && profile.status !== "pass");
|
|
2285
2285
|
const missingRoleProfiles = report.defaults.profiles.filter((profile) => (options.requiredProviderRoles ?? []).some((role) => !profile.providerRoutes[role]));
|
|
2286
|
+
const summariesByProfile = new Map((report.summary.profiles ?? []).map((profile) => [profile.id, profile]));
|
|
2287
|
+
const missingDepthProfiles = [...requiredProfiles].filter((profileId) => {
|
|
2288
|
+
const summaryProfile = summariesByProfile.get(profileId);
|
|
2289
|
+
if (options.minProfileCycles !== undefined && (summaryProfile?.cycles ?? 0) < options.minProfileCycles) {
|
|
2290
|
+
return true;
|
|
2291
|
+
}
|
|
2292
|
+
if (options.minProfileSessions !== undefined && (summaryProfile?.sessionCount ?? 0) < options.minProfileSessions) {
|
|
2293
|
+
return true;
|
|
2294
|
+
}
|
|
2295
|
+
const requiredProfileSurfaces = options.requiredProfileSurfaces;
|
|
2296
|
+
const requiredSurfaces = requiredProfileSurfaces === undefined ? [] : Array.isArray(requiredProfileSurfaces) ? requiredProfileSurfaces : requiredProfileSurfaces[profileId] ?? [];
|
|
2297
|
+
const observedSurfaces = new Set(summaryProfile?.surfaces ?? []);
|
|
2298
|
+
return requiredSurfaces.some((surface) => !observedSurfaces.has(surface));
|
|
2299
|
+
});
|
|
2286
2300
|
const ageMs = report.trend.ageMs ?? (report.generatedAt ? Date.now() - new Date(report.generatedAt).getTime() : undefined);
|
|
2287
|
-
if (missingProfiles.length > 0 || warningProfiles.length > 0 || missingRoleProfiles.length > 0 || options.minCycles !== undefined && (report.summary.cycles ?? 0) < options.minCycles || options.minActionableProfiles !== undefined && report.defaults.summary.actionableProfiles < options.minActionableProfiles) {
|
|
2301
|
+
if (missingProfiles.length > 0 || warningProfiles.length > 0 || missingRoleProfiles.length > 0 || missingDepthProfiles.length > 0 || options.minCycles !== undefined && (report.summary.cycles ?? 0) < options.minCycles || options.minActionableProfiles !== undefined && report.defaults.summary.actionableProfiles < options.minActionableProfiles) {
|
|
2288
2302
|
actions.push({
|
|
2289
2303
|
description: "Run browser profile proof to collect microphone, WebSocket, live-latency, and provider traces for missing profiles.",
|
|
2290
2304
|
href: options.browserProofHref ?? "/voice/browser-call-profiles",
|
package/dist/vue/index.js
CHANGED
|
@@ -2204,8 +2204,22 @@ var buildVoiceRealCallProfileRecoveryActions = (report, options = {}) => {
|
|
|
2204
2204
|
const missingProfiles = [...requiredProfiles].filter((profileId) => !profilesById.has(profileId));
|
|
2205
2205
|
const warningProfiles = report.defaults.profiles.filter((profile) => (requiredProfiles.size === 0 || requiredProfiles.has(profile.profileId)) && profile.status !== "pass");
|
|
2206
2206
|
const missingRoleProfiles = report.defaults.profiles.filter((profile) => (options.requiredProviderRoles ?? []).some((role) => !profile.providerRoutes[role]));
|
|
2207
|
+
const summariesByProfile = new Map((report.summary.profiles ?? []).map((profile) => [profile.id, profile]));
|
|
2208
|
+
const missingDepthProfiles = [...requiredProfiles].filter((profileId) => {
|
|
2209
|
+
const summaryProfile = summariesByProfile.get(profileId);
|
|
2210
|
+
if (options.minProfileCycles !== undefined && (summaryProfile?.cycles ?? 0) < options.minProfileCycles) {
|
|
2211
|
+
return true;
|
|
2212
|
+
}
|
|
2213
|
+
if (options.minProfileSessions !== undefined && (summaryProfile?.sessionCount ?? 0) < options.minProfileSessions) {
|
|
2214
|
+
return true;
|
|
2215
|
+
}
|
|
2216
|
+
const requiredProfileSurfaces = options.requiredProfileSurfaces;
|
|
2217
|
+
const requiredSurfaces = requiredProfileSurfaces === undefined ? [] : Array.isArray(requiredProfileSurfaces) ? requiredProfileSurfaces : requiredProfileSurfaces[profileId] ?? [];
|
|
2218
|
+
const observedSurfaces = new Set(summaryProfile?.surfaces ?? []);
|
|
2219
|
+
return requiredSurfaces.some((surface) => !observedSurfaces.has(surface));
|
|
2220
|
+
});
|
|
2207
2221
|
const ageMs = report.trend.ageMs ?? (report.generatedAt ? Date.now() - new Date(report.generatedAt).getTime() : undefined);
|
|
2208
|
-
if (missingProfiles.length > 0 || warningProfiles.length > 0 || missingRoleProfiles.length > 0 || options.minCycles !== undefined && (report.summary.cycles ?? 0) < options.minCycles || options.minActionableProfiles !== undefined && report.defaults.summary.actionableProfiles < options.minActionableProfiles) {
|
|
2222
|
+
if (missingProfiles.length > 0 || warningProfiles.length > 0 || missingRoleProfiles.length > 0 || missingDepthProfiles.length > 0 || options.minCycles !== undefined && (report.summary.cycles ?? 0) < options.minCycles || options.minActionableProfiles !== undefined && report.defaults.summary.actionableProfiles < options.minActionableProfiles) {
|
|
2209
2223
|
actions.push({
|
|
2210
2224
|
description: "Run browser profile proof to collect microphone, WebSocket, live-latency, and provider traces for missing profiles.",
|
|
2211
2225
|
href: options.browserProofHref ?? "/voice/browser-call-profiles",
|