support CLAUDE_CONFIG_DIR environment variable

Respects CLAUDE_CONFIG_DIR if set, falls back to ~/.claude.
Closes #3.
This commit is contained in:
AgentSeal 2026-04-13 17:52:27 -07:00
parent 490130e32e
commit f6cc68a7d4

View file

@ -18,7 +18,7 @@ import type {
import { classifyTurn } from './classifier.js'
function getClaudeDir(): string {
return join(homedir(), '.claude')
return process.env['CLAUDE_CONFIG_DIR'] || join(homedir(), '.claude')
}
function getProjectsDir(): string {