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

Function artifactsGet

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

Source from the content-addressed store, hash-verified

3961 .pipe(Effect.map((rows) => rows.map(rowToArtifactSummary)));
3962
3963 const artifactsGet = (
3964 id: string,
3965 ): Effect.Effect<Artifact, ArtifactNotFoundError | StorageFailure> =>
3966 Effect.gen(function* () {
3967 const row = yield* core.findFirst("artifact", { where: artifactById(id) });
3968 if (!row) return yield* new ArtifactNotFoundError({ id: ArtifactId.make(id) });
3969 return rowToArtifact(row);
3970 });
3971
3972 const artifactsSave = (
3973 input: SaveArtifactInput,

Callers

nothing calls this directly

Calls 2

rowToArtifactFunction · 0.90
artifactByIdFunction · 0.85

Tested by

no test coverage detected