// src/cli/home.ts
import { homedir } from 'node:os';
import { join } from 'node:path';
import { existsSync } from 'node:fs';
export function getHomeDir() {
    return process.env.HOME ?? homedir();
}
export function getTeTrackingDir() {
    return join(getHomeDir(), '.ae-tracking');
}
export function getTokenPath() {
    return join(getTeTrackingDir(), 'tokens.json');
}
export function getClaudeSkillsDir() {
    return join(getHomeDir(), '.claude', 'skills');
}
export function getCodexSkillsDir() {
    return join(getHomeDir(), '.codex', 'skills');
}
export function isCodexInstalled() {
    return existsSync(getCodexSkillsDir());
}
