Java Sandbox SDK v1.0.14
·
6 commits
to main
since this release
What's New
✨ Features
- Snapshot readiness polling — New
SandboxManager.waitForSnapshotReady(snapshotId, timeout, pollingInterval)method lets callers block until a snapshot reachesReadystate, replacing hand-rolled polling loops. ThrowsSnapshotFailedExceptionon terminal failure andSandboxReadyTimeoutExceptionon timeout. Java-friendly via@JvmOverloadswith sensible defaults (15 min timeout, 2 s interval). Also introducesSnapshotStateconstants (Creating/Ready/Failed/Deleting/Unknown) so callers can compare states without magic strings. Pure client-side convenience — no server or spec changes required. (#1051)
🐛 Bug Fixes
replaceContents()empty-body crash — FixedNullPointerExceptionwhen callingreplaceContents()(verbose=false). The execd endpoint returns an empty HTTP 200 body in non-verbose mode, which the generated OpenAPI client failed to deserialize. The SDK adapter layer now catches the null cast so the replacement result is correctly treated as successful. Also refactoredreplaceContentsDetailed()to use the generated API client instead of hand-rolled HTTP. (#1094)
📦 Misc
- Added batch multi-file
replaceContente2e test coverage for both verbose and non-verbose paths (Go, Java, C# — matching existing Python/JS coverage). (#1094)