- Implemented V2 sandbox initialization in the assistant loading process, allowing for standalone sandbox.yao configuration. - Added support for V2 sandbox execution paths in the Assistant's Stream method, differentiating between V1 and V2 sandboxes. - Introduced comprehensive tests for V2 sandbox configurations, ensuring correct loading and execution behavior. - Updated the context and types to accommodate V2 sandbox features, including system information and workspace management. Made-with: Cursor
26 lines
697 B
Protocol Buffer
26 lines
697 B
Protocol Buffer
syntax = "proto3";
|
|
package serverinfo;
|
|
option go_package = "github.com/yaoapp/tai/serverinfo/pb";
|
|
|
|
service ServerInfo {
|
|
rpc GetInfo(GetInfoRequest) returns (GetInfoResponse);
|
|
}
|
|
|
|
message GetInfoRequest {}
|
|
|
|
message SystemInfo {
|
|
string os = 1;
|
|
string arch = 2;
|
|
string hostname = 3;
|
|
int32 num_cpu = 4;
|
|
int64 total_mem = 5;
|
|
string shell = 6; // preferred shell: "sh", "pwsh", "powershell", "cmd.exe"
|
|
string temp_dir = 7; // system temp directory
|
|
}
|
|
|
|
message GetInfoResponse {
|
|
string version = 1;
|
|
map<string, int32> ports = 2; // "grpc", "http", "vnc", "docker", "k8s"
|
|
map<string, bool> capabilities = 3; // "docker", "k8s"
|
|
SystemInfo system = 4;
|
|
}
|