Plugin Directory

Changeset 3447323


Ignore:
Timestamp:
01/26/2026 07:25:02 PM (5 days ago)
Author:
JeffPaul
Message:

Update to version 0.2.1 from GitHub

Location:
ai
Files:
4 added
26 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ai/tags/0.2.1/ai.php

    r3443635 r3447323  
    1212 * Plugin URI:        https://github.com/WordPress/ai
    1313 * Description:       AI experiments and capabilities for WordPress.
    14  * Version:           0.2.0
     14 * Version:           0.2.1
    1515 * Requires at least: 6.9
    1616 * Requires PHP:      7.4
  • ai/tags/0.2.1/includes/Abilities/Excerpt_Generation/Excerpt_Generation.php

    r3443635 r3447323  
    1515
    1616use function WordPress\AI\get_post_context;
    17 use function WordPress\AI\get_preferred_models;
     17use function WordPress\AI\get_preferred_models_for_text_generation;
    1818use function WordPress\AI\normalize_content;
    1919
     
    149149            }
    150150
    151             // Ensure the user has permission to read this 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 ) ) {
    153153                return new WP_Error(
    154154                    'insufficient_capabilities',
     
    230230            ->using_system_instruction( $this->get_system_instruction() )
    231231            ->using_temperature( 0.7 )
    232             ->using_model_preference( ...get_preferred_models() )
     232            ->using_model_preference( ...get_preferred_models_for_text_generation() )
    233233            ->generate_text();
    234234    }
  • ai/tags/0.2.1/includes/Abilities/Summarization/Summarization.php

    r3443635 r3447323  
    1515
    1616use function WordPress\AI\get_post_context;
    17 use function WordPress\AI\get_preferred_models;
     17use function WordPress\AI\get_preferred_models_for_text_generation;
    1818use function WordPress\AI\normalize_content;
    1919
     
    165165            }
    166166
    167             // Ensure the user has permission to read this 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 ) ) {
    169169                return new WP_Error(
    170170                    'insufficient_capabilities',
     
    247247            ->using_system_instruction( $this->get_system_instruction( 'system-instruction.php', array( 'length' => $length ) ) )
    248248            ->using_temperature( 0.9 )
    249             ->using_model_preference( ...get_preferred_models() )
     249            ->using_model_preference( ...get_preferred_models_for_text_generation() )
    250250            ->generate_text();
    251251    }
  • ai/tags/0.2.1/includes/Abilities/Title_Generation/Title_Generation.php

    r3407614 r3447323  
    1515
    1616use function WordPress\AI\get_post_context;
    17 use function WordPress\AI\get_preferred_models;
     17use function WordPress\AI\get_preferred_models_for_text_generation;
    1818use function WordPress\AI\normalize_content;
    1919
     
    110110        // If a post ID is provided, ensure the post exists before using its' content.
    111111        if ( $args['post_id'] ) {
    112             $post = get_post( $args['post_id'] );
     112            $post = get_post( (int) $args['post_id'] );
    113113
    114114            if ( ! $post ) {
     
    121121
    122122            // Get the post context.
    123             $context = get_post_context( $args['post_id'] );
     123            $context = get_post_context( (int) $args['post_id'] );
    124124
    125125            // Default to the passed in content if it exists.
     
    191191            }
    192192
    193             // Ensure the user has permission to read this 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 ) ) {
    195195                return new WP_Error(
    196196                    'insufficient_capabilities',
     
    268268            ->using_temperature( 0.7 )
    269269            ->using_candidate_count( (int) $candidates )
    270             ->using_model_preference( ...get_preferred_models() )
     270            ->using_model_preference( ...get_preferred_models_for_text_generation() )
    271271            ->generate_texts();
    272272    }
  • ai/tags/0.2.1/includes/Abilities/Utilities/Posts.php

    r3443635 r3447323  
    327327        }
    328328
    329         // Return true if the user has permission to read the 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 );
    331331    }
    332332
  • ai/tags/0.2.1/includes/bootstrap.php

    r3443635 r3447323  
    2424// Define plugin constants.
    2525if ( ! defined( 'AI_EXPERIMENTS_VERSION' ) ) {
    26     define( 'AI_EXPERIMENTS_VERSION', '0.2.0' );
     26    define( 'AI_EXPERIMENTS_VERSION', '0.2.1' );
    2727}
    2828if ( ! defined( 'AI_EXPERIMENTS_PLUGIN_FILE' ) ) {
  • ai/tags/0.2.1/includes/helpers.php

    r3443635 r3447323  
    1111
    1212use Throwable;
     13use WordPress\AI\Services\AI_Service;
    1314use WordPress\AI_Client\AI_Client;
    1415
     
    4647
    4748    // 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;
    4950
    5051    // 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;
    5253
    5354    // Strip all HTML tags.
     
    5556
    5657    // Remove unrendered shortcode tags.
    57     $content = preg_replace( '#\[.+\](.+)\[/.+\]#', '$1', $content );
     58    $content = preg_replace( '#\[.+\](.+)\[/.+\]#', '$1', $content ) ?? $content;
    5859
    5960    /**
     
    131132
    132133/**
    133  * Returns the preferred models.
    134  *
    135  * @since 0.1.0
    136  *
    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 */
     140function get_preferred_models_for_text_generation(): array {
    140141    $preferred_models = array(
    141142        array(
     
    158159
    159160    /**
    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.
    165167     * @return array<int, array{string, string}> The filtered preferred models.
    166168     */
    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 */
     204function get_ai_service(): AI_Service {
     205    return AI_Service::get_instance();
    168206}
    169207
  • ai/tags/0.2.1/readme.txt

    r3443635 r3447323  
    33Tags:              ai, artificial intelligence, experiments, abilities, mcp
    44Tested up to:      6.9
    5 Stable tag:        0.2.0
     5Stable tag:        0.2.1
    66License:           GPL-2.0-or-later
    77License URI:       https://spdx.org/licenses/GPL-2.0-or-later.html
     
    6565* **Override Default Behavior** - Use filters to customize prompts, responses, and UI elements
    6666* **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)
    6768
    6869**Developer Tools Coming Soon:**
    6970
    70 * **Abilities Explorer** - Test and explore registered AI abilities (available when experiments are enabled)
    7171* **MCP Demo** - See how Model Context Protocol integration works with WordPress
    7272* **Comprehensive Hooks** - Filters and actions throughout the codebase for customization
     
    119119== Changelog ==
    120120
     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
    121131= 0.2.0 – 2026-01-20 =
    122132
  • ai/tags/0.2.1/vendor/composer/autoload_classmap.php

    r3443635 r3447323  
    155155    'WordPress\\AI\\Experiments\\Summarization\\Summarization' => $baseDir . '/includes/Experiments/Summarization/Summarization.php',
    156156    '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',
    157158    'WordPress\\AI\\Settings\\Settings_Page' => $baseDir . '/includes/Settings/Settings_Page.php',
    158159    'WordPress\\AI\\Settings\\Settings_Registration' => $baseDir . '/includes/Settings/Settings_Registration.php',
  • ai/tags/0.2.1/vendor/composer/autoload_static.php

    r3443635 r3447323  
    243243        'WordPress\\AI\\Experiments\\Summarization\\Summarization' => __DIR__ . '/../..' . '/includes/Experiments/Summarization/Summarization.php',
    244244        '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',
    245246        'WordPress\\AI\\Settings\\Settings_Page' => __DIR__ . '/../..' . '/includes/Settings/Settings_Page.php',
    246247        'WordPress\\AI\\Settings\\Settings_Registration' => __DIR__ . '/../..' . '/includes/Settings/Settings_Registration.php',
  • ai/tags/0.2.1/vendor/composer/installed.php

    r3443635 r3447323  
    22    'root' => array(
    33        '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',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    131131        ),
    132132        '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',
    136136            'type' => 'wordpress-plugin',
    137137            'install_path' => __DIR__ . '/../../',
  • ai/tags/0.2.1/vendor/composer/jetpack_autoload_classmap.php

    r3443635 r3447323  
    564564    ),
    565565    'WordPress\\AI\\Abilities\\Excerpt_Generation\\Excerpt_Generation' => array(
    566         'version' => '0.2.0.0',
     566        'version' => '0.2.1.0',
    567567        'path'    => $baseDir . '/includes/Abilities/Excerpt_Generation/Excerpt_Generation.php'
    568568    ),
    569569    'WordPress\\AI\\Abilities\\Image\\Generate_Image' => array(
    570         'version' => '0.2.0.0',
     570        'version' => '0.2.1.0',
    571571        'path'    => $baseDir . '/includes/Abilities/Image/Generate_Image.php'
    572572    ),
    573573    'WordPress\\AI\\Abilities\\Image\\Import_Base64_Image' => array(
    574         'version' => '0.2.0.0',
     574        'version' => '0.2.1.0',
    575575        'path'    => $baseDir . '/includes/Abilities/Image/Import_Base64_Image.php'
    576576    ),
    577577    'WordPress\\AI\\Abilities\\Summarization\\Summarization' => array(
    578         'version' => '0.2.0.0',
     578        'version' => '0.2.1.0',
    579579        'path'    => $baseDir . '/includes/Abilities/Summarization/Summarization.php'
    580580    ),
    581581    'WordPress\\AI\\Abilities\\Title_Generation\\Title_Generation' => array(
    582         'version' => '0.2.0.0',
     582        'version' => '0.2.1.0',
    583583        'path'    => $baseDir . '/includes/Abilities/Title_Generation/Title_Generation.php'
    584584    ),
    585585    'WordPress\\AI\\Abilities\\Utilities\\Posts' => array(
    586         'version' => '0.2.0.0',
     586        'version' => '0.2.1.0',
    587587        'path'    => $baseDir . '/includes/Abilities/Utilities/Posts.php'
    588588    ),
    589589    'WordPress\\AI\\Abstracts\\Abstract_Ability' => array(
    590         'version' => '0.2.0.0',
     590        'version' => '0.2.1.0',
    591591        'path'    => $baseDir . '/includes/Abstracts/Abstract_Ability.php'
    592592    ),
    593593    'WordPress\\AI\\Abstracts\\Abstract_Experiment' => array(
    594         'version' => '0.2.0.0',
     594        'version' => '0.2.1.0',
    595595        'path'    => $baseDir . '/includes/Abstracts/Abstract_Experiment.php'
    596596    ),
    597597    'WordPress\\AI\\Asset_Loader' => array(
    598         'version' => '0.2.0.0',
     598        'version' => '0.2.1.0',
    599599        'path'    => $baseDir . '/includes/Asset_Loader.php'
    600600    ),
    601601    'WordPress\\AI\\Contracts\\Experiment' => array(
    602         'version' => '0.2.0.0',
     602        'version' => '0.2.1.0',
    603603        'path'    => $baseDir . '/includes/Contracts/Experiment.php'
    604604    ),
    605605    'WordPress\\AI\\Exception\\Invalid_Experiment_Exception' => array(
    606         'version' => '0.2.0.0',
     606        'version' => '0.2.1.0',
    607607        'path'    => $baseDir . '/includes/Exception/Invalid_Experiment_Exception.php'
    608608    ),
    609609    'WordPress\\AI\\Exception\\Invalid_Experiment_Metadata_Exception' => array(
    610         'version' => '0.2.0.0',
     610        'version' => '0.2.1.0',
    611611        'path'    => $baseDir . '/includes/Exception/Invalid_Experiment_Metadata_Exception.php'
    612612    ),
    613613    'WordPress\\AI\\Experiment_Loader' => array(
    614         'version' => '0.2.0.0',
     614        'version' => '0.2.1.0',
    615615        'path'    => $baseDir . '/includes/Experiment_Loader.php'
    616616    ),
    617617    'WordPress\\AI\\Experiment_Registry' => array(
    618         'version' => '0.2.0.0',
     618        'version' => '0.2.1.0',
    619619        'path'    => $baseDir . '/includes/Experiment_Registry.php'
    620620    ),
    621621    'WordPress\\AI\\Experiments\\Abilities_Explorer\\Abilities_Explorer' => array(
    622         'version' => '0.2.0.0',
     622        'version' => '0.2.1.0',
    623623        'path'    => $baseDir . '/includes/Experiments/Abilities_Explorer/Abilities_Explorer.php'
    624624    ),
    625625    'WordPress\\AI\\Experiments\\Abilities_Explorer\\Ability_Handler' => array(
    626         'version' => '0.2.0.0',
     626        'version' => '0.2.1.0',
    627627        'path'    => $baseDir . '/includes/Experiments/Abilities_Explorer/Ability_Handler.php'
    628628    ),
    629629    'WordPress\\AI\\Experiments\\Abilities_Explorer\\Ability_Table' => array(
    630         'version' => '0.2.0.0',
     630        'version' => '0.2.1.0',
    631631        'path'    => $baseDir . '/includes/Experiments/Abilities_Explorer/Ability_Table.php'
    632632    ),
    633633    'WordPress\\AI\\Experiments\\Abilities_Explorer\\Admin_Page' => array(
    634         'version' => '0.2.0.0',
     634        'version' => '0.2.1.0',
    635635        'path'    => $baseDir . '/includes/Experiments/Abilities_Explorer/Admin_Page.php'
    636636    ),
    637637    'WordPress\\AI\\Experiments\\Example_Experiment\\Example_Experiment' => array(
    638         'version' => '0.2.0.0',
     638        'version' => '0.2.1.0',
    639639        'path'    => $baseDir . '/includes/Experiments/Example_Experiment/Example_Experiment.php'
    640640    ),
    641641    'WordPress\\AI\\Experiments\\Excerpt_Generation\\Excerpt_Generation' => array(
    642         'version' => '0.2.0.0',
     642        'version' => '0.2.1.0',
    643643        'path'    => $baseDir . '/includes/Experiments/Excerpt_Generation/Excerpt_Generation.php'
    644644    ),
    645645    'WordPress\\AI\\Experiments\\Image_Generation\\Image_Generation' => array(
    646         'version' => '0.2.0.0',
     646        'version' => '0.2.1.0',
    647647        'path'    => $baseDir . '/includes/Experiments/Image_Generation/Image_Generation.php'
    648648    ),
    649649    'WordPress\\AI\\Experiments\\Summarization\\Summarization' => array(
    650         'version' => '0.2.0.0',
     650        'version' => '0.2.1.0',
    651651        'path'    => $baseDir . '/includes/Experiments/Summarization/Summarization.php'
    652652    ),
    653653    'WordPress\\AI\\Experiments\\Title_Generation\\Title_Generation' => array(
    654         'version' => '0.2.0.0',
     654        'version' => '0.2.1.0',
    655655        'path'    => $baseDir . '/includes/Experiments/Title_Generation/Title_Generation.php'
    656656    ),
     657    'WordPress\\AI\\Services\\AI_Service' => array(
     658        'version' => '0.2.1.0',
     659        'path'    => $baseDir . '/includes/Services/AI_Service.php'
     660    ),
    657661    'WordPress\\AI\\Settings\\Settings_Page' => array(
    658         'version' => '0.2.0.0',
     662        'version' => '0.2.1.0',
    659663        'path'    => $baseDir . '/includes/Settings/Settings_Page.php'
    660664    ),
    661665    'WordPress\\AI\\Settings\\Settings_Registration' => array(
    662         'version' => '0.2.0.0',
     666        'version' => '0.2.1.0',
    663667        'path'    => $baseDir . '/includes/Settings/Settings_Registration.php'
    664668    ),
    665669    'WordPress\\AI\\Tests\\Integration\\Experiments\\Abilities_Explorer\\Abilities_ExplorerTest' => array(
    666         'version' => '0.2.0.0',
     670        'version' => '0.2.1.0',
    667671        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Abilities_Explorer/Abilities_ExplorerTest.php'
    668672    ),
    669673    'WordPress\\AI\\Tests\\Integration\\Experiments\\Abilities_Explorer\\Ability_HandlerTest' => array(
    670         'version' => '0.2.0.0',
     674        'version' => '0.2.1.0',
    671675        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Abilities_Explorer/Ability_HandlerTest.php'
    672676    ),
    673677    'WordPress\\AI\\Tests\\Integration\\Experiments\\Abilities_Explorer\\Admin_PageTest' => array(
    674         'version' => '0.2.0.0',
     678        'version' => '0.2.1.0',
    675679        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Abilities_Explorer/Admin_PageTest.php'
    676680    ),
    677681    'WordPress\\AI\\Tests\\Integration\\Experiments\\Example_Experiment\\Example_ExperimentTest' => array(
    678         'version' => '0.2.0.0',
     682        'version' => '0.2.1.0',
    679683        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Example_Experiment/Example_ExperimentTest.php'
    680684    ),
    681685    'WordPress\\AI\\Tests\\Integration\\Experiments\\Image_Generation\\Image_GenerationTest' => array(
    682         'version' => '0.2.0.0',
     686        'version' => '0.2.1.0',
    683687        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Image_Generation/Image_GenerationTest.php'
    684688    ),
    685689    'WordPress\\AI\\Tests\\Integration\\Experiments\\Summarization\\SummarizationTest' => array(
    686         'version' => '0.2.0.0',
     690        'version' => '0.2.1.0',
    687691        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Summarization/SummarizationTest.php'
    688692    ),
    689693    'WordPress\\AI\\Tests\\Integration\\Experiments\\Title_Generation\\Title_GenerationTest' => array(
    690         'version' => '0.2.0.0',
     694        'version' => '0.2.1.0',
    691695        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Title_Generation/Title_GenerationTest.php'
    692696    ),
    693697    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Excerpt_GenerationTest' => array(
    694         'version' => '0.2.0.0',
     698        'version' => '0.2.1.0',
    695699        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Excerpt_GenerationTest.php'
    696700    ),
    697701    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Image_GenerationTest' => array(
    698         'version' => '0.2.0.0',
     702        'version' => '0.2.1.0',
    699703        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Image_GenerationTest.php'
    700704    ),
    701705    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Image_ImportTest' => array(
    702         'version' => '0.2.0.0',
     706        'version' => '0.2.1.0',
    703707        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Image_ImportTest.php'
    704708    ),
    705709    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\SummarizationTest' => array(
    706         'version' => '0.2.0.0',
     710        'version' => '0.2.1.0',
    707711        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/SummarizationTest.php'
    708712    ),
    709713    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Excerpt_Generation_Experiment' => array(
    710         'version' => '0.2.0.0',
     714        'version' => '0.2.1.0',
    711715        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Excerpt_GenerationTest.php'
    712716    ),
    713717    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Image_Generation_Experiment' => array(
    714         'version' => '0.2.0.0',
     718        'version' => '0.2.1.0',
    715719        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Image_GenerationTest.php'
    716720    ),
    717721    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Image_Import_Experiment' => array(
    718         'version' => '0.2.0.0',
     722        'version' => '0.2.1.0',
    719723        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Image_ImportTest.php'
    720724    ),
    721725    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Summarization_Experiment' => array(
    722         'version' => '0.2.0.0',
     726        'version' => '0.2.1.0',
    723727        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/SummarizationTest.php'
    724728    ),
    725729    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Title_Generation_Experiment' => array(
    726         'version' => '0.2.0.0',
     730        'version' => '0.2.1.0',
    727731        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Title_GenerationTest.php'
    728732    ),
    729733    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Title_GenerationTest' => array(
    730         'version' => '0.2.0.0',
     734        'version' => '0.2.1.0',
    731735        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Title_GenerationTest.php'
    732736    ),
    733737    'WordPress\\AI\\Tests\\Integration\\Includes\\Abstracts\\Abstract_AbilityTest' => array(
    734         'version' => '0.2.0.0',
     738        'version' => '0.2.1.0',
    735739        'path'    => $baseDir . '/tests/Integration/Includes/Abstracts/Abstract_AbilityTest.php'
    736740    ),
    737741    'WordPress\\AI\\Tests\\Integration\\Includes\\Abstracts\\Test_Ability' => array(
    738         'version' => '0.2.0.0',
     742        'version' => '0.2.1.0',
    739743        'path'    => $baseDir . '/tests/Integration/Includes/Abstracts/Abstract_AbilityTest.php'
    740744    ),
    741745    'WordPress\\AI\\Tests\\Integration\\Includes\\Abstracts\\Test_Ability_Experiment' => array(
    742         'version' => '0.2.0.0',
     746        'version' => '0.2.1.0',
    743747        'path'    => $baseDir . '/tests/Integration/Includes/Abstracts/Abstract_AbilityTest.php'
    744748    ),
    745749    'WordPress\\AI\\Tests\\Integration\\Includes\\Experiment_LoaderTest' => array(
    746         'version' => '0.2.0.0',
     750        'version' => '0.2.1.0',
    747751        'path'    => $baseDir . '/tests/Integration/Includes/Experiment_LoaderTest.php'
    748752    ),
    749753    'WordPress\\AI\\Tests\\Integration\\Includes\\Experiment_Registry_Test' => array(
    750         'version' => '0.2.0.0',
     754        'version' => '0.2.1.0',
    751755        'path'    => $baseDir . '/tests/Integration/Includes/Experiment_RegistryTest.php'
    752756    ),
    753757    'WordPress\\AI\\Tests\\Integration\\Includes\\HelpersTest' => array(
    754         'version' => '0.2.0.0',
     758        'version' => '0.2.1.0',
    755759        'path'    => $baseDir . '/tests/Integration/Includes/HelpersTest.php'
    756760    ),
    757761    'WordPress\\AI\\Tests\\Integration\\Includes\\Mock_Experiment' => array(
    758         'version' => '0.2.0.0',
     762        'version' => '0.2.1.0',
    759763        'path'    => $baseDir . '/tests/Integration/Includes/Experiment_LoaderTest.php'
    760764    ),
     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    ),
    761769    'WordPress\\AI\\Tests\\Integration\\Includes\\Test_Experiment' => array(
    762         'version' => '0.2.0.0',
     770        'version' => '0.2.1.0',
    763771        'path'    => $baseDir . '/tests/Integration/Includes/Experiment_RegistryTest.php'
    764772    ),
  • ai/tags/0.2.1/vendor/composer/jetpack_autoload_filemap.php

    r3443635 r3447323  
    1212    ),
    1313    '901a0fcb8c5137115199739c3d628fd4' => array(
    14         'version' => '0.2.0.0',
     14        'version' => '0.2.1.0',
    1515        'path'    => $baseDir . '/includes/helpers.php'
    1616    ),
  • ai/trunk/ai.php

    r3443635 r3447323  
    1212 * Plugin URI:        https://github.com/WordPress/ai
    1313 * Description:       AI experiments and capabilities for WordPress.
    14  * Version:           0.2.0
     14 * Version:           0.2.1
    1515 * Requires at least: 6.9
    1616 * Requires PHP:      7.4
  • ai/trunk/includes/Abilities/Excerpt_Generation/Excerpt_Generation.php

    r3443635 r3447323  
    1515
    1616use function WordPress\AI\get_post_context;
    17 use function WordPress\AI\get_preferred_models;
     17use function WordPress\AI\get_preferred_models_for_text_generation;
    1818use function WordPress\AI\normalize_content;
    1919
     
    149149            }
    150150
    151             // Ensure the user has permission to read this 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 ) ) {
    153153                return new WP_Error(
    154154                    'insufficient_capabilities',
     
    230230            ->using_system_instruction( $this->get_system_instruction() )
    231231            ->using_temperature( 0.7 )
    232             ->using_model_preference( ...get_preferred_models() )
     232            ->using_model_preference( ...get_preferred_models_for_text_generation() )
    233233            ->generate_text();
    234234    }
  • ai/trunk/includes/Abilities/Summarization/Summarization.php

    r3443635 r3447323  
    1515
    1616use function WordPress\AI\get_post_context;
    17 use function WordPress\AI\get_preferred_models;
     17use function WordPress\AI\get_preferred_models_for_text_generation;
    1818use function WordPress\AI\normalize_content;
    1919
     
    165165            }
    166166
    167             // Ensure the user has permission to read this 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 ) ) {
    169169                return new WP_Error(
    170170                    'insufficient_capabilities',
     
    247247            ->using_system_instruction( $this->get_system_instruction( 'system-instruction.php', array( 'length' => $length ) ) )
    248248            ->using_temperature( 0.9 )
    249             ->using_model_preference( ...get_preferred_models() )
     249            ->using_model_preference( ...get_preferred_models_for_text_generation() )
    250250            ->generate_text();
    251251    }
  • ai/trunk/includes/Abilities/Title_Generation/Title_Generation.php

    r3407614 r3447323  
    1515
    1616use function WordPress\AI\get_post_context;
    17 use function WordPress\AI\get_preferred_models;
     17use function WordPress\AI\get_preferred_models_for_text_generation;
    1818use function WordPress\AI\normalize_content;
    1919
     
    110110        // If a post ID is provided, ensure the post exists before using its' content.
    111111        if ( $args['post_id'] ) {
    112             $post = get_post( $args['post_id'] );
     112            $post = get_post( (int) $args['post_id'] );
    113113
    114114            if ( ! $post ) {
     
    121121
    122122            // Get the post context.
    123             $context = get_post_context( $args['post_id'] );
     123            $context = get_post_context( (int) $args['post_id'] );
    124124
    125125            // Default to the passed in content if it exists.
     
    191191            }
    192192
    193             // Ensure the user has permission to read this 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 ) ) {
    195195                return new WP_Error(
    196196                    'insufficient_capabilities',
     
    268268            ->using_temperature( 0.7 )
    269269            ->using_candidate_count( (int) $candidates )
    270             ->using_model_preference( ...get_preferred_models() )
     270            ->using_model_preference( ...get_preferred_models_for_text_generation() )
    271271            ->generate_texts();
    272272    }
  • ai/trunk/includes/Abilities/Utilities/Posts.php

    r3443635 r3447323  
    327327        }
    328328
    329         // Return true if the user has permission to read the 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 );
    331331    }
    332332
  • ai/trunk/includes/bootstrap.php

    r3443635 r3447323  
    2424// Define plugin constants.
    2525if ( ! defined( 'AI_EXPERIMENTS_VERSION' ) ) {
    26     define( 'AI_EXPERIMENTS_VERSION', '0.2.0' );
     26    define( 'AI_EXPERIMENTS_VERSION', '0.2.1' );
    2727}
    2828if ( ! defined( 'AI_EXPERIMENTS_PLUGIN_FILE' ) ) {
  • ai/trunk/includes/helpers.php

    r3443635 r3447323  
    1111
    1212use Throwable;
     13use WordPress\AI\Services\AI_Service;
    1314use WordPress\AI_Client\AI_Client;
    1415
     
    4647
    4748    // 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;
    4950
    5051    // 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;
    5253
    5354    // Strip all HTML tags.
     
    5556
    5657    // Remove unrendered shortcode tags.
    57     $content = preg_replace( '#\[.+\](.+)\[/.+\]#', '$1', $content );
     58    $content = preg_replace( '#\[.+\](.+)\[/.+\]#', '$1', $content ) ?? $content;
    5859
    5960    /**
     
    131132
    132133/**
    133  * Returns the preferred models.
    134  *
    135  * @since 0.1.0
    136  *
    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 */
     140function get_preferred_models_for_text_generation(): array {
    140141    $preferred_models = array(
    141142        array(
     
    158159
    159160    /**
    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.
    165167     * @return array<int, array{string, string}> The filtered preferred models.
    166168     */
    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 */
     204function get_ai_service(): AI_Service {
     205    return AI_Service::get_instance();
    168206}
    169207
  • ai/trunk/readme.txt

    r3443635 r3447323  
    33Tags:              ai, artificial intelligence, experiments, abilities, mcp
    44Tested up to:      6.9
    5 Stable tag:        0.2.0
     5Stable tag:        0.2.1
    66License:           GPL-2.0-or-later
    77License URI:       https://spdx.org/licenses/GPL-2.0-or-later.html
     
    6565* **Override Default Behavior** - Use filters to customize prompts, responses, and UI elements
    6666* **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)
    6768
    6869**Developer Tools Coming Soon:**
    6970
    70 * **Abilities Explorer** - Test and explore registered AI abilities (available when experiments are enabled)
    7171* **MCP Demo** - See how Model Context Protocol integration works with WordPress
    7272* **Comprehensive Hooks** - Filters and actions throughout the codebase for customization
     
    119119== Changelog ==
    120120
     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
    121131= 0.2.0 – 2026-01-20 =
    122132
  • ai/trunk/vendor/composer/autoload_classmap.php

    r3443635 r3447323  
    155155    'WordPress\\AI\\Experiments\\Summarization\\Summarization' => $baseDir . '/includes/Experiments/Summarization/Summarization.php',
    156156    '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',
    157158    'WordPress\\AI\\Settings\\Settings_Page' => $baseDir . '/includes/Settings/Settings_Page.php',
    158159    'WordPress\\AI\\Settings\\Settings_Registration' => $baseDir . '/includes/Settings/Settings_Registration.php',
  • ai/trunk/vendor/composer/autoload_static.php

    r3443635 r3447323  
    243243        'WordPress\\AI\\Experiments\\Summarization\\Summarization' => __DIR__ . '/../..' . '/includes/Experiments/Summarization/Summarization.php',
    244244        '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',
    245246        'WordPress\\AI\\Settings\\Settings_Page' => __DIR__ . '/../..' . '/includes/Settings/Settings_Page.php',
    246247        'WordPress\\AI\\Settings\\Settings_Registration' => __DIR__ . '/../..' . '/includes/Settings/Settings_Registration.php',
  • ai/trunk/vendor/composer/installed.php

    r3443635 r3447323  
    22    'root' => array(
    33        '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',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    131131        ),
    132132        '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',
    136136            'type' => 'wordpress-plugin',
    137137            'install_path' => __DIR__ . '/../../',
  • ai/trunk/vendor/composer/jetpack_autoload_classmap.php

    r3443635 r3447323  
    564564    ),
    565565    'WordPress\\AI\\Abilities\\Excerpt_Generation\\Excerpt_Generation' => array(
    566         'version' => '0.2.0.0',
     566        'version' => '0.2.1.0',
    567567        'path'    => $baseDir . '/includes/Abilities/Excerpt_Generation/Excerpt_Generation.php'
    568568    ),
    569569    'WordPress\\AI\\Abilities\\Image\\Generate_Image' => array(
    570         'version' => '0.2.0.0',
     570        'version' => '0.2.1.0',
    571571        'path'    => $baseDir . '/includes/Abilities/Image/Generate_Image.php'
    572572    ),
    573573    'WordPress\\AI\\Abilities\\Image\\Import_Base64_Image' => array(
    574         'version' => '0.2.0.0',
     574        'version' => '0.2.1.0',
    575575        'path'    => $baseDir . '/includes/Abilities/Image/Import_Base64_Image.php'
    576576    ),
    577577    'WordPress\\AI\\Abilities\\Summarization\\Summarization' => array(
    578         'version' => '0.2.0.0',
     578        'version' => '0.2.1.0',
    579579        'path'    => $baseDir . '/includes/Abilities/Summarization/Summarization.php'
    580580    ),
    581581    'WordPress\\AI\\Abilities\\Title_Generation\\Title_Generation' => array(
    582         'version' => '0.2.0.0',
     582        'version' => '0.2.1.0',
    583583        'path'    => $baseDir . '/includes/Abilities/Title_Generation/Title_Generation.php'
    584584    ),
    585585    'WordPress\\AI\\Abilities\\Utilities\\Posts' => array(
    586         'version' => '0.2.0.0',
     586        'version' => '0.2.1.0',
    587587        'path'    => $baseDir . '/includes/Abilities/Utilities/Posts.php'
    588588    ),
    589589    'WordPress\\AI\\Abstracts\\Abstract_Ability' => array(
    590         'version' => '0.2.0.0',
     590        'version' => '0.2.1.0',
    591591        'path'    => $baseDir . '/includes/Abstracts/Abstract_Ability.php'
    592592    ),
    593593    'WordPress\\AI\\Abstracts\\Abstract_Experiment' => array(
    594         'version' => '0.2.0.0',
     594        'version' => '0.2.1.0',
    595595        'path'    => $baseDir . '/includes/Abstracts/Abstract_Experiment.php'
    596596    ),
    597597    'WordPress\\AI\\Asset_Loader' => array(
    598         'version' => '0.2.0.0',
     598        'version' => '0.2.1.0',
    599599        'path'    => $baseDir . '/includes/Asset_Loader.php'
    600600    ),
    601601    'WordPress\\AI\\Contracts\\Experiment' => array(
    602         'version' => '0.2.0.0',
     602        'version' => '0.2.1.0',
    603603        'path'    => $baseDir . '/includes/Contracts/Experiment.php'
    604604    ),
    605605    'WordPress\\AI\\Exception\\Invalid_Experiment_Exception' => array(
    606         'version' => '0.2.0.0',
     606        'version' => '0.2.1.0',
    607607        'path'    => $baseDir . '/includes/Exception/Invalid_Experiment_Exception.php'
    608608    ),
    609609    'WordPress\\AI\\Exception\\Invalid_Experiment_Metadata_Exception' => array(
    610         'version' => '0.2.0.0',
     610        'version' => '0.2.1.0',
    611611        'path'    => $baseDir . '/includes/Exception/Invalid_Experiment_Metadata_Exception.php'
    612612    ),
    613613    'WordPress\\AI\\Experiment_Loader' => array(
    614         'version' => '0.2.0.0',
     614        'version' => '0.2.1.0',
    615615        'path'    => $baseDir . '/includes/Experiment_Loader.php'
    616616    ),
    617617    'WordPress\\AI\\Experiment_Registry' => array(
    618         'version' => '0.2.0.0',
     618        'version' => '0.2.1.0',
    619619        'path'    => $baseDir . '/includes/Experiment_Registry.php'
    620620    ),
    621621    'WordPress\\AI\\Experiments\\Abilities_Explorer\\Abilities_Explorer' => array(
    622         'version' => '0.2.0.0',
     622        'version' => '0.2.1.0',
    623623        'path'    => $baseDir . '/includes/Experiments/Abilities_Explorer/Abilities_Explorer.php'
    624624    ),
    625625    'WordPress\\AI\\Experiments\\Abilities_Explorer\\Ability_Handler' => array(
    626         'version' => '0.2.0.0',
     626        'version' => '0.2.1.0',
    627627        'path'    => $baseDir . '/includes/Experiments/Abilities_Explorer/Ability_Handler.php'
    628628    ),
    629629    'WordPress\\AI\\Experiments\\Abilities_Explorer\\Ability_Table' => array(
    630         'version' => '0.2.0.0',
     630        'version' => '0.2.1.0',
    631631        'path'    => $baseDir . '/includes/Experiments/Abilities_Explorer/Ability_Table.php'
    632632    ),
    633633    'WordPress\\AI\\Experiments\\Abilities_Explorer\\Admin_Page' => array(
    634         'version' => '0.2.0.0',
     634        'version' => '0.2.1.0',
    635635        'path'    => $baseDir . '/includes/Experiments/Abilities_Explorer/Admin_Page.php'
    636636    ),
    637637    'WordPress\\AI\\Experiments\\Example_Experiment\\Example_Experiment' => array(
    638         'version' => '0.2.0.0',
     638        'version' => '0.2.1.0',
    639639        'path'    => $baseDir . '/includes/Experiments/Example_Experiment/Example_Experiment.php'
    640640    ),
    641641    'WordPress\\AI\\Experiments\\Excerpt_Generation\\Excerpt_Generation' => array(
    642         'version' => '0.2.0.0',
     642        'version' => '0.2.1.0',
    643643        'path'    => $baseDir . '/includes/Experiments/Excerpt_Generation/Excerpt_Generation.php'
    644644    ),
    645645    'WordPress\\AI\\Experiments\\Image_Generation\\Image_Generation' => array(
    646         'version' => '0.2.0.0',
     646        'version' => '0.2.1.0',
    647647        'path'    => $baseDir . '/includes/Experiments/Image_Generation/Image_Generation.php'
    648648    ),
    649649    'WordPress\\AI\\Experiments\\Summarization\\Summarization' => array(
    650         'version' => '0.2.0.0',
     650        'version' => '0.2.1.0',
    651651        'path'    => $baseDir . '/includes/Experiments/Summarization/Summarization.php'
    652652    ),
    653653    'WordPress\\AI\\Experiments\\Title_Generation\\Title_Generation' => array(
    654         'version' => '0.2.0.0',
     654        'version' => '0.2.1.0',
    655655        'path'    => $baseDir . '/includes/Experiments/Title_Generation/Title_Generation.php'
    656656    ),
     657    'WordPress\\AI\\Services\\AI_Service' => array(
     658        'version' => '0.2.1.0',
     659        'path'    => $baseDir . '/includes/Services/AI_Service.php'
     660    ),
    657661    'WordPress\\AI\\Settings\\Settings_Page' => array(
    658         'version' => '0.2.0.0',
     662        'version' => '0.2.1.0',
    659663        'path'    => $baseDir . '/includes/Settings/Settings_Page.php'
    660664    ),
    661665    'WordPress\\AI\\Settings\\Settings_Registration' => array(
    662         'version' => '0.2.0.0',
     666        'version' => '0.2.1.0',
    663667        'path'    => $baseDir . '/includes/Settings/Settings_Registration.php'
    664668    ),
    665669    'WordPress\\AI\\Tests\\Integration\\Experiments\\Abilities_Explorer\\Abilities_ExplorerTest' => array(
    666         'version' => '0.2.0.0',
     670        'version' => '0.2.1.0',
    667671        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Abilities_Explorer/Abilities_ExplorerTest.php'
    668672    ),
    669673    'WordPress\\AI\\Tests\\Integration\\Experiments\\Abilities_Explorer\\Ability_HandlerTest' => array(
    670         'version' => '0.2.0.0',
     674        'version' => '0.2.1.0',
    671675        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Abilities_Explorer/Ability_HandlerTest.php'
    672676    ),
    673677    'WordPress\\AI\\Tests\\Integration\\Experiments\\Abilities_Explorer\\Admin_PageTest' => array(
    674         'version' => '0.2.0.0',
     678        'version' => '0.2.1.0',
    675679        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Abilities_Explorer/Admin_PageTest.php'
    676680    ),
    677681    'WordPress\\AI\\Tests\\Integration\\Experiments\\Example_Experiment\\Example_ExperimentTest' => array(
    678         'version' => '0.2.0.0',
     682        'version' => '0.2.1.0',
    679683        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Example_Experiment/Example_ExperimentTest.php'
    680684    ),
    681685    'WordPress\\AI\\Tests\\Integration\\Experiments\\Image_Generation\\Image_GenerationTest' => array(
    682         'version' => '0.2.0.0',
     686        'version' => '0.2.1.0',
    683687        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Image_Generation/Image_GenerationTest.php'
    684688    ),
    685689    'WordPress\\AI\\Tests\\Integration\\Experiments\\Summarization\\SummarizationTest' => array(
    686         'version' => '0.2.0.0',
     690        'version' => '0.2.1.0',
    687691        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Summarization/SummarizationTest.php'
    688692    ),
    689693    'WordPress\\AI\\Tests\\Integration\\Experiments\\Title_Generation\\Title_GenerationTest' => array(
    690         'version' => '0.2.0.0',
     694        'version' => '0.2.1.0',
    691695        'path'    => $baseDir . '/tests/Integration/Includes/Experiments/Title_Generation/Title_GenerationTest.php'
    692696    ),
    693697    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Excerpt_GenerationTest' => array(
    694         'version' => '0.2.0.0',
     698        'version' => '0.2.1.0',
    695699        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Excerpt_GenerationTest.php'
    696700    ),
    697701    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Image_GenerationTest' => array(
    698         'version' => '0.2.0.0',
     702        'version' => '0.2.1.0',
    699703        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Image_GenerationTest.php'
    700704    ),
    701705    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Image_ImportTest' => array(
    702         'version' => '0.2.0.0',
     706        'version' => '0.2.1.0',
    703707        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Image_ImportTest.php'
    704708    ),
    705709    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\SummarizationTest' => array(
    706         'version' => '0.2.0.0',
     710        'version' => '0.2.1.0',
    707711        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/SummarizationTest.php'
    708712    ),
    709713    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Excerpt_Generation_Experiment' => array(
    710         'version' => '0.2.0.0',
     714        'version' => '0.2.1.0',
    711715        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Excerpt_GenerationTest.php'
    712716    ),
    713717    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Image_Generation_Experiment' => array(
    714         'version' => '0.2.0.0',
     718        'version' => '0.2.1.0',
    715719        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Image_GenerationTest.php'
    716720    ),
    717721    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Image_Import_Experiment' => array(
    718         'version' => '0.2.0.0',
     722        'version' => '0.2.1.0',
    719723        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Image_ImportTest.php'
    720724    ),
    721725    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Summarization_Experiment' => array(
    722         'version' => '0.2.0.0',
     726        'version' => '0.2.1.0',
    723727        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/SummarizationTest.php'
    724728    ),
    725729    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Test_Title_Generation_Experiment' => array(
    726         'version' => '0.2.0.0',
     730        'version' => '0.2.1.0',
    727731        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Title_GenerationTest.php'
    728732    ),
    729733    'WordPress\\AI\\Tests\\Integration\\Includes\\Abilities\\Title_GenerationTest' => array(
    730         'version' => '0.2.0.0',
     734        'version' => '0.2.1.0',
    731735        'path'    => $baseDir . '/tests/Integration/Includes/Abilities/Title_GenerationTest.php'
    732736    ),
    733737    'WordPress\\AI\\Tests\\Integration\\Includes\\Abstracts\\Abstract_AbilityTest' => array(
    734         'version' => '0.2.0.0',
     738        'version' => '0.2.1.0',
    735739        'path'    => $baseDir . '/tests/Integration/Includes/Abstracts/Abstract_AbilityTest.php'
    736740    ),
    737741    'WordPress\\AI\\Tests\\Integration\\Includes\\Abstracts\\Test_Ability' => array(
    738         'version' => '0.2.0.0',
     742        'version' => '0.2.1.0',
    739743        'path'    => $baseDir . '/tests/Integration/Includes/Abstracts/Abstract_AbilityTest.php'
    740744    ),
    741745    'WordPress\\AI\\Tests\\Integration\\Includes\\Abstracts\\Test_Ability_Experiment' => array(
    742         'version' => '0.2.0.0',
     746        'version' => '0.2.1.0',
    743747        'path'    => $baseDir . '/tests/Integration/Includes/Abstracts/Abstract_AbilityTest.php'
    744748    ),
    745749    'WordPress\\AI\\Tests\\Integration\\Includes\\Experiment_LoaderTest' => array(
    746         'version' => '0.2.0.0',
     750        'version' => '0.2.1.0',
    747751        'path'    => $baseDir . '/tests/Integration/Includes/Experiment_LoaderTest.php'
    748752    ),
    749753    'WordPress\\AI\\Tests\\Integration\\Includes\\Experiment_Registry_Test' => array(
    750         'version' => '0.2.0.0',
     754        'version' => '0.2.1.0',
    751755        'path'    => $baseDir . '/tests/Integration/Includes/Experiment_RegistryTest.php'
    752756    ),
    753757    'WordPress\\AI\\Tests\\Integration\\Includes\\HelpersTest' => array(
    754         'version' => '0.2.0.0',
     758        'version' => '0.2.1.0',
    755759        'path'    => $baseDir . '/tests/Integration/Includes/HelpersTest.php'
    756760    ),
    757761    'WordPress\\AI\\Tests\\Integration\\Includes\\Mock_Experiment' => array(
    758         'version' => '0.2.0.0',
     762        'version' => '0.2.1.0',
    759763        'path'    => $baseDir . '/tests/Integration/Includes/Experiment_LoaderTest.php'
    760764    ),
     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    ),
    761769    'WordPress\\AI\\Tests\\Integration\\Includes\\Test_Experiment' => array(
    762         'version' => '0.2.0.0',
     770        'version' => '0.2.1.0',
    763771        'path'    => $baseDir . '/tests/Integration/Includes/Experiment_RegistryTest.php'
    764772    ),
  • ai/trunk/vendor/composer/jetpack_autoload_filemap.php

    r3443635 r3447323  
    1212    ),
    1313    '901a0fcb8c5137115199739c3d628fd4' => array(
    14         'version' => '0.2.0.0',
     14        'version' => '0.2.1.0',
    1515        'path'    => $baseDir . '/includes/helpers.php'
    1616    ),
Note: See TracChangeset for help on using the changeset viewer.