cline 1.0.0-nightly.6 → 1.0.0-nightly.7

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.
@@ -0,0 +1,505 @@
1
+ syntax = "proto3";
2
+ package cline;
3
+ import "cline/common.proto";
4
+ import "cline/models.proto";
5
+ import "cline/browser.proto";
6
+ option go_package = "github.com/cline/grpc-go/cline";
7
+ option java_package = "bot.cline.proto";
8
+ option java_multiple_files = true;
9
+
10
+ service StateService {
11
+ rpc getLatestState(EmptyRequest) returns (State);
12
+ rpc updateTerminalConnectionTimeout(UpdateTerminalConnectionTimeoutRequest) returns (UpdateTerminalConnectionTimeoutResponse);
13
+ rpc updateTerminalReuseEnabled(BooleanRequest) returns (Empty);
14
+ rpc getAvailableTerminalProfiles(EmptyRequest) returns (TerminalProfiles);
15
+ rpc subscribeToState(EmptyRequest) returns (stream State);
16
+ rpc toggleFavoriteModel(StringRequest) returns (Empty);
17
+ rpc resetState(ResetStateRequest) returns (Empty);
18
+ rpc togglePlanActModeProto(TogglePlanActModeRequest) returns (Boolean);
19
+ rpc updateAutoApprovalSettings(AutoApprovalSettingsRequest) returns (Empty);
20
+ rpc updateSettings(UpdateSettingsRequest) returns (Empty);
21
+ rpc updateSettingsCli(UpdateSettingsRequestCli) returns (Empty);
22
+ rpc updateTelemetrySetting(TelemetrySettingRequest) returns (Empty);
23
+ rpc setWelcomeViewCompleted(BooleanRequest) returns (Empty);
24
+ rpc updateInfoBannerVersion(Int64Request) returns (Empty);
25
+ rpc updateModelBannerVersion(Int64Request) returns (Empty);
26
+ rpc getProcessInfo(EmptyRequest) returns (ProcessInfo);
27
+ }
28
+
29
+ message AutoApprovalActions {
30
+ bool read_files = 1;
31
+ bool read_files_externally = 2;
32
+ bool edit_files = 3;
33
+ bool edit_files_externally = 4;
34
+ bool execute_safe_commands = 5;
35
+ bool execute_all_commands = 6;
36
+ bool use_browser = 7;
37
+ bool use_mcp = 8;
38
+ }
39
+
40
+ // Auto approval settings for task execution
41
+ message AutoApprovalSettings {
42
+ int32 version = 1;
43
+ bool enabled = 2;
44
+ AutoApprovalActions actions = 3;
45
+ int32 max_requests = 4;
46
+ bool enable_notifications = 5;
47
+ repeated string favorites = 6;
48
+ }
49
+
50
+ message Secrets {
51
+ optional string api_key = 1;
52
+ optional string open_router_api_key = 4;
53
+ optional string aws_access_key = 5;
54
+ optional string aws_secret_key = 6;
55
+ optional string aws_session_token = 7;
56
+ optional string aws_bedrock_api_key = 8;
57
+ optional string open_ai_api_key = 9;
58
+ optional string gemini_api_key = 10;
59
+ optional string open_ai_native_api_key = 11;
60
+ optional string ollama_api_key = 12;
61
+ optional string deep_seek_api_key = 13;
62
+ optional string requesty_api_key = 14;
63
+ optional string together_api_key = 15;
64
+ optional string fireworks_api_key = 16;
65
+ optional string qwen_api_key = 17;
66
+ optional string doubao_api_key = 18;
67
+ optional string mistral_api_key = 19;
68
+ optional string lite_llm_api_key = 20;
69
+ optional string auth_nonce = 21;
70
+ optional string asksage_api_key = 22;
71
+ optional string xai_api_key = 23;
72
+ optional string moonshot_api_key = 24;
73
+ optional string zai_api_key = 25;
74
+ optional string hugging_face_api_key = 26;
75
+ optional string nebius_api_key = 27;
76
+ optional string sambanova_api_key = 28;
77
+ optional string cerebras_api_key = 29;
78
+ optional string sap_ai_core_client_id = 30;
79
+ optional string sap_ai_core_client_secret = 31;
80
+ optional string groq_api_key = 32;
81
+ optional string huawei_cloud_maas_api_key = 33;
82
+ optional string baseten_api_key = 34;
83
+ optional string vercel_ai_gateway_api_key = 35;
84
+ optional string dify_api_key = 36;
85
+ optional string oca_api_key = 37;
86
+ optional string oca_refresh_token = 38;
87
+ }
88
+
89
+ message Settings {
90
+ optional string aws_region = 1;
91
+ optional bool aws_use_cross_region_inference = 2;
92
+ optional bool aws_bedrock_use_prompt_cache = 3;
93
+ optional string aws_bedrock_endpoint = 4;
94
+ optional string aws_profile = 5;
95
+ optional string aws_authentication = 6;
96
+ optional bool aws_use_profile = 7;
97
+ optional string vertex_project_id = 8;
98
+ optional string vertex_region = 9;
99
+ optional string requesty_base_url = 10;
100
+ optional string open_ai_base_url = 11;
101
+ // map<string, string> open_ai_headers = 12;
102
+ optional string ollama_base_url = 13;
103
+ optional string ollama_api_options_ctx_num = 14;
104
+ optional string lm_studio_base_url = 15;
105
+ optional string lm_studio_max_tokens = 16;
106
+ optional string anthropic_base_url = 17;
107
+ optional string gemini_base_url = 18;
108
+ optional string azure_api_version = 19;
109
+ optional string open_router_provider_sorting = 20;
110
+ optional AutoApprovalSettings auto_approval_settings = 21;
111
+ optional BrowserSettings browser_settings = 24;
112
+ optional string lite_llm_base_url = 25;
113
+ optional bool lite_llm_use_prompt_cache = 26;
114
+ optional int32 fireworks_model_max_completion_tokens = 27;
115
+ optional int32 fireworks_model_max_tokens = 28;
116
+ optional string qwen_api_line = 29;
117
+ optional string moonshot_api_line = 30;
118
+ optional string zai_api_line = 31;
119
+ optional string telemetry_setting = 32;
120
+ optional string asksage_api_url = 33;
121
+ optional bool plan_act_separate_models_setting = 34;
122
+ optional bool enable_checkpoints_setting = 35;
123
+ optional int32 request_timeout_ms = 36;
124
+ optional int32 shell_integration_timeout = 37;
125
+ optional string default_terminal_profile = 38;
126
+ optional int32 terminal_output_line_limit = 39;
127
+ optional string sap_ai_core_token_url = 40;
128
+ optional string sap_ai_core_base_url = 41;
129
+ optional string sap_ai_resource_group = 42;
130
+ optional bool sap_ai_core_use_orchestration_mode = 43;
131
+ optional string claude_code_path = 44;
132
+ optional string qwen_code_oauth_path = 45;
133
+ optional bool strict_plan_mode_enabled = 46;
134
+ optional bool yolo_mode_toggled = 47;
135
+ optional bool use_auto_condense = 48;
136
+ optional string preferred_language = 49;
137
+ optional OpenaiReasoningEffort openai_reasoning_effort = 50;
138
+ optional PlanActMode mode = 51;
139
+ optional DictationSettings dictation_settings = 52;
140
+ optional FocusChainSettings focus_chain_settings = 53;
141
+ optional string custom_prompt = 54;
142
+ optional string dify_base_url = 55;
143
+ optional double auto_condense_threshold = 56;
144
+ optional string oca_base_url = 57;
145
+ optional ApiProvider plan_mode_api_provider = 58;
146
+ optional string plan_mode_api_model_id = 59;
147
+ optional int64 plan_mode_thinking_budget_tokens = 60;
148
+ optional string plan_mode_reasoning_effort = 61;
149
+ optional LanguageModelChatSelector plan_mode_vs_code_lm_model_selector = 62;
150
+ optional bool plan_mode_aws_bedrock_custom_selected = 63;
151
+ optional string plan_mode_aws_bedrock_custom_model_base_id = 64;
152
+ optional string plan_mode_open_router_model_id = 65;
153
+ optional OpenRouterModelInfo plan_mode_open_router_model_info = 66;
154
+ optional string plan_mode_open_ai_model_id = 67;
155
+ optional OpenAiCompatibleModelInfo plan_mode_open_ai_model_info = 68;
156
+ optional string plan_mode_ollama_model_id = 69;
157
+ optional string plan_mode_lm_studio_model_id = 70;
158
+ optional string plan_mode_lite_llm_model_id = 71;
159
+ optional LiteLLMModelInfo plan_mode_lite_llm_model_info = 72;
160
+ optional string plan_mode_requesty_model_id = 73;
161
+ optional OpenRouterModelInfo plan_mode_requesty_model_info = 74;
162
+ optional string plan_mode_together_model_id = 75;
163
+ optional string plan_mode_fireworks_model_id = 76;
164
+ optional string plan_mode_sap_ai_core_model_id = 77;
165
+ optional string plan_mode_sap_ai_core_deployment_id = 78;
166
+ optional string plan_mode_groq_model_id = 79;
167
+ optional OpenRouterModelInfo plan_mode_groq_model_info = 80;
168
+ optional string plan_mode_baseten_model_id = 81;
169
+ optional OpenRouterModelInfo plan_mode_baseten_model_info = 82;
170
+ optional string plan_mode_hugging_face_model_id = 83;
171
+ optional OpenRouterModelInfo plan_mode_hugging_face_model_info = 84;
172
+ optional string plan_mode_huawei_cloud_maas_model_id = 85;
173
+ optional OpenRouterModelInfo plan_mode_huawei_cloud_maas_model_info = 86;
174
+ optional string plan_mode_oca_model_id = 87;
175
+ optional OcaModelInfo plan_mode_oca_model_info = 88;
176
+ optional ApiProvider act_mode_api_provider = 89;
177
+ optional string act_mode_api_model_id = 90;
178
+ optional int64 act_mode_thinking_budget_tokens = 91;
179
+ optional string act_mode_reasoning_effort = 92;
180
+ optional LanguageModelChatSelector act_mode_vs_code_lm_model_selector = 93;
181
+ optional bool act_mode_aws_bedrock_custom_selected = 94;
182
+ optional string act_mode_aws_bedrock_custom_model_base_id = 95;
183
+ optional string act_mode_open_router_model_id = 96;
184
+ optional OpenRouterModelInfo act_mode_open_router_model_info = 97;
185
+ optional string act_mode_open_ai_model_id = 98;
186
+ optional OpenAiCompatibleModelInfo act_mode_open_ai_model_info = 99;
187
+ optional string act_mode_ollama_model_id = 100;
188
+ optional string act_mode_lm_studio_model_id = 101;
189
+ optional string act_mode_lite_llm_model_id = 102;
190
+ optional LiteLLMModelInfo act_mode_lite_llm_model_info = 103;
191
+ optional string act_mode_requesty_model_id = 104;
192
+ optional OpenRouterModelInfo act_mode_requesty_model_info = 105;
193
+ optional string act_mode_together_model_id = 106;
194
+ optional string act_mode_fireworks_model_id = 107;
195
+ optional string act_mode_sap_ai_core_model_id = 108;
196
+ optional string act_mode_sap_ai_core_deployment_id = 109;
197
+ optional string act_mode_groq_model_id = 110;
198
+ optional OpenRouterModelInfo act_mode_groq_model_info = 111;
199
+ optional string act_mode_baseten_model_id = 112;
200
+ optional OpenRouterModelInfo act_mode_baseten_model_info = 113;
201
+ optional string act_mode_hugging_face_model_id = 114;
202
+ optional OpenRouterModelInfo act_mode_hugging_face_model_info = 115;
203
+ optional string act_mode_huawei_cloud_maas_model_id = 116;
204
+ optional OpenRouterModelInfo act_mode_huawei_cloud_maas_model_info = 117;
205
+ optional string plan_mode_vercel_ai_gateway_model_id = 118;
206
+ optional OpenRouterModelInfo plan_mode_vercel_ai_gateway_model_info = 119;
207
+ optional string act_mode_vercel_ai_gateway_model_id = 120;
208
+ optional OpenRouterModelInfo act_mode_vercel_ai_gateway_model_info = 121;
209
+ optional string act_mode_oca_model_id = 122;
210
+ optional OcaModelInfo act_mode_oca_model_info = 123;
211
+ }
212
+
213
+ message DictationSettings {
214
+ bool feature_enabled = 1;
215
+ bool dictation_enabled = 2;
216
+ string dictation_language = 3;
217
+ }
218
+ message State {
219
+ string state_json = 1;
220
+ }
221
+
222
+ message TerminalProfiles {
223
+ repeated TerminalProfile profiles = 1;
224
+ }
225
+
226
+ message TerminalProfile {
227
+ string id = 1;
228
+ string name = 2;
229
+ optional string path = 3;
230
+ optional string description = 4;
231
+ }
232
+
233
+ message TerminalProfileUpdateResponse {
234
+ int32 closed_count = 1;
235
+ int32 busy_terminals_count = 2;
236
+ bool has_busy_terminals = 3;
237
+ }
238
+
239
+ message TogglePlanActModeRequest {
240
+ Metadata metadata = 1;
241
+ PlanActMode mode = 2;
242
+ optional ChatContent chat_content = 3;
243
+ }
244
+
245
+ enum PlanActMode {
246
+ PLAN = 0;
247
+ ACT = 1;
248
+ }
249
+
250
+ enum OpenaiReasoningEffort {
251
+ LOW = 0;
252
+ MEDIUM = 1;
253
+ HIGH = 2;
254
+ MINIMAL = 3;
255
+ }
256
+
257
+ enum McpDisplayMode {
258
+ RICH = 0;
259
+ PLAIN = 1;
260
+ MARKDOWN = 2;
261
+ }
262
+
263
+ message ChatContent {
264
+ optional string message = 1;
265
+ repeated string images = 2;
266
+ repeated string files = 3;
267
+ }
268
+
269
+ message ResetStateRequest {
270
+ Metadata metadata = 1;
271
+ optional bool global = 2;
272
+ }
273
+
274
+ message AutoApprovalSettingsRequest {
275
+ Metadata metadata = 1;
276
+ message Actions {
277
+ bool read_files = 1;
278
+ bool read_files_externally = 2;
279
+ bool edit_files = 3;
280
+ bool edit_files_externally = 4;
281
+ bool execute_safe_commands = 5;
282
+ bool execute_all_commands = 6;
283
+ bool use_browser = 7;
284
+ bool use_mcp = 8;
285
+ }
286
+ int32 version = 2;
287
+ bool enabled = 3;
288
+ Actions actions = 4;
289
+ int32 max_requests = 5;
290
+ bool enable_notifications = 6;
291
+ repeated string favorites = 7;
292
+ }
293
+
294
+ enum TelemetrySettingEnum {
295
+ UNSET = 0;
296
+ ENABLED = 1;
297
+ DISABLED = 2;
298
+ }
299
+
300
+ message TelemetrySettingRequest {
301
+ Metadata metadata = 1;
302
+ TelemetrySettingEnum setting = 2;
303
+ }
304
+
305
+ // Browser settings for UpdateSettingsRequest
306
+ message BrowserSettingsUpdate {
307
+ optional Viewport viewport = 1;
308
+ optional string remote_browser_host = 2;
309
+ optional bool remote_browser_enabled = 3;
310
+ optional string chrome_executable_path = 4;
311
+ optional bool disable_tool_use = 5;
312
+ optional string custom_args = 6;
313
+ }
314
+
315
+ message UpdateSettingsRequestCli {
316
+ Metadata metadata = 1;
317
+ optional Settings settings = 2;
318
+ optional Secrets secrets = 3;
319
+ }
320
+
321
+ // Message for updating settings
322
+ message UpdateSettingsRequest {
323
+ Metadata metadata = 1;
324
+ optional ApiConfiguration api_configuration = 2;
325
+ optional string telemetry_setting = 3;
326
+ optional bool plan_act_separate_models_setting = 4;
327
+ optional bool enable_checkpoints_setting = 5;
328
+ optional bool mcp_marketplace_enabled = 6;
329
+ optional int32 shell_integration_timeout = 8;
330
+ optional bool terminal_reuse_enabled = 9;
331
+ optional bool mcp_responses_collapsed = 10;
332
+ optional McpDisplayMode mcp_display_mode = 11;
333
+ optional int32 terminal_output_line_limit = 12;
334
+ optional PlanActMode mode = 13;
335
+ optional string preferred_language = 14;
336
+ optional OpenaiReasoningEffort openai_reasoning_effort = 15;
337
+ optional bool strict_plan_mode_enabled = 16;
338
+ optional FocusChainSettings focus_chain_settings = 17;
339
+ optional bool use_auto_condense = 18;
340
+ optional string custom_prompt = 19;
341
+ optional BrowserSettingsUpdate browser_settings = 20;
342
+ optional string default_terminal_profile = 21;
343
+ optional bool yolo_mode_toggled = 22;
344
+ optional DictationSettings dictation_settings = 23;
345
+ optional double auto_condense_threshold = 24;
346
+ optional bool multi_root_enabled = 25;
347
+ optional bool hooks_enabled = 26;
348
+ }
349
+
350
+ // Complete API Configuration message
351
+ message ApiConfiguration {
352
+ // Global configuration fields (not mode-specific)
353
+ optional string api_key = 1; // anthropic
354
+ optional string cline_api_key = 2;
355
+ optional string ulid = 3;
356
+ optional string lite_llm_base_url = 4;
357
+ optional string lite_llm_api_key = 5;
358
+ optional bool lite_llm_use_prompt_cache = 6;
359
+ map<string, string> open_ai_headers = 7;
360
+ optional string anthropic_base_url = 8;
361
+ optional string open_router_api_key = 9;
362
+ optional string open_router_provider_sorting = 10;
363
+ optional string aws_access_key = 11;
364
+ optional string aws_secret_key = 12;
365
+ optional string aws_session_token = 13;
366
+ optional string aws_region = 14;
367
+ optional bool aws_use_cross_region_inference = 15;
368
+ optional bool aws_bedrock_use_prompt_cache = 16;
369
+ optional bool aws_use_profile = 17;
370
+ optional string aws_profile = 18;
371
+ optional string aws_bedrock_endpoint = 19;
372
+ optional string claude_code_path = 20;
373
+ optional string vertex_project_id = 21;
374
+ optional string vertex_region = 22;
375
+ optional string open_ai_base_url = 23;
376
+ optional string open_ai_api_key = 24;
377
+ optional string ollama_base_url = 25;
378
+ optional string ollama_api_options_ctx_num = 26;
379
+ optional string lm_studio_base_url = 27;
380
+ optional string gemini_api_key = 28;
381
+ optional string gemini_base_url = 29;
382
+ optional string open_ai_native_api_key = 30;
383
+ optional string deep_seek_api_key = 31;
384
+ optional string requesty_api_key = 32;
385
+ optional string requesty_base_url = 33;
386
+ optional string together_api_key = 34;
387
+ optional string fireworks_api_key = 35;
388
+ optional int32 fireworks_model_max_completion_tokens = 36;
389
+ optional int32 fireworks_model_max_tokens = 37;
390
+ optional string qwen_api_key = 38;
391
+ optional string doubao_api_key = 39;
392
+ optional string mistral_api_key = 40;
393
+ optional string azure_api_version = 41;
394
+ optional string qwen_api_line = 42;
395
+ optional string nebius_api_key = 43;
396
+ optional string asksage_api_url = 44;
397
+ optional string asksage_api_key = 45;
398
+ optional string xai_api_key = 46;
399
+ optional string sambanova_api_key = 47;
400
+ optional string cerebras_api_key = 48;
401
+ optional int32 request_timeout_ms = 49;
402
+ optional string sap_ai_core_client_id = 50;
403
+ optional string sap_ai_core_client_secret = 51;
404
+ optional string sap_ai_resource_group = 52;
405
+ optional string sap_ai_core_token_url = 53;
406
+ optional string sap_ai_core_base_url = 54;
407
+ optional string moonshot_api_key = 55;
408
+ optional string moonshot_api_line = 56;
409
+ optional string huawei_cloud_maas_api_key = 57;
410
+ optional string ollama_api_key = 58;
411
+ optional string zai_api_key = 59;
412
+ optional string zai_api_line = 60;
413
+ optional string lm_studio_max_tokens = 61;
414
+ optional string vercel_ai_gateway_api_key = 62;
415
+ optional string qwen_code_oauth_path = 63;
416
+ optional string dify_api_key = 64;
417
+ optional string dify_base_url = 65;
418
+ optional string oca_base_url = 66;
419
+ optional string oca_api_key = 67;
420
+ optional string oca_refresh_token = 68;
421
+ optional string oca_mode = 69;
422
+ optional bool aws_use_global_inference = 70;
423
+
424
+ // Plan mode configurations
425
+ optional ApiProvider plan_mode_api_provider = 100;
426
+ optional string plan_mode_api_model_id = 101;
427
+ optional int32 plan_mode_thinking_budget_tokens = 102;
428
+ optional string plan_mode_reasoning_effort = 103;
429
+ optional LanguageModelChatSelector plan_mode_vs_code_lm_model_selector = 104;
430
+ optional bool plan_mode_aws_bedrock_custom_selected = 105;
431
+ optional string plan_mode_aws_bedrock_custom_model_base_id = 106;
432
+ optional string plan_mode_open_router_model_id = 107;
433
+ optional OpenRouterModelInfo plan_mode_open_router_model_info = 108;
434
+ optional string plan_mode_open_ai_model_id = 109;
435
+ optional OpenAiCompatibleModelInfo plan_mode_open_ai_model_info = 110;
436
+ optional string plan_mode_ollama_model_id = 111;
437
+ optional string plan_mode_lm_studio_model_id = 112;
438
+ optional string plan_mode_lite_llm_model_id = 113;
439
+ optional LiteLLMModelInfo plan_mode_lite_llm_model_info = 114;
440
+ optional string plan_mode_requesty_model_id = 115;
441
+ optional OpenRouterModelInfo plan_mode_requesty_model_info = 116;
442
+ optional string plan_mode_together_model_id = 117;
443
+ optional string plan_mode_fireworks_model_id = 118;
444
+ optional string plan_mode_sap_ai_core_model_id = 119;
445
+ optional string plan_mode_huawei_cloud_maas_model_id = 120;
446
+ optional OpenRouterModelInfo plan_mode_huawei_cloud_maas_model_info = 121;
447
+ optional string plan_mode_vercel_ai_gateway_model_id = 122;
448
+ optional OpenRouterModelInfo plan_mode_vercel_ai_gateway_model_info = 123;
449
+ optional string plan_mode_oca_model_id = 124;
450
+ optional OcaModelInfo plan_mode_oca_model_info = 125;
451
+
452
+ // Act mode configurations
453
+ optional ApiProvider act_mode_api_provider = 200;
454
+ optional string act_mode_api_model_id = 201;
455
+ optional int32 act_mode_thinking_budget_tokens = 202;
456
+ optional string act_mode_reasoning_effort = 203;
457
+ optional LanguageModelChatSelector act_mode_vs_code_lm_model_selector = 204;
458
+ optional bool act_mode_aws_bedrock_custom_selected = 205;
459
+ optional string act_mode_aws_bedrock_custom_model_base_id = 206;
460
+ optional string act_mode_open_router_model_id = 207;
461
+ optional OpenRouterModelInfo act_mode_open_router_model_info = 208;
462
+ optional string act_mode_open_ai_model_id = 209;
463
+ optional OpenAiCompatibleModelInfo act_mode_open_ai_model_info = 210;
464
+ optional string act_mode_ollama_model_id = 211;
465
+ optional string act_mode_lm_studio_model_id = 212;
466
+ optional string act_mode_lite_llm_model_id = 213;
467
+ optional LiteLLMModelInfo act_mode_lite_llm_model_info = 214;
468
+ optional string act_mode_requesty_model_id = 215;
469
+ optional OpenRouterModelInfo act_mode_requesty_model_info = 216;
470
+ optional string act_mode_together_model_id = 217;
471
+ optional string act_mode_fireworks_model_id = 218;
472
+ optional string act_mode_sap_ai_core_model_id = 219;
473
+ optional string act_mode_huawei_cloud_maas_model_id = 220;
474
+ optional OpenRouterModelInfo act_mode_huawei_cloud_maas_model_info = 221;
475
+ optional string act_mode_vercel_ai_gateway_model_id = 222;
476
+ optional OpenRouterModelInfo act_mode_vercel_ai_gateway_model_info = 223;
477
+ optional string act_mode_oca_model_id = 224;
478
+ optional OcaModelInfo act_mode_oca_model_info = 225;
479
+
480
+ // Extension fields for Bedrock Api Keys
481
+ optional string aws_authentication = 301;
482
+ optional string aws_bedrock_api_key = 302;
483
+
484
+ optional string cline_account_id = 303;
485
+ }
486
+
487
+ message UpdateTerminalConnectionTimeoutRequest {
488
+ optional int32 timeout_ms = 1;
489
+ }
490
+
491
+ message FocusChainSettings {
492
+ bool enabled = 1;
493
+ int32 remind_cline_interval = 2;
494
+ }
495
+
496
+ message UpdateTerminalConnectionTimeoutResponse {
497
+ optional int32 timeout_ms = 1;
498
+ }
499
+
500
+
501
+ message ProcessInfo {
502
+ int32 process_id = 1;
503
+ optional string version = 2;
504
+ optional int64 uptime_ms = 3;
505
+ }
@@ -0,0 +1,119 @@
1
+ syntax = "proto3";
2
+
3
+ package cline;
4
+ import "cline/common.proto";
5
+ import "cline/state.proto";
6
+ option go_package = "github.com/cline/grpc-go/cline";
7
+ option java_package = "bot.cline.proto";
8
+ option java_multiple_files = true;
9
+
10
+ service TaskService {
11
+ // Cancels the currently running task
12
+ rpc cancelTask(EmptyRequest) returns (Empty);
13
+ // Clears the current task
14
+ rpc clearTask(EmptyRequest) returns (Empty);
15
+ // Gets the total size of all tasks
16
+ rpc getTotalTasksSize(EmptyRequest) returns (Int64);
17
+ // Deletes multiple tasks with the given IDs
18
+ rpc deleteTasksWithIds(StringArrayRequest) returns (Empty);
19
+ // Creates a new task with the given text and optional images
20
+ rpc newTask(NewTaskRequest) returns (String);
21
+ // Shows a task with the specified ID
22
+ rpc showTaskWithId(StringRequest) returns (TaskResponse);
23
+ // Exports a task with the given ID to markdown
24
+ rpc exportTaskWithId(StringRequest) returns (Empty);
25
+ // Toggles the favorite status of a task
26
+ rpc toggleTaskFavorite(TaskFavoriteRequest) returns (Empty);
27
+ // Gets filtered task history
28
+ rpc getTaskHistory(GetTaskHistoryRequest) returns (TaskHistoryArray);
29
+ // Sends a response to a previous ask operation
30
+ rpc askResponse(AskResponseRequest) returns (Empty);
31
+ // Records task feedback (thumbs up/down)
32
+ rpc taskFeedback(StringRequest) returns (Empty);
33
+ // Shows task completion changes diff in a view
34
+ rpc taskCompletionViewChanges(Int64Request) returns (Empty);
35
+ // Executes a quick win task with command and title
36
+ rpc executeQuickWin(ExecuteQuickWinRequest) returns (Empty);
37
+ // Deletes all task history
38
+ rpc deleteAllTaskHistory(EmptyRequest) returns (DeleteAllTaskHistoryCount);
39
+ }
40
+
41
+ // Request message for creating a new task
42
+ message NewTaskRequest {
43
+ Metadata metadata = 1;
44
+ string text = 2;
45
+ repeated string images = 3;
46
+ repeated string files = 4;
47
+ optional Settings task_settings = 5;
48
+ }
49
+
50
+ // Request message for toggling task favorite status
51
+ message TaskFavoriteRequest {
52
+ Metadata metadata = 1;
53
+ string task_id = 2;
54
+ bool is_favorited = 3;
55
+ }
56
+
57
+ // Response for task details
58
+ message TaskResponse {
59
+ string id = 1;
60
+ string task = 2;
61
+ int64 ts = 3;
62
+ bool is_favorited = 4;
63
+ int64 size = 5;
64
+ double total_cost = 6;
65
+ int32 tokens_in = 7;
66
+ int32 tokens_out = 8;
67
+ int32 cache_writes = 9;
68
+ int32 cache_reads = 10;
69
+ }
70
+
71
+ // Request for getting task history with filtering
72
+ message GetTaskHistoryRequest {
73
+ Metadata metadata = 1;
74
+ bool favorites_only = 2;
75
+ string search_query = 3;
76
+ string sort_by = 4;
77
+ bool current_workspace_only = 5;
78
+ }
79
+
80
+ // Response for task history
81
+ message TaskHistoryArray {
82
+ repeated TaskItem tasks = 1;
83
+ int32 total_count = 2;
84
+ }
85
+
86
+ // Task item details for history list
87
+ message TaskItem {
88
+ string id = 1;
89
+ string task = 2;
90
+ int64 ts = 3;
91
+ bool is_favorited = 4;
92
+ int64 size = 5;
93
+ double total_cost = 6;
94
+ int32 tokens_in = 7;
95
+ int32 tokens_out = 8;
96
+ int32 cache_writes = 9;
97
+ int32 cache_reads = 10;
98
+ }
99
+
100
+ // Request for ask response operation
101
+ message AskResponseRequest {
102
+ Metadata metadata = 1;
103
+ string response_type = 2;
104
+ string text = 3;
105
+ repeated string images = 4;
106
+ repeated string files = 5;
107
+ }
108
+
109
+ // Request for executing a quick win task
110
+ message ExecuteQuickWinRequest {
111
+ Metadata metadata = 1;
112
+ string command = 2;
113
+ string title = 3;
114
+ }
115
+
116
+ // Results returned when deleting all task history
117
+ message DeleteAllTaskHistoryCount {
118
+ int32 tasks_deleted = 1;
119
+ }