chore(cleanup): remove document drag-and-drop

Remove the feature that let a user drop a .txt/.md/.csv/.docx/.pdf file
onto the avatar to feed its text into the chat: the dropped-files IPC
handler and extractText() in main, and getPathForFile/sendDroppedFiles
in the preload API and renderer App.tsx. This fed documents into the
general-purpose chat loop, which is being phased out in favor of the
server-side coach pipeline. Uninstall mammoth and pdf-parse, now unused.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
william
2026-10-31 20:38:19 +01:00
co-authored by Claude Sonnet 5
parent 6cb38a2f36
commit acdd8a08d3
8 changed files with 12 additions and 266 deletions
-2
View File
@@ -10,8 +10,6 @@ export interface ForgeAvatarApi {
showContextMenu: (listening: boolean) => void
onToggleListening: (callback: (listening: boolean) => void) => () => void
onProactiveSpeech: (callback: (audio: ArrayBuffer) => void) => () => void
getPathForFile: (file: File) => string
sendDroppedFiles: (paths: string[]) => void
onUpdateAvailable: (callback: () => void) => () => void
onUpdateReady: (callback: () => void) => () => void
login: (email: string, password: string) => Promise<LoginResult>