MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getProjectDataDir

Function getProjectDataDir

cli/src/project-files.ts:43–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42// Get the project-specific data directory
43export function getProjectDataDir(): string {
44 const root = getProjectRoot()
45 if (!root) {
46 throw new Error('Project root not set')
47 }
48
49 const baseName = path.basename(root)
50 const baseDir = path.join(getConfigDir(), 'projects', baseName)
51
52 return baseDir
53}
54
55/**
56 * Find the most recent chat directory based on modification time

Callers 4

loadMostRecentChatStateFunction · 0.90
getChatsDirFunction · 0.90
getMostRecentChatDirFunction · 0.85
getCurrentChatDirFunction · 0.85

Calls 2

getConfigDirFunction · 0.90
getProjectRootFunction · 0.85

Tested by

no test coverage detected