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

Function artifactsGet

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

Source from the content-addressed store, hash-verified

4074 .pipe(Effect.map((rows) => rows.map(rowToArtifactSummary)));
4075
4076 const artifactsGet = (
4077 id: string,
4078 ): Effect.Effect<Artifact, ArtifactNotFoundError | StorageFailure> =>
4079 Effect.gen(function* () {
4080 const row = yield* core.findFirst("artifact", { where: artifactById(id) });
4081 if (!row) return yield* new ArtifactNotFoundError({ id: ArtifactId.make(id) });
4082 return rowToArtifact(row);
4083 });
4084
4085 const artifactsSave = (
4086 input: SaveArtifactInput,

Callers

nothing calls this directly

Calls 2

rowToArtifactFunction · 0.90
artifactByIdFunction · 0.85

Tested by

no test coverage detected