feat: 白龙马数字意识框架 v2.2.0 - 3D意识空间、多技能协同、自我进化系统

This commit is contained in:
xiaoyuanda666-ship-it
2026-06-07 19:43:22 +08:00
commit bf73366e81
234 changed files with 219763 additions and 0 deletions

18
electron/preload.cjs Normal file
View File

@@ -0,0 +1,18 @@
const { contextBridge, ipcRenderer, webFrame } = require('electron')
contextBridge.exposeInMainWorld('bailongma', {
platform: process.platform,
isElectron: true,
getVersion: () => ipcRenderer.invoke('app:get-version'),
checkForUpdates: () => ipcRenderer.invoke('updater:check-for-updates'),
startDownload: () => ipcRenderer.invoke('updater:start-download'),
quitAndInstall: () => ipcRenderer.invoke('updater:quit-and-install'),
getZoomFactor: () => webFrame.getZoomFactor(),
setZoomFactor: (factor) => webFrame.setZoomFactor(factor),
onUpdaterStatus: (handler) => {
if (typeof handler !== 'function') return () => {}
const listener = (_event, payload) => handler(payload)
ipcRenderer.on('updater:status', listener)
return () => ipcRenderer.removeListener('updater:status', listener)
},
})