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

Function loadArtifact

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

Source from the content-addressed store, hash-verified

1295 /** The artifact as THIS caller can read it. A miss and a row owned by
1296 * someone else are the same answer, because they are the same query. */
1297 const loadArtifact = (id: string): Effect.Effect<Artifact | null> =>
1298 config.artifacts
1299 ? config.artifacts.get(id).pipe(Effect.catchCause(() => Effect.succeed(null)))
1300 : Effect.succeed(null);
1301
1302 // `execute-action` is `execute` as called by the shell rather than by the
1303 // 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