array( 'type' => 'boolean' ), 'status' => array( 'type' => 'object' ), ); } protected function annotations(): array { return array( 'readonly' => false, 'destructive' => false, 'idempotent' => false, ); } /** * @param array $input Input. * @return array */ protected function run( array $input ) { Crawler_Repository::run(); return array( 'dispatched' => true, 'status' => Crawler_Repository::summary(), 'message' => __( 'Crawl dispatched. Poll litespeed/get-crawler-status for progress.', 'acrossai-abilities-manager' ), ); } }