<?php
/**
 * Plugin Name:       Aetheris AI Chat
 * Plugin URI:        https://aetherisinnovations.com/wordpress
 * Description:       One-click AI chatbot for any WordPress website. Trained on your content, embedded with zero code.
 * Version:           1.0.2
 * Requires at least: 5.8
 * Requires PHP:      7.4
 * Author:            Aetheris Innovations
 * Author URI:        https://aetherisinnovations.com
 * License:           GPL-2.0-or-later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       aetheris-ai-chat
 * Domain Path:       /languages
 *
 * @package AetherisAIChat
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

define( 'AETHERIS_AI_CHAT_VERSION', '1.0.2' );
define( 'AETHERIS_AI_CHAT_FILE', __FILE__ );
define( 'AETHERIS_AI_CHAT_DIR', plugin_dir_path( __FILE__ ) );
define( 'AETHERIS_AI_CHAT_URL', plugin_dir_url( __FILE__ ) );
define( 'AETHERIS_AI_CHAT_BASENAME', plugin_basename( __FILE__ ) );
define( 'AETHERIS_AI_CHAT_OPTION', 'aetheris_ai_chat_settings' );

// Default API + widget endpoints. Filterable so self-hosted customers can override.
define( 'AETHERIS_AI_CHAT_DEFAULT_API', 'https://api.chat.aetherisinnovations.com' );
define( 'AETHERIS_AI_CHAT_DEFAULT_WIDGET', 'https://chat.aetherisinnovations.com/widget.js' );
define( 'AETHERIS_AI_CHAT_DEFAULT_DASHBOARD', 'https://app.aetherisinnovations.com' );

require_once AETHERIS_AI_CHAT_DIR . 'includes/class-aetheris-plugin.php';
require_once AETHERIS_AI_CHAT_DIR . 'includes/class-aetheris-settings.php';
require_once AETHERIS_AI_CHAT_DIR . 'includes/class-aetheris-api.php';
require_once AETHERIS_AI_CHAT_DIR . 'includes/class-aetheris-embed.php';
require_once AETHERIS_AI_CHAT_DIR . 'includes/class-aetheris-admin.php';

register_activation_hook( __FILE__, array( 'Aetheris_AI_Chat_Plugin', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'Aetheris_AI_Chat_Plugin', 'deactivate' ) );

add_action( 'plugins_loaded', array( 'Aetheris_AI_Chat_Plugin', 'instance' ) );
