MCPcopy Create free account
hub / github.com/Nutlope/llamacoder / CodeRunner

Function CodeRunner

components/code-runner.tsx:3–17  ·  view source on GitHub ↗
({
  language,
  code,
  files,
  onRequestFix,
}: {
  language?: string;
  code?: string;
  files?: Array<{ path: string; content: string }>;
  onRequestFix?: (e: string) => void;
})

Source from the content-addressed store, hash-verified

1import CodeRunnerReact from "./code-runner-react";
2
3export default function CodeRunner({
4 language,
5 code,
6 files,
7 onRequestFix,
8}: {
9 language?: string;
10 code?: string;
11 files?: Array<{ path: string; content: string }>;
12 onRequestFix?: (e: string) => void;
13}) {
14 const actualFiles =
15 files || (code ? [{ path: "App.tsx", content: code }] : []);
16 return <CodeRunnerReact files={actualFiles} onRequestFix={onRequestFix} />;
17}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected