refactor: rename for intent (L3)
PostChangeResult is PostSaveFollowUp (the after-save pipeline, not a result); DiviChange::changed() is record() (moved nodes are recorded but not touched). cleanValue/withoutControls were renamed in wave 2. 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:
@@ -16,7 +16,7 @@ use LIT\MCP\Integrations\Divi\BlockTree\NodeSummary;
|
||||
final class DiviChange
|
||||
{
|
||||
/** @var list<array{block: ?Block, id: ?string, type: string, action: string, label: string}> */
|
||||
private array $changed = [];
|
||||
private array $entries = [];
|
||||
|
||||
/** @var list<Block> */
|
||||
private array $touched = [];
|
||||
@@ -32,9 +32,9 @@ final class DiviChange
|
||||
* A node that still exists after the change: "inserted", "updated", "moved" or "duplicated".
|
||||
* Every action but "moved" counts for the quality warnings.
|
||||
*/
|
||||
public function changed(Block $block, string $action): self
|
||||
public function record(Block $block, string $action): self
|
||||
{
|
||||
$this->changed[] = [
|
||||
$this->entries[] = [
|
||||
'block' => $block,
|
||||
'id' => null,
|
||||
'type' => $block->name(),
|
||||
@@ -51,7 +51,7 @@ final class DiviChange
|
||||
/** A node that is gone; $idBefore is its ID before the change. */
|
||||
public function removed(string $idBefore, Block $block): self
|
||||
{
|
||||
$this->changed[] = [
|
||||
$this->entries[] = [
|
||||
'block' => null,
|
||||
'id' => $idBefore,
|
||||
'type' => $block->name(),
|
||||
@@ -72,7 +72,7 @@ final class DiviChange
|
||||
/** @return list<array{block: ?Block, id: ?string, type: string, action: string, label: string}> */
|
||||
public function entries(): array
|
||||
{
|
||||
return $this->changed;
|
||||
return $this->entries;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user