MCPcopy Create free account
hub / github.com/Effect-TS/effect / snapshotCacheKey

Function snapshotCacheKey

packages/tools/api-diff/src/Snapshot.ts:846–849  ·  view source on GitHub ↗
(
  sha: string,
  modules?: ReadonlyArray<string>
)

Source from the content-addressed store, hash-verified

844}
845
846export const snapshotCacheKey = (
847 sha: string,
848 modules?: ReadonlyArray<string>
849): string => fingerprint(["snapshot-v4", sha, ts.version, modules === undefined ? "all" : [...modules].sort()])
850
851export class Snapshotter extends Context.Service<Snapshotter, {
852 readonly extract: (options: ExtractSnapshotOptions) => Effect.Effect<

Callers 1

WorktreesClass · 0.90

Calls 1

fingerprintFunction · 0.90

Tested by

no test coverage detected