story bible

This commit is contained in:
2026-03-02 22:13:09 +10:00
parent 84377c82af
commit aafebbc9fb
15 changed files with 557 additions and 77 deletions

View File

@@ -84,5 +84,11 @@ contextBridge.exposeInMainWorld('api', {
ipcRenderer.invoke('fs:createDir', parentPath, name),
moveFile: (sourcePath: string, targetDirPath: string): Promise<string> =>
ipcRenderer.invoke('fs:move', sourcePath, targetDirPath)
ipcRenderer.invoke('fs:move', sourcePath, targetDirPath),
openStoryBible: (): Promise<{ path: string; content: string }> =>
ipcRenderer.invoke('fs:openStoryBible'),
writeStoryBible: (content: string): Promise<void> =>
ipcRenderer.invoke('fs:writeStoryBible', content)
})