@absolutejs/voice 0.0.22-beta.347 → 0.0.22-beta.348
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 +12 -11
- package/dist/index.js +12 -11
- package/dist/react/index.js +12 -11
- package/dist/vue/index.js +12 -11
- package/package.json +1 -1
package/dist/client/index.js
CHANGED
|
@@ -4102,33 +4102,34 @@ var buildVoiceRealCallProfileHistoryReport = (options = {}) => {
|
|
|
4102
4102
|
})),
|
|
4103
4103
|
...evidenceReport ? [evidenceReport] : []
|
|
4104
4104
|
];
|
|
4105
|
-
const
|
|
4105
|
+
const passingHistory = history.filter((report) => report.ok === true);
|
|
4106
|
+
const recommendationHistory = passingHistory.length > 0 ? passingHistory : history;
|
|
4107
|
+
const profiles = buildVoiceProofTrendProfileSummaries(recommendationHistory, options);
|
|
4106
4108
|
const summary = {
|
|
4107
|
-
cycles:
|
|
4109
|
+
cycles: recommendationHistory.reduce((total, report) => total + (report.summary.cycles ?? report.cycles.length), 0),
|
|
4108
4110
|
failedReports: history.filter((report) => report.ok !== true).length,
|
|
4109
|
-
maxLiveP95Ms: maxNumber(
|
|
4110
|
-
maxProviderP95Ms: maxNumber(
|
|
4111
|
-
maxTurnP95Ms: maxNumber(
|
|
4111
|
+
maxLiveP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxLiveP95)),
|
|
4112
|
+
maxProviderP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxProviderP95)),
|
|
4113
|
+
maxTurnP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxTurnP95)),
|
|
4112
4114
|
profileCount: profiles.length,
|
|
4113
4115
|
profiles,
|
|
4114
|
-
providers: readProofTrendProviders(
|
|
4115
|
-
runtimeChannel: aggregateProofTrendRuntimeChannel(
|
|
4116
|
+
providers: readProofTrendProviders(recommendationHistory),
|
|
4117
|
+
runtimeChannel: aggregateProofTrendRuntimeChannel(recommendationHistory.map(readProofTrendRuntimeChannel).filter((channel) => channel !== undefined))
|
|
4116
4118
|
};
|
|
4117
4119
|
const trend = buildVoiceProofTrendReport({
|
|
4118
4120
|
baseUrl: options.baseUrl,
|
|
4119
|
-
cycles: flattenProofTrendCycles(
|
|
4121
|
+
cycles: flattenProofTrendCycles(recommendationHistory),
|
|
4120
4122
|
generatedAt,
|
|
4121
4123
|
maxAgeMs: options.maxAgeMs,
|
|
4122
4124
|
now: options.now,
|
|
4123
|
-
ok:
|
|
4125
|
+
ok: recommendationHistory.length > 0 && profiles.every((profile) => profile.status !== "fail"),
|
|
4124
4126
|
source: options.source ?? "real-call-profile-history",
|
|
4125
4127
|
summary
|
|
4126
4128
|
});
|
|
4127
4129
|
const recommendations = buildVoiceProofTrendRecommendationReport(trend, options);
|
|
4128
4130
|
const issues = [
|
|
4129
|
-
...
|
|
4131
|
+
...recommendationHistory.length === 0 ? ["No passing real-call profile reports were present."] : [],
|
|
4130
4132
|
...profiles.length === 0 ? ["No benchmark profiles were present."] : [],
|
|
4131
|
-
...summary.failedReports > 0 ? [`${summary.failedReports} real-call profile report(s) failed.`] : [],
|
|
4132
4133
|
...recommendations.issues
|
|
4133
4134
|
];
|
|
4134
4135
|
return {
|
package/dist/index.js
CHANGED
|
@@ -15004,33 +15004,34 @@ var buildVoiceRealCallProfileHistoryReport = (options = {}) => {
|
|
|
15004
15004
|
})),
|
|
15005
15005
|
...evidenceReport ? [evidenceReport] : []
|
|
15006
15006
|
];
|
|
15007
|
-
const
|
|
15007
|
+
const passingHistory = history.filter((report) => report.ok === true);
|
|
15008
|
+
const recommendationHistory = passingHistory.length > 0 ? passingHistory : history;
|
|
15009
|
+
const profiles = buildVoiceProofTrendProfileSummaries(recommendationHistory, options);
|
|
15008
15010
|
const summary = {
|
|
15009
|
-
cycles:
|
|
15011
|
+
cycles: recommendationHistory.reduce((total, report) => total + (report.summary.cycles ?? report.cycles.length), 0),
|
|
15010
15012
|
failedReports: history.filter((report) => report.ok !== true).length,
|
|
15011
|
-
maxLiveP95Ms: maxNumber(
|
|
15012
|
-
maxProviderP95Ms: maxNumber(
|
|
15013
|
-
maxTurnP95Ms: maxNumber(
|
|
15013
|
+
maxLiveP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxLiveP95)),
|
|
15014
|
+
maxProviderP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxProviderP95)),
|
|
15015
|
+
maxTurnP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxTurnP95)),
|
|
15014
15016
|
profileCount: profiles.length,
|
|
15015
15017
|
profiles,
|
|
15016
|
-
providers: readProofTrendProviders(
|
|
15017
|
-
runtimeChannel: aggregateProofTrendRuntimeChannel(
|
|
15018
|
+
providers: readProofTrendProviders(recommendationHistory),
|
|
15019
|
+
runtimeChannel: aggregateProofTrendRuntimeChannel(recommendationHistory.map(readProofTrendRuntimeChannel).filter((channel) => channel !== undefined))
|
|
15018
15020
|
};
|
|
15019
15021
|
const trend = buildVoiceProofTrendReport({
|
|
15020
15022
|
baseUrl: options.baseUrl,
|
|
15021
|
-
cycles: flattenProofTrendCycles(
|
|
15023
|
+
cycles: flattenProofTrendCycles(recommendationHistory),
|
|
15022
15024
|
generatedAt,
|
|
15023
15025
|
maxAgeMs: options.maxAgeMs,
|
|
15024
15026
|
now: options.now,
|
|
15025
|
-
ok:
|
|
15027
|
+
ok: recommendationHistory.length > 0 && profiles.every((profile) => profile.status !== "fail"),
|
|
15026
15028
|
source: options.source ?? "real-call-profile-history",
|
|
15027
15029
|
summary
|
|
15028
15030
|
});
|
|
15029
15031
|
const recommendations = buildVoiceProofTrendRecommendationReport(trend, options);
|
|
15030
15032
|
const issues = [
|
|
15031
|
-
...
|
|
15033
|
+
...recommendationHistory.length === 0 ? ["No passing real-call profile reports were present."] : [],
|
|
15032
15034
|
...profiles.length === 0 ? ["No benchmark profiles were present."] : [],
|
|
15033
|
-
...summary.failedReports > 0 ? [`${summary.failedReports} real-call profile report(s) failed.`] : [],
|
|
15034
15035
|
...recommendations.issues
|
|
15035
15036
|
];
|
|
15036
15037
|
return {
|
package/dist/react/index.js
CHANGED
|
@@ -1850,33 +1850,34 @@ var buildVoiceRealCallProfileHistoryReport = (options = {}) => {
|
|
|
1850
1850
|
})),
|
|
1851
1851
|
...evidenceReport ? [evidenceReport] : []
|
|
1852
1852
|
];
|
|
1853
|
-
const
|
|
1853
|
+
const passingHistory = history.filter((report) => report.ok === true);
|
|
1854
|
+
const recommendationHistory = passingHistory.length > 0 ? passingHistory : history;
|
|
1855
|
+
const profiles = buildVoiceProofTrendProfileSummaries(recommendationHistory, options);
|
|
1854
1856
|
const summary = {
|
|
1855
|
-
cycles:
|
|
1857
|
+
cycles: recommendationHistory.reduce((total, report) => total + (report.summary.cycles ?? report.cycles.length), 0),
|
|
1856
1858
|
failedReports: history.filter((report) => report.ok !== true).length,
|
|
1857
|
-
maxLiveP95Ms: maxNumber(
|
|
1858
|
-
maxProviderP95Ms: maxNumber(
|
|
1859
|
-
maxTurnP95Ms: maxNumber(
|
|
1859
|
+
maxLiveP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxLiveP95)),
|
|
1860
|
+
maxProviderP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxProviderP95)),
|
|
1861
|
+
maxTurnP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxTurnP95)),
|
|
1860
1862
|
profileCount: profiles.length,
|
|
1861
1863
|
profiles,
|
|
1862
|
-
providers: readProofTrendProviders(
|
|
1863
|
-
runtimeChannel: aggregateProofTrendRuntimeChannel(
|
|
1864
|
+
providers: readProofTrendProviders(recommendationHistory),
|
|
1865
|
+
runtimeChannel: aggregateProofTrendRuntimeChannel(recommendationHistory.map(readProofTrendRuntimeChannel).filter((channel) => channel !== undefined))
|
|
1864
1866
|
};
|
|
1865
1867
|
const trend = buildVoiceProofTrendReport({
|
|
1866
1868
|
baseUrl: options.baseUrl,
|
|
1867
|
-
cycles: flattenProofTrendCycles(
|
|
1869
|
+
cycles: flattenProofTrendCycles(recommendationHistory),
|
|
1868
1870
|
generatedAt,
|
|
1869
1871
|
maxAgeMs: options.maxAgeMs,
|
|
1870
1872
|
now: options.now,
|
|
1871
|
-
ok:
|
|
1873
|
+
ok: recommendationHistory.length > 0 && profiles.every((profile) => profile.status !== "fail"),
|
|
1872
1874
|
source: options.source ?? "real-call-profile-history",
|
|
1873
1875
|
summary
|
|
1874
1876
|
});
|
|
1875
1877
|
const recommendations = buildVoiceProofTrendRecommendationReport(trend, options);
|
|
1876
1878
|
const issues = [
|
|
1877
|
-
...
|
|
1879
|
+
...recommendationHistory.length === 0 ? ["No passing real-call profile reports were present."] : [],
|
|
1878
1880
|
...profiles.length === 0 ? ["No benchmark profiles were present."] : [],
|
|
1879
|
-
...summary.failedReports > 0 ? [`${summary.failedReports} real-call profile report(s) failed.`] : [],
|
|
1880
1881
|
...recommendations.issues
|
|
1881
1882
|
];
|
|
1882
1883
|
return {
|
package/dist/vue/index.js
CHANGED
|
@@ -1771,33 +1771,34 @@ var buildVoiceRealCallProfileHistoryReport = (options = {}) => {
|
|
|
1771
1771
|
})),
|
|
1772
1772
|
...evidenceReport ? [evidenceReport] : []
|
|
1773
1773
|
];
|
|
1774
|
-
const
|
|
1774
|
+
const passingHistory = history.filter((report) => report.ok === true);
|
|
1775
|
+
const recommendationHistory = passingHistory.length > 0 ? passingHistory : history;
|
|
1776
|
+
const profiles = buildVoiceProofTrendProfileSummaries(recommendationHistory, options);
|
|
1775
1777
|
const summary = {
|
|
1776
|
-
cycles:
|
|
1778
|
+
cycles: recommendationHistory.reduce((total, report) => total + (report.summary.cycles ?? report.cycles.length), 0),
|
|
1777
1779
|
failedReports: history.filter((report) => report.ok !== true).length,
|
|
1778
|
-
maxLiveP95Ms: maxNumber(
|
|
1779
|
-
maxProviderP95Ms: maxNumber(
|
|
1780
|
-
maxTurnP95Ms: maxNumber(
|
|
1780
|
+
maxLiveP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxLiveP95)),
|
|
1781
|
+
maxProviderP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxProviderP95)),
|
|
1782
|
+
maxTurnP95Ms: maxNumber(recommendationHistory.map(readProofTrendMaxTurnP95)),
|
|
1781
1783
|
profileCount: profiles.length,
|
|
1782
1784
|
profiles,
|
|
1783
|
-
providers: readProofTrendProviders(
|
|
1784
|
-
runtimeChannel: aggregateProofTrendRuntimeChannel(
|
|
1785
|
+
providers: readProofTrendProviders(recommendationHistory),
|
|
1786
|
+
runtimeChannel: aggregateProofTrendRuntimeChannel(recommendationHistory.map(readProofTrendRuntimeChannel).filter((channel) => channel !== undefined))
|
|
1785
1787
|
};
|
|
1786
1788
|
const trend = buildVoiceProofTrendReport({
|
|
1787
1789
|
baseUrl: options.baseUrl,
|
|
1788
|
-
cycles: flattenProofTrendCycles(
|
|
1790
|
+
cycles: flattenProofTrendCycles(recommendationHistory),
|
|
1789
1791
|
generatedAt,
|
|
1790
1792
|
maxAgeMs: options.maxAgeMs,
|
|
1791
1793
|
now: options.now,
|
|
1792
|
-
ok:
|
|
1794
|
+
ok: recommendationHistory.length > 0 && profiles.every((profile) => profile.status !== "fail"),
|
|
1793
1795
|
source: options.source ?? "real-call-profile-history",
|
|
1794
1796
|
summary
|
|
1795
1797
|
});
|
|
1796
1798
|
const recommendations = buildVoiceProofTrendRecommendationReport(trend, options);
|
|
1797
1799
|
const issues = [
|
|
1798
|
-
...
|
|
1800
|
+
...recommendationHistory.length === 0 ? ["No passing real-call profile reports were present."] : [],
|
|
1799
1801
|
...profiles.length === 0 ? ["No benchmark profiles were present."] : [],
|
|
1800
|
-
...summary.failedReports > 0 ? [`${summary.failedReports} real-call profile report(s) failed.`] : [],
|
|
1801
1802
|
...recommendations.issues
|
|
1802
1803
|
];
|
|
1803
1804
|
return {
|