Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix command for generating from rpc spec

Jakub Novakc5aa13ea868c
diff --git a/Makefile b/Makefile
index 1a3194ea6..cb7ed6ce8 100644
--- a/Makefile
+++ b/Makefile
@@ -13,5 +13,5 @@ generate-js:
generate-python:
cd packages/python-sdk && make generate-api
- buf generate --template spec/envd/buf-python.gen.yaml
- cd packages/python-sdk && ./scripts/fix-python-pb.sh
+ cd spec/envd && buf generate --template buf-python.gen.yaml
+ cd packages/python-sdk && ./scripts/fix-python-pb.sh && black .
diff --git a/spec/envd/filesystem/filesystem.proto b/spec/envd/filesystem/filesystem.proto
index 23e9ab3a5..83a072555 100644
--- a/spec/envd/filesystem/filesystem.proto
+++ b/spec/envd/filesystem/filesystem.proto
@@ -13,7 +13,7 @@ service Filesystem {
// Non-streaming versions of WatchDir
rpc WatchDirStart(WatchDirRequest) returns (WatchDirStartResponse);
- rpc WatchDirPoll(WatchDirPollRequest) returns (WatchDirPollResponse);
+ rpc WatchDirGet(WatchDirGetRequest) returns (WatchDirGetResponse);
rpc WatchDirStop(WatchDirStopRequest) returns (WatchDirStopResponse);
}
@@ -93,12 +93,12 @@ message WatchDirStartResponse {
string watcherId = 1;
}
-message WatchDirPollRequest {
- string watcherId = 1;
+message WatchDirGetRequest {
+ string watcher_id = 1;
uint32 offset = 2;
}
-message WatchDirPollResponse {
+message WatchDirGetResponse {
repeated FilesystemEvent events = 1;
}