chore: simplify examples and print UI URL in runPrompt

- Remove logInspectorUrl calls from all examples
- Remove isMainModule checks from e2b, docker, vercel examples
- Simplify e2b, docker, vercel to match daytona's direct execution style
- Print UI URL at start of runPrompt in shared module
This commit is contained in:
Nathan Flurry 2026-02-01 23:23:01 -08:00
parent daffabf74c
commit 36c4dde9d2
7 changed files with 120 additions and 207 deletions

View file

@ -1,5 +1,5 @@
import { Daytona, Image } from "@daytonaio/sdk";
import { logInspectorUrl, runPrompt } from "@sandbox-agent/example-shared";
import { runPrompt } from "@sandbox-agent/example-shared";
const daytona = new Daytona();
@ -23,7 +23,6 @@ await sandbox.process.executeCommand(
);
const baseUrl = (await sandbox.getSignedPreviewUrl(3000, 4 * 60 * 60)).url;
logInspectorUrl({ baseUrl });
const cleanup = async () => {
await sandbox.delete(60);

View file

@ -1,5 +1,5 @@
import { Daytona } from "@daytonaio/sdk";
import { logInspectorUrl, runPrompt } from "@sandbox-agent/example-shared";
import { runPrompt } from "@sandbox-agent/example-shared";
const daytona = new Daytona();
@ -24,7 +24,6 @@ await sandbox.process.executeCommand(
);
const baseUrl = (await sandbox.getSignedPreviewUrl(3000, 4 * 60 * 60)).url;
logInspectorUrl({ baseUrl });
const cleanup = async () => {
await sandbox.delete(60);