@exotel-npm-dev/exotel-ai-assist 1.2.7 → 1.2.8

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.
@@ -1833,7 +1833,7 @@ class ExotelAIAssistController extends EventEmitter {
1833
1833
  this.emit("streamState", state);
1834
1834
  if (state === "connected" || state === "throttled") {
1835
1835
  this._fireReady();
1836
- } else if ((state === "connection_timeout" || state === "disconnected") && this.readyFired) {
1836
+ } else if (this.readyFired) {
1837
1837
  this.readyFired = false;
1838
1838
  this.emit("onReady", false);
1839
1839
  }
package/dist/index.js CHANGED
@@ -21275,7 +21275,7 @@ class ExotelAIAssistController extends EventEmitter {
21275
21275
  this.emit("streamState", state);
21276
21276
  if (state === "connected" || state === "throttled") {
21277
21277
  this._fireReady();
21278
- } else if ((state === "connection_timeout" || state === "disconnected") && this.readyFired) {
21278
+ } else if (this.readyFired) {
21279
21279
  this.readyFired = false;
21280
21280
  this.emit("onReady", false);
21281
21281
  }
@@ -6561,7 +6561,7 @@ class ExotelAIAssistController extends EventEmitter {
6561
6561
  this.emit("streamState", state);
6562
6562
  if (state === "connected" || state === "throttled") {
6563
6563
  this._fireReady();
6564
- } else if ((state === "connection_timeout" || state === "disconnected") && this.readyFired) {
6564
+ } else if (this.readyFired) {
6565
6565
  this.readyFired = false;
6566
6566
  this.emit("onReady", false);
6567
6567
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exotel-npm-dev/exotel-ai-assist",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "AI-powered real-time suggestions, transcript, and sentiment for agent calls",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -290,7 +290,7 @@ export class ExotelAIAssistController extends EventEmitter<ControllerEvents> {
290
290
  this.emit("streamState", state);
291
291
  if (state === "connected" || state === "throttled") {
292
292
  this._fireReady();
293
- } else if ((state === "connection_timeout" || state === "disconnected") && this.readyFired) {
293
+ } else if (this.readyFired) {
294
294
  this.readyFired = false;
295
295
  this.emit("onReady", false);
296
296
  }