MCPcopy
hub / github.com/srcbookdev/srcbook / generate

Function generate

packages/web/src/components/cells/code.tsx:250–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248 }, [cell.id, channel]);
249
250 const generate = () => {
251 if (!channel) {
252 return;
253 }
254
255 setGenerationType('edit');
256 channel.push('ai:generate', {
257 cellId: cell.id,
258 prompt,
259 });
260 setCellMode('generating');
261 };
262
263 const aiFixDiagnostics = (diagnostics: string) => {
264 if (!channel) {

Callers 1

ControlledCodeCellFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected