feat(hands,jobs): watchdog ring with a neighbour agent, daily heartbeat and silence alarm

This commit is contained in:
hh committed 2026-09-22 14:21:51 +00:00
1 parent 0475e09c81
commit f6cb17acaf
9 files changed
+1029

No files matched your search

+9
View File
@@ -151,6 +151,15 @@ class Vibegram:
)
return fresh
async def say(self, text: str) -> None:
"""Написать в комнату; сбой хаба - исключение, а не строка.
Тулза мастера мягче (`_send` превращает rate limit в текст), но
механизмам нужен отказ, который видно: сторож по нему отличает
мёртвый канал от мёртвого соседа.
"""
await self._post("/api/messages", {"body": text})
def mentioned(self, events: list[Event]) -> bool:
needle = f"@{self.nick}".lower()
return any(needle in e.text.lower() for e in events)