Skip to content

Commit ab48790

Browse files
feat: migrate app storage from sqlite to markdown vault (#701)
* chore: ignore local worktrees * refactor: remove sqlite storage engine runtime * feat: add sqlite to markdown migration flow * chore: update locales for markdown-only storage * fix: harden sqlite migration flow * feat: allow selecting sqlite file for manual migration
1 parent 4af793d commit ab48790

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+499
-3213
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ components.d.ts
99
auto-imports.d.ts
1010
.github/*-instructions.md
1111
.env
12-
docs/superpowers
12+
docs/superpowers

src/main/api/routes/system.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,9 @@
11
import { Elysia } from 'elysia'
22
import { resetRuntimeCache } from '../../storage/providers/markdown'
33
import { getVaultPath } from '../../storage/providers/markdown/runtime'
4-
import { store } from '../../store'
54

65
const app = new Elysia({ prefix: '/system' })
76

8-
app.get(
9-
'/storage-engine',
10-
() => {
11-
const engine = store.preferences.get('storage.engine')
12-
13-
return { engine }
14-
},
15-
{
16-
detail: {
17-
tags: ['System'],
18-
},
19-
},
20-
)
21-
227
app.get(
238
'/storage-vault-path',
249
() => {
@@ -36,9 +21,7 @@ app.get(
3621
app.post(
3722
'/storage-cache/reset',
3823
() => {
39-
if (store.preferences.get('storage.engine') === 'markdown') {
40-
resetRuntimeCache()
41-
}
24+
resetRuntimeCache()
4225

4326
return {
4427
reset: true,

0 commit comments

Comments
 (0)