@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/cjs/context.d.ts
CHANGED
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import type { ActionExecutionResult, ActionGrant, PageContextSnapshot, PresentationTarget, VisualContextCapture } from './types.js';
|
|
1
|
+
import type { ActionExecutionResult, ActionGrant, PageContextSnapshot, SanitizedTarget, PresentationTarget, VisualContextCapture } from './types.js';
|
|
2
|
+
export declare const actionTargetFingerprint: (target: SanitizedTarget, subtle?: Pick<SubtleCrypto, "digest"> | undefined) => Promise<string | null>;
|
|
2
3
|
type SelectorRegionRule = {
|
|
3
4
|
digest: string;
|
|
4
5
|
selector: string;
|
|
5
6
|
};
|
|
6
7
|
type ContextCallbacks = {
|
|
7
8
|
onSnapshot: (snapshot: PageContextSnapshot) => void | Promise<void>;
|
|
8
|
-
|
|
9
|
+
onActionMutationApplied?: (actionId: string, revision: number, url: string) => void;
|
|
10
|
+
onCausalNavigationObserved?: (pageId: string, revision: number, url: string, causalActionId: string) => void;
|
|
11
|
+
onNavigation: (pageId: string, revision: number, url: string, causalActionId?: string) => boolean | void | Promise<boolean | void>;
|
|
9
12
|
onHighlight: (element: Element | null, status: 'focus' | 'success' | 'failure') => void;
|
|
10
13
|
};
|
|
11
14
|
export declare class PageContextCollector {
|
|
12
15
|
private readonly callbacks;
|
|
13
16
|
private readonly selectorRegionRules;
|
|
14
17
|
private readonly policyVersion;
|
|
18
|
+
private readonly trustedGuideRoot;
|
|
19
|
+
private readonly statefulButtonActionProof;
|
|
15
20
|
private pageId;
|
|
16
21
|
private revision;
|
|
17
22
|
private running;
|
|
@@ -28,19 +33,21 @@ export declare class PageContextCollector {
|
|
|
28
33
|
private pendingNavigation;
|
|
29
34
|
private pendingCapture;
|
|
30
35
|
private deferredNavigation;
|
|
36
|
+
private navigationSettlementGeneration;
|
|
37
|
+
private navigationSettlement;
|
|
31
38
|
private recentSelection;
|
|
32
39
|
private latestSemanticSignature;
|
|
33
|
-
constructor(callbacks: ContextCallbacks, selectorRegionRules?: SelectorRegionRule[], policyVersion?: number);
|
|
40
|
+
constructor(callbacks: ContextCallbacks, selectorRegionRules?: SelectorRegionRule[], policyVersion?: number, trustedGuideRoot?: Element | null, statefulButtonActionProof?: boolean);
|
|
34
41
|
get currentRevision(): number;
|
|
35
42
|
get currentPageId(): string;
|
|
36
43
|
presentationTarget(targetId: string, revision: number): PresentationTarget | null;
|
|
37
44
|
start(): void;
|
|
38
45
|
stop(): void;
|
|
39
|
-
captureAndPublish(): Promise<PageContextSnapshot>;
|
|
46
|
+
captureAndPublish(): Promise<PageContextSnapshot | null>;
|
|
40
47
|
capture(): PageContextSnapshot;
|
|
41
48
|
private captureSnapshot;
|
|
42
49
|
captureVisualContext(): VisualContextCapture | null;
|
|
43
|
-
execute(grant: ActionGrant): Promise<ActionExecutionResult>;
|
|
50
|
+
execute(grant: ActionGrant, authorityIsCurrent?: () => boolean): Promise<ActionExecutionResult>;
|
|
44
51
|
completeActionExecution(actionId: string): Promise<string | null>;
|
|
45
52
|
private click;
|
|
46
53
|
private type;
|
|
@@ -59,6 +66,9 @@ export declare class PageContextCollector {
|
|
|
59
66
|
private handleControlStateChange;
|
|
60
67
|
private readSafeSelection;
|
|
61
68
|
private handleNavigation;
|
|
69
|
+
private beginNavigationSettlement;
|
|
70
|
+
private observeCausalNavigationAfterMutation;
|
|
71
|
+
private reportCausalNavigationObservation;
|
|
62
72
|
private installNavigationHooks;
|
|
63
73
|
private restoreNavigationHooks;
|
|
64
74
|
private reducedMotion;
|