Skip to content

An open-source, faster Devin alternative

TypeScript

fix: expose sandbox id aliases in SDKs (#373)

Mohamed Habib4496a1f180da
diff --git a/sdks/python/opencomputer/__init__.py b/sdks/python/opencomputer/__init__.py
index 0fb3ec4a..ead59748 100644
--- a/sdks/python/opencomputer/__init__.py
+++ b/sdks/python/opencomputer/__init__.py
@@ -65,4 +65,4 @@ __all__ = [
"TagKeyInfo",
]
-__version__ = "0.6.0"
+__version__ = "0.6.3"
diff --git a/sdks/python/opencomputer/sandbox.py b/sdks/python/opencomputer/sandbox.py
index 80186fca..67579c26 100644
--- a/sdks/python/opencomputer/sandbox.py
+++ b/sdks/python/opencomputer/sandbox.py
@@ -83,6 +83,10 @@ class Sandbox:
_client: httpx.AsyncClient = field(default=None, repr=False)
_data_client: httpx.AsyncClient = field(default=None, repr=False)
+ @property
+ def id(self) -> str:
+ return self.sandbox_id
+
@classmethod
async def create(
cls,
diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml
index dcf25801..61ca29a4 100644
--- a/sdks/python/pyproject.toml
+++ b/sdks/python/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "opencomputer-sdk"
-version = "0.6.2"
+version = "0.6.3"
description = "Python SDK for OpenComputer - cloud sandbox platform"
readme = "README.md"
requires-python = ">=3.10"
diff --git a/sdks/typescript/package-lock.json b/sdks/typescript/package-lock.json
index 95e451e3..b6db8e83 100644
--- a/sdks/typescript/package-lock.json
+++ b/sdks/typescript/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@opencomputer/sdk",
- "version": "0.6.2",
+ "version": "0.6.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@opencomputer/sdk",
- "version": "0.6.2",
+ "version": "0.6.3",
"license": "MIT",
"devDependencies": {
"@types/node": "^25.3.0",
diff --git a/sdks/typescript/package.json b/sdks/typescript/package.json
index c9f27fef..5497f268 100644
--- a/sdks/typescript/package.json
+++ b/sdks/typescript/package.json
@@ -1,6 +1,6 @@
{
"name": "@opencomputer/sdk",
- "version": "0.6.2",
+ "version": "0.6.3",
"description": "TypeScript SDK for OpenComputer - cloud sandbox platform",
"type": "module",
"main": "dist/index.js",
diff --git a/sdks/typescript/src/sandbox.ts b/sdks/typescript/src/sandbox.ts
index e10d4dcb..173d4ece 100644
--- a/sdks/typescript/src/sandbox.ts
+++ b/sdks/typescript/src/sandbox.ts
@@ -227,6 +227,7 @@ export interface AllowedHostsInfo {
export class Sandbox {
readonly sandboxId: string;
+ readonly id: string;
readonly agent: Agent;
readonly files: Filesystem;
readonly exec: Exec;
@@ -257,6 +258,7 @@ export class Sandbox {
private constructor(data: SandboxData, apiUrl: string, apiKey: string) {
this.sandboxId = data.sandboxID;
+ this.id = this.sandboxId;
this._status = data.status;
this.apiUrl = apiUrl;
this.apiKey = apiKey;