feat: Divi tools write library entries; global ones with dry run, confirm and backup (E2, F2)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace LIT\MCP\Tests\Support;
|
||||
|
||||
use LIT\MCP\Integrations\Divi\Design\DesignSystemReader;
|
||||
use LIT\MCP\Integrations\Divi\Library\GlobalEdits;
|
||||
use LIT\MCP\Integrations\Divi\Pages\DiviComposition;
|
||||
use LIT\MCP\Integrations\Divi\Pages\DiviPageLoader;
|
||||
use LIT\MCP\Integrations\Divi\Pages\DiviSaver;
|
||||
@@ -98,7 +99,8 @@ final class DiviWriterFixture
|
||||
array &$saved,
|
||||
array &$failures = [],
|
||||
bool $unfiltered = false,
|
||||
?DiviPageLoader $loader = null
|
||||
?DiviPageLoader $loader = null,
|
||||
?GlobalEdits $globals = null
|
||||
): DiviWriter {
|
||||
$design = self::designReader();
|
||||
|
||||
@@ -107,7 +109,8 @@ final class DiviWriterFixture
|
||||
self::saver($saved, $failures),
|
||||
self::log(),
|
||||
$design,
|
||||
self::composition($design, $unfiltered)
|
||||
self::composition($design, $unfiltered),
|
||||
$globals
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user