MCPcopy
hub / github.com/stackblitz/bolt.new / runAction

Method runAction

app/lib/stores/workbench.ts:258–268  ·  view source on GitHub ↗
(data: ActionCallbackData)

Source from the content-addressed store, hash-verified

256 }
257
258 async runAction(data: ActionCallbackData) {
259 const { messageId } = data;
260
261 const artifact = this.#getArtifact(messageId);
262
263 if (!artifact) {
264 unreachable('Artifact not found');
265 }
266
267 artifact.runner.runAction(data);
268 }
269
270 #getArtifact(id: string) {
271 const artifacts = this.artifacts.get();

Callers 1

Calls 2

#getArtifactMethod · 0.95
unreachableFunction · 0.90

Tested by

no test coverage detected