Add Agent Computer provider

Add an Agent Computer provider to the TypeScript SDK, wire in provider-specific inspector URLs, and document the new deploy flow with an example package.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Harivansh Rathi 2026-03-26 14:59:01 -04:00
parent bf484e7c96
commit e7d31de44f
17 changed files with 729 additions and 6 deletions

View file

@ -0,0 +1,19 @@
import { SandboxAgent } from "sandbox-agent";
import { agentcomputer } from "sandbox-agent/agentcomputer";
const client = await SandboxAgent.start({
sandbox: agentcomputer(),
});
console.log(`UI: ${client.inspectorUrl}`);
const health = await client.getHealth();
console.log(`Health: ${health.status}`);
const agents = await client.listAgents();
console.log("Agents:", agents.agents.map((agent) => agent.id).join(", "));
process.once("SIGINT", async () => {
await client.destroySandbox();
process.exit(0);
});