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

Function notifyArtifactUsage

packages/hosts/mcp/src/tool-server.ts:1594–1597  ·  view source on GitHub ↗
(action: "created" | "viewed" | "updated")

Source from the content-addressed store, hash-verified

1592
1593 // Best-effort usage observation; a failing observer never affects the tool.
1594 const notifyArtifactUsage = (action: "created" | "viewed" | "updated"): Effect.Effect<void> =>
1595 config.onArtifactUsage
1596 ? config.onArtifactUsage(action).pipe(Effect.ignoreCause({ log: false }))
1597 : Effect.void;
1598
1599 const saveAndDeliverArtifact = (input: {
1600 readonly code: string;

Callers 2

saveAndDeliverArtifactFunction · 0.70
showArtifactFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected