MCPcopy
hub / github.com/numbersprotocol/nit / getStagedCommit

Function getStagedCommit

src/run.ts:76–78  ·  view source on GitHub ↗
(assetCid)

Source from the content-addressed store, hash-verified

74}
75
76async function getStagedCommit(assetCid) {
77 return JSON.parse(fs.readFileSync(`${workingDir}/${assetCid}/commit.json`, "utf-8"));
78}
79
80async function getStagedAssetTree(assetCid) {
81 return JSON.parse(fs.readFileSync(`${workingDir}/${assetCid}/assetTree.json`, "utf-8"));

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected