Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -251,23 +251,6 @@ ships those pre-installed:
|
|
| 251 |
After this, pass `template="opencode-rl"` on every `run_rollout` call β
|
| 252 |
each rollout drops to ~20β30s end-to-end.
|
| 253 |
|
| 254 |
-
## Tests
|
| 255 |
-
|
| 256 |
-
A cheap pre-flight (no E2B, no opencode β just hits each LLM endpoint
|
| 257 |
-
once with a tiny request to confirm it returns logprobs):
|
| 258 |
-
|
| 259 |
-
```bash
|
| 260 |
-
.venv/bin/python envs/opencode_env/tests/test_inference_endpoints.py
|
| 261 |
-
```
|
| 262 |
-
|
| 263 |
-
Multi-endpoint end-to-end (spawns one E2B sandbox per endpoint, runs
|
| 264 |
-
opencode on a sorting task, prints a comparison table):
|
| 265 |
-
|
| 266 |
-
```bash
|
| 267 |
-
.venv/bin/python envs/opencode_env/tests/test_five_sorts_e2e.py \
|
| 268 |
-
--endpoint all --template opencode-rl
|
| 269 |
-
```
|
| 270 |
-
|
| 271 |
## Project Structure
|
| 272 |
|
| 273 |
```
|
|
@@ -275,8 +258,8 @@ opencode_env/
|
|
| 275 |
βββ README.md # this file
|
| 276 |
βββ openenv.yaml # OpenEnv space spec
|
| 277 |
βββ pyproject.toml # deps + ``server`` entrypoint
|
| 278 |
-
βββ uv.lock # frozen deps (required
|
| 279 |
-
βββ .gitignore / .dockerignore # excludes .env / __pycache__
|
| 280 |
βββ __init__.py # re-exports primitive + client + models
|
| 281 |
β
|
| 282 |
βββ client.py # OpenCodeEnv(MCPToolClient)
|
|
@@ -295,14 +278,12 @@ opencode_env/
|
|
| 295 |
β βββ catalog.py # endpoint shorthand resolver
|
| 296 |
β βββ Dockerfile # multi-stage uv build (used by ``openenv build``)
|
| 297 |
β
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
β
|
| 305 |
-
βββ tests/ # pre-flight + e2e + unit tests
|
| 306 |
```
|
| 307 |
|
| 308 |
## References
|
|
|
|
| 251 |
After this, pass `template="opencode-rl"` on every `run_rollout` call β
|
| 252 |
each rollout drops to ~20β30s end-to-end.
|
| 253 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 254 |
## Project Structure
|
| 255 |
|
| 256 |
```
|
|
|
|
| 258 |
βββ README.md # this file
|
| 259 |
βββ openenv.yaml # OpenEnv space spec
|
| 260 |
βββ pyproject.toml # deps + ``server`` entrypoint
|
| 261 |
+
βββ uv.lock # frozen deps (required by ``openenv validate``)
|
| 262 |
+
βββ .gitignore / .dockerignore # excludes .env / __pycache__
|
| 263 |
βββ __init__.py # re-exports primitive + client + models
|
| 264 |
β
|
| 265 |
βββ client.py # OpenCodeEnv(MCPToolClient)
|
|
|
|
| 278 |
β βββ catalog.py # endpoint shorthand resolver
|
| 279 |
β βββ Dockerfile # multi-stage uv build (used by ``openenv build``)
|
| 280 |
β
|
| 281 |
+
βββ sandbox/
|
| 282 |
+
βββ __init__.py
|
| 283 |
+
βββ base.py # SandboxBackend / SandboxHandle Protocols
|
| 284 |
+
βββ e2b.py # E2B implementation
|
| 285 |
+
βββ interception.py # in-sandbox FastAPI proxy (logprob capture)
|
| 286 |
+
βββ build_template.py # one-time E2B template builder
|
|
|
|
|
|
|
| 287 |
```
|
| 288 |
|
| 289 |
## References
|