Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Merge branch 'grpc' into beta
Tomas Valenta41703374c047
diff --git a/packages/js-sdk/package.json b/packages/js-sdk/package.jsonindex 332ec4901..69da52a57 100644--- a/packages/js-sdk/package.json+++ b/packages/js-sdk/package.json@@ -70,6 +70,7 @@"@bufbuild/protobuf": "^1.10.0","@connectrpc/connect": "^1.4.0","@connectrpc/connect-web": "^1.4.0",+ "compare-versions": "^6.1.0","openapi-fetch": "^0.9.7","platform": "^1.3.6"},diff --git a/packages/js-sdk/src/api/schema.gen.ts b/packages/js-sdk/src/api/schema.gen.tsindex d3afe6436..4d657f1a3 100644--- a/packages/js-sdk/src/api/schema.gen.ts+++ b/packages/js-sdk/src/api/schema.gen.ts@@ -3,22 +3,25 @@* Do not make direct changes to the file.*/+export interface paths {"/health": {- /** Health check */+ /** @description Health check */get: {responses: {- /** Request was successful */- 200: unknown;+ /** @description Request was successful */+ 200: {+ content: never;+ };401: components["responses"]["401"];};};};"/sandboxes": {- /** List all running sandboxes */+ /** @description List all running sandboxes */get: {responses: {- /** Successfully returned all running sandboxes */+ /** @description Successfully returned all running sandboxes */200: {content: {"application/json": components["schemas"]["RunningSandbox"][];@@ -29,10 +32,15 @@ export interface paths {500: components["responses"]["500"];};};- /** Create a sandbox from the template */+ /** @description Create a sandbox from the template */post: {+ requestBody: {+ content: {+ "application/json": components["schemas"]["NewSandbox"];+ };+ };responses: {- /** The sandbox was created successfully */+ /** @description The sandbox was created successfully */201: {content: {"application/json": components["schemas"]["Sandbox"];@@ -42,29 +50,43 @@ export interface paths {401: components["responses"]["401"];500: components["responses"]["500"];};- requestBody: {- content: {- "application/json": components["schemas"]["NewSandbox"];+ };+ };+ "/sandboxes/{sandboxID}": {+ /** @description Kill a sandbox */+ delete: {+ parameters: {+ path: {+ sandboxID: components["parameters"]["sandboxID"];+ };+ };+ responses: {+ /** @description The sandbox was killed successfully */+ 204: {+ content: never;};+ 401: components["responses"]["401"];+ 404: components["responses"]["404"];+ 500: components["responses"]["500"];};};};"/sandboxes/{sandboxID}/logs": {- /** Get sandbox logs */+ /** @description Get sandbox logs */get: {parameters: {- path: {- sandboxID: components["parameters"]["sandboxID"];- };- query: {- /** Starting timestamp of the logs that should be returned in milliseconds */+ query?: {+ /** @description Starting timestamp of the logs that should be returned in milliseconds */start?: number;- /** Maximum number of logs that should be returned */+ /** @description Maximum number of logs that should be returned */limit?: number;};+ path: {+ sandboxID: components["parameters"]["sandboxID"];+ };};responses: {- /** Successfully returned the sandbox logs */+ /** @description Successfully returned the sandbox logs */200: {content: {"application/json": components["schemas"]["SandboxLogs"];@@ -76,39 +98,41 @@ export interface paths {};};};- "/sandboxes/{sandboxID}": {- /** Kill a sandbox */- delete: {+ "/sandboxes/{sandboxID}/refreshes": {+ /** @description Refresh the sandbox extending its time to live */+ post: {parameters: {path: {sandboxID: components["parameters"]["sandboxID"];};};+ requestBody?: {+ content: {+ "application/json": {+ /** @description Duration for which the sandbox should be kept alive in seconds */+ duration?: number;+ };+ };+ };responses: {- /** The sandbox was killed successfully */- 204: never;+ /** @description Successfully refreshed the sandbox */+ 204: {+ content: never;+ };401: components["responses"]["401"];404: components["responses"]["404"];- 500: components["responses"]["500"];};};};"/sandboxes/{sandboxID}/timeout": {- /** Set the timeout for the sandbox. The sandbox will expire x seconds from the time of the request. Calling this method multiple times overwrites the TTL, each time using the current timestamp as the starting point to measure the timeout duration. */+ /** @description Set the timeout for the sandbox. The sandbox will expire x seconds from the time of the request. Calling this method multiple times overwrites the TTL, each time using the current timestamp as the starting point to measure the timeout duration. */post: {parameters: {path: {sandboxID: components["parameters"]["sandboxID"];};};- responses: {- /** Successfully set the sandbox timeout */- 204: never;- 401: components["responses"]["401"];- 404: components["responses"]["404"];- 500: components["responses"]["500"];- };- requestBody: {+ requestBody?: {content: {"application/json": {/**@@ -119,37 +143,22 @@ export interface paths {};};};- };- };- "/sandboxes/{sandboxID}/refreshes": {- /** Refresh the sandbox extending its time to live */- post: {- parameters: {- path: {- sandboxID: components["parameters"]["sandboxID"];- };- };responses: {- /** Successfully refreshed the sandbox */- 204: never;+ /** @description Successfully set the sandbox timeout */+ 204: {+ content: never;+ };401: components["responses"]["401"];404: components["responses"]["404"];- };- requestBody: {- content: {- "application/json": {- /** @description Duration for which the sandbox should be kept alive in seconds */- duration?: number;- };- };+ 500: components["responses"]["500"];};};};"/templates": {- /** List all templates */+ /** @description List all templates */get: {responses: {- /** Successfully returned all templates */+ /** @description Successfully returned all templates */200: {content: {"application/json": components["schemas"]["Template"][];@@ -159,10 +168,15 @@ export interface paths {500: components["responses"]["500"];};};- /** Create a new template */+ /** @description Create a new template */post: {+ requestBody: {+ content: {+ "application/json": components["schemas"]["TemplateBuildRequest"];+ };+ };responses: {- /** The build was accepted */+ /** @description The build was accepted */202: {content: {"application/json": components["schemas"]["Template"];@@ -171,23 +185,23 @@ export interface paths {401: components["responses"]["401"];500: components["responses"]["500"];};- requestBody: {- content: {- "application/json": components["schemas"]["TemplateBuildRequest"];- };- };};};"/templates/{templateID}": {- /** Rebuild an template */+ /** @description Rebuild an template */post: {parameters: {path: {templateID: components["parameters"]["templateID"];};};+ requestBody: {+ content: {+ "application/json": components["schemas"]["TemplateBuildRequest"];+ };+ };responses: {- /** The build was accepted */+ /** @description The build was accepted */202: {content: {"application/json": components["schemas"]["Template"];@@ -196,13 +210,8 @@ export interface paths {401: components["responses"]["401"];500: components["responses"]["500"];};- requestBody: {- content: {- "application/json": components["schemas"]["TemplateBuildRequest"];- };- };};- /** Delete a template */+ /** @description Delete a template */delete: {parameters: {path: {@@ -210,15 +219,17 @@ export interface paths {};};responses: {- /** The template was deleted successfully */- 204: never;+ /** @description The template was deleted successfully */+ 204: {+ content: never;+ };401: components["responses"]["401"];500: components["responses"]["500"];};};};"/templates/{templateID}/builds/{buildID}": {- /** Start the build */+ /** @description Start the build */post: {parameters: {path: {@@ -227,28 +238,30 @@ export interface paths {};};responses: {- /** The build has started */- 202: unknown;+ /** @description The build has started */+ 202: {+ content: never;+ };401: components["responses"]["401"];500: components["responses"]["500"];};};};"/templates/{templateID}/builds/{buildID}/status": {- /** Get template build info */+ /** @description Get template build info */get: {parameters: {+ query?: {+ /** @description Index of the starting build log that should be returned with the template */+ logsOffset?: number;+ };path: {templateID: components["parameters"]["templateID"];buildID: components["parameters"]["buildID"];};- query: {- /** Index of the starting build log that should be returned with the template */- logsOffset?: number;- };};responses: {- /** Successfully returned the template */+ /** @description Successfully returned the template */200: {content: {"application/json": components["schemas"]["TemplateBuild"];@@ -262,6 +275,8 @@ export interface paths {};}+export type webhooks = Record<string, never>;+export interface components {schemas: {/**@@ -269,135 +284,137 @@ export interface components {* @description CPU cores for the sandbox*/CPUCount: number;+ Error: {+ /**+ * Format: int32+ * @description Error code+ */+ code: number;+ /** @description Error */+ message: string;+ };/*** Format: int32* @description Memory for the sandbox in MB*/MemoryMB: number;- SandboxMetadata: { [key: string]: string };- /** @description Log entry with timestamp and line */- SandboxLog: {+ NewSandbox: {+ metadata?: components["schemas"]["SandboxMetadata"];+ /** @description Identifier of the required template */+ templateID: string;/**- * Format: date-time- * @description Timestamp of the log entry+ * Format: int32+ * @description Time to live for the sandbox in seconds.+ * @default 15*/- timestamp: string;- /** @description Log line content */- line: string;- };- SandboxLogs: {- /** @description Logs of the sandbox */- logs: components["schemas"]["SandboxLog"][];+ timeout?: number;};- Sandbox: {- /** @description Identifier of the template from which is the sandbox created */- templateID: string;- /** @description Identifier of the sandbox */- sandboxID: string;+ RunningSandbox: {/** @description Alias of the template */alias?: string;/** @description Identifier of the client */clientID: string;- /** @description Whether the template contains envd v2 */- envdV2: boolean;- };- RunningSandbox: {- /** @description Identifier of the template from which is the sandbox created */- templateID: string;- /** @description Alias of the template */- alias?: string;+ cpuCount: components["schemas"]["CPUCount"];+ memoryMB: components["schemas"]["MemoryMB"];+ metadata?: components["schemas"]["SandboxMetadata"];/** @description Identifier of the sandbox */sandboxID: string;- /** @description Identifier of the client */- clientID: string;/*** Format: date-time* @description Time when the sandbox was started*/startedAt: string;- cpuCount: components["schemas"]["CPUCount"];- memoryMB: components["schemas"]["MemoryMB"];- metadata?: components["schemas"]["SandboxMetadata"];+ /** @description Identifier of the template from which is the sandbox created */+ templateID: string;};- NewSandbox: {- /** @description Identifier of the required template */+ Sandbox: {+ /** @description Alias of the template */+ alias?: string;+ /** @description Identifier of the client */+ clientID: string;+ /** @description Version of the envd running in the sandbox */+ envdVersion: string;+ /** @description Identifier of the sandbox */+ sandboxID: string;+ /** @description Identifier of the template from which is the sandbox created */templateID: string;+ };+ /** @description Log entry with timestamp and line */+ SandboxLog: {+ /** @description Log line content */+ line: string;/**- * Format: int32- * @description Time to live for the sandbox in seconds.- * @default 15+ * Format: date-time+ * @description Timestamp of the log entry*/- timeout?: number;- metadata?: components["schemas"]["SandboxMetadata"];+ timestamp: string;+ };+ SandboxLogs: {+ /** @description Logs of the sandbox */+ logs: components["schemas"]["SandboxLog"][];+ };+ SandboxMetadata: {+ [key: string]: string;};Template: {- /** @description Identifier of the template */- templateID: string;+ /** @description Aliases of the template */+ aliases?: string[];/** @description Identifier of the last successful build for given template */buildID: string;cpuCount: components["schemas"]["CPUCount"];memoryMB: components["schemas"]["MemoryMB"];/** @description Whether the template is public or only accessible by the team */public: boolean;- /** @description Aliases of the template */- aliases?: string[];- };- TemplateBuildRequest: {- /** @description Alias of the template */- alias?: string;- /** @description Dockerfile for the template */- dockerfile: string;- /** @description Start command to execute in the template after the build */- startCmd?: string;- cpuCount?: components["schemas"]["CPUCount"];- memoryMB?: components["schemas"]["MemoryMB"];+ /** @description Identifier of the template */+ templateID: string;};TemplateBuild: {+ /** @description Identifier of the build */+ buildID: string;/*** @description Build logs* @default []*/logs: string[];- /** @description Identifier of the template */- templateID: string;- /** @description Identifier of the build */- buildID: string;/*** @description Status of the template* @enum {string}*/status: "building" | "ready" | "error";+ /** @description Identifier of the template */+ templateID: string;};- Error: {- /**- * Format: int32- * @description Error code- */- code: number;- /** @description Error */- message: string;+ TemplateBuildRequest: {+ /** @description Alias of the template */+ alias?: string;+ cpuCount?: components["schemas"]["CPUCount"];+ /** @description Dockerfile for the template */+ dockerfile: string;+ memoryMB?: components["schemas"]["MemoryMB"];+ /** @description Start command to execute in the template after the build */+ startCmd?: string;};};responses: {- /** Bad request */+ /** @description Bad request */400: {content: {"application/json": components["schemas"]["Error"];};};- /** Authentication error */+ /** @description Authentication error */401: {content: {"application/json": components["schemas"]["Error"];};};- /** Not found */+ /** @description Not found */404: {content: {"application/json": components["schemas"]["Error"];};};- /** Server error */+ /** @description Server error */500: {content: {"application/json": components["schemas"]["Error"];@@ -405,12 +422,17 @@ export interface components {};};parameters: {- templateID: string;buildID: string;sandboxID: string;+ templateID: string;};+ requestBodies: never;+ headers: never;+ pathItems: never;}-export interface operations {}+export type $defs = Record<string, never>;++export type external = Record<string, never>;-export interface external {}+export type operations = Record<string, never>;diff --git a/packages/js-sdk/src/sandbox/sandboxApi.ts b/packages/js-sdk/src/sandbox/sandboxApi.tsindex ac6268b02..7deb791c0 100644--- a/packages/js-sdk/src/sandbox/sandboxApi.ts+++ b/packages/js-sdk/src/sandbox/sandboxApi.ts@@ -1,5 +1,6 @@import { ApiClient, handleApiError } from '../api'import { ConnectionConfig, ConnectionOpts } from '../connectionConfig'+import { compareVersions } from 'compare-versions'export interface SandboxApiOpts extends Partial<Pick<ConnectionOpts, 'apiKey' | 'debug' | 'domain' | 'requestTimeoutMs'>> { }@@ -123,7 +124,7 @@ export class SandboxApi {throw err}- if (!res.data!.envdV2) {+ if (compareVersions(res.data!.envdVersion, '0.1.0') < 0) {throw new Error('You need to update the template to use the new SDK. ' +'You can do this by running `e2b template build` in the directory with the template.'diff --git a/packages/python-sdk/e2b/api/__init__.py b/packages/python-sdk/e2b/api/__init__.pyindex 54bff2c31..66d0c327f 100644--- a/packages/python-sdk/e2b/api/__init__.py+++ b/packages/python-sdk/e2b/api/__init__.py@@ -1,4 +1,5 @@import json+import loggingfrom importlib.metadata import version@@ -6,13 +7,16 @@ from e2b.connection_config import ConnectionConfigfrom e2b.api.metadata import default_headersfrom e2b.exceptions import AuthenticationException, SandboxException+logger = logging.getLogger(__name__)pydantic_version = version("pydantic")if pydantic_version < "2.0.0":+ from e2b.api.v1.client import restimport e2b.api.v1.client as clientimport e2b.api.v1.client.models as modelsimport e2b.api.v1.client.exceptions as exceptionselse:+ from e2b.api.v2.client import restimport e2b.api.v2.client as clientimport e2b.api.v2.client.models as modelsimport e2b.api.v2.client.exceptions as exceptions@@ -59,5 +63,16 @@ class ApiClient(client.ApiClient):super().__init__(configuration, *args, **kwargs)self.default_headers = default_headers+ def call_api(self, method, url, *arg, **kwargs) -> rest.RESTResponse:+ logger.info(f"Request {method} {url}")+ response = super().call_api(method, url, *arg, **kwargs)++ if response.status >= 400:+ logger.error(f"Response {response.status} {response.data}")+ else:+ logger.info(f"Response {response.status} {response.data}")++ return response+__all__ = ["ApiClient", "client", "models", "exceptions"]diff --git a/packages/python-sdk/e2b/api/v1/client/models/sandbox.py b/packages/python-sdk/e2b/api/v1/client/models/sandbox.pyindex fc8746f43..3a3f45c6c 100644--- a/packages/python-sdk/e2b/api/v1/client/models/sandbox.py+++ b/packages/python-sdk/e2b/api/v1/client/models/sandbox.py@@ -19,7 +19,7 @@ import jsonfrom typing import Any, Dict, Optional-from pydantic import BaseModel, Field, StrictBool, StrictStr+from pydantic import BaseModel, Field, StrictStrclass Sandbox(BaseModel):@@ -39,11 +39,13 @@ class Sandbox(BaseModel):client_id: StrictStr = Field(..., alias="clientID", description="Identifier of the client")- envd_v2: StrictBool = Field(- ..., alias="envdV2", description="Whether the template contains envd v2"+ envd_version: StrictStr = Field(+ ...,+ alias="envdVersion",+ description="Version of the envd running in the sandbox",)additional_properties: Dict[str, Any] = {}- __properties = ["templateID", "sandboxID", "alias", "clientID", "envdV2"]+ __properties = ["templateID", "sandboxID", "alias", "clientID", "envdVersion"]class Config:"""Pydantic configuration"""@@ -91,7 +93,7 @@ class Sandbox(BaseModel):"sandbox_id": obj.get("sandboxID"),"alias": obj.get("alias"),"client_id": obj.get("clientID"),- "envd_v2": obj.get("envdV2"),+ "envd_version": obj.get("envdVersion"),})# store additional fields in additional_propertiesdiff --git a/packages/python-sdk/e2b/api/v2/client/models/sandbox.py b/packages/python-sdk/e2b/api/v2/client/models/sandbox.pyindex a33d916a0..0f2abc608 100644--- a/packages/python-sdk/e2b/api/v2/client/models/sandbox.py+++ b/packages/python-sdk/e2b/api/v2/client/models/sandbox.py@@ -19,7 +19,7 @@ import jsonfrom typing import Any, ClassVar, Dict, List, Optional-from pydantic import BaseModel, StrictBool, StrictStr+from pydantic import BaseModel, StrictStrfrom pydantic import Fieldtry:@@ -46,8 +46,8 @@ class Sandbox(BaseModel):client_id: StrictStr = Field(description="Identifier of the client", alias="clientID")- envd_v2: StrictBool = Field(- description="Whether the template contains envd v2", alias="envdV2"+ envd_version: StrictStr = Field(+ description="Version of the envd running in the sandbox", alias="envdVersion")additional_properties: Dict[str, Any] = {}__properties: ClassVar[List[str]] = [@@ -55,7 +55,7 @@ class Sandbox(BaseModel):"sandboxID","alias","clientID",- "envdV2",+ "envdVersion",]model_config = {"populate_by_name": True, "validate_assignment": True}@@ -114,7 +114,7 @@ class Sandbox(BaseModel):"sandboxID": obj.get("sandboxID"),"alias": obj.get("alias"),"clientID": obj.get("clientID"),- "envdV2": obj.get("envdV2"),+ "envdVersion": obj.get("envdVersion"),})# store additional fields in additional_propertiesdiff --git a/packages/python-sdk/e2b/envd/filesystem/filesystem_connect.py b/packages/python-sdk/e2b/envd/filesystem/filesystem_connect.pyindex 618705e67..652c5206d 100644--- a/packages/python-sdk/e2b/envd/filesystem/filesystem_connect.py+++ b/packages/python-sdk/e2b/envd/filesystem/filesystem_connect.py@@ -16,7 +16,7 @@ class FilesystemClient:response_type=filesystem_dot_filesystem__pb2.StatResponse,compressor=compressor,json=json,- **opts+ **opts,)self._make_dir = connect.Client(pool=pool,@@ -24,7 +24,7 @@ class FilesystemClient:response_type=filesystem_dot_filesystem__pb2.MakeDirResponse,compressor=compressor,json=json,- **opts+ **opts,)self._move = connect.Client(pool=pool,@@ -32,7 +32,7 @@ class FilesystemClient:response_type=filesystem_dot_filesystem__pb2.MoveResponse,compressor=compressor,json=json,- **opts+ **opts,)self._list_dir = connect.Client(pool=pool,@@ -40,7 +40,7 @@ class FilesystemClient:response_type=filesystem_dot_filesystem__pb2.ListDirResponse,compressor=compressor,json=json,- **opts+ **opts,)self._watch_dir = connect.Client(pool=pool,@@ -48,7 +48,7 @@ class FilesystemClient:response_type=filesystem_dot_filesystem__pb2.WatchDirResponse,compressor=compressor,json=json,- **opts+ **opts,)self._remove = connect.Client(pool=pool,@@ -56,23 +56,35 @@ class FilesystemClient:response_type=filesystem_dot_filesystem__pb2.RemoveResponse,compressor=compressor,json=json,- **opts+ **opts,)- def stat(self, req: filesystem_dot_filesystem__pb2.StatRequest, **opts) -> filesystem_dot_filesystem__pb2.StatResponse:+ def stat(+ self, req: filesystem_dot_filesystem__pb2.StatRequest, **opts+ ) -> filesystem_dot_filesystem__pb2.StatResponse:return self._stat.call_unary(req, **opts)- def make_dir(self, req: filesystem_dot_filesystem__pb2.MakeDirRequest, **opts) -> filesystem_dot_filesystem__pb2.MakeDirResponse:+ def make_dir(+ self, req: filesystem_dot_filesystem__pb2.MakeDirRequest, **opts+ ) -> filesystem_dot_filesystem__pb2.MakeDirResponse:return self._make_dir.call_unary(req, **opts)- def move(self, req: filesystem_dot_filesystem__pb2.MoveRequest, **opts) -> filesystem_dot_filesystem__pb2.MoveResponse:+ def move(+ self, req: filesystem_dot_filesystem__pb2.MoveRequest, **opts+ ) -> filesystem_dot_filesystem__pb2.MoveResponse:return self._move.call_unary(req, **opts)- def list_dir(self, req: filesystem_dot_filesystem__pb2.ListDirRequest, **opts) -> filesystem_dot_filesystem__pb2.ListDirResponse:+ def list_dir(+ self, req: filesystem_dot_filesystem__pb2.ListDirRequest, **opts+ ) -> filesystem_dot_filesystem__pb2.ListDirResponse:return self._list_dir.call_unary(req, **opts)- def watch_dir(self, req: filesystem_dot_filesystem__pb2.WatchDirRequest , **opts) -> Generator[filesystem_dot_filesystem__pb2.WatchDirResponse, Any, None]:+ def watch_dir(+ self, req: filesystem_dot_filesystem__pb2.WatchDirRequest, **opts+ ) -> Generator[filesystem_dot_filesystem__pb2.WatchDirResponse, Any, None]:return self._watch_dir.call_server_stream(req, **opts)- def remove(self, req: filesystem_dot_filesystem__pb2.RemoveRequest, **opts) -> filesystem_dot_filesystem__pb2.RemoveResponse:+ def remove(+ self, req: filesystem_dot_filesystem__pb2.RemoveRequest, **opts+ ) -> filesystem_dot_filesystem__pb2.RemoveResponse:return self._remove.call_unary(req, **opts)diff --git a/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.py b/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.pyindex d90b7b97b..bb14e95b2 100644--- a/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.py+++ b/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.py@@ -7,6 +7,7 @@ from google.protobuf import descriptor as _descriptorfrom google.protobuf import descriptor_pool as _descriptor_poolfrom google.protobuf import symbol_database as _symbol_databasefrom google.protobuf.internal import builder as _builder+# @@protoc_insertion_point(imports)_sym_db = _symbol_database.Default()@@ -15,50 +16,56 @@ _sym_db = _symbol_database.Default()from e2b.envd.permissions import permissions_pb2 as permissions_dot_permissions__pb2-DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66ilesystem/filesystem.proto\x12\nfilesystem\x1a\x1dpermissions/permissions.proto\"n\n\x0bMoveRequest\x12\x16\n\x06source\x18\x01 \x01(\tR\x06source\x12 \n\x0b\x64\x65stination\x18\x02 \x01(\tR\x0b\x64\x65stination\x12%\n\x04user\x18\x03 \x01(\x0b\x32\x11.permissions.UserR\x04user\"\x0e\n\x0cMoveResponse\"K\n\x0eMakeDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12%\n\x04user\x18\x02 \x01(\x0b\x32\x11.permissions.UserR\x04user\"\x11\n\x0fMakeDirResponse\"J\n\rRemoveRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12%\n\x04user\x18\x02 \x01(\x0b\x32\x11.permissions.UserR\x04user\"\x10\n\x0eRemoveResponse\"H\n\x0bStatRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12%\n\x04user\x18\x02 \x01(\x0b\x32\x11.permissions.UserR\x04user\";\n\x0cStatResponse\x12+\n\x05\x65ntry\x18\x01 \x01(\x0b\x32\x15.filesystem.EntryInfoR\x05\x65ntry\"I\n\tEntryInfo\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12(\n\x04type\x18\x02 \x01(\x0e\x32\x14.filesystem.FileTypeR\x04type\"K\n\x0eListDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12%\n\x04user\x18\x02 \x01(\x0b\x32\x11.permissions.UserR\x04user\"B\n\x0fListDirResponse\x12/\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x15.filesystem.EntryInfoR\x07\x65ntries\"L\n\x0fWatchDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12%\n\x04user\x18\x02 \x01(\x0b\x32\x11.permissions.UserR\x04user\"\xe1\x02\n\x10WatchDirResponse\x12?\n\x05start\x18\x01 \x01(\x0b\x32\'.filesystem.WatchDirResponse.StartEventH\x00R\x05start\x12N\n\nfilesystem\x18\x02 \x01(\x0b\x32,.filesystem.WatchDirResponse.FilesystemEventH\x00R\nfilesystem\x12\x46\n\tkeepalive\x18\x03 \x01(\x0b\x32&.filesystem.WatchDirResponse.KeepAliveH\x00R\tkeepalive\x1a\x0c\n\nStartEvent\x1aP\n\x0f\x46ilesystemEvent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12)\n\x04type\x18\x02 \x01(\x0e\x32\x15.filesystem.EventTypeR\x04type\x1a\x0b\n\tKeepAliveB\x07\n\x05\x65vent*R\n\x08\x46ileType\x12\x19\n\x15\x46ILE_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46ILE_TYPE_FILE\x10\x01\x12\x17\n\x13\x46ILE_TYPE_DIRECTORY\x10\x02*\x98\x01\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x45VENT_TYPE_CREATE\x10\x01\x12\x14\n\x10\x45VENT_TYPE_WRITE\x10\x02\x12\x15\n\x11\x45VENT_TYPE_REMOVE\x10\x03\x12\x15\n\x11\x45VENT_TYPE_RENAME\x10\x04\x12\x14\n\x10\x45VENT_TYPE_CHMOD\x10\x05\x32\x94\x03\n\nFilesystem\x12\x39\n\x04Stat\x12\x17.filesystem.StatRequest\x1a\x18.filesystem.StatResponse\x12\x42\n\x07MakeDir\x12\x1a.filesystem.MakeDirRequest\x1a\x1b.filesystem.MakeDirResponse\x12\x39\n\x04Move\x12\x17.filesystem.MoveRequest\x1a\x18.filesystem.MoveResponse\x12\x42\n\x07ListDir\x12\x1a.filesystem.ListDirRequest\x1a\x1b.filesystem.ListDirResponse\x12G\n\x08WatchDir\x12\x1b.filesystem.WatchDirRequest\x1a\x1c.filesystem.WatchDirResponse0\x01\x12?\n\x06Remove\x12\x19.filesystem.RemoveRequest\x1a\x1a.filesystem.RemoveResponseBi\n\x0e\x63om.filesystemB\x0f\x46ilesystemProtoP\x01\xa2\x02\x03\x46XX\xaa\x02\nFilesystem\xca\x02\nFilesystem\xe2\x02\x16\x46ilesystem\\GPBMetadata\xea\x02\nFilesystemb\x06proto3')+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(+ b'\n\x1b\x66ilesystem/filesystem.proto\x12\nfilesystem\x1a\x1dpermissions/permissions.proto"n\n\x0bMoveRequest\x12\x16\n\x06source\x18\x01 \x01(\tR\x06source\x12 \n\x0b\x64\x65stination\x18\x02 \x01(\tR\x0b\x64\x65stination\x12%\n\x04user\x18\x03 \x01(\x0b\x32\x11.permissions.UserR\x04user"\x0e\n\x0cMoveResponse"K\n\x0eMakeDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12%\n\x04user\x18\x02 \x01(\x0b\x32\x11.permissions.UserR\x04user"\x11\n\x0fMakeDirResponse"J\n\rRemoveRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12%\n\x04user\x18\x02 \x01(\x0b\x32\x11.permissions.UserR\x04user"\x10\n\x0eRemoveResponse"H\n\x0bStatRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12%\n\x04user\x18\x02 \x01(\x0b\x32\x11.permissions.UserR\x04user";\n\x0cStatResponse\x12+\n\x05\x65ntry\x18\x01 \x01(\x0b\x32\x15.filesystem.EntryInfoR\x05\x65ntry"I\n\tEntryInfo\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12(\n\x04type\x18\x02 \x01(\x0e\x32\x14.filesystem.FileTypeR\x04type"K\n\x0eListDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12%\n\x04user\x18\x02 \x01(\x0b\x32\x11.permissions.UserR\x04user"B\n\x0fListDirResponse\x12/\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x15.filesystem.EntryInfoR\x07\x65ntries"L\n\x0fWatchDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12%\n\x04user\x18\x02 \x01(\x0b\x32\x11.permissions.UserR\x04user"\xe1\x02\n\x10WatchDirResponse\x12?\n\x05start\x18\x01 \x01(\x0b\x32\'.filesystem.WatchDirResponse.StartEventH\x00R\x05start\x12N\n\nfilesystem\x18\x02 \x01(\x0b\x32,.filesystem.WatchDirResponse.FilesystemEventH\x00R\nfilesystem\x12\x46\n\tkeepalive\x18\x03 \x01(\x0b\x32&.filesystem.WatchDirResponse.KeepAliveH\x00R\tkeepalive\x1a\x0c\n\nStartEvent\x1aP\n\x0f\x46ilesystemEvent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12)\n\x04type\x18\x02 \x01(\x0e\x32\x15.filesystem.EventTypeR\x04type\x1a\x0b\n\tKeepAliveB\x07\n\x05\x65vent*R\n\x08\x46ileType\x12\x19\n\x15\x46ILE_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46ILE_TYPE_FILE\x10\x01\x12\x17\n\x13\x46ILE_TYPE_DIRECTORY\x10\x02*\x98\x01\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x45VENT_TYPE_CREATE\x10\x01\x12\x14\n\x10\x45VENT_TYPE_WRITE\x10\x02\x12\x15\n\x11\x45VENT_TYPE_REMOVE\x10\x03\x12\x15\n\x11\x45VENT_TYPE_RENAME\x10\x04\x12\x14\n\x10\x45VENT_TYPE_CHMOD\x10\x05\x32\x94\x03\n\nFilesystem\x12\x39\n\x04Stat\x12\x17.filesystem.StatRequest\x1a\x18.filesystem.StatResponse\x12\x42\n\x07MakeDir\x12\x1a.filesystem.MakeDirRequest\x1a\x1b.filesystem.MakeDirResponse\x12\x39\n\x04Move\x12\x17.filesystem.MoveRequest\x1a\x18.filesystem.MoveResponse\x12\x42\n\x07ListDir\x12\x1a.filesystem.ListDirRequest\x1a\x1b.filesystem.ListDirResponse\x12G\n\x08WatchDir\x12\x1b.filesystem.WatchDirRequest\x1a\x1c.filesystem.WatchDirResponse0\x01\x12?\n\x06Remove\x12\x19.filesystem.RemoveRequest\x1a\x1a.filesystem.RemoveResponseBi\n\x0e\x63om.filesystemB\x0f\x46ilesystemProtoP\x01\xa2\x02\x03\x46XX\xaa\x02\nFilesystem\xca\x02\nFilesystem\xe2\x02\x16\x46ilesystem\\GPBMetadata\xea\x02\nFilesystemb\x06proto3'+)_globals = globals()_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)-_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'filesystem.filesystem_pb2', _globals)+_builder.BuildTopDescriptorsAndMessages(+ DESCRIPTOR, "filesystem.filesystem_pb2", _globals+)if not _descriptor._USE_C_DESCRIPTORS:- _globals['DESCRIPTOR']._loaded_options = None- _globals['DESCRIPTOR']._serialized_options = b'\n\016com.filesystemB\017FilesystemProtoP\001\242\002\003FXX\252\002\nFilesystem\312\002\nFilesystem\342\002\026Filesystem\\GPBMetadata\352\002\nFilesystem'- _globals['_FILETYPE']._serialized_start=1181- _globals['_FILETYPE']._serialized_end=1263- _globals['_EVENTTYPE']._serialized_start=1266- _globals['_EVENTTYPE']._serialized_end=1418- _globals['_MOVEREQUEST']._serialized_start=74- _globals['_MOVEREQUEST']._serialized_end=184- _globals['_MOVERESPONSE']._serialized_start=186- _globals['_MOVERESPONSE']._serialized_end=200- _globals['_MAKEDIRREQUEST']._serialized_start=202- _globals['_MAKEDIRREQUEST']._serialized_end=277- _globals['_MAKEDIRRESPONSE']._serialized_start=279- _globals['_MAKEDIRRESPONSE']._serialized_end=296- _globals['_REMOVEREQUEST']._serialized_start=298- _globals['_REMOVEREQUEST']._serialized_end=372- _globals['_REMOVERESPONSE']._serialized_start=374- _globals['_REMOVERESPONSE']._serialized_end=390- _globals['_STATREQUEST']._serialized_start=392- _globals['_STATREQUEST']._serialized_end=464- _globals['_STATRESPONSE']._serialized_start=466- _globals['_STATRESPONSE']._serialized_end=525- _globals['_ENTRYINFO']._serialized_start=527- _globals['_ENTRYINFO']._serialized_end=600- _globals['_LISTDIRREQUEST']._serialized_start=602- _globals['_LISTDIRREQUEST']._serialized_end=677- _globals['_LISTDIRRESPONSE']._serialized_start=679- _globals['_LISTDIRRESPONSE']._serialized_end=745- _globals['_WATCHDIRREQUEST']._serialized_start=747- _globals['_WATCHDIRREQUEST']._serialized_end=823- _globals['_WATCHDIRRESPONSE']._serialized_start=826- _globals['_WATCHDIRRESPONSE']._serialized_end=1179- _globals['_WATCHDIRRESPONSE_STARTEVENT']._serialized_start=1063- _globals['_WATCHDIRRESPONSE_STARTEVENT']._serialized_end=1075- _globals['_WATCHDIRRESPONSE_FILESYSTEMEVENT']._serialized_start=1077- _globals['_WATCHDIRRESPONSE_FILESYSTEMEVENT']._serialized_end=1157- _globals['_WATCHDIRRESPONSE_KEEPALIVE']._serialized_start=1159- _globals['_WATCHDIRRESPONSE_KEEPALIVE']._serialized_end=1170- _globals['_FILESYSTEM']._serialized_start=1421- _globals['_FILESYSTEM']._serialized_end=1825+ _globals["DESCRIPTOR"]._loaded_options = None+ _globals[+ "DESCRIPTOR"+ ]._serialized_options = b"\n\016com.filesystemB\017FilesystemProtoP\001\242\002\003FXX\252\002\nFilesystem\312\002\nFilesystem\342\002\026Filesystem\\GPBMetadata\352\002\nFilesystem"+ _globals["_FILETYPE"]._serialized_start = 1181+ _globals["_FILETYPE"]._serialized_end = 1263+ _globals["_EVENTTYPE"]._serialized_start = 1266+ _globals["_EVENTTYPE"]._serialized_end = 1418+ _globals["_MOVEREQUEST"]._serialized_start = 74+ _globals["_MOVEREQUEST"]._serialized_end = 184+ _globals["_MOVERESPONSE"]._serialized_start = 186+ _globals["_MOVERESPONSE"]._serialized_end = 200+ _globals["_MAKEDIRREQUEST"]._serialized_start = 202+ _globals["_MAKEDIRREQUEST"]._serialized_end = 277+ _globals["_MAKEDIRRESPONSE"]._serialized_start = 279+ _globals["_MAKEDIRRESPONSE"]._serialized_end = 296+ _globals["_REMOVEREQUEST"]._serialized_start = 298+ _globals["_REMOVEREQUEST"]._serialized_end = 372+ _globals["_REMOVERESPONSE"]._serialized_start = 374+ _globals["_REMOVERESPONSE"]._serialized_end = 390+ _globals["_STATREQUEST"]._serialized_start = 392+ _globals["_STATREQUEST"]._serialized_end = 464+ _globals["_STATRESPONSE"]._serialized_start = 466+ _globals["_STATRESPONSE"]._serialized_end = 525+ _globals["_ENTRYINFO"]._serialized_start = 527+ _globals["_ENTRYINFO"]._serialized_end = 600+ _globals["_LISTDIRREQUEST"]._serialized_start = 602+ _globals["_LISTDIRREQUEST"]._serialized_end = 677+ _globals["_LISTDIRRESPONSE"]._serialized_start = 679+ _globals["_LISTDIRRESPONSE"]._serialized_end = 745+ _globals["_WATCHDIRREQUEST"]._serialized_start = 747+ _globals["_WATCHDIRREQUEST"]._serialized_end = 823+ _globals["_WATCHDIRRESPONSE"]._serialized_start = 826+ _globals["_WATCHDIRRESPONSE"]._serialized_end = 1179+ _globals["_WATCHDIRRESPONSE_STARTEVENT"]._serialized_start = 1063+ _globals["_WATCHDIRRESPONSE_STARTEVENT"]._serialized_end = 1075+ _globals["_WATCHDIRRESPONSE_FILESYSTEMEVENT"]._serialized_start = 1077+ _globals["_WATCHDIRRESPONSE_FILESYSTEMEVENT"]._serialized_end = 1157+ _globals["_WATCHDIRRESPONSE_KEEPALIVE"]._serialized_start = 1159+ _globals["_WATCHDIRRESPONSE_KEEPALIVE"]._serialized_end = 1170+ _globals["_FILESYSTEM"]._serialized_start = 1421+ _globals["_FILESYSTEM"]._serialized_end = 1825# @@protoc_insertion_point(module_scope)diff --git a/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.pyi b/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.pyiindex 7733db9db..bec1f370c 100644--- a/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.pyi+++ b/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.pyi@@ -3,7 +3,13 @@ from google.protobuf.internal import containers as _containersfrom google.protobuf.internal import enum_type_wrapper as _enum_type_wrapperfrom google.protobuf import descriptor as _descriptorfrom google.protobuf import message as _message-from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union+from typing import (+ ClassVar as _ClassVar,+ Iterable as _Iterable,+ Mapping as _Mapping,+ Optional as _Optional,+ Union as _Union,+)DESCRIPTOR: _descriptor.FileDescriptor@@ -21,6 +27,7 @@ class EventType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):EVENT_TYPE_REMOVE: _ClassVar[EventType]EVENT_TYPE_RENAME: _ClassVar[EventType]EVENT_TYPE_CHMOD: _ClassVar[EventType]+FILE_TYPE_UNSPECIFIED: FileTypeFILE_TYPE_FILE: FileTypeFILE_TYPE_DIRECTORY: FileType@@ -39,7 +46,12 @@ class MoveRequest(_message.Message):source: strdestination: struser: _permissions_pb2.User- def __init__(self, source: _Optional[str] = ..., destination: _Optional[str] = ..., user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...) -> None: ...+ def __init__(+ self,+ source: _Optional[str] = ...,+ destination: _Optional[str] = ...,+ user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...,+ ) -> None: ...class MoveResponse(_message.Message):__slots__ = ()@@ -51,7 +63,11 @@ class MakeDirRequest(_message.Message):USER_FIELD_NUMBER: _ClassVar[int]path: struser: _permissions_pb2.User- def __init__(self, path: _Optional[str] = ..., user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...) -> None: ...+ def __init__(+ self,+ path: _Optional[str] = ...,+ user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...,+ ) -> None: ...class MakeDirResponse(_message.Message):__slots__ = ()@@ -63,7 +79,11 @@ class RemoveRequest(_message.Message):USER_FIELD_NUMBER: _ClassVar[int]path: struser: _permissions_pb2.User- def __init__(self, path: _Optional[str] = ..., user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...) -> None: ...+ def __init__(+ self,+ path: _Optional[str] = ...,+ user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...,+ ) -> None: ...class RemoveResponse(_message.Message):__slots__ = ()@@ -75,7 +95,11 @@ class StatRequest(_message.Message):USER_FIELD_NUMBER: _ClassVar[int]path: struser: _permissions_pb2.User- def __init__(self, path: _Optional[str] = ..., user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...) -> None: ...+ def __init__(+ self,+ path: _Optional[str] = ...,+ user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...,+ ) -> None: ...class StatResponse(_message.Message):__slots__ = ("entry",)@@ -89,7 +113,9 @@ class EntryInfo(_message.Message):TYPE_FIELD_NUMBER: _ClassVar[int]name: strtype: FileType- def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[FileType, str]] = ...) -> None: ...+ def __init__(+ self, name: _Optional[str] = ..., type: _Optional[_Union[FileType, str]] = ...+ ) -> None: ...class ListDirRequest(_message.Message):__slots__ = ("path", "user")@@ -97,13 +123,19 @@ class ListDirRequest(_message.Message):USER_FIELD_NUMBER: _ClassVar[int]path: struser: _permissions_pb2.User- def __init__(self, path: _Optional[str] = ..., user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...) -> None: ...+ def __init__(+ self,+ path: _Optional[str] = ...,+ user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...,+ ) -> None: ...class ListDirResponse(_message.Message):__slots__ = ("entries",)ENTRIES_FIELD_NUMBER: _ClassVar[int]entries: _containers.RepeatedCompositeFieldContainer[EntryInfo]- def __init__(self, entries: _Optional[_Iterable[_Union[EntryInfo, _Mapping]]] = ...) -> None: ...+ def __init__(+ self, entries: _Optional[_Iterable[_Union[EntryInfo, _Mapping]]] = ...+ ) -> None: ...class WatchDirRequest(_message.Message):__slots__ = ("path", "user")@@ -111,20 +143,31 @@ class WatchDirRequest(_message.Message):USER_FIELD_NUMBER: _ClassVar[int]path: struser: _permissions_pb2.User- def __init__(self, path: _Optional[str] = ..., user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...) -> None: ...+ def __init__(+ self,+ path: _Optional[str] = ...,+ user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...,+ ) -> None: ...class WatchDirResponse(_message.Message):__slots__ = ("start", "filesystem", "keepalive")+class StartEvent(_message.Message):__slots__ = ()def __init__(self) -> None: ...+class FilesystemEvent(_message.Message):__slots__ = ("name", "type")NAME_FIELD_NUMBER: _ClassVar[int]TYPE_FIELD_NUMBER: _ClassVar[int]name: strtype: EventType- def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[EventType, str]] = ...) -> None: ...+ def __init__(+ self,+ name: _Optional[str] = ...,+ type: _Optional[_Union[EventType, str]] = ...,+ ) -> None: ...+class KeepAlive(_message.Message):__slots__ = ()def __init__(self) -> None: ...@@ -134,4 +177,9 @@ class WatchDirResponse(_message.Message):start: WatchDirResponse.StartEventfilesystem: WatchDirResponse.FilesystemEventkeepalive: WatchDirResponse.KeepAlive- def __init__(self, start: _Optional[_Union[WatchDirResponse.StartEvent, _Mapping]] = ..., filesystem: _Optional[_Union[WatchDirResponse.FilesystemEvent, _Mapping]] = ..., keepalive: _Optional[_Union[WatchDirResponse.KeepAlive, _Mapping]] = ...) -> None: ...+ def __init__(+ self,+ start: _Optional[_Union[WatchDirResponse.StartEvent, _Mapping]] = ...,+ filesystem: _Optional[_Union[WatchDirResponse.FilesystemEvent, _Mapping]] = ...,+ keepalive: _Optional[_Union[WatchDirResponse.KeepAlive, _Mapping]] = ...,+ ) -> None: ...diff --git a/packages/python-sdk/e2b/envd/permissions/permissions_pb2.py b/packages/python-sdk/e2b/envd/permissions/permissions_pb2.pyindex 41dcb86a1..f3c5ff50f 100644--- a/packages/python-sdk/e2b/envd/permissions/permissions_pb2.py+++ b/packages/python-sdk/e2b/envd/permissions/permissions_pb2.py@@ -7,21 +7,26 @@ from google.protobuf import descriptor as _descriptorfrom google.protobuf import descriptor_pool as _descriptor_poolfrom google.protobuf import symbol_database as _symbol_databasefrom google.protobuf.internal import builder as _builder+# @@protoc_insertion_point(imports)_sym_db = _symbol_database.Default()---DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dpermissions/permissions.proto\x12\x0bpermissions\"0\n\x04User\x12\x1c\n\x08username\x18\x01 \x01(\tH\x00R\x08usernameB\n\n\x08selectorBo\n\x0f\x63om.permissionsB\x10PermissionsProtoP\x01\xa2\x02\x03PXX\xaa\x02\x0bPermissions\xca\x02\x0bPermissions\xe2\x02\x17Permissions\\GPBMetadata\xea\x02\x0bPermissionsb\x06proto3')+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(+ b'\n\x1dpermissions/permissions.proto\x12\x0bpermissions"0\n\x04User\x12\x1c\n\x08username\x18\x01 \x01(\tH\x00R\x08usernameB\n\n\x08selectorBo\n\x0f\x63om.permissionsB\x10PermissionsProtoP\x01\xa2\x02\x03PXX\xaa\x02\x0bPermissions\xca\x02\x0bPermissions\xe2\x02\x17Permissions\\GPBMetadata\xea\x02\x0bPermissionsb\x06proto3'+)_globals = globals()_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)-_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'permissions.permissions_pb2', _globals)+_builder.BuildTopDescriptorsAndMessages(+ DESCRIPTOR, "permissions.permissions_pb2", _globals+)if not _descriptor._USE_C_DESCRIPTORS:- _globals['DESCRIPTOR']._loaded_options = None- _globals['DESCRIPTOR']._serialized_options = b'\n\017com.permissionsB\020PermissionsProtoP\001\242\002\003PXX\252\002\013Permissions\312\002\013Permissions\342\002\027Permissions\\GPBMetadata\352\002\013Permissions'- _globals['_USER']._serialized_start=46- _globals['_USER']._serialized_end=94+ _globals["DESCRIPTOR"]._loaded_options = None+ _globals[+ "DESCRIPTOR"+ ]._serialized_options = b"\n\017com.permissionsB\020PermissionsProtoP\001\242\002\003PXX\252\002\013Permissions\312\002\013Permissions\342\002\027Permissions\\GPBMetadata\352\002\013Permissions"+ _globals["_USER"]._serialized_start = 46+ _globals["_USER"]._serialized_end = 94# @@protoc_insertion_point(module_scope)diff --git a/packages/python-sdk/e2b/envd/process/process_connect.py b/packages/python-sdk/e2b/envd/process/process_connect.pyindex 7a1f8ab04..d9ef4ba1a 100644--- a/packages/python-sdk/e2b/envd/process/process_connect.py+++ b/packages/python-sdk/e2b/envd/process/process_connect.py@@ -16,7 +16,7 @@ class ProcessClient:response_type=process_dot_process__pb2.ListResponse,compressor=compressor,json=json,- **opts+ **opts,)self._connect = connect.Client(pool=pool,@@ -24,7 +24,7 @@ class ProcessClient:response_type=process_dot_process__pb2.ConnectResponse,compressor=compressor,json=json,- **opts+ **opts,)self._start = connect.Client(pool=pool,@@ -32,7 +32,7 @@ class ProcessClient:response_type=process_dot_process__pb2.StartResponse,compressor=compressor,json=json,- **opts+ **opts,)self._update = connect.Client(pool=pool,@@ -40,7 +40,7 @@ class ProcessClient:response_type=process_dot_process__pb2.UpdateResponse,compressor=compressor,json=json,- **opts+ **opts,)self._stream_input = connect.Client(pool=pool,@@ -48,7 +48,7 @@ class ProcessClient:response_type=process_dot_process__pb2.StreamInputResponse,compressor=compressor,json=json,- **opts+ **opts,)self._send_input = connect.Client(pool=pool,@@ -56,7 +56,7 @@ class ProcessClient:response_type=process_dot_process__pb2.SendInputResponse,compressor=compressor,json=json,- **opts+ **opts,)self._send_signal = connect.Client(pool=pool,@@ -64,26 +64,40 @@ class ProcessClient:response_type=process_dot_process__pb2.SendSignalResponse,compressor=compressor,json=json,- **opts+ **opts,)- def list(self, req: process_dot_process__pb2.ListRequest, **opts) -> process_dot_process__pb2.ListResponse:+ def list(+ self, req: process_dot_process__pb2.ListRequest, **opts+ ) -> process_dot_process__pb2.ListResponse:return self._list.call_unary(req, **opts)- def connect(self, req: process_dot_process__pb2.ConnectRequest , **opts) -> Generator[process_dot_process__pb2.ConnectResponse, Any, None]:+ def connect(+ self, req: process_dot_process__pb2.ConnectRequest, **opts+ ) -> Generator[process_dot_process__pb2.ConnectResponse, Any, None]:return self._connect.call_server_stream(req, **opts)- def start(self, req: process_dot_process__pb2.StartRequest , **opts) -> Generator[process_dot_process__pb2.StartResponse, Any, None]:+ def start(+ self, req: process_dot_process__pb2.StartRequest, **opts+ ) -> Generator[process_dot_process__pb2.StartResponse, Any, None]:return self._start.call_server_stream(req, **opts)- def update(self, req: process_dot_process__pb2.UpdateRequest, **opts) -> process_dot_process__pb2.UpdateResponse:+ def update(+ self, req: process_dot_process__pb2.UpdateRequest, **opts+ ) -> process_dot_process__pb2.UpdateResponse:return self._update.call_unary(req, **opts)- def stream_input(self, req: process_dot_process__pb2.StreamInputRequest, **opts) -> process_dot_process__pb2.StreamInputResponse:+ def stream_input(+ self, req: process_dot_process__pb2.StreamInputRequest, **opts+ ) -> process_dot_process__pb2.StreamInputResponse:return self._stream_input.call_client_stream(req, **opts)- def send_input(self, req: process_dot_process__pb2.SendInputRequest, **opts) -> process_dot_process__pb2.SendInputResponse:+ def send_input(+ self, req: process_dot_process__pb2.SendInputRequest, **opts+ ) -> process_dot_process__pb2.SendInputResponse:return self._send_input.call_unary(req, **opts)- def send_signal(self, req: process_dot_process__pb2.SendSignalRequest, **opts) -> process_dot_process__pb2.SendSignalResponse:+ def send_signal(+ self, req: process_dot_process__pb2.SendSignalRequest, **opts+ ) -> process_dot_process__pb2.SendSignalResponse:return self._send_signal.call_unary(req, **opts)diff --git a/packages/python-sdk/e2b/envd/process/process_pb2.py b/packages/python-sdk/e2b/envd/process/process_pb2.pyindex c43141f04..ca20a39b3 100644--- a/packages/python-sdk/e2b/envd/process/process_pb2.py+++ b/packages/python-sdk/e2b/envd/process/process_pb2.py@@ -7,6 +7,7 @@ from google.protobuf import descriptor as _descriptorfrom google.protobuf import descriptor_pool as _descriptor_poolfrom google.protobuf import symbol_database as _symbol_databasefrom google.protobuf.internal import builder as _builder+# @@protoc_insertion_point(imports)_sym_db = _symbol_database.Default()@@ -15,76 +16,80 @@ _sym_db = _symbol_database.Default()from e2b.envd.permissions import permissions_pb2 as permissions_dot_permissions__pb2-DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15process/process.proto\x12\x07process\x1a\x1dpermissions/permissions.proto\"\\\n\x03PTY\x12%\n\x04size\x18\x01 \x01(\x0b\x32\x11.process.PTY.SizeR\x04size\x1a.\n\x04Size\x12\x12\n\x04\x63ols\x18\x01 \x01(\rR\x04\x63ols\x12\x12\n\x04rows\x18\x02 \x01(\rR\x04rows\"\xc3\x01\n\rProcessConfig\x12\x10\n\x03\x63md\x18\x01 \x01(\tR\x03\x63md\x12\x12\n\x04\x61rgs\x18\x02 \x03(\tR\x04\x61rgs\x12\x34\n\x04\x65nvs\x18\x03 \x03(\x0b\x32 .process.ProcessConfig.EnvsEntryR\x04\x65nvs\x12\x15\n\x03\x63wd\x18\x04 \x01(\tH\x00R\x03\x63wd\x88\x01\x01\x1a\x37\n\tEnvsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x06\n\x04_cwd\"\r\n\x0bListRequest\"n\n\x0bProcessInfo\x12.\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x16.process.ProcessConfigR\x06\x63onfig\x12\x10\n\x03pid\x18\x02 \x01(\rR\x03pid\x12\x15\n\x03tag\x18\x03 \x01(\tH\x00R\x03tag\x88\x01\x01\x42\x06\n\x04_tag\"B\n\x0cListResponse\x12\x32\n\tprocesses\x18\x01 \x03(\x0b\x32\x14.process.ProcessInfoR\tprocesses\"\xb3\x01\n\x0cStartRequest\x12\x30\n\x07process\x18\x01 \x01(\x0b\x32\x16.process.ProcessConfigR\x07process\x12#\n\x03pty\x18\x02 \x01(\x0b\x32\x0c.process.PTYH\x00R\x03pty\x88\x01\x01\x12\x15\n\x03tag\x18\x03 \x01(\tH\x01R\x03tag\x88\x01\x01\x12%\n\x04user\x18\x04 \x01(\x0b\x32\x11.permissions.UserR\x04userB\x06\n\x04_ptyB\x06\n\x04_tag\"p\n\rUpdateRequest\x12\x32\n\x07process\x18\x01 \x01(\x0b\x32\x18.process.ProcessSelectorR\x07process\x12#\n\x03pty\x18\x02 \x01(\x0b\x32\x0c.process.PTYH\x00R\x03pty\x88\x01\x01\x42\x06\n\x04_pty\"\x10\n\x0eUpdateResponse\"\x87\x04\n\x0cProcessEvent\x12\x38\n\x05start\x18\x01 \x01(\x0b\x32 .process.ProcessEvent.StartEventH\x00R\x05start\x12\x35\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1f.process.ProcessEvent.DataEventH\x00R\x04\x64\x61ta\x12\x32\n\x03\x65nd\x18\x03 \x01(\x0b\x32\x1e.process.ProcessEvent.EndEventH\x00R\x03\x65nd\x12?\n\tkeepalive\x18\x04 \x01(\x0b\x32\x1f.process.ProcessEvent.KeepAliveH\x00R\tkeepalive\x1a\x1e\n\nStartEvent\x12\x10\n\x03pid\x18\x01 \x01(\rR\x03pid\x1a]\n\tDataEvent\x12\x18\n\x06stdout\x18\x01 \x01(\x0cH\x00R\x06stdout\x12\x18\n\x06stderr\x18\x02 \x01(\x0cH\x00R\x06stderr\x12\x12\n\x03pty\x18\x03 \x01(\x0cH\x00R\x03ptyB\x08\n\x06output\x1a|\n\x08\x45ndEvent\x12\x1b\n\texit_code\x18\x01 \x01(\x11R\x08\x65xitCode\x12\x16\n\x06\x65xited\x18\x02 \x01(\x08R\x06\x65xited\x12\x16\n\x06status\x18\x03 \x01(\tR\x06status\x12\x19\n\x05\x65rror\x18\x04 \x01(\tH\x00R\x05\x65rror\x88\x01\x01\x42\x08\n\x06_error\x1a\x0b\n\tKeepAliveB\x07\n\x05\x65vent\"<\n\rStartResponse\x12+\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x15.process.ProcessEventR\x05\x65vent\">\n\x0f\x43onnectResponse\x12+\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x15.process.ProcessEventR\x05\x65vent\"s\n\x10SendInputRequest\x12\x32\n\x07process\x18\x01 \x01(\x0b\x32\x18.process.ProcessSelectorR\x07process\x12+\n\x05input\x18\x02 \x01(\x0b\x32\x15.process.ProcessInputR\x05input\"\x13\n\x11SendInputResponse\"C\n\x0cProcessInput\x12\x16\n\x05stdin\x18\x01 \x01(\x0cH\x00R\x05stdin\x12\x12\n\x03pty\x18\x02 \x01(\x0cH\x00R\x03ptyB\x07\n\x05input\"\xea\x02\n\x12StreamInputRequest\x12>\n\x05start\x18\x01 \x01(\x0b\x32&.process.StreamInputRequest.StartEventH\x00R\x05start\x12;\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32%.process.StreamInputRequest.DataEventH\x00R\x04\x64\x61ta\x12\x45\n\tkeepalive\x18\x03 \x01(\x0b\x32%.process.StreamInputRequest.KeepAliveH\x00R\tkeepalive\x1a@\n\nStartEvent\x12\x32\n\x07process\x18\x01 \x01(\x0b\x32\x18.process.ProcessSelectorR\x07process\x1a\x38\n\tDataEvent\x12+\n\x05input\x18\x02 \x01(\x0b\x32\x15.process.ProcessInputR\x05input\x1a\x0b\n\tKeepAliveB\x07\n\x05\x65vent\"\x15\n\x13StreamInputResponse\"p\n\x11SendSignalRequest\x12\x32\n\x07process\x18\x01 \x01(\x0b\x32\x18.process.ProcessSelectorR\x07process\x12\'\n\x06signal\x18\x02 \x01(\x0e\x32\x0f.process.SignalR\x06signal\"\x14\n\x12SendSignalResponse\"D\n\x0e\x43onnectRequest\x12\x32\n\x07process\x18\x01 \x01(\x0b\x32\x18.process.ProcessSelectorR\x07process\"E\n\x0fProcessSelector\x12\x12\n\x03pid\x18\x01 \x01(\rH\x00R\x03pid\x12\x12\n\x03tag\x18\x02 \x01(\tH\x00R\x03tagB\n\n\x08selector*H\n\x06Signal\x12\x16\n\x12SIGNAL_UNSPECIFIED\x10\x00\x12\x12\n\x0eSIGNAL_SIGTERM\x10\x0f\x12\x12\n\x0eSIGNAL_SIGKILL\x10\t2\xca\x03\n\x07Process\x12\x33\n\x04List\x12\x14.process.ListRequest\x1a\x15.process.ListResponse\x12>\n\x07\x43onnect\x12\x17.process.ConnectRequest\x1a\x18.process.ConnectResponse0\x01\x12\x38\n\x05Start\x12\x15.process.StartRequest\x1a\x16.process.StartResponse0\x01\x12\x39\n\x06Update\x12\x16.process.UpdateRequest\x1a\x17.process.UpdateResponse\x12J\n\x0bStreamInput\x12\x1b.process.StreamInputRequest\x1a\x1c.process.StreamInputResponse(\x01\x12\x42\n\tSendInput\x12\x19.process.SendInputRequest\x1a\x1a.process.SendInputResponse\x12\x45\n\nSendSignal\x12\x1a.process.SendSignalRequest\x1a\x1b.process.SendSignalResponseBW\n\x0b\x63om.processB\x0cProcessProtoP\x01\xa2\x02\x03PXX\xaa\x02\x07Process\xca\x02\x07Process\xe2\x02\x13Process\\GPBMetadata\xea\x02\x07Processb\x06proto3')+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(+ b'\n\x15process/process.proto\x12\x07process\x1a\x1dpermissions/permissions.proto"\\\n\x03PTY\x12%\n\x04size\x18\x01 \x01(\x0b\x32\x11.process.PTY.SizeR\x04size\x1a.\n\x04Size\x12\x12\n\x04\x63ols\x18\x01 \x01(\rR\x04\x63ols\x12\x12\n\x04rows\x18\x02 \x01(\rR\x04rows"\xc3\x01\n\rProcessConfig\x12\x10\n\x03\x63md\x18\x01 \x01(\tR\x03\x63md\x12\x12\n\x04\x61rgs\x18\x02 \x03(\tR\x04\x61rgs\x12\x34\n\x04\x65nvs\x18\x03 \x03(\x0b\x32 .process.ProcessConfig.EnvsEntryR\x04\x65nvs\x12\x15\n\x03\x63wd\x18\x04 \x01(\tH\x00R\x03\x63wd\x88\x01\x01\x1a\x37\n\tEnvsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x06\n\x04_cwd"\r\n\x0bListRequest"n\n\x0bProcessInfo\x12.\n\x06\x63onfig\x18\x01 \x01(\x0b\x32\x16.process.ProcessConfigR\x06\x63onfig\x12\x10\n\x03pid\x18\x02 \x01(\rR\x03pid\x12\x15\n\x03tag\x18\x03 \x01(\tH\x00R\x03tag\x88\x01\x01\x42\x06\n\x04_tag"B\n\x0cListResponse\x12\x32\n\tprocesses\x18\x01 \x03(\x0b\x32\x14.process.ProcessInfoR\tprocesses"\xb3\x01\n\x0cStartRequest\x12\x30\n\x07process\x18\x01 \x01(\x0b\x32\x16.process.ProcessConfigR\x07process\x12#\n\x03pty\x18\x02 \x01(\x0b\x32\x0c.process.PTYH\x00R\x03pty\x88\x01\x01\x12\x15\n\x03tag\x18\x03 \x01(\tH\x01R\x03tag\x88\x01\x01\x12%\n\x04user\x18\x04 \x01(\x0b\x32\x11.permissions.UserR\x04userB\x06\n\x04_ptyB\x06\n\x04_tag"p\n\rUpdateRequest\x12\x32\n\x07process\x18\x01 \x01(\x0b\x32\x18.process.ProcessSelectorR\x07process\x12#\n\x03pty\x18\x02 \x01(\x0b\x32\x0c.process.PTYH\x00R\x03pty\x88\x01\x01\x42\x06\n\x04_pty"\x10\n\x0eUpdateResponse"\x87\x04\n\x0cProcessEvent\x12\x38\n\x05start\x18\x01 \x01(\x0b\x32 .process.ProcessEvent.StartEventH\x00R\x05start\x12\x35\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x1f.process.ProcessEvent.DataEventH\x00R\x04\x64\x61ta\x12\x32\n\x03\x65nd\x18\x03 \x01(\x0b\x32\x1e.process.ProcessEvent.EndEventH\x00R\x03\x65nd\x12?\n\tkeepalive\x18\x04 \x01(\x0b\x32\x1f.process.ProcessEvent.KeepAliveH\x00R\tkeepalive\x1a\x1e\n\nStartEvent\x12\x10\n\x03pid\x18\x01 \x01(\rR\x03pid\x1a]\n\tDataEvent\x12\x18\n\x06stdout\x18\x01 \x01(\x0cH\x00R\x06stdout\x12\x18\n\x06stderr\x18\x02 \x01(\x0cH\x00R\x06stderr\x12\x12\n\x03pty\x18\x03 \x01(\x0cH\x00R\x03ptyB\x08\n\x06output\x1a|\n\x08\x45ndEvent\x12\x1b\n\texit_code\x18\x01 \x01(\x11R\x08\x65xitCode\x12\x16\n\x06\x65xited\x18\x02 \x01(\x08R\x06\x65xited\x12\x16\n\x06status\x18\x03 \x01(\tR\x06status\x12\x19\n\x05\x65rror\x18\x04 \x01(\tH\x00R\x05\x65rror\x88\x01\x01\x42\x08\n\x06_error\x1a\x0b\n\tKeepAliveB\x07\n\x05\x65vent"<\n\rStartResponse\x12+\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x15.process.ProcessEventR\x05\x65vent">\n\x0f\x43onnectResponse\x12+\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x15.process.ProcessEventR\x05\x65vent"s\n\x10SendInputRequest\x12\x32\n\x07process\x18\x01 \x01(\x0b\x32\x18.process.ProcessSelectorR\x07process\x12+\n\x05input\x18\x02 \x01(\x0b\x32\x15.process.ProcessInputR\x05input"\x13\n\x11SendInputResponse"C\n\x0cProcessInput\x12\x16\n\x05stdin\x18\x01 \x01(\x0cH\x00R\x05stdin\x12\x12\n\x03pty\x18\x02 \x01(\x0cH\x00R\x03ptyB\x07\n\x05input"\xea\x02\n\x12StreamInputRequest\x12>\n\x05start\x18\x01 \x01(\x0b\x32&.process.StreamInputRequest.StartEventH\x00R\x05start\x12;\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32%.process.StreamInputRequest.DataEventH\x00R\x04\x64\x61ta\x12\x45\n\tkeepalive\x18\x03 \x01(\x0b\x32%.process.StreamInputRequest.KeepAliveH\x00R\tkeepalive\x1a@\n\nStartEvent\x12\x32\n\x07process\x18\x01 \x01(\x0b\x32\x18.process.ProcessSelectorR\x07process\x1a\x38\n\tDataEvent\x12+\n\x05input\x18\x02 \x01(\x0b\x32\x15.process.ProcessInputR\x05input\x1a\x0b\n\tKeepAliveB\x07\n\x05\x65vent"\x15\n\x13StreamInputResponse"p\n\x11SendSignalRequest\x12\x32\n\x07process\x18\x01 \x01(\x0b\x32\x18.process.ProcessSelectorR\x07process\x12\'\n\x06signal\x18\x02 \x01(\x0e\x32\x0f.process.SignalR\x06signal"\x14\n\x12SendSignalResponse"D\n\x0e\x43onnectRequest\x12\x32\n\x07process\x18\x01 \x01(\x0b\x32\x18.process.ProcessSelectorR\x07process"E\n\x0fProcessSelector\x12\x12\n\x03pid\x18\x01 \x01(\rH\x00R\x03pid\x12\x12\n\x03tag\x18\x02 \x01(\tH\x00R\x03tagB\n\n\x08selector*H\n\x06Signal\x12\x16\n\x12SIGNAL_UNSPECIFIED\x10\x00\x12\x12\n\x0eSIGNAL_SIGTERM\x10\x0f\x12\x12\n\x0eSIGNAL_SIGKILL\x10\t2\xca\x03\n\x07Process\x12\x33\n\x04List\x12\x14.process.ListRequest\x1a\x15.process.ListResponse\x12>\n\x07\x43onnect\x12\x17.process.ConnectRequest\x1a\x18.process.ConnectResponse0\x01\x12\x38\n\x05Start\x12\x15.process.StartRequest\x1a\x16.process.StartResponse0\x01\x12\x39\n\x06Update\x12\x16.process.UpdateRequest\x1a\x17.process.UpdateResponse\x12J\n\x0bStreamInput\x12\x1b.process.StreamInputRequest\x1a\x1c.process.StreamInputResponse(\x01\x12\x42\n\tSendInput\x12\x19.process.SendInputRequest\x1a\x1a.process.SendInputResponse\x12\x45\n\nSendSignal\x12\x1a.process.SendSignalRequest\x1a\x1b.process.SendSignalResponseBW\n\x0b\x63om.processB\x0cProcessProtoP\x01\xa2\x02\x03PXX\xaa\x02\x07Process\xca\x02\x07Process\xe2\x02\x13Process\\GPBMetadata\xea\x02\x07Processb\x06proto3'+)_globals = globals()_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)-_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'process.process_pb2', _globals)+_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "process.process_pb2", _globals)if not _descriptor._USE_C_DESCRIPTORS:- _globals['DESCRIPTOR']._loaded_options = None- _globals['DESCRIPTOR']._serialized_options = b'\n\013com.processB\014ProcessProtoP\001\242\002\003PXX\252\002\007Process\312\002\007Process\342\002\023Process\\GPBMetadata\352\002\007Process'- _globals['_PROCESSCONFIG_ENVSENTRY']._loaded_options = None- _globals['_PROCESSCONFIG_ENVSENTRY']._serialized_options = b'8\001'- _globals['_SIGNAL']._serialized_start=2386- _globals['_SIGNAL']._serialized_end=2458- _globals['_PTY']._serialized_start=65- _globals['_PTY']._serialized_end=157- _globals['_PTY_SIZE']._serialized_start=111- _globals['_PTY_SIZE']._serialized_end=157- _globals['_PROCESSCONFIG']._serialized_start=160- _globals['_PROCESSCONFIG']._serialized_end=355- _globals['_PROCESSCONFIG_ENVSENTRY']._serialized_start=292- _globals['_PROCESSCONFIG_ENVSENTRY']._serialized_end=347- _globals['_LISTREQUEST']._serialized_start=357- _globals['_LISTREQUEST']._serialized_end=370- _globals['_PROCESSINFO']._serialized_start=372- _globals['_PROCESSINFO']._serialized_end=482- _globals['_LISTRESPONSE']._serialized_start=484- _globals['_LISTRESPONSE']._serialized_end=550- _globals['_STARTREQUEST']._serialized_start=553- _globals['_STARTREQUEST']._serialized_end=732- _globals['_UPDATEREQUEST']._serialized_start=734- _globals['_UPDATEREQUEST']._serialized_end=846- _globals['_UPDATERESPONSE']._serialized_start=848- _globals['_UPDATERESPONSE']._serialized_end=864- _globals['_PROCESSEVENT']._serialized_start=867- _globals['_PROCESSEVENT']._serialized_end=1386- _globals['_PROCESSEVENT_STARTEVENT']._serialized_start=1113- _globals['_PROCESSEVENT_STARTEVENT']._serialized_end=1143- _globals['_PROCESSEVENT_DATAEVENT']._serialized_start=1145- _globals['_PROCESSEVENT_DATAEVENT']._serialized_end=1238- _globals['_PROCESSEVENT_ENDEVENT']._serialized_start=1240- _globals['_PROCESSEVENT_ENDEVENT']._serialized_end=1364- _globals['_PROCESSEVENT_KEEPALIVE']._serialized_start=1366- _globals['_PROCESSEVENT_KEEPALIVE']._serialized_end=1377- _globals['_STARTRESPONSE']._serialized_start=1388- _globals['_STARTRESPONSE']._serialized_end=1448- _globals['_CONNECTRESPONSE']._serialized_start=1450- _globals['_CONNECTRESPONSE']._serialized_end=1512- _globals['_SENDINPUTREQUEST']._serialized_start=1514- _globals['_SENDINPUTREQUEST']._serialized_end=1629- _globals['_SENDINPUTRESPONSE']._serialized_start=1631- _globals['_SENDINPUTRESPONSE']._serialized_end=1650- _globals['_PROCESSINPUT']._serialized_start=1652- _globals['_PROCESSINPUT']._serialized_end=1719- _globals['_STREAMINPUTREQUEST']._serialized_start=1722- _globals['_STREAMINPUTREQUEST']._serialized_end=2084- _globals['_STREAMINPUTREQUEST_STARTEVENT']._serialized_start=1940- _globals['_STREAMINPUTREQUEST_STARTEVENT']._serialized_end=2004- _globals['_STREAMINPUTREQUEST_DATAEVENT']._serialized_start=2006- _globals['_STREAMINPUTREQUEST_DATAEVENT']._serialized_end=2062- _globals['_STREAMINPUTREQUEST_KEEPALIVE']._serialized_start=1366- _globals['_STREAMINPUTREQUEST_KEEPALIVE']._serialized_end=1377- _globals['_STREAMINPUTRESPONSE']._serialized_start=2086- _globals['_STREAMINPUTRESPONSE']._serialized_end=2107- _globals['_SENDSIGNALREQUEST']._serialized_start=2109- _globals['_SENDSIGNALREQUEST']._serialized_end=2221- _globals['_SENDSIGNALRESPONSE']._serialized_start=2223- _globals['_SENDSIGNALRESPONSE']._serialized_end=2243- _globals['_CONNECTREQUEST']._serialized_start=2245- _globals['_CONNECTREQUEST']._serialized_end=2313- _globals['_PROCESSSELECTOR']._serialized_start=2315- _globals['_PROCESSSELECTOR']._serialized_end=2384- _globals['_PROCESS']._serialized_start=2461- _globals['_PROCESS']._serialized_end=2919+ _globals["DESCRIPTOR"]._loaded_options = None+ _globals[+ "DESCRIPTOR"+ ]._serialized_options = b"\n\013com.processB\014ProcessProtoP\001\242\002\003PXX\252\002\007Process\312\002\007Process\342\002\023Process\\GPBMetadata\352\002\007Process"+ _globals["_PROCESSCONFIG_ENVSENTRY"]._loaded_options = None+ _globals["_PROCESSCONFIG_ENVSENTRY"]._serialized_options = b"8\001"+ _globals["_SIGNAL"]._serialized_start = 2386+ _globals["_SIGNAL"]._serialized_end = 2458+ _globals["_PTY"]._serialized_start = 65+ _globals["_PTY"]._serialized_end = 157+ _globals["_PTY_SIZE"]._serialized_start = 111+ _globals["_PTY_SIZE"]._serialized_end = 157+ _globals["_PROCESSCONFIG"]._serialized_start = 160+ _globals["_PROCESSCONFIG"]._serialized_end = 355+ _globals["_PROCESSCONFIG_ENVSENTRY"]._serialized_start = 292+ _globals["_PROCESSCONFIG_ENVSENTRY"]._serialized_end = 347+ _globals["_LISTREQUEST"]._serialized_start = 357+ _globals["_LISTREQUEST"]._serialized_end = 370+ _globals["_PROCESSINFO"]._serialized_start = 372+ _globals["_PROCESSINFO"]._serialized_end = 482+ _globals["_LISTRESPONSE"]._serialized_start = 484+ _globals["_LISTRESPONSE"]._serialized_end = 550+ _globals["_STARTREQUEST"]._serialized_start = 553+ _globals["_STARTREQUEST"]._serialized_end = 732+ _globals["_UPDATEREQUEST"]._serialized_start = 734+ _globals["_UPDATEREQUEST"]._serialized_end = 846+ _globals["_UPDATERESPONSE"]._serialized_start = 848+ _globals["_UPDATERESPONSE"]._serialized_end = 864+ _globals["_PROCESSEVENT"]._serialized_start = 867+ _globals["_PROCESSEVENT"]._serialized_end = 1386+ _globals["_PROCESSEVENT_STARTEVENT"]._serialized_start = 1113+ _globals["_PROCESSEVENT_STARTEVENT"]._serialized_end = 1143+ _globals["_PROCESSEVENT_DATAEVENT"]._serialized_start = 1145+ _globals["_PROCESSEVENT_DATAEVENT"]._serialized_end = 1238+ _globals["_PROCESSEVENT_ENDEVENT"]._serialized_start = 1240+ _globals["_PROCESSEVENT_ENDEVENT"]._serialized_end = 1364+ _globals["_PROCESSEVENT_KEEPALIVE"]._serialized_start = 1366+ _globals["_PROCESSEVENT_KEEPALIVE"]._serialized_end = 1377+ _globals["_STARTRESPONSE"]._serialized_start = 1388+ _globals["_STARTRESPONSE"]._serialized_end = 1448+ _globals["_CONNECTRESPONSE"]._serialized_start = 1450+ _globals["_CONNECTRESPONSE"]._serialized_end = 1512+ _globals["_SENDINPUTREQUEST"]._serialized_start = 1514+ _globals["_SENDINPUTREQUEST"]._serialized_end = 1629+ _globals["_SENDINPUTRESPONSE"]._serialized_start = 1631+ _globals["_SENDINPUTRESPONSE"]._serialized_end = 1650+ _globals["_PROCESSINPUT"]._serialized_start = 1652+ _globals["_PROCESSINPUT"]._serialized_end = 1719+ _globals["_STREAMINPUTREQUEST"]._serialized_start = 1722+ _globals["_STREAMINPUTREQUEST"]._serialized_end = 2084+ _globals["_STREAMINPUTREQUEST_STARTEVENT"]._serialized_start = 1940+ _globals["_STREAMINPUTREQUEST_STARTEVENT"]._serialized_end = 2004+ _globals["_STREAMINPUTREQUEST_DATAEVENT"]._serialized_start = 2006+ _globals["_STREAMINPUTREQUEST_DATAEVENT"]._serialized_end = 2062+ _globals["_STREAMINPUTREQUEST_KEEPALIVE"]._serialized_start = 1366+ _globals["_STREAMINPUTREQUEST_KEEPALIVE"]._serialized_end = 1377+ _globals["_STREAMINPUTRESPONSE"]._serialized_start = 2086+ _globals["_STREAMINPUTRESPONSE"]._serialized_end = 2107+ _globals["_SENDSIGNALREQUEST"]._serialized_start = 2109+ _globals["_SENDSIGNALREQUEST"]._serialized_end = 2221+ _globals["_SENDSIGNALRESPONSE"]._serialized_start = 2223+ _globals["_SENDSIGNALRESPONSE"]._serialized_end = 2243+ _globals["_CONNECTREQUEST"]._serialized_start = 2245+ _globals["_CONNECTREQUEST"]._serialized_end = 2313+ _globals["_PROCESSSELECTOR"]._serialized_start = 2315+ _globals["_PROCESSSELECTOR"]._serialized_end = 2384+ _globals["_PROCESS"]._serialized_start = 2461+ _globals["_PROCESS"]._serialized_end = 2919# @@protoc_insertion_point(module_scope)diff --git a/packages/python-sdk/e2b/envd/process/process_pb2.pyi b/packages/python-sdk/e2b/envd/process/process_pb2.pyiindex fbd5f3a34..e419f7f55 100644--- a/packages/python-sdk/e2b/envd/process/process_pb2.pyi+++ b/packages/python-sdk/e2b/envd/process/process_pb2.pyi@@ -3,7 +3,13 @@ from google.protobuf.internal import containers as _containersfrom google.protobuf.internal import enum_type_wrapper as _enum_type_wrapperfrom google.protobuf import descriptor as _descriptorfrom google.protobuf import message as _message-from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union+from typing import (+ ClassVar as _ClassVar,+ Iterable as _Iterable,+ Mapping as _Mapping,+ Optional as _Optional,+ Union as _Union,+)DESCRIPTOR: _descriptor.FileDescriptor@@ -12,32 +18,39 @@ class Signal(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):SIGNAL_UNSPECIFIED: _ClassVar[Signal]SIGNAL_SIGTERM: _ClassVar[Signal]SIGNAL_SIGKILL: _ClassVar[Signal]+SIGNAL_UNSPECIFIED: SignalSIGNAL_SIGTERM: SignalSIGNAL_SIGKILL: Signalclass PTY(_message.Message):__slots__ = ("size",)+class Size(_message.Message):__slots__ = ("cols", "rows")COLS_FIELD_NUMBER: _ClassVar[int]ROWS_FIELD_NUMBER: _ClassVar[int]cols: introws: int- def __init__(self, cols: _Optional[int] = ..., rows: _Optional[int] = ...) -> None: ...+ def __init__(+ self, cols: _Optional[int] = ..., rows: _Optional[int] = ...+ ) -> None: ...SIZE_FIELD_NUMBER: _ClassVar[int]size: PTY.Sizedef __init__(self, size: _Optional[_Union[PTY.Size, _Mapping]] = ...) -> None: ...class ProcessConfig(_message.Message):__slots__ = ("cmd", "args", "envs", "cwd")+class EnvsEntry(_message.Message):__slots__ = ("key", "value")KEY_FIELD_NUMBER: _ClassVar[int]VALUE_FIELD_NUMBER: _ClassVar[int]key: strvalue: str- def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...+ def __init__(+ self, key: _Optional[str] = ..., value: _Optional[str] = ...+ ) -> None: ...CMD_FIELD_NUMBER: _ClassVar[int]ARGS_FIELD_NUMBER: _ClassVar[int]ENVS_FIELD_NUMBER: _ClassVar[int]@@ -46,7 +59,13 @@ class ProcessConfig(_message.Message):args: _containers.RepeatedScalarFieldContainer[str]envs: _containers.ScalarMap[str, str]cwd: str- def __init__(self, cmd: _Optional[str] = ..., args: _Optional[_Iterable[str]] = ..., envs: _Optional[_Mapping[str, str]] = ..., cwd: _Optional[str] = ...) -> None: ...+ def __init__(+ self,+ cmd: _Optional[str] = ...,+ args: _Optional[_Iterable[str]] = ...,+ envs: _Optional[_Mapping[str, str]] = ...,+ cwd: _Optional[str] = ...,+ ) -> None: ...class ListRequest(_message.Message):__slots__ = ()@@ -60,13 +79,20 @@ class ProcessInfo(_message.Message):config: ProcessConfigpid: inttag: str- def __init__(self, config: _Optional[_Union[ProcessConfig, _Mapping]] = ..., pid: _Optional[int] = ..., tag: _Optional[str] = ...) -> None: ...+ def __init__(+ self,+ config: _Optional[_Union[ProcessConfig, _Mapping]] = ...,+ pid: _Optional[int] = ...,+ tag: _Optional[str] = ...,+ ) -> None: ...class ListResponse(_message.Message):__slots__ = ("processes",)PROCESSES_FIELD_NUMBER: _ClassVar[int]processes: _containers.RepeatedCompositeFieldContainer[ProcessInfo]- def __init__(self, processes: _Optional[_Iterable[_Union[ProcessInfo, _Mapping]]] = ...) -> None: ...+ def __init__(+ self, processes: _Optional[_Iterable[_Union[ProcessInfo, _Mapping]]] = ...+ ) -> None: ...class StartRequest(_message.Message):__slots__ = ("process", "pty", "tag", "user")@@ -78,7 +104,13 @@ class StartRequest(_message.Message):pty: PTYtag: struser: _permissions_pb2.User- def __init__(self, process: _Optional[_Union[ProcessConfig, _Mapping]] = ..., pty: _Optional[_Union[PTY, _Mapping]] = ..., tag: _Optional[str] = ..., user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...) -> None: ...+ def __init__(+ self,+ process: _Optional[_Union[ProcessConfig, _Mapping]] = ...,+ pty: _Optional[_Union[PTY, _Mapping]] = ...,+ tag: _Optional[str] = ...,+ user: _Optional[_Union[_permissions_pb2.User, _Mapping]] = ...,+ ) -> None: ...class UpdateRequest(_message.Message):__slots__ = ("process", "pty")@@ -86,7 +118,11 @@ class UpdateRequest(_message.Message):PTY_FIELD_NUMBER: _ClassVar[int]process: ProcessSelectorpty: PTY- def __init__(self, process: _Optional[_Union[ProcessSelector, _Mapping]] = ..., pty: _Optional[_Union[PTY, _Mapping]] = ...) -> None: ...+ def __init__(+ self,+ process: _Optional[_Union[ProcessSelector, _Mapping]] = ...,+ pty: _Optional[_Union[PTY, _Mapping]] = ...,+ ) -> None: ...class UpdateResponse(_message.Message):__slots__ = ()@@ -94,11 +130,13 @@ class UpdateResponse(_message.Message):class ProcessEvent(_message.Message):__slots__ = ("start", "data", "end", "keepalive")+class StartEvent(_message.Message):__slots__ = ("pid",)PID_FIELD_NUMBER: _ClassVar[int]pid: intdef __init__(self, pid: _Optional[int] = ...) -> None: ...+class DataEvent(_message.Message):__slots__ = ("stdout", "stderr", "pty")STDOUT_FIELD_NUMBER: _ClassVar[int]@@ -107,7 +145,13 @@ class ProcessEvent(_message.Message):stdout: bytesstderr: bytespty: bytes- def __init__(self, stdout: _Optional[bytes] = ..., stderr: _Optional[bytes] = ..., pty: _Optional[bytes] = ...) -> None: ...+ def __init__(+ self,+ stdout: _Optional[bytes] = ...,+ stderr: _Optional[bytes] = ...,+ pty: _Optional[bytes] = ...,+ ) -> None: ...+class EndEvent(_message.Message):__slots__ = ("exit_code", "exited", "status", "error")EXIT_CODE_FIELD_NUMBER: _ClassVar[int]@@ -118,7 +162,14 @@ class ProcessEvent(_message.Message):exited: boolstatus: strerror: str- def __init__(self, exit_code: _Optional[int] = ..., exited: bool = ..., status: _Optional[str] = ..., error: _Optional[str] = ...) -> None: ...+ def __init__(+ self,+ exit_code: _Optional[int] = ...,+ exited: bool = ...,+ status: _Optional[str] = ...,+ error: _Optional[str] = ...,+ ) -> None: ...+class KeepAlive(_message.Message):__slots__ = ()def __init__(self) -> None: ...@@ -130,19 +181,29 @@ class ProcessEvent(_message.Message):data: ProcessEvent.DataEventend: ProcessEvent.EndEventkeepalive: ProcessEvent.KeepAlive- def __init__(self, start: _Optional[_Union[ProcessEvent.StartEvent, _Mapping]] = ..., data: _Optional[_Union[ProcessEvent.DataEvent, _Mapping]] = ..., end: _Optional[_Union[ProcessEvent.EndEvent, _Mapping]] = ..., keepalive: _Optional[_Union[ProcessEvent.KeepAlive, _Mapping]] = ...) -> None: ...+ def __init__(+ self,+ start: _Optional[_Union[ProcessEvent.StartEvent, _Mapping]] = ...,+ data: _Optional[_Union[ProcessEvent.DataEvent, _Mapping]] = ...,+ end: _Optional[_Union[ProcessEvent.EndEvent, _Mapping]] = ...,+ keepalive: _Optional[_Union[ProcessEvent.KeepAlive, _Mapping]] = ...,+ ) -> None: ...class StartResponse(_message.Message):__slots__ = ("event",)EVENT_FIELD_NUMBER: _ClassVar[int]event: ProcessEvent- def __init__(self, event: _Optional[_Union[ProcessEvent, _Mapping]] = ...) -> None: ...+ def __init__(+ self, event: _Optional[_Union[ProcessEvent, _Mapping]] = ...+ ) -> None: ...class ConnectResponse(_message.Message):__slots__ = ("event",)EVENT_FIELD_NUMBER: _ClassVar[int]event: ProcessEvent- def __init__(self, event: _Optional[_Union[ProcessEvent, _Mapping]] = ...) -> None: ...+ def __init__(+ self, event: _Optional[_Union[ProcessEvent, _Mapping]] = ...+ ) -> None: ...class SendInputRequest(_message.Message):__slots__ = ("process", "input")@@ -150,7 +211,11 @@ class SendInputRequest(_message.Message):INPUT_FIELD_NUMBER: _ClassVar[int]process: ProcessSelectorinput: ProcessInput- def __init__(self, process: _Optional[_Union[ProcessSelector, _Mapping]] = ..., input: _Optional[_Union[ProcessInput, _Mapping]] = ...) -> None: ...+ def __init__(+ self,+ process: _Optional[_Union[ProcessSelector, _Mapping]] = ...,+ input: _Optional[_Union[ProcessInput, _Mapping]] = ...,+ ) -> None: ...class SendInputResponse(_message.Message):__slots__ = ()@@ -162,20 +227,29 @@ class ProcessInput(_message.Message):PTY_FIELD_NUMBER: _ClassVar[int]stdin: bytespty: bytes- def __init__(self, stdin: _Optional[bytes] = ..., pty: _Optional[bytes] = ...) -> None: ...+ def __init__(+ self, stdin: _Optional[bytes] = ..., pty: _Optional[bytes] = ...+ ) -> None: ...class StreamInputRequest(_message.Message):__slots__ = ("start", "data", "keepalive")+class StartEvent(_message.Message):__slots__ = ("process",)PROCESS_FIELD_NUMBER: _ClassVar[int]process: ProcessSelector- def __init__(self, process: _Optional[_Union[ProcessSelector, _Mapping]] = ...) -> None: ...+ def __init__(+ self, process: _Optional[_Union[ProcessSelector, _Mapping]] = ...+ ) -> None: ...+class DataEvent(_message.Message):__slots__ = ("input",)INPUT_FIELD_NUMBER: _ClassVar[int]input: ProcessInput- def __init__(self, input: _Optional[_Union[ProcessInput, _Mapping]] = ...) -> None: ...+ def __init__(+ self, input: _Optional[_Union[ProcessInput, _Mapping]] = ...+ ) -> None: ...+class KeepAlive(_message.Message):__slots__ = ()def __init__(self) -> None: ...@@ -185,7 +259,12 @@ class StreamInputRequest(_message.Message):start: StreamInputRequest.StartEventdata: StreamInputRequest.DataEventkeepalive: StreamInputRequest.KeepAlive- def __init__(self, start: _Optional[_Union[StreamInputRequest.StartEvent, _Mapping]] = ..., data: _Optional[_Union[StreamInputRequest.DataEvent, _Mapping]] = ..., keepalive: _Optional[_Union[StreamInputRequest.KeepAlive, _Mapping]] = ...) -> None: ...+ def __init__(+ self,+ start: _Optional[_Union[StreamInputRequest.StartEvent, _Mapping]] = ...,+ data: _Optional[_Union[StreamInputRequest.DataEvent, _Mapping]] = ...,+ keepalive: _Optional[_Union[StreamInputRequest.KeepAlive, _Mapping]] = ...,+ ) -> None: ...class StreamInputResponse(_message.Message):__slots__ = ()@@ -197,7 +276,11 @@ class SendSignalRequest(_message.Message):SIGNAL_FIELD_NUMBER: _ClassVar[int]process: ProcessSelectorsignal: Signal- def __init__(self, process: _Optional[_Union[ProcessSelector, _Mapping]] = ..., signal: _Optional[_Union[Signal, str]] = ...) -> None: ...+ def __init__(+ self,+ process: _Optional[_Union[ProcessSelector, _Mapping]] = ...,+ signal: _Optional[_Union[Signal, str]] = ...,+ ) -> None: ...class SendSignalResponse(_message.Message):__slots__ = ()@@ -207,7 +290,9 @@ class ConnectRequest(_message.Message):__slots__ = ("process",)PROCESS_FIELD_NUMBER: _ClassVar[int]process: ProcessSelector- def __init__(self, process: _Optional[_Union[ProcessSelector, _Mapping]] = ...) -> None: ...+ def __init__(+ self, process: _Optional[_Union[ProcessSelector, _Mapping]] = ...+ ) -> None: ...class ProcessSelector(_message.Message):__slots__ = ("pid", "tag")@@ -215,4 +300,6 @@ class ProcessSelector(_message.Message):TAG_FIELD_NUMBER: _ClassVar[int]pid: inttag: str- def __init__(self, pid: _Optional[int] = ..., tag: _Optional[str] = ...) -> None: ...+ def __init__(+ self, pid: _Optional[int] = ..., tag: _Optional[str] = ...+ ) -> None: ...diff --git a/packages/python-sdk/e2b/sandbox/main.py b/packages/python-sdk/e2b/sandbox/main.pyindex 13d3be349..5ebecfc18 100644--- a/packages/python-sdk/e2b/sandbox/main.py+++ b/packages/python-sdk/e2b/sandbox/main.py@@ -1,3 +1,4 @@+import loggingimport urllib.parseimport httpcoreimport httpx@@ -16,7 +17,20 @@ from e2b.envd.api import ()from e2b.exceptions import SandboxException-# TODO: Add logs++logger = logging.getLogger(__name__)+++class E2BConnectionPool(httpcore.ConnectionPool):+ def handle_request(self, request):+ url = f"{request.url.scheme.decode()}://{request.url.host.decode()}{request.url.target.decode()}"+ logger.info(f"Request: {request.method.decode()} {url}")+ response = super().handle_request(request)++ # data = connect.GzipCompressor.decompress(response.read()).decode()+ logger.info(f"Response: {response.status} {url}")++ return responseclass Sandbox(SandboxApi):@@ -78,7 +92,7 @@ class Sandbox(SandboxApi):self._envd_api_url = f"{'http' if self._connection_config.debug else 'https'}://{self.get_host(self._envd_port)}"- self._envd_rpc_pool = httpcore.ConnectionPool(max_connections=25)+ self._envd_rpc_pool = E2BConnectionPool(max_connections=25)self._envd_api = httpx.Client(base_url=self._envd_api_url)self._filesystem = Filesystem(@@ -141,7 +155,8 @@ class Sandbox(SandboxApi):self.kill()@overload- def kill(self, request_timeout: Optional[float] = None) -> None: ...+ def kill(self, request_timeout: Optional[float] = None) -> None:+ ...@overload@staticmethod@@ -151,7 +166,8 @@ class Sandbox(SandboxApi):domain: Optional[str] = None,debug: Optional[bool] = None,request_timeout: Optional[float] = None,- ) -> None: ...+ ) -> None:+ ...@class_method_variant("_cls_kill")def kill(self, request_timeout: Optional[float] = None) -> None: # type: ignore@@ -172,7 +188,8 @@ class Sandbox(SandboxApi):self,timeout: int,request_timeout: Optional[float] = None,- ) -> None: ...+ ) -> None:+ ...@overload@staticmethod@@ -183,7 +200,8 @@ class Sandbox(SandboxApi):domain: Optional[str] = None,debug: Optional[bool] = None,request_timeout: Optional[float] = None,- ) -> None: ...+ ) -> None:+ ...@class_method_variant("_cls_set_timeout")def set_timeout( # type: ignorediff --git a/packages/python-sdk/e2b/sandbox/process/process_handle.py b/packages/python-sdk/e2b/sandbox/process/process_handle.pyindex e3d754a19..9a20cb443 100644--- a/packages/python-sdk/e2b/sandbox/process/process_handle.py+++ b/packages/python-sdk/e2b/sandbox/process/process_handle.py@@ -59,11 +59,7 @@ class ProcessHandle:def _handle_events(self,- ) -> Generator[- Union[Tuple[Stdout, None], Tuple[None, Stderr]],- None,- None,- ]:+ ) -> Generator[Union[Tuple[Stdout, None], Tuple[None, Stderr]], None, None,]:try:for event in self._events:if event.event.HasField("data"):diff --git a/packages/python-sdk/e2b/sandbox/sandbox_api.py b/packages/python-sdk/e2b/sandbox/sandbox_api.pyindex 67f2e6f3d..1595f101b 100644--- a/packages/python-sdk/e2b/sandbox/sandbox_api.py+++ b/packages/python-sdk/e2b/sandbox/sandbox_api.py@@ -1,6 +1,7 @@from dataclasses import dataclassfrom typing import Optional, Dict, Listfrom datetime import datetime+from packaging.version import Versionfrom e2b.api import ApiClient, models, client, exceptionsfrom e2b.connection_config import ConnectionConfig@@ -145,7 +146,7 @@ class SandboxApi:),_request_timeout=config.request_timeout,)- if not res.envd_v2:+ if Version(res.envd_version) < Version("0.1.0"):raise E2BUpdateTemplateException("You need to update the template to use the new SDK. ""You can do this by running `e2b template build` in the directory with the template."diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex b9302c0b9..ec975e8c8 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -324,6 +324,9 @@ importers:'@connectrpc/connect-web':specifier: ^1.4.0version: 1.4.0(@bufbuild/[email protected])(@connectrpc/[email protected])+ compare-versions:+ specifier: ^6.1.0+ version: 6.1.0openapi-fetch:specifier: ^0.9.7version: 0.9.7@@ -4851,6 +4854,10 @@ packages:resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==}dev: false+ resolution: {integrity: sha512-LNZQXhqUvqUTotpZ00qLSaify3b4VFD588aRr8MKFw4CMUr98ytzCW5wDH5qx/DEY5kCDXcbcRuCqL0szEf2tg==}+ dev: false+resolution: {integrity: sha512-xzhzTJ5eC+gmIzvZq+C3kCJHsp9os6tJkrigDRZclyGtOKINbZtE8n1Tzmeh32jW+BUDPbvZpibwvJHBLGMVwg==}dependencies:@@ -9508,22 +9515,6 @@ packages:camelcase-css: 2.0.1postcss: 8.4.30- resolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==}- engines: {node: '>= 14'}- peerDependencies:- postcss: '>=8.0.9'- ts-node: '>=9.0.0'- peerDependenciesMeta:- postcss:- optional: true- ts-node:- optional: true- dependencies:- lilconfig: 2.1.0- yaml: 2.3.2- dev: true-resolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==}engines: {node: '>= 14'}@@ -11263,7 +11254,7 @@ packages:execa: 5.1.1globby: 11.1.0joycon: 3.1.1- postcss-load-config: 4.0.1+ postcss-load-config: 4.0.1([email protected])resolve-from: 5.0.0rollup: 4.18.0source-map: 0.8.0-beta.0diff --git a/spec/openapi.yml b/spec/openapi.ymlindex 10b4ad261..a0d48fa80 100644--- a/spec/openapi.yml+++ b/spec/openapi.yml@@ -113,7 +113,7 @@ components:- templateID- sandboxID- clientID- - envdV2+ - envdVersionproperties:templateID:type: string@@ -127,9 +127,9 @@ components:clientID:type: stringdescription: Identifier of the client- envdV2:- type: boolean- description: Whether the template contains envd v2+ envdVersion:+ type: string+ description: Version of the envd running in the sandboxRunningSandbox:required: