<?php
/**
 * Plugin Name:       Smart AI Chatbot with OpenRouter by Jayanta
 * Plugin URI:        https://wordpress.org/plugins/jayanta-ai-site-chatbot-with-openrouter
 * Description:       A site-aware floating AI chatbot for WordPress that answers visitor questions from published site content using OpenRouter AI.
 * Version:           1.0.0
 * Author:            jayanta77
 * Author URI:        https://profiles.wordpress.org/jayanta77/
 * Requires at least: 6.2
 * Tested up to:      7.0
 * Requires PHP:      7.4
 * License:           GPLv2 or later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       jayanta-ai-site-chatbot-with-openrouter
 * Domain Path:       /languages
 *
 * @package OpenRouterSiteChatbotByJayanta
 */

defined( 'ABSPATH' ) || exit;

define( 'ORSC_VERSION', '1.0.0' );
define( 'ORSC_PLUGIN_FILE', __FILE__ );
define( 'ORSC_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'ORSC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'ORSC_OPTION', 'orsc_settings' );
define( 'ORSC_INDEX_OPTION', 'orsc_content_index' );
define( 'ORSC_LOG_OPTION', 'orsc_chat_logs' );

require_once ORSC_PLUGIN_PATH . 'includes/class-orsc-openrouter-client.php';
require_once ORSC_PLUGIN_PATH . 'includes/class-orsc-content-index.php';
require_once ORSC_PLUGIN_PATH . 'includes/class-orsc-plugin.php';

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

add_action(
	'plugins_loaded',
	function () {
		ORSC_Plugin::instance();
	}
);
