PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 3.8.0
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v3.8.0
3.8.0 3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 All 112 releases
templately / modules / ai-fsi / module.php

module.php in Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! 3.8.0, at modules/ai-fsi/module.php

36 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * AI-FSI module (spec 026-ai-fsi).
4 *
5 * AI content generation workflow + conversational UI. PHP: AIContent.php's remaining
6 * `/ai-content/*` routes (modify-content, ai-update, ai-update-preview, generate-tagline,
7 * chatbot-conversation, attachments — `search_images`/`/images` already extracted to
8 * modules/image-replace in spec 023). Relocated verbatim from includes/API/AIContent.php
9 * — behavior byte-identical (same routes, params, HMAC/header-auth permission logic).
10 *
11 * @package Templately
12 */
13
14 namespace Templately\Modules\AiFsi;
15
16 use Templately\Core\Module_Base;
17 use Templately\Modules\AiFsi\REST\AIContent;
18
19 class Module extends Module_Base {
20
21 public function get_name(): string {
22 return 'ai-fsi';
23 }
24
25 public function get_dependencies(): array {
26 // REST/AIContent.php uses full-site-import's Utils/AIUtils/SessionData/
27 // SignatureVerifier/WXR_Parser at request time (spec 025). (image-replace stays
28 // baselined — that's a JS-only build-time import, PHP boot order has no bearing.)
29 return [ 'full-site-import' ];
30 }
31
32 public function register_rest_routes(): void {
33 AIContent::get_instance()->register_routes();
34 }
35 }
36