mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2025-12-24 08:44:21 +01:00
27 lines
601 B
TypeScript
27 lines
601 B
TypeScript
import { homedir } from "node:os";
|
|
import { resolve } from "node:path";
|
|
import { env } from "../lib/env";
|
|
|
|
const GLOBAL_CLAUDE_DIR = env.get("GLOBAL_CLAUDE_DIR");
|
|
|
|
export const globalClaudeDirectoryPath =
|
|
GLOBAL_CLAUDE_DIR === undefined
|
|
? resolve(homedir(), ".claude")
|
|
: resolve(GLOBAL_CLAUDE_DIR);
|
|
|
|
export const claudeProjectsDirPath = resolve(
|
|
globalClaudeDirectoryPath,
|
|
"projects",
|
|
);
|
|
|
|
export const claudeCommandsDirPath = resolve(
|
|
globalClaudeDirectoryPath,
|
|
"commands",
|
|
);
|
|
|
|
export const claudeCodeViewerCacheDirPath = resolve(
|
|
homedir(),
|
|
".claude-code-viewer",
|
|
"cache",
|
|
);
|