feat: upgrade @mcp-ui/client package and improve UI message handling (#4164)

This commit is contained in:
Andrew Harvard
2025-08-21 16:21:32 -04:00
committed by GitHub
parent 79b163cc60
commit db8518f52d
9 changed files with 447 additions and 98 deletions
+5
View File
@@ -96,6 +96,8 @@ type ElectronAPI = {
// Functions for image pasting
saveDataUrlToTemp: (dataUrl: string, uniqueId: string) => Promise<SaveDataUrlResponse>;
deleteTempFile: (filePath: string) => void;
// Function for opening external URLs securely
openExternal: (url: string) => Promise<void>;
// Function to serve temp images
getTempImage: (filePath: string) => Promise<string | null>;
// Update-related functions
@@ -208,6 +210,9 @@ const electronAPI: ElectronAPI = {
deleteTempFile: (filePath: string): void => {
ipcRenderer.send('delete-temp-file', filePath);
},
openExternal: (url: string): Promise<void> => {
return ipcRenderer.invoke('open-external', url);
},
getTempImage: (filePath: string): Promise<string | null> => {
return ipcRenderer.invoke('get-temp-image', filePath);
},