MCPcopy Create free account
hub / github.com/adobe/react-spectrum / sha256Digest

Function sha256Digest

packages/dev/s2-docs/scripts/generateAgentSkills.mjs:1130–1133  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

1128}
1129
1130function sha256Digest(filePath) {
1131 const hash = crypto.createHash('sha256').update(fs.readFileSync(filePath)).digest('hex');
1132 return `sha256:${hash}`;
1133}
1134
1135/**
1136 * Package a skill directory as a `.tar.gz` archive at the well-known root, with `SKILL.md`

Callers 1

buildSkillArtifactFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected