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

Function snapshotCacheKey

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

Source from the content-addressed store, hash-verified

882}
883
884export const snapshotCacheKey = (
885 sha: string,
886 modules?: ReadonlyArray<string>
887): string =>
888 fingerprint([
889 "snapshot-v4",
890 "class-member-optionality-v1",
891 "literal-type-category-v1",
892 sha,
893 ts.version,
894 modules === undefined ? "all" : [...modules].sort()
895 ])
896
897export class Snapshotter extends Context.Service<Snapshotter, {
898 readonly extract: (options: ExtractSnapshotOptions) => Effect.Effect<

Callers 1

WorktreesClass · 0.90

Calls 1

fingerprintFunction · 0.90

Tested by

no test coverage detected