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

Function artifactsGet

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

Source from the content-addressed store, hash-verified

4504 .pipe(Effect.map((rows) => rows.map(rowToArtifactSummary)));
4505
4506 const artifactsGet = (
4507 id: string,
4508 ): Effect.Effect<Artifact, ArtifactNotFoundError | StorageFailure> =>
4509 Effect.gen(function* () {
4510 const row = yield* core.findFirst("artifact", { where: artifactById(id) });
4511 if (!row) return yield* new ArtifactNotFoundError({ id: ArtifactId.make(id) });
4512 return rowToArtifact(row);
4513 });
4514
4515 const artifactsSave = (
4516 input: SaveArtifactInput,

Callers

nothing calls this directly

Calls 2

rowToArtifactFunction · 0.90
artifactByIdFunction · 0.85

Tested by

no test coverage detected