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

Function artifactsList

packages/core/sdk/src/executor.ts:6200–6213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6198 b("id", "=", id);
6199
6200 const artifactsList = (): Effect.Effect<readonly ArtifactSummary[], StorageFailure> =>
6201 core
6202 .findMany("artifact", {
6203 // Newest first. `id` breaks ties so two artifacts sharing an
6204 // `updated_at` millisecond list in a repeatable order rather than
6205 // whatever the storage engine happens to return; which of the two
6206 // comes first is arbitrary, only its stability is guaranteed.
6207 orderBy: [
6208 ["updated_at", "desc"],
6209 ["id", "desc"],
6210 ],
6211 select: ARTIFACT_SUMMARY_COLUMNS,
6212 })
6213 .pipe(Effect.map((rows) => rows.map(rowToArtifactSummary)));
6214
6215 const artifactsGet = (
6216 id: string,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected