from __future__ import annotations import os from pathlib import Path HOME = Path.home() CODEX_HOME = Path(os.environ.get("CODEX_HOME", HOME / ".codex")).expanduser() CLAUDE_HOME = Path(os.environ.get("CLAUDE_HOME", HOME / ".claude")).expanduser() STATE_DB = CODEX_HOME / "state_5.sqlite" LOGS_DB = CODEX_HOME / "logs_2.sqlite" HISTORY_JSONL = CODEX_HOME / "history.jsonl" TUI_LOG = CODEX_HOME / "log" / "codex-tui.log" CONFIG_TOML = CODEX_HOME / "config.toml" CLAUDE_TASKS_DIR = CLAUDE_HOME / "tasks" CLAUDE_EVENTS_DIR = CLAUDE_HOME / "events" CLAUDE_PROJECTS_DIR = CLAUDE_HOME / "projects" CLAUDE_SESSION_LOGS_DIR = CLAUDE_HOME / "session-logs" CACHE_LOG = HOME / ".cache" / "codex-dashboard.log" LOCK_PATH = Path("/tmp/codex-dashboard.lock")