@oxvo/ai-live-assist 7.3.4 → 7.4.23
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/cjs/AiLiveAssist.d.ts +588 -6
- package/cjs/AiLiveAssist.js +14892 -1240
- package/cjs/client.d.ts +71 -10
- package/cjs/client.js +316 -58
- package/cjs/context.d.ts +15 -5
- package/cjs/context.js +568 -73
- package/cjs/control.d.ts +72 -7
- package/cjs/control.js +594 -71
- package/cjs/dialogFocusScope.d.ts +37 -0
- package/cjs/dialogFocusScope.js +227 -0
- package/cjs/experienceState.js +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +2 -2
- package/cjs/media.d.ts +14 -3
- package/cjs/media.js +128 -19
- package/cjs/messages.js +26 -3
- package/cjs/messengerLoader.d.ts +3 -0
- package/cjs/messengerLoader.js +156 -0
- package/cjs/pageAssistancePreference.d.ts +78 -0
- package/cjs/pageAssistancePreference.js +488 -0
- package/cjs/preview.d.ts +33 -0
- package/cjs/preview.js +567 -0
- package/cjs/tabLock.d.ts +54 -3
- package/cjs/tabLock.js +752 -72
- package/cjs/types.d.ts +152 -4
- package/cjs/ui.d.ts +200 -10
- package/cjs/ui.js +6946 -523
- package/cjs/version.d.ts +1 -1
- package/cjs/version.js +1 -1
- package/cjs/voicePresenceUi.d.ts +48 -9
- package/cjs/voicePresenceUi.js +863 -125
- package/lib/AiLiveAssist.d.ts +588 -6
- package/lib/AiLiveAssist.js +14897 -1248
- package/lib/client.d.ts +71 -10
- package/lib/client.js +313 -57
- package/lib/context.d.ts +15 -5
- package/lib/context.js +566 -72
- package/lib/control.d.ts +72 -7
- package/lib/control.js +594 -71
- package/lib/dialogFocusScope.d.ts +37 -0
- package/lib/dialogFocusScope.js +223 -0
- package/lib/experienceState.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/media.d.ts +14 -3
- package/lib/media.js +128 -19
- package/lib/messages.js +26 -3
- package/lib/messengerLoader.d.ts +3 -0
- package/lib/messengerLoader.js +151 -0
- package/lib/pageAssistancePreference.d.ts +78 -0
- package/lib/pageAssistancePreference.js +482 -0
- package/lib/preview.d.ts +33 -0
- package/lib/preview.js +561 -0
- package/lib/tabLock.d.ts +54 -3
- package/lib/tabLock.js +752 -72
- package/lib/types.d.ts +152 -4
- package/lib/ui.d.ts +200 -10
- package/lib/ui.js +6947 -524
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/voicePresenceUi.d.ts +48 -9
- package/lib/voicePresenceUi.js +863 -125
- package/package.json +8 -3
- package/cjs/recordingPolicy.d.ts +0 -2
- package/cjs/recordingPolicy.js +0 -12
- package/lib/recordingPolicy.d.ts +0 -2
- package/lib/recordingPolicy.js +0 -8
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "7.
|
|
1
|
+
export declare const VERSION = "7.4.23";
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '7.
|
|
1
|
+
export const VERSION = '7.4.23';
|
package/lib/voicePresenceUi.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssistMode, BootstrapConfig, CapabilityTier, VisualContextRequest, WidgetMessageKey } from "./types.js";
|
|
1
|
+
import type { AssistMode, BootstrapConfig, CapabilityTier, HandoffContextRequest, HandoffContextStatus, PageAssistanceRequest, VisualContextRequest, WidgetMessageKey } from "./types.js";
|
|
2
2
|
import type { WidgetCallbacks } from "./ui.js";
|
|
3
3
|
type Confirmation = {
|
|
4
4
|
actionId: string;
|
|
@@ -14,14 +14,16 @@ type ServerPresenceState = "ready" | "listening" | "thinking" | "speaking" | "ac
|
|
|
14
14
|
export declare class VoicePresenceView {
|
|
15
15
|
private readonly callbacks;
|
|
16
16
|
private readonly onFallback;
|
|
17
|
-
private
|
|
18
|
-
private
|
|
17
|
+
private config;
|
|
18
|
+
private voiceConfig;
|
|
19
19
|
private readonly messages;
|
|
20
20
|
private readonly host;
|
|
21
21
|
private readonly shadow;
|
|
22
22
|
private readonly orb;
|
|
23
23
|
private readonly modalLayer;
|
|
24
|
-
private readonly
|
|
24
|
+
private readonly pageAssistanceLayer;
|
|
25
|
+
private readonly pageAssistanceAlways;
|
|
26
|
+
private readonly pageAssistanceRevoke;
|
|
25
27
|
private readonly captionStage;
|
|
26
28
|
private readonly subtitleTrack;
|
|
27
29
|
private readonly statusBubble;
|
|
@@ -33,6 +35,7 @@ export declare class VoicePresenceView {
|
|
|
33
35
|
private readonly highlight;
|
|
34
36
|
private readonly stateMachine;
|
|
35
37
|
private readonly placement;
|
|
38
|
+
private readonly dialogFocus;
|
|
36
39
|
private readonly captionTimers;
|
|
37
40
|
private captionResizeObserver;
|
|
38
41
|
private captionLayoutFrame;
|
|
@@ -42,7 +45,10 @@ export declare class VoicePresenceView {
|
|
|
42
45
|
private highlightScrollTargets;
|
|
43
46
|
private currentConfirmation;
|
|
44
47
|
private currentVisualRequest;
|
|
45
|
-
private
|
|
48
|
+
private currentHandoffContextRequest;
|
|
49
|
+
private handoffRequestPreparing;
|
|
50
|
+
private currentPageAssistanceRequest;
|
|
51
|
+
private pageAssistancePersistentAllowed;
|
|
46
52
|
private active;
|
|
47
53
|
private activeElsewhere;
|
|
48
54
|
private destroyed;
|
|
@@ -62,7 +68,17 @@ export declare class VoicePresenceView {
|
|
|
62
68
|
private serverPresenceState;
|
|
63
69
|
private playbackState;
|
|
64
70
|
private capabilityTier;
|
|
65
|
-
|
|
71
|
+
private reducedMotionQuery;
|
|
72
|
+
constructor(config: BootstrapConfig, overrides: Partial<Record<WidgetMessageKey, string>>, callbacks: WidgetCallbacks, tabId: string, onFallback?: (fallback: "standard_assist" | "human_handoff") => void, visualTestMode?: boolean, options?: {
|
|
73
|
+
previewMode?: boolean;
|
|
74
|
+
});
|
|
75
|
+
open(_mode?: AssistMode): void;
|
|
76
|
+
close(): void;
|
|
77
|
+
get isOpen(): boolean;
|
|
78
|
+
rootElement(): HTMLElement;
|
|
79
|
+
setSupportCompanion(linked: boolean): void;
|
|
80
|
+
showSupportReplyNotice(visible: boolean): void;
|
|
81
|
+
updatePreviewConfig(config: BootstrapConfig): boolean;
|
|
66
82
|
setRemoteStream(stream: MediaStream): void;
|
|
67
83
|
setCapabilityTier(tier: CapabilityTier): void;
|
|
68
84
|
setOrbTheme(theme: "light" | "dark"): void;
|
|
@@ -79,10 +95,18 @@ export declare class VoicePresenceView {
|
|
|
79
95
|
showActive(welcomeMessage?: string | null): void;
|
|
80
96
|
addCaption(role: CaptionRole, text: string, final: boolean): void;
|
|
81
97
|
showConfirmation(value: Confirmation): void;
|
|
82
|
-
showActionState(status: "running" | "verified" | "failed"): void;
|
|
98
|
+
showActionState(status: "running" | "verified" | "failed" | "unconfirmed"): void;
|
|
83
99
|
dismissActionState(): void;
|
|
84
100
|
showVisualRequest(value: VisualContextRequest): void;
|
|
85
101
|
showVisualResult(shared: boolean): void;
|
|
102
|
+
showHandoffRequestPreparing(title: string, description: string): void;
|
|
103
|
+
dismissHandoffRequestPreparing(): void;
|
|
104
|
+
showHandoffContextRequest(value: HandoffContextRequest): boolean;
|
|
105
|
+
dismissHandoffContextRequest(): void;
|
|
106
|
+
showHandoffContextResult(status: HandoffContextStatus): void;
|
|
107
|
+
showPageAssistanceRequest(value: PageAssistanceRequest): void;
|
|
108
|
+
dismissPageAssistanceRequest(): void;
|
|
109
|
+
setPageAssistancePersistentAllowed(allowed: boolean): void;
|
|
86
110
|
setVisualAvailable(_available: boolean, _paused?: boolean): void;
|
|
87
111
|
setVisualPaused(_paused: boolean): void;
|
|
88
112
|
setPaused(value: boolean): void;
|
|
@@ -92,6 +116,9 @@ export declare class VoicePresenceView {
|
|
|
92
116
|
setPushActive(_value: boolean): void;
|
|
93
117
|
interruptPlayback(): void;
|
|
94
118
|
showError(message?: string, retryable?: boolean, sessionActive?: boolean): void;
|
|
119
|
+
showEndingDetached(message?: string): void;
|
|
120
|
+
showEndRetry(message?: string): void;
|
|
121
|
+
showResumeStopped(): void;
|
|
95
122
|
showEnded(message?: string): void;
|
|
96
123
|
showLimit(message?: string): void;
|
|
97
124
|
showActiveElsewhere(active: boolean): void;
|
|
@@ -99,7 +126,10 @@ export declare class VoicePresenceView {
|
|
|
99
126
|
updateHighlight(element: Element | null, status: "focus" | "success" | "failure"): void;
|
|
100
127
|
safetySurfaceVisible(): boolean;
|
|
101
128
|
cancelPendingConfirmation(): boolean;
|
|
102
|
-
resolvePendingConfirmation(approved: boolean
|
|
129
|
+
resolvePendingConfirmation(approved: boolean, expected?: {
|
|
130
|
+
actionId: string;
|
|
131
|
+
proposalChecksum: string;
|
|
132
|
+
}): boolean;
|
|
103
133
|
destroy(): void;
|
|
104
134
|
private build;
|
|
105
135
|
private bind;
|
|
@@ -114,12 +144,17 @@ export declare class VoicePresenceView {
|
|
|
114
144
|
private closeActivation;
|
|
115
145
|
private showAttribution;
|
|
116
146
|
private hideAttribution;
|
|
117
|
-
private
|
|
147
|
+
private resolvePageAssistanceRequest;
|
|
148
|
+
private hidePageAssistanceRequest;
|
|
149
|
+
private syncPageAssistanceRevoke;
|
|
118
150
|
private renderSafetyCard;
|
|
119
151
|
private hideSafetyCard;
|
|
152
|
+
private restoreSafetyDialogAttributes;
|
|
120
153
|
private resolveConfirmation;
|
|
121
154
|
private resolveVisualRequest;
|
|
155
|
+
private resolveHandoffContextRequest;
|
|
122
156
|
private renderRecoveryCard;
|
|
157
|
+
private hideRecoveryCard;
|
|
123
158
|
private syncSubtitleOcclusion;
|
|
124
159
|
private configuredFallback;
|
|
125
160
|
private showTransientStatus;
|
|
@@ -140,6 +175,10 @@ export declare class VoicePresenceView {
|
|
|
140
175
|
private stopLevelLoop;
|
|
141
176
|
private stopAudio;
|
|
142
177
|
private onVisibilityChange;
|
|
178
|
+
private onReducedMotionChange;
|
|
179
|
+
private motionEnabled;
|
|
180
|
+
private isReducedMotionRequested;
|
|
181
|
+
private syncMotionPolicy;
|
|
143
182
|
private activeAnalyser;
|
|
144
183
|
private legalLink;
|
|
145
184
|
private launcherLabel;
|