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

Function artifactsGet

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

Source from the content-addressed store, hash-verified

6121 .pipe(Effect.map((rows) => rows.map(rowToArtifactSummary)));
6122
6123 const artifactsGet = (
6124 id: string,
6125 ): Effect.Effect<Artifact, ArtifactNotFoundError | StorageFailure> =>
6126 Effect.gen(function* () {
6127 const row = yield* core.findFirst("artifact", {
6128 where: artifactById(id),
6129 });
6130 if (!row) return yield* new ArtifactNotFoundError({ id: ArtifactId.make(id) });
6131 return rowToArtifact(row);
6132 });
6133
6134 const artifactsSave = (
6135 input: SaveArtifactInput,

Callers

nothing calls this directly

Calls 2

rowToArtifactFunction · 0.90
artifactByIdFunction · 0.85

Tested by

no test coverage detected