feat: Implement console session management with tenant and profile handling

- Add ConsoleSessionStore for managing console session state including tenants, profile, and token information.
- Create OperatorContextService to manage operator context for orchestrator actions.
- Implement OperatorMetadataInterceptor to enrich HTTP requests with operator context metadata.
- Develop ConsoleProfileComponent to display user profile and session details, including tenant information and access tokens.
- Add corresponding HTML and SCSS for ConsoleProfileComponent to enhance UI presentation.
- Write unit tests for ConsoleProfileComponent to ensure correct rendering and functionality.
This commit is contained in:
master
2025-10-28 09:58:55 +02:00
parent 92ff5a6011
commit 95daa159c4
501 changed files with 51904 additions and 6663 deletions

View File

@@ -0,0 +1,32 @@
using System.Collections.Immutable;
using StellaOps.Aoc;
namespace StellaOps.Concelier.Core.Aoc;
/// <summary>
/// Represents an Aggregation-Only Contract violation produced while validating a raw advisory document.
/// </summary>
public sealed class ConcelierAocGuardException : Exception
{
public ConcelierAocGuardException(AocGuardResult result)
: base("AOC guard validation failed for the provided raw advisory document.")
{
Result = result ?? throw new ArgumentNullException(nameof(result));
}
/// <summary>
/// Guard evaluation result containing the individual violations.
/// </summary>
public AocGuardResult Result { get; }
/// <summary>
/// Collection of violations returned by the guard.
/// </summary>
public ImmutableArray<AocViolation> Violations => Result.Violations;
/// <summary>
/// Primary error code (`ERR_AOC_00x`) associated with the guard failure.
/// </summary>
public string PrimaryErrorCode =>
Violations.IsDefaultOrEmpty ? "ERR_AOC_000" : Violations[0].ErrorCode;
}