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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user