| | | 1 | | using System.ComponentModel; |
| | | 2 | | using EHonda.KicktippAi.Core; |
| | | 3 | | using Spectre.Console; |
| | | 4 | | using Spectre.Console.Cli; |
| | | 5 | | |
| | | 6 | | namespace Orchestrator.Commands.Operations.Verify; |
| | | 7 | | |
| | | 8 | | public class VerifySettings : CommandSettings |
| | | 9 | | { |
| | | 10 | | [CommandArgument(0, "<MODEL>")] |
| | | 11 | | [Description("The OpenAI model to verify predictions for")] |
| | | 12 | | public string? Model { get; set; } |
| | | 13 | | |
| | | 14 | | [CommandOption("-c|--community")] |
| | | 15 | | [Description("The Kicktipp community to use (e.g., ehonda-test-buli)")] |
| | | 16 | | public required string Community { get; set; } |
| | | 17 | | |
| | | 18 | | [CommandOption("--community-context")] |
| | | 19 | | [Description("The community context for filtering predictions (defaults to community name if not specified)")] |
| | | 20 | | public string? CommunityContext { get; set; } |
| | | 21 | | |
| | | 22 | | [CommandOption("--competition")] |
| | | 23 | | [Description("Competition identifier (defaults from community, e.g., fifa-world-cup-2026 for ehonda-dev-wm26)")] |
| | | 24 | | public string? Competition { get; set; } |
| | | 25 | | |
| | | 26 | | [CommandOption("--reasoning-effort")] |
| | | 27 | | [Description("Optional OpenAI reasoning effort (none, minimal, low, medium, high, xhigh)")] |
| | | 28 | | public string? ReasoningEffort { get; set; } |
| | | 29 | | |
| | | 30 | | [CommandOption("-v|--verbose")] |
| | | 31 | | [Description("Enable verbose output to show detailed information")] |
| | | 32 | | [DefaultValue(false)] |
| | | 33 | | public bool Verbose { get; set; } |
| | | 34 | | |
| | | 35 | | [CommandOption("--agent")] |
| | | 36 | | [Description("Agent mode - hide prediction details from output (for automated environments)")] |
| | | 37 | | [DefaultValue(false)] |
| | | 38 | | public bool Agent { get; set; } |
| | | 39 | | |
| | | 40 | | [CommandOption("--init-matchday")] |
| | | 41 | | [Description("Init matchday mode - return error when no predictions exist to trigger initial prediction workflow")] |
| | | 42 | | [DefaultValue(false)] |
| | | 43 | | public bool InitMatchday { get; set; } |
| | | 44 | | |
| | | 45 | | [CommandOption("--check-outdated")] |
| | | 46 | | [Description("Check if predictions are outdated based on context document changes")] |
| | | 47 | | [DefaultValue(false)] |
| | | 48 | | public bool CheckOutdated { get; set; } |
| | | 49 | | |
| | | 50 | | public override ValidationResult Validate() |
| | | 51 | | { |
| | 1 | 52 | | if (string.IsNullOrWhiteSpace(Model)) |
| | | 53 | | { |
| | 0 | 54 | | return ValidationResult.Error("MODEL is required"); |
| | | 55 | | } |
| | | 56 | | |
| | 1 | 57 | | if (!PredictionModelConfig.IsValidReasoningEffort(ReasoningEffort)) |
| | | 58 | | { |
| | 0 | 59 | | return ValidationResult.Error("--reasoning-effort must be one of: none, minimal, low, medium, high, xhigh"); |
| | | 60 | | } |
| | | 61 | | |
| | 1 | 62 | | return ValidationResult.Success(); |
| | | 63 | | } |
| | | 64 | | } |