MCPcopy Create free account
hub / github.com/cortexkit/magic-context / sha

Function sha

packages/e2e-tests/src/cache-analysis.ts:68–70  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

66}
67
68function sha(s: string): string {
69 return createHash("sha256").update(s).digest("hex").slice(0, 12);
70}
71
72/** Recursively strip `cache_control` fields — marker movement is not content. */
73function stripCacheControl(value: unknown): unknown {

Callers 1

buildSegmentsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected