Changeset 3447323
- Timestamp:
- 01/26/2026 07:25:02 PM (5 days ago)
- Location:
- ai
- Files:
-
- 4 added
- 26 edited
- 1 copied
-
tags/0.2.1 (copied) (copied from ai/trunk)
-
tags/0.2.1/ai.php (modified) (1 diff)
-
tags/0.2.1/includes/Abilities/Excerpt_Generation/Excerpt_Generation.php (modified) (3 diffs)
-
tags/0.2.1/includes/Abilities/Summarization/Summarization.php (modified) (3 diffs)
-
tags/0.2.1/includes/Abilities/Title_Generation/Title_Generation.php (modified) (5 diffs)
-
tags/0.2.1/includes/Abilities/Utilities/Posts.php (modified) (1 diff)
-
tags/0.2.1/includes/Services (added)
-
tags/0.2.1/includes/Services/AI_Service.php (added)
-
tags/0.2.1/includes/bootstrap.php (modified) (1 diff)
-
tags/0.2.1/includes/helpers.php (modified) (5 diffs)
-
tags/0.2.1/readme.txt (modified) (3 diffs)
-
tags/0.2.1/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
tags/0.2.1/vendor/composer/autoload_static.php (modified) (1 diff)
-
tags/0.2.1/vendor/composer/installed.php (modified) (2 diffs)
-
tags/0.2.1/vendor/composer/jetpack_autoload_classmap.php (modified) (1 diff)
-
tags/0.2.1/vendor/composer/jetpack_autoload_filemap.php (modified) (1 diff)
-
trunk/ai.php (modified) (1 diff)
-
trunk/includes/Abilities/Excerpt_Generation/Excerpt_Generation.php (modified) (3 diffs)
-
trunk/includes/Abilities/Summarization/Summarization.php (modified) (3 diffs)
-
trunk/includes/Abilities/Title_Generation/Title_Generation.php (modified) (5 diffs)
-
trunk/includes/Abilities/Utilities/Posts.php (modified) (1 diff)
-
trunk/includes/Services (added)
-
trunk/includes/Services/AI_Service.php (added)
-
trunk/includes/bootstrap.php (modified) (1 diff)
-
trunk/includes/helpers.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_static.php (modified) (1 diff)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/vendor/composer/jetpack_autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/jetpack_autoload_filemap.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ai/tags/0.2.1/ai.php
r3443635 r3447323 12 12 * Plugin URI: https://github.com/WordPress/ai 13 13 * Description: AI experiments and capabilities for WordPress. 14 * Version: 0.2. 014 * Version: 0.2.1 15 15 * Requires at least: 6.9 16 16 * Requires PHP: 7.4 -
ai/tags/0.2.1/includes/Abilities/Excerpt_Generation/Excerpt_Generation.php
r3443635 r3447323 15 15 16 16 use function WordPress\AI\get_post_context; 17 use function WordPress\AI\get_preferred_models ;17 use function WordPress\AI\get_preferred_models_for_text_generation; 18 18 use function WordPress\AI\normalize_content; 19 19 … … 149 149 } 150 150 151 // Ensure the user has permission to readthis particular post.152 if ( ! current_user_can( ' read_post', $post_id ) ) {151 // Ensure the user has permission to edit this particular post. 152 if ( ! current_user_can( 'edit_post', $post_id ) ) { 153 153 return new WP_Error( 154 154 'insufficient_capabilities', … … 230 230 ->using_system_instruction( $this->get_system_instruction() ) 231 231 ->using_temperature( 0.7 ) 232 ->using_model_preference( ...get_preferred_models () )232 ->using_model_preference( ...get_preferred_models_for_text_generation() ) 233 233 ->generate_text(); 234 234 } -
ai/tags/0.2.1/includes/Abilities/Summarization/Summarization.php
r3443635 r3447323 15 15 16 16 use function WordPress\AI\get_post_context; 17 use function WordPress\AI\get_preferred_models ;17 use function WordPress\AI\get_preferred_models_for_text_generation; 18 18 use function WordPress\AI\normalize_content; 19 19 … … 165 165 } 166 166 167 // Ensure the user has permission to readthis particular post.168 if ( ! current_user_can( ' read_post', $post_id ) ) {167 // Ensure the user has permission to edit this particular post. 168 if ( ! current_user_can( 'edit_post', $post_id ) ) { 169 169 return new WP_Error( 170 170 'insufficient_capabilities', … … 247 247 ->using_system_instruction( $this->get_system_instruction( 'system-instruction.php', array( 'length' => $length ) ) ) 248 248 ->using_temperature( 0.9 ) 249 ->using_model_preference( ...get_preferred_models () )249 ->using_model_preference( ...get_preferred_models_for_text_generation() ) 250 250 ->generate_text(); 251 251 } -
ai/tags/0.2.1/includes/Abilities/Title_Generation/Title_Generation.php
r3407614 r3447323 15 15 16 16 use function WordPress\AI\get_post_context; 17 use function WordPress\AI\get_preferred_models ;17 use function WordPress\AI\get_preferred_models_for_text_generation; 18 18 use function WordPress\AI\normalize_content; 19 19 … … 110 110 // If a post ID is provided, ensure the post exists before using its' content. 111 111 if ( $args['post_id'] ) { 112 $post = get_post( $args['post_id'] );112 $post = get_post( (int) $args['post_id'] ); 113 113 114 114 if ( ! $post ) { … … 121 121 122 122 // Get the post context. 123 $context = get_post_context( $args['post_id'] );123 $context = get_post_context( (int) $args['post_id'] ); 124 124 125 125 // Default to the passed in content if it exists. … … 191 191 } 192 192 193 // Ensure the user has permission to readthis particular post.194 if ( ! current_user_can( ' read_post', $post_id ) ) {193 // Ensure the user has permission to edit this particular post. 194 if ( ! current_user_can( 'edit_post', $post_id ) ) { 195 195 return new WP_Error( 196 196 'insufficient_capabilities', … … 268 268 ->using_temperature( 0.7 ) 269 269 ->using_candidate_count( (int) $candidates ) 270 ->using_model_preference( ...get_preferred_models () )270 ->using_model_preference( ...get_preferred_models_for_text_generation() ) 271 271 ->generate_texts(); 272 272 } -
ai/tags/0.2.1/includes/Abilities/Utilities/Posts.php
r3443635 r3447323 327 327 } 328 328 329 // Return true if the user has permission to readthe post.330 return current_user_can( ' read_post', $post_id );329 // Return true if the user has permission to edit the post. 330 return current_user_can( 'edit_post', $post_id ); 331 331 } 332 332 -
ai/tags/0.2.1/includes/bootstrap.php
r3443635 r3447323 24 24 // Define plugin constants. 25 25 if ( ! defined( 'AI_EXPERIMENTS_VERSION' ) ) { 26 define( 'AI_EXPERIMENTS_VERSION', '0.2. 0' );26 define( 'AI_EXPERIMENTS_VERSION', '0.2.1' ); 27 27 } 28 28 if ( ! defined( 'AI_EXPERIMENTS_PLUGIN_FILE' ) ) { -
ai/tags/0.2.1/includes/helpers.php
r3443635 r3447323 11 11 12 12 use Throwable; 13 use WordPress\AI\Services\AI_Service; 13 14 use WordPress\AI_Client\AI_Client; 14 15 … … 46 47 47 48 // Strip HTML entities. 48 $content = preg_replace( '/&#?[a-z0-9]{2,8};/i', '', $content ) ;49 $content = preg_replace( '/&#?[a-z0-9]{2,8};/i', '', $content ) ?? $content; 49 50 50 51 // Replace HTML linebreaks with newlines. 51 $content = preg_replace( '#<br\s?/?>#', "\n\n", (string) $content );52 $content = preg_replace( '#<br\s?/?>#', "\n\n", $content ) ?? $content; 52 53 53 54 // Strip all HTML tags. … … 55 56 56 57 // Remove unrendered shortcode tags. 57 $content = preg_replace( '#\[.+\](.+)\[/.+\]#', '$1', $content ) ;58 $content = preg_replace( '#\[.+\](.+)\[/.+\]#', '$1', $content ) ?? $content; 58 59 59 60 /** … … 131 132 132 133 /** 133 * Returns the preferred models .134 * 135 * @since 0. 1.0136 * 137 * @return array<int, array{string, string}> The preferred models .138 */ 139 function get_preferred_models (): array {134 * Returns the preferred models for text generation. 135 * 136 * @since 0.2.1 137 * 138 * @return array<int, array{string, string}> The preferred models for text generation. 139 */ 140 function get_preferred_models_for_text_generation(): array { 140 141 $preferred_models = array( 141 142 array( … … 158 159 159 160 /** 160 * Filters the preferred models. 161 * 162 * @since 0.1.0 163 * 164 * @param array<int, array{string, string}> $preferred_models The preferred models. 161 * Filters the preferred models for text generation. 162 * 163 * @since 0.2.1 164 * @hook ai_experiments_preferred_models_for_text_generation 165 * 166 * @param array<int, array{string, string}> $preferred_models The preferred models for text generation. 165 167 * @return array<int, array{string, string}> The filtered preferred models. 166 168 */ 167 return (array) apply_filters( 'ai_experiments_preferred_models', $preferred_models ); 169 return (array) apply_filters( 'ai_experiments_preferred_models_for_text_generation', $preferred_models ); 170 } 171 172 /** 173 * Gets the AI Service instance. 174 * 175 * Provides a convenient way to access the AI Service for performing AI operations. 176 * 177 * Example usage: 178 * ```php 179 * $service = WordPress\AI\get_ai_service(); 180 * 181 * // Check if text generation is supported before generating 182 * $builder = $service->create_textgen_prompt( 'Summarize this article...' ); 183 * if ( ! $builder->is_supported_for_text_generation() ) { 184 * return new WP_Error( 'ai_unsupported', 'No AI provider supports text generation.' ); 185 * } 186 * $text = $builder->generate_text(); 187 * 188 * // With options array 189 * $text = $service->create_textgen_prompt( 'Translate to French: Hello', array( 190 * 'system_instruction' => 'You are a translator.', 191 * 'temperature' => 0.3, 192 * ) )->generate_text(); 193 * 194 * // Chain additional SDK methods 195 * $titles = $service->create_textgen_prompt( 'Generate titles for: My blog post' ) 196 * ->using_candidate_count( 5 ) 197 * ->generate_texts(); 198 * ``` 199 * 200 * @since 0.2.1 201 * 202 * @return \WordPress\AI\Services\AI_Service The AI Service instance. 203 */ 204 function get_ai_service(): AI_Service { 205 return AI_Service::get_instance(); 168 206 } 169 207 -
ai/tags/0.2.1/readme.txt
r3443635 r3447323 3 3 Tags: ai, artificial intelligence, experiments, abilities, mcp 4 4 Tested up to: 6.9 5 Stable tag: 0.2. 05 Stable tag: 0.2.1 6 6 License: GPL-2.0-or-later 7 7 License URI: https://spdx.org/licenses/GPL-2.0-or-later.html … … 65 65 * **Override Default Behavior** - Use filters to customize prompts, responses, and UI elements 66 66 * **Pre-configure Providers** - Hosts and agencies can set up AI providers so users don't need their own API keys 67 * **Abilities Explorer** - Test and explore registered AI abilities (available when experiments are enabled) 67 68 68 69 **Developer Tools Coming Soon:** 69 70 70 * **Abilities Explorer** - Test and explore registered AI abilities (available when experiments are enabled)71 71 * **MCP Demo** - See how Model Context Protocol integration works with WordPress 72 72 * **Comprehensive Hooks** - Filters and actions throughout the codebase for customization … … 119 119 == Changelog == 120 120 121 = 0.2.1 - 2026-01-26 = 122 123 * **Added:** Introduced a shared `AI_Service` layer to standardize provider access across experiments ([#101](https://github.com/WordPress/ai/pull/101)). 124 * **Changed:** Documentation updates ([#195](https://github.com/WordPress/ai/pull/195)). 125 * **Fixed:** Guarded against `preg_replace()` returning `null` to prevent content corruption in `normalize_content()` ([#177](https://github.com/WordPress/ai/pull/177)). 126 * **Security:** Change our user permission checks to use `edit_post` instead of `read_post` ([GHSA-mxf5-gp98-93wv](https://github.com/WordPress/ai/security/advisories/GHSA-mxf5-gp98-93wv)). 127 * **Security:** Bumped `diff` from 4.0.2 to 4.0.4 ([#196](https://github.com/WordPress/ai/pull/196)). 128 * **Security:** Bumped `lodash-es` from 4.17.22 to 4.17.23 ([#198](https://github.com/WordPress/ai/pull/198)). 129 * **Security:** Bumped `lodash` from 4.17.21 to 4.17.23 ([#199](https://github.com/WordPress/ai/pull/199)). 130 121 131 = 0.2.0 – 2026-01-20 = 122 132 -
ai/tags/0.2.1/vendor/composer/autoload_classmap.php
r3443635 r3447323 155 155 'WordPress\\AI\\Experiments\\Summarization\\Summarization' => $baseDir . '/includes/Experiments/Summarization/Summarization.php', 156 156 'WordPress\\AI\\Experiments\\Title_Generation\\Title_Generation' => $baseDir . '/includes/Experiments/Title_Generation/Title_Generation.php', 157 'WordPress\\AI\\Services\\AI_Service' => $baseDir . '/includes/Services/AI_Service.php', 157 158 'WordPress\\AI\\Settings\\Settings_Page' => $baseDir . '/includes/Settings/Settings_Page.php', 158 159 'WordPress\\AI\\Settings\\Settings_Registration' => $baseDir . '/includes/Settings/Settings_Registration.php', -
ai/tags/0.2.1/vendor/composer/autoload_static.php
r3443635 r3447323 243 243 'WordPress\\AI\\Experiments\\Summarization\\Summarization' => __DIR__ . '/../..' . '/includes/Experiments/Summarization/Summarization.php', 244 244 'WordPress\\AI\\Experiments\\Title_Generation\\Title_Generation' => __DIR__ . '/../..' . '/includes/Experiments/Title_Generation/Title_Generation.php', 245 'WordPress\\AI\\Services\\AI_Service' => __DIR__ . '/../..' . '/includes/Services/AI_Service.php', 245 246 'WordPress\\AI\\Settings\\Settings_Page' => __DIR__ . '/../..' . '/includes/Settings/Settings_Page.php', 246 247 'WordPress\\AI\\Settings\\Settings_Registration' => __DIR__ . '/../..' . '/includes/Settings/Settings_Registration.php', -
ai/tags/0.2.1/vendor/composer/installed.php
r3443635 r3447323 2 2 'root' => array( 3 3 'name' => 'wordpress/ai', 4 'pretty_version' => '0.2. 0',5 'version' => '0.2. 0.0',6 'reference' => ' 3e3847e4d914f9c11e238ae22d73fe9a7c89b7be',4 'pretty_version' => '0.2.1', 5 'version' => '0.2.1.0', 6 'reference' => '9afabb2ea4c0d5f96183994c2af4cdb06dac71b1', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 131 131 ), 132 132 'wordpress/ai' => array( 133 'pretty_version' => '0.2. 0',134 'version' => '0.2. 0.0',135 'reference' => ' 3e3847e4d914f9c11e238ae22d73fe9a7c89b7be',133 'pretty_version' => '0.2.1', 134 'version' => '0.2.1.0', 135 'reference' => '9afabb2ea4c0d5f96183994c2af4cdb06dac71b1', 136 136 'type' => 'wordpress-plugin', 137 137 'install_path' => __DIR__ . '/../../', -
ai/tags/0.2.1/vendor/composer/jetpack_autoload_classmap.php
r3443635 r3447323 564 564 ), 565 565 'WordPress\\AI\\Abilities\\Excerpt_Generation\\Excerpt_Generation' => array( 566 'version' => '0.2. 0.0',566 'version' => '0.2.1.0', 567 567 'path' => $baseDir . '/includes/Abilities/Excerpt_Generation/Excerpt_Generation.php' 568 568 ), 569 569 'WordPress\\AI\\Abilities\\Image\\Generate_Image' => array( 570 'version' => '0.2. 0.0',570 'version' => '0.2.1.0', 571 571 'path' => $baseDir . '/includes/Abilities/Image/Generate_Image.php' 572 572 ), 573 573 'WordPress\\AI\\Abilities\\Image\\Import_Base64_Image' => array( 574 'version' => '0.2. 0.0',574 'version' => '0.2.1.0', 575 575 'path' => $baseDir . '/includes/Abilities/Image/Import_Base64_Image.php' 576 576 ), 577 577 'WordPress\\AI\\Abilities\\Summarization\\Summarization' => array( 578 'version' => '0.2. 0.0',578 'version' => '0.2.1.0', 579 579 'path' => $baseDir . '/includes/Abilities/Summarization/Summarization.php' 580 580 ), 581 581 'WordPress\\AI\\Abilities\\Title_Generation\\Title_Generation' => array( 582 'version' => '0.2. 0.0',582 'version' => '0.2.1.0', 583 583 'path' => $baseDir . '/includes/Abilities/Title_Generation/Title_Generation.php' 584 584 ), 585 585 'WordPress\\AI\\Abilities\\Utilities\\Posts' => array( 586 'version' => '0.2. 0.0',586 'version' => '0.2.1.0', 587 587 'path' => $baseDir . '/includes/Abilities/Utilities/Posts.php' 588 588 ), 589 589 'WordPress\\AI\\Abstracts\\Abstract_Ability' => array( 590 'version' => '0.2. 0.0',590 'version' => '0.2.1.0', 591 591 'path' => $baseDir . '/includes/Abstracts/Abstract_Ability.php' 592 592 ), 593 593 'WordPress\\AI\\Abstracts\\Abstract_Experiment' => array( 594 'version' => '0.2. 0.0',594 'version' => '0.2.1.0', 595 595 'path' => $baseDir . '/includes/Abstracts/Abstract_Experiment.php' 596 596 ), 597 597 'WordPress\\AI\\Asset_Loader' => array( 598 'version' => '0.2. 0.0',598 'version' => '0.2.1.0', 599 599 'path' => $baseDir . '/includes/Asset_Loader.php' 600 600 ), 601 601 'WordPress\\AI\\Contracts\\Experiment' => array( 602 'version' => '0.2. 0.0',602 'version' => '0.2.1.0', 603 603 'path' => $baseDir . '/includes/Contracts/Experiment.php' 604 604 ), 605 605 'WordPress\\AI\\Exception\\Invalid_Experiment_Exception' => array( 606 'version' => '0.2. 0.0',606 'version' => '0.2.1.0', 607 607 'path' => $baseDir . '/includes/Exception/Invalid_Experiment_Exception.php' 608 608 ), 609 609 'WordPress\\AI\\Exception\\Invalid_Experiment_Metadata_Exception' => array( 610 'version' => '0.2. 0.0',610 'version' => '0.2.1.0', 611 611 'path' => $baseDir . '/includes/Exception/Invalid_Experiment_Metadata_Exception.php' 612 612 ), 613 613 'WordPress\\AI\\Experiment_Loader' => array( 614 'version' => '0.2. 0.0',614 'version' => '0.2.1.0', 615 615 'path' => $baseDir . '/includes/Experiment_Loader.php' 616 616 ), 617 617 'WordPress\\AI\\Experiment_Registry' => array( 618 'version' => '0.2. 0.0',618 'version' => '0.2.1.0', 619 619 'path' => $baseDir . '/includes/Experiment_Registry.php' 620 620 ), 621 621 'WordPress\\AI\\Experiments\\Abilities_Explorer\\Abilities_Explorer' => array( 622 'version' => '0.2. 0.0',622 'version' => '0.2.1.0', 623 623 'path' => $baseDir . '/includes/Experiments/Abilities_Explorer/Abilities_Explorer.php' 624 624 ), 625 625 'WordPress\\AI\\Experiments\\Abilities_Explorer\\Ability_Handler' => array( 626 'version' => '0.2. 0.0',626 'version' => '0.2.1.0', 627 627 'path' => $baseDir . '/includes/Experiments/Abilities_Explorer/Ability_Handler.php' 628 628 ), 629 629 'WordPress\\AI\\Experiments\\Abilities_Explorer\\Ability_Table' => array( 630 'version' => '0.2. 0.0',630 'version' => '0.2.1.0', 631 631 'path' => $baseDir . '/includes/Experiments/Abilities_Explorer/Ability_Table.php' 632 632 ), 633 633 'WordPress\\AI\\Experiments\\Abilities_Explorer\\Admin_Page' => array( 634 'version' => '0.2. 0.0',634 'version' => '0.2.1.0', 635 635 'path' => $baseDir . '/includes/Experiments/Abilities_Explorer/Admin_Page.php' 636 636 ), 637 637 'WordPress\\AI\\Experiments\\Example_Experiment\\Example_Experiment' => array( 638 'version' => '0.2. 0.0',638 'version' => '0.2.1.0', 639 639 'path' => $baseDir . '/includes/Experiments/Example_Experiment/Example_Experiment.php' 640 640 ), 641 641 'WordPress\\AI\\Experiments\\Excerpt_Generation\\Excerpt_Generation' => array( 642 'version' => '0.2. 0.0',642 'version' => '0.2.1.0', 643 643 'path' => $baseDir . '/includes/Experiments/Excerpt_Generation/Excerpt_Generation.php' 644 644 ), 645 645 'WordPress\\AI\\Experiments\\Image_Generation\\Image_Generation' => array( 646 'version' => '0.2. 0.0',646 'version' => '0.2.1.0', 647 647 'path' => $baseDir . '/includes/Experiments/Image_Generation/Image_Generation.php' 648 648 ), 649 649 'WordPress\\AI\\Experiments\\Summarization\\Summarization' => array( 650 'version' => '0.2. 0.0',650 'version' => '0.2.1.0', 651 651 'path' => $baseDir . '/includes/Experiments/Summarization/Summarization.php' 652 652 ), 653 653 'WordPress\\AI\\Experiments\\Title_Generation\\Title_Generation' => array( 654 'version' => '0.2. 0.0',654 'version' => '0.2.1.0', 655 655 'path' => $baseDir . '/includes/Experiments/Title_Generation/Title_Generation.php' 656 656 ), 657 'WordPress\\AI\\Services\\AI_Service' => array( 658 'version' => '0.2.1.0', 659 'path' => $baseDir . '/includes/Services/AI_Service.php' 660 ), 657 661 'WordPress\\AI\\Settings\\Settings_Page' => array( 658 'version' => '0.2. 0.0',662 'version' => '0.2.1.0', 659 663 'path' => $baseDir . '/includes/Settings/Settings_Page.php' 660 664 ), 661 665 'WordPress\\AI\\Settings\\Settings_Registration' => array( 662 'version' => '0.2. 0.0',666 'version' => '0.2.1.0', 663 667 'path' => $baseDir . '/includes/Settings/Settings_Registration.php' 664 668 ), 665 669 'WordPress\\AI\\Tests\\Integration\\Experiments\\Abilities_Explorer\\Abilities_ExplorerTest' => array( 666 'version' => '0.2. 0.0',670 'version' => '0.2.1.0', 667 671 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Abilities_Explorer/Abilities_ExplorerTest.php' 668 672 ), 669 673 'WordPress\\AI\\Tests\\Integration\\Experiments\\Abilities_Explorer\\Ability_HandlerTest' => array( 670 'version' => '0.2. 0.0',674 'version' => '0.2.1.0', 671 675 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Abilities_Explorer/Ability_HandlerTest.php' 672 676 ), 673 677 'WordPress\\AI\\Tests\\Integration\\Experiments\\Abilities_Explorer\\Admin_PageTest' => array( 674 'version' => '0.2. 0.0',678 'version' => '0.2.1.0', 675 679 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Abilities_Explorer/Admin_PageTest.php' 676 680 ), 677 681 'WordPress\\AI\\Tests\\Integration\\Experiments\\Example_Experiment\\Example_ExperimentTest' => array( 678 'version' => '0.2. 0.0',682 'version' => '0.2.1.0', 679 683 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Example_Experiment/Example_ExperimentTest.php' 680 684 ), 681 685 'WordPress\\AI\\Tests\\Integration\\Experiments\\Image_Generation\\Image_GenerationTest' => array( 682 'version' => '0.2. 0.0',686 'version' => '0.2.1.0', 683 687 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Image_Generation/Image_GenerationTest.php' 684 688 ), 685 689 'WordPress\\AI\\Tests\\Integration\\Experiments\\Summarization\\SummarizationTest' => array( 686 'version' => '0.2. 0.0',690 'version' => '0.2.1.0', 687 691 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Summarization/SummarizationTest.php' 688 692 ), 689 693 'WordPress\\AI\\Tests\\Integration\\Experiments\\Title_Generation\\Title_GenerationTest' => array( 690 'version' => '0.2. 0.0',694 'version' => '0.2.1.0', 691 695 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Title_Generation/Title_GenerationTest.php' 692 696 ), 693 697 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Excerpt_GenerationTest' => array( 694 'version' => '0.2. 0.0',698 'version' => '0.2.1.0', 695 699 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Excerpt_GenerationTest.php' 696 700 ), 697 701 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Image_GenerationTest' => array( 698 'version' => '0.2. 0.0',702 'version' => '0.2.1.0', 699 703 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Image_GenerationTest.php' 700 704 ), 701 705 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Image_ImportTest' => array( 702 'version' => '0.2. 0.0',706 'version' => '0.2.1.0', 703 707 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Image_ImportTest.php' 704 708 ), 705 709 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\SummarizationTest' => array( 706 'version' => '0.2. 0.0',710 'version' => '0.2.1.0', 707 711 'path' => $baseDir . '/tests/Integration/Includes/Abilities/SummarizationTest.php' 708 712 ), 709 713 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Excerpt_Generation_Experiment' => array( 710 'version' => '0.2. 0.0',714 'version' => '0.2.1.0', 711 715 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Excerpt_GenerationTest.php' 712 716 ), 713 717 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Image_Generation_Experiment' => array( 714 'version' => '0.2. 0.0',718 'version' => '0.2.1.0', 715 719 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Image_GenerationTest.php' 716 720 ), 717 721 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Image_Import_Experiment' => array( 718 'version' => '0.2. 0.0',722 'version' => '0.2.1.0', 719 723 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Image_ImportTest.php' 720 724 ), 721 725 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Summarization_Experiment' => array( 722 'version' => '0.2. 0.0',726 'version' => '0.2.1.0', 723 727 'path' => $baseDir . '/tests/Integration/Includes/Abilities/SummarizationTest.php' 724 728 ), 725 729 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Title_Generation_Experiment' => array( 726 'version' => '0.2. 0.0',730 'version' => '0.2.1.0', 727 731 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Title_GenerationTest.php' 728 732 ), 729 733 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Title_GenerationTest' => array( 730 'version' => '0.2. 0.0',734 'version' => '0.2.1.0', 731 735 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Title_GenerationTest.php' 732 736 ), 733 737 'WordPress\\AI\\Tests\\Integration\\Includes\\Abstracts\\Abstract_AbilityTest' => array( 734 'version' => '0.2. 0.0',738 'version' => '0.2.1.0', 735 739 'path' => $baseDir . '/tests/Integration/Includes/Abstracts/Abstract_AbilityTest.php' 736 740 ), 737 741 'WordPress\\AI\\Tests\\Integration\\Includes\\Abstracts\\Test_Ability' => array( 738 'version' => '0.2. 0.0',742 'version' => '0.2.1.0', 739 743 'path' => $baseDir . '/tests/Integration/Includes/Abstracts/Abstract_AbilityTest.php' 740 744 ), 741 745 'WordPress\\AI\\Tests\\Integration\\Includes\\Abstracts\\Test_Ability_Experiment' => array( 742 'version' => '0.2. 0.0',746 'version' => '0.2.1.0', 743 747 'path' => $baseDir . '/tests/Integration/Includes/Abstracts/Abstract_AbilityTest.php' 744 748 ), 745 749 'WordPress\\AI\\Tests\\Integration\\Includes\\Experiment_LoaderTest' => array( 746 'version' => '0.2. 0.0',750 'version' => '0.2.1.0', 747 751 'path' => $baseDir . '/tests/Integration/Includes/Experiment_LoaderTest.php' 748 752 ), 749 753 'WordPress\\AI\\Tests\\Integration\\Includes\\Experiment_Registry_Test' => array( 750 'version' => '0.2. 0.0',754 'version' => '0.2.1.0', 751 755 'path' => $baseDir . '/tests/Integration/Includes/Experiment_RegistryTest.php' 752 756 ), 753 757 'WordPress\\AI\\Tests\\Integration\\Includes\\HelpersTest' => array( 754 'version' => '0.2. 0.0',758 'version' => '0.2.1.0', 755 759 'path' => $baseDir . '/tests/Integration/Includes/HelpersTest.php' 756 760 ), 757 761 'WordPress\\AI\\Tests\\Integration\\Includes\\Mock_Experiment' => array( 758 'version' => '0.2. 0.0',762 'version' => '0.2.1.0', 759 763 'path' => $baseDir . '/tests/Integration/Includes/Experiment_LoaderTest.php' 760 764 ), 765 'WordPress\\AI\\Tests\\Integration\\Includes\\Services\\AI_Service_Test' => array( 766 'version' => '0.2.1.0', 767 'path' => $baseDir . '/tests/Integration/Includes/Services/AI_ServiceTest.php' 768 ), 761 769 'WordPress\\AI\\Tests\\Integration\\Includes\\Test_Experiment' => array( 762 'version' => '0.2. 0.0',770 'version' => '0.2.1.0', 763 771 'path' => $baseDir . '/tests/Integration/Includes/Experiment_RegistryTest.php' 764 772 ), -
ai/tags/0.2.1/vendor/composer/jetpack_autoload_filemap.php
r3443635 r3447323 12 12 ), 13 13 '901a0fcb8c5137115199739c3d628fd4' => array( 14 'version' => '0.2. 0.0',14 'version' => '0.2.1.0', 15 15 'path' => $baseDir . '/includes/helpers.php' 16 16 ), -
ai/trunk/ai.php
r3443635 r3447323 12 12 * Plugin URI: https://github.com/WordPress/ai 13 13 * Description: AI experiments and capabilities for WordPress. 14 * Version: 0.2. 014 * Version: 0.2.1 15 15 * Requires at least: 6.9 16 16 * Requires PHP: 7.4 -
ai/trunk/includes/Abilities/Excerpt_Generation/Excerpt_Generation.php
r3443635 r3447323 15 15 16 16 use function WordPress\AI\get_post_context; 17 use function WordPress\AI\get_preferred_models ;17 use function WordPress\AI\get_preferred_models_for_text_generation; 18 18 use function WordPress\AI\normalize_content; 19 19 … … 149 149 } 150 150 151 // Ensure the user has permission to readthis particular post.152 if ( ! current_user_can( ' read_post', $post_id ) ) {151 // Ensure the user has permission to edit this particular post. 152 if ( ! current_user_can( 'edit_post', $post_id ) ) { 153 153 return new WP_Error( 154 154 'insufficient_capabilities', … … 230 230 ->using_system_instruction( $this->get_system_instruction() ) 231 231 ->using_temperature( 0.7 ) 232 ->using_model_preference( ...get_preferred_models () )232 ->using_model_preference( ...get_preferred_models_for_text_generation() ) 233 233 ->generate_text(); 234 234 } -
ai/trunk/includes/Abilities/Summarization/Summarization.php
r3443635 r3447323 15 15 16 16 use function WordPress\AI\get_post_context; 17 use function WordPress\AI\get_preferred_models ;17 use function WordPress\AI\get_preferred_models_for_text_generation; 18 18 use function WordPress\AI\normalize_content; 19 19 … … 165 165 } 166 166 167 // Ensure the user has permission to readthis particular post.168 if ( ! current_user_can( ' read_post', $post_id ) ) {167 // Ensure the user has permission to edit this particular post. 168 if ( ! current_user_can( 'edit_post', $post_id ) ) { 169 169 return new WP_Error( 170 170 'insufficient_capabilities', … … 247 247 ->using_system_instruction( $this->get_system_instruction( 'system-instruction.php', array( 'length' => $length ) ) ) 248 248 ->using_temperature( 0.9 ) 249 ->using_model_preference( ...get_preferred_models () )249 ->using_model_preference( ...get_preferred_models_for_text_generation() ) 250 250 ->generate_text(); 251 251 } -
ai/trunk/includes/Abilities/Title_Generation/Title_Generation.php
r3407614 r3447323 15 15 16 16 use function WordPress\AI\get_post_context; 17 use function WordPress\AI\get_preferred_models ;17 use function WordPress\AI\get_preferred_models_for_text_generation; 18 18 use function WordPress\AI\normalize_content; 19 19 … … 110 110 // If a post ID is provided, ensure the post exists before using its' content. 111 111 if ( $args['post_id'] ) { 112 $post = get_post( $args['post_id'] );112 $post = get_post( (int) $args['post_id'] ); 113 113 114 114 if ( ! $post ) { … … 121 121 122 122 // Get the post context. 123 $context = get_post_context( $args['post_id'] );123 $context = get_post_context( (int) $args['post_id'] ); 124 124 125 125 // Default to the passed in content if it exists. … … 191 191 } 192 192 193 // Ensure the user has permission to readthis particular post.194 if ( ! current_user_can( ' read_post', $post_id ) ) {193 // Ensure the user has permission to edit this particular post. 194 if ( ! current_user_can( 'edit_post', $post_id ) ) { 195 195 return new WP_Error( 196 196 'insufficient_capabilities', … … 268 268 ->using_temperature( 0.7 ) 269 269 ->using_candidate_count( (int) $candidates ) 270 ->using_model_preference( ...get_preferred_models () )270 ->using_model_preference( ...get_preferred_models_for_text_generation() ) 271 271 ->generate_texts(); 272 272 } -
ai/trunk/includes/Abilities/Utilities/Posts.php
r3443635 r3447323 327 327 } 328 328 329 // Return true if the user has permission to readthe post.330 return current_user_can( ' read_post', $post_id );329 // Return true if the user has permission to edit the post. 330 return current_user_can( 'edit_post', $post_id ); 331 331 } 332 332 -
ai/trunk/includes/bootstrap.php
r3443635 r3447323 24 24 // Define plugin constants. 25 25 if ( ! defined( 'AI_EXPERIMENTS_VERSION' ) ) { 26 define( 'AI_EXPERIMENTS_VERSION', '0.2. 0' );26 define( 'AI_EXPERIMENTS_VERSION', '0.2.1' ); 27 27 } 28 28 if ( ! defined( 'AI_EXPERIMENTS_PLUGIN_FILE' ) ) { -
ai/trunk/includes/helpers.php
r3443635 r3447323 11 11 12 12 use Throwable; 13 use WordPress\AI\Services\AI_Service; 13 14 use WordPress\AI_Client\AI_Client; 14 15 … … 46 47 47 48 // Strip HTML entities. 48 $content = preg_replace( '/&#?[a-z0-9]{2,8};/i', '', $content ) ;49 $content = preg_replace( '/&#?[a-z0-9]{2,8};/i', '', $content ) ?? $content; 49 50 50 51 // Replace HTML linebreaks with newlines. 51 $content = preg_replace( '#<br\s?/?>#', "\n\n", (string) $content );52 $content = preg_replace( '#<br\s?/?>#', "\n\n", $content ) ?? $content; 52 53 53 54 // Strip all HTML tags. … … 55 56 56 57 // Remove unrendered shortcode tags. 57 $content = preg_replace( '#\[.+\](.+)\[/.+\]#', '$1', $content ) ;58 $content = preg_replace( '#\[.+\](.+)\[/.+\]#', '$1', $content ) ?? $content; 58 59 59 60 /** … … 131 132 132 133 /** 133 * Returns the preferred models .134 * 135 * @since 0. 1.0136 * 137 * @return array<int, array{string, string}> The preferred models .138 */ 139 function get_preferred_models (): array {134 * Returns the preferred models for text generation. 135 * 136 * @since 0.2.1 137 * 138 * @return array<int, array{string, string}> The preferred models for text generation. 139 */ 140 function get_preferred_models_for_text_generation(): array { 140 141 $preferred_models = array( 141 142 array( … … 158 159 159 160 /** 160 * Filters the preferred models. 161 * 162 * @since 0.1.0 163 * 164 * @param array<int, array{string, string}> $preferred_models The preferred models. 161 * Filters the preferred models for text generation. 162 * 163 * @since 0.2.1 164 * @hook ai_experiments_preferred_models_for_text_generation 165 * 166 * @param array<int, array{string, string}> $preferred_models The preferred models for text generation. 165 167 * @return array<int, array{string, string}> The filtered preferred models. 166 168 */ 167 return (array) apply_filters( 'ai_experiments_preferred_models', $preferred_models ); 169 return (array) apply_filters( 'ai_experiments_preferred_models_for_text_generation', $preferred_models ); 170 } 171 172 /** 173 * Gets the AI Service instance. 174 * 175 * Provides a convenient way to access the AI Service for performing AI operations. 176 * 177 * Example usage: 178 * ```php 179 * $service = WordPress\AI\get_ai_service(); 180 * 181 * // Check if text generation is supported before generating 182 * $builder = $service->create_textgen_prompt( 'Summarize this article...' ); 183 * if ( ! $builder->is_supported_for_text_generation() ) { 184 * return new WP_Error( 'ai_unsupported', 'No AI provider supports text generation.' ); 185 * } 186 * $text = $builder->generate_text(); 187 * 188 * // With options array 189 * $text = $service->create_textgen_prompt( 'Translate to French: Hello', array( 190 * 'system_instruction' => 'You are a translator.', 191 * 'temperature' => 0.3, 192 * ) )->generate_text(); 193 * 194 * // Chain additional SDK methods 195 * $titles = $service->create_textgen_prompt( 'Generate titles for: My blog post' ) 196 * ->using_candidate_count( 5 ) 197 * ->generate_texts(); 198 * ``` 199 * 200 * @since 0.2.1 201 * 202 * @return \WordPress\AI\Services\AI_Service The AI Service instance. 203 */ 204 function get_ai_service(): AI_Service { 205 return AI_Service::get_instance(); 168 206 } 169 207 -
ai/trunk/readme.txt
r3443635 r3447323 3 3 Tags: ai, artificial intelligence, experiments, abilities, mcp 4 4 Tested up to: 6.9 5 Stable tag: 0.2. 05 Stable tag: 0.2.1 6 6 License: GPL-2.0-or-later 7 7 License URI: https://spdx.org/licenses/GPL-2.0-or-later.html … … 65 65 * **Override Default Behavior** - Use filters to customize prompts, responses, and UI elements 66 66 * **Pre-configure Providers** - Hosts and agencies can set up AI providers so users don't need their own API keys 67 * **Abilities Explorer** - Test and explore registered AI abilities (available when experiments are enabled) 67 68 68 69 **Developer Tools Coming Soon:** 69 70 70 * **Abilities Explorer** - Test and explore registered AI abilities (available when experiments are enabled)71 71 * **MCP Demo** - See how Model Context Protocol integration works with WordPress 72 72 * **Comprehensive Hooks** - Filters and actions throughout the codebase for customization … … 119 119 == Changelog == 120 120 121 = 0.2.1 - 2026-01-26 = 122 123 * **Added:** Introduced a shared `AI_Service` layer to standardize provider access across experiments ([#101](https://github.com/WordPress/ai/pull/101)). 124 * **Changed:** Documentation updates ([#195](https://github.com/WordPress/ai/pull/195)). 125 * **Fixed:** Guarded against `preg_replace()` returning `null` to prevent content corruption in `normalize_content()` ([#177](https://github.com/WordPress/ai/pull/177)). 126 * **Security:** Change our user permission checks to use `edit_post` instead of `read_post` ([GHSA-mxf5-gp98-93wv](https://github.com/WordPress/ai/security/advisories/GHSA-mxf5-gp98-93wv)). 127 * **Security:** Bumped `diff` from 4.0.2 to 4.0.4 ([#196](https://github.com/WordPress/ai/pull/196)). 128 * **Security:** Bumped `lodash-es` from 4.17.22 to 4.17.23 ([#198](https://github.com/WordPress/ai/pull/198)). 129 * **Security:** Bumped `lodash` from 4.17.21 to 4.17.23 ([#199](https://github.com/WordPress/ai/pull/199)). 130 121 131 = 0.2.0 – 2026-01-20 = 122 132 -
ai/trunk/vendor/composer/autoload_classmap.php
r3443635 r3447323 155 155 'WordPress\\AI\\Experiments\\Summarization\\Summarization' => $baseDir . '/includes/Experiments/Summarization/Summarization.php', 156 156 'WordPress\\AI\\Experiments\\Title_Generation\\Title_Generation' => $baseDir . '/includes/Experiments/Title_Generation/Title_Generation.php', 157 'WordPress\\AI\\Services\\AI_Service' => $baseDir . '/includes/Services/AI_Service.php', 157 158 'WordPress\\AI\\Settings\\Settings_Page' => $baseDir . '/includes/Settings/Settings_Page.php', 158 159 'WordPress\\AI\\Settings\\Settings_Registration' => $baseDir . '/includes/Settings/Settings_Registration.php', -
ai/trunk/vendor/composer/autoload_static.php
r3443635 r3447323 243 243 'WordPress\\AI\\Experiments\\Summarization\\Summarization' => __DIR__ . '/../..' . '/includes/Experiments/Summarization/Summarization.php', 244 244 'WordPress\\AI\\Experiments\\Title_Generation\\Title_Generation' => __DIR__ . '/../..' . '/includes/Experiments/Title_Generation/Title_Generation.php', 245 'WordPress\\AI\\Services\\AI_Service' => __DIR__ . '/../..' . '/includes/Services/AI_Service.php', 245 246 'WordPress\\AI\\Settings\\Settings_Page' => __DIR__ . '/../..' . '/includes/Settings/Settings_Page.php', 246 247 'WordPress\\AI\\Settings\\Settings_Registration' => __DIR__ . '/../..' . '/includes/Settings/Settings_Registration.php', -
ai/trunk/vendor/composer/installed.php
r3443635 r3447323 2 2 'root' => array( 3 3 'name' => 'wordpress/ai', 4 'pretty_version' => '0.2. 0',5 'version' => '0.2. 0.0',6 'reference' => ' 3e3847e4d914f9c11e238ae22d73fe9a7c89b7be',4 'pretty_version' => '0.2.1', 5 'version' => '0.2.1.0', 6 'reference' => '9afabb2ea4c0d5f96183994c2af4cdb06dac71b1', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 131 131 ), 132 132 'wordpress/ai' => array( 133 'pretty_version' => '0.2. 0',134 'version' => '0.2. 0.0',135 'reference' => ' 3e3847e4d914f9c11e238ae22d73fe9a7c89b7be',133 'pretty_version' => '0.2.1', 134 'version' => '0.2.1.0', 135 'reference' => '9afabb2ea4c0d5f96183994c2af4cdb06dac71b1', 136 136 'type' => 'wordpress-plugin', 137 137 'install_path' => __DIR__ . '/../../', -
ai/trunk/vendor/composer/jetpack_autoload_classmap.php
r3443635 r3447323 564 564 ), 565 565 'WordPress\\AI\\Abilities\\Excerpt_Generation\\Excerpt_Generation' => array( 566 'version' => '0.2. 0.0',566 'version' => '0.2.1.0', 567 567 'path' => $baseDir . '/includes/Abilities/Excerpt_Generation/Excerpt_Generation.php' 568 568 ), 569 569 'WordPress\\AI\\Abilities\\Image\\Generate_Image' => array( 570 'version' => '0.2. 0.0',570 'version' => '0.2.1.0', 571 571 'path' => $baseDir . '/includes/Abilities/Image/Generate_Image.php' 572 572 ), 573 573 'WordPress\\AI\\Abilities\\Image\\Import_Base64_Image' => array( 574 'version' => '0.2. 0.0',574 'version' => '0.2.1.0', 575 575 'path' => $baseDir . '/includes/Abilities/Image/Import_Base64_Image.php' 576 576 ), 577 577 'WordPress\\AI\\Abilities\\Summarization\\Summarization' => array( 578 'version' => '0.2. 0.0',578 'version' => '0.2.1.0', 579 579 'path' => $baseDir . '/includes/Abilities/Summarization/Summarization.php' 580 580 ), 581 581 'WordPress\\AI\\Abilities\\Title_Generation\\Title_Generation' => array( 582 'version' => '0.2. 0.0',582 'version' => '0.2.1.0', 583 583 'path' => $baseDir . '/includes/Abilities/Title_Generation/Title_Generation.php' 584 584 ), 585 585 'WordPress\\AI\\Abilities\\Utilities\\Posts' => array( 586 'version' => '0.2. 0.0',586 'version' => '0.2.1.0', 587 587 'path' => $baseDir . '/includes/Abilities/Utilities/Posts.php' 588 588 ), 589 589 'WordPress\\AI\\Abstracts\\Abstract_Ability' => array( 590 'version' => '0.2. 0.0',590 'version' => '0.2.1.0', 591 591 'path' => $baseDir . '/includes/Abstracts/Abstract_Ability.php' 592 592 ), 593 593 'WordPress\\AI\\Abstracts\\Abstract_Experiment' => array( 594 'version' => '0.2. 0.0',594 'version' => '0.2.1.0', 595 595 'path' => $baseDir . '/includes/Abstracts/Abstract_Experiment.php' 596 596 ), 597 597 'WordPress\\AI\\Asset_Loader' => array( 598 'version' => '0.2. 0.0',598 'version' => '0.2.1.0', 599 599 'path' => $baseDir . '/includes/Asset_Loader.php' 600 600 ), 601 601 'WordPress\\AI\\Contracts\\Experiment' => array( 602 'version' => '0.2. 0.0',602 'version' => '0.2.1.0', 603 603 'path' => $baseDir . '/includes/Contracts/Experiment.php' 604 604 ), 605 605 'WordPress\\AI\\Exception\\Invalid_Experiment_Exception' => array( 606 'version' => '0.2. 0.0',606 'version' => '0.2.1.0', 607 607 'path' => $baseDir . '/includes/Exception/Invalid_Experiment_Exception.php' 608 608 ), 609 609 'WordPress\\AI\\Exception\\Invalid_Experiment_Metadata_Exception' => array( 610 'version' => '0.2. 0.0',610 'version' => '0.2.1.0', 611 611 'path' => $baseDir . '/includes/Exception/Invalid_Experiment_Metadata_Exception.php' 612 612 ), 613 613 'WordPress\\AI\\Experiment_Loader' => array( 614 'version' => '0.2. 0.0',614 'version' => '0.2.1.0', 615 615 'path' => $baseDir . '/includes/Experiment_Loader.php' 616 616 ), 617 617 'WordPress\\AI\\Experiment_Registry' => array( 618 'version' => '0.2. 0.0',618 'version' => '0.2.1.0', 619 619 'path' => $baseDir . '/includes/Experiment_Registry.php' 620 620 ), 621 621 'WordPress\\AI\\Experiments\\Abilities_Explorer\\Abilities_Explorer' => array( 622 'version' => '0.2. 0.0',622 'version' => '0.2.1.0', 623 623 'path' => $baseDir . '/includes/Experiments/Abilities_Explorer/Abilities_Explorer.php' 624 624 ), 625 625 'WordPress\\AI\\Experiments\\Abilities_Explorer\\Ability_Handler' => array( 626 'version' => '0.2. 0.0',626 'version' => '0.2.1.0', 627 627 'path' => $baseDir . '/includes/Experiments/Abilities_Explorer/Ability_Handler.php' 628 628 ), 629 629 'WordPress\\AI\\Experiments\\Abilities_Explorer\\Ability_Table' => array( 630 'version' => '0.2. 0.0',630 'version' => '0.2.1.0', 631 631 'path' => $baseDir . '/includes/Experiments/Abilities_Explorer/Ability_Table.php' 632 632 ), 633 633 'WordPress\\AI\\Experiments\\Abilities_Explorer\\Admin_Page' => array( 634 'version' => '0.2. 0.0',634 'version' => '0.2.1.0', 635 635 'path' => $baseDir . '/includes/Experiments/Abilities_Explorer/Admin_Page.php' 636 636 ), 637 637 'WordPress\\AI\\Experiments\\Example_Experiment\\Example_Experiment' => array( 638 'version' => '0.2. 0.0',638 'version' => '0.2.1.0', 639 639 'path' => $baseDir . '/includes/Experiments/Example_Experiment/Example_Experiment.php' 640 640 ), 641 641 'WordPress\\AI\\Experiments\\Excerpt_Generation\\Excerpt_Generation' => array( 642 'version' => '0.2. 0.0',642 'version' => '0.2.1.0', 643 643 'path' => $baseDir . '/includes/Experiments/Excerpt_Generation/Excerpt_Generation.php' 644 644 ), 645 645 'WordPress\\AI\\Experiments\\Image_Generation\\Image_Generation' => array( 646 'version' => '0.2. 0.0',646 'version' => '0.2.1.0', 647 647 'path' => $baseDir . '/includes/Experiments/Image_Generation/Image_Generation.php' 648 648 ), 649 649 'WordPress\\AI\\Experiments\\Summarization\\Summarization' => array( 650 'version' => '0.2. 0.0',650 'version' => '0.2.1.0', 651 651 'path' => $baseDir . '/includes/Experiments/Summarization/Summarization.php' 652 652 ), 653 653 'WordPress\\AI\\Experiments\\Title_Generation\\Title_Generation' => array( 654 'version' => '0.2. 0.0',654 'version' => '0.2.1.0', 655 655 'path' => $baseDir . '/includes/Experiments/Title_Generation/Title_Generation.php' 656 656 ), 657 'WordPress\\AI\\Services\\AI_Service' => array( 658 'version' => '0.2.1.0', 659 'path' => $baseDir . '/includes/Services/AI_Service.php' 660 ), 657 661 'WordPress\\AI\\Settings\\Settings_Page' => array( 658 'version' => '0.2. 0.0',662 'version' => '0.2.1.0', 659 663 'path' => $baseDir . '/includes/Settings/Settings_Page.php' 660 664 ), 661 665 'WordPress\\AI\\Settings\\Settings_Registration' => array( 662 'version' => '0.2. 0.0',666 'version' => '0.2.1.0', 663 667 'path' => $baseDir . '/includes/Settings/Settings_Registration.php' 664 668 ), 665 669 'WordPress\\AI\\Tests\\Integration\\Experiments\\Abilities_Explorer\\Abilities_ExplorerTest' => array( 666 'version' => '0.2. 0.0',670 'version' => '0.2.1.0', 667 671 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Abilities_Explorer/Abilities_ExplorerTest.php' 668 672 ), 669 673 'WordPress\\AI\\Tests\\Integration\\Experiments\\Abilities_Explorer\\Ability_HandlerTest' => array( 670 'version' => '0.2. 0.0',674 'version' => '0.2.1.0', 671 675 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Abilities_Explorer/Ability_HandlerTest.php' 672 676 ), 673 677 'WordPress\\AI\\Tests\\Integration\\Experiments\\Abilities_Explorer\\Admin_PageTest' => array( 674 'version' => '0.2. 0.0',678 'version' => '0.2.1.0', 675 679 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Abilities_Explorer/Admin_PageTest.php' 676 680 ), 677 681 'WordPress\\AI\\Tests\\Integration\\Experiments\\Example_Experiment\\Example_ExperimentTest' => array( 678 'version' => '0.2. 0.0',682 'version' => '0.2.1.0', 679 683 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Example_Experiment/Example_ExperimentTest.php' 680 684 ), 681 685 'WordPress\\AI\\Tests\\Integration\\Experiments\\Image_Generation\\Image_GenerationTest' => array( 682 'version' => '0.2. 0.0',686 'version' => '0.2.1.0', 683 687 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Image_Generation/Image_GenerationTest.php' 684 688 ), 685 689 'WordPress\\AI\\Tests\\Integration\\Experiments\\Summarization\\SummarizationTest' => array( 686 'version' => '0.2. 0.0',690 'version' => '0.2.1.0', 687 691 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Summarization/SummarizationTest.php' 688 692 ), 689 693 'WordPress\\AI\\Tests\\Integration\\Experiments\\Title_Generation\\Title_GenerationTest' => array( 690 'version' => '0.2. 0.0',694 'version' => '0.2.1.0', 691 695 'path' => $baseDir . '/tests/Integration/Includes/Experiments/Title_Generation/Title_GenerationTest.php' 692 696 ), 693 697 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Excerpt_GenerationTest' => array( 694 'version' => '0.2. 0.0',698 'version' => '0.2.1.0', 695 699 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Excerpt_GenerationTest.php' 696 700 ), 697 701 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Image_GenerationTest' => array( 698 'version' => '0.2. 0.0',702 'version' => '0.2.1.0', 699 703 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Image_GenerationTest.php' 700 704 ), 701 705 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Image_ImportTest' => array( 702 'version' => '0.2. 0.0',706 'version' => '0.2.1.0', 703 707 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Image_ImportTest.php' 704 708 ), 705 709 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\SummarizationTest' => array( 706 'version' => '0.2. 0.0',710 'version' => '0.2.1.0', 707 711 'path' => $baseDir . '/tests/Integration/Includes/Abilities/SummarizationTest.php' 708 712 ), 709 713 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Excerpt_Generation_Experiment' => array( 710 'version' => '0.2. 0.0',714 'version' => '0.2.1.0', 711 715 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Excerpt_GenerationTest.php' 712 716 ), 713 717 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Image_Generation_Experiment' => array( 714 'version' => '0.2. 0.0',718 'version' => '0.2.1.0', 715 719 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Image_GenerationTest.php' 716 720 ), 717 721 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Image_Import_Experiment' => array( 718 'version' => '0.2. 0.0',722 'version' => '0.2.1.0', 719 723 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Image_ImportTest.php' 720 724 ), 721 725 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Summarization_Experiment' => array( 722 'version' => '0.2. 0.0',726 'version' => '0.2.1.0', 723 727 'path' => $baseDir . '/tests/Integration/Includes/Abilities/SummarizationTest.php' 724 728 ), 725 729 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Title_Generation_Experiment' => array( 726 'version' => '0.2. 0.0',730 'version' => '0.2.1.0', 727 731 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Title_GenerationTest.php' 728 732 ), 729 733 'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Title_GenerationTest' => array( 730 'version' => '0.2. 0.0',734 'version' => '0.2.1.0', 731 735 'path' => $baseDir . '/tests/Integration/Includes/Abilities/Title_GenerationTest.php' 732 736 ), 733 737 'WordPress\\AI\\Tests\\Integration\\Includes\\Abstracts\\Abstract_AbilityTest' => array( 734 'version' => '0.2. 0.0',738 'version' => '0.2.1.0', 735 739 'path' => $baseDir . '/tests/Integration/Includes/Abstracts/Abstract_AbilityTest.php' 736 740 ), 737 741 'WordPress\\AI\\Tests\\Integration\\Includes\\Abstracts\\Test_Ability' => array( 738 'version' => '0.2. 0.0',742 'version' => '0.2.1.0', 739 743 'path' => $baseDir . '/tests/Integration/Includes/Abstracts/Abstract_AbilityTest.php' 740 744 ), 741 745 'WordPress\\AI\\Tests\\Integration\\Includes\\Abstracts\\Test_Ability_Experiment' => array( 742 'version' => '0.2. 0.0',746 'version' => '0.2.1.0', 743 747 'path' => $baseDir . '/tests/Integration/Includes/Abstracts/Abstract_AbilityTest.php' 744 748 ), 745 749 'WordPress\\AI\\Tests\\Integration\\Includes\\Experiment_LoaderTest' => array( 746 'version' => '0.2. 0.0',750 'version' => '0.2.1.0', 747 751 'path' => $baseDir . '/tests/Integration/Includes/Experiment_LoaderTest.php' 748 752 ), 749 753 'WordPress\\AI\\Tests\\Integration\\Includes\\Experiment_Registry_Test' => array( 750 'version' => '0.2. 0.0',754 'version' => '0.2.1.0', 751 755 'path' => $baseDir . '/tests/Integration/Includes/Experiment_RegistryTest.php' 752 756 ), 753 757 'WordPress\\AI\\Tests\\Integration\\Includes\\HelpersTest' => array( 754 'version' => '0.2. 0.0',758 'version' => '0.2.1.0', 755 759 'path' => $baseDir . '/tests/Integration/Includes/HelpersTest.php' 756 760 ), 757 761 'WordPress\\AI\\Tests\\Integration\\Includes\\Mock_Experiment' => array( 758 'version' => '0.2. 0.0',762 'version' => '0.2.1.0', 759 763 'path' => $baseDir . '/tests/Integration/Includes/Experiment_LoaderTest.php' 760 764 ), 765 'WordPress\\AI\\Tests\\Integration\\Includes\\Services\\AI_Service_Test' => array( 766 'version' => '0.2.1.0', 767 'path' => $baseDir . '/tests/Integration/Includes/Services/AI_ServiceTest.php' 768 ), 761 769 'WordPress\\AI\\Tests\\Integration\\Includes\\Test_Experiment' => array( 762 'version' => '0.2. 0.0',770 'version' => '0.2.1.0', 763 771 'path' => $baseDir . '/tests/Integration/Includes/Experiment_RegistryTest.php' 764 772 ), -
ai/trunk/vendor/composer/jetpack_autoload_filemap.php
r3443635 r3447323 12 12 ), 13 13 '901a0fcb8c5137115199739c3d628fd4' => array( 14 'version' => '0.2. 0.0',14 'version' => '0.2.1.0', 15 15 'path' => $baseDir . '/includes/helpers.php' 16 16 ),
Note: See TracChangeset
for help on using the changeset viewer.