feat: read the Divi design system live – lit/divi-design-system
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
@@ -4,6 +4,8 @@ declare(strict_types=1);
|
||||
|
||||
namespace LIT\MCP\Integrations\Divi;
|
||||
|
||||
use LIT\MCP\Integrations\Divi\Design\DesignSystemReader;
|
||||
use LIT\MCP\Integrations\Divi\Design\DiviDesignSystemAbility;
|
||||
use LIT\MCP\Integrations\Divi\Schema\DiviCatalogAbility;
|
||||
use LIT\MCP\Integrations\Divi\Schema\DiviModules;
|
||||
use LIT\MCP\Integrations\Integration;
|
||||
@@ -16,10 +18,12 @@ use LIT\MCP\Integrations\WordPress\Schema\ContentSchema;
|
||||
final class DiviIntegration implements Integration
|
||||
{
|
||||
private DiviModules $modules;
|
||||
private DesignSystemReader $design;
|
||||
|
||||
public function __construct(private ContentSchema $schema)
|
||||
{
|
||||
$this->modules = new DiviModules();
|
||||
$this->design = new DesignSystemReader();
|
||||
}
|
||||
|
||||
public function id(): string
|
||||
@@ -36,6 +40,7 @@ final class DiviIntegration implements Integration
|
||||
{
|
||||
return [
|
||||
new DiviCatalogAbility($this->modules),
|
||||
new DiviDesignSystemAbility($this->design),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user