feat: MCP tools for events (list/get/create/update/delete/done/ack); EventRules shared by /api and manual

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BCrwHHnGCB5XH968Nxokqw
This commit is contained in:
nikita.hohlov
2026-09-05 06:10:41 -03:00
parent 450c165fce
commit ed45a1d516
18 changed files with 711 additions and 56 deletions

View File

@@ -38,15 +38,10 @@ final class EventUpserter
});
}
public function withdraw(Source $source, string $sourceRef, string $topic): bool
/** Снять событие: withdrawn — терминальное, ядро больше не напоминает. */
public function withdraw(Event $event): void
{
$event = $this->find($source, $sourceRef, $topic);
if ($event === null) {
return false;
}
$event->update(['state' => EventState::Withdrawn]);
return true;
}
public function find(Source $source, string $sourceRef, string $topic): ?Event