Skip to content

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

merge: main into agent-calendar-merge

Gabriel Steinf70621ee1196
diff --cc src/components/ControlPanel.tsx
index 192c74a2a,0152fc138..c530583e5
--- a/src/components/ControlPanel.tsx
+++ b/src/components/ControlPanel.tsx
@@@ -30,7 -30,7 +31,8 @@@ const ReferralModal = React.lazy(() =>
const PersonalNotesView = React.lazy(() => import("./notes/PersonalNotesView"));
const DictionaryView = React.lazy(() => import("./DictionaryView"));
const UploadAudioView = React.lazy(() => import("./notes/UploadAudioView"));
+const IntegrationsView = React.lazy(() => import("./IntegrationsView"));
+ const CommandSearch = React.lazy(() => import("./CommandSearch"));
export default function ControlPanel() {
const { t } = useTranslation();
@@@ -45,14 -45,9 +47,15 @@@
() => localStorage.getItem("aiCTADismissed") === "true"
);
const [showReferrals, setShowReferrals] = useState(false);
+ const [showSearch, setShowSearch] = useState(false);
const [showCloudMigrationBanner, setShowCloudMigrationBanner] = useState(false);
const [activeView, setActiveView] = useState<ControlPanelView>("home");
+ const [isMeetingMode, setIsMeetingMode] = useState(false);
+ const [meetingRecordingRequest, setMeetingRecordingRequest] = useState<{
+ noteId: number;
+ folderId: number;
+ event: any;
+ } | null>(null);
const [gpuAccelAvailable, setGpuAccelAvailable] = useState<{ cuda: boolean; vulkan: boolean }>({
cuda: false,
vulkan: false,
@@@ -383,73 -447,69 +476,91 @@@
</Suspense>
)}
+ {showSearch && (
+ <Suspense fallback={null}>
+ <CommandSearch
+ open={showSearch}
+ onOpenChange={setShowSearch}
+ transcriptions={history}
+ onNoteSelect={(id) => {
+ setActiveNoteId(id);
+ setActiveView("personal-notes");
+ }}
+ onTranscriptSelect={() => {
+ setActiveView("home");
+ }}
+ />
+ </Suspense>
+ )}
+
<div className="flex flex-1 overflow-hidden">
- <ControlPanelSidebar
- activeView={activeView}
- onViewChange={setActiveView}
- onOpenSearch={() => setShowSearch(true)}
- onOpenSettings={() => {
- setSettingsSection(undefined);
- setShowSettings(true);
- }}
- onOpenReferrals={() => setShowReferrals(true)}
- onUpgrade={() => {
- setSettingsSection("plansBilling");
- setShowSettings(true);
- }}
- onUpgradeCheckout={() => usage?.openCheckout()}
- isOverLimit={usage?.isOverLimit ?? false}
- userName={user?.name}
- userEmail={user?.email}
- userImage={user?.image}
- isSignedIn={isSignedIn}
- authLoaded={authLoaded}
- isProUser={!!(usage?.isSubscribed || usage?.isTrial)}
- usageLoaded={usage?.hasLoaded ?? false}
- updateAction={
- !updateStatus.isDevelopment &&
- (updateStatus.updateAvailable ||
- updateStatus.updateDownloaded ||
- isDownloading ||
- isInstalling) ? (
- <Button
- variant={updateStatus.updateDownloaded ? "default" : "outline"}
- size="sm"
- onClick={handleUpdateClick}
- disabled={isInstalling || isDownloading}
- className="gap-1.5 text-xs w-full h-7"
- >
- {getUpdateButtonContent()}
- </Button>
- ) : undefined
- }
- />
+ <div
+ className="shrink-0 overflow-hidden transition-[width] duration-300 ease-out"
+ style={{ width: isMeetingMode ? 0 : undefined }}
+ >
+ <ControlPanelSidebar
+ activeView={activeView}
+ onViewChange={setActiveView}
++ onOpenSearch={() => setShowSearch(true)}
+ onOpenSettings={() => {
+ setSettingsSection(undefined);
+ setShowSettings(true);
+ }}
+ onOpenReferrals={() => setShowReferrals(true)}
+ onUpgrade={() => {
+ setSettingsSection("plansBilling");
+ setShowSettings(true);
+ }}
+ onUpgradeCheckout={() => usage?.openCheckout()}
+ isOverLimit={usage?.isOverLimit ?? false}
+ userName={user?.name}
+ userEmail={user?.email}
+ userImage={user?.image}
+ isSignedIn={isSignedIn}
+ authLoaded={authLoaded}
+ isProUser={!!(usage?.isSubscribed || usage?.isTrial)}
+ usageLoaded={usage?.hasLoaded ?? false}
+ updateAction={
+ !updateStatus.isDevelopment &&
+ (updateStatus.updateAvailable ||
+ updateStatus.updateDownloaded ||
+ isDownloading ||
+ isInstalling) ? (
+ <Button
+ variant={updateStatus.updateDownloaded ? "default" : "outline"}
+ size="sm"
+ onClick={handleUpdateClick}
+ disabled={isInstalling || isDownloading}
+ className="gap-1.5 text-xs w-full h-7"
+ >
+ {getUpdateButtonContent()}
+ </Button>
+ ) : undefined
+ }
+ />
+ </div>
<main className="flex-1 flex flex-col overflow-hidden">
<div
- className="flex items-center justify-end w-full h-10 shrink-0"
+ className="flex items-center justify-between w-full h-10 shrink-0"
style={{ WebkitAppRegion: "drag" } as React.CSSProperties}
>
+ {isMeetingMode && (
+ <div
+ className={platform === "darwin" ? "ml-[84px] mt-[16px]" : "ml-2"}
+ style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}
+ >
+ <Button
+ variant="outline-flat"
+ size="sm"
+ onClick={handleExitMeetingMode}
+ className="h-7 px-2.5 pl-1.5 gap-1"
+ >
+ <ChevronLeft size={14} strokeWidth={1.8} />
+ Back to notes
+ </Button>
+ </div>
+ )}
+ <div className="flex-1" />
{platform !== "darwin" && (
<div className="pr-1" style={{ WebkitAppRegion: "no-drag" } as React.CSSProperties}>
<WindowControls />
diff --cc src/components/ControlPanelSidebar.tsx
index 25b346036,7361bbbca..2c092cb0b
--- a/src/components/ControlPanelSidebar.tsx
+++ b/src/components/ControlPanelSidebar.tsx
@@@ -15,8 -15,11 +16,11 @@@ import logoIcon from "../assets/icon.pn
import { useTranslation } from "react-i18next";
import { cn } from "./lib/utils";
import SupportDropdown from "./ui/SupportDropdown";
+ import { getCachedPlatform } from "../utils/platform";
+
+ const platform = getCachedPlatform();
-export type ControlPanelView = "home" | "personal-notes" | "dictionary" | "upload";
+export type ControlPanelView = "home" | "personal-notes" | "dictionary" | "upload" | "integrations";
interface ControlPanelSidebarProps {
activeView: ControlPanelView;
diff --cc src/components/HistoryView.tsx
index cafc3296a,d99257041..9bbe91996
--- a/src/components/HistoryView.tsx
+++ b/src/components/HistoryView.tsx
@@@ -36,9 -35,10 +38,11 @@@ export default function HistoryView(
copyToClipboard,
deleteTranscription,
onOpenSettings,
+ onShowAudioInFolder,
+ onRetryTranscription,
}: HistoryViewProps) {
const { t } = useTranslation();
+ const { events, isLoading: eventsLoading, isConnected } = useUpcomingEvents();
const groupedHistory = useMemo(() => {
if (history.length === 0) return [];
@@@ -139,155 -139,137 +143,157 @@@
</div>
)}
- {isLoading ? (
- <div className="rounded-lg border border-border bg-card/50 dark:bg-card/60 backdrop-blur-sm">
- <div className="flex items-center justify-center gap-2 py-8">
- <Loader2 size={14} className="animate-spin text-primary" />
- <span className="text-sm text-muted-foreground">{t("controlPanel.loading")}</span>
- </div>
- </div>
- ) : history.length === 0 ? (
- <div className="rounded-lg border border-border bg-card/50 dark:bg-card/60 backdrop-blur-sm">
- <div className="flex flex-col items-center justify-center py-16 px-4">
- <svg
- className="text-foreground dark:text-white mb-5"
- width="64"
- height="64"
- viewBox="0 0 64 64"
- fill="none"
- >
- <rect
- x="24"
- y="6"
- width="16"
- height="28"
- rx="8"
- fill="currentColor"
- fillOpacity={0.04}
- stroke="currentColor"
- strokeOpacity={0.1}
- />
- <rect
- x="28"
- y="12"
- width="8"
- height="3"
- rx="1.5"
- fill="currentColor"
- fillOpacity={0.06}
- />
- <path
- d="M18 28c0 7.7 6.3 14 14 14s14-6.3 14-14"
- fill="none"
- stroke="currentColor"
- strokeOpacity={0.07}
- strokeWidth={1.5}
- strokeLinecap="round"
- />
- <line
- x1="32"
- y1="42"
- x2="32"
- y2="50"
- stroke="currentColor"
- strokeOpacity={0.07}
- strokeWidth={1.5}
- strokeLinecap="round"
- />
- <line
- x1="26"
- y1="50"
- x2="38"
- y2="50"
- stroke="currentColor"
- strokeOpacity={0.07}
- strokeWidth={1.5}
- strokeLinecap="round"
- />
- <path
- d="M12 20a2 2 0 0 1 0 8"
- stroke="currentColor"
- strokeOpacity={0.04}
- strokeWidth={1.5}
- strokeLinecap="round"
- />
- <path
- d="M8 18a2 2 0 0 1 0 12"
- stroke="currentColor"
- strokeOpacity={0.03}
- strokeWidth={1.5}
- strokeLinecap="round"
- />
- <path
- d="M52 20a2 2 0 0 0 0 8"
- stroke="currentColor"
- strokeOpacity={0.04}
- strokeWidth={1.5}
- strokeLinecap="round"
- />
- <path
- d="M56 18a2 2 0 0 0 0 12"
- stroke="currentColor"
- strokeOpacity={0.03}
- strokeWidth={1.5}
- strokeLinecap="round"
- />
- </svg>
- <h3 className="text-xs font-semibold text-foreground/70 dark:text-foreground/60 mb-2">
- {t("controlPanel.history.empty")}
- </h3>
- <div className="flex items-center gap-2 text-xs text-foreground/50 dark:text-foreground/25">
- <span>{t("controlPanel.history.press")}</span>
- <kbd className="inline-flex items-center h-5 px-1.5 rounded-sm bg-surface-1 dark:bg-white/6 border border-border/50 text-xs font-mono font-medium text-foreground/60 dark:text-foreground/40">
- {formatHotkeyLabel(hotkey)}
- </kbd>
- <span>{t("controlPanel.history.toStart")}</span>
+ <div className={cn(isConnected ? "flex gap-6" : "")}>
+ <div className={cn("min-w-0", isConnected ? "flex-1" : "w-full")}>
+ {isConnected && (
+ <div className="flex items-center gap-1.5 pb-2.5">
+ <Mic size={12} className="text-muted-foreground" />
+ <span className="text-[11px] font-semibold text-muted-foreground uppercase tracking-wide">
+ {t("upcoming.transcriptions")}
+ </span>
</div>
- </div>
- </div>
- ) : (
- <div>
- {groupedHistory.map((group, index) => (
- <div key={group.label} className={index > 0 ? "mt-4" : ""}>
- <div className="sticky -top-1 z-10 -mx-4 px-5 pt-2 pb-2 bg-background">
- <span className="text-[11px] font-semibold text-muted-foreground dark:text-muted-foreground uppercase tracking-wide">
- {group.label}
- </span>
+ )}
+ {isLoading ? (
+ <div className="rounded-lg border border-border bg-card/50 dark:bg-card/60 backdrop-blur-sm">
+ <div className="flex items-center justify-center gap-2 py-8">
+ <Loader2 size={14} className="animate-spin text-primary" />
+ <span className="text-sm text-muted-foreground">{t("controlPanel.loading")}</span>
</div>
- <div className="space-y-1.5 relative z-0">
- {group.items.map((item) => (
- <TranscriptionItem
- key={item.id}
- item={item}
- onCopy={copyToClipboard}
- onDelete={deleteTranscription}
- onShowAudioInFolder={onShowAudioInFolder}
- onRetryTranscription={onRetryTranscription}
+ </div>
+ ) : history.length === 0 ? (
+ <div className="rounded-lg border border-border bg-card/50 dark:bg-card/60 backdrop-blur-sm">
+ <div className="flex flex-col items-center justify-center py-16 px-4">
+ <svg
+ className="text-foreground dark:text-white mb-5"
+ width="64"
+ height="64"
+ viewBox="0 0 64 64"
+ fill="none"
+ >
+ <rect
+ x="24"
+ y="6"
+ width="16"
+ height="28"
+ rx="8"
+ fill="currentColor"
+ fillOpacity={0.04}
+ stroke="currentColor"
+ strokeOpacity={0.1}
+ />
+ <rect
+ x="28"
+ y="12"
+ width="8"
+ height="3"
+ rx="1.5"
+ fill="currentColor"
+ fillOpacity={0.06}
+ />
+ <path
+ d="M18 28c0 7.7 6.3 14 14 14s14-6.3 14-14"
+ fill="none"
+ stroke="currentColor"
+ strokeOpacity={0.07}
+ strokeWidth={1.5}
+ strokeLinecap="round"
+ />
+ <line
+ x1="32"
+ y1="42"
+ x2="32"
+ y2="50"
+ stroke="currentColor"
+ strokeOpacity={0.07}
+ strokeWidth={1.5}
+ strokeLinecap="round"
+ />
+ <line
+ x1="26"
+ y1="50"
+ x2="38"
+ y2="50"
+ stroke="currentColor"
+ strokeOpacity={0.07}
+ strokeWidth={1.5}
+ strokeLinecap="round"
/>
- ))}
+ <path
+ d="M12 20a2 2 0 0 1 0 8"
+ stroke="currentColor"
+ strokeOpacity={0.04}
+ strokeWidth={1.5}
+ strokeLinecap="round"
+ />
+ <path
+ d="M8 18a2 2 0 0 1 0 12"
+ stroke="currentColor"
+ strokeOpacity={0.03}
+ strokeWidth={1.5}
+ strokeLinecap="round"
+ />
+ <path
+ d="M52 20a2 2 0 0 0 0 8"
+ stroke="currentColor"
+ strokeOpacity={0.04}
+ strokeWidth={1.5}
+ strokeLinecap="round"
+ />
+ <path
+ d="M56 18a2 2 0 0 0 0 12"
+ stroke="currentColor"
+ strokeOpacity={0.03}
+ strokeWidth={1.5}
+ strokeLinecap="round"
+ />
+ </svg>
+ <h3 className="text-xs font-semibold text-foreground/70 dark:text-foreground/60 mb-2">
+ {t("controlPanel.history.empty")}
+ </h3>
+ <div className="flex items-center gap-2 text-xs text-foreground/50 dark:text-foreground/25">
+ <span>{t("controlPanel.history.press")}</span>
+ <kbd className="inline-flex items-center h-5 px-1.5 rounded-sm bg-surface-1 dark:bg-white/6 border border-border/50 text-xs font-mono font-medium text-foreground/60 dark:text-foreground/40">
+ {formatHotkeyLabel(hotkey)}
+ </kbd>
+ <span>{t("controlPanel.history.toStart")}</span>
+ </div>
</div>
</div>
- ))}
+ ) : (
+ <div>
+ {groupedHistory.map((group, index) => (
+ <div key={group.label} className={index > 0 ? "mt-4" : ""}>
+ <div className="sticky -top-1 z-10 -mx-4 px-5 pt-2 pb-2 bg-background">
+ <span className="text-[11px] font-semibold text-muted-foreground dark:text-muted-foreground uppercase tracking-wide">
+ {group.label}
+ </span>
+ </div>
+ <div className="space-y-1.5 relative z-0">
+ {group.items.map((item) => (
+ <TranscriptionItem
+ key={item.id}
+ item={item}
+ onCopy={copyToClipboard}
+ onDelete={deleteTranscription}
++ onShowAudioInFolder={onShowAudioInFolder}
++ onRetryTranscription={onRetryTranscription}
+ />
+ ))}
+ </div>
+ </div>
+ ))}
+ </div>
+ )}
</div>
- )}
+
+ {isConnected && (
+ <div className="w-64 shrink-0 hidden sm:block">
+ <div className="sticky top-4">
+ <UpcomingMeetings events={events} isLoading={eventsLoading} />
+ </div>
+ </div>
+ )}
+ </div>
</div>
</div>
);
diff --cc src/components/SettingsPage.tsx
index 1c4166053,4ccbc9c30..19f8a3b71
--- a/src/components/SettingsPage.tsx
+++ b/src/components/SettingsPage.tsx
@@@ -73,11 -74,9 +75,10 @@@ export type SettingsSectionType
| "intelligence"
| "privacyData"
| "system"
- | "dictionary"
| "aiModels"
| "agentConfig"
- | "prompts";
+ | "prompts"
+ | "agentMode";
interface SettingsPageProps {
activeSection?: SettingsSectionType;
diff --cc src/config/prompts.ts
index edc56ece8,4d3fc545d..257da3341
--- a/src/config/prompts.ts
+++ b/src/config/prompts.ts
@@@ -4,9 -4,10 +4,9 @@@ import { en as enPrompts, type PromptBu
import { getLanguageInstruction } from "../utils/languageSupport";
export const CLEANUP_PROMPT = promptData.CLEANUP_PROMPT;
- export const ACTION_PROMPT = promptData.ACTION_PROMPT;
- /** @deprecated Use ACTION_PROMPT — kept for PromptStudio compat */
- export const UNIFIED_SYSTEM_PROMPT = promptData.ACTION_PROMPT;
+ export const FULL_PROMPT = promptData.FULL_PROMPT;
-/** @deprecated Use FULL_PROMPT instead — kept for PromptStudio backwards compat */
++/** @deprecated Use FULL_PROMPT — kept for PromptStudio compat */
+ export const UNIFIED_SYSTEM_PROMPT = promptData.FULL_PROMPT;
-export const LEGACY_PROMPTS = promptData.LEGACY_PROMPTS;
function getPromptBundle(uiLanguage?: string): PromptBundle {
const locale = normalizeUiLanguage(uiLanguage || "en");
diff --cc src/helpers/database.js
index a5e6f2832,77675abf0..c39187d36
--- a/src/helpers/database.js
+++ b/src/helpers/database.js
@@@ -637,404 -660,43 +767,441 @@@ class DatabaseManager
}
}
+ createAgentConversation(title = "Untitled") {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ const result = this.db
+ .prepare("INSERT INTO agent_conversations (title) VALUES (?)")
+ .run(title);
+ return this.db
+ .prepare("SELECT * FROM agent_conversations WHERE id = ?")
+ .get(result.lastInsertRowid);
+ } catch (error) {
+ debugLogger.error("Error creating agent conversation", { error: error.message }, "database");
+ throw error;
+ }
+ }
+
+ getAgentConversations(limit = 50) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ return this.db
+ .prepare("SELECT * FROM agent_conversations ORDER BY updated_at DESC LIMIT ?")
+ .all(limit);
+ } catch (error) {
+ debugLogger.error("Error getting agent conversations", { error: error.message }, "database");
+ throw error;
+ }
+ }
+
+ getAgentConversation(id) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ const conversation = this.db
+ .prepare("SELECT * FROM agent_conversations WHERE id = ?")
+ .get(id);
+ if (!conversation) return null;
+ const messages = this.db
+ .prepare("SELECT * FROM agent_messages WHERE conversation_id = ? ORDER BY created_at ASC")
+ .all(id);
+ return { ...conversation, messages };
+ } catch (error) {
+ debugLogger.error("Error getting agent conversation", { error: error.message }, "database");
+ throw error;
+ }
+ }
+
+ deleteAgentConversation(id) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ this.db.prepare("DELETE FROM agent_messages WHERE conversation_id = ?").run(id);
+ const result = this.db.prepare("DELETE FROM agent_conversations WHERE id = ?").run(id);
+ return { success: result.changes > 0 };
+ } catch (error) {
+ debugLogger.error("Error deleting agent conversation", { error: error.message }, "database");
+ throw error;
+ }
+ }
+
+ updateAgentConversationTitle(id, title) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ this.db
+ .prepare(
+ "UPDATE agent_conversations SET title = ?, updated_at = CURRENT_TIMESTAMP WHERE id = ?"
+ )
+ .run(title, id);
+ return { success: true };
+ } catch (error) {
+ debugLogger.error(
+ "Error updating agent conversation title",
+ { error: error.message },
+ "database"
+ );
+ throw error;
+ }
+ }
+
+ saveGoogleTokens(tokens) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ const stmt = this.db.prepare(
+ `INSERT INTO google_calendar_tokens (google_email, access_token, refresh_token, expires_at, scope)
+ VALUES (?, ?, ?, ?, ?)
+ ON CONFLICT(google_email) DO UPDATE SET
+ access_token = excluded.access_token,
+ refresh_token = excluded.refresh_token,
+ expires_at = excluded.expires_at,
+ scope = excluded.scope,
+ updated_at = CURRENT_TIMESTAMP`
+ );
+ stmt.run(
+ tokens.google_email,
+ tokens.access_token,
+ tokens.refresh_token,
+ tokens.expires_at,
+ tokens.scope
+ );
+ return { success: true };
+ } catch (error) {
+ debugLogger.error("Error saving Google tokens", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ getGoogleTokens() {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ return this.db.prepare("SELECT * FROM google_calendar_tokens LIMIT 1").get() || null;
+ } catch (error) {
+ debugLogger.error("Error getting Google tokens", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ getGoogleTokensByEmail(email) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ return (
+ this.db.prepare("SELECT * FROM google_calendar_tokens WHERE google_email = ?").get(email) ||
+ null
+ );
+ } catch (error) {
+ debugLogger.error("Error getting Google tokens by email", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ addAgentMessage(conversationId, role, content) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ const result = this.db
+ .prepare("INSERT INTO agent_messages (conversation_id, role, content) VALUES (?, ?, ?)")
+ .run(conversationId, role, content);
+ this.db
+ .prepare("UPDATE agent_conversations SET updated_at = CURRENT_TIMESTAMP WHERE id = ?")
+ .run(conversationId);
+ return this.db
+ .prepare("SELECT * FROM agent_messages WHERE id = ?")
+ .get(result.lastInsertRowid);
+ } catch (error) {
+ debugLogger.error("Error adding agent message", { error: error.message }, "database");
+ throw error;
+ }
+ }
+
+ getAllGoogleTokens() {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ return this.db.prepare("SELECT * FROM google_calendar_tokens").all();
+ } catch (error) {
+ debugLogger.error("Error getting all Google tokens", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ getGoogleAccounts() {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ return this.db
+ .prepare("SELECT google_email AS email FROM google_calendar_tokens ORDER BY created_at ASC")
+ .all();
+ } catch (error) {
+ debugLogger.error("Error getting Google accounts", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ removeGoogleAccount(email) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ const transaction = this.db.transaction(() => {
+ const calendarIds = this.db
+ .prepare("SELECT id FROM google_calendars WHERE account_email = ?")
+ .all(email)
+ .map((c) => c.id);
+ if (calendarIds.length > 0) {
+ const placeholders = calendarIds.map(() => "?").join(", ");
+ this.db
+ .prepare(`DELETE FROM calendar_events WHERE calendar_id IN (${placeholders})`)
+ .run(...calendarIds);
+ }
+ this.db.prepare("DELETE FROM google_calendars WHERE account_email = ?").run(email);
+ this.db.prepare("DELETE FROM google_calendar_tokens WHERE google_email = ?").run(email);
+ });
+ transaction();
+ return { success: true };
+ } catch (error) {
+ debugLogger.error("Error removing Google account", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ deleteGoogleTokens() {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ this.db.prepare("DELETE FROM google_calendar_tokens").run();
+ return { success: true };
+ } catch (error) {
+ debugLogger.error("Error deleting Google tokens", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ saveGoogleCalendars(calendars, accountEmail = null) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ const stmt = this.db.prepare(
+ `INSERT INTO google_calendars (id, summary, description, background_color, account_email)
+ VALUES (?, ?, ?, ?, ?)
+ ON CONFLICT(id) DO UPDATE SET
+ summary = excluded.summary,
+ description = excluded.description,
+ background_color = excluded.background_color,
+ account_email = excluded.account_email`
+ );
+ for (const cal of calendars) {
+ stmt.run(
+ cal.id,
+ cal.summary,
+ cal.description || null,
+ cal.background_color || null,
+ accountEmail
+ );
+ }
+ return { success: true };
+ } catch (error) {
+ debugLogger.error("Error saving Google calendars", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ getGoogleCalendars(accountEmail = null) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ if (accountEmail) {
+ return this.db
+ .prepare("SELECT * FROM google_calendars WHERE account_email = ?")
+ .all(accountEmail);
+ }
+ return this.db.prepare("SELECT * FROM google_calendars").all();
+ } catch (error) {
+ debugLogger.error("Error getting Google calendars", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ updateCalendarSelection(calendarId, isSelected) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ this.db
+ .prepare("UPDATE google_calendars SET is_selected = ? WHERE id = ?")
+ .run(isSelected ? 1 : 0, calendarId);
+ return { success: true };
+ } catch (error) {
+ debugLogger.error("Error updating calendar selection", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ getAgentMessages(conversationId) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ return this.db
+ .prepare("SELECT * FROM agent_messages WHERE conversation_id = ? ORDER BY created_at ASC")
+ .all(conversationId);
+ } catch (error) {
+ debugLogger.error("Error getting agent messages", { error: error.message }, "database");
+ throw error;
+ }
+ }
+
+ getSelectedCalendars(accountEmail = null) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ if (accountEmail) {
+ return this.db
+ .prepare("SELECT * FROM google_calendars WHERE is_selected = 1 AND account_email = ?")
+ .all(accountEmail);
+ }
+ return this.db.prepare("SELECT * FROM google_calendars WHERE is_selected = 1").all();
+ } catch (error) {
+ debugLogger.error("Error getting selected calendars", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ upsertCalendarEvents(events) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ const transaction = this.db.transaction((eventList) => {
+ const stmt = this.db.prepare(
+ "INSERT OR REPLACE INTO calendar_events (id, calendar_id, summary, start_time, end_time, is_all_day, status, hangout_link, conference_data, organizer_email, attendees_count, synced_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP)"
+ );
+ for (const e of eventList) {
+ stmt.run(
+ e.id,
+ e.calendar_id,
+ e.summary || null,
+ e.start_time,
+ e.end_time,
+ e.is_all_day ? 1 : 0,
+ e.status || "confirmed",
+ e.hangout_link || null,
+ e.conference_data || null,
+ e.organizer_email || null,
+ e.attendees_count || 0
+ );
+ }
+ });
+ transaction(events);
+ return { success: true };
+ } catch (error) {
+ debugLogger.error("Error upserting calendar events", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ getActiveEvents() {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ return this.db
+ .prepare(
+ "SELECT * FROM calendar_events WHERE datetime(start_time) <= datetime('now') AND datetime(end_time) > datetime('now') AND is_all_day = 0 AND status = 'confirmed' ORDER BY start_time ASC"
+ )
+ .all();
+ } catch (error) {
+ debugLogger.error("Error getting active events", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ searchNotes(query, limit = 50) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ const term = query
+ .trim()
+ .replace(/[^\w\s]/g, " ")
+ .trim();
+ if (!term) return [];
+ return this.db
+ .prepare(
+ `
+ SELECT n.*
+ FROM notes n
+ JOIN notes_fts ON notes_fts.rowid = n.id
+ WHERE notes_fts MATCH ?
+ ORDER BY notes_fts.rank
+ LIMIT ?
+ `
+ )
+ .all(term + "*", limit);
+ } catch (error) {
+ debugLogger.error("Error searching notes", { error: error.message }, "database");
+ throw error;
+ }
+ }
+
+ getUpcomingEvents(windowMinutes = 1440) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ return this.db
+ .prepare(
+ "SELECT * FROM calendar_events WHERE datetime(start_time) > datetime('now') AND datetime(start_time) <= datetime('now', '+' || ? || ' minutes') AND is_all_day = 0 AND status = 'confirmed' ORDER BY start_time ASC"
+ )
+ .all(windowMinutes);
+ } catch (error) {
+ debugLogger.error("Error getting upcoming events", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ clearCalendarData() {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ const transaction = this.db.transaction(() => {
+ this.db.prepare("DELETE FROM calendar_events").run();
+ this.db.prepare("DELETE FROM google_calendars").run();
+ this.db.prepare("DELETE FROM google_calendar_tokens").run();
+ });
+ transaction();
+ return { success: true };
+ } catch (error) {
+ debugLogger.error("Error clearing calendar data", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ updateCalendarSyncToken(calendarId, syncToken) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ this.db
+ .prepare("UPDATE google_calendars SET sync_token = ? WHERE id = ?")
+ .run(syncToken, calendarId);
+ return { success: true };
+ } catch (error) {
+ debugLogger.error("Error updating sync token", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ removeCalendarEvents(eventIds) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ const placeholders = eventIds.map(() => "?").join(", ");
+ this.db.prepare(`DELETE FROM calendar_events WHERE id IN (${placeholders})`).run(...eventIds);
+ return { success: true };
+ } catch (error) {
+ debugLogger.error("Error removing calendar events", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ getMeetingsFolder() {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ return (
+ this.db
+ .prepare("SELECT id FROM folders WHERE name = 'Meetings' AND is_default = 1")
+ .get() || null
+ );
+ } catch (error) {
+ debugLogger.error("Error getting meetings folder", { error: error.message }, "gcal");
+ throw error;
+ }
+ }
+
+ updateNoteCloudId(id, cloudId) {
+ try {
+ if (!this.db) throw new Error("Database not initialized");
+ this.db.prepare("UPDATE notes SET cloud_id = ? WHERE id = ?").run(cloudId, id);
+ return this.db.prepare("SELECT * FROM notes WHERE id = ?").get(id);
+ } catch (error) {
+ debugLogger.error("Error updating note cloud_id", { error: error.message }, "database");
+ throw error;
+ }
+ }
+
cleanup() {
try {
const dbPath = path.join(
diff --cc src/helpers/ipcHandlers.js
index bfe1fa885,193a141d2..b75a67ca3
--- a/src/helpers/ipcHandlers.js
+++ b/src/helpers/ipcHandlers.js
@@@ -9,7 -9,7 +9,8 @@@ const GnomeShortcutManager = require(".
const AssemblyAiStreaming = require("./assemblyAiStreaming");
const { i18nMain, changeLanguage } = require("./i18nMain");
const DeepgramStreaming = require("./deepgramStreaming");
+const OpenAIRealtimeStreaming = require("./openaiRealtimeStreaming");
+ const AudioStorageManager = require("./audioStorage");
const MISTRAL_TRANSCRIPTION_URL = "https://api.mistral.ai/v1/audio/transcriptions";
@@@ -110,8 -107,10 +111,11 @@@ class IPCHandlers
this._autoLearnDebounceTimer = null;
this._autoLearnLatestData = null;
this._textEditHandler = null;
+ this._activeRecordingPipeline = null;
+ this.audioStorageManager = new AudioStorageManager();
+ this._audioCleanupInterval = null;
this._setupTextEditMonitor();
+ this._setupAudioCleanup();
this.setupHandlers();
if (this.whisperManager?.serverManager) {
@@@ -1937,151 -2025,83 +2063,228 @@@
}
});
+ ipcMain.handle("meeting-transcribe-chain", async (event, blobUrl, opts = {}) => {
+ try {
+ const apiUrl = getApiUrl();
+ if (!apiUrl) throw new Error("OpenWhispr API URL not configured");
+
+ const cookieHeader = await getSessionCookies(event);
+ if (!cookieHeader) throw new Error("No session cookies available");
+
+ const response = await fetch(`${apiUrl}/api/transcribe-chain`, {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ Cookie: cookieHeader,
+ },
+ body: JSON.stringify({
+ mediaUrl: blobUrl,
+ skipCleanup: opts.skipCleanup ?? false,
+ agentName: opts.agentName,
+ customDictionary: opts.customDictionary,
+ }),
+ });
+
+ const data = await response.json();
+
+ if (!response.ok) {
+ throw new Error(data.error || `Chain failed: ${response.status}`);
+ }
+
+ fetch(`${apiUrl}/api/delete-audio`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json", Cookie: cookieHeader },
+ body: JSON.stringify({ url: blobUrl }),
+ }).catch((err) => debugLogger.warn("Blob cleanup failed", { error: err.message }));
+
+ return {
+ success: true,
+ text: data.text,
+ rawText: data.rawText,
+ cleanedText: data.cleanedText,
+ processingDurationSec: data.processingDurationSec,
+ speedupFactor: data.speedupFactor,
+ };
+ } catch (error) {
+ debugLogger.error("Meeting chain transcription error", { error: error.message });
+ return { success: false, error: error.message };
+ }
+ });
+
+ ipcMain.handle("retry-transcription", async (event, id) => {
+ const buffer = this.audioStorageManager.getAudioBuffer(id);
+ if (!buffer) return { success: false, error: "Audio file not found" };
+ try {
+ let result;
+ // Try local engines first
+ if (this.parakeetManager?.serverManager?.isAvailable?.()) {
+ result = await this.parakeetManager.transcribeLocalParakeet(buffer, {});
+ } else if (this.whisperManager?.serverManager?.isAvailable?.()) {
+ result = await this.whisperManager.transcribeLocalWhisper(buffer, {});
+ }
+
+ // Fall back to cloud transcription
+ if (!result?.text) {
+ const win = BrowserWindow.fromWebContents(event.sender);
+ if (win) {
+ const cookieHeader = await getSessionCookiesFromWindow(win);
+ if (cookieHeader) {
+ const apiUrl = getApiUrl();
+ if (apiUrl) {
+ const { body, boundary } = buildMultipartBody(buffer, "audio.webm", "audio/webm", {
+ clientType: "desktop",
+ appVersion: app.getVersion(),
+ sessionId: this.sessionId,
+ });
+ const url = new URL(`${apiUrl}/api/transcribe`);
+ const data = await postMultipart(url, body, boundary, {
+ Cookie: cookieHeader,
+ });
+ if (data.statusCode === 200 && data.data?.text) {
+ result = { text: data.data.text, source: "openwhispr", model: "cloud" };
+ }
+ }
+ }
+ }
+ }
+
+ if (!result?.text) {
+ return { success: false, error: "No transcription engine available" };
+ }
+
+ this.databaseManager.updateTranscriptionText(id, result.text, result.text);
+ const provider = result.source || "local";
+ const model = result.model || null;
+ this.databaseManager.updateTranscriptionAudio(id, {
+ hasAudio: 1,
+ audioDurationMs: null,
+ provider,
+ model,
+ });
+ const updated = this.databaseManager.getTranscriptionById(id);
+ return { success: true, transcription: updated };
+ } catch (error) {
+ debugLogger.error(
+ "Retry transcription failed",
+ { id, error: error.message },
+ "audio-storage"
+ );
+ return { success: false, error: error.message };
+ }
+ });
+
+ let meetingTranscriptionStartInProgress = false;
+
+ ipcMain.handle("meeting-transcription-start", async (event, options = {}) => {
+ if (meetingTranscriptionStartInProgress) {
+ debugLogger.debug("Meeting transcription start already in progress, ignoring");
+ return { success: false, error: "Operation in progress" };
+ }
+
+ meetingTranscriptionStartInProgress = true;
+ try {
+ const win = BrowserWindow.fromWebContents(event.sender);
+
+ if (options.provider !== "openai-realtime") {
+ return { success: false, error: `Unsupported provider: ${options.provider}` };
+ }
+
+ const apiUrl = getApiUrl();
+ if (!apiUrl) return { success: false, error: "OpenWhispr API URL not configured" };
+
+ const cookieHeader = await getSessionCookies(event);
+ if (!cookieHeader) return { success: false, error: "No session cookies available" };
+
+ const tokenResponse = await fetch(`${apiUrl}/api/openai-realtime-token`, {
+ method: "POST",
+ headers: { "Content-Type": "application/json", Cookie: cookieHeader },
+ body: JSON.stringify({ model: options.model, language: options.language }),
+ });
+
+ if (!tokenResponse.ok) {
+ const err = await tokenResponse.json().catch(() => ({}));
+ return {
+ success: false,
+ error: err.error || `Token request failed: ${tokenResponse.status}`,
+ };
+ }
+
+ const { clientSecret } = await tokenResponse.json();
+ if (!clientSecret) return { success: false, error: "No client secret received" };
+
+ if (this.openaiRealtimeStreaming?.isConnected) {
+ await this.openaiRealtimeStreaming.disconnect();
+ }
+
+ this.openaiRealtimeStreaming = new OpenAIRealtimeStreaming();
+
+ this.openaiRealtimeStreaming.onPartialTranscript = (text) => {
+ if (win && !win.isDestroyed()) {
+ win.webContents.send("meeting-transcription-partial", text);
+ }
+ };
+
+ this.openaiRealtimeStreaming.onFinalTranscript = (text) => {
+ if (win && !win.isDestroyed()) {
+ win.webContents.send("meeting-transcription-final", text);
+ }
+ };
+
+ this.openaiRealtimeStreaming.onError = (error) => {
+ if (win && !win.isDestroyed()) {
+ win.webContents.send("meeting-transcription-error", error.message);
+ }
+ };
+
+ await this.openaiRealtimeStreaming.connect({
+ apiKey: clientSecret,
+ model: options.model,
+ language: options.language,
+ });
+
+ return { success: true };
+ } catch (error) {
+ debugLogger.error("Meeting transcription start error", { error: error.message });
+ return { success: false, error: error.message };
+ } finally {
+ meetingTranscriptionStartInProgress = false;
+ }
+ });
+
+ ipcMain.on("meeting-transcription-send", (_event, audioBuffer) => {
+ if (!this.openaiRealtimeStreaming) return;
+ this.openaiRealtimeStreaming.sendAudio(Buffer.from(audioBuffer));
+ });
+
+ ipcMain.handle("meeting-transcription-stop", async () => {
+ try {
+ let result = { text: "" };
+ if (this.openaiRealtimeStreaming) {
+ result = await this.openaiRealtimeStreaming.disconnect();
+ this.openaiRealtimeStreaming = null;
+ }
+ return { success: true, transcript: result?.text || "" };
+ } catch (error) {
+ debugLogger.error("Meeting transcription stop error", { error: error.message });
+ return { success: false, error: error.message };
+ }
+ });
+
+ ipcMain.handle("update-transcription-text", async (_event, id, text, rawText) => {
+ try {
+ this.databaseManager.updateTranscriptionText(id, text, rawText);
+ const updated = this.databaseManager.getTranscriptionById(id);
+ return { success: true, transcription: updated };
+ } catch (error) {
+ debugLogger.error(
+ "Failed to update transcription text",
+ { id, error: error.message },
+ "audio-storage"
+ );
+ return { success: false, error: error.message };
+ }
+ });
+
ipcMain.handle("cloud-reason", async (event, text, opts = {}) => {
try {
const apiUrl = getApiUrl();
diff --cc src/helpers/windowConfig.js
index b1914961b,899922cca..e9079688d
--- a/src/helpers/windowConfig.js
+++ b/src/helpers/windowConfig.js
@@@ -83,35 -83,25 +83,47 @@@ const CONTROL_PANEL_CONFIG =
type: "normal",
};
+const NOTIFICATION_WINDOW_CONFIG = {
+ width: 380,
+ height: 88,
+ frame: false,
+ transparent: true,
+ alwaysOnTop: true,
+ skipTaskbar: true,
+ resizable: false,
+ focusable: false,
+ hasShadow: false,
+ show: false,
+ webPreferences: {
+ preload: path.join(__dirname, "..", "..", "preload.js"),
+ nodeIntegration: false,
+ contextIsolation: true,
+ sandbox: true,
+ },
+ visibleOnAllWorkspaces: process.platform !== "win32",
+ type:
+ process.platform === "darwin" ? "panel" : process.platform === "linux" ? "toolbar" : "normal",
+};
+
class WindowPositionUtil {
- static getMainWindowPosition(display, customSize = null) {
+ static getMainWindowPosition(display, customSize = null, position = "bottom-right") {
const { width, height } = customSize || WINDOW_SIZES.BASE;
- const MARGIN = 24;
+ const MARGIN = 4;
const workArea = display.workArea || display.bounds;
- const x = Math.max(0, workArea.x + workArea.width - width - MARGIN);
- const y = Math.max(0, workArea.y + workArea.height - height - MARGIN);
+
+ let x, y;
+ if (position === "bottom-left") {
+ x = workArea.x + MARGIN;
+ y = Math.max(0, workArea.y + workArea.height - height - MARGIN);
+ } else if (position === "center") {
+ x = Math.round(workArea.x + (workArea.width - width) / 2);
+ y = Math.max(0, workArea.y + workArea.height - height - MARGIN);
+ } else {
+ // bottom-right (default)
+ x = Math.max(0, workArea.x + workArea.width - width - MARGIN);
+ y = Math.max(0, workArea.y + workArea.height - height - MARGIN);
+ }
+
return { x, y, width, height };
}
diff --cc src/helpers/windowManager.js
index 99b144523,6e3f7d1d4..b0a16fc2a
--- a/src/helpers/windowManager.js
+++ b/src/helpers/windowManager.js
@@@ -33,7 -28,7 +33,8 @@@ class WindowManager
this.winPushState = null;
this._cachedActivationMode = "tap";
this._floatingIconAutoHide = false;
+ this._agentAnimationState = null;
+ this._panelStartPosition = "bottom-right";
app.on("before-quit", () => {
this.isQuitting = true;
diff --cc src/locales/de/translation.json
index 9262b6a2e,95158bbaa..504e8df74
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@@ -1602,81 -1600,45 +1606,122 @@@
"closeTab": "Du kannst diesen Tab schließen."
}
},
+ "agentMode": {
+ "settings": {
+ "title": "Agent-Modus",
+ "description": "Sprach-Chat-Assistent mit separatem KI-Modell",
+ "enabled": "Agent-Modus aktivieren",
+ "enabledDescription": "Verwende eine separate Tastenkombination, um ein Sprach-Chat-Overlay zu öffnen",
+ "hotkey": "Agent-Tastenkombination",
+ "hotkeyDescription": "Tastenkombination zum Umschalten des Agent-Overlays",
+ "model": "Agent-Modell",
+ "modelDescription": "KI-Modell für Agent-Unterhaltungen",
+ "systemPrompt": "System-Prompt",
+ "systemPromptDescription": "Benutzerdefinierte Anweisungen für den Agenten",
+ "systemPromptPlaceholder": "Benutzerdefinierten System-Prompt eingeben...",
+ "openwhisprCloud": "OpenWhispr Cloud",
+ "openwhisprCloudDescription": "OpenWhisprs Cloud-KI für Agent-Unterhaltungen verwenden",
+ "customSetup": "Eigene Konfiguration (BYOK)",
+ "customSetupDescription": "Eigene API-Schlüssel verwenden und bevorzugtes Modell auswählen"
+ },
+ "chat": {
+ "placeholder": "Drücke {{hotkey}} zum Sprechen",
+ "thinking": "Denkt nach...",
+ "transcribing": "Transkribiert...",
+ "listening": "Hört zu...",
+ "newConversation": "Neu",
+ "copyToClipboard": "In Zwischenablage kopieren",
+ "copied": "Kopiert!",
+ "emptyState": "{{hotkey}} gedrückt halten, um eine Unterhaltung zu starten",
+ "errorPrefix": "Fehler"
+ },
+ "titleBar": {
+ "label": "Agent",
+ "newChat": "Neues Gespräch",
+ "close": "Schließen"
+ },
+ "input": {
+ "holdToSpeak": "Gedrückt halten zum Sprechen",
+ "toClose": "schließen",
+ "listening": "Hört zu...",
+ "transcribing": "Transkribiert...",
+ "thinking": "Denkt nach..."
+ }
+ },
+ "integrations": {
+ "title": "Integrationen",
+ "description": "Verbinde Dienste, um deinen Workflow zu verbessern",
+ "googleCalendar": {
+ "title": "Google Calendar",
+ "description": "Verbinde deinen Kalender, um Besprechungsnotizen zu aktivieren. OpenWhispr erkennt Meetings und zeichnet mit Sprechererkennung auf — automatisch.",
+ "connect": "Google Calendar verbinden",
+ "connecting": "Verbinde...",
+ "connected": "Verbunden",
+ "addAnother": "Weiteren Kalender hinzufügen",
+ "disconnect": "Trennen",
+ "disconnectConfirm": "{{email}} trennen?",
+ "disconnectDescription": "Besprechungsnotizen werden von diesem Kalender nicht mehr aufgezeichnet."
+ },
+ "plan": {
+ "title": "Dein Plan",
+ "current": "Aktuell",
+ "free": "Kostenlos",
+ "freeLimit": "5 Meetings / Monat",
+ "essential": "Essential",
+ "essentialLimit": "20 Meetings / Monat",
+ "pro": "Pro",
+ "proLimit": "Unbegrenzt",
+ "upgrade": "Upgrade"
+ }
+ },
+ "upcoming": {
+ "title": "Anstehende Meetings",
+ "transcriptions": "Transkriptionen",
+ "tomorrow": "Morgen",
+ "noMoreMeetings": "Keine weiteren Meetings heute",
+ "now": "Jetzt",
+ "join": "Beitreten",
+ "untitledEvent": "Unbenanntes Ereignis"
++ },
+ "notesView": {
+ "searchPlaceholder": "Notizen durchsuchen…",
+ "newNote": "Neue Notiz",
+ "empty": {
+ "title": "Noch keine Notizen",
+ "description": "Erstellen Sie Ihre erste Notiz, um zu beginnen."
+ },
+ "searchEmpty": {
+ "title": "Keine Ergebnisse",
+ "description": "Keine Notizen für „{{query}}“ gefunden."
+ },
+ "noteType": {
+ "personal": "persönlich",
+ "meeting": "Meeting",
+ "upload": "Upload"
+ }
+ },
+ "noteEditor": {
+ "saved": "Gespeichert",
+ "deleteNote": "Notiz löschen",
+ "deleteConfirmTitle": "Notiz löschen?",
+ "deleteConfirmDescription": "Diese Notiz wird dauerhaft gelöscht und kann nicht wiederhergestellt werden.",
+ "deleteConfirm": "Löschen"
+ },
+ "commandSearch": {
+ "title": "Suche",
+ "description": "In Notizen und Transkripten suchen",
+ "shortPlaceholder": "Suche",
+ "placeholder": "Notizen und Transkripte durchsuchen…",
+ "sections": {
+ "notes": "Notizen",
+ "transcripts": "Transkripte"
+ },
+ "noResults": "Keine Ergebnisse",
+ "emptyState": "Tippen, um zu suchen",
+ "footer": {
+ "navigate": "Navigieren",
+ "open": "Öffnen",
+ "dismiss": "Schließen"
+ }
}
}
diff --cc src/locales/en/translation.json
index 283c348bc,e7dc3c324..4a5e1d565
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@@ -1642,72 -1628,45 +1674,121 @@@
"closeTab": "You can close this tab."
}
},
+ "agentMode": {
+ "settings": {
+ "title": "Agent Mode",
+ "description": "Voice chat assistant with a separate AI model",
+ "enabled": "Enable Agent Mode",
+ "enabledDescription": "Use a separate hotkey to open a voice chat overlay",
+ "hotkey": "Agent Hotkey",
+ "hotkeyDescription": "Hotkey to toggle the agent overlay",
+ "model": "Agent Model",
+ "modelDescription": "AI model used for agent conversations",
+ "systemPrompt": "System Prompt",
+ "systemPromptDescription": "Custom instructions for the agent",
+ "systemPromptPlaceholder": "Enter custom system prompt...",
+ "openwhisprCloud": "OpenWhispr Cloud",
+ "openwhisprCloudDescription": "Use OpenWhispr's cloud AI for agent conversations",
+ "customSetup": "Custom Setup (BYOK)",
+ "customSetupDescription": "Use your own API keys and choose your preferred model"
+ },
+ "chat": {
+ "placeholder": "Press {{hotkey}} to speak",
+ "thinking": "Thinking...",
+ "transcribing": "Transcribing...",
+ "listening": "Listening...",
+ "newConversation": "New",
+ "copyToClipboard": "Copy to clipboard",
+ "copied": "Copied!",
+ "emptyState": "Hold {{hotkey}} to start a conversation",
+ "errorPrefix": "Error"
+ },
+ "titleBar": {
+ "label": "Agent",
+ "newChat": "New conversation",
+ "close": "Close"
+ },
+ "input": {
+ "holdToSpeak": "Hold to speak",
+ "toClose": "close",
+ "listening": "Listening...",
+ "transcribing": "Transcribing...",
+ "thinking": "Thinking..."
+ }
+ },
+ "integrations": {
+ "title": "Integrations",
+ "description": "Connect services to supercharge your workflow",
+ "googleCalendar": {
+ "title": "Google Calendar",
+ "description": "Connect your calendar to activate meeting notes. OpenWhispr detects meetings and records with speaker diarization — automatically.",
+ "connect": "Connect Google Calendar",
+ "connecting": "Connecting...",
+ "connected": "Connected",
+ "addAnother": "Add another calendar",
+ "disconnect": "Disconnect",
+ "disconnectConfirm": "Disconnect {{email}}?",
+ "disconnectDescription": "Meeting notes will no longer be recorded from this calendar."
+ },
+ "plan": {
+ "title": "Your Plan",
+ "current": "Current",
+ "free": "Free",
+ "freeLimit": "5 meetings / month",
+ "essential": "Essential",
+ "essentialLimit": "20 meetings / month",
+ "pro": "Pro",
+ "proLimit": "Unlimited",
+ "upgrade": "Upgrade"
++ },
++ "upcoming": {
++ "title": "Upcoming Meetings",
++ "transcriptions": "Transcriptions",
++ "tomorrow": "Tomorrow",
++ "noMoreMeetings": "No more meetings today",
++ "now": "Now",
++ "join": "Join",
++ "untitledEvent": "Untitled Event"
++ },
+ "notesView": {
+ "searchPlaceholder": "Search notes…",
+ "newNote": "New Note",
+ "empty": {
+ "title": "No notes yet",
+ "description": "Create your first note to get started."
+ },
+ "searchEmpty": {
+ "title": "No results",
+ "description": "No notes found for \"{{query}}\"."
+ },
+ "noteType": {
+ "personal": "personal",
+ "meeting": "meeting",
+ "upload": "upload"
+ }
+ },
+ "noteEditor": {
+ "saved": "Saved",
+ "deleteNote": "Delete note",
+ "deleteConfirmTitle": "Delete note?",
+ "deleteConfirmDescription": "This note will be permanently deleted and cannot be recovered.",
+ "deleteConfirm": "Delete"
+ },
+ "commandSearch": {
+ "title": "Search",
+ "description": "Search across notes and transcripts",
+ "shortPlaceholder": "Search",
+ "placeholder": "Search notes and transcripts…",
+ "sections": {
+ "notes": "Notes",
+ "transcripts": "Transcripts"
+ },
+ "noResults": "No results",
+ "emptyState": "Start typing to search",
+ "footer": {
+ "navigate": "Navigate",
+ "open": "Open",
+ "dismiss": "Dismiss"
}
}
}
diff --cc src/locales/es/translation.json
index d758494f1,2a45c395f..a6bcd8524
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@@ -1606,81 -1604,45 +1610,122 @@@
"closeTab": "Puedes cerrar esta pestaña."
}
},
+ "agentMode": {
+ "settings": {
+ "title": "Modo Agente",
+ "description": "Asistente de chat por voz con un modelo de IA separado",
+ "enabled": "Activar Modo Agente",
+ "enabledDescription": "Usa una tecla de acceso rápido separada para abrir una superposición de chat por voz",
+ "hotkey": "Tecla del Agente",
+ "hotkeyDescription": "Tecla de acceso rápido para alternar la superposición del agente",
+ "model": "Modelo del Agente",
+ "modelDescription": "Modelo de IA utilizado para conversaciones del agente",
+ "systemPrompt": "Prompt del Sistema",
+ "systemPromptDescription": "Instrucciones personalizadas para el agente",
+ "systemPromptPlaceholder": "Introduce un prompt de sistema personalizado...",
+ "openwhisprCloud": "OpenWhispr Cloud",
+ "openwhisprCloudDescription": "Usar la IA en la nube de OpenWhispr para conversaciones del agente",
+ "customSetup": "Configuración personalizada (BYOK)",
+ "customSetupDescription": "Usa tus propias claves API y elige tu modelo preferido"
+ },
+ "chat": {
+ "placeholder": "Presiona {{hotkey}} para hablar",
+ "thinking": "Pensando...",
+ "transcribing": "Transcribiendo...",
+ "listening": "Escuchando...",
+ "newConversation": "Nuevo",
+ "copyToClipboard": "Copiar al portapapeles",
+ "copied": "¡Copiado!",
+ "emptyState": "Mantén {{hotkey}} para iniciar una conversación",
+ "errorPrefix": "Error"
+ },
+ "titleBar": {
+ "label": "Agente",
+ "newChat": "Nueva conversación",
+ "close": "Cerrar"
+ },
+ "input": {
+ "holdToSpeak": "Mantén para hablar",
+ "toClose": "cerrar",
+ "listening": "Escuchando...",
+ "transcribing": "Transcribiendo...",
+ "thinking": "Pensando..."
+ }
+ },
+ "integrations": {
+ "title": "Integraciones",
+ "description": "Conecta servicios para potenciar tu flujo de trabajo",
+ "googleCalendar": {
+ "title": "Google Calendar",
+ "description": "Conecta tu calendario para activar notas de reuniones. OpenWhispr detecta reuniones y graba con diarización de hablantes — automáticamente.",
+ "connect": "Conectar Google Calendar",
+ "connecting": "Conectando...",
+ "connected": "Conectado",
+ "addAnother": "Añadir otro calendario",
+ "disconnect": "Desconectar",
+ "disconnectConfirm": "¿Desconectar {{email}}?",
+ "disconnectDescription": "Ya no se grabarán notas de reuniones de este calendario."
+ },
+ "plan": {
+ "title": "Tu Plan",
+ "current": "Actual",
+ "free": "Gratis",
+ "freeLimit": "5 reuniones / mes",
+ "essential": "Essential",
+ "essentialLimit": "20 reuniones / mes",
+ "pro": "Pro",
+ "proLimit": "Ilimitado",
+ "upgrade": "Mejorar"
+ }
+ },
+ "upcoming": {
+ "title": "Próximas reuniones",
+ "transcriptions": "Transcripciones",
+ "tomorrow": "Mañana",
+ "noMoreMeetings": "No hay más reuniones hoy",
+ "now": "Ahora",
+ "join": "Unirse",
+ "untitledEvent": "Evento sin título"
++ },
+ "notesView": {
+ "searchPlaceholder": "Buscar notas…",
+ "newNote": "Nueva nota",
+ "empty": {
+ "title": "Sin notas todavía",
+ "description": "Crea tu primera nota para empezar."
+ },
+ "searchEmpty": {
+ "title": "Sin resultados",
+ "description": "No se encontraron notas para \"{{query}}\"."
+ },
+ "noteType": {
+ "personal": "personal",
+ "meeting": "reunión",
+ "upload": "subida"
+ }
+ },
+ "noteEditor": {
+ "saved": "Guardado",
+ "deleteNote": "Eliminar nota",
+ "deleteConfirmTitle": "¿Eliminar nota?",
+ "deleteConfirmDescription": "Esta nota se eliminará permanentemente y no se podrá recuperar.",
+ "deleteConfirm": "Eliminar"
+ },
+ "commandSearch": {
+ "title": "Buscar",
+ "description": "Buscar en notas y transcripciones",
+ "shortPlaceholder": "Buscar",
+ "placeholder": "Buscar notas y transcripciones…",
+ "sections": {
+ "notes": "Notas",
+ "transcripts": "Transcripciones"
+ },
+ "noResults": "Sin resultados",
+ "emptyState": "Escribe para buscar",
+ "footer": {
+ "navigate": "Navegar",
+ "open": "Abrir",
+ "dismiss": "Cerrar"
+ }
}
}
diff --cc src/locales/fr/translation.json
index b634230e5,a63920726..56299eeda
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@@ -1606,81 -1604,45 +1610,122 @@@
"closeTab": "Vous pouvez fermer cet onglet."
}
},
+ "agentMode": {
+ "settings": {
+ "title": "Mode Agent",
+ "description": "Assistant vocal de chat avec un modèle IA séparé",
+ "enabled": "Activer le Mode Agent",
+ "enabledDescription": "Utiliser un raccourci clavier séparé pour ouvrir une fenêtre de chat vocal",
+ "hotkey": "Raccourci Agent",
+ "hotkeyDescription": "Raccourci clavier pour basculer la fenêtre agent",
+ "model": "Modèle Agent",
+ "modelDescription": "Modèle IA utilisé pour les conversations agent",
+ "systemPrompt": "Prompt système",
+ "systemPromptDescription": "Instructions personnalisées pour l'agent",
+ "systemPromptPlaceholder": "Entrez un prompt système personnalisé...",
+ "openwhisprCloud": "OpenWhispr Cloud",
+ "openwhisprCloudDescription": "Utiliser l'IA cloud d'OpenWhispr pour les conversations agent",
+ "customSetup": "Configuration personnalisée (BYOK)",
+ "customSetupDescription": "Utiliser vos propres clés API et choisir votre modèle préféré"
+ },
+ "chat": {
+ "placeholder": "Appuyez sur {{hotkey}} pour parler",
+ "thinking": "Réflexion...",
+ "transcribing": "Transcription...",
+ "listening": "Écoute...",
+ "newConversation": "Nouveau",
+ "copyToClipboard": "Copier dans le presse-papiers",
+ "copied": "Copié !",
+ "emptyState": "Maintenez {{hotkey}} pour démarrer une conversation",
+ "errorPrefix": "Erreur"
+ },
+ "titleBar": {
+ "label": "Agent",
+ "newChat": "Nouvelle conversation",
+ "close": "Fermer"
+ },
+ "input": {
+ "holdToSpeak": "Maintenez pour parler",
+ "toClose": "fermer",
+ "listening": "Écoute...",
+ "transcribing": "Transcription...",
+ "thinking": "Réflexion..."
+ }
+ },
+ "integrations": {
+ "title": "Intégrations",
+ "description": "Connectez des services pour booster votre productivité",
+ "googleCalendar": {
+ "title": "Google Calendar",
+ "description": "Connectez votre calendrier pour activer les notes de réunion. OpenWhispr détecte vos réunions et enregistre avec diarisation — automatiquement.",
+ "connect": "Connecter Google Calendar",
+ "connecting": "Connexion...",
+ "connected": "Connecté",
+ "addAnother": "Ajouter un autre calendrier",
+ "disconnect": "Déconnecter",
+ "disconnectConfirm": "Déconnecter {{email}} ?",
+ "disconnectDescription": "Les notes de réunion ne seront plus enregistrées depuis ce calendrier."
+ },
+ "plan": {
+ "title": "Votre forfait",
+ "current": "Actuel",
+ "free": "Gratuit",
+ "freeLimit": "5 réunions / mois",
+ "essential": "Essential",
+ "essentialLimit": "20 réunions / mois",
+ "pro": "Pro",
+ "proLimit": "Illimité",
+ "upgrade": "Passer au supérieur"
+ }
+ },
+ "upcoming": {
+ "title": "Réunions à venir",
+ "transcriptions": "Transcriptions",
+ "tomorrow": "Demain",
+ "noMoreMeetings": "Plus de réunions aujourd'hui",
+ "now": "En cours",
+ "join": "Rejoindre",
+ "untitledEvent": "Événement sans titre"
++ },
+ "notesView": {
+ "searchPlaceholder": "Rechercher des notes…",
+ "newNote": "Nouvelle note",
+ "empty": {
+ "title": "Aucune note pour l'instant",
+ "description": "Créez votre première note pour commencer."
+ },
+ "searchEmpty": {
+ "title": "Aucun résultat",
+ "description": "Aucune note trouvée pour « {{query}} »."
+ },
+ "noteType": {
+ "personal": "personnel",
+ "meeting": "réunion",
+ "upload": "import"
+ }
+ },
+ "noteEditor": {
+ "saved": "Enregistré",
+ "deleteNote": "Supprimer la note",
+ "deleteConfirmTitle": "Supprimer la note ?",
+ "deleteConfirmDescription": "Cette note sera supprimée définitivement et ne pourra pas être récupérée.",
+ "deleteConfirm": "Supprimer"
+ },
+ "commandSearch": {
+ "title": "Rechercher",
+ "description": "Rechercher dans les notes et transcriptions",
+ "shortPlaceholder": "Rechercher",
+ "placeholder": "Rechercher notes et transcriptions…",
+ "sections": {
+ "notes": "Notes",
+ "transcripts": "Transcriptions"
+ },
+ "noResults": "Aucun résultat",
+ "emptyState": "Commencez à taper pour rechercher",
+ "footer": {
+ "navigate": "Naviguer",
+ "open": "Ouvrir",
+ "dismiss": "Fermer"
+ }
}
}
diff --cc src/locales/it/translation.json
index e53cdb267,5dae8c735..2ca44ce8f
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@@ -1606,81 -1604,45 +1610,122 @@@
"closeTab": "Puoi chiudere questa scheda."
}
},
+ "agentMode": {
+ "settings": {
+ "title": "Modalità Agente",
+ "description": "Assistente vocale chat con un modello IA separato",
+ "enabled": "Abilita Modalità Agente",
+ "enabledDescription": "Usa un tasto di scelta rapida separato per aprire un overlay di chat vocale",
+ "hotkey": "Tasto Agente",
+ "hotkeyDescription": "Tasto di scelta rapida per alternare l'overlay agente",
+ "model": "Modello Agente",
+ "modelDescription": "Modello IA utilizzato per le conversazioni agente",
+ "systemPrompt": "Prompt di Sistema",
+ "systemPromptDescription": "Istruzioni personalizzate per l'agente",
+ "systemPromptPlaceholder": "Inserisci un prompt di sistema personalizzato...",
+ "openwhisprCloud": "OpenWhispr Cloud",
+ "openwhisprCloudDescription": "Usa l'IA cloud di OpenWhispr per le conversazioni agente",
+ "customSetup": "Configurazione personalizzata (BYOK)",
+ "customSetupDescription": "Usa le tue chiavi API e scegli il modello che preferisci"
+ },
+ "chat": {
+ "placeholder": "Premi {{hotkey}} per parlare",
+ "thinking": "Pensando...",
+ "transcribing": "Trascrivendo...",
+ "listening": "Ascoltando...",
+ "newConversation": "Nuovo",
+ "copyToClipboard": "Copia negli appunti",
+ "copied": "Copiato!",
+ "emptyState": "Tieni premuto {{hotkey}} per iniziare una conversazione",
+ "errorPrefix": "Errore"
+ },
+ "titleBar": {
+ "label": "Agente",
+ "newChat": "Nuova conversazione",
+ "close": "Chiudi"
+ },
+ "input": {
+ "holdToSpeak": "Tieni premuto per parlare",
+ "toClose": "chiudi",
+ "listening": "Ascolto...",
+ "transcribing": "Trascrizione...",
+ "thinking": "Pensiero..."
+ }
+ },
+ "integrations": {
+ "title": "Integrazioni",
+ "description": "Collega servizi per potenziare il tuo flusso di lavoro",
+ "googleCalendar": {
+ "title": "Google Calendar",
+ "description": "Collega il tuo calendario per attivare le note delle riunioni. OpenWhispr rileva le riunioni e registra con diarizzazione dei parlanti — automaticamente.",
+ "connect": "Collega Google Calendar",
+ "connecting": "Connessione...",
+ "connected": "Connesso",
+ "addAnother": "Aggiungi un altro calendario",
+ "disconnect": "Disconnetti",
+ "disconnectConfirm": "Disconnettere {{email}}?",
+ "disconnectDescription": "Le note delle riunioni non saranno più registrate da questo calendario."
+ },
+ "plan": {
+ "title": "Il tuo Piano",
+ "current": "Attuale",
+ "free": "Gratis",
+ "freeLimit": "5 riunioni / mese",
+ "essential": "Essential",
+ "essentialLimit": "20 riunioni / mese",
+ "pro": "Pro",
+ "proLimit": "Illimitato",
+ "upgrade": "Aggiorna"
+ }
+ },
+ "upcoming": {
+ "title": "Riunioni in programma",
+ "transcriptions": "Trascrizioni",
+ "tomorrow": "Domani",
+ "noMoreMeetings": "Nessun'altra riunione oggi",
+ "now": "In corso",
+ "join": "Partecipa",
+ "untitledEvent": "Evento senza titolo"
++ },
+ "notesView": {
+ "searchPlaceholder": "Cerca note…",
+ "newNote": "Nuova nota",
+ "empty": {
+ "title": "Nessuna nota ancora",
+ "description": "Crea la tua prima nota per iniziare."
+ },
+ "searchEmpty": {
+ "title": "Nessun risultato",
+ "description": "Nessuna nota trovata per «{{query}}»."
+ },
+ "noteType": {
+ "personal": "personale",
+ "meeting": "riunione",
+ "upload": "caricamento"
+ }
+ },
+ "noteEditor": {
+ "saved": "Salvato",
+ "deleteNote": "Elimina nota",
+ "deleteConfirmTitle": "Eliminare la nota?",
+ "deleteConfirmDescription": "Questa nota verrà eliminata definitivamente e non potrà essere recuperata.",
+ "deleteConfirm": "Elimina"
+ },
+ "commandSearch": {
+ "title": "Cerca",
+ "description": "Cerca tra note e trascrizioni",
+ "shortPlaceholder": "Cerca",
+ "placeholder": "Cerca note e trascrizioni…",
+ "sections": {
+ "notes": "Note",
+ "transcripts": "Trascrizioni"
+ },
+ "noResults": "Nessun risultato",
+ "emptyState": "Inizia a digitare per cercare",
+ "footer": {
+ "navigate": "Naviga",
+ "open": "Apri",
+ "dismiss": "Chiudi"
+ }
}
}
diff --cc src/locales/ja/translation.json
index e86e8d054,8545a06a8..3f0b367b7
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@@ -1602,81 -1600,45 +1606,122 @@@
"closeTab": "このタブを閉じてください。"
}
},
+ "agentMode": {
+ "settings": {
+ "title": "エージェントモード",
+ "description": "別のAIモデルを使用する音声チャットアシスタント",
+ "enabled": "エージェントモードを有効にする",
+ "enabledDescription": "別のホットキーを使用して音声チャットオーバーレイを開く",
+ "hotkey": "エージェントホットキー",
+ "hotkeyDescription": "エージェントオーバーレイを切り替えるホットキー",
+ "model": "エージェントモデル",
+ "modelDescription": "エージェント会話に使用するAIモデル",
+ "systemPrompt": "システムプロンプト",
+ "systemPromptDescription": "エージェントへのカスタム指示",
+ "systemPromptPlaceholder": "カスタムシステムプロンプトを入力...",
+ "openwhisprCloud": "OpenWhispr Cloud",
+ "openwhisprCloudDescription": "OpenWhisprのクラウドAIをエージェント会話に使用する",
+ "customSetup": "カスタム設定 (BYOK)",
+ "customSetupDescription": "自分のAPIキーを使用してお好みのモデルを選択する"
+ },
+ "chat": {
+ "placeholder": "{{hotkey}}を押して話す",
+ "thinking": "考え中...",
+ "transcribing": "文字起こし中...",
+ "listening": "聞いています...",
+ "newConversation": "新規",
+ "copyToClipboard": "クリップボードにコピー",
+ "copied": "コピーしました!",
+ "emptyState": "{{hotkey}} を長押しして会話を開始",
+ "errorPrefix": "エラー"
+ },
+ "titleBar": {
+ "label": "エージェント",
+ "newChat": "新しい会話",
+ "close": "閉じる"
+ },
+ "input": {
+ "holdToSpeak": "長押しして話す",
+ "toClose": "閉じる",
+ "listening": "聞いています...",
+ "transcribing": "文字起こし中...",
+ "thinking": "考え中..."
+ }
+ },
+ "integrations": {
+ "title": "連携",
+ "description": "サービスを接続してワークフローを強化",
+ "googleCalendar": {
+ "title": "Google カレンダー",
+ "description": "カレンダーを接続して会議メモを有効にします。OpenWhisprが会議を検出し、話者分離付きで自動的に録音します。",
+ "connect": "Google カレンダーを接続",
+ "connecting": "接続中...",
+ "connected": "接続済み",
+ "addAnother": "別のカレンダーを追加",
+ "disconnect": "切断",
+ "disconnectConfirm": "{{email}} を切断しますか?",
+ "disconnectDescription": "このカレンダーからの会議メモは記録されなくなります。"
+ },
+ "plan": {
+ "title": "プラン",
+ "current": "現在",
+ "free": "無料",
+ "freeLimit": "月5回の会議",
+ "essential": "Essential",
+ "essentialLimit": "月20回の会議",
+ "pro": "Pro",
+ "proLimit": "無制限",
+ "upgrade": "アップグレード"
+ }
+ },
+ "upcoming": {
+ "title": "今後の会議",
+ "transcriptions": "文字起こし",
+ "tomorrow": "明日",
+ "noMoreMeetings": "今日の予定はありません",
+ "now": "進行中",
+ "join": "参加",
+ "untitledEvent": "無題のイベント"
++ },
+ "notesView": {
+ "searchPlaceholder": "ノートを検索…",
+ "newNote": "新しいノート",
+ "empty": {
+ "title": "ノートがまだありません",
+ "description": "最初のノートを作成してください。"
+ },
+ "searchEmpty": {
+ "title": "結果なし",
+ "description": "「{{query}}」に一致するノートが見つかりませんでした。"
+ },
+ "noteType": {
+ "personal": "個人",
+ "meeting": "会議",
+ "upload": "アップロード"
+ }
+ },
+ "noteEditor": {
+ "saved": "保存済み",
+ "deleteNote": "ノートを削除",
+ "deleteConfirmTitle": "ノートを削除しますか?",
+ "deleteConfirmDescription": "このノートは完全に削除され、復元できません。",
+ "deleteConfirm": "削除"
+ },
+ "commandSearch": {
+ "title": "検索",
+ "description": "ノートと文字起こしを検索",
+ "shortPlaceholder": "検索",
+ "placeholder": "ノートと文字起こしを検索…",
+ "sections": {
+ "notes": "ノート",
+ "transcripts": "文字起こし"
+ },
+ "noResults": "結果なし",
+ "emptyState": "入力して検索",
+ "footer": {
+ "navigate": "移動",
+ "open": "開く",
+ "dismiss": "閉じる"
+ }
}
}
diff --cc src/locales/pt/translation.json
index 84c0a7d64,c04707373..75717ea1e
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@@ -1606,81 -1604,45 +1610,122 @@@
"closeTab": "Você pode fechar esta aba."
}
},
+ "agentMode": {
+ "settings": {
+ "title": "Modo Agente",
+ "description": "Assistente de chat por voz com um modelo de IA separado",
+ "enabled": "Ativar Modo Agente",
+ "enabledDescription": "Usar uma tecla de atalho separada para abrir uma sobreposição de chat por voz",
+ "hotkey": "Tecla do Agente",
+ "hotkeyDescription": "Tecla de atalho para alternar a sobreposição do agente",
+ "model": "Modelo do Agente",
+ "modelDescription": "Modelo de IA usado para conversas do agente",
+ "systemPrompt": "Prompt do Sistema",
+ "systemPromptDescription": "Instruções personalizadas para o agente",
+ "systemPromptPlaceholder": "Digite um prompt de sistema personalizado...",
+ "openwhisprCloud": "OpenWhispr Cloud",
+ "openwhisprCloudDescription": "Usar a IA na nuvem da OpenWhispr para conversas do agente",
+ "customSetup": "Configuração personalizada (BYOK)",
+ "customSetupDescription": "Use suas próprias chaves API e escolha seu modelo preferido"
+ },
+ "chat": {
+ "placeholder": "Pressione {{hotkey}} para falar",
+ "thinking": "Pensando...",
+ "transcribing": "Transcrevendo...",
+ "listening": "Ouvindo...",
+ "newConversation": "Novo",
+ "copyToClipboard": "Copiar para área de transferência",
+ "copied": "Copiado!",
+ "emptyState": "Segure {{hotkey}} para iniciar uma conversa",
+ "errorPrefix": "Erro"
+ },
+ "titleBar": {
+ "label": "Agente",
+ "newChat": "Nova conversa",
+ "close": "Fechar"
+ },
+ "input": {
+ "holdToSpeak": "Segure para falar",
+ "toClose": "fechar",
+ "listening": "Ouvindo...",
+ "transcribing": "Transcrevendo...",
+ "thinking": "Pensando..."
+ }
+ },
+ "integrations": {
+ "title": "Integrações",
+ "description": "Conecte serviços para turbinar seu fluxo de trabalho",
+ "googleCalendar": {
+ "title": "Google Calendar",
+ "description": "Conecte seu calendário para ativar notas de reunião. O OpenWhispr detecta reuniões e grava com diarização de falantes — automaticamente.",
+ "connect": "Conectar Google Calendar",
+ "connecting": "Conectando...",
+ "connected": "Conectado",
+ "addAnother": "Adicionar outro calendário",
+ "disconnect": "Desconectar",
+ "disconnectConfirm": "Desconectar {{email}}?",
+ "disconnectDescription": "As notas de reunião não serão mais gravadas deste calendário."
+ },
+ "plan": {
+ "title": "Seu Plano",
+ "current": "Atual",
+ "free": "Grátis",
+ "freeLimit": "5 reuniões / mês",
+ "essential": "Essential",
+ "essentialLimit": "20 reuniões / mês",
+ "pro": "Pro",
+ "proLimit": "Ilimitado",
+ "upgrade": "Atualizar"
+ }
+ },
+ "upcoming": {
+ "title": "Próximas reuniões",
+ "transcriptions": "Transcrições",
+ "tomorrow": "Amanhã",
+ "noMoreMeetings": "Sem mais reuniões hoje",
+ "now": "Agora",
+ "join": "Entrar",
+ "untitledEvent": "Evento sem título"
++ },
+ "notesView": {
+ "searchPlaceholder": "Pesquisar notas…",
+ "newNote": "Nova nota",
+ "empty": {
+ "title": "Nenhuma nota ainda",
+ "description": "Crie sua primeira nota para começar."
+ },
+ "searchEmpty": {
+ "title": "Sem resultados",
+ "description": "Nenhuma nota encontrada para \"{{query}}\"."
+ },
+ "noteType": {
+ "personal": "pessoal",
+ "meeting": "reunião",
+ "upload": "upload"
+ }
+ },
+ "noteEditor": {
+ "saved": "Salvo",
+ "deleteNote": "Excluir nota",
+ "deleteConfirmTitle": "Excluir nota?",
+ "deleteConfirmDescription": "Esta nota será excluída permanentemente e não poderá ser recuperada.",
+ "deleteConfirm": "Excluir"
+ },
+ "commandSearch": {
+ "title": "Pesquisar",
+ "description": "Pesquisar notas e transcrições",
+ "shortPlaceholder": "Pesquisar",
+ "placeholder": "Pesquisar notas e transcrições…",
+ "sections": {
+ "notes": "Notas",
+ "transcripts": "Transcrições"
+ },
+ "noResults": "Sem resultados",
+ "emptyState": "Comece a digitar para pesquisar",
+ "footer": {
+ "navigate": "Navegar",
+ "open": "Abrir",
+ "dismiss": "Fechar"
+ }
}
}
diff --cc src/locales/ru/translation.json
index ef0a8e6d2,560627639..892f65d21
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@@ -1606,81 -1604,45 +1610,122 @@@
"closeTab": "Можете закрыть эту вкладку."
}
},
+ "agentMode": {
+ "settings": {
+ "title": "Режим агента",
+ "description": "Голосовой чат-ассистент с отдельной моделью ИИ",
+ "enabled": "Включить режим агента",
+ "enabledDescription": "Используйте отдельную горячую клавишу для открытия наложения голосового чата",
+ "hotkey": "Горячая клавиша агента",
+ "hotkeyDescription": "Горячая клавиша для переключения наложения агента",
+ "model": "Модель агента",
+ "modelDescription": "Модель ИИ для разговоров с агентом",
+ "systemPrompt": "Системный промпт",
+ "systemPromptDescription": "Пользовательские инструкции для агента",
+ "systemPromptPlaceholder": "Введите пользовательский системный промпт...",
+ "openwhisprCloud": "OpenWhispr Cloud",
+ "openwhisprCloudDescription": "Использовать облачный ИИ OpenWhispr для разговоров с агентом",
+ "customSetup": "Своя настройка (BYOK)",
+ "customSetupDescription": "Используйте собственные API-ключи и выберите предпочтительную модель"
+ },
+ "chat": {
+ "placeholder": "Нажмите {{hotkey}} чтобы говорить",
+ "thinking": "Думаю...",
+ "transcribing": "Транскрибирую...",
+ "listening": "Слушаю...",
+ "newConversation": "Новый",
+ "copyToClipboard": "Копировать в буфер обмена",
+ "copied": "Скопировано!",
+ "emptyState": "Удерживайте {{hotkey}}, чтобы начать разговор",
+ "errorPrefix": "Ошибка"
+ },
+ "titleBar": {
+ "label": "Агент",
+ "newChat": "Новый разговор",
+ "close": "Закрыть"
+ },
+ "input": {
+ "holdToSpeak": "Удерживайте для разговора",
+ "toClose": "закрыть",
+ "listening": "Слушаю...",
+ "transcribing": "Транскрибирую...",
+ "thinking": "Думаю..."
+ }
+ },
+ "integrations": {
+ "title": "Интеграции",
+ "description": "Подключите сервисы для улучшения рабочего процесса",
+ "googleCalendar": {
+ "title": "Google Calendar",
+ "description": "Подключите календарь для активации заметок встреч. OpenWhispr определяет встречи и записывает с диаризацией говорящих — автоматически.",
+ "connect": "Подключить Google Calendar",
+ "connecting": "Подключение...",
+ "connected": "Подключено",
+ "addAnother": "Добавить ещё один календарь",
+ "disconnect": "Отключить",
+ "disconnectConfirm": "Отключить {{email}}?",
+ "disconnectDescription": "Заметки встреч больше не будут записываться из этого календаря."
+ },
+ "plan": {
+ "title": "Ваш план",
+ "current": "Текущий",
+ "free": "Бесплатный",
+ "freeLimit": "5 встреч / месяц",
+ "essential": "Essential",
+ "essentialLimit": "20 встреч / месяц",
+ "pro": "Pro",
+ "proLimit": "Безлимитно",
+ "upgrade": "Улучшить"
+ }
+ },
+ "upcoming": {
+ "title": "Предстоящие встречи",
+ "transcriptions": "Транскрипции",
+ "tomorrow": "Завтра",
+ "noMoreMeetings": "Больше встреч сегодня нет",
+ "now": "Сейчас",
+ "join": "Присоединиться",
+ "untitledEvent": "Без названия"
++ },
+ "notesView": {
+ "searchPlaceholder": "Поиск заметок…",
+ "newNote": "Новая заметка",
+ "empty": {
+ "title": "Заметок пока нет",
+ "description": "Создайте первую заметку, чтобы начать."
+ },
+ "searchEmpty": {
+ "title": "Нет результатов",
+ "description": "По запросу «{{query}}» заметки не найдены."
+ },
+ "noteType": {
+ "personal": "личная",
+ "meeting": "встреча",
+ "upload": "загрузка"
+ }
+ },
+ "noteEditor": {
+ "saved": "Сохранено",
+ "deleteNote": "Удалить заметку",
+ "deleteConfirmTitle": "Удалить заметку?",
+ "deleteConfirmDescription": "Эта заметка будет удалена безвозвратно.",
+ "deleteConfirm": "Удалить"
+ },
+ "commandSearch": {
+ "title": "Поиск",
+ "description": "Поиск по заметкам и транскрипциям",
+ "shortPlaceholder": "Поиск",
+ "placeholder": "Поиск по заметкам и транскрипциям…",
+ "sections": {
+ "notes": "Заметки",
+ "transcripts": "Транскрипции"
+ },
+ "noResults": "Нет результатов",
+ "emptyState": "Начните ввод для поиска",
+ "footer": {
+ "navigate": "Навигация",
+ "open": "Открыть",
+ "dismiss": "Закрыть"
+ }
}
}
diff --cc src/locales/zh-CN/translation.json
index a034e8c30,7f3324189..7658af482
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@@ -1602,81 -1600,45 +1606,122 @@@
"closeTab": "您可以关闭此标签页。"
}
},
+ "agentMode": {
+ "settings": {
+ "title": "智能助手模式",
+ "description": "使用独立AI模型的语音聊天助手",
+ "enabled": "启用智能助手模式",
+ "enabledDescription": "使用独立热键打开语音聊天覆盖层",
+ "hotkey": "助手热键",
+ "hotkeyDescription": "切换助手覆盖层的热键",
+ "model": "助手模型",
+ "modelDescription": "用于助手对话的AI模型",
+ "systemPrompt": "系统提示词",
+ "systemPromptDescription": "助手的自定义指令",
+ "systemPromptPlaceholder": "输入自定义系统提示词...",
+ "openwhisprCloud": "OpenWhispr Cloud",
+ "openwhisprCloudDescription": "使用 OpenWhispr 的云端 AI 进行助手对话",
+ "customSetup": "自定义配置 (BYOK)",
+ "customSetupDescription": "使用自己的 API 密钥并选择偏好的模型"
+ },
+ "chat": {
+ "placeholder": "按 {{hotkey}} 开始说话",
+ "thinking": "思考中...",
+ "transcribing": "转录中...",
+ "listening": "正在聆听...",
+ "newConversation": "新建",
+ "copyToClipboard": "复制到剪贴板",
+ "copied": "已复制!",
+ "emptyState": "按住 {{hotkey}} 开始对话",
+ "errorPrefix": "错误"
+ },
+ "titleBar": {
+ "label": "助手",
+ "newChat": "新对话",
+ "close": "关闭"
+ },
+ "input": {
+ "holdToSpeak": "按住说话",
+ "toClose": "关闭",
+ "listening": "正在聆听...",
+ "transcribing": "正在转录...",
+ "thinking": "正在思考..."
+ }
+ },
+ "integrations": {
+ "title": "集成",
+ "description": "连接服务以增强您的工作流程",
+ "googleCalendar": {
+ "title": "Google 日历",
+ "description": "连接日历以启用会议笔记。OpenWhispr 会自动检测会议并进行说话人分离录音。",
+ "connect": "连接 Google 日历",
+ "connecting": "连接中...",
+ "connected": "已连接",
+ "addAnother": "添加其他日历",
+ "disconnect": "断开",
+ "disconnectConfirm": "断开 {{email}}?",
+ "disconnectDescription": "将不再从此日历记录会议笔记。"
+ },
+ "plan": {
+ "title": "您的方案",
+ "current": "当前",
+ "free": "免费",
+ "freeLimit": "每月5次会议",
+ "essential": "Essential",
+ "essentialLimit": "每月20次会议",
+ "pro": "Pro",
+ "proLimit": "无限",
+ "upgrade": "升级"
+ }
+ },
+ "upcoming": {
+ "title": "即将开始的会议",
+ "transcriptions": "转录",
+ "tomorrow": "明天",
+ "noMoreMeetings": "今天没有更多会议了",
+ "now": "进行中",
+ "join": "加入",
+ "untitledEvent": "无标题事件"
++ },
+ "notesView": {
+ "searchPlaceholder": "搜索笔记…",
+ "newNote": "新建笔记",
+ "empty": {
+ "title": "暂无笔记",
+ "description": "创建你的第一条笔记开始使用。"
+ },
+ "searchEmpty": {
+ "title": "无结果",
+ "description": "未找到与“{{query}}”匹配的笔记。"
+ },
+ "noteType": {
+ "personal": "个人",
+ "meeting": "会议",
+ "upload": "上传"
+ }
+ },
+ "noteEditor": {
+ "saved": "已保存",
+ "deleteNote": "删除笔记",
+ "deleteConfirmTitle": "删除笔记?",
+ "deleteConfirmDescription": "此笔记将被永久删除,无法恢复。",
+ "deleteConfirm": "删除"
+ },
+ "commandSearch": {
+ "title": "搜索",
+ "description": "搜索笔记和转录",
+ "shortPlaceholder": "搜索",
+ "placeholder": "搜索笔记和转录…",
+ "sections": {
+ "notes": "笔记",
+ "transcripts": "转录"
+ },
+ "noResults": "无结果",
+ "emptyState": "输入内容开始搜索",
+ "footer": {
+ "navigate": "导航",
+ "open": "打开",
+ "dismiss": "关闭"
+ }
}
}
diff --cc src/locales/zh-TW/translation.json
index e5bba5bd0,b9fb61a12..1496539f1
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@@ -1602,81 -1600,45 +1606,122 @@@
"closeTab": "您可以關閉此分頁。"
}
},
+ "agentMode": {
+ "settings": {
+ "title": "智慧助手模式",
+ "description": "使用獨立AI模型的語音聊天助手",
+ "enabled": "啟用智慧助手模式",
+ "enabledDescription": "使用獨立熱鍵開啟語音聊天覆蓋層",
+ "hotkey": "助手熱鍵",
+ "hotkeyDescription": "切換助手覆蓋層的熱鍵",
+ "model": "助手模型",
+ "modelDescription": "用於助手對話的AI模型",
+ "systemPrompt": "系統提示詞",
+ "systemPromptDescription": "助手的自訂指令",
+ "systemPromptPlaceholder": "輸入自訂系統提示詞...",
+ "openwhisprCloud": "OpenWhispr Cloud",
+ "openwhisprCloudDescription": "使用 OpenWhispr 的雲端 AI 進行助手對話",
+ "customSetup": "自訂配置 (BYOK)",
+ "customSetupDescription": "使用自己的 API 金鑰並選擇偏好的模型"
+ },
+ "chat": {
+ "placeholder": "按 {{hotkey}} 開始說話",
+ "thinking": "思考中...",
+ "transcribing": "轉錄中...",
+ "listening": "正在聆聽...",
+ "newConversation": "新建",
+ "copyToClipboard": "複製到剪貼簿",
+ "copied": "已複製!",
+ "emptyState": "按住 {{hotkey}} 開始對話",
+ "errorPrefix": "錯誤"
+ },
+ "titleBar": {
+ "label": "助手",
+ "newChat": "新對話",
+ "close": "關閉"
+ },
+ "input": {
+ "holdToSpeak": "按住說話",
+ "toClose": "關閉",
+ "listening": "正在聆聽...",
+ "transcribing": "正在轉錄...",
+ "thinking": "正在思考..."
+ }
+ },
+ "integrations": {
+ "title": "整合",
+ "description": "連接服務以增強您的工作流程",
+ "googleCalendar": {
+ "title": "Google 日曆",
+ "description": "連接日曆以啟用會議筆記。OpenWhispr 會自動偵測會議並進行說話者分離錄音。",
+ "connect": "連接 Google 日曆",
+ "connecting": "連接中...",
+ "connected": "已連接",
+ "addAnother": "新增其他日曆",
+ "disconnect": "中斷連接",
+ "disconnectConfirm": "中斷 {{email}} 的連接?",
+ "disconnectDescription": "將不再從此日曆記錄會議筆記。"
+ },
+ "plan": {
+ "title": "您的方案",
+ "current": "目前",
+ "free": "免費",
+ "freeLimit": "每月5次會議",
+ "essential": "Essential",
+ "essentialLimit": "每月20次會議",
+ "pro": "Pro",
+ "proLimit": "無限",
+ "upgrade": "升級"
+ }
+ },
+ "upcoming": {
+ "title": "即將開始的會議",
+ "transcriptions": "轉錄",
+ "tomorrow": "明天",
+ "noMoreMeetings": "今天沒有更多會議了",
+ "now": "進行中",
+ "join": "加入",
+ "untitledEvent": "無標題事件"
++ },
+ "notesView": {
+ "searchPlaceholder": "搜尋筆記…",
+ "newNote": "新建筆記",
+ "empty": {
+ "title": "尚無筆記",
+ "description": "建立你的第一則筆記開始使用。"
+ },
+ "searchEmpty": {
+ "title": "無結果",
+ "description": "找不到與「{{query}}」相符的筆記。"
+ },
+ "noteType": {
+ "personal": "個人",
+ "meeting": "會議",
+ "upload": "上傳"
+ }
+ },
+ "noteEditor": {
+ "saved": "已儲存",
+ "deleteNote": "刪除筆記",
+ "deleteConfirmTitle": "刪除筆記?",
+ "deleteConfirmDescription": "此筆記將被永久刪除,無法復原。",
+ "deleteConfirm": "刪除"
+ },
+ "commandSearch": {
+ "title": "搜尋",
+ "description": "搜尋筆記與轉錄",
+ "shortPlaceholder": "搜尋",
+ "placeholder": "搜尋筆記與轉錄…",
+ "sections": {
+ "notes": "筆記",
+ "transcripts": "轉錄"
+ },
+ "noResults": "無結果",
+ "emptyState": "輸入內容開始搜尋",
+ "footer": {
+ "navigate": "導覽",
+ "open": "開啟",
+ "dismiss": "關閉"
+ }
}
}
diff --cc src/stores/settingsStore.ts
index 24b697884,d884d1e5b..972b8da96
--- a/src/stores/settingsStore.ts
+++ b/src/stores/settingsStore.ts
@@@ -56,15 -54,15 +56,18 @@@ const BOOLEAN_SETTINGS = new Set(
"cloudBackupEnabled",
"telemetryEnabled",
"audioCuesEnabled",
+ "pauseMediaOnDictation",
"floatingIconAutoHide",
+ "meetingProcessDetection",
+ "meetingAudioDetection",
"isSignedIn",
+ "agentEnabled",
]);
-const ARRAY_SETTINGS = new Set(["customDictionary"]);
+const ARRAY_SETTINGS = new Set(["customDictionary", "gcalAccounts"]);
+ const NUMERIC_SETTINGS = new Set(["audioRetentionDays"]);
+
const LANGUAGE_MIGRATIONS: Record<string, string> = { zh: "zh-CN" };
function migratePreferredLanguage() {
@@@ -85,16 -83,12 +88,18 @@@ export interface SettingsStat
MicrophoneSettings,
ApiKeySettings,
PrivacySettings,
- ThemeSettings {
+ ThemeSettings,
+ AgentModeSettings {
isSignedIn: boolean;
audioCuesEnabled: boolean;
+ pauseMediaOnDictation: boolean;
floatingIconAutoHide: boolean;
+ gcalAccounts: GoogleCalendarAccount[];
+ gcalConnected: boolean;
+ gcalEmail: string;
+ meetingProcessDetection: boolean;
+ meetingAudioDetection: boolean;
+ panelStartPosition: "bottom-right" | "center" | "bottom-left";
setUseLocalWhisper: (value: boolean) => void;
setWhisperModel: (value: string) => void;
@@@ -134,20 -128,13 +139,23 @@@
setTheme: (value: "light" | "dark" | "auto") => void;
setCloudBackupEnabled: (value: boolean) => void;
setTelemetryEnabled: (value: boolean) => void;
+ setAudioRetentionDays: (days: number) => void;
setAudioCuesEnabled: (value: boolean) => void;
+ setPauseMediaOnDictation: (value: boolean) => void;
setFloatingIconAutoHide: (enabled: boolean) => void;
+ setGcalAccounts: (accounts: GoogleCalendarAccount[]) => void;
+ setMeetingProcessDetection: (value: boolean) => void;
+ setMeetingAudioDetection: (value: boolean) => void;
+ setPanelStartPosition: (position: "bottom-right" | "center" | "bottom-left") => void;
setIsSignedIn: (value: boolean) => void;
+ setAgentModel: (value: string) => void;
+ setAgentProvider: (value: string) => void;
+ setAgentKey: (key: string) => void;
+ setAgentSystemPrompt: (value: string) => void;
+ setAgentEnabled: (value: boolean) => void;
+ setCloudAgentMode: (value: string) => void;
+
updateTranscriptionSettings: (settings: Partial<TranscriptionSettings>) => void;
updateReasoningSettings: (settings: Partial<ReasoningSettings>) => void;
updateApiKeys: (keys: Partial<ApiKeySettings>) => void;
@@@ -256,33 -242,23 +264,46 @@@ export const useSettingsStore = create<
})(),
cloudBackupEnabled: readBoolean("cloudBackupEnabled", false),
telemetryEnabled: readBoolean("telemetryEnabled", false),
+ audioRetentionDays: (() => {
+ if (!isBrowser) return 30;
+ const stored = localStorage.getItem("audioRetentionDays");
+ if (stored === null) return 30;
+ const parsed = parseInt(stored, 10);
+ return isNaN(parsed) ? 30 : parsed;
+ })(),
audioCuesEnabled: readBoolean("audioCuesEnabled", true),
+ pauseMediaOnDictation: readBoolean("pauseMediaOnDictation", false),
floatingIconAutoHide: readBoolean("floatingIconAutoHide", false),
+ ...(() => {
+ let accounts: GoogleCalendarAccount[] = [];
+ try {
+ const parsed = JSON.parse(readString("gcalAccounts", "[]"));
+ if (Array.isArray(parsed)) accounts = parsed;
+ } catch {
+ /* use empty default */
+ }
+ return {
+ gcalAccounts: accounts,
+ gcalConnected: accounts.length > 0,
+ gcalEmail: accounts[0]?.email ?? "",
+ };
+ })(),
+ meetingProcessDetection: readBoolean("meetingProcessDetection", true),
+ meetingAudioDetection: readBoolean("meetingAudioDetection", true),
+ panelStartPosition: (() => {
+ const v = readString("panelStartPosition", "bottom-right");
+ if (v === "bottom-right" || v === "center" || v === "bottom-left") return v;
+ return "bottom-right" as const;
+ })(),
isSignedIn: readBoolean("isSignedIn", false),
+ agentModel: readString("agentModel", "openai/gpt-oss-120b"),
+ agentProvider: readString("agentProvider", "groq"),
+ agentKey: readString("agentKey", ""),
+ agentSystemPrompt: readString("agentSystemPrompt", ""),
+ agentEnabled: readBoolean("agentEnabled", true),
+ cloudAgentMode: readString("cloudAgentMode", "openwhispr"),
+
setUseLocalWhisper: createBooleanSetter("useLocalWhisper"),
setWhisperModel: createStringSetter("whisperModel"),
setLocalTranscriptionProvider: (value: LocalTranscriptionProvider) => {
@@@ -414,16 -395,14 +440,24 @@@
}
},
+ setGcalAccounts: (accounts: GoogleCalendarAccount[]) => {
+ if (isBrowser) localStorage.setItem("gcalAccounts", JSON.stringify(accounts));
+ useSettingsStore.setState({
+ gcalAccounts: accounts,
+ gcalConnected: accounts.length > 0,
+ gcalEmail: accounts[0]?.email ?? "",
+ });
+ },
+ setMeetingProcessDetection: createBooleanSetter("meetingProcessDetection"),
+ setMeetingAudioDetection: createBooleanSetter("meetingAudioDetection"),
+ setPanelStartPosition: (position: "bottom-right" | "center" | "bottom-left") => {
+ if (get().panelStartPosition === position) return;
+ if (isBrowser) localStorage.setItem("panelStartPosition", position);
+ set({ panelStartPosition: position });
+ if (isBrowser) {
+ window.electronAPI?.notifyPanelStartPositionChanged?.(position);
+ }
+ },
setIsSignedIn: (value: boolean) => {
if (isBrowser) localStorage.setItem("isSignedIn", String(value));
diff --cc src/types/electron.ts
index bf8b2c300,1dc2828a1..5578448a4
--- a/src/types/electron.ts
+++ b/src/types/electron.ts
@@@ -18,8 -23,7 +23,9 @@@ export interface NoteItem
source_file: string | null;
audio_duration_seconds: number | null;
folder_id: number | null;
+ transcript: string | null;
+ calendar_event_id: string | null;
+ cloud_id: string | null;
created_at: string;
updated_at: string;
}