| @@ -1,13 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Plugin Name: Zip AI | |
| 4 | - * Plugin URI: https://wordpress.org/plugins/zip-ai/ | |
| 5 | - * Description: ZipWP's AI-powered content creation and management plugin for WordPress. | |
| 3 | + * Plugin Name: ZIP AI | |
| 4 | + * Description: ZIP AI is a conversational AI agent that builds, edits, and manages your WordPress site by chat - create pages, edit blocks, and run site operations right inside wp-admin. Works with Astra and block (FSE) themes. | |
| 6 | 5 | * Author: Brainstorm Force |
| 7 | 6 | * Author URI: https://brainstormforce.com/ |
| 8 | - * Version: 0.0.4 | |
| 9 | - * Requires at least: 6.2 | |
| 7 | + * Plugin URI: https://zipwp.com/ | |
| 8 | + * Version: 0.0.13 | |
| 9 | + * Requires at least: 6.4 | |
| 10 | 10 | * Tested up to: 7.0 |
| 11 | 11 | * Requires PHP: 7.4 |
| 12 | 12 | * License: GPLv2 or later |
| 13 | 13 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| @@ -14,12 +14,14 @@ | ||
| 14 | 14 | * Text Domain: zip-ai |
| 15 | 15 | * Domain Path: /languages |
| 16 | 16 | * |
| 17 | 17 | * External Services: |
| 18 | - * This plugin connects to the Zip AI platform (https://credits.startertemplates.com) | |
| 18 | + * This plugin connects to the ZIP AI platform (https://credits.zipwp.com) | |
| 19 | 19 | * to provide AI-powered site management. Chat messages, site structure data (page titles, |
| 20 | - * plugin names, post counts), and site identity are sent to this service after user | |
| 21 | - * authentication. No page/post content, visitor data, or payment details are transmitted. | |
| 20 | + * plugin names, post counts), site identity, and the results of the WordPress tools the | |
| 21 | + * agent runs at your request (which can include post and page content, option values, and | |
| 22 | + * command output) are sent to this service after user authentication. No visitor data or | |
| 23 | + * payment details are transmitted. | |
| 22 | 24 | * Terms of Service: https://store.brainstormforce.com/terms-and-conditions/ |
| 23 | 25 | * Privacy Policy: https://store.brainstormforce.com/privacy-policy/ |
| 24 | 26 | * |
| 25 | 27 | * @package zip-ai |
| @@ -24,21 +26,16 @@ | ||
| 24 | 26 | * |
| 25 | 27 | * @package zip-ai |
| 26 | 28 | */ |
| 27 | 29 | |
| 28 | -defined( 'ABSPATH' ) || exit; | |
| 30 | +// Exit if accessed directly. | |
| 31 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 32 | + exit; | |
| 33 | +} | |
| 29 | 34 | |
| 30 | -// Exit if Zip AI is already loaded. | |
| 31 | -if ( defined( 'ZIP_AI_DIR' ) ) { | |
| 35 | +// Exit if ZipWP MCP is already loaded. | |
| 36 | +if ( defined( 'ZIPAI_MCP_DIR' ) ) { | |
| 32 | 37 | return; |
| 33 | 38 | } |
| 34 | 39 | |
| 35 | -// Load Composer autoloader first. | |
| 36 | -$zip_ai_vendor_autoload = plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; | |
| 37 | -if ( file_exists( $zip_ai_vendor_autoload ) ) { | |
| 38 | - require_once $zip_ai_vendor_autoload; | |
| 39 | -} | |
| 40 | - | |
| 41 | -// Load the Zip AI Plugin. | |
| 42 | -if ( apply_filters( 'zip_ai_load_library', true ) ) { | |
| 43 | - require_once 'loader.php'; | |
| 44 | -} | |
| 40 | +// Load the plugin (registers the autoloader and boots everything). | |
| 41 | +require_once __DIR__ . '/loader.php'; | |