ttp-agent-sdk 2.48.9 → 2.48.10

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:15:39.613Z";
12050
+ helloMessage.lastBuildTime = "2026-08-20T23:29:16.481Z";
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.9";
21361
- var BUILD_TIME = "2026-08-20T23:15:39.613Z";
21360
+ var VERSION = "2.48.10";
21361
+ var BUILD_TIME = "2026-08-20T23:29:16.481Z";
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
@@ -28389,7 +28389,19 @@ var VoiceSDK_v2 = /*#__PURE__*/function (_EventEmitter) {
28389
28389
  audioConstraints: config.audioConstraints || null,
28390
28390
  // Last-hop TTS playback via hidden <audio> (AEC far-end). Default on.
28391
28391
  // Set false to fall back to AudioContext.destination (old path).
28392
- htmlAudioPlayback: config.htmlAudioPlayback !== false,
28392
+ // QA/debug override wins over config: ?ttp_hop=0 / localStorage ttp_hop=0
28393
+ // forces AudioContext.destination; =1 forces the HTML hop.
28394
+ htmlAudioPlayback: function () {
28395
+ try {
28396
+ var _URLSearchParams$get;
28397
+ var flag = (_URLSearchParams$get = new URLSearchParams(window.location.search).get('ttp_hop')) !== null && _URLSearchParams$get !== void 0 ? _URLSearchParams$get : window.localStorage.getItem('ttp_hop');
28398
+ if (flag === '0' || flag === '1') {
28399
+ console.log("\uD83D\uDD27 VoiceSDK v2: ttp_hop override=".concat(flag, " \u2192 htmlAudioPlayback=").concat(flag === '1'));
28400
+ return flag === '1';
28401
+ }
28402
+ } catch (e) {/* non-browser env */}
28403
+ return config.htmlAudioPlayback !== false;
28404
+ }(),
28393
28405
  // Protocol version
28394
28406
 
28395
28407
  protocolVersion: config.protocolVersion || 2,
@@ -29264,7 +29276,7 @@ var VoiceSDK_v2 = /*#__PURE__*/function (_EventEmitter) {
29264
29276
  // iOS in-app webviews lack "Safari" in the UA (real Safari always has it).
29265
29277
  var webview = isAndroid && (/\bwv\b/.test(ua) || /Version\/[\d.]+.*Chrome/.test(ua)) || isIos && !/Safari/i.test(ua) || false;
29266
29278
  var env = {
29267
- sdkVersion: true ? "2.48.9" : 0,
29279
+ sdkVersion: true ? "2.48.10" : 0,
29268
29280
  ua: ua,
29269
29281
  platform: (uaData === null || uaData === void 0 ? void 0 : uaData.platform) || navigator.platform || '',
29270
29282
  mobile: (_uaData$mobile = uaData === null || uaData === void 0 ? void 0 : uaData.mobile) !== null && _uaData$mobile !== void 0 ? _uaData$mobile : isAndroid || isIos,
@@ -29279,7 +29291,7 @@ var VoiceSDK_v2 = /*#__PURE__*/function (_EventEmitter) {
29279
29291
  } catch (e) {
29280
29292
  console.warn('⚠️ VoiceSDK v2: Failed to build client env:', e);
29281
29293
  return {
29282
- sdkVersion: true ? "2.48.9" : 0
29294
+ sdkVersion: true ? "2.48.10" : 0
29283
29295
  };
29284
29296
  }
29285
29297
  }
@@ -29421,7 +29433,7 @@ var VoiceSDK_v2 = /*#__PURE__*/function (_EventEmitter) {
29421
29433
 
29422
29434
  // Include SDK build time for debugging
29423
29435
  if (true) {
29424
- helloMessage.lastBuildTime = "2026-08-20T23:15:39.613Z";
29436
+ helloMessage.lastBuildTime = "2026-08-20T23:29:16.481Z";
29425
29437
  }
29426
29438
 
29427
29439
  // Client environment (device/browser/webview) for backend logs + Langfuse metadata
@@ -35606,7 +35618,7 @@ var TTPChatWidget = /*#__PURE__*/function () {
35606
35618
  return;
35607
35619
  }
35608
35620
  this._ensureAboutStyles();
35609
- var version = true ? "2.48.9" : 0;
35621
+ var version = true ? "2.48.10" : 0;
35610
35622
  var convId = this._getLastConversationId();
35611
35623
  var t = function t(k, fb) {
35612
35624
  try {