id = 'thinkrank/get-llms-txt-status'; $this->label = __( 'Get ThinkRank llms.txt Status', 'thinkrank' ); $this->description = __( 'Report the current status of the published llms.txt file, including existence, path, URL, writability, last modified time, size, and a content preview. Reports on the file written by publish-llms-txt.', 'thinkrank' ); } /** * {@inheritDoc} * * @return array */ public function get_annotations() { return [ 'readonly' => true, 'destructive' => false, 'idempotent' => true, 'priority' => 1.0, 'openWorldHint' => false, ]; } /** * {@inheritDoc} * * @return array */ public function get_input_schema() { return [ 'type' => 'object', 'additionalProperties' => false, 'properties' => self::empty_properties(), ]; } /** * {@inheritDoc} * * @return array */ public function get_output_schema() { return [ 'type' => 'object', 'properties' => [ 'file_exists' => [ 'type' => 'boolean' ], 'published' => [ 'type' => 'boolean' ], 'delivery_mode' => [ 'type' => 'string' ], 'delivery_warning' => [ 'type' => 'string' ], 'file_path' => [ 'type' => 'string' ], 'file_url' => [ 'type' => 'string' ], 'writable' => [ 'type' => 'boolean' ], 'last_modified' => [ 'type' => [ 'string', 'integer', 'null' ] ], 'file_size' => [ 'type' => [ 'integer', 'null' ] ], 'content_preview' => [ 'type' => 'string' ], ], ]; } /** * Execute ability. * * @param array $input Ability input payload. * @return array */ public function execute( $input ) { $manager = new LLMs_Txt_Manager(); return $manager->get_llms_txt_status( false ); } }