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

Function notifyArtifactUsage

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

Source from the content-addressed store, hash-verified

1569
1570 // Best-effort usage observation; a failing observer never affects the tool.
1571 const notifyArtifactUsage = (action: "created" | "viewed" | "updated"): Effect.Effect<void> =>
1572 config.onArtifactUsage
1573 ? config.onArtifactUsage(action).pipe(Effect.ignoreCause({ log: false }))
1574 : Effect.void;
1575
1576 const saveAndDeliverArtifact = (input: {
1577 readonly code: string;

Callers 2

saveAndDeliverArtifactFunction · 0.70
showArtifactFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected