Skip to main content

createLocalSandbox

@forge/monorepo


@forge/monorepo / backend/src / createLocalSandbox

Function: createLocalSandbox()

createLocalSandbox(config): Sandbox

Defined in: backend/src/toolkit/sandbox.ts:300

The development adapter, which refuses to exist unless a deployment says so in words.

The refusal is at construction rather than at the call, so a misconfiguration is a boot failure rather than a surprise the first time somebody asks the agent to run something. And the message says what to do instead, because "not allowed" without a next step is how a flag gets set to make an error go away.

It provides the timeout and the output cap. It provides none of the isolation: no network isolation, no memory cap, no read-only filesystem, no dropped capabilities. The contract's table describes what a sandbox guarantees; this adapter meets one row of it, and saying so is the point.

Parameters

config

LocalSandboxConfig

Returns

Sandbox