using System.Text.Json; using Moli.Desktop.Plugins; namespace Moli.Desktop.WebView; public sealed record PluginBridgeContext { public required string HostId { get; init; } public required PluginManifest Manifest { get; init; } public required PluginRuntimeBridgeInfo RuntimeInfo { get; init; } public JsonElement Config { get; init; } } public sealed record PluginRuntimeBridgeInfo { public required string PluginId { get; init; } public required PluginType PluginType { get; init; } public required string HostId { get; init; } public bool IsEditMode { get; init; } public bool IsVisible { get; init; } = true; }