Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T06:08:32.404Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

debugger.proto

554 lines · 11.2 KB · text
1syntax = "proto3";
2package zed.messages;
3
4import "buffer.proto";
5import "task.proto";
6
7enum BreakpointState {
8  Enabled = 0;
9  Disabled = 1;
10}
11
12message Breakpoint {
13  Anchor position = 1;
14  BreakpointState state = 2;
15  reserved 3;
16  optional string message = 4;
17  optional string condition = 5;
18  optional string hit_condition = 6;
19  map<uint64, BreakpointSessionState> session_state = 7;
20}
21
22message BreakpointSessionState {
23  uint64 id = 1;
24  bool verified = 2;
25}
26
27message BreakpointsForFile {
28  uint64 project_id = 1;
29  string path = 2;
30  repeated Breakpoint breakpoints = 3;
31}
32
33message ToggleBreakpoint {
34  uint64 project_id = 1;
35  string path = 2;
36  Breakpoint breakpoint = 3;
37}
38
39enum DapThreadStatus {
40  Running = 0;
41  Stopped = 1;
42  Exited = 2;
43  Ended = 3;
44}
45
46enum VariablesArgumentsFilter {
47  Indexed = 0;
48  Named = 1;
49}
50
51message ValueFormat {
52  optional bool hex = 1;
53}
54
55message VariablesRequest {
56  uint64 project_id = 1;
57  uint64 client_id = 2;
58  uint64 variables_reference = 3;
59  optional VariablesArgumentsFilter filter = 4;
60  optional uint64 start = 5;
61  optional uint64 count = 6;
62  optional ValueFormat format = 7;
63}
64
65enum SteppingGranularity {
66  Statement = 0;
67  Line = 1;
68  Instruction = 2;
69}
70
71message DapLocationsRequest {
72  uint64 project_id = 1;
73  uint64 session_id = 2;
74  uint64 location_reference = 3;
75}
76
77message DapLocationsResponse {
78  DapSource source = 1;
79  uint64 line = 2;
80  optional uint64 column = 3;
81  optional uint64 end_line = 4;
82  optional uint64 end_column = 5;
83}
84
85enum DapEvaluateContext {
86  Repl = 0;
87  Watch = 1;
88  Hover = 2;
89  Clipboard = 3;
90  EvaluateVariables = 4;
91  EvaluateUnknown = 5;
92}
93
94message DapEvaluateRequest {
95  uint64 project_id = 1;
96  uint64 client_id = 2;
97  string expression = 3;
98  optional uint64 frame_id = 4;
99  optional DapEvaluateContext context = 5;
100}
101
102message DapEvaluateResponse {
103  string result = 1;
104  optional string evaluate_type = 2;
105  uint64 variable_reference = 3;
106  optional uint64 named_variables = 4;
107  optional uint64 indexed_variables = 5;
108  optional string memory_reference = 6;
109}
110
111message DapCompletionRequest {
112  uint64 project_id = 1;
113  uint64 client_id = 2;
114  string query = 3;
115  optional uint64 frame_id = 4;
116  optional uint64 line = 5;
117  uint64 column = 6;
118}
119
120enum DapCompletionItemType {
121  Method = 0;
122  Function = 1;
123  Constructor = 2;
124  Field = 3;
125  Variable = 4;
126  Class = 5;
127  Interface = 6;
128  Module = 7;
129  Property = 8;
130  Unit = 9;
131  Value = 10;
132  Enum = 11;
133  Keyword = 12;
134  Snippet = 13;
135  Text = 14;
136  Color = 15;
137  CompletionItemFile = 16;
138  Reference = 17;
139  Customcolor = 19;
140}
141
142message DapCompletionItem {
143  string label = 1;
144  optional string text = 2;
145  optional string sort_text = 3;
146  optional string detail = 4;
147  optional DapCompletionItemType typ = 5;
148  optional uint64 start = 6;
149  optional uint64 length = 7;
150  optional uint64 selection_start = 8;
151  optional uint64 selection_length = 9;
152}
153
154message DapCompletionResponse {
155  uint64 client_id = 1;
156  repeated DapCompletionItem completions = 2;
157}
158
159message DapScopesRequest {
160  uint64 project_id = 1;
161  uint64 client_id = 2;
162  uint64 stack_frame_id = 3;
163}
164
165message DapScopesResponse {
166  repeated DapScope scopes = 1;
167}
168
169message DapSetVariableValueRequest {
170  uint64 project_id = 1;
171  uint64 client_id = 2;
172  string name = 3;
173  string value = 4;
174  uint64 variables_reference = 5;
175}
176
177message DapSetVariableValueResponse {
178  uint64 client_id = 1;
179  string value = 2;
180  optional string variable_type = 3;
181  optional uint64 variables_reference = 4;
182  optional uint64 named_variables = 5;
183  optional uint64 indexed_variables = 6;
184  optional string memory_reference = 7;
185}
186
187message DapPauseRequest {
188  uint64 project_id = 1;
189  uint64 client_id = 2;
190  int64 thread_id = 3;
191}
192
193message DapDisconnectRequest {
194  uint64 project_id = 1;
195  uint64 client_id = 2;
196  optional bool restart = 3;
197  optional bool terminate_debuggee = 4;
198  optional bool suspend_debuggee = 5;
199}
200
201message DapTerminateThreadsRequest {
202  uint64 project_id = 1;
203  uint64 client_id = 2;
204  repeated int64 thread_ids = 3;
205}
206
207message DapThreadsRequest {
208  uint64 project_id = 1;
209  uint64 client_id = 2;
210}
211
212message DapThreadsResponse {
213  repeated DapThread threads = 1;
214}
215
216message DapTerminateRequest {
217  uint64 project_id = 1;
218  uint64 client_id = 2;
219  optional bool restart = 3;
220}
221
222message DapRestartRequest {
223  uint64 project_id = 1;
224  uint64 client_id = 2;
225  bytes raw_args = 3;
226}
227
228message DapRestartStackFrameRequest {
229  uint64 project_id = 1;
230  uint64 client_id = 2;
231  uint64 stack_frame_id = 3;
232}
233
234message ToggleIgnoreBreakpoints {
235  uint64 project_id = 1;
236  uint32 session_id = 2;
237}
238
239message IgnoreBreakpointState {
240  uint64 project_id = 1;
241  uint64 session_id = 2;
242  bool ignore = 3;
243}
244
245message DapNextRequest {
246  uint64 project_id = 1;
247  uint64 client_id = 2;
248  int64 thread_id = 3;
249  optional bool single_thread = 4;
250  optional SteppingGranularity granularity = 5;
251}
252
253message DapStepInRequest {
254  uint64 project_id = 1;
255  uint64 client_id = 2;
256  int64 thread_id = 3;
257  optional uint64 target_id = 4;
258  optional bool single_thread = 5;
259  optional SteppingGranularity granularity = 6;
260}
261
262message DapStepOutRequest {
263  uint64 project_id = 1;
264  uint64 client_id = 2;
265  int64 thread_id = 3;
266  optional bool single_thread = 4;
267  optional SteppingGranularity granularity = 5;
268}
269
270message DapStepBackRequest {
271  uint64 project_id = 1;
272  uint64 client_id = 2;
273  int64 thread_id = 3;
274  optional bool single_thread = 4;
275  optional SteppingGranularity granularity = 5;
276}
277
278message DapContinueRequest {
279  uint64 project_id = 1;
280  uint64 client_id = 2;
281  int64 thread_id = 3;
282  optional bool single_thread = 4;
283}
284
285message DapContinueResponse {
286  uint64 client_id = 1;
287  optional bool all_threads_continued = 2;
288}
289
290message DapModulesRequest {
291  uint64 project_id = 1;
292  uint64 client_id = 2;
293}
294
295message DapModulesResponse {
296  uint64 client_id = 1;
297  repeated DapModule modules = 2;
298}
299
300message DapLoadedSourcesRequest {
301  uint64 project_id = 1;
302  uint64 client_id = 2;
303}
304
305message DapLoadedSourcesResponse {
306  uint64 client_id = 1;
307  repeated DapSource sources = 2;
308}
309
310message DapStackTraceRequest {
311  uint64 project_id = 1;
312  uint64 client_id = 2;
313  int64 thread_id = 3;
314  optional uint64 start_frame = 4;
315  optional uint64 stack_trace_levels = 5;
316}
317
318message DapStackTraceResponse {
319  repeated DapStackFrame frames = 1;
320}
321
322message DapStackFrame {
323  uint64 id = 1;
324  string name = 2;
325  optional DapSource source = 3;
326  uint64 line = 4;
327  uint64 column = 5;
328  optional uint64 end_line = 6;
329  optional uint64 end_column = 7;
330  optional bool can_restart = 8;
331  optional string instruction_pointer_reference = 9;
332  optional DapModuleId module_id = 10;
333  optional DapStackPresentationHint presentation_hint = 11;
334}
335
336message DebuggerLoadedSourceList {
337  uint64 client_id = 1;
338  repeated DapSource sources = 2;
339}
340
341message DapVariables {
342  uint64 client_id = 1;
343  repeated DapVariable variables = 2;
344}
345
346// Remote Debugging: Dap Types
347message DapVariable {
348  string name = 1;
349  string value = 2;
350  optional string type = 3;
351  // optional DapVariablePresentationHint presentation_hint = 4;
352  optional string evaluate_name = 5;
353  uint64 variables_reference = 6;
354  optional uint64 named_variables = 7;
355  optional uint64 indexed_variables = 8;
356  optional string memory_reference = 9;
357}
358
359message DapThread {
360  int64 id = 1;
361  string name = 2;
362}
363
364message DapScope {
365  string name = 1;
366  optional DapScopePresentationHint presentation_hint = 2;
367  uint64 variables_reference = 3;
368  optional uint64 named_variables = 4;
369  optional uint64 indexed_variables = 5;
370  bool expensive = 6;
371  optional DapSource source = 7;
372  optional uint64 line = 8;
373  optional uint64 column = 9;
374  optional uint64 end_line = 10;
375  optional uint64 end_column = 11;
376}
377
378message DapSource {
379  optional string name = 1;
380  optional string path = 2;
381  optional uint64 source_reference = 3;
382  optional DapSourcePresentationHint presentation_hint = 4;
383  optional string origin = 5;
384  repeated DapSource sources = 6;
385  optional bytes adapter_data = 7;
386  repeated DapChecksum checksums = 8;
387}
388
389enum DapOutputCategory {
390  ConsoleOutput = 0;
391  Important = 1;
392  Stdout = 2;
393  Stderr = 3;
394  Unknown = 4;
395}
396
397enum DapOutputEventGroup {
398  Start = 0;
399  StartCollapsed = 1;
400  End = 2;
401}
402
403message DapOutputEvent {
404  string output = 1;
405  optional DapOutputCategory category = 2;
406  optional uint64 variables_reference = 3;
407  optional DapOutputEventGroup group = 4;
408  optional DapSource source = 5;
409  optional uint32 line = 6;
410  optional uint32 column = 7;
411}
412
413enum DapChecksumAlgorithm {
414  CHECKSUM_ALGORITHM_UNSPECIFIED = 0;
415  MD5 = 1;
416  SHA1 = 2;
417  SHA256 = 3;
418  TIMESTAMP = 4;
419}
420
421message DapChecksum {
422  DapChecksumAlgorithm algorithm = 1;
423  string checksum = 2;
424}
425
426enum DapScopePresentationHint {
427  Arguments = 0;
428  Locals = 1;
429  Registers = 2;
430  ReturnValue = 3;
431  ScopeUnknown = 4;
432}
433
434enum DapSourcePresentationHint {
435  SourceNormal = 0;
436  Emphasize = 1;
437  Deemphasize = 2;
438  SourceUnknown = 3;
439}
440
441enum DapStackPresentationHint {
442  StackNormal = 0;
443  Label = 1;
444  Subtle = 2;
445  StackUnknown = 3;
446}
447message DapModule {
448  DapModuleId id = 1;
449  string name = 2;
450  optional string path = 3;
451  optional bool is_optimized = 4;
452  optional bool is_user_code = 5;
453  optional string version = 6;
454  optional string symbol_status = 7;
455  optional string symbol_file_path = 8;
456  optional string date_time_stamp = 9;
457  optional string address_range = 10;
458}
459
460message DebugTaskDefinition {
461  string adapter = 1;
462  string label = 2;
463  string config = 3;
464  optional TcpHost tcp_connection = 4;
465}
466
467message TcpHost {
468  optional uint32 port = 1;
469  optional string host = 2;
470  optional uint64 timeout = 3;
471}
472
473message DebugLaunchRequest {
474  string program = 1;
475  optional string cwd = 2;
476  repeated string args = 3;
477  map<string, string> env = 4;
478}
479
480message DebugAttachRequest {
481  uint32 process_id = 1;
482}
483
484message DapModuleId {
485  oneof id {
486    uint32 number = 1;
487    string string = 2;
488  }
489}
490
491message GetDebugAdapterBinary {
492  uint64 project_id = 1;
493  uint64 session_id = 3;
494  DebugTaskDefinition definition = 2;
495  uint64 worktree_id = 4;
496}
497
498message DebugAdapterBinary {
499  optional string command = 1;
500  repeated string arguments = 2;
501  map<string, string> envs = 3;
502  optional string cwd = 4;
503  optional TcpHost connection = 5;
504  string configuration = 7;
505  LaunchType launch_type = 8;
506  enum LaunchType {
507    Attach = 0;
508    Launch = 1;
509  }
510}
511
512message RunDebugLocators {
513  uint64 project_id = 1;
514  SpawnInTerminal build_command = 2;
515  string locator = 3;
516}
517
518message DebugRequest {
519  oneof request {
520    DebugLaunchRequest debug_launch_request = 1;
521    DebugAttachRequest debug_attach_request = 2;
522  }
523}
524
525message DebugScenario {
526  string label = 1;
527  string adapter = 2;
528  reserved 3;
529  DebugRequest request = 4;
530  optional TcpHost connection = 5;
531  optional bool stop_on_entry = 6;
532  optional string configuration = 7;
533}
534
535message LogToDebugConsole {
536  uint64 project_id = 1;
537  uint64 session_id = 2;
538  string message = 3;
539}
540
541message GetProcesses {
542  uint64 project_id = 1;
543}
544
545message GetProcessesResponse {
546  repeated ProcessInfo processes = 1;
547}
548
549message ProcessInfo {
550  uint32 pid = 1;
551  string name = 2;
552  repeated string command = 3;
553}
554
Served at tenant.openagents/omega Member data and write actions are omitted.