Centralise all ~/.gsd path construction through app-paths.ts (compiled code) or a module-level `gsdHome` const (runtime extensions that cannot import app-paths). When GSD_HOME is set, every path that previously resolved under ~/.gsd now resolves under the override. Existing overrides (GSD_STATE_DIR, GSD_CODING_AGENT_DIR) continue to take precedence when set.
7 lines
285 B
TypeScript
7 lines
285 B
TypeScript
import { homedir } from 'os'
|
|
import { join } from 'path'
|
|
|
|
export const appRoot = process.env.GSD_HOME || join(homedir(), '.gsd')
|
|
export const agentDir = join(appRoot, 'agent')
|
|
export const sessionsDir = join(appRoot, 'sessions')
|
|
export const authFilePath = join(agentDir, 'auth.json')
|