@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.
@@ -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.9";
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 = parent?.closest('[role="img"][aria-label]') ?? null;
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') ?? node.textContent ?? '', 500);
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.9";
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.9";
1
+ export declare const VERSION = "7.5.11";
package/cjs/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '7.5.9';
4
+ exports.VERSION = '7.5.11';
@@ -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.9";
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 = parent?.closest('[role="img"][aria-label]') ?? null;
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') ?? node.textContent ?? '', 500);
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.9";
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.9";
1
+ export declare const VERSION = "7.5.11";
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = '7.5.9';
1
+ export const VERSION = '7.5.11';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oxvo/ai-live-assist",
3
3
  "description": "Secure AI Guide browser plugin for OXVO Sessions.",
4
- "version": "7.5.9",
4
+ "version": "7.5.11",
5
5
  "keywords": [
6
6
  "ai-live-assist",
7
7
  "webrtc",