mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #209] [MERGED] feat(api): sync sandbox APIs with latest E2B specification #253
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#253
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/209
Author: @LSX-s-Software
Created: 8/24/2026
Status: ✅ Merged
Merged: 8/25/2026
Merged by: @yingdi-shan
Base:
main← Head:feat/sync-e2b📝 Commits (3)
0f595f0feat(api): sync with E2B's latest API spec51fc603feat(api): support more filters and order direction in sandbox list v2 APIfdd40ecchore(deps): bump ammonia to v4.1.4 (#208)📊 Changes
21 files changed (+835 additions, -197 deletions)
View changed files
➕
.opencodereview/rule.json(+7 -0)📝
Cargo.lock(+63 -82)📝
crates/benchmarks/benches/orchestrator_store_benchmark.rs(+1 -2)📝
services/gateway/internal/cluster_list.go(+83 -16)➕
services/gateway/internal/cluster_list_test.go(+64 -0)📝
services/gateway/internal/server_test.go(+110 -2)📝
src/api/generated/src/apis/sandboxes.rs(+5 -0)📝
src/api/generated/src/apis/templates.rs(+4 -1)📝
src/api/generated/src/models.rs(+56 -27)📝
src/api/generated/src/server/mod.rs(+80 -2)📝
src/api/impls/admin.rs(+0 -1)📝
src/api/impls/pagination.rs(+129 -14)📝
src/api/impls/sandbox.rs(+47 -5)📝
src/api/impls/snapshots.rs(+9 -3)📝
src/api/impls/template.rs(+13 -6)📝
src/api/openapi.yml(+55 -21)📝
src/orchestrator/service.rs(+5 -2)📝
src/orchestrator/store/in_memory.rs(+88 -10)📝
src/orchestrator/store/mod.rs(+10 -0)📝
src/orchestrator/tests.rs(+2 -3)...and 1 more files
📄 Description
What
Synchronize AgentENV's sandbox APIs with the latest E2B API specification @
github.com/e2b-dev/infra@7c417f485cand extend the v2 sandbox listing capabilities.Also bump ammonia to v4.1.4 to mitigate the vulnerability.
Why
Keep API responses and sandbox listing behavior compatible with E2B while supporting the filters and ordering required by the updated contract.
Related issue
Fixes #208.
Scope and non-goals
x-total-running.400/409responses for connect and resume operations.cachedBuildsnode field.startedAfterandtemplate.Design and behavior changes
GET /v2/sandboxesnow supports:order=asc|desc, defaulting to newest-first ordering.startedAfterfiltering by sandbox creation time.templatefiltering by snapshot/template ID or alias.Compatibility and operations
Validation
make fmtmake clippymake test-unitRisks and reviewer notes
The main compatibility surface is the v2 sandbox listing contract, especially filter semantics, ordering, and cursor pagination across pages.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.