mirror of
https://github.com/cline/cline.git
synced 2026-10-29 17:42:34 +08:00
* protobus impl for getDetectedChromePath * [PROTOBUS] browserSettings (#3007) * protobus for browserSettings * Update index.ts --------- Co-authored-by: Andrei Edell <andrei@nugbase.com> --------- Co-authored-by: Andrei Edell <andrei@nugbase.com>
49 lines
1.1 KiB
Protocol Buffer
49 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package cline;
|
|
|
|
import "common.proto";
|
|
|
|
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);
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
message UpdateBrowserSettingsRequest {
|
|
Metadata metadata = 1;
|
|
Viewport viewport = 2;
|
|
optional string remote_browser_host = 3;
|
|
optional bool remote_browser_enabled = 4;
|
|
}
|