feat: jedes Divi-Tool und lit/content-create erklärt seine Divi-Fähigkeiten (RequiresDiviFeatures, DeclaresRequirements, FeatureSets); Tabelle Tool → Fähigkeiten als Test
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
e387d8d29e
commit
fdbda8012c
@@ -6,6 +6,7 @@ namespace LIT\MCP\Integrations\Divi\Pages;
|
||||
|
||||
use LIT\MCP\Abilities\Annotations;
|
||||
use LIT\MCP\Abilities\Errors;
|
||||
use LIT\MCP\Integrations\Divi\Release\DiviFeature;
|
||||
use WP_Error;
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
@@ -52,6 +53,15 @@ final class DiviMoveAbility extends DiviWriteAbility
|
||||
return Annotations::write(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* No client value enters the tree (no DynamicSources): load and save (PageRead, PageWrite), StructureRules
|
||||
* need the catalog, the quality warnings of the result read the design system (DesignRead).
|
||||
*/
|
||||
protected function baseFeatures(): array
|
||||
{
|
||||
return [DiviFeature::PageRead, DiviFeature::PageWrite, DiviFeature::Catalog, DiviFeature::DesignRead];
|
||||
}
|
||||
|
||||
protected function change(DiviPage $page, array $input, DiviComposition $composition): DiviChange|WP_Error
|
||||
{
|
||||
$id = is_string($input['id'] ?? null) ? $input['id'] : '';
|
||||
|
||||
Reference in New Issue
Block a user