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

Function bindingsFromColumn

packages/core/sdk/src/artifact.ts:61–65  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

59 * on the artifact is the honest outcome.
60 */
61const bindingsFromColumn = (value: unknown): ArtifactBindings | null => {
62 if (value === null || value === undefined) return null;
63 const json = typeof value === "string" ? decodeJsonString(value) : Option.some(value);
64 return Option.flatMap(json, decodeBindings).pipe(Option.getOrElse(() => ({})));
65};
66
67/**
68 * What the gallery draws for an artifact, when it has anything to draw.

Callers 1

rowToArtifactFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected