-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
messages.proto
167 lines (137 loc) · 2.86 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
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;
}
}
enum PackageManager {
NPM = 0;
BERRY = 1;
}
message PackageDependency {
string name = 1;
string range = 2;
}
message PackageDependencyList {
repeated PackageDependency list = 1;
}
message WorkspaceDependencies {
map<string, LockfilePackageList> dependencies = 1;
}
message TransitiveDepsRequest {
bytes contents = 1;
PackageManager package_manager = 2;
map<string, PackageDependencyList> workspaces = 3;
optional AdditionalBerryData resolutions = 4;
}
message TransitiveDepsResponse {
oneof response {
WorkspaceDependencies dependencies = 1;
string error = 2;
}
}
message AdditionalBerryData {
map<string, string> resolutions = 1;
}
message LockfilePackage {
string key = 1;
string version = 2;
bool found = 3;
}
message LockfilePackageList {
repeated LockfilePackage list = 1;
}
message SubgraphRequest {
bytes contents = 1;
PackageManager package_manager = 2;
repeated string workspaces = 3;
repeated string packages = 4;
optional AdditionalBerryData resolutions = 5;
}
message SubgraphResponse {
oneof response {
bytes contents = 1;
string error = 2;
}
}
message PatchesRequest {
bytes contents = 1;
PackageManager package_manager = 2;
}
message PatchesResponse {
oneof response {
Patches patches = 1;
string error = 2;
}
}
message Patches {
repeated string patches = 1;
}
message GlobalChangeRequest {
PackageManager package_manager = 1;
bytes prev_contents = 2;
bytes curr_contents = 3;
}
message GlobalChangeResponse {
bool global_change = 1;
}
message RecursiveCopyRequest {
string src = 1;
string dst = 2;
}
message RecursiveCopyResponse {
optional string error = 1;
}
message GetPackageFileHashesFromGitIndexRequest {
string turbo_root = 1;
string package_path = 2;
}
message FileHashes {
map<string, string> hashes = 1;
}
message GetPackageFileHashesFromGitIndexResponse {
oneof response {
FileHashes hashes = 1;
string error = 2;
}
}