feat: 设置面板添加代理配置 — web_search/web_fetch走HTTP代理(Clash等)

This commit is contained in:
thzxx
2026-06-10 15:38:56 +08:00
parent 3c54f15218
commit 3f11e7c3cd
6 changed files with 50 additions and 1 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ contextBridge.exposeInMainWorld('metonaDesktop', {
execute: (toolName: string, args: Record<string, unknown>) => ipcRenderer.invoke('tool:execute', toolName, args),
getConfig: () => ipcRenderer.invoke('tool:getConfig'),
setAllowedDirs: (dirs: string[]) => ipcRenderer.invoke('tool:setAllowedDirs', dirs),
setTimeouts: (timeouts: { http?: number; mcp?: number }) => ipcRenderer.invoke('tool:setTimeouts', timeouts)
setTimeouts: (timeouts: { http?: number; mcp?: number }) => ipcRenderer.invoke('tool:setTimeouts', timeouts),
setProxy: (url: string) => ipcRenderer.invoke('proxy:set', url)
},
notify: (title: string, body: string) => ipcRenderer.invoke('notify', title, body),
window: {