csharpdeeb25a2 | 1 | namespace CascadeIDE.Features.Forge.Models; |
| 2 | |
| 3 | /// <summary>API tokens Forge Lens per forge host. Файл: forge-lens-secrets.toml (ADR 0028, 0158).</summary> |
| 4 | public sealed class ForgeLensSecrets |
| 5 | { |
| 6 | public Dictionary<string, ForgeLensHostSecrets> Hosts { get; set; } = new(StringComparer.OrdinalIgnoreCase); |
| 7 | } |
| 8 | |
| 9 | public sealed class ForgeLensHostSecrets |
| 10 | { |
| 11 | public string ApiToken { get; set; } = ""; |
| 12 | |
| 13 | public string TokenName { get; set; } = ""; |
| 14 | |
| 15 | public string SavedAtUtc { get; set; } = ""; |
| 16 | |
| 17 | public bool HasApiToken => !string.IsNullOrWhiteSpace(ApiToken); |
| 18 | } |
| 19 | |
View only · write via MCP/CIDE