mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-01 23:02:26 +00:00
Refactor app context system to use Zod schemas and sync access pattern
🤖 Generated with opencode Co-Authored-By: opencode <noreply@opencode.ai>
This commit is contained in:
@@ -18,7 +18,7 @@ export namespace Storage {
|
||||
}
|
||||
|
||||
const state = App.state("storage", async () => {
|
||||
const app = await App.use()
|
||||
const app = App.info()
|
||||
const storageDir = path.join(app.path.data, "storage")
|
||||
await fs.mkdir(storageDir, { recursive: true })
|
||||
const storage = new FileStorage(new LocalStorageAdapter(storageDir))
|
||||
|
||||
Reference in New Issue
Block a user