@velum-labs/cursorkit 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 (142) hide show
  1. package/DISCLAIMER.md +12 -0
  2. package/README.md +157 -0
  3. package/dist/src/agentTools/diff.d.ts +11 -0
  4. package/dist/src/agentTools/diff.js +88 -0
  5. package/dist/src/agentTools/policy.d.ts +3 -0
  6. package/dist/src/agentTools/policy.js +12 -0
  7. package/dist/src/agentTools/registry.d.ts +114 -0
  8. package/dist/src/agentTools/registry.js +663 -0
  9. package/dist/src/agentTools/results.d.ts +14 -0
  10. package/dist/src/agentTools/results.js +117 -0
  11. package/dist/src/agentTools/schemas.d.ts +3 -0
  12. package/dist/src/agentTools/schemas.js +89 -0
  13. package/dist/src/agentTools/surface.d.ts +11 -0
  14. package/dist/src/agentTools/surface.js +251 -0
  15. package/dist/src/certs.d.ts +8 -0
  16. package/dist/src/certs.js +34 -0
  17. package/dist/src/ck.d.ts +2 -0
  18. package/dist/src/ck.js +6 -0
  19. package/dist/src/ckLauncher.d.ts +150 -0
  20. package/dist/src/ckLauncher.js +1496 -0
  21. package/dist/src/cli.d.ts +2 -0
  22. package/dist/src/cli.js +265 -0
  23. package/dist/src/config.d.ts +52 -0
  24. package/dist/src/config.js +210 -0
  25. package/dist/src/connectEnvelope.d.ts +16 -0
  26. package/dist/src/connectEnvelope.js +70 -0
  27. package/dist/src/desktop.d.ts +19 -0
  28. package/dist/src/desktop.js +167 -0
  29. package/dist/src/desktopConnectProxy.d.ts +26 -0
  30. package/dist/src/desktopConnectProxy.js +175 -0
  31. package/dist/src/extensions/index.d.ts +2 -0
  32. package/dist/src/extensions/index.js +1 -0
  33. package/dist/src/extensions/registry.d.ts +8 -0
  34. package/dist/src/extensions/registry.js +52 -0
  35. package/dist/src/extensions/types.d.ts +42 -0
  36. package/dist/src/extensions/types.js +1 -0
  37. package/dist/src/fixtures/modelFusion.d.ts +103 -0
  38. package/dist/src/fixtures/modelFusion.js +404 -0
  39. package/dist/src/fixtures/replay.d.ts +9 -0
  40. package/dist/src/fixtures/replay.js +41 -0
  41. package/dist/src/fixtures/sanitizer.d.ts +9 -0
  42. package/dist/src/fixtures/sanitizer.js +43 -0
  43. package/dist/src/fixtures/schema.d.ts +38 -0
  44. package/dist/src/fixtures/schema.js +33 -0
  45. package/dist/src/gen/agent/v1/agent_pb.d.ts +21577 -0
  46. package/dist/src/gen/agent/v1/agent_pb.js +5325 -0
  47. package/dist/src/gen/aiserver/v1/aiserver_pb.d.ts +135242 -0
  48. package/dist/src/gen/aiserver/v1/aiserver_pb.js +34430 -0
  49. package/dist/src/gen/anyrun/v1/anyrun_pb.d.ts +1163 -0
  50. package/dist/src/gen/anyrun/v1/anyrun_pb.js +374 -0
  51. package/dist/src/gen/google/protobuf/google_pb.d.ts +142 -0
  52. package/dist/src/gen/google/protobuf/google_pb.js +54 -0
  53. package/dist/src/gen/internapi/v1/internapi_pb.d.ts +121 -0
  54. package/dist/src/gen/internapi/v1/internapi_pb.js +79 -0
  55. package/dist/src/logger.d.ts +8 -0
  56. package/dist/src/logger.js +37 -0
  57. package/dist/src/modelFusion/cursorHarness.d.ts +146 -0
  58. package/dist/src/modelFusion/cursorHarness.js +647 -0
  59. package/dist/src/modelFusion/index.d.ts +4 -0
  60. package/dist/src/modelFusion/index.js +2 -0
  61. package/dist/src/models/registry.d.ts +22 -0
  62. package/dist/src/models/registry.js +30 -0
  63. package/dist/src/proto.d.ts +13 -0
  64. package/dist/src/proto.js +61 -0
  65. package/dist/src/providers/openai.d.ts +64 -0
  66. package/dist/src/providers/openai.js +355 -0
  67. package/dist/src/redaction.d.ts +4 -0
  68. package/dist/src/redaction.js +65 -0
  69. package/dist/src/routeInventory.d.ts +16 -0
  70. package/dist/src/routeInventory.js +39 -0
  71. package/dist/src/routes.d.ts +37 -0
  72. package/dist/src/routes.js +227 -0
  73. package/dist/src/server.d.ts +50 -0
  74. package/dist/src/server.js +1353 -0
  75. package/dist/src/services/agent.d.ts +1 -0
  76. package/dist/src/services/agent.js +7 -0
  77. package/dist/src/services/agentRun.d.ts +60 -0
  78. package/dist/src/services/agentRun.js +391 -0
  79. package/dist/src/services/chat.d.ts +11 -0
  80. package/dist/src/services/chat.js +47 -0
  81. package/dist/src/services/models.d.ts +10 -0
  82. package/dist/src/services/models.js +216 -0
  83. package/dist/src/services/serverConfig.d.ts +2 -0
  84. package/dist/src/services/serverConfig.js +19 -0
  85. package/dist/src/testing/artifacts.d.ts +14 -0
  86. package/dist/src/testing/artifacts.js +92 -0
  87. package/dist/src/testing/cli.d.ts +4 -0
  88. package/dist/src/testing/cli.js +192 -0
  89. package/dist/src/testing/localBackend.d.ts +24 -0
  90. package/dist/src/testing/localBackend.js +310 -0
  91. package/dist/src/testing/processRunner.d.ts +7 -0
  92. package/dist/src/testing/processRunner.js +74 -0
  93. package/dist/src/testing/runner.d.ts +9 -0
  94. package/dist/src/testing/runner.js +85 -0
  95. package/dist/src/testing/scenarios.d.ts +3 -0
  96. package/dist/src/testing/scenarios.js +2535 -0
  97. package/dist/src/testing/types.d.ts +66 -0
  98. package/dist/src/testing/types.js +1 -0
  99. package/dist/src/tools/baselineInventory.d.ts +12 -0
  100. package/dist/src/tools/baselineInventory.js +680 -0
  101. package/dist/src/tools/checkModelFusionProtocol.d.ts +1 -0
  102. package/dist/src/tools/checkModelFusionProtocol.js +274 -0
  103. package/dist/src/tools/checkReleasePublishConfig.d.ts +1 -0
  104. package/dist/src/tools/checkReleasePublishConfig.js +99 -0
  105. package/dist/src/tools/generateProtoInventory.d.ts +1 -0
  106. package/dist/src/tools/generateProtoInventory.js +89 -0
  107. package/dist/src/tools/normalizeGeneratedCode.d.ts +1 -0
  108. package/dist/src/tools/normalizeGeneratedCode.js +18 -0
  109. package/dist/src/tools/releaseCheck.d.ts +26 -0
  110. package/dist/src/tools/releaseCheck.js +367 -0
  111. package/dist/src/trace.d.ts +39 -0
  112. package/dist/src/trace.js +106 -0
  113. package/dist/src/translation.d.ts +6 -0
  114. package/dist/src/translation.js +22 -0
  115. package/dist/src/upstream.d.ts +20 -0
  116. package/dist/src/upstream.js +270 -0
  117. package/docs/configuration.md +55 -0
  118. package/docs/cursor-app.md +263 -0
  119. package/docs/implementation-inventory.json +609 -0
  120. package/docs/learnings.md +363 -0
  121. package/docs/model-fusion-protocol-origin.json +126 -0
  122. package/docs/model-fusion-protocol.md +110 -0
  123. package/docs/plugin-authoring.md +24 -0
  124. package/docs/proto-inventory.md +1477 -0
  125. package/docs/protocol-surface-audit.md +92 -0
  126. package/docs/protocol.md +52 -0
  127. package/docs/refreshing-protos.md +78 -0
  128. package/docs/release-gates.md +110 -0
  129. package/docs/release-summary.json +86 -0
  130. package/docs/route-contract-manifest.json +288 -0
  131. package/docs/route-policy.json +133 -0
  132. package/docs/service-manifest.json +9490 -0
  133. package/docs/test-manifest.json +155 -0
  134. package/docs/testing-harness.md +204 -0
  135. package/docs/troubleshooting.md +36 -0
  136. package/docs/type-manifest-summary.json +28927 -0
  137. package/package.json +93 -0
  138. package/proto/agent/v1/agent.proto +5371 -0
  139. package/proto/aiserver/v1/aiserver.proto +32944 -0
  140. package/proto/anyrun/v1/anyrun.proto +294 -0
  141. package/proto/google/protobuf/google.proto +37 -0
  142. package/proto/internapi/v1/internapi.proto +32 -0
@@ -0,0 +1,294 @@
1
+ syntax = "proto3";
2
+ package anyrun.v1;
3
+ option go_package = "cursor/gen/anyrun/v1;anyrunv1";
4
+
5
+ enum ClonePurpose { // anyrun.v1.ClonePurpose
6
+ CLONE_PURPOSE_CLONE_PURPOSE_UNSPECIFIED = 0;
7
+ CLONE_PURPOSE_CLONE_PURPOSE_DOCKER_BUILD = 1;
8
+ CLONE_PURPOSE_CLONE_PURPOSE_WORKSPACE_SETUP = 2;
9
+ }
10
+
11
+ enum PrivateWorkerWaitReason { // anyrun.v1.PrivateWorkerWaitReason
12
+ PRIVATE_WORKER_WAIT_REASON_PRIVATE_WORKER_WAIT_REASON_UNSPECIFIED = 0;
13
+ PRIVATE_WORKER_WAIT_REASON_PRIVATE_WORKER_WAIT_REASON_NO_CONNECTED_WORKERS = 1;
14
+ PRIVATE_WORKER_WAIT_REASON_PRIVATE_WORKER_WAIT_REASON_LABEL_MISMATCH = 2;
15
+ PRIVATE_WORKER_WAIT_REASON_PRIVATE_WORKER_WAIT_REASON_OWNER_FILTERED = 3;
16
+ PRIVATE_WORKER_WAIT_REASON_PRIVATE_WORKER_WAIT_REASON_SHARED_ASSIGNMENT_FILTERED = 4;
17
+ PRIVATE_WORKER_WAIT_REASON_PRIVATE_WORKER_WAIT_REASON_ALL_BUSY = 5;
18
+ }
19
+
20
+ enum RestartReason { // anyrun.v1.RestartReason
21
+ RESTART_REASON_RESTART_REASON_UNSPECIFIED = 0;
22
+ RESTART_REASON_RESTART_REASON_PROCESS_EXITED = 1;
23
+ RESTART_REASON_RESTART_REASON_HEALTH_CHECK_FAILED = 2;
24
+ }
25
+
26
+ enum PodCreatingPhase { // anyrun.v1.PodCreatingPhase
27
+ POD_CREATING_PHASE_POD_CREATING_PHASE_UNSPECIFIED = 0;
28
+ POD_CREATING_PHASE_POD_CREATING_PHASE_CLONE = 1;
29
+ POD_CREATING_PHASE_POD_CREATING_PHASE_BUILD = 2;
30
+ POD_CREATING_PHASE_POD_CREATING_PHASE_POST_CREATE = 3;
31
+ POD_CREATING_PHASE_POD_CREATING_PHASE_UPDATE_CONTENT = 4;
32
+ POD_CREATING_PHASE_POD_CREATING_PHASE_POST_START = 5;
33
+ }
34
+
35
+ enum GitCloneFailureCategory { // anyrun.v1.GitCloneFailureCategory
36
+ GIT_CLONE_FAILURE_CATEGORY_GIT_CLONE_FAILURE_CATEGORY_UNSPECIFIED = 0;
37
+ GIT_CLONE_FAILURE_CATEGORY_GIT_CLONE_FAILURE_CATEGORY_IP_ALLOW_LIST = 1;
38
+ GIT_CLONE_FAILURE_CATEGORY_GIT_CLONE_FAILURE_CATEGORY_INVALID_CREDENTIALS = 2;
39
+ GIT_CLONE_FAILURE_CATEGORY_GIT_CLONE_FAILURE_CATEGORY_SSO_REDIRECT = 3;
40
+ GIT_CLONE_FAILURE_CATEGORY_GIT_CLONE_FAILURE_CATEGORY_PROXY_CONNECT = 4;
41
+ GIT_CLONE_FAILURE_CATEGORY_GIT_CLONE_FAILURE_CATEGORY_CONNECTION_RESET = 5;
42
+ GIT_CLONE_FAILURE_CATEGORY_GIT_CLONE_FAILURE_CATEGORY_TRANSPORT_INTERRUPTED = 6;
43
+ GIT_CLONE_FAILURE_CATEGORY_GIT_CLONE_FAILURE_CATEGORY_REMOTE_FORBIDDEN = 7;
44
+ GIT_CLONE_FAILURE_CATEGORY_GIT_CLONE_FAILURE_CATEGORY_UPSTREAM_BAD_GATEWAY = 8;
45
+ }
46
+
47
+ enum SnapshotState { // anyrun.v1.SnapshotState
48
+ SNAPSHOT_STATE_SNAPSHOT_STATE_UNSPECIFIED = 0;
49
+ SNAPSHOT_STATE_SNAPSHOT_STATE_CREATING = 1;
50
+ SNAPSHOT_STATE_SNAPSHOT_STATE_READY = 2;
51
+ SNAPSHOT_STATE_SNAPSHOT_STATE_FAILED = 3;
52
+ }
53
+
54
+ message PodErrorEvent { // anyrun.v1.PodErrorEvent
55
+ string error_message = 1;
56
+ }
57
+
58
+ message GoogleProtobuf_Empty { // google.protobuf.Empty
59
+ }
60
+
61
+ message HydrationProgress { // anyrun.v1.HydrationProgress
62
+ uint64 transferred = 1;
63
+ uint64 total = 2;
64
+ }
65
+
66
+ message CloneStarted { // anyrun.v1.CloneStarted
67
+ ClonePurpose purpose = 1;
68
+ }
69
+
70
+ message CloneCompleted { // anyrun.v1.CloneCompleted
71
+ ClonePurpose purpose = 1;
72
+ }
73
+
74
+ message BuildStepStarted { // anyrun.v1.BuildStepStarted
75
+ uint32 stream_id = 1;
76
+ uint32 step = 2;
77
+ uint32 total_steps = 3;
78
+ string command = 4;
79
+ }
80
+
81
+ message BuildStatusLine { // anyrun.v1.BuildStatusLine
82
+ uint32 stream_id = 1;
83
+ string timestamp = 2;
84
+ string content = 3;
85
+ }
86
+
87
+ message InternalBuildMessage { // anyrun.v1.InternalBuildMessage
88
+ uint32 stream_id = 1;
89
+ string content = 2;
90
+ }
91
+
92
+ message InstallCommand { // anyrun.v1.InstallCommand
93
+ string name = 1;
94
+ string command = 2;
95
+ optional string user = 3;
96
+ bool is_system = 4;
97
+ bool failure_tolerant = 5;
98
+ }
99
+
100
+ message FeatureOutput { // anyrun.v1.FeatureOutput
101
+ string feature_id = 1;
102
+ string output = 2;
103
+ }
104
+
105
+ message FeatureExitCode { // anyrun.v1.FeatureExitCode
106
+ string feature_id = 1;
107
+ int64 exit_code = 2;
108
+ }
109
+
110
+ message ImagePullStarted { // anyrun.v1.ImagePullStarted
111
+ string image_name = 1;
112
+ string pull_id = 2;
113
+ }
114
+
115
+ message ProgressDetail { // anyrun.v1.ProgressDetail
116
+ uint64 current = 1;
117
+ uint64 total = 2;
118
+ }
119
+
120
+ message ImagePullLayerUpdate { // anyrun.v1.ImagePullLayerUpdate
121
+ string image_name = 1;
122
+ string pull_id = 2;
123
+ string layer_id = 3;
124
+ bool pulling_fs_layer = 4;
125
+ bool waiting = 5;
126
+ bool verifying_checksum = 6;
127
+ bool download_complete = 7;
128
+ bool pull_complete = 8;
129
+ ProgressDetail downloading = 9;
130
+ ProgressDetail extracting = 10;
131
+ string other = 11;
132
+ }
133
+
134
+ message ImagePullStatusUpdate { // anyrun.v1.ImagePullStatusUpdate
135
+ string image_name = 1;
136
+ string pull_id = 2;
137
+ string status = 3;
138
+ }
139
+
140
+ message ImagePullCompleted { // anyrun.v1.ImagePullCompleted
141
+ string image_name = 1;
142
+ string pull_id = 2;
143
+ }
144
+
145
+ message PodIdentity { // anyrun.v1.PodIdentity
146
+ string tenant_id = 1;
147
+ string pod_id = 2;
148
+ }
149
+
150
+ message WaitingForWorkerStatus { // anyrun.v1.WaitingForWorkerStatus
151
+ int32 retry_count = 1;
152
+ int32 max_retries = 2;
153
+ PrivateWorkerWaitReason wait_reason = 3;
154
+ }
155
+
156
+ message SpanStarted { // anyrun.v1.SpanStarted
157
+ string span_id = 1;
158
+ string name = 2;
159
+ optional string parent_span_id = 3;
160
+ optional string href = 5;
161
+ }
162
+
163
+ message SpanEnded { // anyrun.v1.SpanEnded
164
+ string span_id = 1;
165
+ }
166
+
167
+ message LifecycleProcessRestarted { // anyrun.v1.LifecycleProcessRestarted
168
+ uint32 attempt = 1;
169
+ int32 previous_exit_code = 2;
170
+ RestartReason reason = 3;
171
+ string command_name = 4;
172
+ }
173
+
174
+ message LifecycleProcessExited { // anyrun.v1.LifecycleProcessExited
175
+ int32 exit_code = 1;
176
+ string command_name = 2;
177
+ }
178
+
179
+ message PodEvent { // anyrun.v1.PodEvent
180
+ uint64 creation_timestamp = 49;
181
+ PodErrorEvent error = 26;
182
+ string debug_event = 1;
183
+ GoogleProtobuf_Empty hydration_started = 43;
184
+ HydrationProgress hydration_progress = 44;
185
+ GoogleProtobuf_Empty hydration_completed = 45;
186
+ GoogleProtobuf_Empty clone_started = 31;
187
+ GoogleProtobuf_Empty clone_completed = 32;
188
+ CloneStarted clone_started_v2 = 51;
189
+ CloneCompleted clone_completed_v2 = 52;
190
+ GoogleProtobuf_Empty checkout_started = 33;
191
+ GoogleProtobuf_Empty checkout_completed = 34;
192
+ string build_started = 2;
193
+ string build_status_message = 3;
194
+ BuildStepStarted build_step_started = 27;
195
+ BuildStatusLine build_status_line = 28;
196
+ InternalBuildMessage internal_build_message = 29;
197
+ int32 build_exit_code = 30;
198
+ string prepare_stdout = 14;
199
+ string prepare_stderr = 15;
200
+ int64 prepare_exit_code = 16;
201
+ InstallCommand install_command = 50;
202
+ string install_stdout = 17;
203
+ string install_stderr = 18;
204
+ int64 install_exit_code = 19;
205
+ string verify_stdout = 46;
206
+ string verify_stderr = 47;
207
+ int64 verify_exit_code = 48;
208
+ string start_stdout = 6;
209
+ string start_stderr = 7;
210
+ int64 start_exit_code = 8;
211
+ FeatureOutput extension_install_stdout = 20;
212
+ FeatureOutput extension_install_stderr = 21;
213
+ FeatureExitCode extension_install_exit_code = 22;
214
+ GoogleProtobuf_Empty snapshot_started = 35;
215
+ GoogleProtobuf_Empty snapshot_completed = 36;
216
+ GoogleProtobuf_Empty creation_completed = 9;
217
+ string post_start_stdout = 10;
218
+ string post_start_stderr = 11;
219
+ int64 post_start_exit_code = 12;
220
+ FeatureOutput extension_start_stdout = 23;
221
+ FeatureOutput extension_start_stderr = 24;
222
+ FeatureExitCode extension_start_exit_code = 25;
223
+ GoogleProtobuf_Empty startup_completed = 13;
224
+ ImagePullStarted image_pull_started = 37;
225
+ ImagePullLayerUpdate image_pull_layer_update = 38;
226
+ ImagePullStatusUpdate image_pull_status_update = 39;
227
+ ImagePullCompleted image_pull_completed = 40;
228
+ PodIdentity blocked_repo_state = 41;
229
+ GoogleProtobuf_Empty acquired_repo_state = 42;
230
+ GoogleProtobuf_Empty private_worker_ready = 53;
231
+ WaitingForWorkerStatus waiting_for_worker = 54;
232
+ SpanStarted span_started = 55;
233
+ SpanEnded span_ended = 56;
234
+ LifecycleProcessRestarted lifecycle_process_restarted = 57;
235
+ LifecycleProcessExited lifecycle_process_exited = 58;
236
+ }
237
+
238
+ message PodCreatingStatus { // anyrun.v1.PodCreatingStatus
239
+ PodCreatingPhase phase = 1;
240
+ }
241
+
242
+ message PodRunningStatus { // anyrun.v1.PodRunningStatus
243
+ optional uint64 missed_heartbeat_deadline = 1;
244
+ }
245
+
246
+ message InstallCommandFailure { // anyrun.v1.InstallCommandFailure
247
+ bool is_system = 1;
248
+ }
249
+
250
+ message DockerBuildFailure { // anyrun.v1.DockerBuildFailure
251
+ int64 exit_code = 1;
252
+ }
253
+
254
+ message GitCloneFailure { // anyrun.v1.GitCloneFailure
255
+ int64 exit_code = 1;
256
+ GitCloneFailureCategory category = 2;
257
+ bool retryable = 3;
258
+ optional string remote_host = 4;
259
+ optional int32 http_status = 5;
260
+ }
261
+
262
+ message GitCheckoutFailure { // anyrun.v1.GitCheckoutFailure
263
+ int64 exit_code = 1;
264
+ }
265
+
266
+ message ContainerWaitFailure { // anyrun.v1.ContainerWaitFailure
267
+ int64 exit_code = 1;
268
+ string message = 2;
269
+ }
270
+
271
+ message PodFailureDetails { // anyrun.v1.PodFailureDetails
272
+ InstallCommandFailure install_command_failure = 1;
273
+ DockerBuildFailure docker_build_failure = 2;
274
+ GitCloneFailure git_clone_failure = 3;
275
+ GitCheckoutFailure git_checkout_failure = 4;
276
+ ContainerWaitFailure container_wait_failure = 5;
277
+ }
278
+
279
+ message PodFailedStatus { // anyrun.v1.PodFailedStatus
280
+ string reason = 1;
281
+ optional PodFailureDetails failure_details = 2;
282
+ }
283
+
284
+ message PodTerminatedStatus { // anyrun.v1.PodTerminatedStatus
285
+ string reason = 1;
286
+ optional uint32 exit_code = 2;
287
+ }
288
+
289
+ message PodStatus { // anyrun.v1.PodStatus
290
+ PodCreatingStatus creating = 1;
291
+ PodRunningStatus running = 2;
292
+ PodFailedStatus failed = 3;
293
+ PodTerminatedStatus terminated = 4;
294
+ }
@@ -0,0 +1,37 @@
1
+ syntax = "proto3";
2
+ package google.protobuf;
3
+ option go_package = "cursor/gen/google/protobuf;googleprotobuf";
4
+
5
+ enum NullValue { // google.protobuf.NullValue
6
+ NULL_VALUE_NULL_VALUE = 0;
7
+ }
8
+
9
+ message Struct { // google.protobuf.Struct
10
+ map<string, Value> fields = 1;
11
+ }
12
+
13
+ message ListValue { // google.protobuf.ListValue
14
+ repeated Value values = 1;
15
+ }
16
+
17
+ message Value { // google.protobuf.Value
18
+ NullValue null_value = 1;
19
+ double number_value = 2;
20
+ string string_value = 3;
21
+ bool bool_value = 4;
22
+ Struct struct_value = 5;
23
+ ListValue list_value = 6;
24
+ }
25
+
26
+ message Empty { // google.protobuf.Empty
27
+ }
28
+
29
+ message Timestamp { // google.protobuf.Timestamp
30
+ int64 seconds = 1;
31
+ int32 nanos = 2;
32
+ }
33
+
34
+ message Duration { // google.protobuf.Duration
35
+ int64 seconds = 1;
36
+ int32 nanos = 2;
37
+ }
@@ -0,0 +1,32 @@
1
+ syntax = "proto3";
2
+ package internapi.v1;
3
+ option go_package = "cursor/gen/internapi/v1;internapiv1";
4
+
5
+ enum BlobType { // internapi.v1.BlobType
6
+ BLOB_TYPE_BLOB_TYPE_UNSPECIFIED = 0;
7
+ BLOB_TYPE_BLOB_TYPE_IMAGE = 1;
8
+ BLOB_TYPE_BLOB_TYPE_INVOCATION_CONTEXT = 2;
9
+ BLOB_TYPE_BLOB_TYPE_EXTRA_CONTEXT = 3;
10
+ BLOB_TYPE_BLOB_TYPE_GIT_PR_DIFF_SELECTION = 4;
11
+ BLOB_TYPE_BLOB_TYPE_SELECTED_PULL_REQUEST = 5;
12
+ BLOB_TYPE_BLOB_TYPE_TEXT = 6;
13
+ BLOB_TYPE_BLOB_TYPE_RICH_TEXT = 7;
14
+ BLOB_TYPE_BLOB_TYPE_EXTERNAL_LINK_PDF = 8;
15
+ BLOB_TYPE_BLOB_TYPE_DOCUMENT = 9;
16
+ BLOB_TYPE_BLOB_TYPE_VIDEO = 10;
17
+ }
18
+
19
+ message ImageBlobData { // internapi.v1.ImageBlobData
20
+ string mime_type = 1;
21
+ }
22
+
23
+ message BlobData { // internapi.v1.BlobData
24
+ BlobType blob_type = 1;
25
+ bytes blob_id = 2;
26
+ int32 index = 3;
27
+ ImageBlobData image_data = 4;
28
+ }
29
+
30
+ message BlobDataPerMessage { // internapi.v1.BlobDataPerMessage
31
+ repeated BlobData blob_data = 1;
32
+ }