Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

style: format meeting detection helpers with prettier

Gabriel Steinfe578e552efd
diff --git a/src/helpers/audioActivityDetector.js b/src/helpers/audioActivityDetector.js
index 5ab8f6f42..3d20a43ba 100644
--- a/src/helpers/audioActivityDetector.js
+++ b/src/helpers/audioActivityDetector.js
@@ -208,7 +208,11 @@ class AudioActivityDetector extends EventEmitter {
});
child.stderr.on("data", (data) => {
- debugLogger.debug("macos-mic-listener stderr", { output: data.toString().trim() }, "meeting");
+ debugLogger.debug(
+ "macos-mic-listener stderr",
+ { output: data.toString().trim() },
+ "meeting"
+ );
});
this._attachFallbackHandlers(child, "macos-mic-listener");
@@ -245,7 +249,11 @@ class AudioActivityDetector extends EventEmitter {
});
child.stderr.on("data", (data) => {
- debugLogger.debug("windows-mic-listener stderr", { output: data.toString().trim() }, "meeting");
+ debugLogger.debug(
+ "windows-mic-listener stderr",
+ { output: data.toString().trim() },
+ "meeting"
+ );
});
this._attachFallbackHandlers(child, "windows-mic-listener");
diff --git a/src/helpers/googleCalendarManager.js b/src/helpers/googleCalendarManager.js
index 544930233..85820b248 100644
--- a/src/helpers/googleCalendarManager.js
+++ b/src/helpers/googleCalendarManager.js
@@ -307,9 +307,7 @@ class GoogleCalendarManager {
this._consecutiveFailures = 0;
this._restartSyncInterval();
})
- .catch((err) =>
- debugLogger.error("Post-wake sync failed", { error: err.message }, "gcal")
- );
+ .catch((err) => debugLogger.error("Post-wake sync failed", { error: err.message }, "gcal"));
}
syncOnFocus() {
@@ -379,7 +377,11 @@ class GoogleCalendarManager {
if (this.syncInterval) clearInterval(this.syncInterval);
const interval = this._getSyncInterval();
- debugLogger.info("Calendar sync scheduled", { intervalMs: interval, consecutiveFailures: this._consecutiveFailures }, "gcal");
+ debugLogger.info(
+ "Calendar sync scheduled",
+ { intervalMs: interval, consecutiveFailures: this._consecutiveFailures },
+ "gcal"
+ );
this.syncInterval = setInterval(() => {
this.syncEvents()
@@ -392,11 +394,15 @@ class GoogleCalendarManager {
})
.catch((err) => {
this._consecutiveFailures++;
- debugLogger.error("Calendar sync failed", {
- error: err.message,
- consecutiveFailures: this._consecutiveFailures,
- nextIntervalMs: this._getSyncInterval()
- }, "gcal");
+ debugLogger.error(
+ "Calendar sync failed",
+ {
+ error: err.message,
+ consecutiveFailures: this._consecutiveFailures,
+ nextIntervalMs: this._getSyncInterval(),
+ },
+ "gcal"
+ );
this._restartSyncInterval();
});
}, interval);
@@ -404,10 +410,7 @@ class GoogleCalendarManager {
_getSyncInterval() {
if (this._consecutiveFailures === 0) return this.SYNC_INTERVAL_MS;
- return Math.min(
- this.SYNC_INTERVAL_MS * Math.pow(2, this._consecutiveFailures),
- 30 * 60 * 1000
- );
+ return Math.min(this.SYNC_INTERVAL_MS * Math.pow(2, this._consecutiveFailures), 30 * 60 * 1000);
}
_restartSyncInterval() {
diff --git a/src/helpers/meetingDetectionEngine.js b/src/helpers/meetingDetectionEngine.js
index e9f648fa8..908e73b67 100644
--- a/src/helpers/meetingDetectionEngine.js
+++ b/src/helpers/meetingDetectionEngine.js
@@ -196,7 +196,11 @@ class MeetingDetectionEngine {
_flushNotificationQueue() {
if (this._notificationQueue.length === 0) return;
- debugLogger.info("Flushing notification queue", { count: this._notificationQueue.length }, "meeting");
+ debugLogger.info(
+ "Flushing notification queue",
+ { count: this._notificationQueue.length },
+ "meeting"
+ );
const prioritized = this._notificationQueue.sort((a, b) => {
const priority = { process: 1, audio: 2 };
diff --git a/src/helpers/meetingProcessDetector.js b/src/helpers/meetingProcessDetector.js
index 2a6b244e2..ca47ff512 100644
--- a/src/helpers/meetingProcessDetector.js
+++ b/src/helpers/meetingProcessDetector.js
@@ -67,11 +67,7 @@ class MeetingProcessDetector extends EventEmitter {
try {
systemPreferences = require("electron").systemPreferences;
} catch {
- debugLogger.warn(
- "systemPreferences unavailable, falling back to polling",
- {},
- "meeting"
- );
+ debugLogger.warn("systemPreferences unavailable, falling back to polling", {}, "meeting");
this._startPollingFallback();
return;
}
@@ -93,11 +89,7 @@ class MeetingProcessDetector extends EventEmitter {
const processKey = bundleId ? BUNDLE_ID_MAP[bundleId] : null;
if (processKey) {
const appName = BUNDLE_APP_NAMES[processKey] || processKey;
- debugLogger.debug(
- "Workspace app launched",
- { bundleId, processKey },
- "meeting"
- );
+ debugLogger.debug("Workspace app launched", { bundleId, processKey }, "meeting");
this._updateDetection(processKey, appName, true);
}
}
@@ -110,11 +102,7 @@ class MeetingProcessDetector extends EventEmitter {
const processKey = bundleId ? BUNDLE_ID_MAP[bundleId] : null;
if (processKey) {
const appName = BUNDLE_APP_NAMES[processKey] || processKey;
- debugLogger.debug(
- "Workspace app terminated",
- { bundleId, processKey },
- "meeting"
- );
+ debugLogger.debug("Workspace app terminated", { bundleId, processKey }, "meeting");
this._updateDetection(processKey, appName, false);
}
}