[FEAT] Add a Lizard Sandboxes provider for WorkspaceSandbox

Abierto
#1,482 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 5 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
node.js, typescript
Área
backend, devtools

Línea de trabajo

Start with packages/core/src/workspace/sandbox/types.ts and compare the existing sandbox providers to understand the interface and preferred package location. The issue lists lifecycle, remote command execution, cancellation, output limits, stdin, filesystem boundaries, tests, an example, and documentation as requirements. First clarify whether the provider belongs in this monorepo or under @lizard-build; done means an accepted location and a tested provider with documented setup and limits.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Is your feature request related to a problem? Please describe.

VoltAgent users who run code on Lizard (lizard.build) currently need to implement WorkspaceSandbox themselves. We would like to contribute a provider for Lizard Sandboxes so they can use the workspace command tools with remote execution and tested cleanup.

I am on the Lizard team and can help maintain the integration. Before writing a package, I would like to confirm the preferred home and whether you would accept its documentation.

Describe alternatives you've considered
  • Use a custom WorkspaceSandbox in each application.
  • Expose Lizard SDK or Lizard MCP calls as ordinary agent tools.

Both are possible, but a shared workspace provider would give users a tested implementation of the existing lifecycle, cancellation and output contract.

Additional context

We understand that Workspaces is experimental and would track changes to its interface. We are not proposing changes to the core interface.

Describe the thing to improve

Proposed first version: LizardSandbox implements WorkspaceSandbox, backed by @lizard-build/sdk.

  • Configure API key, project, template, size and a finite sandbox lifetime. Keep the key on the host and out of command arguments and sandbox environment variables.
  • Create an owned sandbox lazily, with start(), getInfo() and idempotent stop() / destroy(). Agree on stop/restart semantics before implementing them.
  • Map command, args, cwd and env to remote execution with correct argument quoting.
  • Return stdout, stderr, exit code, duration, timeout/abort status and output truncation flags. Enforce maxOutputBytes and forward output callbacks.
  • Enforce timeoutMs and AbortSignal with remote process cleanup; do not just stop waiting locally. The SDK exposes process IDs and process-tree signalling. Document the fallback if termination cannot be confirmed.
  • Handle stdin explicitly, with tests or a clear unsupported-option error rather than silently ignoring it.
  • Keep filesystem support separate and state clearly that a local workspace filesystem does not sync to the remote sandbox.

We would add mocked unit tests for lifecycle, command options, concurrent initialization, nonzero exits, timeouts, aborts and output limits; an opt-in cloud test; and a runnable workspace example with cleanup. Documentation would cover setup, billing requirements and known limits.

Would you prefer a package in this monorepo, like the existing sandbox providers, or a package maintained under @lizard-build? If external, would a provider entry in the workspace docs and an example be welcome?

Lenguaje dominante
TypeScript
Estrellas
11k
Forks
1.2k
Merge medio
4 d 10 h
PR fusionados (30 d)
6

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de VoltAgent/voltagent

Todos los issues de VoltAgent/voltagent

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.