(value: unknown, variants: readonly string[])
| 42 | |
| 43 | /** Validates a stimulus's `tags.variant` against the variants its suite accepts. */ |
| 44 | export function stimulusVariant(value: unknown, variants: readonly string[]): string { |
| 45 | if (typeof value === "string" && variants.includes(value)) return value; |
| 46 | throw new InfrastructureError(`Unsupported stimulus variant: ${String(value)}`); |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Vally executor that runs one live agent trial of a suite scenario: the suite provisions a fixture, the Copilot agent |
no outgoing calls
no test coverage detected