forked from vercel/turbo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
messages.proto
91 lines (76 loc) · 1.53 KB
/
messages.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
syntax = "proto3";
option go_package = "ffi/proto";
message TurboDataDirResp {
string dir = 1;
}
message GlobReq {
string base_path = 1;
repeated string include_patterns = 2;
repeated string exclude_patterns = 3;
bool files_only = 4; // note that the default for a bool is false
}
message GlobResp {
oneof response {
GlobRespList files = 1;
string error = 2;
}
}
message GlobRespList {
repeated string files = 1;
}
message ChangedFilesReq {
string git_root = 1;
string turbo_root = 2;
optional string from_commit = 3;
string to_commit = 4;
}
message ChangedFilesResp {
oneof response {
ChangedFilesList files = 1;
string error = 2;
}
}
message ChangedFilesList {
repeated string files = 1;
}
message PreviousContentReq {
string git_root = 1;
string from_commit = 2;
string file_path = 3;
}
message PreviousContentResp {
oneof response {
bytes content = 1;
string error = 2;
}
}
message TransitiveDepsRequest {
bytes contents = 1;
string workspace_dir = 2;
map<string, string> unresolved_deps = 3;
}
message TransitiveDepsResponse {
oneof response {
LockfilePackageList packages = 1;
string error = 2;
}
}
message LockfilePackage {
string key = 1;
string version = 2;
bool found = 3;
}
message LockfilePackageList {
repeated LockfilePackage list = 1;
}
message SubgraphRequest {
bytes contents = 1;
repeated string workspaces = 2;
repeated string packages = 3;
}
message SubgraphResponse {
oneof response {
bytes contents = 1;
string error = 2;
}
}