[FEAT] Add a Lizard Sandboxes provider for WorkspaceSandbox

Aperta
#1,482 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript
Ambito
backend, devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
TypeScript
Stelle
11k
Fork
1.2k
Merge medio
4g 10h
PR unite (30g)
6

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di VoltAgent/voltagent

Tutte le issue di VoltAgent/voltagent

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.