@sanity/eve-agent-sandbox
v0.1.2
Published
MicroVM sandbox provider for eve agents deployed to the Sanity agent platform.
Maintainers
Keywords
Readme
@sanity/eve-agent-sandbox
The MicroVM sandbox provider for eve agents deployed to the Sanity agent
platform. It gives a deployed agent bash and file tools.
// sandbox.ts in the agent directory
import { defineSandbox } from "eve/sandbox"
import { MicroVmSandbox } from "@sanity/eve-agent-sandbox"
export const environment = MicroVmSandbox.environment()
export default defineSandbox(() => environment.open())The platform sets MICROVM_IMAGE_ID, MICROVM_MAPPING_TABLE and AGENT_NAME on
each agent. Outside the platform the sandbox cannot start a MicroVM.
Development
The source lives in src/eve/ (microvm-sandbox-backend.ts and the modules it
imports), where the chat.eve.place agent also uses it. npm run build copies
those modules into src/ and compiles dist/.
Release: bump version, merge, then push a sandbox-v<version> tag. The
publish-sandbox CI job publishes with npm trusted publishing.
