Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Add async rpc client
Tomas Valenta1664ecb73eda
diff --git a/packages/connect-python/cmd/protoc-gen-connect-python/main.go b/packages/connect-python/cmd/protoc-gen-connect-python/main.goindex c4b126dc4..21273bb48 100644--- a/packages/connect-python/cmd/protoc-gen-connect-python/main.go+++ b/packages/connect-python/cmd/protoc-gen-connect-python/main.go@@ -304,7 +304,8 @@ func generate(gen *Plugin, file *descriptor.FileDescriptorProto) {print(b, "# Code generated by protoc-gen-connect-python %s, DO NOT EDIT.", pluginVersion)- print(b, "from typing import Any, Generator")+ print(b, "from typing import Any, Generator, Coroutine, AsyncGenerator")+ print(b, "from httpcore import ConnectionPool, AsyncConnectionPool")print(b, "")print(b, "import connect")@@ -324,7 +325,7 @@ func generate(gen *Plugin, file *descriptor.FileDescriptorProto) {print(b, "")print(b, "")print(b, `class %s:`, getServiceClient(svc))- print(b, " def __init__(self, base_url, *, pool=None, compressor=None, json=False, **opts):")+ print(b, " def __init__(self, base_url: str, *, pool: ConnectionPool, async_pool: AsyncConnectionPool, compressor=None, json=False, **opts):")if len(svc.Method) == 0 {print(b, " pass")continue@@ -332,6 +333,7 @@ func generate(gen *Plugin, file *descriptor.FileDescriptorProto) {for _, method := range svc.Method {print(b, " self.%s = connect.Client(", getMethodProperty(method))print(b, " pool=pool,")+ print(b, " async_pool=async_pool,")print(b, ` url=f"{base_url}/{%s}/%s",`, getServiceName(svc), method.GetName())print(b, ` response_type=%s,`, getResponseType(gen, method))print(b, ` compressor=compressor,`)@@ -345,9 +347,15 @@ func generate(gen *Plugin, file *descriptor.FileDescriptorProto) {if method.GetServerStreaming() {print(b, " def %s(self, req: %s , **opts) -> Generator[%s, Any, None]:", toSnakeCase(method.GetName()), getRequestType(gen, method), getResponseType(gen, method))print(b, " return self.%s.call_%s(req, **opts)", getMethodProperty(method), getMethodType(method))+ print(b, "")+ print(b, " async def a%s(self, req: %s , **opts) -> AsyncGenerator[%s, Any]:", toSnakeCase(method.GetName()), getRequestType(gen, method), getResponseType(gen, method))+ print(b, " return self.%s.acall_%s(req, **opts)", getMethodProperty(method), getMethodType(method))} else {print(b, " def %s(self, req: %s, **opts) -> %s:", toSnakeCase(method.GetName()), getRequestType(gen, method), getResponseType(gen, method))print(b, " return self.%s.call_%s(req, **opts)", getMethodProperty(method), getMethodType(method))+ print(b, "")+ print(b, " async def a%s(self, req: %s, **opts) -> Coroutine[Any, Any, %s]:", toSnakeCase(method.GetName()), getRequestType(gen, method), getResponseType(gen, method))+ print(b, " return self.%s.acall_%s(req, **opts)", getMethodProperty(method), getMethodType(method))}}}diff --git a/packages/js-sdk/src/envd/schema.gen.ts b/packages/js-sdk/src/envd/schema.gen.tsindex eb88d3bc7..cc5d9e207 100644--- a/packages/js-sdk/src/envd/schema.gen.ts+++ b/packages/js-sdk/src/envd/schema.gen.ts@@ -3,14 +3,30 @@* Do not make direct changes to the file.*/-export interface paths {+ "/health": {+ get: {+ responses: {+ /** The service is healthy */+ 204: never;+ };+ };+ };+ "/sync": {+ post: {+ responses: {+ /** The time and metadata is synced with the host */+ 204: never;+ };+ };+ };"/files": {- /** Download a file */get: {parameters: {query: {+ /** Path to the file, URL encoded. Can be relative to user's home directory. */path?: components["parameters"]["FilePath"];+ /** User used for setting the owner, or resolving relative paths. */username: components["parameters"]["User"];};};@@ -22,15 +38,15 @@ export interface paths {500: components["responses"]["InternalServerError"];};};- /** Upload a file and ensure the parent directories exist. If the file exists, it will be overwritten. */post: {parameters: {query: {+ /** Path to the file, URL encoded. Can be relative to user's home directory. */path?: components["parameters"]["FilePath"];+ /** User used for setting the owner, or resolving relative paths. */username: components["parameters"]["User"];};};- requestBody: components["requestBodies"]["File"];responses: {204: components["responses"]["UploadSuccess"];400: components["responses"]["DirectoryPathError"];@@ -38,88 +54,63 @@ export interface paths {500: components["responses"]["InternalServerError"];507: components["responses"]["NotEnoughDiskSpace"];};- };- };- "/health": {- /** Check the health of the service */- get: {- responses: {- /** @description The service is healthy */- 204: {- content: never;- };- };- };- };- "/sync": {- /** Ensure the time and metadata is synced with the host */- post: {- responses: {- /** @description The time and metadata is synced with the host */- 204: {- content: never;- };- };+ requestBody: components["requestBodies"]["File"];};};}-export type webhooks = Record<string, never>;-export interface components {schemas: {Error: {- /** @description Error code */- code: number;/** @description Error message */message: string;+ /** @description Error code */+ code: number;};};responses: {- /** @description Directory path error */- DirectoryPathError: {- content: {- "application/json": components["schemas"]["Error"];- };- };- /** @description Entire file downloaded successfully. */+ /** The file was uploaded successfully. */+ UploadSuccess: unknown;+ /** Entire file downloaded successfully. */DownloadSuccess: {content: {"application/octet-stream": string;};};- /** @description File not found */- FileNotFound: {+ /** Directory path error */+ DirectoryPathError: {content: {"application/json": components["schemas"]["Error"];};};- /** @description Internal server error */+ /** Internal server error */InternalServerError: {content: {"application/json": components["schemas"]["Error"];};};- /** @description Invalid user */+ /** File not found */+ FileNotFound: {+ content: {+ "application/json": components["schemas"]["Error"];+ };+ };+ /** Invalid user */InvalidUser: {content: {"application/json": components["schemas"]["Error"];};};- /** @description Not enough disk space */+ /** Not enough disk space */NotEnoughDiskSpace: {content: {"application/json": components["schemas"]["Error"];};};- /** @description The file was uploaded successfully. */- UploadSuccess: {- content: never;- };};parameters: {/** @description Path to the file, URL encoded. Can be relative to user's home directory. */- FilePath?: string;+ FilePath: string;/** @description User used for setting the owner, or resolving relative paths. */User: string;};@@ -133,12 +124,8 @@ export interface components {};};};- headers: never;- pathItems: never;}-export type $defs = Record<string, never>;--export type external = Record<string, never>;+export interface operations {}-export type operations = Record<string, never>;+export interface external {}diff --git a/packages/python-sdk/connect/client.py b/packages/python-sdk/connect/client.pyindex 5fdfddd62..3453d80c0 100644--- a/packages/python-sdk/connect/client.py+++ b/packages/python-sdk/connect/client.py@@ -1,11 +1,10 @@import gzipimport jsonimport struct-from e2b.exceptions import SandboxException, format_sandbox_timeout_exception-import httpcore+from httpcore import ConnectionPool, AsyncConnectionPool, Responsefrom enum import Flag, Enum-from typing import Optional+from typing import Optional, Dictfrom google.protobuf import json_format@@ -56,7 +55,7 @@ def decode_envelope_header(header):return EnvelopeFlags(flags), data_len-def error_for_response(http_resp: httpcore.Response):+def error_for_response(http_resp: Response):try:error = json.loads(http_resp.content)except (json.decoder.JSONDecodeError, KeyError):@@ -128,25 +127,32 @@ class Client:def __init__(self,*,- pool: httpcore.ConnectionPool,- url,+ pool: Optional[ConnectionPool] = None,+ async_pool: Optional[AsyncConnectionPool] = None,+ url: str,response_type,compressor=None,- json=False,- headers=None,- timeout=None,+ json: Optional[bool] = False,+ headers: Optional[Dict[str, str]] = None,):if headers is None:headers = {}self.pool = pool+ self.async_pool = async_poolself.url = urlself._codec = JSONCodec if json else ProtobufCodecself._response_type = response_typeself._compressor = compressorself._headers = {**{"user-agent": "connect-python"}, **headers}- def call_unary(self, req, request_timeout=None, headers={}, **opts):+ def _prepare_unary_request(+ self,+ req,+ request_timeout=None,+ headers={},+ **opts,+ ):data = self._codec.encode(req)if self._compressor is not None:@@ -165,12 +171,12 @@ class Client:})- http_resp = self.pool.request(- "POST",- self.url,- content=data,- extensions=extensions,- headers={+ return {+ "method": "POST",+ "url": self.url,+ "content": data,+ "extensions": extensions,+ "headers": {**self._headers,**headers,**opts.get("headers", {}),@@ -180,8 +186,12 @@ class Client:),"content-type": f"application/{self._codec.content_type}",},- )+ }+ def _process_unary_response(+ self,+ http_resp: Response,+ ):if http_resp.status != 200:raise error_for_response(http_resp)@@ -195,12 +205,48 @@ class Client:msg_type=self._response_type,)+ async def acall_unary(+ self,+ req,+ request_timeout=None,+ headers={},+ **opts,+ ):+ if self.async_pool is None:+ raise ValueError("async_pool is required")++ res = await self.async_pool.request(+ **self._prepare_unary_request(+ req,+ request_timeout,+ headers,+ **opts,+ )+ )++ return self._process_unary_response(res)++ def call_unary(self, req, request_timeout=None, headers={}, **opts):+ if self.pool is None:+ raise ValueError("pool is required")++ res = self.pool.request(+ **self._prepare_unary_request(+ req,+ request_timeout,+ headers,+ **opts,+ )+ )++ return self._process_unary_response(res)+def _create_stream_timeout(self, timeout: Optional[int]):if timeout:return {"connect-timeout-ms": str(timeout * 1000)}return {}- def call_server_stream(+ def _prepare_server_stream_request(self,req,request_timeout=None,@@ -223,15 +269,15 @@ class Client:stream_timeout = self._create_stream_timeout(timeout)- with self.pool.stream(- "POST",- self.url,- content=encode_envelope(+ return {+ "method": "POST",+ "url": self.url,+ "content": encode_envelope(flags=flags,data=data,),- extensions=extensions,- headers={+ "extensions": extensions,+ "headers": {**self._headers,**headers,**opts.get("headers", {}),@@ -242,6 +288,96 @@ class Client:),"content-type": f"application/connect+{self._codec.content_type}",},+ }++ async def acall_server_stream(+ self,+ req,+ request_timeout=None,+ timeout=None,+ headers={},+ **opts,+ ):+ if self.async_pool is None:+ raise ValueError("async_pool is required")++ async with self.async_pool.stream(+ **self._prepare_server_stream_request(+ req,+ request_timeout,+ timeout,+ headers,+ **opts,+ )+ ) as http_resp:+ if http_resp.status != 200:+ raise error_for_response(http_resp)++ buffer = b""+ end_stream = False+ needs_header = True+ flags, data_len = 0, 0++ async for chunk in http_resp.aiter_stream():+ buffer += chunk++ if needs_header:+ header = buffer[:envelope_header_length]+ buffer = buffer[envelope_header_length:]+ flags, data_len = decode_envelope_header(header)+ needs_header = False+ end_stream = EnvelopeFlags.end_stream in flags++ if len(buffer) >= data_len:+ buffer = buffer[:data_len]++ if end_stream:+ data = (+ buffer+ if self._compressor is None+ else self._compressor.decompress(buffer)+ )++ data = json.loads(data)++ if "error" in data:+ raise make_error(data["error"])++ # TODO: Figure out what else might be possible+ return++ if self._compressor is not None:+ buffer = self._compressor.decompress(buffer)++ # TODO: handle server message compression+ # if EnvelopeFlags.compression in flags:+ # TODO: should the client potentially use a different codec+ # based on response header? Or can we assume they're always+ # the same and an error otherwise.+ yield self._codec.decode(buffer, msg_type=self._response_type)++ buffer = buffer[data_len:]+ needs_header = True++ def call_server_stream(+ self,+ req,+ request_timeout=None,+ timeout=None,+ headers={},+ **opts,+ ):+ if self.pool is None:+ raise ValueError("pool is required")++ with self.pool.stream(+ **self._prepare_server_stream_request(+ req,+ request_timeout,+ timeout,+ headers,+ **opts,+ )) as http_resp:if http_resp.status != 200:raise error_for_response(http_resp)@@ -295,5 +431,8 @@ class Client:def call_client_stream(self, req, **opts):raise NotImplementedError("client stream not supported")+ def acall_client_stream(self, req, **opts):+ raise NotImplementedError("client stream not supported")+def call_bidi_stream(self, req, **opts):raise NotImplementedError("bidi stream not supported")diff --git a/packages/python-sdk/e2b/envd/filesystem/filesystem_connect.py b/packages/python-sdk/e2b/envd/filesystem/filesystem_connect.pyindex 652c5206d..4ae947e7b 100644--- a/packages/python-sdk/e2b/envd/filesystem/filesystem_connect.py+++ b/packages/python-sdk/e2b/envd/filesystem/filesystem_connect.py@@ -1,5 +1,6 @@# Code generated by protoc-gen-connect-python 0.1.0.dev2, DO NOT EDIT.-from typing import Any, Generator+from typing import Any, Generator, Coroutine, AsyncGenerator+from httpcore import ConnectionPool, AsyncConnectionPoolimport connect@@ -9,82 +10,94 @@ FilesystemName = "filesystem.Filesystem"class FilesystemClient:- def __init__(self, base_url, *, pool=None, compressor=None, json=False, **opts):+ def __init__(self, base_url: str, *, pool: ConnectionPool, async_pool: AsyncConnectionPool, compressor=None, json=False, **opts):self._stat = connect.Client(pool=pool,+ async_pool=async_pool,url=f"{base_url}/{FilesystemName}/Stat",response_type=filesystem_dot_filesystem__pb2.StatResponse,compressor=compressor,json=json,- **opts,+ **opts)self._make_dir = connect.Client(pool=pool,+ async_pool=async_pool,url=f"{base_url}/{FilesystemName}/MakeDir",response_type=filesystem_dot_filesystem__pb2.MakeDirResponse,compressor=compressor,json=json,- **opts,+ **opts)self._move = connect.Client(pool=pool,+ async_pool=async_pool,url=f"{base_url}/{FilesystemName}/Move",response_type=filesystem_dot_filesystem__pb2.MoveResponse,compressor=compressor,json=json,- **opts,+ **opts)self._list_dir = connect.Client(pool=pool,+ async_pool=async_pool,url=f"{base_url}/{FilesystemName}/ListDir",response_type=filesystem_dot_filesystem__pb2.ListDirResponse,compressor=compressor,json=json,- **opts,+ **opts)self._watch_dir = connect.Client(pool=pool,+ async_pool=async_pool,url=f"{base_url}/{FilesystemName}/WatchDir",response_type=filesystem_dot_filesystem__pb2.WatchDirResponse,compressor=compressor,json=json,- **opts,+ **opts)self._remove = connect.Client(pool=pool,+ async_pool=async_pool,url=f"{base_url}/{FilesystemName}/Remove",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:+ async def astat(self, req: filesystem_dot_filesystem__pb2.StatRequest, **opts) -> Coroutine[Any, Any, filesystem_dot_filesystem__pb2.StatResponse]:+ return self._stat.acall_unary(req, **opts)++ 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:+ async def amake_dir(self, req: filesystem_dot_filesystem__pb2.MakeDirRequest, **opts) -> Coroutine[Any, Any, filesystem_dot_filesystem__pb2.MakeDirResponse]:+ return self._make_dir.acall_unary(req, **opts)++ 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:+ async def amove(self, req: filesystem_dot_filesystem__pb2.MoveRequest, **opts) -> Coroutine[Any, Any, filesystem_dot_filesystem__pb2.MoveResponse]:+ return self._move.acall_unary(req, **opts)++ 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]:+ async def alist_dir(self, req: filesystem_dot_filesystem__pb2.ListDirRequest, **opts) -> Coroutine[Any, Any, filesystem_dot_filesystem__pb2.ListDirResponse]:+ return self._list_dir.acall_unary(req, **opts)++ 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:+ async def awatch_dir(self, req: filesystem_dot_filesystem__pb2.WatchDirRequest , **opts) -> AsyncGenerator[filesystem_dot_filesystem__pb2.WatchDirResponse, Any]:+ return self._watch_dir.acall_server_stream(req, **opts)++ def remove(self, req: filesystem_dot_filesystem__pb2.RemoveRequest, **opts) -> filesystem_dot_filesystem__pb2.RemoveResponse:return self._remove.call_unary(req, **opts)++ async def aremove(self, req: filesystem_dot_filesystem__pb2.RemoveRequest, **opts) -> Coroutine[Any, Any, filesystem_dot_filesystem__pb2.RemoveResponse]:+ return self._remove.acall_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 dd562c02a..bfd24c5f2 100644--- a/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.py+++ b/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.py@@ -7,62 +7,57 @@ 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\x1b\x66ilesystem/filesystem.proto\x12\nfilesystem"G\n\x0bMoveRequest\x12\x16\n\x06source\x18\x01 \x01(\tR\x06source\x12 \n\x0b\x64\x65stination\x18\x02 \x01(\tR\x0b\x64\x65stination"\x0e\n\x0cMoveResponse"$\n\x0eMakeDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path"\x11\n\x0fMakeDirResponse"#\n\rRemoveRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path"\x10\n\x0eRemoveResponse"!\n\x0bStatRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path";\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"$\n\x0eListDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path"B\n\x0fListDirResponse\x12/\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x15.filesystem.EntryInfoR\x07\x65ntries"%\n\x0fWatchDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path"\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\"G\n\x0bMoveRequest\x12\x16\n\x06source\x18\x01 \x01(\tR\x06source\x12 \n\x0b\x64\x65stination\x18\x02 \x01(\tR\x0b\x64\x65stination\"\x0e\n\x0cMoveResponse\"$\n\x0eMakeDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\"\x11\n\x0fMakeDirResponse\"#\n\rRemoveRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\"\x10\n\x0eRemoveResponse\"!\n\x0bStatRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\";\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\"$\n\x0eListDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\"B\n\x0fListDirResponse\x12/\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x15.filesystem.EntryInfoR\x07\x65ntries\"%\n\x0fWatchDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\"\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 = 916- _globals["_FILETYPE"]._serialized_end = 998- _globals["_EVENTTYPE"]._serialized_start = 1001- _globals["_EVENTTYPE"]._serialized_end = 1153- _globals["_MOVEREQUEST"]._serialized_start = 43- _globals["_MOVEREQUEST"]._serialized_end = 114- _globals["_MOVERESPONSE"]._serialized_start = 116- _globals["_MOVERESPONSE"]._serialized_end = 130- _globals["_MAKEDIRREQUEST"]._serialized_start = 132- _globals["_MAKEDIRREQUEST"]._serialized_end = 168- _globals["_MAKEDIRRESPONSE"]._serialized_start = 170- _globals["_MAKEDIRRESPONSE"]._serialized_end = 187- _globals["_REMOVEREQUEST"]._serialized_start = 189- _globals["_REMOVEREQUEST"]._serialized_end = 224- _globals["_REMOVERESPONSE"]._serialized_start = 226- _globals["_REMOVERESPONSE"]._serialized_end = 242- _globals["_STATREQUEST"]._serialized_start = 244- _globals["_STATREQUEST"]._serialized_end = 277- _globals["_STATRESPONSE"]._serialized_start = 279- _globals["_STATRESPONSE"]._serialized_end = 338- _globals["_ENTRYINFO"]._serialized_start = 340- _globals["_ENTRYINFO"]._serialized_end = 413- _globals["_LISTDIRREQUEST"]._serialized_start = 415- _globals["_LISTDIRREQUEST"]._serialized_end = 451- _globals["_LISTDIRRESPONSE"]._serialized_start = 453- _globals["_LISTDIRRESPONSE"]._serialized_end = 519- _globals["_WATCHDIRREQUEST"]._serialized_start = 521- _globals["_WATCHDIRREQUEST"]._serialized_end = 558- _globals["_WATCHDIRRESPONSE"]._serialized_start = 561- _globals["_WATCHDIRRESPONSE"]._serialized_end = 914- _globals["_WATCHDIRRESPONSE_STARTEVENT"]._serialized_start = 798- _globals["_WATCHDIRRESPONSE_STARTEVENT"]._serialized_end = 810- _globals["_WATCHDIRRESPONSE_FILESYSTEMEVENT"]._serialized_start = 812- _globals["_WATCHDIRRESPONSE_FILESYSTEMEVENT"]._serialized_end = 892- _globals["_WATCHDIRRESPONSE_KEEPALIVE"]._serialized_start = 894- _globals["_WATCHDIRRESPONSE_KEEPALIVE"]._serialized_end = 905- _globals["_FILESYSTEM"]._serialized_start = 1156- _globals["_FILESYSTEM"]._serialized_end = 1560+ _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=916+ _globals['_FILETYPE']._serialized_end=998+ _globals['_EVENTTYPE']._serialized_start=1001+ _globals['_EVENTTYPE']._serialized_end=1153+ _globals['_MOVEREQUEST']._serialized_start=43+ _globals['_MOVEREQUEST']._serialized_end=114+ _globals['_MOVERESPONSE']._serialized_start=116+ _globals['_MOVERESPONSE']._serialized_end=130+ _globals['_MAKEDIRREQUEST']._serialized_start=132+ _globals['_MAKEDIRREQUEST']._serialized_end=168+ _globals['_MAKEDIRRESPONSE']._serialized_start=170+ _globals['_MAKEDIRRESPONSE']._serialized_end=187+ _globals['_REMOVEREQUEST']._serialized_start=189+ _globals['_REMOVEREQUEST']._serialized_end=224+ _globals['_REMOVERESPONSE']._serialized_start=226+ _globals['_REMOVERESPONSE']._serialized_end=242+ _globals['_STATREQUEST']._serialized_start=244+ _globals['_STATREQUEST']._serialized_end=277+ _globals['_STATRESPONSE']._serialized_start=279+ _globals['_STATRESPONSE']._serialized_end=338+ _globals['_ENTRYINFO']._serialized_start=340+ _globals['_ENTRYINFO']._serialized_end=413+ _globals['_LISTDIRREQUEST']._serialized_start=415+ _globals['_LISTDIRREQUEST']._serialized_end=451+ _globals['_LISTDIRRESPONSE']._serialized_start=453+ _globals['_LISTDIRRESPONSE']._serialized_end=519+ _globals['_WATCHDIRREQUEST']._serialized_start=521+ _globals['_WATCHDIRREQUEST']._serialized_end=558+ _globals['_WATCHDIRRESPONSE']._serialized_start=561+ _globals['_WATCHDIRRESPONSE']._serialized_end=914+ _globals['_WATCHDIRRESPONSE_STARTEVENT']._serialized_start=798+ _globals['_WATCHDIRRESPONSE_STARTEVENT']._serialized_end=810+ _globals['_WATCHDIRRESPONSE_FILESYSTEMEVENT']._serialized_start=812+ _globals['_WATCHDIRRESPONSE_FILESYSTEMEVENT']._serialized_end=892+ _globals['_WATCHDIRRESPONSE_KEEPALIVE']._serialized_start=894+ _globals['_WATCHDIRRESPONSE_KEEPALIVE']._serialized_end=905+ _globals['_FILESYSTEM']._serialized_start=1156+ _globals['_FILESYSTEM']._serialized_end=1560# @@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 ca59c22a2..5972b4714 100644--- a/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.pyi+++ b/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.pyi@@ -2,13 +2,7 @@ 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 _UnionDESCRIPTOR: _descriptor.FileDescriptor@@ -26,7 +20,6 @@ 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@@ -43,9 +36,7 @@ class MoveRequest(_message.Message):DESTINATION_FIELD_NUMBER: _ClassVar[int]source: strdestination: str- def __init__(- self, source: _Optional[str] = ..., destination: _Optional[str] = ...- ) -> None: ...+ def __init__(self, source: _Optional[str] = ..., destination: _Optional[str] = ...) -> None: ...class MoveResponse(_message.Message):__slots__ = ()@@ -89,9 +80,7 @@ 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",)@@ -103,9 +92,7 @@ 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",)@@ -115,23 +102,16 @@ class WatchDirRequest(_message.Message):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: ...@@ -141,9 +121,4 @@ 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/process/process_connect.py b/packages/python-sdk/e2b/envd/process/process_connect.pyindex d9ef4ba1a..caccd8fc1 100644--- a/packages/python-sdk/e2b/envd/process/process_connect.py+++ b/packages/python-sdk/e2b/envd/process/process_connect.py@@ -1,5 +1,6 @@# Code generated by protoc-gen-connect-python 0.1.0.dev2, DO NOT EDIT.-from typing import Any, Generator+from typing import Any, Generator, Coroutine, AsyncGenerator+from httpcore import ConnectionPool, AsyncConnectionPoolimport connect@@ -9,95 +10,109 @@ ProcessName = "process.Process"class ProcessClient:- def __init__(self, base_url, *, pool=None, compressor=None, json=False, **opts):+ def __init__(self, base_url: str, *, pool: ConnectionPool, async_pool: AsyncConnectionPool, compressor=None, json=False, **opts):self._list = connect.Client(pool=pool,+ async_pool=async_pool,url=f"{base_url}/{ProcessName}/List",response_type=process_dot_process__pb2.ListResponse,compressor=compressor,json=json,- **opts,+ **opts)self._connect = connect.Client(pool=pool,+ async_pool=async_pool,url=f"{base_url}/{ProcessName}/Connect",response_type=process_dot_process__pb2.ConnectResponse,compressor=compressor,json=json,- **opts,+ **opts)self._start = connect.Client(pool=pool,+ async_pool=async_pool,url=f"{base_url}/{ProcessName}/Start",response_type=process_dot_process__pb2.StartResponse,compressor=compressor,json=json,- **opts,+ **opts)self._update = connect.Client(pool=pool,+ async_pool=async_pool,url=f"{base_url}/{ProcessName}/Update",response_type=process_dot_process__pb2.UpdateResponse,compressor=compressor,json=json,- **opts,+ **opts)self._stream_input = connect.Client(pool=pool,+ async_pool=async_pool,url=f"{base_url}/{ProcessName}/StreamInput",response_type=process_dot_process__pb2.StreamInputResponse,compressor=compressor,json=json,- **opts,+ **opts)self._send_input = connect.Client(pool=pool,+ async_pool=async_pool,url=f"{base_url}/{ProcessName}/SendInput",response_type=process_dot_process__pb2.SendInputResponse,compressor=compressor,json=json,- **opts,+ **opts)self._send_signal = connect.Client(pool=pool,+ async_pool=async_pool,url=f"{base_url}/{ProcessName}/SendSignal",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]:+ async def alist(self, req: process_dot_process__pb2.ListRequest, **opts) -> Coroutine[Any, Any, process_dot_process__pb2.ListResponse]:+ return self._list.acall_unary(req, **opts)++ 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]:+ async def aconnect(self, req: process_dot_process__pb2.ConnectRequest , **opts) -> AsyncGenerator[process_dot_process__pb2.ConnectResponse, Any]:+ return self._connect.acall_server_stream(req, **opts)++ 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:+ async def astart(self, req: process_dot_process__pb2.StartRequest , **opts) -> AsyncGenerator[process_dot_process__pb2.StartResponse, Any]:+ return self._start.acall_server_stream(req, **opts)++ 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:+ async def aupdate(self, req: process_dot_process__pb2.UpdateRequest, **opts) -> Coroutine[Any, Any, process_dot_process__pb2.UpdateResponse]:+ return self._update.acall_unary(req, **opts)++ 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:+ async def astream_input(self, req: process_dot_process__pb2.StreamInputRequest, **opts) -> Coroutine[Any, Any, process_dot_process__pb2.StreamInputResponse]:+ return self._stream_input.acall_client_stream(req, **opts)++ 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:+ async def asend_input(self, req: process_dot_process__pb2.SendInputRequest, **opts) -> Coroutine[Any, Any, process_dot_process__pb2.SendInputResponse]:+ return self._send_input.acall_unary(req, **opts)++ def send_signal(self, req: process_dot_process__pb2.SendSignalRequest, **opts) -> process_dot_process__pb2.SendSignalResponse:return self._send_signal.call_unary(req, **opts)++ async def asend_signal(self, req: process_dot_process__pb2.SendSignalRequest, **opts) -> Coroutine[Any, Any, process_dot_process__pb2.SendSignalResponse]:+ return self._send_signal.acall_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 22f2cdd34..4b2ed2219 100644--- a/packages/python-sdk/e2b/envd/process/process_pb2.py+++ b/packages/python-sdk/e2b/envd/process/process_pb2.py@@ -7,86 +7,83 @@ 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\x15process/process.proto\x12\x07process"\\\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"\x8c\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\x42\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\"\\\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\"\x8c\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\x42\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 = 2316- _globals["_SIGNAL"]._serialized_end = 2388- _globals["_PTY"]._serialized_start = 34- _globals["_PTY"]._serialized_end = 126- _globals["_PTY_SIZE"]._serialized_start = 80- _globals["_PTY_SIZE"]._serialized_end = 126- _globals["_PROCESSCONFIG"]._serialized_start = 129- _globals["_PROCESSCONFIG"]._serialized_end = 324- _globals["_PROCESSCONFIG_ENVSENTRY"]._serialized_start = 261- _globals["_PROCESSCONFIG_ENVSENTRY"]._serialized_end = 316- _globals["_LISTREQUEST"]._serialized_start = 326- _globals["_LISTREQUEST"]._serialized_end = 339- _globals["_PROCESSINFO"]._serialized_start = 341- _globals["_PROCESSINFO"]._serialized_end = 451- _globals["_LISTRESPONSE"]._serialized_start = 453- _globals["_LISTRESPONSE"]._serialized_end = 519- _globals["_STARTREQUEST"]._serialized_start = 522- _globals["_STARTREQUEST"]._serialized_end = 662- _globals["_UPDATEREQUEST"]._serialized_start = 664- _globals["_UPDATEREQUEST"]._serialized_end = 776- _globals["_UPDATERESPONSE"]._serialized_start = 778- _globals["_UPDATERESPONSE"]._serialized_end = 794- _globals["_PROCESSEVENT"]._serialized_start = 797- _globals["_PROCESSEVENT"]._serialized_end = 1316- _globals["_PROCESSEVENT_STARTEVENT"]._serialized_start = 1043- _globals["_PROCESSEVENT_STARTEVENT"]._serialized_end = 1073- _globals["_PROCESSEVENT_DATAEVENT"]._serialized_start = 1075- _globals["_PROCESSEVENT_DATAEVENT"]._serialized_end = 1168- _globals["_PROCESSEVENT_ENDEVENT"]._serialized_start = 1170- _globals["_PROCESSEVENT_ENDEVENT"]._serialized_end = 1294- _globals["_PROCESSEVENT_KEEPALIVE"]._serialized_start = 1296- _globals["_PROCESSEVENT_KEEPALIVE"]._serialized_end = 1307- _globals["_STARTRESPONSE"]._serialized_start = 1318- _globals["_STARTRESPONSE"]._serialized_end = 1378- _globals["_CONNECTRESPONSE"]._serialized_start = 1380- _globals["_CONNECTRESPONSE"]._serialized_end = 1442- _globals["_SENDINPUTREQUEST"]._serialized_start = 1444- _globals["_SENDINPUTREQUEST"]._serialized_end = 1559- _globals["_SENDINPUTRESPONSE"]._serialized_start = 1561- _globals["_SENDINPUTRESPONSE"]._serialized_end = 1580- _globals["_PROCESSINPUT"]._serialized_start = 1582- _globals["_PROCESSINPUT"]._serialized_end = 1649- _globals["_STREAMINPUTREQUEST"]._serialized_start = 1652- _globals["_STREAMINPUTREQUEST"]._serialized_end = 2014- _globals["_STREAMINPUTREQUEST_STARTEVENT"]._serialized_start = 1870- _globals["_STREAMINPUTREQUEST_STARTEVENT"]._serialized_end = 1934- _globals["_STREAMINPUTREQUEST_DATAEVENT"]._serialized_start = 1936- _globals["_STREAMINPUTREQUEST_DATAEVENT"]._serialized_end = 1992- _globals["_STREAMINPUTREQUEST_KEEPALIVE"]._serialized_start = 1296- _globals["_STREAMINPUTREQUEST_KEEPALIVE"]._serialized_end = 1307- _globals["_STREAMINPUTRESPONSE"]._serialized_start = 2016- _globals["_STREAMINPUTRESPONSE"]._serialized_end = 2037- _globals["_SENDSIGNALREQUEST"]._serialized_start = 2039- _globals["_SENDSIGNALREQUEST"]._serialized_end = 2151- _globals["_SENDSIGNALRESPONSE"]._serialized_start = 2153- _globals["_SENDSIGNALRESPONSE"]._serialized_end = 2173- _globals["_CONNECTREQUEST"]._serialized_start = 2175- _globals["_CONNECTREQUEST"]._serialized_end = 2243- _globals["_PROCESSSELECTOR"]._serialized_start = 2245- _globals["_PROCESSSELECTOR"]._serialized_end = 2314- _globals["_PROCESS"]._serialized_start = 2391- _globals["_PROCESS"]._serialized_end = 2849+ _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=2316+ _globals['_SIGNAL']._serialized_end=2388+ _globals['_PTY']._serialized_start=34+ _globals['_PTY']._serialized_end=126+ _globals['_PTY_SIZE']._serialized_start=80+ _globals['_PTY_SIZE']._serialized_end=126+ _globals['_PROCESSCONFIG']._serialized_start=129+ _globals['_PROCESSCONFIG']._serialized_end=324+ _globals['_PROCESSCONFIG_ENVSENTRY']._serialized_start=261+ _globals['_PROCESSCONFIG_ENVSENTRY']._serialized_end=316+ _globals['_LISTREQUEST']._serialized_start=326+ _globals['_LISTREQUEST']._serialized_end=339+ _globals['_PROCESSINFO']._serialized_start=341+ _globals['_PROCESSINFO']._serialized_end=451+ _globals['_LISTRESPONSE']._serialized_start=453+ _globals['_LISTRESPONSE']._serialized_end=519+ _globals['_STARTREQUEST']._serialized_start=522+ _globals['_STARTREQUEST']._serialized_end=662+ _globals['_UPDATEREQUEST']._serialized_start=664+ _globals['_UPDATEREQUEST']._serialized_end=776+ _globals['_UPDATERESPONSE']._serialized_start=778+ _globals['_UPDATERESPONSE']._serialized_end=794+ _globals['_PROCESSEVENT']._serialized_start=797+ _globals['_PROCESSEVENT']._serialized_end=1316+ _globals['_PROCESSEVENT_STARTEVENT']._serialized_start=1043+ _globals['_PROCESSEVENT_STARTEVENT']._serialized_end=1073+ _globals['_PROCESSEVENT_DATAEVENT']._serialized_start=1075+ _globals['_PROCESSEVENT_DATAEVENT']._serialized_end=1168+ _globals['_PROCESSEVENT_ENDEVENT']._serialized_start=1170+ _globals['_PROCESSEVENT_ENDEVENT']._serialized_end=1294+ _globals['_PROCESSEVENT_KEEPALIVE']._serialized_start=1296+ _globals['_PROCESSEVENT_KEEPALIVE']._serialized_end=1307+ _globals['_STARTRESPONSE']._serialized_start=1318+ _globals['_STARTRESPONSE']._serialized_end=1378+ _globals['_CONNECTRESPONSE']._serialized_start=1380+ _globals['_CONNECTRESPONSE']._serialized_end=1442+ _globals['_SENDINPUTREQUEST']._serialized_start=1444+ _globals['_SENDINPUTREQUEST']._serialized_end=1559+ _globals['_SENDINPUTRESPONSE']._serialized_start=1561+ _globals['_SENDINPUTRESPONSE']._serialized_end=1580+ _globals['_PROCESSINPUT']._serialized_start=1582+ _globals['_PROCESSINPUT']._serialized_end=1649+ _globals['_STREAMINPUTREQUEST']._serialized_start=1652+ _globals['_STREAMINPUTREQUEST']._serialized_end=2014+ _globals['_STREAMINPUTREQUEST_STARTEVENT']._serialized_start=1870+ _globals['_STREAMINPUTREQUEST_STARTEVENT']._serialized_end=1934+ _globals['_STREAMINPUTREQUEST_DATAEVENT']._serialized_start=1936+ _globals['_STREAMINPUTREQUEST_DATAEVENT']._serialized_end=1992+ _globals['_STREAMINPUTREQUEST_KEEPALIVE']._serialized_start=1296+ _globals['_STREAMINPUTREQUEST_KEEPALIVE']._serialized_end=1307+ _globals['_STREAMINPUTRESPONSE']._serialized_start=2016+ _globals['_STREAMINPUTRESPONSE']._serialized_end=2037+ _globals['_SENDSIGNALREQUEST']._serialized_start=2039+ _globals['_SENDSIGNALREQUEST']._serialized_end=2151+ _globals['_SENDSIGNALRESPONSE']._serialized_start=2153+ _globals['_SENDSIGNALRESPONSE']._serialized_end=2173+ _globals['_CONNECTREQUEST']._serialized_start=2175+ _globals['_CONNECTREQUEST']._serialized_end=2243+ _globals['_PROCESSSELECTOR']._serialized_start=2245+ _globals['_PROCESSSELECTOR']._serialized_end=2314+ _globals['_PROCESS']._serialized_start=2391+ _globals['_PROCESS']._serialized_end=2849# @@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 46751e0af..5934e5b49 100644--- a/packages/python-sdk/e2b/envd/process/process_pb2.pyi+++ b/packages/python-sdk/e2b/envd/process/process_pb2.pyi@@ -2,13 +2,7 @@ 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 _UnionDESCRIPTOR: _descriptor.FileDescriptor@@ -17,39 +11,32 @@ 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]@@ -58,13 +45,7 @@ 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__ = ()@@ -78,20 +59,13 @@ 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")@@ -101,12 +75,7 @@ class StartRequest(_message.Message):process: ProcessConfigpty: PTYtag: str- def __init__(- self,- process: _Optional[_Union[ProcessConfig, _Mapping]] = ...,- pty: _Optional[_Union[PTY, _Mapping]] = ...,- tag: _Optional[str] = ...,- ) -> None: ...+ def __init__(self, process: _Optional[_Union[ProcessConfig, _Mapping]] = ..., pty: _Optional[_Union[PTY, _Mapping]] = ..., tag: _Optional[str] = ...) -> None: ...class UpdateRequest(_message.Message):__slots__ = ("process", "pty")@@ -114,11 +83,7 @@ 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__ = ()@@ -126,13 +91,11 @@ 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]@@ -141,13 +104,7 @@ 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]@@ -158,14 +115,7 @@ 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: ...@@ -177,29 +127,19 @@ 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")@@ -207,11 +147,7 @@ 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__ = ()@@ -223,29 +159,20 @@ 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: ...@@ -255,12 +182,7 @@ 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__ = ()@@ -272,11 +194,7 @@ 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__ = ()@@ -286,9 +204,7 @@ 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")@@ -296,6 +212,4 @@ 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: ...