fix: install.sh venv-Fallback + Post-Deployment-Verifikation + --fresh-onboarding, Raumübersicht mit Keywords 100% + Kontext
This commit is contained in:
+10
-2
@@ -806,8 +806,8 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
Der Gateway-Core rendert chat_topic als "**Channel Topic:**" Block.
|
||||
|
||||
Returns:
|
||||
Formatierter String mit allen Räumen (Name, ID, Thema, Catch-All-Marker).
|
||||
Leerer String wenn keine Raum-Map geladen ist.
|
||||
Formatierter String mit allen Räumen (Name, ID, Thema, Keywords,
|
||||
Catch-All-Marker). Leerer String wenn keine Raum-Map geladen ist.
|
||||
"""
|
||||
if not _MULTIROOM() or self.archivar is None:
|
||||
return ""
|
||||
@@ -822,6 +822,14 @@ class RocketChatAdapter(BasePlatformAdapter):
|
||||
f" {i}. {entry.name} ({rid}){catch_all_marker} — "
|
||||
f"Thema: {entry.theme}"
|
||||
)
|
||||
# Keywords 100% (exakte Treffer)
|
||||
if entry.keywords_100:
|
||||
kw100 = ", ".join(entry.keywords_100)
|
||||
lines.append(f" Keywords 100%: {kw100}")
|
||||
# Keywords Kontext (kontextabhängige Treffer)
|
||||
if entry.keywords_context:
|
||||
kwctx = ", ".join(entry.keywords_context)
|
||||
lines.append(f" Keywords Kontext: {kwctx}")
|
||||
return "\n".join(lines)
|
||||
|
||||
def _on_ddp_room_event(self, event: dict) -> None:
|
||||
|
||||
+15
-1
@@ -18,7 +18,21 @@ import urllib.request
|
||||
from typing import Any, Dict, List, Optional
|
||||
import urllib.parse
|
||||
|
||||
from tools.registry import tool_error, tool_result
|
||||
|
||||
# Inlined from tools.registry — avoids import conflict with the plugin's
|
||||
# own tools.py module (which shadows the core tools/ package when the
|
||||
# plugin directory is on sys.path).
|
||||
def tool_error(message, **extra) -> str:
|
||||
result = {"error": str(message)}
|
||||
if extra:
|
||||
result.update(extra)
|
||||
return json.dumps(result, ensure_ascii=False)
|
||||
|
||||
|
||||
def tool_result(data=None, **kwargs) -> str:
|
||||
if data is not None:
|
||||
return json.dumps(data, ensure_ascii=False)
|
||||
return json.dumps(kwargs, ensure_ascii=False)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user