configure
Signature
E2B_* variables of this process so the stock e2b package, and the extras, talk to Anona.
configure.ts
Sandbox
A subclass of e2b’s Sandbox. Every e2b method works unchanged and defaults to the Anona domain. Added:
sandbox.live
ViewerToken has token, expiresAt (Date), embedUrl and claims(). toString() and toJSON() never include the token.
live_tokens.ts
InvalidArgumentError, 401/403 AuthenticationError, 404 NotFoundError, 429 RateLimitError, others SandboxError.
sandbox.ssh
SshCertificate is { cert, user, host, proxyCommand, expiresAt? }. See SSH.
Desktop
There is no desktop subclass in TypeScript: create with@e2b/desktop, then Sandbox.connect(desk.sandboxId) from @anona/sdk for live.desktopUrl(). See Desktop.
Exports
Sandbox, configure, applyEnv, anonaDefaults, Live, ViewerToken, Ssh, CHANNELS, SCOPES, MIN_TTL, MAX_TTL, DEFAULT_DOMAIN, DEFAULT_API_URL, DOMAIN_ENV, ENV_MAP, and the types ConfigureOpts, ViewerScope, ViewerChannel, ViewerTokenOpts, ViewerTokenClaims, SshCertificate, SshConfigOpts.