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

Function artifactsGet

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

Source from the content-addressed store, hash-verified

4048 .pipe(Effect.map((rows) => rows.map(rowToArtifactSummary)));
4049
4050 const artifactsGet = (
4051 id: string,
4052 ): Effect.Effect<Artifact, ArtifactNotFoundError | StorageFailure> =>
4053 Effect.gen(function* () {
4054 const row = yield* core.findFirst("artifact", { where: artifactById(id) });
4055 if (!row) return yield* new ArtifactNotFoundError({ id: ArtifactId.make(id) });
4056 return rowToArtifact(row);
4057 });
4058
4059 const artifactsSave = (
4060 input: SaveArtifactInput,

Callers

nothing calls this directly

Calls 2

rowToArtifactFunction · 0.90
artifactByIdFunction · 0.85

Tested by

no test coverage detected