Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update scripts; Fix dir watch; Improve naming
Tomas Valenta229c13524a3d
diff --git a/Makefile b/Makefileindex 3aa4b20b5..bb1562fa8 100644--- a/Makefile+++ b/Makefile@@ -4,8 +4,12 @@ update-api-spec:@echo "Done"-generate:+generate: generate-api generate-envd++generate-api:cd packages/python-sdk && make generatecd packages/js-sdk && pnpm generate && pnpm generate-envd-api- cd packages/connect-python && make bin/protoc-gen-connect-python- cd spec/envd && buf generate && cd ../../packages/python-sdk && ./scripts/fix-python-pb.sh++generate-envd:+ cd packages/js-sdk && pnpm generate-envd-api+ cd spec/envd && buf generate && cd ../../packages/python-sdk && ./scripts/fix-python-pb.sh\ No newline at end of filediff --git a/packages/js-sdk/example.mts b/packages/js-sdk/example.mtsindex c1f57a633..9d40e3e16 100644--- a/packages/js-sdk/example.mts+++ b/packages/js-sdk/example.mts@@ -5,12 +5,12 @@ const sbx = await Sandbox.create('', {})-// const watcher = await sbx.files.watch('./', (e) => {-// console.log(e)-// }, {-// user: 'user',-// timeout: 2,-// })+const watcher = await sbx.files.watch('./', (e) => {+ e.path+}, {+ user: 'user',+ timeout: 2,+})// await sbx.files.write('test', 'hello world')@@ -25,5 +25,4 @@ const sbx = await Sandbox.create('', {// watcher.stop()-const res = await sbx.commands.run('ls')-console.log(res)+const res = await sbx.commands.run('ls -a', {})diff --git a/packages/js-sdk/src/envd/filesystem/filesystem_connect.ts b/packages/js-sdk/src/envd/filesystem/filesystem_connect.tsindex 1d7705772..a31f8f23b 100644--- a/packages/js-sdk/src/envd/filesystem/filesystem_connect.ts+++ b/packages/js-sdk/src/envd/filesystem/filesystem_connect.ts@@ -3,7 +3,7 @@/* eslint-disable */// @ts-nocheck-import { ListRequest, ListResponse, MakeDirRequest, MakeDirResponse, RemoveRequest, RemoveResponse, StatRequest, StatResponse, WatchRequest, WatchResponse } from "./filesystem_pb.js";+import { ListDirRequest, ListDirResponse, MakeDirRequest, MakeDirResponse, RemoveRequest, RemoveResponse, StatRequest, StatResponse, WatchDirRequest, WatchDirResponse } from "./filesystem_pb.js";import { MethodKind } from "@bufbuild/protobuf";/**@@ -31,21 +31,21 @@ export const Filesystem = {kind: MethodKind.Unary,},/**- * @generated from rpc filesystem.Filesystem.List+ * @generated from rpc filesystem.Filesystem.ListDir*/- list: {- name: "List",- I: ListRequest,- O: ListResponse,+ listDir: {+ name: "ListDir",+ I: ListDirRequest,+ O: ListDirResponse,kind: MethodKind.Unary,},/**- * @generated from rpc filesystem.Filesystem.Watch+ * @generated from rpc filesystem.Filesystem.WatchDir*/- watch: {- name: "Watch",- I: WatchRequest,- O: WatchResponse,+ watchDir: {+ name: "WatchDir",+ I: WatchDirRequest,+ O: WatchDirResponse,kind: MethodKind.ServerStreaming,},/**diff --git a/packages/js-sdk/src/envd/filesystem/filesystem_pb.ts b/packages/js-sdk/src/envd/filesystem/filesystem_pb.tsindex 5da329d33..dc66dbe40 100644--- a/packages/js-sdk/src/envd/filesystem/filesystem_pb.ts+++ b/packages/js-sdk/src/envd/filesystem/filesystem_pb.ts@@ -349,9 +349,9 @@ export class EntryInfo extends Message<EntryInfo> {}/**- * @generated from message filesystem.ListRequest+ * @generated from message filesystem.ListDirRequest*/-export class ListRequest extends Message<ListRequest> {+export class ListDirRequest extends Message<ListDirRequest> {/*** @generated from field: string path = 1;*/@@ -362,76 +362,76 @@ export class ListRequest extends Message<ListRequest> {*/user?: User;- constructor(data?: PartialMessage<ListRequest>) {+ constructor(data?: PartialMessage<ListDirRequest>) {super();proto3.util.initPartial(data, this);}static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.ListRequest";+ static readonly typeName = "filesystem.ListDirRequest";static readonly fields: FieldList = proto3.util.newFieldList(() => [{ no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },{ no: 2, name: "user", kind: "message", T: User },]);- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRequest {- return new ListRequest().fromBinary(bytes, options);+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDirRequest {+ return new ListDirRequest().fromBinary(bytes, options);}- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRequest {- return new ListRequest().fromJson(jsonValue, options);+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDirRequest {+ return new ListDirRequest().fromJson(jsonValue, options);}- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRequest {- return new ListRequest().fromJsonString(jsonString, options);+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDirRequest {+ return new ListDirRequest().fromJsonString(jsonString, options);}- static equals(a: ListRequest | PlainMessage<ListRequest> | undefined, b: ListRequest | PlainMessage<ListRequest> | undefined): boolean {- return proto3.util.equals(ListRequest, a, b);+ static equals(a: ListDirRequest | PlainMessage<ListDirRequest> | undefined, b: ListDirRequest | PlainMessage<ListDirRequest> | undefined): boolean {+ return proto3.util.equals(ListDirRequest, a, b);}}/**- * @generated from message filesystem.ListResponse+ * @generated from message filesystem.ListDirResponse*/-export class ListResponse extends Message<ListResponse> {+export class ListDirResponse extends Message<ListDirResponse> {/*** @generated from field: repeated filesystem.EntryInfo entries = 1;*/entries: EntryInfo[] = [];- constructor(data?: PartialMessage<ListResponse>) {+ constructor(data?: PartialMessage<ListDirResponse>) {super();proto3.util.initPartial(data, this);}static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.ListResponse";+ static readonly typeName = "filesystem.ListDirResponse";static readonly fields: FieldList = proto3.util.newFieldList(() => [{ no: 1, name: "entries", kind: "message", T: EntryInfo, repeated: true },]);- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListResponse {- return new ListResponse().fromBinary(bytes, options);+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListDirResponse {+ return new ListDirResponse().fromBinary(bytes, options);}- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListResponse {- return new ListResponse().fromJson(jsonValue, options);+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListDirResponse {+ return new ListDirResponse().fromJson(jsonValue, options);}- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListResponse {- return new ListResponse().fromJsonString(jsonString, options);+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListDirResponse {+ return new ListDirResponse().fromJsonString(jsonString, options);}- static equals(a: ListResponse | PlainMessage<ListResponse> | undefined, b: ListResponse | PlainMessage<ListResponse> | undefined): boolean {- return proto3.util.equals(ListResponse, a, b);+ static equals(a: ListDirResponse | PlainMessage<ListDirResponse> | undefined, b: ListDirResponse | PlainMessage<ListDirResponse> | undefined): boolean {+ return proto3.util.equals(ListDirResponse, a, b);}}/**- * @generated from message filesystem.WatchRequest+ * @generated from message filesystem.WatchDirRequest*/-export class WatchRequest extends Message<WatchRequest> {+export class WatchDirRequest extends Message<WatchDirRequest> {/*** @generated from field: string path = 1;*/@@ -442,69 +442,69 @@ export class WatchRequest extends Message<WatchRequest> {*/user?: User;- constructor(data?: PartialMessage<WatchRequest>) {+ constructor(data?: PartialMessage<WatchDirRequest>) {super();proto3.util.initPartial(data, this);}static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.WatchRequest";+ static readonly typeName = "filesystem.WatchDirRequest";static readonly fields: FieldList = proto3.util.newFieldList(() => [{ no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },{ no: 2, name: "user", kind: "message", T: User },]);- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WatchRequest {- return new WatchRequest().fromBinary(bytes, options);+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WatchDirRequest {+ return new WatchDirRequest().fromBinary(bytes, options);}- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WatchRequest {- return new WatchRequest().fromJson(jsonValue, options);+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WatchDirRequest {+ return new WatchDirRequest().fromJson(jsonValue, options);}- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WatchRequest {- return new WatchRequest().fromJsonString(jsonString, options);+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WatchDirRequest {+ return new WatchDirRequest().fromJsonString(jsonString, options);}- static equals(a: WatchRequest | PlainMessage<WatchRequest> | undefined, b: WatchRequest | PlainMessage<WatchRequest> | undefined): boolean {- return proto3.util.equals(WatchRequest, a, b);+ static equals(a: WatchDirRequest | PlainMessage<WatchDirRequest> | undefined, b: WatchDirRequest | PlainMessage<WatchDirRequest> | undefined): boolean {+ return proto3.util.equals(WatchDirRequest, a, b);}}/**- * @generated from message filesystem.WatchResponse+ * @generated from message filesystem.WatchDirResponse*/-export class WatchResponse extends Message<WatchResponse> {+export class WatchDirResponse extends Message<WatchDirResponse> {/*** @generated from field: filesystem.FilesystemEvent event = 1;*/event?: FilesystemEvent;- constructor(data?: PartialMessage<WatchResponse>) {+ constructor(data?: PartialMessage<WatchDirResponse>) {super();proto3.util.initPartial(data, this);}static readonly runtime: typeof proto3 = proto3;- static readonly typeName = "filesystem.WatchResponse";+ static readonly typeName = "filesystem.WatchDirResponse";static readonly fields: FieldList = proto3.util.newFieldList(() => [{ no: 1, name: "event", kind: "message", T: FilesystemEvent },]);- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WatchResponse {- return new WatchResponse().fromBinary(bytes, options);+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WatchDirResponse {+ return new WatchDirResponse().fromBinary(bytes, options);}- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WatchResponse {- return new WatchResponse().fromJson(jsonValue, options);+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WatchDirResponse {+ return new WatchDirResponse().fromJson(jsonValue, options);}- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WatchResponse {- return new WatchResponse().fromJsonString(jsonString, options);+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WatchDirResponse {+ return new WatchDirResponse().fromJsonString(jsonString, options);}- static equals(a: WatchResponse | PlainMessage<WatchResponse> | undefined, b: WatchResponse | PlainMessage<WatchResponse> | undefined): boolean {- return proto3.util.equals(WatchResponse, a, b);+ static equals(a: WatchDirResponse | PlainMessage<WatchDirResponse> | undefined, b: WatchDirResponse | PlainMessage<WatchDirResponse> | undefined): boolean {+ return proto3.util.equals(WatchDirResponse, a, b);}}@@ -513,9 +513,9 @@ export class WatchResponse extends Message<WatchResponse> {*/export class FilesystemEvent extends Message<FilesystemEvent> {/**- * @generated from field: string path = 1;+ * @generated from field: string name = 1;*/- path = "";+ name = "";/*** @generated from field: filesystem.EventType type = 2;@@ -530,7 +530,7 @@ export class FilesystemEvent extends Message<FilesystemEvent> {static readonly runtime: typeof proto3 = proto3;static readonly typeName = "filesystem.FilesystemEvent";static readonly fields: FieldList = proto3.util.newFieldList(() => [- { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(EventType) },]);diff --git a/packages/js-sdk/src/sandbox/filesystem/index.ts b/packages/js-sdk/src/sandbox/filesystem/index.tsindex 44ff857e7..0199a6b63 100644--- a/packages/js-sdk/src/sandbox/filesystem/index.ts+++ b/packages/js-sdk/src/sandbox/filesystem/index.ts@@ -161,7 +161,7 @@ export class Filesystem {const username = opts?.user || defaultUsernametry {- const res = await this.rpc.list({+ const res = await this.rpc.listDir({path,user: {selector: {@@ -314,7 +314,7 @@ export class Filesystem {}, requestTimeoutMs): undefined- const events = this.rpc.watch({+ const events = this.rpc.watchDir({path,user: {selector: {diff --git a/packages/js-sdk/src/sandbox/filesystem/watchHandle.ts b/packages/js-sdk/src/sandbox/filesystem/watchHandle.tsindex 89306590d..5b677afc2 100644--- a/packages/js-sdk/src/sandbox/filesystem/watchHandle.ts+++ b/packages/js-sdk/src/sandbox/filesystem/watchHandle.ts@@ -5,7 +5,7 @@ import { FilesystemError, InvalidUserError, NotFoundError } from '.'import {FilesystemEvent as FsFilesystemEvent,EntryInfo as FsEntryInfo,- WatchResponse,+ WatchDirResponse,} from '../../envd/filesystem/filesystem_pb'export type FilesystemEvent = PlainMessage<FsFilesystemEvent>@@ -16,7 +16,7 @@ export class WatchHandle {constructor(private readonly handleStop: () => void,- private readonly events: AsyncIterable<WatchResponse>,+ private readonly events: AsyncIterable<WatchDirResponse>,private readonly path: string,private readonly username: string,private readonly onEvent?: (event: FilesystemEvent) => void | Promise<void>,diff --git a/packages/python-sdk/e2b/envd/filesystem/filesystem_connect.py b/packages/python-sdk/e2b/envd/filesystem/filesystem_connect.pyindex 624990353..e83cf0d65 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,23 +24,23 @@ class FilesystemClient:response_type=filesystem_dot_filesystem__pb2.MakeDirResponse,compressor=compressor,json=json,- **opts,+ **opts)- self._list = connect.Client(+ self._list_dir = connect.Client(pool=pool,- url=f"{base_url}/{FilesystemName}/List",- response_type=filesystem_dot_filesystem__pb2.ListResponse,+ url=f"{base_url}/{FilesystemName}/ListDir",+ response_type=filesystem_dot_filesystem__pb2.ListDirResponse,compressor=compressor,json=json,- **opts,+ **opts)- self._watch = connect.Client(+ self._watch_dir = connect.Client(pool=pool,- url=f"{base_url}/{FilesystemName}/Watch",- response_type=filesystem_dot_filesystem__pb2.WatchResponse,+ 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,@@ -48,30 +48,20 @@ 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 list(- self, req: filesystem_dot_filesystem__pb2.ListRequest, **opts- ) -> filesystem_dot_filesystem__pb2.ListResponse:- return self._list.call_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(- self, req: filesystem_dot_filesystem__pb2.WatchRequest, **opts- ) -> Generator[filesystem_dot_filesystem__pb2.WatchResponse, Any, None]:- return self._watch.call_server_stream(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:+ 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 b1c4d089e..a999d3af2 100644--- a/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.py+++ b/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.py@@ -7,7 +7,6 @@ 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()@@ -16,48 +15,42 @@ _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"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"H\n\x0bListRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12%\n\x04user\x18\x02 \x01(\x0b\x32\x11.permissions.UserR\x04user"?\n\x0cListResponse\x12/\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x15.filesystem.EntryInfoR\x07\x65ntries"I\n\x0cWatchRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12%\n\x04user\x18\x02 \x01(\x0b\x32\x11.permissions.UserR\x04user"B\n\rWatchResponse\x12\x31\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1b.filesystem.FilesystemEventR\x05\x65vent"P\n\x0f\x46ilesystemEvent\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12)\n\x04type\x18\x02 \x01(\x0e\x32\x15.filesystem.EventTypeR\x04type*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\xc7\x02\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\x04List\x12\x17.filesystem.ListRequest\x1a\x18.filesystem.ListResponse\x12>\n\x05Watch\x12\x18.filesystem.WatchRequest\x1a\x19.filesystem.WatchResponse0\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\"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\"E\n\x10WatchDirResponse\x12\x31\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1b.filesystem.FilesystemEventR\x05\x65vent\"P\n\x0f\x46ilesystemEvent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12)\n\x04type\x18\x02 \x01(\x0e\x32\x15.filesystem.EventTypeR\x04type*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\xd9\x02\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\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 = 838- _globals["_FILETYPE"]._serialized_end = 920- _globals["_EVENTTYPE"]._serialized_start = 923- _globals["_EVENTTYPE"]._serialized_end = 1075- _globals["_MAKEDIRREQUEST"]._serialized_start = 74- _globals["_MAKEDIRREQUEST"]._serialized_end = 149- _globals["_MAKEDIRRESPONSE"]._serialized_start = 151- _globals["_MAKEDIRRESPONSE"]._serialized_end = 168- _globals["_REMOVEREQUEST"]._serialized_start = 170- _globals["_REMOVEREQUEST"]._serialized_end = 244- _globals["_REMOVERESPONSE"]._serialized_start = 246- _globals["_REMOVERESPONSE"]._serialized_end = 262- _globals["_STATREQUEST"]._serialized_start = 264- _globals["_STATREQUEST"]._serialized_end = 336- _globals["_STATRESPONSE"]._serialized_start = 338- _globals["_STATRESPONSE"]._serialized_end = 397- _globals["_ENTRYINFO"]._serialized_start = 399- _globals["_ENTRYINFO"]._serialized_end = 472- _globals["_LISTREQUEST"]._serialized_start = 474- _globals["_LISTREQUEST"]._serialized_end = 546- _globals["_LISTRESPONSE"]._serialized_start = 548- _globals["_LISTRESPONSE"]._serialized_end = 611- _globals["_WATCHREQUEST"]._serialized_start = 613- _globals["_WATCHREQUEST"]._serialized_end = 686- _globals["_WATCHRESPONSE"]._serialized_start = 688- _globals["_WATCHRESPONSE"]._serialized_end = 754- _globals["_FILESYSTEMEVENT"]._serialized_start = 756- _globals["_FILESYSTEMEVENT"]._serialized_end = 836- _globals["_FILESYSTEM"]._serialized_start = 1078- _globals["_FILESYSTEM"]._serialized_end = 1405+ _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=850+ _globals['_FILETYPE']._serialized_end=932+ _globals['_EVENTTYPE']._serialized_start=935+ _globals['_EVENTTYPE']._serialized_end=1087+ _globals['_MAKEDIRREQUEST']._serialized_start=74+ _globals['_MAKEDIRREQUEST']._serialized_end=149+ _globals['_MAKEDIRRESPONSE']._serialized_start=151+ _globals['_MAKEDIRRESPONSE']._serialized_end=168+ _globals['_REMOVEREQUEST']._serialized_start=170+ _globals['_REMOVEREQUEST']._serialized_end=244+ _globals['_REMOVERESPONSE']._serialized_start=246+ _globals['_REMOVERESPONSE']._serialized_end=262+ _globals['_STATREQUEST']._serialized_start=264+ _globals['_STATREQUEST']._serialized_end=336+ _globals['_STATRESPONSE']._serialized_start=338+ _globals['_STATRESPONSE']._serialized_end=397+ _globals['_ENTRYINFO']._serialized_start=399+ _globals['_ENTRYINFO']._serialized_end=472+ _globals['_LISTDIRREQUEST']._serialized_start=474+ _globals['_LISTDIRREQUEST']._serialized_end=549+ _globals['_LISTDIRRESPONSE']._serialized_start=551+ _globals['_LISTDIRRESPONSE']._serialized_end=617+ _globals['_WATCHDIRREQUEST']._serialized_start=619+ _globals['_WATCHDIRREQUEST']._serialized_end=695+ _globals['_WATCHDIRRESPONSE']._serialized_start=697+ _globals['_WATCHDIRRESPONSE']._serialized_end=766+ _globals['_FILESYSTEMEVENT']._serialized_start=768+ _globals['_FILESYSTEMEVENT']._serialized_end=848+ _globals['_FILESYSTEM']._serialized_start=1090+ _globals['_FILESYSTEM']._serialized_end=1435# @@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 0aabaffb0..3dc1f2267 100644--- a/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.pyi+++ b/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.pyi@@ -3,13 +3,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@@ -27,7 +21,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@@ -44,11 +37,7 @@ 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__ = ()@@ -60,11 +49,7 @@ 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__ = ()@@ -76,11 +61,7 @@ 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",)@@ -94,56 +75,40 @@ 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 ListRequest(_message.Message):+class ListDirRequest(_message.Message):__slots__ = ("path", "user")PATH_FIELD_NUMBER: _ClassVar[int]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 ListResponse(_message.Message):+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 WatchRequest(_message.Message):+class WatchDirRequest(_message.Message):__slots__ = ("path", "user")PATH_FIELD_NUMBER: _ClassVar[int]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 WatchResponse(_message.Message):+class WatchDirResponse(_message.Message):__slots__ = ("event",)EVENT_FIELD_NUMBER: _ClassVar[int]event: FilesystemEvent- def __init__(- self, event: _Optional[_Union[FilesystemEvent, _Mapping]] = ...- ) -> None: ...+ def __init__(self, event: _Optional[_Union[FilesystemEvent, _Mapping]] = ...) -> None: ...class FilesystemEvent(_message.Message):- __slots__ = ("path", "type")- PATH_FIELD_NUMBER: _ClassVar[int]+ __slots__ = ("name", "type")+ NAME_FIELD_NUMBER: _ClassVar[int]TYPE_FIELD_NUMBER: _ClassVar[int]- path: str+ name: strtype: EventType- def __init__(- self, path: _Optional[str] = ..., type: _Optional[_Union[EventType, str]] = ...- ) -> None: ...+ def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[EventType, str]] = ...) -> None: ...diff --git a/packages/python-sdk/e2b/envd/permissions/permissions_pb2.py b/packages/python-sdk/e2b/envd/permissions/permissions_pb2.pyindex f3c5ff50f..41dcb86a1 100644--- a/packages/python-sdk/e2b/envd/permissions/permissions_pb2.py+++ b/packages/python-sdk/e2b/envd/permissions/permissions_pb2.py@@ -7,26 +7,21 @@ 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 d9ef4ba1a..7a1f8ab04 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,40 +64,26 @@ 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 4ec0c0a07..b58e7f235 100644--- a/packages/python-sdk/e2b/envd/process/process_pb2.py+++ b/packages/python-sdk/e2b/envd/process/process_pb2.py@@ -7,7 +7,6 @@ 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()@@ -16,76 +15,72 @@ _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"\xb9\x03\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\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_errorB\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"\x96\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\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\x05inputB\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\"\xb9\x03\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\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_errorB\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\"\x96\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\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\x05inputB\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 = 2224- _globals["_SIGNAL"]._serialized_end = 2296- _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 = 1308- _globals["_PROCESSEVENT_STARTEVENT"]._serialized_start = 1048- _globals["_PROCESSEVENT_STARTEVENT"]._serialized_end = 1078- _globals["_PROCESSEVENT_DATAEVENT"]._serialized_start = 1080- _globals["_PROCESSEVENT_DATAEVENT"]._serialized_end = 1173- _globals["_PROCESSEVENT_ENDEVENT"]._serialized_start = 1175- _globals["_PROCESSEVENT_ENDEVENT"]._serialized_end = 1299- _globals["_STARTRESPONSE"]._serialized_start = 1310- _globals["_STARTRESPONSE"]._serialized_end = 1370- _globals["_CONNECTRESPONSE"]._serialized_start = 1372- _globals["_CONNECTRESPONSE"]._serialized_end = 1434- _globals["_SENDINPUTREQUEST"]._serialized_start = 1436- _globals["_SENDINPUTREQUEST"]._serialized_end = 1551- _globals["_SENDINPUTRESPONSE"]._serialized_start = 1553- _globals["_SENDINPUTRESPONSE"]._serialized_end = 1572- _globals["_PROCESSINPUT"]._serialized_start = 1574- _globals["_PROCESSINPUT"]._serialized_end = 1641- _globals["_STREAMINPUTREQUEST"]._serialized_start = 1644- _globals["_STREAMINPUTREQUEST"]._serialized_end = 1922- _globals["_STREAMINPUTREQUEST_STARTEVENT"]._serialized_start = 1791- _globals["_STREAMINPUTREQUEST_STARTEVENT"]._serialized_end = 1855- _globals["_STREAMINPUTREQUEST_DATAEVENT"]._serialized_start = 1857- _globals["_STREAMINPUTREQUEST_DATAEVENT"]._serialized_end = 1913- _globals["_STREAMINPUTRESPONSE"]._serialized_start = 1924- _globals["_STREAMINPUTRESPONSE"]._serialized_end = 1945- _globals["_SENDSIGNALREQUEST"]._serialized_start = 1947- _globals["_SENDSIGNALREQUEST"]._serialized_end = 2059- _globals["_SENDSIGNALRESPONSE"]._serialized_start = 2061- _globals["_SENDSIGNALRESPONSE"]._serialized_end = 2081- _globals["_CONNECTREQUEST"]._serialized_start = 2083- _globals["_CONNECTREQUEST"]._serialized_end = 2151- _globals["_PROCESSSELECTOR"]._serialized_start = 2153- _globals["_PROCESSSELECTOR"]._serialized_end = 2222- _globals["_PROCESS"]._serialized_start = 2299- _globals["_PROCESS"]._serialized_end = 2757+ _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=2224+ _globals['_SIGNAL']._serialized_end=2296+ _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=1308+ _globals['_PROCESSEVENT_STARTEVENT']._serialized_start=1048+ _globals['_PROCESSEVENT_STARTEVENT']._serialized_end=1078+ _globals['_PROCESSEVENT_DATAEVENT']._serialized_start=1080+ _globals['_PROCESSEVENT_DATAEVENT']._serialized_end=1173+ _globals['_PROCESSEVENT_ENDEVENT']._serialized_start=1175+ _globals['_PROCESSEVENT_ENDEVENT']._serialized_end=1299+ _globals['_STARTRESPONSE']._serialized_start=1310+ _globals['_STARTRESPONSE']._serialized_end=1370+ _globals['_CONNECTRESPONSE']._serialized_start=1372+ _globals['_CONNECTRESPONSE']._serialized_end=1434+ _globals['_SENDINPUTREQUEST']._serialized_start=1436+ _globals['_SENDINPUTREQUEST']._serialized_end=1551+ _globals['_SENDINPUTRESPONSE']._serialized_start=1553+ _globals['_SENDINPUTRESPONSE']._serialized_end=1572+ _globals['_PROCESSINPUT']._serialized_start=1574+ _globals['_PROCESSINPUT']._serialized_end=1641+ _globals['_STREAMINPUTREQUEST']._serialized_start=1644+ _globals['_STREAMINPUTREQUEST']._serialized_end=1922+ _globals['_STREAMINPUTREQUEST_STARTEVENT']._serialized_start=1791+ _globals['_STREAMINPUTREQUEST_STARTEVENT']._serialized_end=1855+ _globals['_STREAMINPUTREQUEST_DATAEVENT']._serialized_start=1857+ _globals['_STREAMINPUTREQUEST_DATAEVENT']._serialized_end=1913+ _globals['_STREAMINPUTRESPONSE']._serialized_start=1924+ _globals['_STREAMINPUTRESPONSE']._serialized_end=1945+ _globals['_SENDSIGNALREQUEST']._serialized_start=1947+ _globals['_SENDSIGNALREQUEST']._serialized_end=2059+ _globals['_SENDSIGNALRESPONSE']._serialized_start=2061+ _globals['_SENDSIGNALRESPONSE']._serialized_end=2081+ _globals['_CONNECTREQUEST']._serialized_start=2083+ _globals['_CONNECTREQUEST']._serialized_end=2151+ _globals['_PROCESSSELECTOR']._serialized_start=2153+ _globals['_PROCESSSELECTOR']._serialized_end=2222+ _globals['_PROCESS']._serialized_start=2299+ _globals['_PROCESS']._serialized_end=2757# @@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 ccc8b0667..f7ce0a5ae 100644--- a/packages/python-sdk/e2b/envd/process/process_pb2.pyi+++ b/packages/python-sdk/e2b/envd/process/process_pb2.pyi@@ -3,13 +3,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@@ -18,39 +12,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]@@ -59,13 +46,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__ = ()@@ -79,20 +60,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", "user")@@ -104,13 +78,7 @@ 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")@@ -118,11 +86,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__ = ()@@ -130,13 +94,11 @@ class UpdateResponse(_message.Message):class ProcessEvent(_message.Message):__slots__ = ("start", "data", "end")-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]@@ -145,13 +107,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]@@ -162,41 +118,26 @@ 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: ...START_FIELD_NUMBER: _ClassVar[int]DATA_FIELD_NUMBER: _ClassVar[int]END_FIELD_NUMBER: _ClassVar[int]start: ProcessEvent.StartEventdata: ProcessEvent.DataEventend: ProcessEvent.EndEvent- def __init__(- self,- start: _Optional[_Union[ProcessEvent.StartEvent, _Mapping]] = ...,- data: _Optional[_Union[ProcessEvent.DataEvent, _Mapping]] = ...,- end: _Optional[_Union[ProcessEvent.EndEvent, _Mapping]] = ...,- ) -> None: ...+ def __init__(self, start: _Optional[_Union[ProcessEvent.StartEvent, _Mapping]] = ..., data: _Optional[_Union[ProcessEvent.DataEvent, _Mapping]] = ..., end: _Optional[_Union[ProcessEvent.EndEvent, _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")@@ -204,11 +145,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__ = ()@@ -220,37 +157,25 @@ 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")-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: ...START_FIELD_NUMBER: _ClassVar[int]DATA_FIELD_NUMBER: _ClassVar[int]start: StreamInputRequest.StartEventdata: StreamInputRequest.DataEvent- def __init__(- self,- start: _Optional[_Union[StreamInputRequest.StartEvent, _Mapping]] = ...,- data: _Optional[_Union[StreamInputRequest.DataEvent, _Mapping]] = ...,- ) -> None: ...+ def __init__(self, start: _Optional[_Union[StreamInputRequest.StartEvent, _Mapping]] = ..., data: _Optional[_Union[StreamInputRequest.DataEvent, _Mapping]] = ...) -> None: ...class StreamInputResponse(_message.Message):__slots__ = ()@@ -262,11 +187,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__ = ()@@ -276,9 +197,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")@@ -286,6 +205,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: ...diff --git a/packages/python-sdk/e2b/sandbox/filesystem/filesystem.py b/packages/python-sdk/e2b/sandbox/filesystem/filesystem.pyindex ee599a45c..6d71c5d4f 100644--- a/packages/python-sdk/e2b/sandbox/filesystem/filesystem.py+++ b/packages/python-sdk/e2b/sandbox/filesystem/filesystem.py@@ -103,8 +103,8 @@ class Filesystem:user: Username = "user",request_timeout: Optional[float] = None,) -> List[filesystem_pb2.EntryInfo]:- res = self._rpc.list(- filesystem_pb2.ListRequest(path=path),+ res = self._rpc.list_dir(+ filesystem_pb2.ListDirRequest(path=path),user=User(username=user),timeout=self._connection_config.get_request_timeout(request_timeout),)@@ -165,10 +165,13 @@ class Filesystem:request_timeout: Optional[float] = None,timeout: Optional[float] = None,):- events = self._rpc.watch(- filesystem_pb2.WatchRequest(path=path),+ events = self._rpc.watch_dir(+ filesystem_pb2.WatchDirRequest(path=path),user=User(username=user),- timeout=(self._connection_config.get_request_timeout(request_timeout), timeout),+ timeout=(+ self._connection_config.get_request_timeout(request_timeout),+ timeout,+ ),)return WatchHandle(events=events)diff --git a/packages/python-sdk/e2b/sandbox/filesystem/watch_handle.py b/packages/python-sdk/e2b/sandbox/filesystem/watch_handle.pyindex e0d78ec56..9188d5e33 100644--- a/packages/python-sdk/e2b/sandbox/filesystem/watch_handle.py+++ b/packages/python-sdk/e2b/sandbox/filesystem/watch_handle.py@@ -1,12 +1,12 @@from typing import Any, Generator-from e2b.envd.filesystem.filesystem_pb2 import WatchResponse+from e2b.envd.filesystem.filesystem_pb2 import WatchDirResponseclass WatchHandle(Generator):def __init__(self,- events: Generator[WatchResponse, Any, None],+ events: Generator[WatchDirResponse, Any, None],):self._events = eventsdiff --git a/packages/python-sdk/e2b/sandbox/process/main.py b/packages/python-sdk/e2b/sandbox/process/main.pyindex 7fd2f84e7..52d60272c 100644--- a/packages/python-sdk/e2b/sandbox/process/main.py+++ b/packages/python-sdk/e2b/sandbox/process/main.py@@ -67,7 +67,8 @@ class Process:on_stderr: Optional[Callable[[str], None]] = None,timeout: Optional[float] = None,request_timeout: Optional[float] = None,- ) -> ProcessResult: ...+ ) -> ProcessResult:+ ...@overloaddef run(@@ -81,7 +82,8 @@ class Process:on_stderr: Optional[Callable[[str], None]] = None,timeout: Optional[float] = None,request_timeout: Optional[float] = None,- ) -> ProcessHandle: ...+ ) -> ProcessHandle:+ ...def run(self,diff --git a/packages/python-sdk/example.py b/packages/python-sdk/example.pyindex 664eeae6c..f57c8366c 100644--- a/packages/python-sdk/example.py+++ b/packages/python-sdk/example.py@@ -1,6 +1,9 @@+import io+from e2b import Sandbox-# sbx = Sandbox()+s = Sandbox()+input = io.StringIO("This goes into the read buffer.")-s = Sandbox\ No newline at end of file+s.files.write("/tmp/test.txt", input)diff --git a/spec/envd/filesystem/filesystem.proto b/spec/envd/filesystem/filesystem.protoindex 4f9d44593..a2abf7ffc 100644--- a/spec/envd/filesystem/filesystem.proto+++ b/spec/envd/filesystem/filesystem.proto@@ -7,8 +7,8 @@ package filesystem;service Filesystem {rpc Stat(StatRequest) returns (StatResponse);rpc MakeDir(MakeDirRequest) returns (MakeDirResponse);- rpc List(ListRequest) returns (ListResponse);- rpc Watch(WatchRequest) returns (stream WatchResponse);+ rpc ListDir(ListDirRequest) returns (ListDirResponse);+ rpc WatchDir(WatchDirRequest) returns (stream WatchDirResponse);rpc Remove(RemoveRequest) returns (RemoveResponse);}@@ -49,28 +49,28 @@ enum FileType {FILE_TYPE_DIRECTORY = 2;}-message ListRequest {+message ListDirRequest {string path = 1;permissions.User user = 2;}-message ListResponse {+message ListDirResponse {repeated EntryInfo entries = 1;}-message WatchRequest {+message WatchDirRequest {string path = 1;permissions.User user = 2;}-message WatchResponse {+message WatchDirResponse {FilesystemEvent event = 1;}message FilesystemEvent {- string path = 1;+ string name = 1;EventType type = 2;}