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

Function loadArtifact

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

Source from the content-addressed store, hash-verified

1264 /** The artifact as THIS caller can read it. A miss and a row owned by
1265 * someone else are the same answer, because they are the same query. */
1266 const loadArtifact = (id: string): Effect.Effect<Artifact | null> =>
1267 config.artifacts
1268 ? config.artifacts.get(id).pipe(Effect.catchCause(() => Effect.succeed(null)))
1269 : Effect.succeed(null);
1270
1271 // `execute-action` is `execute` as called by the shell rather than by the
1272 // 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