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

Function summaryToResponse

packages/core/api/src/handlers/artifacts.ts:21–29  ·  view source on GitHub ↗
(a: ArtifactSummary)

Source from the content-addressed store, hash-verified

19 );
20
21const summaryToResponse = (a: ArtifactSummary) => ({
22 id: a.id,
23 owner: a.owner,
24 title: a.title,
25 description: a.description,
26 preview: a.preview,
27 createdAt: a.createdAt.getTime(),
28 updatedAt: a.updatedAt.getTime(),
29});
30
31const artifactToResponse = (a: Artifact) => ({
32 ...summaryToResponse(a),

Callers 1

artifactToResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected