MCPcopy Index your code
hub / github.com/openai/codex-plugin-cc / sourceContentSha256

Function sourceContentSha256

plugins/codex/scripts/lib/codex.mjs:657–659  ·  view source on GitHub ↗
(sourcePath)

Source from the content-addressed store, hash-verified

655}
656
657function sourceContentSha256(sourcePath) {
658 return crypto.createHash("sha256").update(fs.readFileSync(sourcePath)).digest("hex");
659}
660
661function importedThreadIdForSource(sourcePath) {
662 const ledgerPath = path.join(resolveCodexHome(), "external_agent_session_imports.json");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected