| 1 |
<?php |
| 2 |
/** |
| 3 |
* AI-content-merger module (spec 022-ai-content-merger). |
| 4 |
* |
| 5 |
* Platform-aware AI content merging: the AIContentHelper class (flatten-by-id, unicode |
| 6 |
* normalization, Elementor/Gutenberg dot-notation content merging, HTML class-based |
| 7 |
* replacement). Relocated from includes/Core/Importer/Utils/AIContentHelper.php. |
| 8 |
* |
| 9 |
* PHP-only, no REST routes, no JS. Per spec 022 FR-011 this is a STANDALONE class of pure |
| 10 |
* static merge logic with ZERO cross-module dependencies — the public entry point is the |
| 11 |
* static merge($payload, $template, $platform) dispatcher, consumed by FSI's |
| 12 |
* Runners/Finalizer. The session/path resolution + file IO that used to live here as |
| 13 |
* host-state instance methods (generateAiFilePaths, isAiContent, processAiContent, |
| 14 |
* writeDebugFile, …) is now the consumer's responsibility, breaking the former |
| 15 |
* full-site-import ↔ ai-content-merger dependency cycle. |
| 16 |
* |
| 17 |
* @package Templately |
| 18 |
*/ |
| 19 |
|
| 20 |
namespace Templately\Modules\AiContentMerger; |
| 21 |
|
| 22 |
use Templately\Core\Module_Base; |
| 23 |
|
| 24 |
class Module extends Module_Base { |
| 25 |
|
| 26 |
public function get_name(): string { |
| 27 |
return 'ai-content-merger'; |
| 28 |
} |
| 29 |
} |
| 30 |
|