Compare commits

...

1 Commits

Author SHA1 Message Date
Sarah Fortune fe1710a0cc Add an endpoint to the HostBridge for integration testing
Add an RPC to the HostBridge that returns the contents of the
webview, for use in integration tests.
2025-08-09 19:36:02 +01:00
2 changed files with 22 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
syntax = "proto3";
package host;
option java_package = "bot.cline.host.proto";
option java_multiple_files = true;
// This is for use in integration tests to get the contents of the webview.
service TestingService {
rpc getWebviewHtml(GetWebviewHtmlRequest) returns (GetWebviewHtmlResponse);
}
message GetWebviewHtmlRequest {
}
message GetWebviewHtmlResponse {
optional string html = 1;
}
@@ -0,0 +1,5 @@
import { GetWebviewHtmlRequest, GetWebviewHtmlResponse } from "@/shared/proto/index.host"
export async function getWebviewHtml(_: GetWebviewHtmlRequest): Promise<GetWebviewHtmlResponse> {
throw new Error("Unimplemented")
}