chore(proto): regenerate after InvokePluginTheme RPC

Tracks fai/platform's new gRPC RPC + matching request /
response messages. Adds HubClient.invokePluginTheme as a
typed Dart method.

Signed-off-by: flemming-it <sf@flemming.it>
Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-05-25 21:49:39 +02:00
parent 6ebec5e3ae
commit 4a582f2b8d
4 changed files with 211 additions and 0 deletions

View file

@ -60,6 +60,7 @@ typedef DaemonPathsResponse = pb.DaemonPathsResponse;
typedef UninstallModuleResponse = pb.UninstallModuleResponse;
typedef FetchModuleDocsResponse = pb.FetchModuleDocsResponse;
typedef GetInstalledModuleDocsResponse = pb.GetInstalledModuleDocsResponse;
typedef InvokePluginThemeResponse = pb.InvokePluginThemeResponse;
typedef ListMcpClientsResponse = pb.ListMcpClientsResponse;
typedef McpClientStatus = pb.McpClientStatus;
typedef McpClientConfigEntry = pb.McpClientConfigEntry;
@ -273,6 +274,34 @@ class HubClient {
);
}
/// Invoke an installed Studio plugin's `theme` hook and
/// receive a Material 3 ColorScheme for the brightness
/// ("light" or "dark") the caller asked for.
///
/// [capability] is the full Studio-plugin capability name
/// (e.g. "studio.theme.solarized"). [brightness] must be
/// "light" or "dark"; other values surface as
/// `INVALID_ARGUMENT` from the hub. A plugin that doesn't
/// recognise the brightness returns Declined, which the
/// hub maps to `FAILED_PRECONDITION` Studio's
/// friendly-error mapper renders it with a recovery hint.
///
/// The first end-to-end RPC of the Studio-plugin
/// subsystem; `translate` and `output-view` hooks get
/// their own methods once the matching Studio surfaces
/// ship.
Future<InvokePluginThemeResponse> invokePluginTheme({
required String capability,
required String brightness,
}) {
return _admin.invokePluginTheme(
pb.InvokePluginThemeRequest(
capability: capability,
brightness: brightness,
),
);
}
/// List every configured MCP server with the last-discovery
/// snapshot. Drives Studio's MCP-clients editor.
Future<ListMcpClientsResponse> listMcpClients() {