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

Function artifactsGet

packages/core/sdk/src/executor.ts:4784–4791  ·  view source on GitHub ↗
(
      id: string,
    )

Source from the content-addressed store, hash-verified

4782 .pipe(Effect.map((rows) => rows.map(rowToArtifactSummary)));
4783
4784 const artifactsGet = (
4785 id: string,
4786 ): Effect.Effect<Artifact, ArtifactNotFoundError | StorageFailure> =>
4787 Effect.gen(function* () {
4788 const row = yield* core.findFirst("artifact", { where: artifactById(id) });
4789 if (!row) return yield* new ArtifactNotFoundError({ id: ArtifactId.make(id) });
4790 return rowToArtifact(row);
4791 });
4792
4793 const artifactsSave = (
4794 input: SaveArtifactInput,

Callers

nothing calls this directly

Calls 2

rowToArtifactFunction · 0.90
artifactByIdFunction · 0.85

Tested by

no test coverage detected