search and ai stabilization work, localization stablized.

This commit is contained in:
master
2026-02-24 23:29:36 +02:00
parent 4f947a8b61
commit b07d27772e
766 changed files with 55299 additions and 3221 deletions

View File

@@ -11,6 +11,7 @@ using System.Net;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using static StellaOps.Localization.T;
namespace StellaOps.Evidence.Pack;
@@ -269,7 +270,7 @@ internal sealed class EvidencePackService : IEvidencePackService
EvidencePackExportFormat.SignedJson => await ExportAsSignedJson(pack, cancellationToken).ConfigureAwait(false),
EvidencePackExportFormat.Markdown => ExportAsMarkdown(pack),
EvidencePackExportFormat.Html => ExportAsHtml(pack),
EvidencePackExportFormat.Pdf => throw new NotSupportedException("PDF export requires additional configuration"),
EvidencePackExportFormat.Pdf => throw new NotSupportedException(_t("common.evidence.pdf_export_requires_config")),
// Sprint: SPRINT_20260112_005_BE_evidence_card_api (EVPCARD-BE-001)
EvidencePackExportFormat.EvidenceCard => await ExportAsEvidenceCard(pack, compact: false, cancellationToken).ConfigureAwait(false),
EvidencePackExportFormat.EvidenceCardCompact => await ExportAsEvidenceCard(pack, compact: true, cancellationToken).ConfigureAwait(false),

View File

@@ -9,6 +9,7 @@ using System.Collections.Immutable;
using System.Security.Cryptography;
using System.Text;
using System.Text.Json;
using static StellaOps.Localization.T;
namespace StellaOps.Evidence.Pack;
@@ -157,7 +158,7 @@ internal sealed class EvidenceResolver : IEvidenceResolver
// Expected format: stella://type/path
if (!uri.StartsWith("stella://", StringComparison.OrdinalIgnoreCase))
{
throw new ArgumentException($"Invalid evidence URI format: {uri}. Expected stella://type/path");
throw new ArgumentException(_t("common.evidence.invalid_uri_format", uri));
}
var withoutScheme = uri[9..]; // Remove "stella://"
@@ -165,7 +166,7 @@ internal sealed class EvidenceResolver : IEvidenceResolver
if (slashIndex <= 0)
{
throw new ArgumentException($"Invalid evidence URI format: {uri}. Missing path.");
throw new ArgumentException(_t("common.evidence.invalid_uri_missing_path", uri));
}
var type = withoutScheme[..slashIndex];

View File

@@ -5,6 +5,7 @@
using StellaOps.Evidence.Pack.Models;
using System.Collections.Immutable;
using static StellaOps.Localization.T;
namespace StellaOps.Evidence.Pack.Resolvers;
@@ -28,7 +29,7 @@ internal sealed class NullTypeResolver : ITypeResolver
string path,
CancellationToken cancellationToken)
{
throw new NotSupportedException($"NullTypeResolver cannot resolve evidence type: {type}");
throw new NotSupportedException(_t("common.evidence.null_resolver_cannot_resolve", type));
}
}

View File

@@ -16,6 +16,7 @@
<ItemGroup>
<ProjectReference Include="..\StellaOps.AdvisoryAI.Attestation\StellaOps.AdvisoryAI.Attestation.csproj" />
<ProjectReference Include="..\StellaOps.Determinism.Abstractions\StellaOps.Determinism.Abstractions.csproj" />
<ProjectReference Include="..\StellaOps.Localization\StellaOps.Localization.csproj" />
</ItemGroup>
<ItemGroup>