mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 18:57:24 +00:00
- embeds the append-only historical and deny trust lists in the API and marks matching bundled plugins as Official without blocking loading - builds and records the current plugin manifest only for official release builds - deploys the PDF native libraries for the supported Linux, macOS and Windows runtimes from the plugin dependency manifest - records release hashes by appending only missing entries to master's manifest and rejects any diff that removes a line - documents the release flow, the supported runtimes and the plugin installer limits
37 lines
1.6 KiB
C#
37 lines
1.6 KiB
C#
#region ========================================================================= USING =====================================================================================
|
|
using Nemera.Domain.SharedKernel.Common.Enums.Plugins;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
#endregion
|
|
|
|
namespace Nemera.Contracts.Responses.Plugins;
|
|
|
|
/// <summary>
|
|
/// Represents a detected plugin.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// IsOfficial is computed from the loaded plugin binaries when the response is built. It is not stored with the plugin entity, because replacing a plugin binary must change the badge without a database migration.
|
|
/// </remarks>
|
|
/// <param name="Id">The unique identifier of the plugin.</param>
|
|
/// <param name="Name">The display name of the plugin.</param>
|
|
/// <param name="Author">The author of the plugin.</param>
|
|
/// <param name="Version">The version of the plugin.</param>
|
|
/// <param name="Description">The description of the plugin.</param>
|
|
/// <param name="LoadStatus">The load status of the plugin.</param>
|
|
/// <param name="LoadError">The error message when the plugin failed to load, if applicable.</param>
|
|
/// <param name="Settings">The settings of the plugin.</param>
|
|
/// <param name="IsOfficial">Whether the plugin matches a trusted bundled plugin binary.</param>
|
|
[DebuggerDisplay("Name: {Name}")]
|
|
public sealed record PluginResponse(
|
|
Guid Id,
|
|
string Name,
|
|
string Author,
|
|
string Version,
|
|
string Description,
|
|
PluginLoadStatus LoadStatus,
|
|
string? LoadError,
|
|
IReadOnlyDictionary<string, string>? Settings,
|
|
bool IsOfficial
|
|
);
|