mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 06:12:26 +00:00
Replace env-paths with xdg-basedir for better XDG compliance and cross-platform directory handling
🤖 Generated with opencode Co-Authored-By: opencode <noreply@opencode.ai>
This commit is contained in:
@@ -34,7 +34,7 @@ export namespace App {
|
||||
x ? path.dirname(x) : undefined,
|
||||
)
|
||||
|
||||
const data = path.join(Global.data(), git ?? "global")
|
||||
const data = path.join(Global.Path.data, git ?? "global")
|
||||
const stateFile = Bun.file(path.join(data, APP_JSON))
|
||||
const state = (await stateFile.json().catch(() => ({}))) as {
|
||||
initialized: number
|
||||
|
||||
Reference in New Issue
Block a user