MCPcopy Create free account
hub / github.com/backnotprop/plannotator / contentHash

Function contentHash

packages/shared/draft.ts:29–31  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

27 * Same content always produces the same key across server restarts.
28 */
29export function contentHash(content: string): string {
30 return createHash("sha256").update(content).digest("hex").slice(0, 16);
31}
32
33function draftPath(key: string): string {
34 return join(getDraftDir(), `${key}.json`);

Callers 8

startPlannotatorServerFunction · 0.90
startReviewServerFunction · 0.90
fetchFunction · 0.90
startAnnotateServerFunction · 0.90
startReviewServerFunction · 0.85
startPlanReviewServerFunction · 0.85
startAnnotateServerFunction · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected