@absolutejs/voice 0.0.22-beta.47 → 0.0.22-beta.49
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/angular/index.js +4 -2
- package/dist/appKit.d.ts +44 -0
- package/dist/client/index.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1178 -1006
- package/dist/react/index.js +1 -1
- package/dist/svelte/index.js +1 -1
- package/dist/vue/index.js +4 -2
- package/package.json +1 -1
package/dist/angular/index.js
CHANGED
|
@@ -1520,7 +1520,7 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
1520
1520
|
}
|
|
1521
1521
|
listeners.clear();
|
|
1522
1522
|
};
|
|
1523
|
-
if (options.intervalMs && options.intervalMs > 0) {
|
|
1523
|
+
if (typeof window !== "undefined" && options.intervalMs && options.intervalMs > 0) {
|
|
1524
1524
|
timer = setInterval(() => {
|
|
1525
1525
|
refresh().catch(() => {});
|
|
1526
1526
|
}, options.intervalMs);
|
|
@@ -1561,7 +1561,9 @@ class VoiceWorkflowStatusService {
|
|
|
1561
1561
|
};
|
|
1562
1562
|
const unsubscribe = store.subscribe(sync);
|
|
1563
1563
|
sync();
|
|
1564
|
-
|
|
1564
|
+
if (typeof window !== "undefined") {
|
|
1565
|
+
store.refresh().catch(() => {});
|
|
1566
|
+
}
|
|
1565
1567
|
return {
|
|
1566
1568
|
close: () => {
|
|
1567
1569
|
unsubscribe();
|
package/dist/appKit.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Elysia } from 'elysia';
|
|
2
|
+
import { type VoiceAssistantHealthRoutesOptions } from './assistantHealth';
|
|
3
|
+
import { type VoiceDiagnosticsRoutesOptions } from './diagnosticsRoutes';
|
|
4
|
+
import { type VoiceEvalRoutesOptions, type VoiceEvalLink } from './evalRoutes';
|
|
5
|
+
import { type VoiceHandoffHealthRoutesOptions } from './handoffHealth';
|
|
6
|
+
import { type VoiceOpsConsoleRoutesOptions } from './opsConsoleRoutes';
|
|
7
|
+
import { type VoiceProviderHealthRoutesOptions } from './providerHealth';
|
|
8
|
+
import { type VoiceQualityRoutesOptions } from './qualityRoutes';
|
|
9
|
+
import { type VoiceResilienceRoutesOptions } from './resilienceRoutes';
|
|
10
|
+
import { type VoiceSessionListRoutesOptions, type VoiceSessionReplayRoutesOptions } from './sessionReplay';
|
|
11
|
+
import type { VoiceTraceEventStore } from './trace';
|
|
12
|
+
export type VoiceAppKitSurface = 'assistantHealth' | 'diagnostics' | 'evals' | 'handoffs' | 'opsConsole' | 'providerHealth' | 'quality' | 'resilience' | 'sessionReplay' | 'sessions';
|
|
13
|
+
export type VoiceAppKitLink = VoiceEvalLink & {
|
|
14
|
+
description?: string;
|
|
15
|
+
statusHref?: string;
|
|
16
|
+
};
|
|
17
|
+
export type VoiceAppKitRoutesOptions<TProvider extends string = string> = {
|
|
18
|
+
assistantHealth?: false | Partial<VoiceAssistantHealthRoutesOptions<TProvider>>;
|
|
19
|
+
diagnostics?: false | Partial<Omit<VoiceDiagnosticsRoutesOptions, 'store'>>;
|
|
20
|
+
evals?: false | Partial<VoiceEvalRoutesOptions>;
|
|
21
|
+
handoffs?: false | Partial<VoiceHandoffHealthRoutesOptions>;
|
|
22
|
+
headers?: HeadersInit;
|
|
23
|
+
links?: VoiceAppKitLink[];
|
|
24
|
+
llmProviders?: readonly TProvider[];
|
|
25
|
+
name?: string;
|
|
26
|
+
opsConsole?: false | Partial<VoiceOpsConsoleRoutesOptions>;
|
|
27
|
+
providerHealth?: false | Partial<VoiceProviderHealthRoutesOptions<TProvider>>;
|
|
28
|
+
quality?: false | Partial<VoiceQualityRoutesOptions>;
|
|
29
|
+
resilience?: false | Partial<VoiceResilienceRoutesOptions>;
|
|
30
|
+
sessionReplay?: false | Partial<VoiceSessionReplayRoutesOptions>;
|
|
31
|
+
sessions?: false | Partial<VoiceSessionListRoutesOptions>;
|
|
32
|
+
store: VoiceTraceEventStore;
|
|
33
|
+
sttProviders?: readonly string[];
|
|
34
|
+
title?: string;
|
|
35
|
+
ttsProviders?: readonly string[];
|
|
36
|
+
};
|
|
37
|
+
export type VoiceAppKitRoutes<TProvider extends string = string> = {
|
|
38
|
+
links: VoiceAppKitLink[];
|
|
39
|
+
routes: Elysia;
|
|
40
|
+
surfaces: VoiceAppKitSurface[];
|
|
41
|
+
use: Elysia['use'];
|
|
42
|
+
};
|
|
43
|
+
export declare const createVoiceAppKitRoutes: <TProvider extends string = string>(options: VoiceAppKitRoutesOptions<TProvider>) => VoiceAppKitRoutes<TProvider>;
|
|
44
|
+
export declare const createVoiceAppKit: <TProvider extends string = string>(options: VoiceAppKitRoutesOptions<TProvider>) => VoiceAppKitRoutes<TProvider>;
|
package/dist/client/index.js
CHANGED
|
@@ -1762,7 +1762,7 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
1762
1762
|
}
|
|
1763
1763
|
listeners.clear();
|
|
1764
1764
|
};
|
|
1765
|
-
if (options.intervalMs && options.intervalMs > 0) {
|
|
1765
|
+
if (typeof window !== "undefined" && options.intervalMs && options.intervalMs > 0) {
|
|
1766
1766
|
timer = setInterval(() => {
|
|
1767
1767
|
refresh().catch(() => {});
|
|
1768
1768
|
}, options.intervalMs);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { voice } from './plugin';
|
|
2
|
+
export { createVoiceAppKit, createVoiceAppKitRoutes } from './appKit';
|
|
2
3
|
export { createVoiceAssistant, createVoiceExperiment, summarizeVoiceAssistantRuns } from './assistant';
|
|
3
4
|
export { createVoiceAssistantHealthHTMLHandler, createVoiceAssistantHealthJSONHandler, createVoiceAssistantHealthRoutes, renderVoiceAssistantHealthHTML, summarizeVoiceAssistantHealth } from './assistantHealth';
|
|
4
5
|
export { buildVoiceDiagnosticsMarkdown, createVoiceDiagnosticsRoutes, resolveVoiceDiagnosticsTraceFilter } from './diagnosticsRoutes';
|
|
@@ -37,6 +38,7 @@ export { conditionAudioChunk, resolveAudioConditioningConfig } from './audioCond
|
|
|
37
38
|
export { resolveVoiceRuntimePreset } from './presets';
|
|
38
39
|
export { resolveTurnDetectionConfig, TURN_PROFILE_DEFAULTS } from './turnProfiles';
|
|
39
40
|
export { createVoiceCallReviewFromLiveTelephonyReport, createVoiceCallReviewRecorder, renderVoiceCallReviewHTML, renderVoiceCallReviewMarkdown } from './testing/review';
|
|
41
|
+
export type { VoiceAppKitLink, VoiceAppKitRoutes, VoiceAppKitRoutesOptions, VoiceAppKitSurface } from './appKit';
|
|
40
42
|
export type { VoiceAssistant, VoiceAssistantArtifactPlan, VoiceAssistantExperiment, VoiceAssistantExperimentOptions, VoiceAssistantGuardrailInput, VoiceAssistantGuardrails, VoiceAssistantMemoryLifecycle, VoiceAssistantMemoryLifecycleInput, VoiceAssistantOptions, VoiceAssistantOutputGuardrailInput, VoiceAssistantPreset, VoiceAssistantRunsSummary, VoiceAssistantRunSummary, VoiceAssistantVariant } from './assistant';
|
|
41
43
|
export type { VoiceAssistantHealthFailure, VoiceAssistantHealthHTMLHandlerOptions, VoiceAssistantHealthRoutesOptions, VoiceAssistantHealthSummary, VoiceAssistantHealthSummaryOptions } from './assistantHealth';
|
|
42
44
|
export type { VoiceAssistantMemoryBinding, VoiceAssistantMemoryHandle, VoiceAssistantMemoryOptions, VoiceAssistantMemoryRecord, VoiceAssistantMemoryStore } from './assistantMemory';
|