@oxvo/ai-live-assist 7.5.9 → 7.5.11
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 +1 -1
- package/cjs/context.js +8 -5
- package/cjs/liveControlChannel.d.ts +1 -1
- package/cjs/version.d.ts +1 -1
- package/cjs/version.js +1 -1
- package/lib/AiLiveAssist.d.ts +1 -1
- package/lib/context.js +8 -5
- package/lib/liveControlChannel.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/cjs/AiLiveAssist.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare const normalizeAiGuideOpenInput: (input?: AiGuideOpenInput) => Re
|
|
|
34
34
|
export declare const resolveAiGuideProtocolVersion: (bootstrap: Pick<BootstrapConfig, "experienceMode" | "minimumProtocolVersion" | "protocol">) => 1 | 2;
|
|
35
35
|
export default class AiLiveAssist {
|
|
36
36
|
private readonly options;
|
|
37
|
-
readonly version = "7.5.
|
|
37
|
+
readonly version = "7.5.11";
|
|
38
38
|
private readonly host;
|
|
39
39
|
private readonly guideAdmission;
|
|
40
40
|
private readonly standaloneAdmissionPending;
|
package/cjs/context.js
CHANGED
|
@@ -1235,15 +1235,18 @@ class PageContextCollector {
|
|
|
1235
1235
|
const visibleText = [];
|
|
1236
1236
|
const capturedSemanticText = new Set();
|
|
1237
1237
|
let totalText = 0;
|
|
1238
|
-
const walker = document.createTreeWalker(document.body ?? document.documentElement, NodeFilter.SHOW_TEXT);
|
|
1238
|
+
const walker = document.createTreeWalker(document.body ?? document.documentElement, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT);
|
|
1239
1239
|
let node = walker.nextNode();
|
|
1240
1240
|
while (node && visibleText.length < MAX_TEXT_ITEMS && totalText < MAX_TOTAL_TEXT) {
|
|
1241
|
-
const parent = node.parentElement;
|
|
1242
|
-
const semanticTextElement =
|
|
1241
|
+
const parent = node instanceof Element ? node : node.parentElement;
|
|
1242
|
+
const semanticTextElement = node instanceof Element
|
|
1243
|
+
? node.matches('[role="img"][aria-label]') ? node : null
|
|
1244
|
+
: parent?.closest('[role="img"][aria-label]') ?? null;
|
|
1243
1245
|
const textElement = semanticTextElement && isRendered(semanticTextElement)
|
|
1244
1246
|
? semanticTextElement
|
|
1245
|
-
: parent;
|
|
1246
|
-
const text = normalize(semanticTextElement?.getAttribute('aria-label') ??
|
|
1247
|
+
: node.nodeType === Node.TEXT_NODE ? parent : null;
|
|
1248
|
+
const text = normalize(semanticTextElement?.getAttribute('aria-label') ??
|
|
1249
|
+
(node.nodeType === Node.TEXT_NODE ? node.textContent ?? '' : ''), 500);
|
|
1247
1250
|
if (parent &&
|
|
1248
1251
|
textElement &&
|
|
1249
1252
|
text &&
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type LiveDuplexMediaOptions, type LiveDuplexMediaDependencies } from './liveDuplexMedia.js';
|
|
2
|
-
export declare const LIVE_CONTROL_CLIENT_VERSION = "7.5.
|
|
2
|
+
export declare const LIVE_CONTROL_CLIENT_VERSION = "7.5.11";
|
|
3
3
|
export declare const LIVE_CONTROL_CLIENT_CAPABILITIES: readonly ["live_duplex_v1", "live_local_wake_v1", "live_fragment_captions_v1"];
|
|
4
4
|
declare const phases: readonly ["voice_off", "local_listening", "wake_buffering", "starting", "active", "tentative_idle", "closing", "uncertain", "muted", "suspended", "budget_blocked", "ended"];
|
|
5
5
|
export type LiveControlState = {
|
package/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "7.5.
|
|
1
|
+
export declare const VERSION = "7.5.11";
|
package/cjs/version.js
CHANGED
package/lib/AiLiveAssist.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare const normalizeAiGuideOpenInput: (input?: AiGuideOpenInput) => Re
|
|
|
34
34
|
export declare const resolveAiGuideProtocolVersion: (bootstrap: Pick<BootstrapConfig, "experienceMode" | "minimumProtocolVersion" | "protocol">) => 1 | 2;
|
|
35
35
|
export default class AiLiveAssist {
|
|
36
36
|
private readonly options;
|
|
37
|
-
readonly version = "7.5.
|
|
37
|
+
readonly version = "7.5.11";
|
|
38
38
|
private readonly host;
|
|
39
39
|
private readonly guideAdmission;
|
|
40
40
|
private readonly standaloneAdmissionPending;
|
package/lib/context.js
CHANGED
|
@@ -1231,15 +1231,18 @@ export class PageContextCollector {
|
|
|
1231
1231
|
const visibleText = [];
|
|
1232
1232
|
const capturedSemanticText = new Set();
|
|
1233
1233
|
let totalText = 0;
|
|
1234
|
-
const walker = document.createTreeWalker(document.body ?? document.documentElement, NodeFilter.SHOW_TEXT);
|
|
1234
|
+
const walker = document.createTreeWalker(document.body ?? document.documentElement, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_TEXT);
|
|
1235
1235
|
let node = walker.nextNode();
|
|
1236
1236
|
while (node && visibleText.length < MAX_TEXT_ITEMS && totalText < MAX_TOTAL_TEXT) {
|
|
1237
|
-
const parent = node.parentElement;
|
|
1238
|
-
const semanticTextElement =
|
|
1237
|
+
const parent = node instanceof Element ? node : node.parentElement;
|
|
1238
|
+
const semanticTextElement = node instanceof Element
|
|
1239
|
+
? node.matches('[role="img"][aria-label]') ? node : null
|
|
1240
|
+
: parent?.closest('[role="img"][aria-label]') ?? null;
|
|
1239
1241
|
const textElement = semanticTextElement && isRendered(semanticTextElement)
|
|
1240
1242
|
? semanticTextElement
|
|
1241
|
-
: parent;
|
|
1242
|
-
const text = normalize(semanticTextElement?.getAttribute('aria-label') ??
|
|
1243
|
+
: node.nodeType === Node.TEXT_NODE ? parent : null;
|
|
1244
|
+
const text = normalize(semanticTextElement?.getAttribute('aria-label') ??
|
|
1245
|
+
(node.nodeType === Node.TEXT_NODE ? node.textContent ?? '' : ''), 500);
|
|
1243
1246
|
if (parent &&
|
|
1244
1247
|
textElement &&
|
|
1245
1248
|
text &&
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type LiveDuplexMediaOptions, type LiveDuplexMediaDependencies } from './liveDuplexMedia.js';
|
|
2
|
-
export declare const LIVE_CONTROL_CLIENT_VERSION = "7.5.
|
|
2
|
+
export declare const LIVE_CONTROL_CLIENT_VERSION = "7.5.11";
|
|
3
3
|
export declare const LIVE_CONTROL_CLIENT_CAPABILITIES: readonly ["live_duplex_v1", "live_local_wake_v1", "live_fragment_captions_v1"];
|
|
4
4
|
declare const phases: readonly ["voice_off", "local_listening", "wake_buffering", "starting", "active", "tentative_idle", "closing", "uncertain", "muted", "suspended", "budget_blocked", "ended"];
|
|
5
5
|
export type LiveControlState = {
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "7.5.
|
|
1
|
+
export declare const VERSION = "7.5.11";
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '7.5.
|
|
1
|
+
export const VERSION = '7.5.11';
|