@buyong/pi-devin 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +214 -2
- package/index.ts +16 -0
- package/package.json +62 -3
- package/proto/README.md +78 -0
- package/proto/buf/validate/validate.proto +453 -0
- package/proto/cel/expr/checked.proto +109 -0
- package/proto/cel/expr/eval.proto +44 -0
- package/proto/cel/expr/explain.proto +22 -0
- package/proto/cel/expr/syntax.proto +119 -0
- package/proto/cel/expr/value.proto +47 -0
- package/proto/connectext/grpc/status/v1/status.proto +21 -0
- package/proto/errorspb/errors.proto +58 -0
- package/proto/errorspb/hintdetail.proto +9 -0
- package/proto/errorspb/markers.proto +12 -0
- package/proto/errorspb/tags.proto +14 -0
- package/proto/errorspb/testing.proto +8 -0
- package/proto/exa/analytics_pb/analytics.proto +190 -0
- package/proto/exa/api_server_pb/api_server.proto +2590 -0
- package/proto/exa/auth_pb/auth.proto +21 -0
- package/proto/exa/auto_cascade_common_pb/auto_cascade_common.proto +81 -0
- package/proto/exa/browser_preview_pb/browser_preview.proto +26 -0
- package/proto/exa/bug_checker_pb/bug_checker.proto +24 -0
- package/proto/exa/cascade_plugins_pb/cascade_plugins.proto +264 -0
- package/proto/exa/chat_client_server_pb/chat_client_server.proto +57 -0
- package/proto/exa/chat_pb/chat.proto +452 -0
- package/proto/exa/code_edit/code_edit_pb/code_edit.proto +186 -0
- package/proto/exa/codeium_common_pb/browser_context.proto +31 -0
- package/proto/exa/codeium_common_pb/codeium_common.proto +4183 -0
- package/proto/exa/context_module_pb/context_module.proto +174 -0
- package/proto/exa/cortex_pb/cortex.proto +3288 -0
- package/proto/exa/dev_pb/dev.proto +28 -0
- package/proto/exa/diff_action_pb/diff_action.proto +76 -0
- package/proto/exa/eval/pr_eval/datasets_pb/datasets.proto +106 -0
- package/proto/exa/eval_pb/eval.proto +1318 -0
- package/proto/exa/extension_server_pb/extension_server.proto +555 -0
- package/proto/exa/file_system_provider_pb/file_system_provider.proto +75 -0
- package/proto/exa/index_pb/index.proto +469 -0
- package/proto/exa/knowledge_base_pb/knowledge_base.proto +146 -0
- package/proto/exa/language_server_pb/language_server.proto +2435 -0
- package/proto/exa/model_management_pb/model_management.proto +184 -0
- package/proto/exa/opensearch_clients_pb/opensearch_clients.proto +495 -0
- package/proto/exa/product_analytics_pb/product_analytics.proto +39 -0
- package/proto/exa/prompt_pb/prompt.proto +97 -0
- package/proto/exa/reactive_component_pb/reactive_component.proto +98 -0
- package/proto/exa/seat_management_pb/seat_management.proto +2910 -0
- package/proto/exa/tokenizer_pb/tokenizer.proto +39 -0
- package/proto/exa/trainer_pb/config.proto +643 -0
- package/proto/exa/tree_sitter/language_data_pb/language_data.proto +14 -0
- package/proto/exa/trust_pb/trust.proto +192 -0
- package/proto/exa/user_analytics_pb/user_analytics.proto +752 -0
- package/proto/google/api/expr/v1alpha1/checked.proto +108 -0
- package/proto/google/api/expr/v1alpha1/eval.proto +38 -0
- package/proto/google/api/expr/v1alpha1/explain.proto +22 -0
- package/proto/google/api/expr/v1alpha1/syntax.proto +126 -0
- package/proto/google/api/expr/v1alpha1/value.proto +47 -0
- package/proto/google/protobuf/any.proto +15 -0
- package/proto/google/protobuf/cpp_features.proto +22 -0
- package/proto/google/protobuf/descriptor.proto +473 -0
- package/proto/google/protobuf/duration.proto +16 -0
- package/proto/google/protobuf/empty.proto +14 -0
- package/proto/google/protobuf/go_features.proto +31 -0
- package/proto/google/protobuf/struct.proto +34 -0
- package/proto/google/protobuf/timestamp.proto +16 -0
- package/proto/google/protobuf/wrappers.proto +47 -0
- package/proto/google/rpc/status.proto +18 -0
- package/proto/grpc/binlog/v1/binarylog.proto +89 -0
- package/proto/io/prometheus/client/metrics.proto +103 -0
- package/src/core/auth/access.ts +6 -0
- package/src/core/auth/index.ts +2 -0
- package/src/core/auth/login.ts +177 -0
- package/src/core/auth/rest-exchange.ts +35 -0
- package/src/core/client.ts +153 -0
- package/src/core/index.ts +12 -0
- package/src/core/inference/chat.ts +229 -0
- package/src/core/inference/images.ts +24 -0
- package/src/core/inference/messages.ts +34 -0
- package/src/core/inference/retry.ts +68 -0
- package/src/core/inference/state.ts +8 -0
- package/src/core/models/access.ts +7 -0
- package/src/core/models/catalog.ts +35 -0
- package/src/core/models/index.ts +4 -0
- package/src/core/models/select.ts +43 -0
- package/src/core/models/variants.ts +163 -0
- package/src/core/protocol/device.ts +73 -0
- package/src/core/protocol/fingerprint.ts +59 -0
- package/src/core/protocol/http.ts +109 -0
- package/src/core/protocol/protobuf.ts +112 -0
- package/src/core/protocol/transport.ts +501 -0
- package/src/core/types.ts +115 -0
- package/src/pi/auth.ts +134 -0
- package/src/pi/devin-command.ts +76 -0
- package/src/pi/devin-panel.ts +77 -0
- package/src/pi/devin-settings.ts +50 -0
- package/src/pi/extension.ts +80 -0
- package/src/pi/fusion-command.ts +83 -0
- package/src/pi/fusion-picker.ts +171 -0
- package/src/pi/fusion-settings.ts +44 -0
- package/src/pi/lifecycle.ts +217 -0
- package/src/pi/messages.ts +107 -0
- package/src/pi/models.ts +378 -0
- package/src/pi/provider.ts +241 -0
- package/src/pi/sidekick-report.ts +42 -0
- package/src/pi/sidekick-runtime.ts +287 -0
- package/src/pi/sidekick.ts +190 -0
- package/src/pi/stream.ts +124 -0
- package/src/pi/usage.ts +153 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package cel.expr;
|
|
4
|
+
|
|
5
|
+
import "cel/expr/syntax.proto";
|
|
6
|
+
import "google/protobuf/empty.proto";
|
|
7
|
+
import "google/protobuf/struct.proto";
|
|
8
|
+
|
|
9
|
+
option java_package = "dev.cel.expr";
|
|
10
|
+
option java_outer_classname = "DeclProto";
|
|
11
|
+
option java_multiple_files = true;
|
|
12
|
+
option go_package = "cel.dev/expr";
|
|
13
|
+
option cc_enable_arenas = true;
|
|
14
|
+
|
|
15
|
+
message CheckedExpr {
|
|
16
|
+
map<int64, Reference> reference_map = 2;
|
|
17
|
+
map<int64, Type> type_map = 3;
|
|
18
|
+
SourceInfo source_info = 5;
|
|
19
|
+
string expr_version = 6;
|
|
20
|
+
Expr expr = 4;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message Type {
|
|
24
|
+
oneof type_kind {
|
|
25
|
+
.google.protobuf.Empty dyn = 1;
|
|
26
|
+
.google.protobuf.NullValue null = 2;
|
|
27
|
+
Type.PrimitiveType primitive = 3;
|
|
28
|
+
Type.PrimitiveType wrapper = 4;
|
|
29
|
+
Type.WellKnownType well_known = 5;
|
|
30
|
+
Type.ListType list_type = 6;
|
|
31
|
+
Type.MapType map_type = 7;
|
|
32
|
+
Type.FunctionType function = 8;
|
|
33
|
+
string message_type = 9;
|
|
34
|
+
string type_param = 10;
|
|
35
|
+
Type type = 11;
|
|
36
|
+
.google.protobuf.Empty error = 12;
|
|
37
|
+
Type.AbstractType abstract_type = 14;
|
|
38
|
+
}
|
|
39
|
+
enum PrimitiveType {
|
|
40
|
+
PRIMITIVE_TYPE_UNSPECIFIED = 0;
|
|
41
|
+
BOOL = 1;
|
|
42
|
+
INT64 = 2;
|
|
43
|
+
UINT64 = 3;
|
|
44
|
+
DOUBLE = 4;
|
|
45
|
+
STRING = 5;
|
|
46
|
+
BYTES = 6;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
enum WellKnownType {
|
|
50
|
+
WELL_KNOWN_TYPE_UNSPECIFIED = 0;
|
|
51
|
+
ANY = 1;
|
|
52
|
+
TIMESTAMP = 2;
|
|
53
|
+
DURATION = 3;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message ListType {
|
|
57
|
+
Type elem_type = 1;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message MapType {
|
|
61
|
+
Type key_type = 1;
|
|
62
|
+
Type value_type = 2;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
message FunctionType {
|
|
66
|
+
Type result_type = 1;
|
|
67
|
+
repeated Type arg_types = 2;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
message AbstractType {
|
|
71
|
+
string name = 1;
|
|
72
|
+
repeated Type parameter_types = 2;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message Decl {
|
|
78
|
+
string name = 1;
|
|
79
|
+
oneof decl_kind {
|
|
80
|
+
Decl.IdentDecl ident = 2;
|
|
81
|
+
Decl.FunctionDecl function = 3;
|
|
82
|
+
}
|
|
83
|
+
message IdentDecl {
|
|
84
|
+
Type type = 1;
|
|
85
|
+
Constant value = 2;
|
|
86
|
+
string doc = 3;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
message FunctionDecl {
|
|
90
|
+
repeated Decl.FunctionDecl.Overload overloads = 1;
|
|
91
|
+
string doc = 2;
|
|
92
|
+
message Overload {
|
|
93
|
+
string overload_id = 1;
|
|
94
|
+
repeated Type params = 2;
|
|
95
|
+
repeated string type_params = 3;
|
|
96
|
+
Type result_type = 4;
|
|
97
|
+
bool is_instance_function = 5;
|
|
98
|
+
string doc = 6;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message Reference {
|
|
106
|
+
string name = 1;
|
|
107
|
+
repeated string overload_id = 3;
|
|
108
|
+
Constant value = 4;
|
|
109
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package cel.expr;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/any.proto";
|
|
6
|
+
import "cel/expr/value.proto";
|
|
7
|
+
|
|
8
|
+
option java_package = "dev.cel.expr";
|
|
9
|
+
option java_outer_classname = "EvalProto";
|
|
10
|
+
option java_multiple_files = true;
|
|
11
|
+
option go_package = "cel.dev/expr";
|
|
12
|
+
option cc_enable_arenas = true;
|
|
13
|
+
|
|
14
|
+
message EvalState {
|
|
15
|
+
repeated ExprValue values = 1;
|
|
16
|
+
repeated EvalState.Result results = 3;
|
|
17
|
+
message Result {
|
|
18
|
+
int64 expr = 1;
|
|
19
|
+
int64 value = 2;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message ExprValue {
|
|
25
|
+
oneof kind {
|
|
26
|
+
Value value = 1;
|
|
27
|
+
ErrorSet error = 2;
|
|
28
|
+
UnknownSet unknown = 3;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message ErrorSet {
|
|
33
|
+
repeated Status errors = 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message Status {
|
|
37
|
+
int32 code = 1;
|
|
38
|
+
string message = 2;
|
|
39
|
+
repeated .google.protobuf.Any details = 3;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message UnknownSet {
|
|
43
|
+
repeated int64 exprs = 1;
|
|
44
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package cel.expr;
|
|
4
|
+
|
|
5
|
+
import "cel/expr/value.proto";
|
|
6
|
+
|
|
7
|
+
option java_package = "dev.cel.expr";
|
|
8
|
+
option java_outer_classname = "ExplainProto";
|
|
9
|
+
option java_multiple_files = true;
|
|
10
|
+
option go_package = "cel.dev/expr";
|
|
11
|
+
option cc_enable_arenas = true;
|
|
12
|
+
|
|
13
|
+
message Explain {
|
|
14
|
+
repeated Value values = 1;
|
|
15
|
+
repeated Explain.ExprStep expr_steps = 2;
|
|
16
|
+
message ExprStep {
|
|
17
|
+
int64 id = 1;
|
|
18
|
+
int32 value_index = 2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
option deprecated = true;
|
|
22
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package cel.expr;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/duration.proto";
|
|
6
|
+
import "google/protobuf/struct.proto";
|
|
7
|
+
import "google/protobuf/timestamp.proto";
|
|
8
|
+
|
|
9
|
+
option java_package = "dev.cel.expr";
|
|
10
|
+
option java_outer_classname = "SyntaxProto";
|
|
11
|
+
option java_multiple_files = true;
|
|
12
|
+
option go_package = "cel.dev/expr";
|
|
13
|
+
option cc_enable_arenas = true;
|
|
14
|
+
|
|
15
|
+
message ParsedExpr {
|
|
16
|
+
Expr expr = 2;
|
|
17
|
+
SourceInfo source_info = 3;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message Expr {
|
|
21
|
+
int64 id = 2;
|
|
22
|
+
oneof expr_kind {
|
|
23
|
+
Constant const_expr = 3;
|
|
24
|
+
Expr.Ident ident_expr = 4;
|
|
25
|
+
Expr.Select select_expr = 5;
|
|
26
|
+
Expr.Call call_expr = 6;
|
|
27
|
+
Expr.CreateList list_expr = 7;
|
|
28
|
+
Expr.CreateStruct struct_expr = 8;
|
|
29
|
+
Expr.Comprehension comprehension_expr = 9;
|
|
30
|
+
}
|
|
31
|
+
message Ident {
|
|
32
|
+
string name = 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message Select {
|
|
36
|
+
Expr operand = 1;
|
|
37
|
+
string field = 2;
|
|
38
|
+
bool test_only = 3;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message Call {
|
|
42
|
+
Expr target = 1;
|
|
43
|
+
string function = 2;
|
|
44
|
+
repeated Expr args = 3;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message CreateList {
|
|
48
|
+
repeated Expr elements = 1;
|
|
49
|
+
repeated int32 optional_indices = 2;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message CreateStruct {
|
|
53
|
+
string message_name = 1;
|
|
54
|
+
repeated Expr.CreateStruct.Entry entries = 2;
|
|
55
|
+
message Entry {
|
|
56
|
+
int64 id = 1;
|
|
57
|
+
oneof key_kind {
|
|
58
|
+
string field_key = 2;
|
|
59
|
+
Expr map_key = 3;
|
|
60
|
+
}
|
|
61
|
+
Expr value = 4;
|
|
62
|
+
bool optional_entry = 5;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message Comprehension {
|
|
68
|
+
string iter_var = 1;
|
|
69
|
+
string iter_var2 = 8;
|
|
70
|
+
Expr iter_range = 2;
|
|
71
|
+
string accu_var = 3;
|
|
72
|
+
Expr accu_init = 4;
|
|
73
|
+
Expr loop_condition = 5;
|
|
74
|
+
Expr loop_step = 6;
|
|
75
|
+
Expr result = 7;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message Constant {
|
|
81
|
+
oneof constant_kind {
|
|
82
|
+
.google.protobuf.NullValue null_value = 1;
|
|
83
|
+
bool bool_value = 2;
|
|
84
|
+
int64 int64_value = 3;
|
|
85
|
+
uint64 uint64_value = 4;
|
|
86
|
+
double double_value = 5;
|
|
87
|
+
string string_value = 6;
|
|
88
|
+
bytes bytes_value = 7;
|
|
89
|
+
.google.protobuf.Duration duration_value = 8 [deprecated = true];
|
|
90
|
+
.google.protobuf.Timestamp timestamp_value = 9 [deprecated = true];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
message SourceInfo {
|
|
95
|
+
string syntax_version = 1;
|
|
96
|
+
string location = 2;
|
|
97
|
+
repeated int32 line_offsets = 3;
|
|
98
|
+
map<int64, int32> positions = 4;
|
|
99
|
+
map<int64, Expr> macro_calls = 5;
|
|
100
|
+
repeated SourceInfo.Extension extensions = 6;
|
|
101
|
+
message Extension {
|
|
102
|
+
string id = 1;
|
|
103
|
+
repeated SourceInfo.Extension.Component affected_components = 2;
|
|
104
|
+
SourceInfo.Extension.Version version = 3;
|
|
105
|
+
enum Component {
|
|
106
|
+
COMPONENT_UNSPECIFIED = 0;
|
|
107
|
+
COMPONENT_PARSER = 1;
|
|
108
|
+
COMPONENT_TYPE_CHECKER = 2;
|
|
109
|
+
COMPONENT_RUNTIME = 3;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message Version {
|
|
113
|
+
int64 major = 1;
|
|
114
|
+
int64 minor = 2;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package cel.expr;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/any.proto";
|
|
6
|
+
import "google/protobuf/struct.proto";
|
|
7
|
+
|
|
8
|
+
option java_package = "dev.cel.expr";
|
|
9
|
+
option java_outer_classname = "ValueProto";
|
|
10
|
+
option java_multiple_files = true;
|
|
11
|
+
option go_package = "cel.dev/expr";
|
|
12
|
+
option cc_enable_arenas = true;
|
|
13
|
+
|
|
14
|
+
message Value {
|
|
15
|
+
oneof kind {
|
|
16
|
+
.google.protobuf.NullValue null_value = 1;
|
|
17
|
+
bool bool_value = 2;
|
|
18
|
+
int64 int64_value = 3;
|
|
19
|
+
uint64 uint64_value = 4;
|
|
20
|
+
double double_value = 5;
|
|
21
|
+
string string_value = 6;
|
|
22
|
+
bytes bytes_value = 7;
|
|
23
|
+
EnumValue enum_value = 9;
|
|
24
|
+
.google.protobuf.Any object_value = 10;
|
|
25
|
+
MapValue map_value = 11;
|
|
26
|
+
ListValue list_value = 12;
|
|
27
|
+
string type_value = 15;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message EnumValue {
|
|
32
|
+
string type = 1;
|
|
33
|
+
int32 value = 2;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message ListValue {
|
|
37
|
+
repeated Value values = 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message MapValue {
|
|
41
|
+
repeated MapValue.Entry entries = 1;
|
|
42
|
+
message Entry {
|
|
43
|
+
Value key = 1;
|
|
44
|
+
Value value = 2;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package grpc.status.v1;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/any.proto";
|
|
6
|
+
|
|
7
|
+
option java_package = "com.grpc.status.v1";
|
|
8
|
+
option java_outer_classname = "StatusProto";
|
|
9
|
+
option java_multiple_files = true;
|
|
10
|
+
option go_package = "connectrpc.com/connect/internal/gen/connectext/grpc/status/v1;statusv1";
|
|
11
|
+
option objc_class_prefix = "GSX";
|
|
12
|
+
option csharp_namespace = "Grpc.Status.V1";
|
|
13
|
+
option php_namespace = "Grpc\134Status\134V1";
|
|
14
|
+
option php_metadata_namespace = "Grpc\134Status\134V1\134GPBMetadata";
|
|
15
|
+
option ruby_package = "Grpc::Status::V1";
|
|
16
|
+
|
|
17
|
+
message Status {
|
|
18
|
+
int32 code = 1;
|
|
19
|
+
string message = 2;
|
|
20
|
+
repeated .google.protobuf.Any details = 3;
|
|
21
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package cockroach.errorspb;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/any.proto";
|
|
6
|
+
|
|
7
|
+
option go_package = "github.com/cockroachdb/errors/errorspb";
|
|
8
|
+
|
|
9
|
+
enum MessageType {
|
|
10
|
+
PREFIX = 0;
|
|
11
|
+
FULL_MESSAGE = 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message EncodedError {
|
|
15
|
+
oneof error {
|
|
16
|
+
EncodedErrorLeaf leaf = 1;
|
|
17
|
+
EncodedWrapper wrapper = 2;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message EncodedErrorLeaf {
|
|
22
|
+
string message = 1;
|
|
23
|
+
EncodedErrorDetails details = 2;
|
|
24
|
+
repeated EncodedError multierror_causes = 3;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message EncodedErrorDetails {
|
|
28
|
+
string original_type_name = 1;
|
|
29
|
+
ErrorTypeMark error_type_mark = 2;
|
|
30
|
+
repeated string reportable_payload = 3;
|
|
31
|
+
.google.protobuf.Any full_details = 4;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message EncodedWrapper {
|
|
35
|
+
EncodedError cause = 1;
|
|
36
|
+
string message = 2;
|
|
37
|
+
EncodedErrorDetails details = 3;
|
|
38
|
+
MessageType message_type = 4;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message ErrorTypeMark {
|
|
42
|
+
string family_name = 1;
|
|
43
|
+
string extension = 2;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message StringsPayload {
|
|
47
|
+
repeated string details = 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message ErrnoPayload {
|
|
51
|
+
int64 orig_errno = 1;
|
|
52
|
+
string arch = 2;
|
|
53
|
+
bool is_permission = 3;
|
|
54
|
+
bool is_exist = 4;
|
|
55
|
+
bool is_not_exist = 5;
|
|
56
|
+
bool is_timeout = 6;
|
|
57
|
+
bool is_temporary = 7;
|
|
58
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package exa.analytics_pb;
|
|
4
|
+
|
|
5
|
+
import "buf/validate/validate.proto";
|
|
6
|
+
import "exa/codeium_common_pb/codeium_common.proto";
|
|
7
|
+
import "exa/context_module_pb/context_module.proto";
|
|
8
|
+
import "exa/cortex_pb/cortex.proto";
|
|
9
|
+
import "exa/prompt_pb/prompt.proto";
|
|
10
|
+
import "google/protobuf/timestamp.proto";
|
|
11
|
+
|
|
12
|
+
option go_package = "github.com/Exafunction/Exafunction/exa/analytics_pb";
|
|
13
|
+
|
|
14
|
+
message RecordCommandUsageRequest {
|
|
15
|
+
.exa.codeium_common_pb.Metadata metadata = 1 [(buf.validate.field) = { required: true }];
|
|
16
|
+
string command = 2;
|
|
17
|
+
string selection = 3;
|
|
18
|
+
.exa.codeium_common_pb.CommandRequestSource request_source = 4;
|
|
19
|
+
string prompt_id = 5;
|
|
20
|
+
string completion_id = 6;
|
|
21
|
+
string completion = 7;
|
|
22
|
+
string prompt = 8;
|
|
23
|
+
.exa.codeium_common_pb.Model requested_model_id = 9;
|
|
24
|
+
.exa.codeium_common_pb.StopReason stop_reason = 10;
|
|
25
|
+
.exa.codeium_common_pb.Language language = 11;
|
|
26
|
+
.exa.codeium_common_pb.ProviderSource provider_source = 12;
|
|
27
|
+
.exa.prompt_pb.UnifiedPromptComponents command_prompt_components = 13;
|
|
28
|
+
.exa.cortex_pb.CortexTrajectoryReference cortex_trajectory_reference = 14;
|
|
29
|
+
.exa.codeium_common_pb.SuperCompleteFilterReason super_complete_filter_reason = 15;
|
|
30
|
+
.exa.codeium_common_pb.SupercompleteTriggerCondition supercomplete_trigger_condition = 17;
|
|
31
|
+
repeated .exa.codeium_common_pb.PromptStageLatency prompt_stage_latencies = 16;
|
|
32
|
+
.exa.codeium_common_pb.CompletionProfile completion_profile = 18;
|
|
33
|
+
int32 char_insertions = 19;
|
|
34
|
+
int32 char_deletions = 20;
|
|
35
|
+
repeated string trajectory_step_oids = 21;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
message RecordCommandUsageResponse {
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message BatchRecordPromptsRequest {
|
|
42
|
+
repeated RecordPromptRequest prompts = 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message BatchRecordPromptsResponse {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message RecordPromptRequest {
|
|
49
|
+
.exa.codeium_common_pb.Metadata metadata = 1 [(buf.validate.field) = { required: true }];
|
|
50
|
+
.exa.codeium_common_pb.CompletionsRequest request = 2 [(buf.validate.field) = { required: true }];
|
|
51
|
+
string prompt_id = 3 [(buf.validate.field) = { string: { min_len: 1 } }];
|
|
52
|
+
.google.protobuf.Timestamp timestamp = 4 [(buf.validate.field) = { required: true }];
|
|
53
|
+
string ip = 5 [(buf.validate.field) = { string: { min_len: 1 } }];
|
|
54
|
+
string inference_address = 6 [(buf.validate.field) = { string: { min_len: 1 } }];
|
|
55
|
+
.exa.codeium_common_pb.ProviderSource provider_source = 7;
|
|
56
|
+
string api_server_address = 8 [(buf.validate.field) = { string: { min_len: 1 } }];
|
|
57
|
+
.exa.codeium_common_pb.Model firstline_model = 9;
|
|
58
|
+
.exa.codeium_common_pb.PromptComponents prompt_components = 10;
|
|
59
|
+
bool is_server_side_prompt = 11;
|
|
60
|
+
.exa.prompt_pb.UnifiedPromptComponents unified_prompt_components = 12;
|
|
61
|
+
.exa.cortex_pb.CortexTrajectoryReference cortex_trajectory_reference = 13;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message RecordCompletionsRequest {
|
|
65
|
+
.exa.codeium_common_pb.Metadata metadata = 1 [(buf.validate.field) = { required: true }];
|
|
66
|
+
repeated .exa.codeium_common_pb.CompletionWithLatencyInfo completions_with_latency_info = 2;
|
|
67
|
+
string prompt_id = 3;
|
|
68
|
+
uint64 prompt_length = 4;
|
|
69
|
+
.exa.codeium_common_pb.ProviderSource provider_source = 5;
|
|
70
|
+
string relative_path = 6;
|
|
71
|
+
.exa.codeium_common_pb.Repository repository = 7;
|
|
72
|
+
string model_tag = 8;
|
|
73
|
+
.google.protobuf.Timestamp timestamp = 9;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message RecordCompletionsResponse {
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message BatchRecordCompletionsRequest {
|
|
80
|
+
repeated RecordCompletionsRequest completions = 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message BatchRecordCompletionsResponse {
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message RecordContextToPromptRequest {
|
|
87
|
+
.exa.codeium_common_pb.Metadata metadata = 1 [(buf.validate.field) = { required: true }];
|
|
88
|
+
.exa.context_module_pb.ContextUseCase prompt_user = 2;
|
|
89
|
+
string chat_message_id = 3;
|
|
90
|
+
repeated .exa.context_module_pb.RetrievedCodeContextItemMetadata retrieved_code_context_item_metadata = 4;
|
|
91
|
+
uint64 latency_ms = 5;
|
|
92
|
+
.google.protobuf.Timestamp timestamp = 6 [(buf.validate.field) = { required: true }];
|
|
93
|
+
.exa.cortex_pb.CortexWorkflowState cortex_state = 7;
|
|
94
|
+
string prompt_id = 8;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message RecordContextToPromptResponse {
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
message RecordCortexTrajectoryRequest {
|
|
101
|
+
.exa.codeium_common_pb.Metadata metadata = 1 [(buf.validate.field) = { required: true }];
|
|
102
|
+
string trajectory_id = 2;
|
|
103
|
+
string cascade_id = 5;
|
|
104
|
+
optional string arena_id = 8;
|
|
105
|
+
.exa.cortex_pb.CortexTrajectoryType trajectory_type = 3;
|
|
106
|
+
.exa.cortex_pb.CortexTrajectorySource trajectory_source = 7;
|
|
107
|
+
repeated .exa.cortex_pb.CortexTrajectoryReference parents = 4;
|
|
108
|
+
.exa.cortex_pb.CortexTrajectoryMetadata trajectory_metadata = 6;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message RecordCortexTrajectoryResponse {
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message RecordCortexTrajectoryStepRequest {
|
|
115
|
+
.exa.codeium_common_pb.Metadata metadata = 1 [(buf.validate.field) = { required: true }];
|
|
116
|
+
.exa.cortex_pb.CortexTrajectoryStep step = 2 [(buf.validate.field) = { required: true }];
|
|
117
|
+
.exa.cortex_pb.CortexTrajectoryReference reference = 3 [(buf.validate.field) = { required: true }];
|
|
118
|
+
.exa.cortex_pb.AcknowledgementType acknowledgement_type = 4;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
message RecordCortexTrajectoryStepResponse {
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message RecordTabTrajectoryStepRequest {
|
|
125
|
+
.exa.codeium_common_pb.Metadata metadata = 1 [(buf.validate.field) = { required: true }];
|
|
126
|
+
.exa.cortex_pb.CortexTrajectoryStep step = 2;
|
|
127
|
+
.exa.cortex_pb.CortexTrajectoryReference reference = 3;
|
|
128
|
+
string oid = 4;
|
|
129
|
+
repeated TabTrajectoryStepEntry steps = 5;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
message TabTrajectoryStepEntry {
|
|
133
|
+
.exa.cortex_pb.CortexTrajectoryStep step = 1;
|
|
134
|
+
.exa.cortex_pb.CortexTrajectoryReference reference = 2;
|
|
135
|
+
string oid = 3;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
message RecordTabTrajectoryStepResponse {
|
|
139
|
+
bool uploaded = 1;
|
|
140
|
+
repeated string uploaded_oids = 2;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message RecordArenaModeTrajectoryDetailsRequest {
|
|
144
|
+
.exa.codeium_common_pb.Metadata metadata = 1 [(buf.validate.field) = { required: true }];
|
|
145
|
+
string arena_id = 2;
|
|
146
|
+
string cascade_id = 3;
|
|
147
|
+
string trajectory_id = 4;
|
|
148
|
+
uint32 step_index = 5;
|
|
149
|
+
.exa.cortex_pb.CortexStepType step_type = 6;
|
|
150
|
+
.exa.cortex_pb.AcknowledgementType acknowledgement_type = 7;
|
|
151
|
+
.exa.codeium_common_pb.Model model = 8;
|
|
152
|
+
string label = 9;
|
|
153
|
+
.exa.codeium_common_pb.ModelProvider model_provider = 10;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
message RecordArenaModeTrajectoryDetailsResponse {
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
message RecordRawCompletionRequest {
|
|
160
|
+
.exa.codeium_common_pb.Metadata metadata = 1 [(buf.validate.field) = { required: true }];
|
|
161
|
+
string trajectory_id = 2;
|
|
162
|
+
string cascade_id = 3;
|
|
163
|
+
int32 step_index = 4;
|
|
164
|
+
string model_name = 5;
|
|
165
|
+
string raw_prompt = 6;
|
|
166
|
+
string raw_response = 7;
|
|
167
|
+
int64 latency = 8;
|
|
168
|
+
string error = 9;
|
|
169
|
+
.google.protobuf.Timestamp timestamp = 10;
|
|
170
|
+
string prompt_id = 11;
|
|
171
|
+
.exa.codeium_common_pb.ProviderSource provider_source = 12;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
message BatchRecordRawCompletionsRequest {
|
|
175
|
+
repeated RecordRawCompletionRequest records = 1;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
message BatchRecordRawCompletionsResponse {
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
service AnalyticsService {
|
|
182
|
+
rpc RecordCommandUsage(RecordCommandUsageRequest) returns (RecordCommandUsageResponse);
|
|
183
|
+
rpc RecordCompletions(RecordCompletionsRequest) returns (RecordCompletionsResponse);
|
|
184
|
+
rpc RecordContextToPrompt(RecordContextToPromptRequest) returns (RecordContextToPromptResponse);
|
|
185
|
+
rpc RecordCortexTrajectory(RecordCortexTrajectoryRequest) returns (RecordCortexTrajectoryResponse);
|
|
186
|
+
rpc RecordCortexTrajectoryStep(RecordCortexTrajectoryStepRequest) returns (RecordCortexTrajectoryStepResponse);
|
|
187
|
+
rpc RecordTabTrajectoryStep(RecordTabTrajectoryStepRequest) returns (RecordTabTrajectoryStepResponse);
|
|
188
|
+
rpc BatchRecordPrompts(BatchRecordPromptsRequest) returns (BatchRecordPromptsResponse);
|
|
189
|
+
rpc BatchRecordCompletions(BatchRecordCompletionsRequest) returns (BatchRecordCompletionsResponse);
|
|
190
|
+
}
|