Skip to repository content447 lines · 8.9 KB · text
tenant.openagents/omega
No repository description is available.
OpenAgents Git authority 2026-07-28T04:14:51.971Z 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
call.proto
1syntax = "proto3";
2package zed.messages;
3
4import "buffer.proto";
5import "channel.proto";
6import "core.proto";
7import "git.proto";
8import "lsp.proto";
9import "worktree.proto";
10
11message CreateRoom {}
12
13message CreateRoomResponse {
14 Room room = 1;
15 optional LiveKitConnectionInfo live_kit_connection_info = 2;
16}
17
18message JoinRoom {
19 uint64 id = 1;
20}
21
22message JoinRoomResponse {
23 Room room = 1;
24 optional uint64 channel_id = 2;
25 optional LiveKitConnectionInfo live_kit_connection_info = 3;
26}
27
28message RejoinRoom {
29 uint64 id = 1;
30 repeated UpdateProject reshared_projects = 2;
31 repeated RejoinProject rejoined_projects = 3;
32}
33
34message RejoinRemoteProjects {
35 repeated RejoinProject rejoined_projects = 1;
36}
37
38message RejoinRemoteProjectsResponse {
39 repeated RejoinedProject rejoined_projects = 1;
40}
41
42message RejoinProject {
43 uint64 id = 1;
44 repeated RejoinWorktree worktrees = 2;
45 repeated RejoinRepository repositories = 3;
46}
47
48message RejoinWorktree {
49 uint64 id = 1;
50 uint64 scan_id = 2;
51}
52
53message RejoinRepository {
54 uint64 id = 1;
55 uint64 scan_id = 2;
56}
57
58message RejoinRoomResponse {
59 Room room = 1;
60 repeated ResharedProject reshared_projects = 2;
61 repeated RejoinedProject rejoined_projects = 3;
62 // Field 4 (live_kit_connection_info) was used by the reverted channel-rejoin
63 // LiveKit token-refresh fix (#59388/#59195). Reserved so the number is not
64 // reused with an incompatible type if/when that fix is reattempted.
65 reserved 4;
66 reserved "live_kit_connection_info";
67}
68
69message ResharedProject {
70 uint64 id = 1;
71 repeated Collaborator collaborators = 2;
72}
73
74message RejoinedProject {
75 uint64 id = 1;
76 repeated WorktreeMetadata worktrees = 2;
77 repeated Collaborator collaborators = 3;
78 repeated LanguageServer language_servers = 4;
79 repeated string language_server_capabilities = 5;
80}
81
82message LeaveRoom {}
83
84message Room {
85 uint64 id = 1;
86 repeated Participant participants = 2;
87 repeated PendingParticipant pending_participants = 3;
88 repeated Follower followers = 4;
89 string livekit_room = 5;
90}
91
92message Participant {
93 uint64 user_id = 1;
94 PeerId peer_id = 2;
95 repeated ParticipantProject projects = 3;
96 ParticipantLocation location = 4;
97 uint32 participant_index = 5;
98 ChannelRole role = 6;
99 reserved 7;
100}
101
102message PendingParticipant {
103 uint64 user_id = 1;
104 uint64 calling_user_id = 2;
105 optional uint64 initial_project_id = 3;
106}
107
108message ParticipantProject {
109 uint64 id = 1;
110 repeated string worktree_root_names = 2;
111}
112
113message Follower {
114 PeerId leader_id = 1;
115 PeerId follower_id = 2;
116 uint64 project_id = 3;
117}
118
119message ParticipantLocation {
120 oneof variant {
121 SharedProject shared_project = 1;
122 UnsharedProject unshared_project = 2;
123 External external = 3;
124 }
125
126 message SharedProject {
127 uint64 id = 1;
128 }
129
130 message UnsharedProject {}
131
132 message External {}
133}
134
135message Call {
136 uint64 room_id = 1;
137 uint64 called_user_id = 2;
138 optional uint64 initial_project_id = 3;
139}
140
141message IncomingCall {
142 uint64 room_id = 1;
143 uint64 calling_user_id = 2;
144 repeated uint64 participant_user_ids = 3;
145 optional ParticipantProject initial_project = 4;
146}
147
148message CallCanceled {
149 uint64 room_id = 1;
150}
151
152message CancelCall {
153 uint64 room_id = 1;
154 uint64 called_user_id = 2;
155}
156
157message DeclineCall {
158 uint64 room_id = 1;
159}
160
161message UpdateParticipantLocation {
162 uint64 room_id = 1;
163 ParticipantLocation location = 2;
164}
165
166message RoomUpdated {
167 Room room = 1;
168}
169
170message LiveKitConnectionInfo {
171 string server_url = 1;
172 string token = 2;
173 bool can_publish = 3;
174}
175
176message ShareProject {
177 uint64 room_id = 1;
178 repeated WorktreeMetadata worktrees = 2;
179 reserved 3;
180 bool is_ssh_project = 4;
181 optional bool windows_paths = 5;
182 repeated string features = 6;
183}
184
185message ShareProjectResponse {
186 uint64 project_id = 1;
187}
188
189message UnshareProject {
190 uint64 project_id = 1;
191}
192
193message UpdateProject {
194 uint64 project_id = 1;
195 repeated WorktreeMetadata worktrees = 2;
196}
197
198message JoinProject {
199 uint64 project_id = 1;
200 optional string committer_email = 2;
201 optional string committer_name = 3;
202 repeated string features = 4;
203}
204
205message JoinProjectResponse {
206 uint64 project_id = 5;
207 uint32 replica_id = 1;
208 repeated WorktreeMetadata worktrees = 2;
209 repeated Collaborator collaborators = 3;
210 repeated LanguageServer language_servers = 4;
211 repeated string language_server_capabilities = 8;
212 ChannelRole role = 6;
213 bool windows_paths = 9;
214 repeated string features = 10;
215 reserved 7;
216}
217
218message LeaveProject {
219 uint64 project_id = 1;
220}
221
222message UpdateWorktree {
223 uint64 project_id = 1;
224 uint64 worktree_id = 2;
225 string root_name = 3;
226 repeated Entry updated_entries = 4;
227 repeated uint64 removed_entries = 5;
228 repeated RepositoryEntry updated_repositories = 6; // deprecated
229 repeated uint64 removed_repositories = 7; // deprecated
230 uint64 scan_id = 8;
231 bool is_last_update = 9;
232 string abs_path = 10;
233 optional string root_repo_common_dir = 11;
234 bool root_repo_is_linked_worktree = 12;
235}
236
237// deprecated
238message RepositoryEntry {
239 uint64 repository_id = 1;
240 reserved 2;
241 repeated StatusEntry updated_statuses = 3;
242 repeated string removed_statuses = 4;
243 repeated string current_merge_conflicts = 5;
244 optional Branch branch_summary = 6;
245}
246
247message AddProjectCollaborator {
248 uint64 project_id = 1;
249 Collaborator collaborator = 2;
250}
251
252message UpdateProjectCollaborator {
253 uint64 project_id = 1;
254 PeerId old_peer_id = 2;
255 PeerId new_peer_id = 3;
256}
257
258message RemoveProjectCollaborator {
259 uint64 project_id = 1;
260 PeerId peer_id = 2;
261}
262
263message GetUsers {
264 repeated uint64 user_ids = 1;
265}
266
267message FuzzySearchUsers {
268 string query = 1;
269}
270
271message UsersResponse {
272 repeated User users = 1;
273}
274
275message RequestContact {
276 uint64 responder_id = 1;
277}
278
279message RemoveContact {
280 uint64 user_id = 1;
281}
282
283message RespondToContactRequest {
284 uint64 requester_id = 1;
285 ContactRequestResponse response = 2;
286}
287
288enum ContactRequestResponse {
289 Accept = 0;
290 Decline = 1;
291 Block = 2;
292 Dismiss = 3;
293}
294
295message UpdateContacts {
296 repeated Contact contacts = 1;
297 repeated uint64 remove_contacts = 2;
298 repeated IncomingContactRequest incoming_requests = 3;
299 repeated uint64 remove_incoming_requests = 4;
300 repeated uint64 outgoing_requests = 5;
301 repeated uint64 remove_outgoing_requests = 6;
302}
303
304message ShowContacts {}
305
306message IncomingContactRequest {
307 uint64 requester_id = 1;
308}
309
310message Follow {
311 uint64 room_id = 1;
312 optional uint64 project_id = 2;
313 PeerId leader_id = 3;
314}
315
316message FollowResponse {
317 View active_view = 3;
318 reserved 1;
319 repeated View views = 2;
320}
321
322message UpdateFollowers {
323 uint64 room_id = 1;
324 optional uint64 project_id = 2;
325 reserved 3;
326 oneof variant {
327 View create_view = 5;
328 UpdateActiveView update_active_view = 4;
329 UpdateView update_view = 6;
330 }
331}
332
333message Unfollow {
334 uint64 room_id = 1;
335 optional uint64 project_id = 2;
336 PeerId leader_id = 3;
337}
338
339message ViewId {
340 PeerId creator = 1;
341 uint64 id = 2;
342}
343
344message UpdateActiveView {
345 reserved 1, 2;
346 View view = 3;
347}
348
349enum PanelId {
350 AssistantPanel = 0;
351 DebugPanel = 1;
352}
353
354message UpdateView {
355 ViewId id = 1;
356 optional PeerId leader_id = 2;
357
358 oneof variant {
359 Editor editor = 3;
360 }
361
362 message Editor {
363 repeated ExcerptInsertion inserted_excerpts = 1;
364 repeated uint64 deleted_excerpts = 2;
365 repeated Selection selections = 3;
366 optional Selection pending_selection = 4;
367 EditorAnchor scroll_top_anchor = 5;
368 reserved 6;
369 reserved 7;
370 double scroll_x = 8;
371 double scroll_y = 9;
372 repeated PathExcerpts updated_paths = 10;
373 repeated uint64 deleted_buffers = 11;
374 }
375}
376
377message View {
378 ViewId id = 1;
379 optional PeerId leader_id = 2;
380 optional PanelId panel_id = 6;
381
382 oneof variant {
383 Editor editor = 3;
384 ChannelView channel_view = 4;
385 }
386
387 reserved 5;
388
389 message Editor {
390 bool singleton = 1;
391 optional string title = 2;
392 repeated Excerpt excerpts = 3;
393 repeated Selection selections = 4;
394 optional Selection pending_selection = 5;
395 EditorAnchor scroll_top_anchor = 6;
396 reserved 7;
397 reserved 8;
398 double scroll_x = 9;
399 double scroll_y = 10;
400 repeated PathExcerpts path_excerpts = 11;
401 }
402
403 message ChannelView {
404 uint64 channel_id = 1;
405 Editor editor = 2;
406 }
407}
408
409message ExcerptInsertion {
410 Excerpt excerpt = 1;
411 optional uint64 previous_excerpt_id = 2;
412}
413
414message Excerpt {
415 uint64 id = 1;
416 uint64 buffer_id = 2;
417 Anchor context_start = 3;
418 Anchor context_end = 4;
419 Anchor primary_start = 5;
420 Anchor primary_end = 6;
421}
422
423message ExcerptRange {
424 Anchor context_start = 1;
425 Anchor context_end = 2;
426 Anchor primary_start = 3;
427 Anchor primary_end = 4;
428}
429
430message PathExcerpts {
431 PathKey path_key = 1;
432 uint64 buffer_id = 2;
433 repeated ExcerptRange ranges = 3;
434}
435
436message Contact {
437 uint64 user_id = 1;
438 bool online = 2;
439 bool busy = 3;
440}
441
442message SetRoomParticipantRole {
443 uint64 room_id = 1;
444 uint64 user_id = 2;
445 ChannelRole role = 3;
446}
447