← All changes
|
includes/abilities/analysis/class-get-llms-txt-status.php
+12
-9
2.0.0
→
2.9.0
View file →
| @@ -25,9 +25,9 @@ | ||
| 25 | 25 | */ |
| 26 | 26 | public function __construct() { |
| 27 | 27 | $this->id = 'thinkrank/get-llms-txt-status'; |
| 28 | 28 | $this->label = __( 'Get ThinkRank llms.txt Status', 'thinkrank' ); |
| 29 | - $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.', 'thinkrank' ); | |
| 29 | + $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' ); | |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * {@inheritDoc} |
| @@ -52,9 +52,9 @@ | ||
| 52 | 52 | public function get_input_schema() { |
| 53 | 53 | return [ |
| 54 | 54 | 'type' => 'object', |
| 55 | 55 | 'additionalProperties' => false, |
| 56 | - 'properties' => [], | |
| 56 | + 'properties' => self::empty_properties(), | |
| 57 | 57 | ]; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
| @@ -65,15 +65,18 @@ | ||
| 65 | 65 | public function get_output_schema() { |
| 66 | 66 | return [ |
| 67 | 67 | 'type' => 'object', |
| 68 | 68 | 'properties' => [ |
| 69 | - 'file_exists' => [ 'type' => 'boolean' ], | |
| 70 | - 'file_path' => [ 'type' => 'string' ], | |
| 71 | - 'file_url' => [ 'type' => 'string' ], | |
| 72 | - 'writable' => [ 'type' => 'boolean' ], | |
| 73 | - 'last_modified' => [ 'type' => [ 'string', 'integer', 'null' ] ], | |
| 74 | - 'file_size' => [ 'type' => [ 'integer', 'null' ] ], | |
| 75 | - 'content_preview' => [ 'type' => 'string' ], | |
| 69 | + 'file_exists' => [ 'type' => 'boolean' ], | |
| 70 | + 'published' => [ 'type' => 'boolean' ], | |
| 71 | + 'delivery_mode' => [ 'type' => 'string' ], | |
| 72 | + 'delivery_warning' => [ 'type' => 'string' ], | |
| 73 | + 'file_path' => [ 'type' => 'string' ], | |
| 74 | + 'file_url' => [ 'type' => 'string' ], | |
| 75 | + 'writable' => [ 'type' => 'boolean' ], | |
| 76 | + 'last_modified' => [ 'type' => [ 'string', 'integer', 'null' ] ], | |
| 77 | + 'file_size' => [ 'type' => [ 'integer', 'null' ] ], | |
| 78 | + 'content_preview' => [ 'type' => 'string' ], | |
| 76 | 79 | ], |
| 77 | 80 | ]; |
| 78 | 81 | } |
| 79 | 82 | |