feat: Seiten-Umschreiber für site-weite Preset-Änderungen (Probelauf, höchstens 50 Seiten, Revision und Protokoll je Seite)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Niclas Loosen
2026-10-18 16:59:39 +02:00
co-authored by Claude Opus 5.5
parent d36e8286e8
commit d7a991d130
3 changed files with 1104 additions and 0 deletions
+10
View File
@@ -17,6 +17,7 @@ use LIT\MCP\Integrations\Divi\Design\DiviDesignRestoreAbility;
use LIT\MCP\Integrations\Divi\Design\DiviDesignSnapshotsAbility;
use LIT\MCP\Integrations\Divi\Design\DiviPresetsDeleteAbility;
use LIT\MCP\Integrations\Divi\Design\DiviPresetsSetAbility;
use LIT\MCP\Integrations\Divi\Design\PageRewriter;
use LIT\MCP\Integrations\Divi\Design\PresetComposer;
use LIT\MCP\Integrations\Divi\Design\SnapshotStore;
use LIT\MCP\Integrations\Divi\Library\DiviLibraryStore;
@@ -260,6 +261,15 @@ final class DiviIntegration implements Integration
return new DesignChange(new SnapshotStore(), $this->log);
}
/**
* The page rewriter of lit/divi-presets-assign and lit/divi-design-detach (Etappe 4b, spec §6.6): usages with
* this integration's Theme Builder access, posts through $loader (shared with the other Divi tools).
*/
private function pageRewriter(DiviPageLoader $loader): PageRewriter
{
return new PageRewriter($this->globalUsages(), $loader, new DiviSaver(), $this->log);
}
private function presetComposer(): PresetComposer
{
$composition = $this->composition();