@webex/plugin-meetings 3.12.0-llmrefactor.7 → 3.12.0-llmrefactor.9

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.
@@ -381,7 +381,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
381
381
  throw error;
382
382
  });
383
383
  },
384
- version: "3.12.0-llmrefactor.7"
384
+ version: "3.12.0-llmrefactor.9"
385
385
  });
386
386
  var _default = exports.default = SimultaneousInterpretation;
387
387
  //# sourceMappingURL=index.js.map
@@ -18,7 +18,7 @@ var SILanguage = _webexCore.WebexPlugin.extend({
18
18
  languageCode: 'number',
19
19
  languageName: 'string'
20
20
  },
21
- version: "3.12.0-llmrefactor.7"
21
+ version: "3.12.0-llmrefactor.9"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -506,6 +506,18 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
506
506
  this.updateLinks(locus.links);
507
507
  }
508
508
 
509
+ /**
510
+ * Whether we expect to receive updates over the LLM connection. This is used by hash tree parsers
511
+ * to decide whether to arm heartbeat watchdog timers for LLM data sets.
512
+ * @returns {boolean}
513
+ */
514
+ }, {
515
+ key: "isLlmExpected",
516
+ value: function isLlmExpected() {
517
+ var _this$parsedLocus$sel, _this$parsedLocus$sel2;
518
+ return ((_this$parsedLocus$sel = this.parsedLocus.self) === null || _this$parsedLocus$sel === void 0 ? void 0 : (_this$parsedLocus$sel2 = _this$parsedLocus$sel.joinedWith) === null || _this$parsedLocus$sel2 === void 0 ? void 0 : _this$parsedLocus$sel2.state) === 'JOINED';
519
+ }
520
+
509
521
  /**
510
522
  * Creates a HashTreeParser instance for a given locusUrl and stores it in the map.
511
523
  * @param {Object} params
@@ -534,8 +546,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
534
546
  locusInfoUpdateCallback: this.updateFromHashTree.bind(this, locusUrl),
535
547
  syncLatencyTracker: this.callbacks.syncLatencyTracker,
536
548
  isLlmExpected: function isLlmExpected() {
537
- var _this4$parsedLocus$se, _this4$parsedLocus$se2;
538
- return ((_this4$parsedLocus$se = _this4.parsedLocus.self) === null || _this4$parsedLocus$se === void 0 ? void 0 : (_this4$parsedLocus$se2 = _this4$parsedLocus$se.joinedWith) === null || _this4$parsedLocus$se2 === void 0 ? void 0 : _this4$parsedLocus$se2.state) === 'JOINED';
549
+ return _this4.isLlmExpected();
539
550
  },
540
551
  // Reuse webex-core's tracking-id interceptor sequence (exposed publicly via
541
552
  // webexTrackingIdSequenceNumbers) so Locus requests share the client's unified
@@ -2318,8 +2329,8 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
2318
2329
  }, {
2319
2330
  key: "updateMeetingInfo",
2320
2331
  value: function updateMeetingInfo(info, self) {
2321
- var _this$parsedLocus$sel;
2322
- var roles = self ? _selfUtils.default.getRoles(self) : ((_this$parsedLocus$sel = this.parsedLocus.self) === null || _this$parsedLocus$sel === void 0 ? void 0 : _this$parsedLocus$sel.roles) || [];
2332
+ var _this$parsedLocus$sel3;
2333
+ var roles = self ? _selfUtils.default.getRoles(self) : ((_this$parsedLocus$sel3 = this.parsedLocus.self) === null || _this$parsedLocus$sel3 === void 0 ? void 0 : _this$parsedLocus$sel3.roles) || [];
2323
2334
  var isJoined = _selfUtils.default.isJoined(self || this.parsedLocus.self);
2324
2335
 
2325
2336
  // The parsed userDisplayHints depend on info, roles and isJoined, so we must recompute
@@ -2434,6 +2445,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
2434
2445
  value: function updateSelf(self) {
2435
2446
  if (self) {
2436
2447
  var _this$parsedLocus$ful7, _this$parsedLocus$inf;
2448
+ var wasLlmExpected = this.isLlmExpected();
2437
2449
  // @ts-ignore
2438
2450
  var parsedSelves = _selfUtils.default.getSelves(this.parsedLocus.self, self, this.webex.internal.device.url, this.participants // using this.participants instead of locus.participants here, because with delta DTOs locus.participants will only contain a small subset of participants
2439
2451
  );
@@ -2620,6 +2632,15 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
2620
2632
  this.parsedLocus.self = parsedSelves.current;
2621
2633
  // @ts-ignore
2622
2634
  this.self = self;
2635
+
2636
+ // If LLM just became expected (self reported JOINED), some hash tree parsers may have skipped
2637
+ // arming heartbeat watchdog timers for LLM data sets whose messages arrived before this
2638
+ // update. Re-evaluate them now so those watchdogs get armed.
2639
+ if (!wasLlmExpected && this.isLlmExpected()) {
2640
+ this.hashTreeParsers.forEach(function (entry) {
2641
+ entry.parser.reevaluateLlmWatchdogs();
2642
+ });
2643
+ }
2623
2644
  } else {
2624
2645
  this.compareAndUpdateFlags.compareHostAndSelf = false;
2625
2646
  }