feat(mvp): complete MVP hardening — API, Web, config system, SignalR, tests
This commit is contained in:
1 parent
3fc42be4b2
commit
c2837af089
59 files changed
+4920
-81
No files matched your search
@@ -0,0 +1,29 @@
|
||||
using Heimdall.Application.Common;
|
||||
using Heimdall.Application.DTOs;
|
||||
|
||||
namespace Heimdall.Application.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Manages global settings and per-agent setting overrides.
|
||||
/// All changes are broadcast to connected agents via SignalR in real-time.
|
||||
/// </summary>
|
||||
public interface ISettingService
|
||||
{
|
||||
// Global settings
|
||||
Task<ServiceResult<List<AppSettingDto>>> GetAllSettingsAsync(CancellationToken ct = default);
|
||||
Task<ServiceResult<AppSettingDto>> GetSettingByKeyAsync(string key, CancellationToken ct = default);
|
||||
Task<ServiceResult<AppSettingDto>> CreateSettingAsync(CreateAppSettingRequest request, CancellationToken ct = default);
|
||||
Task<ServiceResult<AppSettingDto>> UpdateSettingAsync(string key, UpdateAppSettingRequest request, CancellationToken ct = default);
|
||||
Task<ServiceResult> DeleteSettingAsync(string key, CancellationToken ct = default);
|
||||
|
||||
// Agent-specific overrides
|
||||
Task<ServiceResult<List<AgentSettingDto>>> GetAgentSettingsAsync(Guid agentId, CancellationToken ct = default);
|
||||
Task<ServiceResult<AgentSettingDto>> SetAgentSettingAsync(Guid agentId, SetAgentSettingRequest request, CancellationToken ct = default);
|
||||
Task<ServiceResult> RemoveAgentSettingAsync(Guid agentId, string key, CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
/// Returns the effective configuration for an agent: global defaults merged with
|
||||
/// per-agent overrides. Used by agents to fetch their full config on connect.
|
||||
/// </summary>
|
||||
Task<ServiceResult<Dictionary<string, string>>> GetEffectiveAgentConfigAsync(Guid agentId, CancellationToken ct = default);
|
||||
}
|
||||
Reference in new issue
Block a user