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

Function rowToArtifactSummary

packages/core/sdk/src/artifact.ts:197–205  ·  view source on GitHub ↗
(row: ArtifactSummaryRow)

Source from the content-addressed store, hash-verified

195 value instanceof Date ? value : new Date(value);
196
197export const rowToArtifactSummary = (row: ArtifactSummaryRow): ArtifactSummary => ({
198 id: ArtifactId.make(row.id),
199 owner: row.owner as Owner,
200 title: row.title,
201 description: row.description ?? null,
202 preview: previewFromColumn(row.preview),
203 createdAt: asDate(row.created_at),
204 updatedAt: asDate(row.updated_at),
205});
206
207export const rowToArtifact = (row: ArtifactRow): Artifact => ({
208 ...rowToArtifactSummary(row),

Callers 1

rowToArtifactFunction · 0.85

Calls 2

previewFromColumnFunction · 0.85
asDateFunction · 0.85

Tested by

no test coverage detected