Initial commit: Hermes AI Bridge WordPress plugin for cPanel agent runtime
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Plugin Name: Hermes AI Bridge
|
||||
* Plugin URI: https://falahos.my
|
||||
* Description: AI agent endpoint for Hermes agents on Contabo. REST API + WP-Cron + Nextcloud bridge.
|
||||
* Version: 1.0.0
|
||||
* Author: FalahOS / Hermes Agent
|
||||
* Author URI: https://falahos.my
|
||||
* License: GPL v2 or later
|
||||
* Text Domain: hermes-ai-bridge
|
||||
*
|
||||
* No exec(), shell_exec(), or system() calls anywhere.
|
||||
* Fully compatible with RoketServer shared hosting (no SSH, Cloudflare WAF).
|
||||
*/
|
||||
|
||||
defined('ABSPATH') or die('Direct access denied.');
|
||||
|
||||
define('HERMES_AI_BRIDGE_VERSION', '1.0.0');
|
||||
define('HERMES_AI_BRIDGE_FILE', __FILE__);
|
||||
define('HERMES_AI_BRIDGE_DIR', plugin_dir_path(__FILE__));
|
||||
define('HERMES_AI_BRIDGE_URL', plugin_dir_url(__FILE__));
|
||||
|
||||
// Autoload
|
||||
require_once HERMES_AI_BRIDGE_DIR . 'includes/class-autoloader.php';
|
||||
HermesAiBridge\Autoloader::register();
|
||||
|
||||
// Activation / Deactivation
|
||||
register_activation_hook(__FILE__, ['HermesAiBridge\Installer', 'activate']);
|
||||
register_deactivation_hook(__FILE__, ['HermesAiBridge\Installer', 'deactivate']);
|
||||
|
||||
// Bootstrap
|
||||
add_action('plugins_loaded', ['HermesAiBridge\Core', 'init']);
|
||||
Reference in New Issue
Block a user