An open-source, faster Devin alternative
TypeScript
snippet corrections
Brian Reardone29100f0103e
diff --git a/web/src/pages/Dashboard.tsx b/web/src/pages/Dashboard.tsxindex 03ec5d72..844805d0 100644--- a/web/src/pages/Dashboard.tsx+++ b/web/src/pages/Dashboard.tsx@@ -181,7 +181,7 @@ await sandbox.kill();`,oc create# Run a command in it — or drop into an interactive shell-oc exec <sandbox-id> "python3 --version"+oc exec <sandbox-id> -- python3 --versionoc shell <sandbox-id>`,},{diff --git a/web/src/pages/SandboxDetail.tsx b/web/src/pages/SandboxDetail.tsxindex fdb71e8a..be50401c 100644--- a/web/src/pages/SandboxDetail.tsx+++ b/web/src/pages/SandboxDetail.tsx@@ -171,11 +171,12 @@ console.log(stdout);`,code: [{label: 'SDK',- code: `await sandbox.exec.run("python3 -m http.server 8000 &");+ code: `// exec.start() runs the server in the background (exec.run() would block)+await sandbox.exec.start("python3 -m http.server 8000");const preview = await sandbox.createPreviewURL({ port: 8000 });-console.log(preview.url);`,+console.log(preview.hostname);`,},- { label: 'CLI', code: `oc preview create ${id} 8000` },+ { label: 'CLI', code: `oc preview create ${id} --port 8000` },{label: 'API',code: `curl -X POST https://app.opencomputer.dev/api/sandboxes/${id}/preview \\