Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(memory): remove WhatsApp store helpers

Steven Enamakel9729ec5df5be
diff --git a/app/src/utils/tauriCommands/memory.ts b/app/src/utils/tauriCommands/memory.ts
index 0708c9365d..56bebd83a6 100644
--- a/app/src/utils/tauriCommands/memory.ts
+++ b/app/src/utils/tauriCommands/memory.ts
@@ -352,63 +352,3 @@ export async function memoryLearnAll(namespaces?: string[]): Promise<MemoryLearn
return resp;
}
-/** A WhatsApp chat record from the local whatsapp_data store. */
-export interface WhatsAppChat {
- chat_id: string;
- display_name: string;
- is_group: boolean;
- account_id: string;
- last_message_ts: number;
- message_count: number;
- updated_at: number;
-}
-
-/** A WhatsApp message record from the local whatsapp_data store. */
-export interface WhatsAppMessage {
- message_id: string;
- chat_id: string;
- sender: string;
- sender_jid?: string;
- from_me: boolean;
- body: string;
- timestamp: number;
- message_type?: string;
- account_id: string;
- source: string;
-}
-
-/**
- * List WhatsApp chats from the local store (scanner-populated).
- *
- * The whatsapp_data store lives in the Tauri shell (relocated from the Rust
- * core), so this reads it through the `whatsapp_data_list_chats` Tauri command
- * rather than a core RPC. The command returns the row array directly.
- */
-export async function whatsappListChats(params?: {
- account_id?: string;
- limit?: number;
- offset?: number;
-}): Promise<WhatsAppChat[]> {
- if (!isTauri()) {
- throw new Error('Not running in Tauri');
- }
- const resp = await safeInvoke<WhatsAppChat[]>('whatsapp_data_list_chats', { req: params ?? {} });
- return resp ?? [];
-}
-
-/**
- * List messages for a chat from the local shell-side store via the
- * `whatsapp_data_list_messages` Tauri command.
- */
-export async function whatsappListMessages(params: {
- chat_id: string;
- account_id?: string;
- limit?: number;
- offset?: number;
-}): Promise<WhatsAppMessage[]> {
- if (!isTauri()) {
- throw new Error('Not running in Tauri');
- }
- const resp = await safeInvoke<WhatsAppMessage[]>('whatsapp_data_list_messages', { req: params });
- return resp ?? [];
-}