MCPcopy Create free account
hub / github.com/FIND-Lab/AgentWard / calculateContentHash

Function calculateContentHash

layers/foundation-scan.ts:271–273  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

269}
270
271function calculateContentHash(content: string): string {
272 return createHash("sha256").update(content, "utf8").digest("hex");
273}
274
275function truncateForSemanticDetection(text: string, maxLength: number): string {
276 if (text.length <= maxLength) return text;

Callers 2

detectSkillMetadataRiskFunction · 0.85
scanSkillFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected