@mobb.ai/cli 1.4.49 → 1.4.50
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.
- package/.env +10 -0
- package/LICENSE +21 -0
- package/README.md +210 -78
- package/bin/cli.mjs +2 -0
- package/dist/args/commands/upload_ai_blame.d.mts +164 -0
- package/dist/args/commands/upload_ai_blame.mjs +6614 -0
- package/dist/hash_search/index.d.mts +10 -0
- package/dist/hash_search/index.mjs +112 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +29052 -0
- package/package.json +160 -19
- package/src/features/codeium_intellij/proto/buf/validate/validate.proto +504 -0
- package/src/features/codeium_intellij/proto/exa/auto_cascade_common_pb/auto_cascade_common.proto +81 -0
- package/src/features/codeium_intellij/proto/exa/bug_checker_pb/bug_checker.proto +24 -0
- package/src/features/codeium_intellij/proto/exa/cascade_plugins_pb/cascade_plugins.proto +108 -0
- package/src/features/codeium_intellij/proto/exa/chat_client_server_pb/chat_client_server.proto +56 -0
- package/src/features/codeium_intellij/proto/exa/chat_pb/chat.proto +457 -0
- package/src/features/codeium_intellij/proto/exa/code_edit/code_edit_pb/code_edit.proto +191 -0
- package/src/features/codeium_intellij/proto/exa/codeium_common_pb/codeium_common.proto +3783 -0
- package/src/features/codeium_intellij/proto/exa/context_module_pb/context_module.proto +172 -0
- package/src/features/codeium_intellij/proto/exa/cortex_pb/cortex.proto +3604 -0
- package/src/features/codeium_intellij/proto/exa/diff_action_pb/diff_action.proto +73 -0
- package/src/features/codeium_intellij/proto/exa/extension_server_pb/extension_server.proto +565 -0
- package/src/features/codeium_intellij/proto/exa/index_pb/index.proto +474 -0
- package/src/features/codeium_intellij/proto/exa/knowledge_base_pb/knowledge_base.proto +149 -0
- package/src/features/codeium_intellij/proto/exa/language_server_pb/language_server.proto +2504 -0
- package/src/features/codeium_intellij/proto/exa/opensearch_clients_pb/opensearch_clients.proto +505 -0
- package/src/features/codeium_intellij/proto/exa/product_analytics_pb/product_analytics.proto +31 -0
- package/src/features/codeium_intellij/proto/exa/reactive_component_pb/reactive_component.proto +104 -0
- package/src/features/codeium_intellij/proto/exa/seat_management_pb/seat_management.proto +2349 -0
- package/src/post_install/binary.mjs +89 -0
- package/src/post_install/constants.mjs +2 -0
- package/src/post_install/cx_install.mjs +72 -0
- package/bin/mobbdev.js +0 -10
- package/lib/binary.js +0 -52
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package exa.chat_pb;
|
|
4
|
+
|
|
5
|
+
import "buf/validate/validate.proto";
|
|
6
|
+
import "exa/codeium_common_pb/codeium_common.proto";
|
|
7
|
+
import "exa/diff_action_pb/diff_action.proto";
|
|
8
|
+
import "google/protobuf/timestamp.proto";
|
|
9
|
+
|
|
10
|
+
option go_package = "github.com/Exafunction/Exafunction/exa/chat_pb";
|
|
11
|
+
|
|
12
|
+
message CodeBlockInfo {
|
|
13
|
+
string raw_source = 1;
|
|
14
|
+
int32 start_line = 2;
|
|
15
|
+
int32 start_col = 3;
|
|
16
|
+
int32 end_line = 4;
|
|
17
|
+
int32 end_col = 5;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message ChatMetrics {
|
|
21
|
+
uint64 response_stream_latency_ms = 1;
|
|
22
|
+
uint64 refresh_context_latency_ms = 2;
|
|
23
|
+
uint64 should_get_local_context_for_chat_latency_ms = 3;
|
|
24
|
+
bool should_get_local_context_for_chat = 4;
|
|
25
|
+
uint64 compute_change_events_latency_ms = 5;
|
|
26
|
+
uint64 context_to_chat_prompt_latency_ms = 6;
|
|
27
|
+
int32 num_prompt_tokens = 7;
|
|
28
|
+
int32 num_system_prompt_tokens = 8;
|
|
29
|
+
uint64 num_input_tokens = 16;
|
|
30
|
+
google.protobuf.Timestamp start_timestamp = 9;
|
|
31
|
+
google.protobuf.Timestamp end_timestamp = 10;
|
|
32
|
+
string active_document_absolute_path = 11;
|
|
33
|
+
codeium_common_pb.CodeContextItem last_active_code_context_item = 12;
|
|
34
|
+
uint64 num_indexed_files = 13;
|
|
35
|
+
uint64 num_indexed_code_context_items = 14;
|
|
36
|
+
codeium_common_pb.Model model_deprecated = 15 [deprecated = true];
|
|
37
|
+
string model_uid = 17;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message IntentGeneric {
|
|
41
|
+
string text = 1;
|
|
42
|
+
repeated codeium_common_pb.TextOrScopeItem items = 2;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message IntentFunctionExplain {
|
|
46
|
+
codeium_common_pb.FunctionInfo function_info = 1;
|
|
47
|
+
codeium_common_pb.Language language = 2;
|
|
48
|
+
string file_path_migrate_me_to_uri = 3 [deprecated = true];
|
|
49
|
+
string uri = 4;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message IntentFunctionRefactor {
|
|
53
|
+
codeium_common_pb.FunctionInfo function_info = 1;
|
|
54
|
+
codeium_common_pb.Language language = 2;
|
|
55
|
+
string file_path_migrate_me_to_uri = 3 [deprecated = true];
|
|
56
|
+
string refactor_description = 4;
|
|
57
|
+
string uri = 5;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message IntentFunctionUnitTests {
|
|
61
|
+
codeium_common_pb.FunctionInfo function_info = 1;
|
|
62
|
+
codeium_common_pb.Language language = 2;
|
|
63
|
+
string file_path_migrate_me_to_uri = 3 [deprecated = true];
|
|
64
|
+
string uri = 5;
|
|
65
|
+
string instructions = 4;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message IntentFunctionDocstring {
|
|
69
|
+
codeium_common_pb.FunctionInfo function_info = 1;
|
|
70
|
+
codeium_common_pb.Language language = 2;
|
|
71
|
+
string file_path_migrate_me_to_uri = 3 [deprecated = true];
|
|
72
|
+
string uri = 4;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message IntentClassExplain {
|
|
76
|
+
codeium_common_pb.ClassInfo class_info = 1;
|
|
77
|
+
codeium_common_pb.Language language = 2;
|
|
78
|
+
string file_path_migrate_me_to_uri = 3 [deprecated = true];
|
|
79
|
+
string uri = 4;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message IntentCodeBlockExplain {
|
|
83
|
+
CodeBlockInfo code_block_info = 1;
|
|
84
|
+
codeium_common_pb.Language language = 2;
|
|
85
|
+
string file_path_migrate_me_to_uri = 3 [deprecated = true];
|
|
86
|
+
string uri = 4;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
message IntentCodeBlockRefactor {
|
|
90
|
+
CodeBlockInfo code_block_info = 1;
|
|
91
|
+
codeium_common_pb.Language language = 2;
|
|
92
|
+
string file_path_migrate_me_to_uri = 3 [deprecated = true];
|
|
93
|
+
string uri = 5;
|
|
94
|
+
string refactor_description = 4;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message IntentProblemExplain {
|
|
98
|
+
string diagnostic_message = 1;
|
|
99
|
+
CodeBlockInfo problematic_code = 2;
|
|
100
|
+
string surrounding_code_snippet = 3;
|
|
101
|
+
codeium_common_pb.Language language = 4;
|
|
102
|
+
string file_path_migrate_me_to_uri = 5 [deprecated = true];
|
|
103
|
+
string uri = 7;
|
|
104
|
+
int32 line_number = 6;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
message IntentGenerateCode {
|
|
108
|
+
string instruction = 1;
|
|
109
|
+
codeium_common_pb.Language language = 2;
|
|
110
|
+
string file_path_migrate_me_to_uri = 3 [deprecated = true];
|
|
111
|
+
string uri = 5;
|
|
112
|
+
int32 line_number = 4;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message IntentSearch {
|
|
116
|
+
string query = 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message IntentFastApply {
|
|
120
|
+
string diff_outline = 1;
|
|
121
|
+
codeium_common_pb.Language language = 2;
|
|
122
|
+
CodeBlockInfo old_code = 3;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
message ChatMessageIntent {
|
|
126
|
+
uint32 num_tokens = 12;
|
|
127
|
+
|
|
128
|
+
oneof intent {
|
|
129
|
+
IntentGeneric generic = 1;
|
|
130
|
+
IntentFunctionExplain explain_function = 2;
|
|
131
|
+
IntentFunctionDocstring function_docstring = 3;
|
|
132
|
+
IntentFunctionRefactor function_refactor = 4;
|
|
133
|
+
IntentCodeBlockExplain explain_code_block = 5;
|
|
134
|
+
IntentCodeBlockRefactor code_block_refactor = 6;
|
|
135
|
+
IntentFunctionUnitTests function_unit_tests = 7;
|
|
136
|
+
IntentProblemExplain problem_explain = 8;
|
|
137
|
+
IntentGenerateCode generate_code = 9;
|
|
138
|
+
IntentClassExplain explain_class = 10;
|
|
139
|
+
IntentSearch search = 11;
|
|
140
|
+
IntentFastApply fast_apply = 13;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
message ChatMessageActionSearch {
|
|
145
|
+
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
message ChatMessageActionEdit {
|
|
149
|
+
string file_path_migrate_me_to_uri = 1 [deprecated = true];
|
|
150
|
+
string uri = 6;
|
|
151
|
+
diff_action_pb.DiffBlock diff = 2;
|
|
152
|
+
codeium_common_pb.Language language = 3;
|
|
153
|
+
string text_pre = 4;
|
|
154
|
+
string text_post = 5;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
message ChatMessageActionGeneric {
|
|
158
|
+
string text = 1;
|
|
159
|
+
string display_text = 2;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
message ChatMessageStatusContextRelevancy {
|
|
163
|
+
bool is_loading = 1;
|
|
164
|
+
bool is_relevant = 2;
|
|
165
|
+
repeated string query_suggestions = 3;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
message ChatMessageStatus {
|
|
169
|
+
oneof status {
|
|
170
|
+
ChatMessageStatusContextRelevancy context_relevancy = 1;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
message ChatMessageError {
|
|
175
|
+
string text = 1;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
message ChatMessageAction {
|
|
179
|
+
uint32 num_tokens = 2;
|
|
180
|
+
repeated codeium_common_pb.CodeContextItem context_items = 4;
|
|
181
|
+
ChatIntentType latest_intent = 6;
|
|
182
|
+
ChatMetrics generation_stats = 7;
|
|
183
|
+
repeated codeium_common_pb.KnowledgeBaseItemWithMetadata knowledge_base_items = 8;
|
|
184
|
+
|
|
185
|
+
oneof action {
|
|
186
|
+
ChatMessageActionGeneric generic = 1;
|
|
187
|
+
ChatMessageActionEdit edit = 3;
|
|
188
|
+
ChatMessageActionSearch search = 5;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
message ChatMessage {
|
|
193
|
+
string message_id = 1;
|
|
194
|
+
codeium_common_pb.ChatMessageSource source = 2;
|
|
195
|
+
google.protobuf.Timestamp timestamp = 3;
|
|
196
|
+
string conversation_id = 4;
|
|
197
|
+
bool in_progress = 9;
|
|
198
|
+
GetChatMessageRequest request = 10;
|
|
199
|
+
bool redact = 11;
|
|
200
|
+
|
|
201
|
+
oneof content {
|
|
202
|
+
ChatMessageIntent intent = 5;
|
|
203
|
+
ChatMessageAction action = 6;
|
|
204
|
+
ChatMessageError error = 7;
|
|
205
|
+
ChatMessageStatus status = 8;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
message Conversation {
|
|
210
|
+
repeated ChatMessage messages = 1;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
message RawChatMessage {
|
|
214
|
+
string message_id = 1;
|
|
215
|
+
codeium_common_pb.ChatMessageSource source = 2;
|
|
216
|
+
google.protobuf.Timestamp timestamp = 3;
|
|
217
|
+
string conversation_id = 4;
|
|
218
|
+
string text = 5;
|
|
219
|
+
bool in_progress = 6;
|
|
220
|
+
bool is_error = 7;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
message DeepWikiSymbolRange {
|
|
224
|
+
int64 start_line = 1;
|
|
225
|
+
int64 start_column = 2;
|
|
226
|
+
int64 end_line = 3;
|
|
227
|
+
int64 end_column = 4;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
message DeepWikiSymbolContext {
|
|
231
|
+
string symbol_name = 1;
|
|
232
|
+
string symbol_uri = 2;
|
|
233
|
+
DeepWikiSymbolRange symbol_range = 3;
|
|
234
|
+
DeepWikiSymbolType symbol_type = 4;
|
|
235
|
+
string file_context = 5;
|
|
236
|
+
string usage_context = 6;
|
|
237
|
+
string trace_context = 7;
|
|
238
|
+
string quick_grep_context = 8;
|
|
239
|
+
google.protobuf.Timestamp timestamp = 9;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
message DeepWikiHoverContext {
|
|
243
|
+
string symbol_name = 1;
|
|
244
|
+
string symbol_uri = 2;
|
|
245
|
+
DeepWikiSymbolRange symbol_range = 3;
|
|
246
|
+
DeepWikiSymbolType symbol_type = 4;
|
|
247
|
+
string hover_text = 5;
|
|
248
|
+
google.protobuf.Timestamp timestamp = 6;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
message ParameterInfo {
|
|
252
|
+
string label = 1;
|
|
253
|
+
string documentation = 2;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
message FunctionCallInfo {
|
|
257
|
+
string signature_label = 1;
|
|
258
|
+
int32 active_parameter = 2;
|
|
259
|
+
int32 parameter_count = 3;
|
|
260
|
+
repeated ParameterInfo parameters = 4;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
message DeepWikiContext {
|
|
264
|
+
DeepWikiHoverContext enclosing_hover_context = 1;
|
|
265
|
+
FunctionCallInfo function_call_info = 2;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
message GetDeepWikiRequest {
|
|
269
|
+
codeium_common_pb.Metadata metadata = 1;
|
|
270
|
+
DeepWikiRequestType request_type = 2;
|
|
271
|
+
string symbol_name = 3;
|
|
272
|
+
string symbol_uri = 4;
|
|
273
|
+
string context = 5;
|
|
274
|
+
DeepWikiSymbolType symbol_type = 6;
|
|
275
|
+
string language = 7;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
message ChatMessagePrompt {
|
|
279
|
+
string message_id = 1;
|
|
280
|
+
codeium_common_pb.ChatMessageSource source = 2;
|
|
281
|
+
string prompt = 3;
|
|
282
|
+
uint32 num_tokens = 4;
|
|
283
|
+
bool safe_for_code_telemetry = 5;
|
|
284
|
+
repeated codeium_common_pb.ChatToolCall tool_calls = 6;
|
|
285
|
+
string tool_call_id = 7;
|
|
286
|
+
PromptCacheOptions prompt_cache_options = 8;
|
|
287
|
+
bool tool_result_is_error = 9;
|
|
288
|
+
repeated codeium_common_pb.ImageData images = 10;
|
|
289
|
+
string thinking = 11;
|
|
290
|
+
string signature = 12;
|
|
291
|
+
bool thinking_redacted = 13;
|
|
292
|
+
repeated codeium_common_pb.PromptAnnotationRange prompt_annotation_ranges = 14;
|
|
293
|
+
string output_id = 15;
|
|
294
|
+
string thinking_id = 16 [deprecated = true];
|
|
295
|
+
bytes gemini_thought_signature = 17 [deprecated = true];
|
|
296
|
+
string signature_type = 18;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
message PromptCacheOptions {
|
|
300
|
+
CacheControlType type = 1;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
message ChatToolDefinition {
|
|
304
|
+
string name = 1;
|
|
305
|
+
string description = 2;
|
|
306
|
+
string json_schema_string = 3;
|
|
307
|
+
bool strict = 4;
|
|
308
|
+
repeated string attribution_field_names = 5;
|
|
309
|
+
string server_name = 6;
|
|
310
|
+
|
|
311
|
+
oneof _read_only_hint {
|
|
312
|
+
bool read_only_hint = 7;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
oneof _computer_use_config {
|
|
316
|
+
ComputerUseToolConfig computer_use_config = 8;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
message ComputerUseToolConfig {
|
|
321
|
+
int32 display_width_px = 1;
|
|
322
|
+
int32 display_height_px = 2;
|
|
323
|
+
int32 display_number = 3;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
message ChatToolChoice {
|
|
327
|
+
oneof choice {
|
|
328
|
+
string option_name = 1;
|
|
329
|
+
string tool_name = 2;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
message ChatMentionsSearchRequest {
|
|
334
|
+
string query = 1;
|
|
335
|
+
repeated codeium_common_pb.CodeContextType allowed_types = 2;
|
|
336
|
+
bool include_repo_info = 3;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
message ChatMentionsSearchResponse {
|
|
340
|
+
repeated codeium_common_pb.CodeContextItem cci_items = 1;
|
|
341
|
+
repeated codeium_common_pb.GitRepoInfo repo_infos = 2;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
message GetChatMessageRequest {
|
|
345
|
+
codeium_common_pb.Metadata metadata = 1;
|
|
346
|
+
repeated ChatMessage chat_messages = 3;
|
|
347
|
+
codeium_common_pb.Document active_document = 5;
|
|
348
|
+
repeated string open_document_uris = 12;
|
|
349
|
+
repeated string workspace_uris = 13;
|
|
350
|
+
string active_selection = 11;
|
|
351
|
+
codeium_common_pb.ContextInclusionType context_inclusion_type = 8;
|
|
352
|
+
codeium_common_pb.Model chat_model = 9;
|
|
353
|
+
string system_prompt_override = 10;
|
|
354
|
+
string chat_model_name = 14;
|
|
355
|
+
|
|
356
|
+
EnterpriseExternalModelConfig enterprise_chat_model_config = 15;
|
|
357
|
+
message EnterpriseExternalModelConfig {
|
|
358
|
+
int32 max_output_tokens = 2;
|
|
359
|
+
int32 max_input_tokens = 3;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
codeium_common_pb.ExperimentConfig experiment_config = 4 [deprecated = true];
|
|
363
|
+
repeated string open_document_paths_migrate_me_to_uris = 6 [deprecated = true];
|
|
364
|
+
repeated string workspace_paths_migrate_me_to_uris = 7 [deprecated = true];
|
|
365
|
+
|
|
366
|
+
reserved 2;
|
|
367
|
+
|
|
368
|
+
reserved "prompt";
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
message RawGetChatMessageRequest {
|
|
372
|
+
codeium_common_pb.Metadata metadata = 1;
|
|
373
|
+
repeated ChatMessage chat_messages = 2;
|
|
374
|
+
string system_prompt_override = 3;
|
|
375
|
+
codeium_common_pb.Model chat_model = 4;
|
|
376
|
+
string chat_model_name = 5;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
message ChatExperimentStatus {
|
|
380
|
+
codeium_common_pb.ExperimentKey experiment_key = 1;
|
|
381
|
+
bool enabled = 2;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
message FormattedChatMessage {
|
|
385
|
+
codeium_common_pb.ChatMessageSource role = 1;
|
|
386
|
+
string header = 2;
|
|
387
|
+
string content = 3;
|
|
388
|
+
string footer = 4;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
enum ChatFeedbackType {
|
|
392
|
+
FEEDBACK_TYPE_UNSPECIFIED = 0;
|
|
393
|
+
FEEDBACK_TYPE_ACCEPT = 1;
|
|
394
|
+
FEEDBACK_TYPE_REJECT = 2;
|
|
395
|
+
FEEDBACK_TYPE_COPIED = 3;
|
|
396
|
+
FEEDBACK_TYPE_ACCEPT_DIFF = 4;
|
|
397
|
+
FEEDBACK_TYPE_REJECT_DIFF = 5;
|
|
398
|
+
FEEDBACK_TYPE_APPLY_DIFF = 6;
|
|
399
|
+
FEEDBACK_TYPE_INSERT_AT_CURSOR = 7;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
enum ChatIntentType {
|
|
403
|
+
CHAT_INTENT_UNSPECIFIED = 0;
|
|
404
|
+
CHAT_INTENT_GENERIC = 1;
|
|
405
|
+
CHAT_INTENT_FUNCTION_EXPLAIN = 2;
|
|
406
|
+
CHAT_INTENT_FUNCTION_DOCSTRING = 3;
|
|
407
|
+
CHAT_INTENT_FUNCTION_REFACTOR = 4;
|
|
408
|
+
CHAT_INTENT_CODE_BLOCK_EXPLAIN = 5;
|
|
409
|
+
CHAT_INTENT_CODE_BLOCK_REFACTOR = 6;
|
|
410
|
+
CHAT_INTENT_FUNCTION_UNIT_TESTS = 7;
|
|
411
|
+
CHAT_INTENT_PROBLEM_EXPLAIN = 8;
|
|
412
|
+
CHAT_INTENT_GENERATE_CODE = 9;
|
|
413
|
+
CHAT_INTENT_CLASS_EXPLAIN = 10;
|
|
414
|
+
CHAT_INTENT_SEARCH = 11;
|
|
415
|
+
CHAT_INTENT_FAST_APPLY = 12;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
enum DeepWikiRequestType {
|
|
419
|
+
DEEP_WIKI_REQUEST_TYPE_UNSPECIFIED = 0;
|
|
420
|
+
DEEP_WIKI_REQUEST_TYPE_SUMMARY = 1;
|
|
421
|
+
DEEP_WIKI_REQUEST_TYPE_ARTICLE = 2;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
enum DeepWikiSymbolType {
|
|
425
|
+
DEEP_WIKI_SYMBOL_TYPE_UNSPECIFIED = 0;
|
|
426
|
+
DEEP_WIKI_SYMBOL_TYPE_FILE = 1;
|
|
427
|
+
DEEP_WIKI_SYMBOL_TYPE_MODULE = 2;
|
|
428
|
+
DEEP_WIKI_SYMBOL_TYPE_NAMESPACE = 3;
|
|
429
|
+
DEEP_WIKI_SYMBOL_TYPE_PACKAGE = 4;
|
|
430
|
+
DEEP_WIKI_SYMBOL_TYPE_CLASS = 5;
|
|
431
|
+
DEEP_WIKI_SYMBOL_TYPE_METHOD = 6;
|
|
432
|
+
DEEP_WIKI_SYMBOL_TYPE_PROPERTY = 7;
|
|
433
|
+
DEEP_WIKI_SYMBOL_TYPE_FIELD = 8;
|
|
434
|
+
DEEP_WIKI_SYMBOL_TYPE_CONSTRUCTOR = 9;
|
|
435
|
+
DEEP_WIKI_SYMBOL_TYPE_ENUM = 10;
|
|
436
|
+
DEEP_WIKI_SYMBOL_TYPE_INTERFACE = 11;
|
|
437
|
+
DEEP_WIKI_SYMBOL_TYPE_FUNCTION = 12;
|
|
438
|
+
DEEP_WIKI_SYMBOL_TYPE_VARIABLE = 13;
|
|
439
|
+
DEEP_WIKI_SYMBOL_TYPE_CONSTANT = 14;
|
|
440
|
+
DEEP_WIKI_SYMBOL_TYPE_STRING = 15;
|
|
441
|
+
DEEP_WIKI_SYMBOL_TYPE_NUMBER = 16;
|
|
442
|
+
DEEP_WIKI_SYMBOL_TYPE_BOOLEAN = 17;
|
|
443
|
+
DEEP_WIKI_SYMBOL_TYPE_ARRAY = 18;
|
|
444
|
+
DEEP_WIKI_SYMBOL_TYPE_OBJECT = 19;
|
|
445
|
+
DEEP_WIKI_SYMBOL_TYPE_KEY = 20;
|
|
446
|
+
DEEP_WIKI_SYMBOL_TYPE_NULL = 21;
|
|
447
|
+
DEEP_WIKI_SYMBOL_TYPE_ENUM_MEMBER = 22;
|
|
448
|
+
DEEP_WIKI_SYMBOL_TYPE_STRUCT = 23;
|
|
449
|
+
DEEP_WIKI_SYMBOL_TYPE_EVENT = 24;
|
|
450
|
+
DEEP_WIKI_SYMBOL_TYPE_OPERATOR = 25;
|
|
451
|
+
DEEP_WIKI_SYMBOL_TYPE_TYPE_PARAMETER = 26;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
enum CacheControlType {
|
|
455
|
+
CACHE_CONTROL_TYPE_UNSPECIFIED = 0;
|
|
456
|
+
CACHE_CONTROL_TYPE_EPHEMERAL = 1;
|
|
457
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package exa.code_edit.code_edit_pb;
|
|
4
|
+
|
|
5
|
+
import "exa/codeium_common_pb/codeium_common.proto";
|
|
6
|
+
import "exa/context_module_pb/context_module.proto";
|
|
7
|
+
import "exa/index_pb/index.proto";
|
|
8
|
+
|
|
9
|
+
option go_package = "github.com/Exafunction/Exafunction/exa/code_edit/code_edit_pb";
|
|
10
|
+
|
|
11
|
+
message RelevantCodeContext {
|
|
12
|
+
codeium_common_pb.CodeContextItem code_context_item = 1;
|
|
13
|
+
RelevanceReason relevance_reason = 3;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message IntentRelevance {
|
|
17
|
+
string intent = 1;
|
|
18
|
+
float relevance_score = 2;
|
|
19
|
+
string rationale = 3;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message CodeContextItemChange {
|
|
23
|
+
codeium_common_pb.CodeContextItem start_cci = 1;
|
|
24
|
+
codeium_common_pb.CodeContextItem end_cci = 2;
|
|
25
|
+
repeated RelevantCodeContext relevant_code_contexts = 3;
|
|
26
|
+
map<string, string> description_by_type = 4;
|
|
27
|
+
repeated IntentRelevance intent_relevance = 5;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message FileChange {
|
|
31
|
+
string start_file_path_migrate_me_to_uri = 1 [deprecated = true];
|
|
32
|
+
string start_file_uri = 10;
|
|
33
|
+
string start_file_rel_path = 8;
|
|
34
|
+
string end_file_path_migrate_me_to_uri = 2 [deprecated = true];
|
|
35
|
+
string end_file_uri = 11;
|
|
36
|
+
string end_file_rel_path = 9;
|
|
37
|
+
string old_file_content = 3;
|
|
38
|
+
string new_file_content = 4;
|
|
39
|
+
repeated CodeContextItemChange code_context_item_changes = 6;
|
|
40
|
+
repeated codeium_common_pb.CodeContextItem unchanged_code_context_items = 7;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message Intent {
|
|
44
|
+
string intent = 1;
|
|
45
|
+
IntentType intent_type = 2;
|
|
46
|
+
bool include_test_files = 3;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message CodeChangeWithContext {
|
|
50
|
+
codeium_common_pb.GitRepoInfo repository = 1;
|
|
51
|
+
repeated FileChange file_changes = 2;
|
|
52
|
+
repeated FileChange test_file_changes = 9;
|
|
53
|
+
string intent = 3;
|
|
54
|
+
index_pb.IndexStats index_stats = 5;
|
|
55
|
+
repeated codeium_common_pb.CodeContextItem unrelated_ccis = 6;
|
|
56
|
+
repeated Intent synthetic_intents = 8;
|
|
57
|
+
|
|
58
|
+
oneof code_change_data_source {
|
|
59
|
+
GitCommit git_commit = 4;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
reserved 7;
|
|
63
|
+
|
|
64
|
+
reserved "intent_by_type";
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message GitCommit {
|
|
68
|
+
string commit_hash = 1;
|
|
69
|
+
string parent_commit_hash = 2;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message CommitToFileChangeRequest {
|
|
73
|
+
string repo_root = 1;
|
|
74
|
+
codeium_common_pb.GitRepoInfo repository = 2;
|
|
75
|
+
int32 unrelated_cci_multiple = 3;
|
|
76
|
+
string db_dir = 4;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message GitFilePatch {
|
|
80
|
+
string from = 1;
|
|
81
|
+
string to = 2;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
message CommitToFileChangeResponse {
|
|
85
|
+
repeated FileChange file_changes = 1;
|
|
86
|
+
string parent_commit_hash = 2;
|
|
87
|
+
index_pb.IndexStats index_stats = 3;
|
|
88
|
+
repeated codeium_common_pb.CodeContextItem unrelated_ccis = 4;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
message CodeRetrievalEvalTask {
|
|
92
|
+
codeium_common_pb.GitRepoInfo repository = 1;
|
|
93
|
+
GitCommit commit_info = 5;
|
|
94
|
+
string query = 2;
|
|
95
|
+
repeated RelevantCodeContext target_code_contexts = 3;
|
|
96
|
+
string subdirectory = 4;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
message CodeRetrievalResult {
|
|
100
|
+
codeium_common_pb.GitRepoInfo repository = 1;
|
|
101
|
+
string retriever_name = 3;
|
|
102
|
+
RetrieverInfo retriever_info = 4;
|
|
103
|
+
repeated context_module_pb.CodeContextItemWithRetrievalMetadata code_context_with_metadatas = 5;
|
|
104
|
+
|
|
105
|
+
reserved 2;
|
|
106
|
+
|
|
107
|
+
reserved "retrieved_code_contexts";
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
message RetrieverClassification {
|
|
111
|
+
float relevance_score = 1;
|
|
112
|
+
RetrieverInfo retriever_info = 2;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message CodeContextItemWithClassification {
|
|
116
|
+
RelevantCodeContext code_context_item = 1;
|
|
117
|
+
bool relevant = 2;
|
|
118
|
+
RetrieverClassification prediction = 3;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
message RetrieverInfo {
|
|
122
|
+
RetrieverType type = 1;
|
|
123
|
+
string model_name = 2;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
message RetrievalMetrics {
|
|
127
|
+
RetrieverInfo retriever_info = 1;
|
|
128
|
+
float precision_score = 2;
|
|
129
|
+
float recall_score = 3;
|
|
130
|
+
float accuracy_score = 4;
|
|
131
|
+
float label_ranking_average_precision_score = 5;
|
|
132
|
+
float roc_auc_score = 6;
|
|
133
|
+
float average_precision_score = 7;
|
|
134
|
+
float threshold = 8;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
message CodeRetrievalEvalResult {
|
|
138
|
+
codeium_common_pb.GitRepoInfo repository = 1;
|
|
139
|
+
repeated CodeContextItemWithClassification classified_items = 2;
|
|
140
|
+
RetrievalMetrics metrics = 3;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message InstructionWithId {
|
|
144
|
+
int32 id = 1;
|
|
145
|
+
string file = 2;
|
|
146
|
+
string function = 3;
|
|
147
|
+
string instruction = 4;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
message InstructionWithIdList {
|
|
151
|
+
repeated InstructionWithId instructions = 1;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
enum RelevanceReason {
|
|
155
|
+
RELEVANCE_REASON_UNSPECIFIED = 0;
|
|
156
|
+
RELEVANCE_REASON_SAME_COMMIT_OLD = 1;
|
|
157
|
+
RELEVANCE_REASON_SAME_COMMIT_NEW = 2;
|
|
158
|
+
RELEVANCE_REASON_REF_IN_DELETION = 3;
|
|
159
|
+
RELEVANCE_REASON_REF_IN_INSERTION = 4;
|
|
160
|
+
RELEVANCE_REASON_NOT_RELEVANT = 99;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
enum DescriptionType {
|
|
164
|
+
DESCRIPTION_TYPE_UNSPECIFIED = 0;
|
|
165
|
+
DESCRIPTION_TYPE_EDIT_COMMAND = 1;
|
|
166
|
+
DESCRIPTION_TYPE_INSERTION_COMMAND = 2;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
enum IntentType {
|
|
170
|
+
INTENT_TYPE_UNSPECIFIED = 0;
|
|
171
|
+
INTENT_TYPE_COMMIT_GOAL = 1;
|
|
172
|
+
INTENT_TYPE_DIFF_SEARCH = 2;
|
|
173
|
+
INTENT_TYPE_CLEAN_COMMIT = 3;
|
|
174
|
+
INTENT_TYPE_CCI_SIGNATURE_SEARCH = 4;
|
|
175
|
+
INTENT_TYPE_CCI_RAW_SOURCE_SEARCH = 5;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
enum RetrieverType {
|
|
179
|
+
RETRIEVER_TYPE_UNSPECIFIED = 0;
|
|
180
|
+
RETRIEVER_TYPE_CONTEXT_MODULE_LOCAL = 1;
|
|
181
|
+
RETRIEVER_TYPE_CONTEXT_MODULE_SEARCH = 2;
|
|
182
|
+
RETRIEVER_TYPE_SEARCH = 3;
|
|
183
|
+
RETRIEVER_TYPE_MQUERY_OPENAI = 4;
|
|
184
|
+
RETRIEVER_TYPE_MQUERY_CODEIUM = 5;
|
|
185
|
+
RETRIEVER_TYPE_CONTEXT_MODULE_SEARCH_MQUERY_SCORER = 6;
|
|
186
|
+
RETRIEVER_TYPE_COMMIT_GRAPH = 7;
|
|
187
|
+
RETRIEVER_TYPE_MORPH_NORMAL = 8;
|
|
188
|
+
RETRIEVER_TYPE_MORPH_ADVANCED = 9;
|
|
189
|
+
RETRIEVER_TYPE_GRAPH_CLUSTERS = 10;
|
|
190
|
+
RETRIEVER_TYPE_OPENSEARCH = 11;
|
|
191
|
+
}
|