ttp-agent-sdk 2.48.10 → 2.48.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.
@@ -12047,7 +12047,7 @@ var TextChatSDK = /*#__PURE__*/function (_EventEmitter) {
12047
12047
 
12048
12048
  // SDK build time for debugging
12049
12049
  if (true) {
12050
- helloMessage.lastBuildTime = "2026-08-20T23:29:16.481Z";
12050
+ helloMessage.lastBuildTime = "2026-08-20T23:53:22.119Z";
12051
12051
  }
12052
12052
  try {
12053
12053
  this.ws.send(JSON.stringify(helloMessage));
@@ -21357,8 +21357,8 @@ var VoiceSDK = _v2_VoiceSDK_js__WEBPACK_IMPORTED_MODULE_0__["default"];
21357
21357
 
21358
21358
 
21359
21359
  // Version - injected at build time from package.json via webpack DefinePlugin
21360
- var VERSION = "2.48.10";
21361
- var BUILD_TIME = "2026-08-20T23:29:16.481Z";
21360
+ var VERSION = "2.48.11";
21361
+ var BUILD_TIME = "2026-08-20T23:53:22.119Z";
21362
21362
  console.log("%c TTP Agent SDK v".concat(VERSION, " (").concat(BUILD_TIME, ") "), 'background: #4f46e5; color: white; font-size: 12px; font-weight: bold; padding: 2px 6px; border-radius: 4px;');
21363
21363
 
21364
21364
  // Named exports
@@ -27082,6 +27082,15 @@ var AudioPlayer = /*#__PURE__*/function (_EventEmitter) {
27082
27082
  }, {
27083
27083
  key: "wantsHtmlAudioPlayback",
27084
27084
  value: function wantsHtmlAudioPlayback() {
27085
+ // Debug/QA override: ?ttp_hop=0|1 or localStorage 'ttp_hop' forces the route
27086
+ // at the decision point, regardless of which config object reached us.
27087
+ try {
27088
+ var _URLSearchParams$get;
27089
+ var flag = (_URLSearchParams$get = new URLSearchParams(window.location.search).get('ttp_hop')) !== null && _URLSearchParams$get !== void 0 ? _URLSearchParams$get : window.localStorage.getItem('ttp_hop');
27090
+ if (flag === '0' || flag === '1') {
27091
+ return flag === '1';
27092
+ }
27093
+ } catch (e) {/* non-browser env */}
27085
27094
  return this.config.htmlAudioPlayback !== false;
27086
27095
  }
27087
27096
  }, {
@@ -28399,7 +28408,12 @@ var VoiceSDK_v2 = /*#__PURE__*/function (_EventEmitter) {
28399
28408
  console.log("\uD83D\uDD27 VoiceSDK v2: ttp_hop override=".concat(flag, " \u2192 htmlAudioPlayback=").concat(flag === '1'));
28400
28409
  return flag === '1';
28401
28410
  }
28402
- } catch (e) {/* non-browser env */}
28411
+ if (flag !== null && flag !== undefined) {
28412
+ console.log("\uD83D\uDD27 VoiceSDK v2: ttp_hop ignored (value '".concat(flag, "', expected '0' or '1')"));
28413
+ }
28414
+ } catch (e) {
28415
+ console.log('🔧 VoiceSDK v2: ttp_hop check threw (storage blocked?):', e && e.message);
28416
+ }
28403
28417
  return config.htmlAudioPlayback !== false;
28404
28418
  }(),
28405
28419
  // Protocol version
@@ -29276,7 +29290,7 @@ var VoiceSDK_v2 = /*#__PURE__*/function (_EventEmitter) {
29276
29290
  // iOS in-app webviews lack "Safari" in the UA (real Safari always has it).
29277
29291
  var webview = isAndroid && (/\bwv\b/.test(ua) || /Version\/[\d.]+.*Chrome/.test(ua)) || isIos && !/Safari/i.test(ua) || false;
29278
29292
  var env = {
29279
- sdkVersion: true ? "2.48.10" : 0,
29293
+ sdkVersion: true ? "2.48.11" : 0,
29280
29294
  ua: ua,
29281
29295
  platform: (uaData === null || uaData === void 0 ? void 0 : uaData.platform) || navigator.platform || '',
29282
29296
  mobile: (_uaData$mobile = uaData === null || uaData === void 0 ? void 0 : uaData.mobile) !== null && _uaData$mobile !== void 0 ? _uaData$mobile : isAndroid || isIos,
@@ -29291,7 +29305,7 @@ var VoiceSDK_v2 = /*#__PURE__*/function (_EventEmitter) {
29291
29305
  } catch (e) {
29292
29306
  console.warn('⚠️ VoiceSDK v2: Failed to build client env:', e);
29293
29307
  return {
29294
- sdkVersion: true ? "2.48.10" : 0
29308
+ sdkVersion: true ? "2.48.11" : 0
29295
29309
  };
29296
29310
  }
29297
29311
  }
@@ -29433,7 +29447,7 @@ var VoiceSDK_v2 = /*#__PURE__*/function (_EventEmitter) {
29433
29447
 
29434
29448
  // Include SDK build time for debugging
29435
29449
  if (true) {
29436
- helloMessage.lastBuildTime = "2026-08-20T23:29:16.481Z";
29450
+ helloMessage.lastBuildTime = "2026-08-20T23:53:22.119Z";
29437
29451
  }
29438
29452
 
29439
29453
  // Client environment (device/browser/webview) for backend logs + Langfuse metadata
@@ -35618,7 +35632,7 @@ var TTPChatWidget = /*#__PURE__*/function () {
35618
35632
  return;
35619
35633
  }
35620
35634
  this._ensureAboutStyles();
35621
- var version = true ? "2.48.10" : 0;
35635
+ var version = true ? "2.48.11" : 0;
35622
35636
  var convId = this._getLastConversationId();
35623
35637
  var t = function t(k, fb) {
35624
35638
  try {