the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 1241cd4e999bb3f48dca4cab7bcff14fe6f5d6ad 23 lines 668 B view raw
1import consola from "consola"; 2import { Sandbox } from "@pocketenv/sdk"; 3import { c } from "../theme"; 4import { configureSdk } from "../lib/sdk"; 5import open from "open"; 6 7export async function exposeVscode(sandboxName: string) { 8 await configureSdk(); 9 try { 10 const sandbox = await Sandbox.get(sandboxName); 11 const previewUrl = await sandbox.vscode(); 12 consola.success(`VS Code Server exposed for sandbox ${c.primary(sandboxName)}`); 13 14 if (previewUrl) { 15 consola.info(`Preview URL: ${c.primary(previewUrl)}`); 16 await open(previewUrl); 17 } 18 19 } catch (error) { 20 consola.error("Failed to expose VS Code:", error); 21 process.exit(1); 22 } 23}