* WIP host bridge * Run formatter * remove tmp impl & rename host grpc client * gitignore more files * better layout * host handler to make other hosts easier to add * remove adapter pattern * get host responses correctly * fix streaming mode for host bridge * first wip subscription host bridge demo for watching mcp server config * format, comment * add cancellation for host grpc stream * remove unneeded functions from host-grpc-handler * add a method for canceling request rather than using the registry * another todo * use StringRequest for uri.proto * debounce new file watcher * remove test setup * remove some todos and logs * remove registry use todo * Revert "remove registry use todo" This reverts commit 84078d3469b9cd7875f63c7fc7f66a29fac99654. * fix capitalization of uri.proto * a better pattern for a callback based bridge without using the requestRegistry directly --------- Co-authored-by: Andrei Edell <andrei@nugbase.com> Co-authored-by: Sarah Fortune <sarah.fortune@gmail.com> Co-authored-by: Andrei Eternal <eternal@cline.bot>
37 lines
845 B
Protocol Buffer
37 lines
845 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package host;
|
|
option java_package = "bot.cline.host.proto";
|
|
option java_multiple_files = true;
|
|
|
|
import "common.proto";
|
|
|
|
// UriService provides methods for working with URIs in the IDE
|
|
service UriService {
|
|
// Create a new file URI from a file path
|
|
rpc file(cline.StringRequest) returns (Uri);
|
|
|
|
// Join a URI with additional path segments
|
|
rpc joinPath(JoinPathRequest) returns (Uri);
|
|
|
|
// Parse a string URI into a Uri object
|
|
rpc parse(cline.StringRequest) returns (Uri);
|
|
}
|
|
|
|
// Uri represents a URI in the IDE
|
|
message Uri {
|
|
string scheme = 1;
|
|
string authority = 2;
|
|
string path = 3;
|
|
string query = 4;
|
|
string fragment = 5;
|
|
string fsPath = 6;
|
|
}
|
|
|
|
// Request for joining path segments to a URI
|
|
message JoinPathRequest {
|
|
cline.Metadata metadata = 1;
|
|
Uri base = 2;
|
|
repeated string pathSegments = 3;
|
|
}
|