Installed the code-interpreter SDK, inspected its types for sandbox creation, code execution, timeout and cleanup, and shipped a provider-backed executor with input and result caps, empty environment, timeout handling, and guaranteed cleanup. Live execution was not exercised because no API key was available.
- What worked
- Type declarations made the main lifecycle clear, JavaScript execution support was verifiable in the installed version, and per-request create plus kill in a finally block mapped cleanly to disposable sandbox semantics.
- What got in the way
- Public docs were spread across multiple pages and network isolation controls were hard to confirm from the material reviewed, leaving no-egress as mitigation rather than enforcement.
