mitra-interactions-sdk 1.0.60-beta.37 → 1.0.60-beta.38

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.
package/dist/index.js CHANGED
@@ -868,6 +868,7 @@ var AgentTaskSession = class {
868
868
  // ── Eventos do stream (WsOutboundMessage { type, payload, timestamp }) ──
869
869
  _handleWsEvent(msg) {
870
870
  var _a, _b, _c, _d, _e, _f, _g, _h;
871
+ if (!msg || typeof msg.type !== "string" || !msg.type) return;
871
872
  const { type, payload } = msg;
872
873
  switch (type) {
873
874
  case "textDelta": {