| Server IP : 108.167.142.43 / Your IP : 216.73.217.58 Web Server : Apache System : Linux gator4174.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64 User : delarice ( 2406) PHP Version : 8.3.36 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home2/delarice/public_html/wp-content/plugins/templately/modules/ai-fsi/ |
Upload File : |
<?php
/**
* AI-FSI module (spec 026-ai-fsi).
*
* AI content generation workflow + conversational UI. PHP: AIContent.php's remaining
* `/ai-content/*` routes (modify-content, ai-update, ai-update-preview, generate-tagline,
* chatbot-conversation, attachments — `search_images`/`/images` already extracted to
* modules/image-replace in spec 023). Relocated verbatim from includes/API/AIContent.php
* — behavior byte-identical (same routes, params, HMAC/header-auth permission logic).
*
* @package Templately
*/
namespace Templately\Modules\AiFsi;
use Templately\Core\Module_Base;
use Templately\Modules\AiFsi\REST\AIContent;
class Module extends Module_Base {
public function get_name(): string {
return 'ai-fsi';
}
public function get_dependencies(): array {
// REST/AIContent.php uses full-site-import's Utils/AIUtils/SessionData/
// SignatureVerifier/WXR_Parser at request time (spec 025). (image-replace stays
// baselined — that's a JS-only build-time import, PHP boot order has no bearing.)
return [ 'full-site-import' ];
}
public function register_rest_routes(): void {
AIContent::get_instance()->register_routes();
}
}