mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 16:03:20 +00:00
9 lines
360 B
TypeScript
9 lines
360 B
TypeScript
import { ipcMain } from 'electron'
|
|
import type { MemorySnapshot } from '../../shared/types'
|
|
import type { Store } from '../persistence'
|
|
import { collectMemorySnapshot } from '../memory/collector'
|
|
|
|
export function registerMemoryHandlers(store: Store): void {
|
|
ipcMain.handle('memory:getSnapshot', (): Promise<MemorySnapshot> => collectMemorySnapshot(store))
|
|
}
|