<?php

declare(strict_types=1);

if (PHP_SAPI !== 'cli') {
    http_response_code(403);
    echo "This script can be run only from CLI.\n";
    exit(1);
}

require_once __DIR__ . '/../src/cleanup.php';

cliPrintJson([
    'scope' => bitrixCallRaw('scope'),
    'bots' => listBitrixBots(),
    'connectors' => listBitrixConnectors(),
]);
