<?php
/**
 * Attaches index coverage metadata to index-backed reads (Law 3).
 *
 * @package LolaCoreForBricks
 */

declare(strict_types=1);

namespace LolaCoreForBricks\Support;

use LolaCoreForBricks\Index\IndexReader;

/**
 * Builds the coverage field for tool payloads.
 */
final class CoveragePayload
{
    /**
     * @return array{indexed: int, total: int, complete: bool}
     */
    public static function forResponse(): array
    {
        return (new IndexReader())->coverage();
    }
}
