<?php
/**
 * Orientation ability schemas for Bricks overview reads.
 *
 * @package LolaCoreForBricks
 */

declare(strict_types=1);

namespace LolaCoreForBricks\Schemas;

use LolaCoreForBricks\AbilitiesProvider;

/**
 * Door 1 schema definitions for Bricks orientation abilities.
 */
class OrientationSchemas
{
    /**
     * @return array{exact: string[], stem: string[]}
     */
    private static function keywords(): array
    {
        return [
            'exact' => [
                'bricks', 'global classes', 'theme styles', 'design system', 'bricks overview',
                'clases globales', 'estilos de tema', 'sistema de diseño', 'resumen de bricks',
            ],
            'stem'  => ['brick', 'class', 'variable', 'template', 'component', 'diseño', 'estilo'],
        ];
    }

    /**
     * @return array<string, array<string, mixed>>
     */
    public static function define(): array
    {
        return [
            'getBricksOverview' => [
                'description' => 'Read Bricks readiness: version, CSS loading mode, domain counts, and index coverage. Call this before proposing global class, variable, theme style, or template changes.',
                'category'    => AbilitiesProvider::CATEGORY,
                'keywords'    => self::keywords(),
                'parameters'  => [
                    'type'       => 'object',
                    'properties' => [],
                ],
            ],
        ];
    }
}
