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:
Jan-Niclas Loosen
2026-10-18 22:14:39 +02:00
co-authored by Claude Sonnet 5.5
parent e387d8d29e
commit fdbda8012c
39 changed files with 1131 additions and 23 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace LIT\MCP\Abilities;
defined('ABSPATH') || exit;
/**
* A tool of the generic core that can reach another integration (lit/content-create with divi) and names what that
* call needs from it – as plain IDs, so the core imports nothing from the integration. The guard of the integration
* (DiviFeatureGate) reads the IDs; other guards ignore them.
*/
interface DeclaresRequirements
{
/**
* @param array<string, mixed> $input
* @return list<string> IDs of the capabilities the call needs for $input ([] = it stays in the core).
*/
public function requirements(array $input): array;
}