MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / fingerprintEntries

Function fingerprintEntries

apps/kimi-code/src/feedback/codebase/packager.ts:87–98  ·  view source on GitHub ↗
(entries: readonly PackageEntry[])

Source from the content-addressed store, hash-verified

85}
86
87function fingerprintEntries(entries: readonly PackageEntry[]): string {
88 const hash = createHash('sha256');
89 for (const entry of entries) {
90 hash.update(entry.archivePath);
91 hash.update('\0');
92 hash.update(String(entry.size));
93 hash.update('\0');
94 hash.update(String(Math.trunc(entry.mtimeMs)));
95 hash.update('\n');
96 }
97 return hash.digest('hex');
98}

Callers 1

packageEntriesFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected