mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-05-31 21:30:35 +00:00
32 lines
855 B
TypeScript
32 lines
855 B
TypeScript
import path from "node:path";
|
|
import os from "node:os";
|
|
|
|
export const HOME_DIR = path.join(os.homedir(), ".claude-code-router");
|
|
|
|
export const CONFIG_FILE = path.join(HOME_DIR, "config.json");
|
|
|
|
export const PLUGINS_DIR = path.join(HOME_DIR, "plugins");
|
|
|
|
export const PRESETS_DIR = path.join(HOME_DIR, "presets");
|
|
|
|
export const PID_FILE = path.join(HOME_DIR, '.claude-code-router.pid');
|
|
|
|
export const REFERENCE_COUNT_FILE = path.join(os.tmpdir(), "claude-code-reference-count.txt");
|
|
|
|
// Claude projects directory
|
|
export const CLAUDE_PROJECTS_DIR = path.join(os.homedir(), ".claude", "projects");
|
|
|
|
|
|
export interface DefaultConfig {
|
|
LOG: boolean;
|
|
OPENAI_API_KEY: string;
|
|
OPENAI_BASE_URL: string;
|
|
OPENAI_MODEL: string;
|
|
}
|
|
|
|
export const DEFAULT_CONFIG: DefaultConfig = {
|
|
LOG: false,
|
|
OPENAI_API_KEY: "",
|
|
OPENAI_BASE_URL: "",
|
|
OPENAI_MODEL: "",
|
|
};
|