mobbdev 1.1.44 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/LICENSE +1 -1
  2. package/dist/index.mjs +418 -75
  3. package/package.json +5 -2
  4. package/src/features/codeium_intellij/proto/buf/validate/validate.proto +504 -0
  5. package/src/features/codeium_intellij/proto/exa/auto_cascade_common_pb/auto_cascade_common.proto +81 -0
  6. package/src/features/codeium_intellij/proto/exa/bug_checker_pb/bug_checker.proto +24 -0
  7. package/src/features/codeium_intellij/proto/exa/cascade_plugins_pb/cascade_plugins.proto +108 -0
  8. package/src/features/codeium_intellij/proto/exa/chat_client_server_pb/chat_client_server.proto +56 -0
  9. package/src/features/codeium_intellij/proto/exa/chat_pb/chat.proto +457 -0
  10. package/src/features/codeium_intellij/proto/exa/code_edit/code_edit_pb/code_edit.proto +191 -0
  11. package/src/features/codeium_intellij/proto/exa/codeium_common_pb/codeium_common.proto +3783 -0
  12. package/src/features/codeium_intellij/proto/exa/context_module_pb/context_module.proto +172 -0
  13. package/src/features/codeium_intellij/proto/exa/cortex_pb/cortex.proto +3604 -0
  14. package/src/features/codeium_intellij/proto/exa/diff_action_pb/diff_action.proto +73 -0
  15. package/src/features/codeium_intellij/proto/exa/extension_server_pb/extension_server.proto +565 -0
  16. package/src/features/codeium_intellij/proto/exa/index_pb/index.proto +474 -0
  17. package/src/features/codeium_intellij/proto/exa/knowledge_base_pb/knowledge_base.proto +149 -0
  18. package/src/features/codeium_intellij/proto/exa/language_server_pb/language_server.proto +2504 -0
  19. package/src/features/codeium_intellij/proto/exa/opensearch_clients_pb/opensearch_clients.proto +505 -0
  20. package/src/features/codeium_intellij/proto/exa/product_analytics_pb/product_analytics.proto +31 -0
  21. package/src/features/codeium_intellij/proto/exa/reactive_component_pb/reactive_component.proto +104 -0
  22. package/src/features/codeium_intellij/proto/exa/seat_management_pb/seat_management.proto +2349 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "1.1.44",
3
+ "version": "1.2.0",
4
4
  "description": "Automated secure code remediation tool",
5
5
  "repository": "git+https://github.com/mobb-dev/bugsy.git",
6
6
  "main": "dist/index.mjs",
@@ -53,6 +53,8 @@
53
53
  "dependencies": {
54
54
  "@gitbeaker/requester-utils": "43.8.0",
55
55
  "@gitbeaker/rest": "43.8.0",
56
+ "@grpc/grpc-js": "1.14.3",
57
+ "@grpc/proto-loader": "0.8.0",
56
58
  "@modelcontextprotocol/sdk": "1.25.2",
57
59
  "@octokit/core": "5.2.0",
58
60
  "@octokit/request-error": "5.1.1",
@@ -146,6 +148,7 @@
146
148
  "bin/cli.mjs",
147
149
  "dist",
148
150
  ".env",
149
- "src/post_install"
151
+ "src/post_install",
152
+ "src/features/codeium_intellij/proto/**/*.proto"
150
153
  ]
151
154
  }
@@ -0,0 +1,504 @@
1
+ syntax = "proto2";
2
+
3
+ package buf.validate;
4
+
5
+ import "google/protobuf/descriptor.proto";
6
+ import "google/protobuf/duration.proto";
7
+ import "google/protobuf/timestamp.proto";
8
+
9
+ option go_package = "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate";
10
+ option java_multiple_files = true;
11
+ option java_outer_classname = "ValidateProto";
12
+ option java_package = "build.buf.validate";
13
+
14
+ message Rule {
15
+ optional string id = 1;
16
+ optional string message = 2;
17
+ optional string expression = 3;
18
+ }
19
+
20
+ message MessageRules {
21
+ optional bool disabled = 1;
22
+ repeated Rule cel = 3;
23
+ }
24
+
25
+ message OneofRules {
26
+ optional bool required = 1;
27
+ }
28
+
29
+ message FieldRules {
30
+ repeated Rule cel = 23;
31
+ optional bool required = 25;
32
+ optional Ignore ignore = 27;
33
+
34
+ oneof type {
35
+ FloatRules float = 1;
36
+ DoubleRules double = 2;
37
+ Int32Rules int32 = 3;
38
+ Int64Rules int64 = 4;
39
+ UInt32Rules uint32 = 5;
40
+ UInt64Rules uint64 = 6;
41
+ SInt32Rules sint32 = 7;
42
+ SInt64Rules sint64 = 8;
43
+ Fixed32Rules fixed32 = 9;
44
+ Fixed64Rules fixed64 = 10;
45
+ SFixed32Rules sfixed32 = 11;
46
+ SFixed64Rules sfixed64 = 12;
47
+ BoolRules bool = 13;
48
+ StringRules string = 14;
49
+ BytesRules bytes = 15;
50
+ EnumRules enum = 16;
51
+ RepeatedRules repeated = 18;
52
+ MapRules map = 19;
53
+ AnyRules any = 20;
54
+ DurationRules duration = 21;
55
+ TimestampRules timestamp = 22;
56
+ }
57
+
58
+ reserved 24, 26;
59
+
60
+ reserved "skipped", "ignore_empty";
61
+ }
62
+
63
+ message PredefinedRules {
64
+ repeated Rule cel = 1;
65
+
66
+ reserved 24, 26;
67
+
68
+ reserved "skippedignore_empty";
69
+ }
70
+
71
+ message FloatRules {
72
+ optional float const = 1;
73
+ repeated float in = 6;
74
+ repeated float not_in = 7;
75
+ optional bool finite = 8;
76
+ repeated float example = 9;
77
+
78
+ oneof less_than {
79
+ float lt = 2;
80
+ float lte = 3;
81
+ }
82
+
83
+ oneof greater_than {
84
+ float gt = 4;
85
+ float gte = 5;
86
+ }
87
+
88
+ extensions 1000 to max;
89
+ }
90
+
91
+ message DoubleRules {
92
+ optional double const = 1;
93
+ repeated double in = 6;
94
+ repeated double not_in = 7;
95
+ optional bool finite = 8;
96
+ repeated double example = 9;
97
+
98
+ oneof less_than {
99
+ double lt = 2;
100
+ double lte = 3;
101
+ }
102
+
103
+ oneof greater_than {
104
+ double gt = 4;
105
+ double gte = 5;
106
+ }
107
+
108
+ extensions 1000 to max;
109
+ }
110
+
111
+ message Int32Rules {
112
+ optional int32 const = 1;
113
+ repeated int32 in = 6;
114
+ repeated int32 not_in = 7;
115
+ repeated int32 example = 8;
116
+
117
+ oneof less_than {
118
+ int32 lt = 2;
119
+ int32 lte = 3;
120
+ }
121
+
122
+ oneof greater_than {
123
+ int32 gt = 4;
124
+ int32 gte = 5;
125
+ }
126
+
127
+ extensions 1000 to max;
128
+ }
129
+
130
+ message Int64Rules {
131
+ optional int64 const = 1;
132
+ repeated int64 in = 6;
133
+ repeated int64 not_in = 7;
134
+ repeated int64 example = 9;
135
+
136
+ oneof less_than {
137
+ int64 lt = 2;
138
+ int64 lte = 3;
139
+ }
140
+
141
+ oneof greater_than {
142
+ int64 gt = 4;
143
+ int64 gte = 5;
144
+ }
145
+
146
+ extensions 1000 to max;
147
+ }
148
+
149
+ message UInt32Rules {
150
+ optional uint32 const = 1;
151
+ repeated uint32 in = 6;
152
+ repeated uint32 not_in = 7;
153
+ repeated uint32 example = 8;
154
+
155
+ oneof less_than {
156
+ uint32 lt = 2;
157
+ uint32 lte = 3;
158
+ }
159
+
160
+ oneof greater_than {
161
+ uint32 gt = 4;
162
+ uint32 gte = 5;
163
+ }
164
+
165
+ extensions 1000 to max;
166
+ }
167
+
168
+ message UInt64Rules {
169
+ optional uint64 const = 1;
170
+ repeated uint64 in = 6;
171
+ repeated uint64 not_in = 7;
172
+ repeated uint64 example = 8;
173
+
174
+ oneof less_than {
175
+ uint64 lt = 2;
176
+ uint64 lte = 3;
177
+ }
178
+
179
+ oneof greater_than {
180
+ uint64 gt = 4;
181
+ uint64 gte = 5;
182
+ }
183
+
184
+ extensions 1000 to max;
185
+ }
186
+
187
+ message SInt32Rules {
188
+ optional sint32 const = 1;
189
+ repeated sint32 in = 6;
190
+ repeated sint32 not_in = 7;
191
+ repeated sint32 example = 8;
192
+
193
+ oneof less_than {
194
+ sint32 lt = 2;
195
+ sint32 lte = 3;
196
+ }
197
+
198
+ oneof greater_than {
199
+ sint32 gt = 4;
200
+ sint32 gte = 5;
201
+ }
202
+
203
+ extensions 1000 to max;
204
+ }
205
+
206
+ message SInt64Rules {
207
+ optional sint64 const = 1;
208
+ repeated sint64 in = 6;
209
+ repeated sint64 not_in = 7;
210
+ repeated sint64 example = 8;
211
+
212
+ oneof less_than {
213
+ sint64 lt = 2;
214
+ sint64 lte = 3;
215
+ }
216
+
217
+ oneof greater_than {
218
+ sint64 gt = 4;
219
+ sint64 gte = 5;
220
+ }
221
+
222
+ extensions 1000 to max;
223
+ }
224
+
225
+ message Fixed32Rules {
226
+ optional fixed32 const = 1;
227
+ repeated fixed32 in = 6;
228
+ repeated fixed32 not_in = 7;
229
+ repeated fixed32 example = 8;
230
+
231
+ oneof less_than {
232
+ fixed32 lt = 2;
233
+ fixed32 lte = 3;
234
+ }
235
+
236
+ oneof greater_than {
237
+ fixed32 gt = 4;
238
+ fixed32 gte = 5;
239
+ }
240
+
241
+ extensions 1000 to max;
242
+ }
243
+
244
+ message Fixed64Rules {
245
+ optional fixed64 const = 1;
246
+ repeated fixed64 in = 6;
247
+ repeated fixed64 not_in = 7;
248
+ repeated fixed64 example = 8;
249
+
250
+ oneof less_than {
251
+ fixed64 lt = 2;
252
+ fixed64 lte = 3;
253
+ }
254
+
255
+ oneof greater_than {
256
+ fixed64 gt = 4;
257
+ fixed64 gte = 5;
258
+ }
259
+
260
+ extensions 1000 to max;
261
+ }
262
+
263
+ message SFixed32Rules {
264
+ optional sfixed32 const = 1;
265
+ repeated sfixed32 in = 6;
266
+ repeated sfixed32 not_in = 7;
267
+ repeated sfixed32 example = 8;
268
+
269
+ oneof less_than {
270
+ sfixed32 lt = 2;
271
+ sfixed32 lte = 3;
272
+ }
273
+
274
+ oneof greater_than {
275
+ sfixed32 gt = 4;
276
+ sfixed32 gte = 5;
277
+ }
278
+
279
+ extensions 1000 to max;
280
+ }
281
+
282
+ message SFixed64Rules {
283
+ optional sfixed64 const = 1;
284
+ repeated sfixed64 in = 6;
285
+ repeated sfixed64 not_in = 7;
286
+ repeated sfixed64 example = 8;
287
+
288
+ oneof less_than {
289
+ sfixed64 lt = 2;
290
+ sfixed64 lte = 3;
291
+ }
292
+
293
+ oneof greater_than {
294
+ sfixed64 gt = 4;
295
+ sfixed64 gte = 5;
296
+ }
297
+
298
+ extensions 1000 to max;
299
+ }
300
+
301
+ message BoolRules {
302
+ optional bool const = 1;
303
+ repeated bool example = 2;
304
+
305
+ extensions 1000 to max;
306
+ }
307
+
308
+ message StringRules {
309
+ optional string const = 1;
310
+ optional uint64 len = 19;
311
+ optional uint64 min_len = 2;
312
+ optional uint64 max_len = 3;
313
+ optional uint64 len_bytes = 20;
314
+ optional uint64 min_bytes = 4;
315
+ optional uint64 max_bytes = 5;
316
+ optional string pattern = 6;
317
+ optional string prefix = 7;
318
+ optional string suffix = 8;
319
+ optional string contains = 9;
320
+ optional string not_contains = 23;
321
+ repeated string in = 10;
322
+ repeated string not_in = 11;
323
+ optional bool strict = 25;
324
+ repeated string example = 34;
325
+
326
+ oneof well_known {
327
+ bool email = 12;
328
+ bool hostname = 13;
329
+ bool ip = 14;
330
+ bool ipv4 = 15;
331
+ bool ipv6 = 16;
332
+ bool uri = 17;
333
+ bool uri_ref = 18;
334
+ bool address = 21;
335
+ bool uuid = 22;
336
+ bool tuuid = 33;
337
+ bool ip_with_prefixlen = 26;
338
+ bool ipv4_with_prefixlen = 27;
339
+ bool ipv6_with_prefixlen = 28;
340
+ bool ip_prefix = 29;
341
+ bool ipv4_prefix = 30;
342
+ bool ipv6_prefix = 31;
343
+ bool host_and_port = 32;
344
+ KnownRegex well_known_regex = 24;
345
+ }
346
+
347
+ extensions 1000 to max;
348
+ }
349
+
350
+ message BytesRules {
351
+ optional bytes const = 1;
352
+ optional uint64 len = 13;
353
+ optional uint64 min_len = 2;
354
+ optional uint64 max_len = 3;
355
+ optional string pattern = 4;
356
+ optional bytes prefix = 5;
357
+ optional bytes suffix = 6;
358
+ optional bytes contains = 7;
359
+ repeated bytes in = 8;
360
+ repeated bytes not_in = 9;
361
+ repeated bytes example = 14;
362
+
363
+ oneof well_known {
364
+ bool ip = 10;
365
+ bool ipv4 = 11;
366
+ bool ipv6 = 12;
367
+ }
368
+
369
+ extensions 1000 to max;
370
+ }
371
+
372
+ message EnumRules {
373
+ optional int32 const = 1;
374
+ optional bool defined_only = 2;
375
+ repeated int32 in = 3;
376
+ repeated int32 not_in = 4;
377
+ repeated int32 example = 5;
378
+
379
+ extensions 1000 to max;
380
+ }
381
+
382
+ message RepeatedRules {
383
+ optional uint64 min_items = 1;
384
+ optional uint64 max_items = 2;
385
+ optional bool unique = 3;
386
+ optional FieldRules items = 4;
387
+
388
+ extensions 1000 to max;
389
+ }
390
+
391
+ message MapRules {
392
+ optional uint64 min_pairs = 1;
393
+ optional uint64 max_pairs = 2;
394
+ optional FieldRules keys = 4;
395
+ optional FieldRules values = 5;
396
+
397
+ extensions 1000 to max;
398
+ }
399
+
400
+ message AnyRules {
401
+ repeated string in = 2;
402
+ repeated string not_in = 3;
403
+ }
404
+
405
+ message DurationRules {
406
+ optional google.protobuf.Duration const = 2;
407
+ repeated google.protobuf.Duration in = 7;
408
+ repeated google.protobuf.Duration not_in = 8;
409
+ repeated google.protobuf.Duration example = 9;
410
+
411
+ oneof less_than {
412
+ google.protobuf.Duration lt = 3;
413
+ google.protobuf.Duration lte = 4;
414
+ }
415
+
416
+ oneof greater_than {
417
+ google.protobuf.Duration gt = 5;
418
+ google.protobuf.Duration gte = 6;
419
+ }
420
+
421
+ extensions 1000 to max;
422
+ }
423
+
424
+ message TimestampRules {
425
+ optional google.protobuf.Timestamp const = 2;
426
+ optional google.protobuf.Duration within = 9;
427
+ repeated google.protobuf.Timestamp example = 10;
428
+
429
+ oneof less_than {
430
+ google.protobuf.Timestamp lt = 3;
431
+ google.protobuf.Timestamp lte = 4;
432
+ bool lt_now = 7;
433
+ }
434
+
435
+ oneof greater_than {
436
+ google.protobuf.Timestamp gt = 5;
437
+ google.protobuf.Timestamp gte = 6;
438
+ bool gt_now = 8;
439
+ }
440
+
441
+ extensions 1000 to max;
442
+ }
443
+
444
+ message Violations {
445
+ repeated Violation violations = 1;
446
+ }
447
+
448
+ message Violation {
449
+ optional FieldPath field = 5;
450
+ optional FieldPath rule = 6;
451
+ optional string rule_id = 2;
452
+ optional string message = 3;
453
+ optional bool for_key = 4;
454
+
455
+ reserved 1;
456
+
457
+ reserved "field_path";
458
+ }
459
+
460
+ message FieldPath {
461
+ repeated FieldPathElement elements = 1;
462
+ }
463
+
464
+ message FieldPathElement {
465
+ optional int32 field_number = 1;
466
+ optional string field_name = 2;
467
+ optional google.protobuf.FieldDescriptorProto.Type field_type = 3;
468
+ optional google.protobuf.FieldDescriptorProto.Type key_type = 4;
469
+ optional google.protobuf.FieldDescriptorProto.Type value_type = 5;
470
+
471
+ oneof subscript {
472
+ uint64 index = 6;
473
+ bool bool_key = 7;
474
+ int64 int_key = 8;
475
+ uint64 uint_key = 9;
476
+ string string_key = 10;
477
+ }
478
+ }
479
+
480
+ enum Ignore {
481
+ IGNORE_UNSPECIFIED = 0;
482
+ IGNORE_IF_UNPOPULATED = 1;
483
+ IGNORE_IF_DEFAULT_VALUE = 2;
484
+ IGNORE_ALWAYS = 3;
485
+ }
486
+
487
+ enum KnownRegex {
488
+ KNOWN_REGEX_UNSPECIFIED = 0;
489
+ KNOWN_REGEX_HTTP_HEADER_NAME = 1;
490
+ KNOWN_REGEX_HTTP_HEADER_VALUE = 2;
491
+ }
492
+
493
+ extend google.protobuf.MessageOptions {
494
+ optional MessageRules message = 1159;
495
+ }
496
+
497
+ extend google.protobuf.OneofOptions {
498
+ optional OneofRules oneof = 1159;
499
+ }
500
+
501
+ extend google.protobuf.FieldOptions {
502
+ optional FieldRules field = 1159;
503
+ optional PredefinedRules predefined = 1160;
504
+ }
@@ -0,0 +1,81 @@
1
+ syntax = "proto3";
2
+
3
+ package exa.auto_cascade_common_pb;
4
+
5
+ import "buf/validate/validate.proto";
6
+ import "exa/cortex_pb/cortex.proto";
7
+ import "google/protobuf/timestamp.proto";
8
+
9
+ option go_package = "github.com/Exafunction/Exafunction/exa/auto_cascade_common_pb";
10
+
11
+ message GitRepoInfo {
12
+ string repo_name = 1;
13
+ string branch = 2;
14
+ string commit = 3;
15
+ string pr_url = 4;
16
+ }
17
+
18
+ message SessionInfo {
19
+ string session_id = 1;
20
+ string explanation = 2;
21
+ string ssh_url = 3;
22
+ cortex_pb.CascadeRunStatus status = 4;
23
+ string summary = 5;
24
+ cortex_pb.CortexTrajectory trajectory = 6;
25
+ string session_key = 7;
26
+ google.protobuf.Timestamp created_at = 8;
27
+ repeated GitRepoInfo git_repos = 9;
28
+ google.protobuf.Timestamp updated_at = 10;
29
+ }
30
+
31
+ message SessionInfos {
32
+ map<string, SessionInfo> sessions = 1;
33
+ }
34
+
35
+ message GithubPullRequestInfo {
36
+ string url = 1;
37
+ string owner = 2;
38
+ string repo = 3;
39
+ string title = 4;
40
+ string number = 5;
41
+ GithubCICheckStatus ci_status = 6;
42
+ GithubPullRequestBranchStatus branch_status = 7;
43
+ google.protobuf.Timestamp updated_at = 8;
44
+ }
45
+
46
+ message GithubInstallationInfo {
47
+ string installation_id = 1;
48
+ string organization_name = 2;
49
+ }
50
+
51
+ enum BranchStatus {
52
+ BRANCH_STATUS_UNSPECIFIED = 0;
53
+ BRANCH_STATUS_NO_PR = 1;
54
+ BRANCH_STATUS_PR_OPEN = 2;
55
+ BRANCH_STATUS_PR_CLOSED = 3;
56
+ BRANCH_STATUS_PR_MERGED = 4;
57
+ BRANCH_STATUS_HAS_SUGGESTION = 5;
58
+ }
59
+
60
+ enum CommentType {
61
+ COMMENT_TYPE_UNSPECIFIED = 0;
62
+ COMMENT_TYPE_MANUAL_REVIEW_TRIGGER = 1;
63
+ COMMENT_TYPE_LGTM = 2;
64
+ COMMENT_TYPE_REVIEW_BODY = 3;
65
+ COMMENT_TYPE_REVIEW_COMMENT = 4;
66
+ }
67
+
68
+ enum GithubCICheckStatus {
69
+ GITHUB_CI_CHECK_STATUS_UNSPECIFIED = 0;
70
+ GITHUB_CI_CHECK_STATUS_SUCCESS = 1;
71
+ GITHUB_CI_CHECK_STATUS_FAILED = 2;
72
+ GITHUB_CI_CHECK_STATUS_PENDING = 3;
73
+ }
74
+
75
+ enum GithubPullRequestBranchStatus {
76
+ GITHUB_PULL_REQUEST_BRANCH_STATUS_UNSPECIFIED = 0;
77
+ GITHUB_PULL_REQUEST_BRANCH_STATUS_OPEN = 1;
78
+ GITHUB_PULL_REQUEST_BRANCH_STATUS_CLOSED = 2;
79
+ GITHUB_PULL_REQUEST_BRANCH_STATUS_DRAFT = 3;
80
+ GITHUB_PULL_REQUEST_BRANCH_STATUS_MERGED = 4;
81
+ }
@@ -0,0 +1,24 @@
1
+ syntax = "proto3";
2
+
3
+ package exa.bug_checker_pb;
4
+
5
+ option go_package = "github.com/Exafunction/Exafunction/exa/bug_checker_pb";
6
+
7
+ message Fix {
8
+ string old_str = 1;
9
+ string new_str = 2;
10
+ }
11
+
12
+ message Bug {
13
+ string id = 1;
14
+ string file = 2;
15
+ int32 start = 3;
16
+ int32 end = 4;
17
+ string title = 5;
18
+ string description = 6;
19
+ string severity = 7;
20
+ string resolution = 8;
21
+ double confidence = 9;
22
+ repeated string categories = 10;
23
+ Fix fix = 11;
24
+ }