mirror of
https://github.com/stablyai/orca.git
synced 2026-09-30 16:02:56 +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))
|
|
}
|