跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

guestservice.proto

57 行 · 1.3 KB历史下载
1syntax = "proto3";
2
3import "google/protobuf/empty.proto";
4import "google/protobuf/timestamp.proto";
5
6option go_package = "github.com/lima-vm/lima/v2/pkg/guestagent/api";
7
8service GuestService {
9 rpc GetInfo(google.protobuf.Empty) returns (Info);
10 rpc GetEvents(google.protobuf.Empty) returns (stream Event);
11 rpc PostInotify(stream Inotify) returns (google.protobuf.Empty);
12
13 rpc Tunnel(stream TunnelMessage) returns (stream TunnelMessage);
14 rpc SyncTime(TimeSyncRequest) returns (TimeSyncResponse);
15}
16
17message Info {
18 repeated IPPort local_ports = 1;
19}
20
21message Event {
22 google.protobuf.Timestamp time = 1;
23 repeated IPPort added_local_ports = 2;
24 repeated IPPort removed_local_ports = 3;
25 repeated string errors = 4;
26}
27
28message IPPort {
29 string protocol = 1; // tcp, udp
30 string ip = 2;
31 int32 port = 3;
32}
33
34message Inotify {
35 string mount_path = 1;
36 google.protobuf.Timestamp time = 2;
37 // removed is set when mount_path was removed on the host.
38 bool removed = 3;
39}
40
41message TunnelMessage {
42 string id = 1;
43 string protocol = 2; // tcp, udp
44 bytes data = 3;
45 string guest_addr = 4;
46 string udp_target_addr = 5;
47}
48
49message TimeSyncRequest {
50 google.protobuf.Timestamp host_time = 1;
51}
52
53message TimeSyncResponse {
54 bool adjusted = 1;
55 int64 drift_ms = 2;
56 string error = 3;
57}