mirror of
https://github.com/cline/cline.git
synced 2026-09-19 02:05:44 +08:00
* Working organization and personal inference, account switching, and usage/credit reporting. * Organization dropdown tweaks (#4710) * organization dropdown tweaks * reverted AuthService * Update Firebase Provider and Auth Service to support re-hydration of the user credentials * Add Github Auth Flow * Fix merge conflicts * Fix some dumb typing * recreate dropdown value when initialized (#4716) * added changeset * Update urls to production and handle some PR concerns * Get user credits when signing in (#4736) * get user balance when signing in instead of when there is no active org * swapped order of getUserCredits, made calls async * async changes continued, moved setIsLoading to finally --------- Co-authored-by: canvrno <46584286+canvrno@users.noreply.github.com> Co-authored-by: pashpashpash <nik@cline.bot>
55 lines
1.4 KiB
Protocol Buffer
55 lines
1.4 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package cline;
|
|
import "common.proto";
|
|
option java_package = "bot.cline.proto";
|
|
option java_multiple_files = true;
|
|
|
|
service BrowserService {
|
|
rpc getBrowserConnectionInfo(EmptyRequest) returns (BrowserConnectionInfo);
|
|
rpc testBrowserConnection(StringRequest) returns (BrowserConnection);
|
|
rpc discoverBrowser(EmptyRequest) returns (BrowserConnection);
|
|
rpc getDetectedChromePath(EmptyRequest) returns (ChromePath);
|
|
rpc updateBrowserSettings(UpdateBrowserSettingsRequest) returns (Boolean);
|
|
rpc relaunchChromeDebugMode(EmptyRequest) returns (String);
|
|
}
|
|
|
|
message BrowserConnectionInfo {
|
|
bool is_connected = 1;
|
|
bool is_remote = 2;
|
|
optional string host = 3;
|
|
}
|
|
|
|
message BrowserConnection {
|
|
bool success = 1;
|
|
string message = 2;
|
|
optional string endpoint = 3;
|
|
}
|
|
|
|
message ChromePath {
|
|
string path = 1;
|
|
bool is_bundled = 2;
|
|
}
|
|
|
|
message Viewport {
|
|
int32 width = 1;
|
|
int32 height = 2;
|
|
}
|
|
|
|
message BrowserSettings {
|
|
Viewport viewport = 1;
|
|
optional string remote_browser_host = 2;
|
|
optional bool remote_browser_enabled = 3;
|
|
optional string chrome_executable_path = 4;
|
|
optional bool disable_tool_use = 5;
|
|
}
|
|
|
|
message UpdateBrowserSettingsRequest {
|
|
Metadata metadata = 1;
|
|
Viewport viewport = 2;
|
|
optional string remote_browser_host = 3;
|
|
optional bool remote_browser_enabled = 4;
|
|
optional string chrome_executable_path = 5;
|
|
optional bool disable_tool_use = 6;
|
|
}
|