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

Function loadArtifact

packages/hosts/mcp/src/tool-server.ts:1274–1277  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

1272 /** The artifact as THIS caller can read it. A miss and a row owned by
1273 * someone else are the same answer, because they are the same query. */
1274 const loadArtifact = (id: string): Effect.Effect<Artifact | null> =>
1275 config.artifacts
1276 ? config.artifacts.get(id).pipe(Effect.catchCause(() => Effect.succeed(null)))
1277 : Effect.succeed(null);
1278
1279 // `execute-action` is `execute` as called by the shell rather than by the
1280 // model, and the difference is who owns approval. The shell renders the

Callers 2

createArtifactFunction · 0.85
editArtifactFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected