Plugin Directory

Changeset 3409908


Ignore:
Timestamp:
12/03/2025 05:16:46 PM (4 months ago)
Author:
enkic
Message:

v2.3.0

Location:
ai-builder
Files:
14 added
5 edited
35 copied

Legend:

Unmodified
Added
Removed
  • ai-builder/tags/2.3.0/admin/menu.php

    r3404221 r3409908  
    1111    add_submenu_page('aibui-assistant', 'Tutorial', 'Tutorial', 'manage_options', 'aibui-tuto', 'aibui_page_tuto');
    1212    add_submenu_page('aibui-assistant', 'Multi Page Generator', 'Multi Page Generator', 'manage_options', 'aibui-multi-page', 'aibui_page_multi_page');
     13    add_submenu_page('aibui-assistant', 'Site Copilot', 'Site Copilot', 'manage_options', 'aibui-agent-chat', 'aibui_page_agent_chat');
    1314    add_submenu_page('aibui-assistant', 'Translations', 'Translations', 'manage_options', 'aibui-translation-settings', 'aibui_page_translation_settings');
    1415    add_submenu_page('aibui-assistant', 'Reset Password', 'Reset Password', 'manage_options', 'aibui-reset-password', 'aibui_page_reset_password');
     
    5152    include plugin_dir_path(__FILE__) . 'pages/reset-password.php';
    5253}
     54
     55function aibui_page_agent_chat()
     56{
     57    include plugin_dir_path(__FILE__) . 'pages/agent-chat.php';
     58}
  • ai-builder/tags/2.3.0/admin/pages/credits.php

    r3408247 r3409908  
    258258
    259259                    <div class="ai-section-header" style="margin-bottom: 120px;">
    260 </div>
     260        </div>
    261261    </div>
    262262
  • ai-builder/tags/2.3.0/admin/pages/tuto.php

    r3406101 r3409908  
    102102                <p>Translate your pages and posts into multiple languages with AI</p>
    103103            </div>
     104
     105            <div class="ai-feature-card">
     106                <div class="ai-feature-icon">
     107                    <svg width="32" height="32" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
     108                        <path d="M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
     109                        <path d="M8 9H16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
     110                        <path d="M8 13H12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
     111                    </svg>
     112                </div>
     113                <h3>Site Copilot</h3>
     114                <p>AI-powered assistant to manage and operate your WordPress site</p>
     115            </div>
    104116        </div>
    105117    </div>
     
    358370                    <div class="ai-tip-content">
    359371                        <strong>Pro Tip:</strong> Translated pages are automatically linked together. Use the Language Switcher block on your frontend to let visitors switch between languages. You can also translate headers and footers from the Site Editor by clicking the "Translate with AI" button in the bottom-right corner.
     372                    </div>
     373                </div>
     374            </div>
     375        </div>
     376
     377        <!-- Site Copilot -->
     378        <div class="ai-instruction-card">
     379            <div class="ai-instruction-header">
     380                <div class="ai-instruction-icon">
     381                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
     382                        <path d="M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
     383                        <path d="M8 9H16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
     384                        <path d="M8 13H12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
     385                    </svg>
     386                </div>
     387                <div class="ai-instruction-title">
     388                    <h3>6. Site Copilot - AI Assistant for WordPress</h3>
     389                    <p>Manage your WordPress site through natural language conversations</p>
     390                </div>
     391            </div>
     392            <div class="ai-instruction-content">
     393                <div class="ai-step">
     394                    <div class="ai-step-number">1</div>
     395                    <div class="ai-step-content">
     396                        <h4>Access Site Copilot</h4>
     397                        <p>Navigate to <strong>AI Builder → Site Copilot</strong> in your WordPress admin menu. This opens a ChatGPT-like interface where you can interact with your WordPress site</p>
     398                    </div>
     399                </div>
     400                <div class="ai-step">
     401                    <div class="ai-step-number">2</div>
     402                    <div class="ai-step-content">
     403                        <h4>Ask Questions or Give Commands</h4>
     404                        <p>Type natural language requests like "List my recent posts", "Show all pages", "List categories", "Update post #123 title to 'New Title'", or "Show pending comments". Site Copilot understands context and can perform complex operations</p>
     405                    </div>
     406                </div>
     407                <div class="ai-step">
     408                    <div class="ai-step-number">3</div>
     409                    <div class="ai-step-content">
     410                        <h4>Watch Real-Time Execution</h4>
     411                        <p>When Site Copilot needs to use WordPress tools, you'll see "Executing: [tool name]" messages appear in real-time. Once complete, they change to "Executed: [tool name]" with a checkmark</p>
     412                    </div>
     413                </div>
     414                <div class="ai-step">
     415                    <div class="ai-step-number">4</div>
     416                    <div class="ai-step-content">
     417                        <h4>Manage API Access (Settings Tab)</h4>
     418                        <p>Click the "Settings" tab to control which WordPress REST API routes Site Copilot can access. Search for routes, enable/disable them by namespace, and ensure only safe operations are allowed. This gives you fine-grained control over what the AI can do</p>
     419                    </div>
     420                </div>
     421                <div class="ai-tip">
     422                    <div class="ai-tip-icon">💡</div>
     423                    <div class="ai-tip-content">
     424                        <strong>Pro Tip:</strong> Site Copilot is perfect for content management tasks, but for creating beautifully designed pages, use the AI Page Creator chat widget (bottom-left corner when editing a page). Ask "what can you do?" to see all available capabilities.
    360425                    </div>
    361426                </div>
  • ai-builder/tags/2.3.0/aibui-builder.php

    r3408247 r3409908  
    44 * Plugin URI:        https://website-ai-builder.com/
    55 * Description: This plugin is used to build your website with AI.
    6  * Version: 2.2.5
     6 * Version: 2.3.0
    77 * Author: enkic
    88 * Author URI:        https://enkicorbin.fr/
     
    1818
    1919// Définir la version du plugin
    20 define('AIBUI_VERSION', '2.2.5');
     20define('AIBUI_VERSION', '2.3.0');
    2121
    2222// Simple CSS minifier (safe whitespace/comment removal)
     
    265265require_once plugin_dir_path(__FILE__) . 'includes/class-translation-switcher.php';
    266266
     267// Charger les services de l'Agent Chat
     268require_once plugin_dir_path(__FILE__) . 'includes/class-agent-discovery-service.php';
     269require_once plugin_dir_path(__FILE__) . 'includes/class-agent-security-service.php';
     270require_once plugin_dir_path(__FILE__) . 'includes/class-agent-execution-service.php';
     271require_once plugin_dir_path(__FILE__) . 'includes/class-agent-chat-handler.php';
     272
    267273// Initialiser le gestionnaire de traduction
    268274new AIBUI_Translation_Handler();
     
    270276$translation_manager = new AIBUI_Translation_Manager();
    271277$translation_switcher = new AIBUI_Translation_Switcher($translation_manager);
     278
     279// Initialiser le gestionnaire de l'Agent Chat
     280new AIBUI_Agent_Chat_Handler();
    272281
    273282add_action('admin_enqueue_scripts', function ($hook) {
     
    513522                'nonce' => wp_create_nonce('aibui_nonce'),
    514523                'adminBaseUrl' => admin_url(),
     524            )
     525        );
     526    } else if ($current_screen && strpos($current_screen->id, 'aibui-agent-chat') !== false) {
     527        // Agent Chat page scripts and styles
     528        wp_enqueue_script(
     529            'ai-builder-config',
     530            plugin_dir_url(__FILE__) . 'config.js',
     531            [],
     532            AIBUI_VERSION,
     533            true
     534        );
     535        wp_enqueue_script(
     536            'ai-builder-agent-chat',
     537            plugin_dir_url(__FILE__) . 'assets/js/agent-chat.js',
     538            ['ai-builder-config'],
     539            AIBUI_VERSION,
     540            true
     541        );
     542        // Localize with nonce - IMPORTANT: use a different nonce for agent actions
     543        wp_localize_script(
     544            'ai-builder-agent-chat',
     545            'aibuiAgentVars',
     546            array(
     547                'ajaxurl' => admin_url('admin-ajax.php'),
     548                'nonce' => wp_create_nonce('aibui_agent_nonce'),
     549                'restBase' => esc_url_raw(rest_url()),
     550                'wpRestDocsBase' => 'https://developer.wordpress.org/rest-api/reference/',
     551            )
     552        );
     553        // Also expose standard AJAX nonce for shared endpoints like aibui_get_token
     554        wp_localize_script(
     555            'ai-builder-agent-chat',
     556            'aiBuilderVars',
     557            array(
     558                'ajaxurl' => admin_url('admin-ajax.php'),
     559                'nonce' => wp_create_nonce('aibui_nonce'),
    515560            )
    516561        );
  • ai-builder/tags/2.3.0/readme.txt

    r3408247 r3409908  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 2.2.5
     7Stable tag: 2.3.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • ai-builder/trunk/admin/menu.php

    r3404221 r3409908  
    1111    add_submenu_page('aibui-assistant', 'Tutorial', 'Tutorial', 'manage_options', 'aibui-tuto', 'aibui_page_tuto');
    1212    add_submenu_page('aibui-assistant', 'Multi Page Generator', 'Multi Page Generator', 'manage_options', 'aibui-multi-page', 'aibui_page_multi_page');
     13    add_submenu_page('aibui-assistant', 'Site Copilot', 'Site Copilot', 'manage_options', 'aibui-agent-chat', 'aibui_page_agent_chat');
    1314    add_submenu_page('aibui-assistant', 'Translations', 'Translations', 'manage_options', 'aibui-translation-settings', 'aibui_page_translation_settings');
    1415    add_submenu_page('aibui-assistant', 'Reset Password', 'Reset Password', 'manage_options', 'aibui-reset-password', 'aibui_page_reset_password');
     
    5152    include plugin_dir_path(__FILE__) . 'pages/reset-password.php';
    5253}
     54
     55function aibui_page_agent_chat()
     56{
     57    include plugin_dir_path(__FILE__) . 'pages/agent-chat.php';
     58}
  • ai-builder/trunk/admin/pages/credits.php

    r3408247 r3409908  
    258258
    259259                    <div class="ai-section-header" style="margin-bottom: 120px;">
    260 </div>
     260        </div>
    261261    </div>
    262262
  • ai-builder/trunk/admin/pages/tuto.php

    r3406101 r3409908  
    102102                <p>Translate your pages and posts into multiple languages with AI</p>
    103103            </div>
     104
     105            <div class="ai-feature-card">
     106                <div class="ai-feature-icon">
     107                    <svg width="32" height="32" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
     108                        <path d="M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
     109                        <path d="M8 9H16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
     110                        <path d="M8 13H12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
     111                    </svg>
     112                </div>
     113                <h3>Site Copilot</h3>
     114                <p>AI-powered assistant to manage and operate your WordPress site</p>
     115            </div>
    104116        </div>
    105117    </div>
     
    358370                    <div class="ai-tip-content">
    359371                        <strong>Pro Tip:</strong> Translated pages are automatically linked together. Use the Language Switcher block on your frontend to let visitors switch between languages. You can also translate headers and footers from the Site Editor by clicking the "Translate with AI" button in the bottom-right corner.
     372                    </div>
     373                </div>
     374            </div>
     375        </div>
     376
     377        <!-- Site Copilot -->
     378        <div class="ai-instruction-card">
     379            <div class="ai-instruction-header">
     380                <div class="ai-instruction-icon">
     381                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
     382                        <path d="M21 15C21 15.5304 20.7893 16.0391 20.4142 16.4142C20.0391 16.7893 19.5304 17 19 17H7L3 21V5C3 4.46957 3.21071 3.96086 3.58579 3.58579C3.96086 3.21071 4.46957 3 5 3H19C19.5304 3 20.0391 3.21071 20.4142 3.58579C20.7893 3.96086 21 4.46957 21 5V15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
     383                        <path d="M8 9H16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
     384                        <path d="M8 13H12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
     385                    </svg>
     386                </div>
     387                <div class="ai-instruction-title">
     388                    <h3>6. Site Copilot - AI Assistant for WordPress</h3>
     389                    <p>Manage your WordPress site through natural language conversations</p>
     390                </div>
     391            </div>
     392            <div class="ai-instruction-content">
     393                <div class="ai-step">
     394                    <div class="ai-step-number">1</div>
     395                    <div class="ai-step-content">
     396                        <h4>Access Site Copilot</h4>
     397                        <p>Navigate to <strong>AI Builder → Site Copilot</strong> in your WordPress admin menu. This opens a ChatGPT-like interface where you can interact with your WordPress site</p>
     398                    </div>
     399                </div>
     400                <div class="ai-step">
     401                    <div class="ai-step-number">2</div>
     402                    <div class="ai-step-content">
     403                        <h4>Ask Questions or Give Commands</h4>
     404                        <p>Type natural language requests like "List my recent posts", "Show all pages", "List categories", "Update post #123 title to 'New Title'", or "Show pending comments". Site Copilot understands context and can perform complex operations</p>
     405                    </div>
     406                </div>
     407                <div class="ai-step">
     408                    <div class="ai-step-number">3</div>
     409                    <div class="ai-step-content">
     410                        <h4>Watch Real-Time Execution</h4>
     411                        <p>When Site Copilot needs to use WordPress tools, you'll see "Executing: [tool name]" messages appear in real-time. Once complete, they change to "Executed: [tool name]" with a checkmark</p>
     412                    </div>
     413                </div>
     414                <div class="ai-step">
     415                    <div class="ai-step-number">4</div>
     416                    <div class="ai-step-content">
     417                        <h4>Manage API Access (Settings Tab)</h4>
     418                        <p>Click the "Settings" tab to control which WordPress REST API routes Site Copilot can access. Search for routes, enable/disable them by namespace, and ensure only safe operations are allowed. This gives you fine-grained control over what the AI can do</p>
     419                    </div>
     420                </div>
     421                <div class="ai-tip">
     422                    <div class="ai-tip-icon">💡</div>
     423                    <div class="ai-tip-content">
     424                        <strong>Pro Tip:</strong> Site Copilot is perfect for content management tasks, but for creating beautifully designed pages, use the AI Page Creator chat widget (bottom-left corner when editing a page). Ask "what can you do?" to see all available capabilities.
    360425                    </div>
    361426                </div>
  • ai-builder/trunk/aibui-builder.php

    r3408247 r3409908  
    44 * Plugin URI:        https://website-ai-builder.com/
    55 * Description: This plugin is used to build your website with AI.
    6  * Version: 2.2.5
     6 * Version: 2.3.0
    77 * Author: enkic
    88 * Author URI:        https://enkicorbin.fr/
     
    1818
    1919// Définir la version du plugin
    20 define('AIBUI_VERSION', '2.2.5');
     20define('AIBUI_VERSION', '2.3.0');
    2121
    2222// Simple CSS minifier (safe whitespace/comment removal)
     
    265265require_once plugin_dir_path(__FILE__) . 'includes/class-translation-switcher.php';
    266266
     267// Charger les services de l'Agent Chat
     268require_once plugin_dir_path(__FILE__) . 'includes/class-agent-discovery-service.php';
     269require_once plugin_dir_path(__FILE__) . 'includes/class-agent-security-service.php';
     270require_once plugin_dir_path(__FILE__) . 'includes/class-agent-execution-service.php';
     271require_once plugin_dir_path(__FILE__) . 'includes/class-agent-chat-handler.php';
     272
    267273// Initialiser le gestionnaire de traduction
    268274new AIBUI_Translation_Handler();
     
    270276$translation_manager = new AIBUI_Translation_Manager();
    271277$translation_switcher = new AIBUI_Translation_Switcher($translation_manager);
     278
     279// Initialiser le gestionnaire de l'Agent Chat
     280new AIBUI_Agent_Chat_Handler();
    272281
    273282add_action('admin_enqueue_scripts', function ($hook) {
     
    513522                'nonce' => wp_create_nonce('aibui_nonce'),
    514523                'adminBaseUrl' => admin_url(),
     524            )
     525        );
     526    } else if ($current_screen && strpos($current_screen->id, 'aibui-agent-chat') !== false) {
     527        // Agent Chat page scripts and styles
     528        wp_enqueue_script(
     529            'ai-builder-config',
     530            plugin_dir_url(__FILE__) . 'config.js',
     531            [],
     532            AIBUI_VERSION,
     533            true
     534        );
     535        wp_enqueue_script(
     536            'ai-builder-agent-chat',
     537            plugin_dir_url(__FILE__) . 'assets/js/agent-chat.js',
     538            ['ai-builder-config'],
     539            AIBUI_VERSION,
     540            true
     541        );
     542        // Localize with nonce - IMPORTANT: use a different nonce for agent actions
     543        wp_localize_script(
     544            'ai-builder-agent-chat',
     545            'aibuiAgentVars',
     546            array(
     547                'ajaxurl' => admin_url('admin-ajax.php'),
     548                'nonce' => wp_create_nonce('aibui_agent_nonce'),
     549                'restBase' => esc_url_raw(rest_url()),
     550                'wpRestDocsBase' => 'https://developer.wordpress.org/rest-api/reference/',
     551            )
     552        );
     553        // Also expose standard AJAX nonce for shared endpoints like aibui_get_token
     554        wp_localize_script(
     555            'ai-builder-agent-chat',
     556            'aiBuilderVars',
     557            array(
     558                'ajaxurl' => admin_url('admin-ajax.php'),
     559                'nonce' => wp_create_nonce('aibui_nonce'),
    515560            )
    516561        );
  • ai-builder/trunk/readme.txt

    r3408247 r3409908  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 2.2.5
     7Stable tag: 2.3.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.