@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.
Files changed (107) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +214 -2
  3. package/index.ts +16 -0
  4. package/package.json +62 -3
  5. package/proto/README.md +78 -0
  6. package/proto/buf/validate/validate.proto +453 -0
  7. package/proto/cel/expr/checked.proto +109 -0
  8. package/proto/cel/expr/eval.proto +44 -0
  9. package/proto/cel/expr/explain.proto +22 -0
  10. package/proto/cel/expr/syntax.proto +119 -0
  11. package/proto/cel/expr/value.proto +47 -0
  12. package/proto/connectext/grpc/status/v1/status.proto +21 -0
  13. package/proto/errorspb/errors.proto +58 -0
  14. package/proto/errorspb/hintdetail.proto +9 -0
  15. package/proto/errorspb/markers.proto +12 -0
  16. package/proto/errorspb/tags.proto +14 -0
  17. package/proto/errorspb/testing.proto +8 -0
  18. package/proto/exa/analytics_pb/analytics.proto +190 -0
  19. package/proto/exa/api_server_pb/api_server.proto +2590 -0
  20. package/proto/exa/auth_pb/auth.proto +21 -0
  21. package/proto/exa/auto_cascade_common_pb/auto_cascade_common.proto +81 -0
  22. package/proto/exa/browser_preview_pb/browser_preview.proto +26 -0
  23. package/proto/exa/bug_checker_pb/bug_checker.proto +24 -0
  24. package/proto/exa/cascade_plugins_pb/cascade_plugins.proto +264 -0
  25. package/proto/exa/chat_client_server_pb/chat_client_server.proto +57 -0
  26. package/proto/exa/chat_pb/chat.proto +452 -0
  27. package/proto/exa/code_edit/code_edit_pb/code_edit.proto +186 -0
  28. package/proto/exa/codeium_common_pb/browser_context.proto +31 -0
  29. package/proto/exa/codeium_common_pb/codeium_common.proto +4183 -0
  30. package/proto/exa/context_module_pb/context_module.proto +174 -0
  31. package/proto/exa/cortex_pb/cortex.proto +3288 -0
  32. package/proto/exa/dev_pb/dev.proto +28 -0
  33. package/proto/exa/diff_action_pb/diff_action.proto +76 -0
  34. package/proto/exa/eval/pr_eval/datasets_pb/datasets.proto +106 -0
  35. package/proto/exa/eval_pb/eval.proto +1318 -0
  36. package/proto/exa/extension_server_pb/extension_server.proto +555 -0
  37. package/proto/exa/file_system_provider_pb/file_system_provider.proto +75 -0
  38. package/proto/exa/index_pb/index.proto +469 -0
  39. package/proto/exa/knowledge_base_pb/knowledge_base.proto +146 -0
  40. package/proto/exa/language_server_pb/language_server.proto +2435 -0
  41. package/proto/exa/model_management_pb/model_management.proto +184 -0
  42. package/proto/exa/opensearch_clients_pb/opensearch_clients.proto +495 -0
  43. package/proto/exa/product_analytics_pb/product_analytics.proto +39 -0
  44. package/proto/exa/prompt_pb/prompt.proto +97 -0
  45. package/proto/exa/reactive_component_pb/reactive_component.proto +98 -0
  46. package/proto/exa/seat_management_pb/seat_management.proto +2910 -0
  47. package/proto/exa/tokenizer_pb/tokenizer.proto +39 -0
  48. package/proto/exa/trainer_pb/config.proto +643 -0
  49. package/proto/exa/tree_sitter/language_data_pb/language_data.proto +14 -0
  50. package/proto/exa/trust_pb/trust.proto +192 -0
  51. package/proto/exa/user_analytics_pb/user_analytics.proto +752 -0
  52. package/proto/google/api/expr/v1alpha1/checked.proto +108 -0
  53. package/proto/google/api/expr/v1alpha1/eval.proto +38 -0
  54. package/proto/google/api/expr/v1alpha1/explain.proto +22 -0
  55. package/proto/google/api/expr/v1alpha1/syntax.proto +126 -0
  56. package/proto/google/api/expr/v1alpha1/value.proto +47 -0
  57. package/proto/google/protobuf/any.proto +15 -0
  58. package/proto/google/protobuf/cpp_features.proto +22 -0
  59. package/proto/google/protobuf/descriptor.proto +473 -0
  60. package/proto/google/protobuf/duration.proto +16 -0
  61. package/proto/google/protobuf/empty.proto +14 -0
  62. package/proto/google/protobuf/go_features.proto +31 -0
  63. package/proto/google/protobuf/struct.proto +34 -0
  64. package/proto/google/protobuf/timestamp.proto +16 -0
  65. package/proto/google/protobuf/wrappers.proto +47 -0
  66. package/proto/google/rpc/status.proto +18 -0
  67. package/proto/grpc/binlog/v1/binarylog.proto +89 -0
  68. package/proto/io/prometheus/client/metrics.proto +103 -0
  69. package/src/core/auth/access.ts +6 -0
  70. package/src/core/auth/index.ts +2 -0
  71. package/src/core/auth/login.ts +177 -0
  72. package/src/core/auth/rest-exchange.ts +35 -0
  73. package/src/core/client.ts +153 -0
  74. package/src/core/index.ts +12 -0
  75. package/src/core/inference/chat.ts +229 -0
  76. package/src/core/inference/images.ts +24 -0
  77. package/src/core/inference/messages.ts +34 -0
  78. package/src/core/inference/retry.ts +68 -0
  79. package/src/core/inference/state.ts +8 -0
  80. package/src/core/models/access.ts +7 -0
  81. package/src/core/models/catalog.ts +35 -0
  82. package/src/core/models/index.ts +4 -0
  83. package/src/core/models/select.ts +43 -0
  84. package/src/core/models/variants.ts +163 -0
  85. package/src/core/protocol/device.ts +73 -0
  86. package/src/core/protocol/fingerprint.ts +59 -0
  87. package/src/core/protocol/http.ts +109 -0
  88. package/src/core/protocol/protobuf.ts +112 -0
  89. package/src/core/protocol/transport.ts +501 -0
  90. package/src/core/types.ts +115 -0
  91. package/src/pi/auth.ts +134 -0
  92. package/src/pi/devin-command.ts +76 -0
  93. package/src/pi/devin-panel.ts +77 -0
  94. package/src/pi/devin-settings.ts +50 -0
  95. package/src/pi/extension.ts +80 -0
  96. package/src/pi/fusion-command.ts +83 -0
  97. package/src/pi/fusion-picker.ts +171 -0
  98. package/src/pi/fusion-settings.ts +44 -0
  99. package/src/pi/lifecycle.ts +217 -0
  100. package/src/pi/messages.ts +107 -0
  101. package/src/pi/models.ts +378 -0
  102. package/src/pi/provider.ts +241 -0
  103. package/src/pi/sidekick-report.ts +42 -0
  104. package/src/pi/sidekick-runtime.ts +287 -0
  105. package/src/pi/sidekick.ts +190 -0
  106. package/src/pi/stream.ts +124 -0
  107. package/src/pi/usage.ts +153 -0
@@ -0,0 +1,97 @@
1
+ syntax = "proto3";
2
+
3
+ package exa.prompt_pb;
4
+
5
+ import "exa/chat_pb/chat.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/language_server_pb/language_server.proto";
10
+
11
+ option go_package = "github.com/Exafunction/Exafunction/exa/prompt_pb";
12
+
13
+ message PendingCommand {
14
+ string instruction = 1;
15
+ string completion = 2;
16
+ }
17
+
18
+ message CommandIntentInfo {
19
+ string selection = 1;
20
+ string instruction = 2;
21
+ .exa.codeium_common_pb.Document input_document = 3;
22
+ uint64 selection_start_line = 4;
23
+ uint64 selection_end_line = 5;
24
+ .exa.codeium_common_pb.TerminalCommandData terminal_command_data = 6;
25
+ repeated .exa.codeium_common_pb.TerminalShellCommand previous_commands = 7;
26
+ repeated PendingCommand pending_commands = 8;
27
+ .exa.codeium_common_pb.CommandRequestSource request_source = 9;
28
+ repeated .exa.codeium_common_pb.IntellisenseSuggestion intellisense_prompt = 10;
29
+ repeated .exa.codeium_common_pb.CodeDiagnostic diagnostics_prompt = 11;
30
+ }
31
+
32
+ message SupercompleteFeedback {
33
+ bool accepted = 1;
34
+ bool intentional_reject = 2;
35
+ string completion_id = 3;
36
+ int64 timestamp_ms = 4;
37
+ .exa.language_server_pb.HandleStreamingTabV2Response.Diff diff_suggestion = 5;
38
+ .exa.language_server_pb.HandleStreamingTabV2Response.TabJump tabjump_suggestion = 6;
39
+ }
40
+
41
+ message SupercompleteFeedbackContext {
42
+ repeated SupercompleteFeedback feedback = 1;
43
+ }
44
+
45
+ message UnifiedPromptComponents {
46
+ .exa.context_module_pb.ContextModuleResult context_module_result = 2;
47
+ .exa.cortex_pb.CortexTrajectory cortex_trajectory = 3;
48
+ CommandIntentInfo command_intent_info = 4;
49
+ repeated .exa.chat_pb.ChatMessage chat_messages = 1;
50
+ repeated .exa.codeium_common_pb.CodeDiagnostic code_diagnostics = 5;
51
+ repeated .exa.codeium_common_pb.Document other_documents = 9;
52
+ .exa.chat_pb.DeepWikiSymbolContext deep_wiki_context = 10 [deprecated = true];
53
+ .exa.chat_pb.DeepWikiContext deep_wiki_context_v2 = 11;
54
+ SupercompleteFeedbackContext supercomplete_feedback_context = 12;
55
+ reserved 6;
56
+ reserved 7;
57
+ reserved 8;
58
+ reserved "knowledge_base_result";
59
+ reserved "knowledge_base_items";
60
+ reserved "knowledge_base_groups";
61
+ }
62
+
63
+ message SystemPromptConstructionConfig {
64
+ string element_separator = 1;
65
+ }
66
+
67
+ message CommandPromptCacheConfig {
68
+ int64 max_tracked_files = 1;
69
+ int64 max_cache_age_seconds = 2;
70
+ }
71
+
72
+ message CumulativePromptConfig {
73
+ float persistent_context_multiplier = 7;
74
+ float persistent_active_document_multiplier = 10;
75
+ float persistent_open_docs_multiplier = 11;
76
+ int64 persistent_max_tokens_per_open_doc = 17;
77
+ int64 persistent_max_ccis_considered = 12;
78
+ float persistent_document_suffix_frac = 20;
79
+ float trajectory_context_multiplier = 2;
80
+ float trajectory_refresh_threshold_multiplier = 15;
81
+ float trajectory_truncation_multiplier = 16;
82
+ float ephemeral_context_multiplier = 9;
83
+ int64 intent_reservation_tokens = 6;
84
+ float ephemeral_active_document_multiplier = 13;
85
+ int64 ephemeral_max_ccis_considered = 14;
86
+ float ephemeral_document_suffix_frac = 21;
87
+ repeated .exa.cortex_pb.CortexStepType allowed_cascade_step_types = 18;
88
+ map<string, bool> allowed_implicit_step_types = 22;
89
+ reserved 1;
90
+ reserved 3;
91
+ reserved 4;
92
+ reserved 5;
93
+ reserved "active_document_context_multiplier";
94
+ reserved "context_item_context_multiplier";
95
+ reserved "cache_context_multiplier";
96
+ reserved "max_ccis_considered";
97
+ }
@@ -0,0 +1,98 @@
1
+ syntax = "proto3";
2
+
3
+ package exa.reactive_component_pb;
4
+
5
+ option go_package = "github.com/Exafunction/Exafunction/exa/reactive_component_pb";
6
+
7
+ enum TestEnum {
8
+ TEST_ENUM_UNSPECIFIED = 0;
9
+ TEST_ENUM_ONE = 1;
10
+ TEST_ENUM_TWO = 2;
11
+ }
12
+
13
+ message StreamReactiveUpdatesRequest {
14
+ uint32 protocol_version = 1;
15
+ string id = 2;
16
+ }
17
+
18
+ message StreamReactiveUpdatesResponse {
19
+ uint64 version = 1;
20
+ MessageDiff diff = 2;
21
+ bytes full_state = 3;
22
+ }
23
+
24
+ message TestProto {
25
+ int32 counter = 1;
26
+ repeated int32 values = 2;
27
+ TestProto nested = 3;
28
+ repeated TestProto nested_repeated = 4;
29
+ }
30
+
31
+ message MessageDiff {
32
+ repeated FieldDiff field_diffs = 1;
33
+ }
34
+
35
+ message FieldDiff {
36
+ uint32 field_number = 1;
37
+ oneof diff {
38
+ SingularValue update_singular = 2;
39
+ RepeatedDiff update_repeated = 3;
40
+ MapDiff update_map = 4;
41
+ bool clear = 5;
42
+ }
43
+ }
44
+
45
+ message RepeatedDiff {
46
+ uint32 new_length = 1;
47
+ repeated SingularValue update_values = 2;
48
+ repeated uint32 update_indices = 3;
49
+ }
50
+
51
+ message MapDiff {
52
+ repeated MapKeyDiff map_key_diffs = 1;
53
+ }
54
+
55
+ message MapKeyDiff {
56
+ SingularValue map_key = 1;
57
+ oneof diff {
58
+ SingularValue update_singular = 2;
59
+ bool clear = 3;
60
+ }
61
+ }
62
+
63
+ message SingularValue {
64
+ oneof value {
65
+ double double_value = 1;
66
+ float float_value = 2;
67
+ int32 int32_value = 3;
68
+ int64 int64_value = 4;
69
+ uint32 uint32_value = 5;
70
+ uint64 uint64_value = 6;
71
+ sint32 sint32_value = 7;
72
+ sint64 sint64_value = 8;
73
+ fixed32 fixed32_value = 9;
74
+ fixed64 fixed64_value = 10;
75
+ sfixed32 sfixed32_value = 11;
76
+ sfixed64 sfixed64_value = 12;
77
+ bool bool_value = 13;
78
+ uint32 enum_value = 14;
79
+ string string_value = 15;
80
+ bytes bytes_value = 16;
81
+ MessageDiff message_value = 17;
82
+ }
83
+ }
84
+
85
+ message TestDiffProto {
86
+ double singular_scalar_value = 1;
87
+ TestProto singular_message_value = 2;
88
+ optional double optional_scalar_value = 10;
89
+ repeated double repeated_scalar_value = 3;
90
+ repeated TestProto repeated_message_value = 4;
91
+ map<int32, double> map_scalar_value = 5;
92
+ map<string, TestProto> map_message_value = 6;
93
+ oneof oneof_test {
94
+ double oneof_scalar_value = 7;
95
+ TestProto oneof_message_value = 8;
96
+ }
97
+ TestEnum enum_value = 9;
98
+ }