claude oauth support

This commit is contained in:
Dax Raad
2025-06-05 11:50:54 -04:00
parent b3555cda30
commit 35b03e4cb3
12 changed files with 457 additions and 195 deletions

View File

@@ -37,7 +37,11 @@ export namespace App {
x ? path.dirname(x) : undefined,
)
const data = path.join(Global.Path.data, git ?? "global")
const data = path.join(
Global.Path.data,
"project",
git ? git.split(path.sep).join("-") : "global",
)
const stateFile = Bun.file(path.join(data, APP_JSON))
const state = (await stateFile.json().catch(() => ({}))) as {
initialized: number