@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,28 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package exa.dev_pb;
|
|
4
|
+
|
|
5
|
+
import "exa/codeium_common_pb/codeium_common.proto";
|
|
6
|
+
|
|
7
|
+
option go_package = "github.com/Exafunction/Exafunction/exa/dev_pb";
|
|
8
|
+
|
|
9
|
+
message DevRequest {
|
|
10
|
+
string command = 1;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message DevResponse {
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message GetLSPCompletionItemsRequest {
|
|
17
|
+
string document_uri = 1;
|
|
18
|
+
.exa.codeium_common_pb.DocumentPosition position = 2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message GetLSPCompletionItemsResponse {
|
|
22
|
+
string completion_items_json = 1;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
service DevService {
|
|
26
|
+
rpc Dev(DevRequest) returns (DevResponse);
|
|
27
|
+
rpc GetLSPCompletionItems(GetLSPCompletionItemsRequest) returns (GetLSPCompletionItemsResponse);
|
|
28
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package exa.diff_action_pb;
|
|
4
|
+
|
|
5
|
+
import "exa/codeium_common_pb/codeium_common.proto";
|
|
6
|
+
|
|
7
|
+
option go_package = "github.com/Exafunction/Exafunction/exa/diff_action_pb";
|
|
8
|
+
|
|
9
|
+
enum UnifiedDiffLineType {
|
|
10
|
+
UNIFIED_DIFF_LINE_TYPE_UNSPECIFIED = 0;
|
|
11
|
+
UNIFIED_DIFF_LINE_TYPE_INSERT = 1;
|
|
12
|
+
UNIFIED_DIFF_LINE_TYPE_DELETE = 2;
|
|
13
|
+
UNIFIED_DIFF_LINE_TYPE_UNCHANGED = 3;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
enum DiffChangeType {
|
|
17
|
+
DIFF_CHANGE_TYPE_UNSPECIFIED = 0;
|
|
18
|
+
DIFF_CHANGE_TYPE_INSERT = 1;
|
|
19
|
+
DIFF_CHANGE_TYPE_DELETE = 2;
|
|
20
|
+
DIFF_CHANGE_TYPE_UNCHANGED = 3;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
enum DiffType {
|
|
24
|
+
DIFF_TYPE_UNSPECIFIED = 0;
|
|
25
|
+
DIFF_TYPE_UNIFIED = 1;
|
|
26
|
+
DIFF_TYPE_CHARACTER = 2;
|
|
27
|
+
DIFF_TYPE_COMBO = 3;
|
|
28
|
+
reserved 4;
|
|
29
|
+
reserved 5;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message UnifiedDiff {
|
|
33
|
+
repeated UnifiedDiff.UnifiedDiffLine lines = 3;
|
|
34
|
+
message UnifiedDiffLine {
|
|
35
|
+
string text = 1;
|
|
36
|
+
UnifiedDiffLineType type = 2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message DiffBlock {
|
|
42
|
+
int32 start_line = 1;
|
|
43
|
+
int32 end_line = 2;
|
|
44
|
+
UnifiedDiff unified_diff = 3;
|
|
45
|
+
.exa.codeium_common_pb.Language from_language = 4;
|
|
46
|
+
.exa.codeium_common_pb.Language to_language = 5;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message CharacterDiffChange {
|
|
50
|
+
string text = 1;
|
|
51
|
+
DiffChangeType type = 2;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message CharacterDiff {
|
|
55
|
+
repeated CharacterDiffChange changes = 1;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message ComboDiffLine {
|
|
59
|
+
string text = 1;
|
|
60
|
+
DiffChangeType type = 2;
|
|
61
|
+
CharacterDiff character_diff = 3;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message ComboDiff {
|
|
65
|
+
repeated ComboDiffLine lines = 1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
message DiffSet {
|
|
69
|
+
UnifiedDiff unified_diff = 1;
|
|
70
|
+
CharacterDiff character_diff = 2;
|
|
71
|
+
ComboDiff combo_diff = 3;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message DiffList {
|
|
75
|
+
repeated DiffBlock diffs = 2;
|
|
76
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package exa.eval.pr_eval.datasets_pb;
|
|
4
|
+
|
|
5
|
+
import "exa/cortex_pb/cortex.proto";
|
|
6
|
+
|
|
7
|
+
message MetricScoreContribution {
|
|
8
|
+
oneof score_source {
|
|
9
|
+
string metric_name = 1;
|
|
10
|
+
string existing_field_name = 3;
|
|
11
|
+
}
|
|
12
|
+
float weight = 2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message ScoreCalculationConfig {
|
|
16
|
+
repeated MetricScoreContribution metric_score_contributions = 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message DetailStringFilter {
|
|
20
|
+
string detail_key = 1;
|
|
21
|
+
oneof match_type {
|
|
22
|
+
string exact_match = 2;
|
|
23
|
+
string contains = 3;
|
|
24
|
+
string regex_pattern = 4;
|
|
25
|
+
}
|
|
26
|
+
bool invert = 5;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
message MetricsRecordFilterRequest {
|
|
30
|
+
oneof score_source {
|
|
31
|
+
string record_name = 1;
|
|
32
|
+
string existing_field_name = 4;
|
|
33
|
+
}
|
|
34
|
+
optional float max_allowed = 2;
|
|
35
|
+
optional float min_allowed = 3;
|
|
36
|
+
bool is_optional = 5;
|
|
37
|
+
repeated DetailStringFilter detail_filters = 6;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message FilterTrajectoryStageConfig {
|
|
41
|
+
string trajectory_field_name = 15;
|
|
42
|
+
repeated .exa.cortex_pb.CortexStepType required_step_types = 2;
|
|
43
|
+
int32 min_trajectory_length = 3;
|
|
44
|
+
bool retain_filtered_rows = 4;
|
|
45
|
+
bool truncate_trajectory_to_judge_steps = 9;
|
|
46
|
+
bool use_downloaded_score = 16 [deprecated = true];
|
|
47
|
+
oneof selection_mode {
|
|
48
|
+
FilterTrajectoryStageConfig.SelectionModeBestScoreConfig selection_mode_best_score = 10;
|
|
49
|
+
FilterTrajectoryStageConfig.SelectionModeGeneratePairsConfig selection_mode_generate_pairs = 11;
|
|
50
|
+
FilterTrajectoryStageConfig.SelectionModeGTvsBestConfig selection_mode_gt_vs_best = 12;
|
|
51
|
+
FilterTrajectoryStageConfig.SelectionModeKTOThresholdConfig selection_mode_kto_threshold = 17;
|
|
52
|
+
FilterTrajectoryStageConfig.SelectionModeModelNameConfig selection_mode_model_name = 18;
|
|
53
|
+
}
|
|
54
|
+
ScoreCalculationConfig score_calculation_config = 13;
|
|
55
|
+
repeated MetricsRecordFilterRequest metrics_record_filters = 14;
|
|
56
|
+
message SelectionModeBestScoreConfig {
|
|
57
|
+
float min_score_threshold = 1;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message SelectionModeGeneratePairsConfig {
|
|
61
|
+
float min_win_rating = 1;
|
|
62
|
+
float min_rating_delta = 2;
|
|
63
|
+
float min_axis_delta = 4;
|
|
64
|
+
int32 max_occurrences_per_example = 3;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
message SelectionModeGTvsBestConfig {
|
|
68
|
+
float min_score_threshold = 1;
|
|
69
|
+
float min_rating_delta = 2;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message SelectionModeKTOThresholdConfig {
|
|
73
|
+
float min_positive_score = 1;
|
|
74
|
+
float max_negative_score = 2;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message SelectionModeModelNameConfig {
|
|
78
|
+
string winner_model_name = 1;
|
|
79
|
+
string loser_model_name = 2;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
reserved 1;
|
|
83
|
+
reserved 5;
|
|
84
|
+
reserved 6;
|
|
85
|
+
reserved 7;
|
|
86
|
+
reserved 8;
|
|
87
|
+
reserved "min_score_threshold";
|
|
88
|
+
reserved "generate_preference_pairs";
|
|
89
|
+
reserved "min_win_rating";
|
|
90
|
+
reserved "min_rating_delta";
|
|
91
|
+
reserved "max_occurrences_per_example";
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
message MergeFormattedPreferencePairsConfig {
|
|
95
|
+
MergeFormattedPreferencePairsConfig.MismatchedPromptResolution mismatched_prompt_resolution = 1;
|
|
96
|
+
int32 max_allowed_trailing_mismatched_steps = 2;
|
|
97
|
+
string expected_last_prompt_content = 3;
|
|
98
|
+
int32 world_size = 4;
|
|
99
|
+
enum MismatchedPromptResolution {
|
|
100
|
+
MISMATCHED_PROMPT_RESOLUTION_UNSPECIFIED = 0;
|
|
101
|
+
MISMATCHED_PROMPT_RESOLUTION_STRICT_MATCH = 1;
|
|
102
|
+
MISMATCHED_PROMPT_RESOLUTION_KEEP_WINNER = 2;
|
|
103
|
+
MISMATCHED_PROMPT_RESOLUTION_KEEP_LOSER = 3;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
}
|