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

Function artifactsGet

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

Source from the content-addressed store, hash-verified

4120 .pipe(Effect.map((rows) => rows.map(rowToArtifactSummary)));
4121
4122 const artifactsGet = (
4123 id: string,
4124 ): Effect.Effect<Artifact, ArtifactNotFoundError | StorageFailure> =>
4125 Effect.gen(function* () {
4126 const row = yield* core.findFirst("artifact", { where: artifactById(id) });
4127 if (!row) return yield* new ArtifactNotFoundError({ id: ArtifactId.make(id) });
4128 return rowToArtifact(row);
4129 });
4130
4131 const artifactsSave = (
4132 input: SaveArtifactInput,

Callers

nothing calls this directly

Calls 2

rowToArtifactFunction · 0.90
artifactByIdFunction · 0.85

Tested by

no test coverage detected