fix: complete HoloLake Agent and Forgejo desktop runtime
This commit is contained in:
parent
28f68fa9ac
commit
46bdd0ca73
15 changed files with 1217 additions and 638 deletions
|
|
@ -16,11 +16,11 @@ contextBridge.exposeInMainWorld('hololake', {
|
|||
// 数据目录
|
||||
getDataPath: () => ipcRenderer.invoke('get-data-path'),
|
||||
|
||||
// Forgejo 远程仓库管理(预留接口)
|
||||
forgejo: {
|
||||
getRemotes: () => ipcRenderer.invoke('forgejo:get-remotes'),
|
||||
addRemote: (url: string) => ipcRenderer.invoke('forgejo:add-remote', url),
|
||||
push: () => ipcRenderer.invoke('forgejo:push'),
|
||||
pull: () => ipcRenderer.invoke('forgejo:pull'),
|
||||
agent: {
|
||||
getConfig: () => ipcRenderer.invoke('agent:get-config'),
|
||||
saveConfig: (config: { baseUrl: string; model: string; apiKey?: string }) =>
|
||||
ipcRenderer.invoke('agent:save-config', config),
|
||||
},
|
||||
|
||||
// Forgejo 通过本地知识库 API 管理;此桥只保留非敏感应用信息。
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue