ttp-agent-sdk 2.46.1 → 2.46.2

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.
@@ -11993,7 +11993,7 @@ var TextChatSDK = /*#__PURE__*/function (_EventEmitter) {
11993
11993
 
11994
11994
  // SDK build time for debugging
11995
11995
  if (true) {
11996
- helloMessage.lastBuildTime = "2026-07-13T08:30:44.984Z";
11996
+ helloMessage.lastBuildTime = "2026-07-13T09:41:28.306Z";
11997
11997
  }
11998
11998
  try {
11999
11999
  this.ws.send(JSON.stringify(helloMessage));
@@ -21205,8 +21205,8 @@ var VoiceSDK = _v2_VoiceSDK_js__WEBPACK_IMPORTED_MODULE_0__["default"];
21205
21205
 
21206
21206
 
21207
21207
  // Version - injected at build time from package.json via webpack DefinePlugin
21208
- var VERSION = "2.46.1";
21209
- var BUILD_TIME = "2026-07-13T08:30:44.984Z";
21208
+ var VERSION = "2.46.2";
21209
+ var BUILD_TIME = "2026-07-13T09:41:28.306Z";
21210
21210
  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;');
21211
21211
 
21212
21212
  // Named exports
@@ -28702,6 +28702,16 @@ var VoiceSDK_v2 = /*#__PURE__*/function (_EventEmitter) {
28702
28702
  // Release wake lock on disconnect
28703
28703
  _this5._releaseWakeLock();
28704
28704
 
28705
+ // Monitor (listen-only supervision): the socket closing means the call ended —
28706
+ // flush any agent audio still queued in the player so listening stops immediately.
28707
+ if (_this5.isMonitor() && _this5.audioPlayer) {
28708
+ try {
28709
+ _this5.stopAudioPlayback();
28710
+ } catch (e) {
28711
+ console.warn('VoiceSDK v2: monitor close flush failed:', e);
28712
+ }
28713
+ }
28714
+
28705
28715
  // Reject all pending data injections on disconnect
28706
28716
  if (_this5.pendingInjections.size > 0) {
28707
28717
  console.warn("VoiceSDK v2: Rejecting ".concat(_this5.pendingInjections.size, " pending data injections due to disconnect"));
@@ -28877,7 +28887,7 @@ var VoiceSDK_v2 = /*#__PURE__*/function (_EventEmitter) {
28877
28887
 
28878
28888
  // Include SDK build time for debugging
28879
28889
  if (true) {
28880
- helloMessage.lastBuildTime = "2026-07-13T08:30:44.984Z";
28890
+ helloMessage.lastBuildTime = "2026-07-13T09:41:28.306Z";
28881
28891
  }
28882
28892
 
28883
28893
  // Page context is intentionally NOT attached to the hello message.
@@ -34904,7 +34914,7 @@ var TTPChatWidget = /*#__PURE__*/function () {
34904
34914
  return;
34905
34915
  }
34906
34916
  this._ensureAboutStyles();
34907
- var version = true ? "2.46.1" : 0;
34917
+ var version = true ? "2.46.2" : 0;
34908
34918
  var convId = this._getLastConversationId();
34909
34919
  var t = function t(k, fb) {
34910
34920
  try {