cosmic-ai-genius 0.3.42 → 0.3.43

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.
@@ -22255,7 +22255,7 @@ const I4 = () => {
22255
22255
  var Me, Ee, je, He, Ge, Ve, nt, ct;
22256
22256
  if (console.log("🎤 SDK: Received global message:", Te.data), console.log("🎤 SDK: Current voice states - isVoiceMode:", Q, "isVoiceConnected:", z), ((Me = Te.data) == null ? void 0 : Me.type_) === "Response" && ((Ee = Te.data) == null ? void 0 : Ee.id) === 452) {
22257
22257
  const Qe = (je = Te.data) == null ? void 0 : je.message;
22258
- console.log("🎤 SDK: Processing permission response:", Qe), Qe === "granted" ? (console.log("🎤 SDK: ✅ Permission granted - opening voice mode"), g("granted"), Q ? console.log("🎤 SDK: ⚠️ Already in voice mode - ignoring duplicate permission grant") : (console.log("🎤 SDK: Activating voice mode..."), le(!1), ae(!0), S(
22258
+ console.log("🎤 SDK: 🎉 RECEIVED PERMISSION RESPONSE FROM RESCRIPT!"), console.log("🎤 SDK: Processing permission response:", Qe), console.log("🎤 SDK: Full event data:", JSON.stringify(Te.data)), Qe === "granted" ? (console.log("🎤 SDK: ✅ Permission granted - opening voice mode"), g("granted"), Q ? console.log("🎤 SDK: ⚠️ Already in voice mode - ignoring duplicate permission grant") : (console.log("🎤 SDK: Activating voice mode..."), le(!1), ae(!0), S(
22259
22259
  (Oe) => Oe.map((et) => ({ ...et, skipAnimation: !0 }))
22260
22260
  ), console.log("🎤 SDK: ✅ Voice mode activated successfully"))) : Qe === "denied" || Qe === "blocked" ? (console.log("🎤 SDK: ❌ Permission denied - staying in text mode"), g("denied")) : console.log("🎤 SDK: ⚠️ Unknown permission response:", Qe);
22261
22261
  } else ((He = Te.data) == null ? void 0 : He.type) === "VOICE_CLIENT_DISCONNECTED" ? (console.log("🎤 SDK: Received voice client disconnected confirmation"), ae(!1), le(!1)) : ((Ge = Te.data) == null ? void 0 : Ge.type_) === "microphoneRequest" && ((Ve = Te.data) == null ? void 0 : Ve.id) === 452 ? console.log("🎤 SDK: Ignoring our own microphone request message") : console.log("🎤 SDK: Non-permission message received:", ((nt = Te.data) == null ? void 0 : nt.type_) || ((ct = Te.data) == null ? void 0 : ct.type));
@@ -23314,7 +23314,7 @@ const I4 = () => {
23314
23314
  console.log("🎤 SDK: ⏰ Checking permission status after timeout..."), console.log("🎤 SDK: Current permission status:", ge), ge === "granted" && !Q ? (console.log("🎤 SDK: ✅ Permission was granted - activating voice mode via timeout check"), le(!1), ae(!0), S(
23315
23315
  (Te) => Te.map((Me) => ({ ...Me, skipAnimation: !0 }))
23316
23316
  ), console.log("🎤 SDK: ✅ Voice mode activated via timeout with granted permission")) : console.log(ge === "denied" ? "🎤 SDK: ❌ Permission was denied - staying in text mode" : ge === "unknown" ? "🎤 SDK: ⚠️ No permission response received - staying in text mode for safety" : "🎤 SDK: ✅ Voice mode already active or permission handled normally");
23317
- }, 1e3);
23317
+ }, 5e3);
23318
23318
  }
23319
23319
  }, me = () => {
23320
23320
  console.log("🎤 SDK: Closing voice mode - disconnecting client..."), window.postMessage({ type: "DISCONNECT_VOICE_CLIENT" }, "*"), ae(!1), le(!1), setTimeout(() => {