feat: install.sh schreibt ALLE Einstellungen in config.yaml; Button-Doku korrigiert (Desktop ~5-7 chars, keine Underscores, online statt away); adapter+init auf Produktionsstand

This commit is contained in:
Bernd (Hermes)
2026-05-10 07:51:00 +02:00
parent a7db2942f6
commit e6efe55edc
7 changed files with 525 additions and 176 deletions
+8 -2
View File
@@ -55,8 +55,11 @@ _TEMPLATE_MAP = {
def _build_custom_buttons(labels: list, prefix: str = "") -> list:
"""Build Rocket.Chat action buttons from plain label strings.
Rocket.Chat UI truncates button text after ~11-12 chars.
Use short labels (emoji+text without spaces, or numbered refs).
Rocket.Chat Desktop-App schneidet Button-Text nach ~5-7 Zeichen ab.
Mobile App zeigt vollen Text. NIEMALS Underscores (_) verwenden —
sie zerstören das Button-Rendering komplett.
Empfohlen: nummerierte Kurzreferenzen (1. Links, 2. Rechts).
"""
buttons = []
for idx, label in enumerate(labels):
@@ -98,6 +101,7 @@ def is_connected(config) -> bool:
def register(ctx):
"""Plugin entry point — called by the Hermes plugin system at startup."""
from .adapter import RocketChatAdapter # lazy import avoids circular deps
from .tools import register_tools
ctx.register_platform(
name="rocketchat",
@@ -121,3 +125,5 @@ def register(ctx):
"via DDP presence. Use professional but friendly tone."
),
)
register_tools(ctx)