feat(prime): carry the action kind through the hub and validate custom prompts

This commit is contained in:
mika kuns
2026-08-25 08:51:37 +02:00
parent cf6a6b6208
commit 4e8e0334b2
4 changed files with 62 additions and 4 deletions
@@ -0,0 +1,14 @@
using ClaudeDo.Data.Models;
namespace ClaudeDo.Worker.Prime;
public static class PrimeScheduleValidation
{
/// <summary>Returns an error message, or null when the schedule is safe to persist.</summary>
public static string? Validate(PrimeScheduleDto dto)
{
if (dto.Kind == PrimeActionKind.Custom && string.IsNullOrWhiteSpace(dto.PromptOverride))
return "A custom Prime schedule needs a prompt.";
return null;
}
}