MCPcopy Create free account
hub / github.com/anus-dev/ANUS / getProjectHash

Function getProjectHash

packages/core/src/utils/paths.ts:174–176  ·  view source on GitHub ↗
(projectRoot: string)

Source from the content-addressed store, hash-verified

172 * @returns A SHA256 hash of the project root path.
173 */
174export function getProjectHash(projectRoot: string): string {
175 return crypto.createHash('sha256').update(projectRoot).digest('hex');
176}
177
178/**
179 * Generates a unique temporary directory path for a project.

Callers 3

getProjectTempDirFunction · 0.85
getHistoryDirMethod · 0.85
gitService.test.tsFile · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected