MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / sourceRef

Function sourceRef

packages/plugins/apps/src/pipeline/publish.ts:95–96  ·  view source on GitHub ↗
(path: string, source: string)

Source from the content-addressed store, hash-verified

93};
94
95const sourceRef = (path: string, source: string): Effect.Effect<ModuleSourceRef> =>
96 sha256Hex(source).pipe(Effect.map((sourceHash) => ({ path, sourceHash })));
97
98const isPublishError = Predicate.isTagged("PublishError") as (
99 value: unknown,

Callers 1

publishFunction · 0.85

Calls 1

sha256HexFunction · 0.90

Tested by

no test coverage detected