Skip to repository content340 lines · 6.3 KB · text
tenant.openagents/omega
No repository description is available.
OpenAgents Git authority 2026-07-28T04:09:50.773Z Public web read
NIP-34 coordinate
30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omegaMaintainersHidden in public view
References2 branches · 1 tag
Read-only clone
git clone https://openagents.com/git/tenant.openagents/omega.gitBrowse files
buffer.proto
1syntax = "proto3";
2package zed.messages;
3
4import "core.proto";
5import "worktree.proto";
6
7message OpenNewBuffer {
8 uint64 project_id = 1;
9}
10
11message OpenBufferResponse {
12 uint64 buffer_id = 1;
13}
14
15message CreateBufferForPeer {
16 uint64 project_id = 1;
17 PeerId peer_id = 2;
18 oneof variant {
19 BufferState state = 3;
20 BufferChunk chunk = 4;
21 }
22}
23
24message UpdateBuffer {
25 uint64 project_id = 1;
26 uint64 buffer_id = 2;
27 repeated Operation operations = 3;
28}
29
30message OpenBufferByPath {
31 uint64 project_id = 1;
32 uint64 worktree_id = 2;
33 string path = 3;
34}
35
36message OpenBufferById {
37 uint64 project_id = 1;
38 uint64 id = 2;
39}
40
41message UpdateBufferFile {
42 uint64 project_id = 1;
43 uint64 buffer_id = 2;
44 File file = 3;
45}
46
47message SaveBuffer {
48 uint64 project_id = 1;
49 uint64 buffer_id = 2;
50 repeated VectorClockEntry version = 3;
51 optional ProjectPath new_path = 4;
52}
53
54message CloseBuffer {
55 uint64 project_id = 1;
56 uint64 buffer_id = 2;
57}
58
59message BufferSaved {
60 uint64 project_id = 1;
61 uint64 buffer_id = 2;
62 repeated VectorClockEntry version = 3;
63 Timestamp mtime = 4;
64 reserved 5;
65}
66
67message BufferReloaded {
68 uint64 project_id = 1;
69 uint64 buffer_id = 2;
70 repeated VectorClockEntry version = 3;
71 Timestamp mtime = 4;
72 reserved 5;
73 LineEnding line_ending = 6;
74}
75
76message ReloadBuffers {
77 uint64 project_id = 1;
78 repeated uint64 buffer_ids = 2;
79}
80
81message ReloadBuffersResponse {
82 ProjectTransaction transaction = 1;
83}
84
85message SynchronizeBuffers {
86 uint64 project_id = 1;
87 repeated BufferVersion buffers = 2;
88}
89
90message SynchronizeBuffersResponse {
91 repeated BufferVersion buffers = 1;
92}
93
94message BufferVersion {
95 uint64 id = 1;
96 repeated VectorClockEntry version = 2;
97}
98
99message BufferState {
100 uint64 id = 1;
101 optional File file = 2;
102 string base_text = 3;
103 LineEnding line_ending = 5;
104 repeated VectorClockEntry saved_version = 6;
105 Timestamp saved_mtime = 8;
106
107 reserved 7;
108 reserved 4;
109}
110
111message BufferChunk {
112 uint64 buffer_id = 1;
113 repeated Operation operations = 2;
114 bool is_last = 3;
115}
116
117enum LineEnding {
118 Unix = 0;
119 Windows = 1;
120}
121
122message VectorClockEntry {
123 uint32 replica_id = 1;
124 uint32 timestamp = 2;
125}
126
127message UndoMapEntry {
128 uint32 replica_id = 1;
129 uint32 local_timestamp = 2;
130 repeated UndoCount counts = 3;
131}
132
133message UndoCount {
134 uint32 replica_id = 1;
135 uint32 lamport_timestamp = 2;
136 uint32 count = 3;
137}
138
139message Operation {
140 oneof variant {
141 Edit edit = 1;
142 Undo undo = 2;
143 UpdateSelections update_selections = 3;
144 UpdateDiagnostics update_diagnostics = 4;
145 UpdateCompletionTriggers update_completion_triggers = 5;
146 UpdateLineEnding update_line_ending = 6;
147 }
148
149 message Edit {
150 uint32 replica_id = 1;
151 uint32 lamport_timestamp = 2;
152 repeated VectorClockEntry version = 3;
153 repeated Range ranges = 4;
154 repeated string new_text = 5;
155 }
156
157 message Undo {
158 uint32 replica_id = 1;
159 uint32 lamport_timestamp = 2;
160 repeated VectorClockEntry version = 3;
161 repeated UndoCount counts = 4;
162 }
163
164 message UpdateSelections {
165 uint32 replica_id = 1;
166 uint32 lamport_timestamp = 2;
167 repeated Selection selections = 3;
168 bool line_mode = 4;
169 CursorShape cursor_shape = 5;
170 }
171
172 message UpdateCompletionTriggers {
173 uint32 replica_id = 1;
174 uint32 lamport_timestamp = 2;
175 repeated string triggers = 3;
176 uint64 language_server_id = 4;
177 }
178
179 message UpdateLineEnding {
180 uint32 replica_id = 1;
181 uint32 lamport_timestamp = 2;
182 LineEnding line_ending = 3;
183 }
184}
185
186message ProjectTransaction {
187 repeated uint64 buffer_ids = 1;
188 repeated Transaction transactions = 2;
189}
190
191message Transaction {
192 LamportTimestamp id = 1;
193 repeated LamportTimestamp edit_ids = 2;
194 repeated VectorClockEntry start = 3;
195}
196
197message LamportTimestamp {
198 uint32 replica_id = 1;
199 uint32 value = 2;
200}
201
202message Range {
203 uint64 start = 1;
204 uint64 end = 2;
205}
206
207message Selection {
208 uint64 id = 1;
209 EditorAnchor start = 2;
210 EditorAnchor end = 3;
211 bool reversed = 4;
212}
213
214message EditorAnchor {
215 optional uint64 excerpt_id = 1;
216 Anchor anchor = 2;
217}
218
219message PathKey {
220 optional uint64 sort_prefix = 1;
221 string path = 2;
222}
223
224enum CursorShape {
225 CursorBar = 0;
226 CursorBlock = 1;
227 CursorUnderscore = 2;
228 CursorHollow = 3;
229}
230
231message UpdateDiagnostics {
232 uint32 replica_id = 1;
233 uint32 lamport_timestamp = 2;
234 uint64 server_id = 3;
235 repeated Diagnostic diagnostics = 4;
236}
237
238message Anchor {
239 uint32 replica_id = 1;
240 uint32 timestamp = 2;
241 uint64 offset = 3;
242 Bias bias = 4;
243 optional uint64 buffer_id = 5;
244}
245
246message AnchorRange {
247 Anchor start = 1;
248 Anchor end = 2;
249}
250
251message Location {
252 uint64 buffer_id = 1;
253 Anchor start = 2;
254 Anchor end = 3;
255}
256
257enum Bias {
258 Left = 0;
259 Right = 1;
260}
261
262message Diagnostic {
263 Anchor start = 1;
264 Anchor end = 2;
265 optional string source = 3;
266 optional string registration_id = 17;
267
268 enum SourceKind {
269 Pulled = 0;
270 Pushed = 1;
271 Other = 2;
272 }
273
274 SourceKind source_kind = 16;
275 Severity severity = 4;
276 string message = 5;
277 optional string code = 6;
278 uint64 group_id = 7;
279 bool is_primary = 8;
280
281 reserved 9;
282
283 bool is_disk_based = 10;
284 bool is_unnecessary = 11;
285 bool underline = 15;
286
287 enum Severity {
288 None = 0;
289 Error = 1;
290 Warning = 2;
291 Information = 3;
292 Hint = 4;
293 }
294 optional string data = 12;
295 optional string code_description = 13;
296 optional string markdown = 14;
297}
298
299message SearchQuery {
300 string query = 2;
301 bool regex = 3;
302 bool whole_word = 4;
303 bool case_sensitive = 5;
304 repeated string files_to_include = 10;
305 repeated string files_to_exclude = 11;
306 bool match_full_paths = 9;
307 bool include_ignored = 8;
308 string files_to_include_legacy = 6;
309 string files_to_exclude_legacy = 7;
310}
311
312message FindSearchCandidates {
313 uint64 project_id = 1;
314 SearchQuery query = 2;
315 uint64 limit = 3;
316 uint64 handle = 4;
317}
318
319message FindSearchCandidatesDone {}
320
321message FindSearchCandidatesMatches {
322 repeated uint64 buffer_ids = 1;
323}
324
325message FindSearchCandidatesChunk {
326 uint64 project_id = 1;
327 PeerId peer_id = 2;
328 uint64 handle = 3;
329
330 oneof variant {
331 FindSearchCandidatesMatches matches = 4;
332 FindSearchCandidatesDone done = 5;
333 }
334}
335
336message FindSearchCandidatesCancelled {
337 uint64 project_id = 1;
338 uint64 handle = 2;
339}
340