@absolutejs/voice 0.0.22-beta.286 → 0.0.22-beta.287

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/index.d.ts CHANGED
@@ -18,8 +18,8 @@ export { assertVoicePlatformCoverage, buildVoicePlatformCoverageSummary, createV
18
18
  export type { VoicePlatformCoverageAssertionInput, VoicePlatformCoverageAssertionReport, VoicePlatformCoverageEvidence, VoicePlatformCoverageRoutesOptions, VoicePlatformCoverageStatus, VoicePlatformCoverageSummary, VoicePlatformCoverageSummaryInput, VoicePlatformCoverageSurface } from './platformCoverage';
19
19
  export { assertVoiceProofTrendEvidence, buildEmptyVoiceProofTrendReport, buildVoiceProofTrendReport, createVoiceProofTrendRoutes, DEFAULT_VOICE_PROOF_TRENDS_MAX_AGE_MS, evaluateVoiceProofTrendEvidence, formatVoiceProofTrendAge, normalizeVoiceProofTrendReport, readVoiceProofTrendReportFile } from './proofTrends';
20
20
  export type { VoiceProofTrendAssertionInput, VoiceProofTrendAssertionReport, VoiceProofTrendCycle, VoiceProofTrendReport, VoiceProofTrendReportInput, VoiceProofTrendRoutesOptions, VoiceProofTrendStatus, VoiceProofTrendSummary } from './proofTrends';
21
- export { assertVoiceSloCalibration, buildVoiceSloCalibrationReport, createVoiceSloThresholdProfile, createVoiceSloCalibrationRoutes, renderVoiceSloCalibrationMarkdown } from './sloCalibration';
22
- export type { VoiceSloCalibrationMetricKey, VoiceSloCalibrationOptions, VoiceSloCalibrationReport, VoiceSloCalibrationRoutesOptions, VoiceSloCalibrationSample, VoiceSloCalibrationStatus, VoiceSloCalibrationThreshold, VoiceSloCalibrationThresholds, VoiceSloThresholdProfile } from './sloCalibration';
21
+ export { assertVoiceSloCalibration, buildVoiceSloCalibrationReport, createVoiceSloReadinessThresholdOptions, createVoiceSloThresholdProfile, createVoiceSloCalibrationRoutes, renderVoiceSloCalibrationMarkdown } from './sloCalibration';
22
+ export type { VoiceSloCalibrationMetricKey, VoiceSloCalibrationOptions, VoiceSloCalibrationReport, VoiceSloCalibrationRoutesOptions, VoiceSloCalibrationSample, VoiceSloCalibrationStatus, VoiceSloCalibrationThreshold, VoiceSloCalibrationThresholds, VoiceSloReadinessThresholdOptions, VoiceSloThresholdProfile } from './sloCalibration';
23
23
  export { assertVoiceLiveOpsControlEvidence, assertVoiceLiveOpsEvidence, buildVoiceLiveOpsControlState, createVoiceLiveOpsController, createVoiceLiveOpsRoutes, createVoiceMemoryLiveOpsControlStore, evaluateVoiceLiveOpsControlEvidence, evaluateVoiceLiveOpsEvidence, getVoiceLiveOpsControlStatus, VOICE_LIVE_OPS_ACTIONS } from './liveOps';
24
24
  export type { VoiceLiveOpsAction, VoiceLiveOpsActionInput, VoiceLiveOpsActionResult, VoiceLiveOpsControllerOptions, VoiceLiveOpsControlState, VoiceLiveOpsControlStatus, VoiceLiveOpsControlStore, VoiceLiveOpsControlEvidenceInput, VoiceLiveOpsControlEvidenceReport, VoiceLiveOpsEvidenceInput, VoiceLiveOpsEvidenceReport, VoiceLiveOpsRoutesOptions } from './liveOps';
25
25
  export { buildVoiceDeliveryRuntimeReport, createVoiceDeliveryRuntime, createVoiceDeliveryRuntimePresetConfig, createVoiceDeliveryRuntimeRoutes, renderVoiceDeliveryRuntimeHTML } from './deliveryRuntime';
package/dist/index.js CHANGED
@@ -12790,6 +12790,16 @@ var createVoiceSloThresholdProfile = (input, options = {}) => {
12790
12790
  status: report.status
12791
12791
  };
12792
12792
  };
12793
+ var createVoiceSloReadinessThresholdOptions = (input, options = {}) => {
12794
+ const profile = "providerSlo" in input ? input : createVoiceSloThresholdProfile(input, options);
12795
+ return {
12796
+ liveLatencyFailAfterMs: profile.liveLatency.failAfterMs,
12797
+ liveLatencyWarnAfterMs: profile.liveLatency.warnAfterMs,
12798
+ monitoringNotifierDeliveryFailAfterMs: profile.monitoring.notifierDeliveryFailAfterMs,
12799
+ monitoringRunFailAfterMs: profile.monitoring.monitorRunFailAfterMs,
12800
+ reconnectResumeFailAfterMs: profile.reconnect.failAfterMs
12801
+ };
12802
+ };
12793
12803
  var escapeMarkdown = (value) => value.replaceAll("|", "\\|");
12794
12804
  var renderVoiceSloCalibrationMarkdown = (report, options = {}) => {
12795
12805
  const rows = Object.values(report.thresholds).map((threshold) => `| ${escapeMarkdown(threshold.metric)} | ${threshold.status} | ${threshold.samples} | ${threshold.baselineP95Ms ?? "n/a"} | ${threshold.warnAfterMs ?? "n/a"} | ${threshold.failAfterMs ?? "n/a"} |`).join(`
@@ -32970,6 +32980,7 @@ export {
32970
32980
  createVoiceTaskCreatedEvent,
32971
32981
  createVoiceTTSProviderRouter,
32972
32982
  createVoiceSloThresholdProfile,
32983
+ createVoiceSloReadinessThresholdOptions,
32973
32984
  createVoiceSloCalibrationRoutes,
32974
32985
  createVoiceSimulationSuiteRoutes,
32975
32986
  createVoiceSessionsJSONHandler,
@@ -1,5 +1,6 @@
1
1
  import { Elysia } from 'elysia';
2
2
  import type { VoiceProviderSloThresholdConfig } from './providerSlo';
3
+ import type { VoiceProductionReadinessRoutesOptions } from './productionReadiness';
3
4
  import type { VoiceProofTrendReport } from './proofTrends';
4
5
  export type VoiceSloCalibrationStatus = 'fail' | 'pass' | 'warn';
5
6
  export type VoiceSloCalibrationMetricKey = 'interruption' | 'liveLatency' | 'monitorRun' | 'notifierDelivery' | 'provider' | 'reconnect' | 'turnLatency';
@@ -68,6 +69,7 @@ export type VoiceSloThresholdProfile = {
68
69
  };
69
70
  status: VoiceSloCalibrationStatus;
70
71
  };
72
+ export type VoiceSloReadinessThresholdOptions = Pick<VoiceProductionReadinessRoutesOptions, 'liveLatencyFailAfterMs' | 'liveLatencyWarnAfterMs' | 'monitoringNotifierDeliveryFailAfterMs' | 'monitoringRunFailAfterMs' | 'reconnectResumeFailAfterMs'>;
71
73
  export type VoiceSloCalibrationOptions = {
72
74
  headroomMultiplier?: number;
73
75
  liveLatencyMinimumMs?: number;
@@ -91,6 +93,7 @@ export type VoiceSloCalibrationRoutesOptions = VoiceSloCalibrationOptions & {
91
93
  export declare const buildVoiceSloCalibrationReport: (input: Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloCalibrationOptions) => VoiceSloCalibrationReport;
92
94
  export declare const assertVoiceSloCalibration: (input: Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloCalibrationOptions) => VoiceSloCalibrationReport;
93
95
  export declare const createVoiceSloThresholdProfile: (input: VoiceSloCalibrationReport | Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloCalibrationOptions) => VoiceSloThresholdProfile;
96
+ export declare const createVoiceSloReadinessThresholdOptions: (input: VoiceSloCalibrationReport | VoiceSloThresholdProfile | Array<VoiceProofTrendReport | VoiceSloCalibrationSample>, options?: VoiceSloCalibrationOptions) => VoiceSloReadinessThresholdOptions;
94
97
  export declare const renderVoiceSloCalibrationMarkdown: (report: VoiceSloCalibrationReport, options?: {
95
98
  title?: string;
96
99
  }) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.286",
3
+ "version": "0.0.22-beta.287",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",