feat: Raum-Kontext-Injection + Butler-Trigger-Logik + Room-Context Skill

- Fix A: Raum-Name/Typ als Text-Prefix in User-Nachricht injiziert
- Fix B: Skill rocketchat-room-context im Plugin-Repo + deploy via install.sh
- Fix C: 100% Keywords → auto-route (kein Butler), Kontext → Butler fragt
- Fix D: FAISS-Auto-Route move_request_sent=False (konsistent mit Fix C)

Rainer-Review: 4/4 freigegeben (2 Iterationen, Fix A Kommentar + Fix B Skill-Ort korrigiert)
This commit is contained in:
Bernd (Hermes)
2026-07-12 18:11:54 +02:00
parent c99cbfd76b
commit 2d4359071b
5 changed files with 209 additions and 24 deletions
+43
View File
@@ -252,6 +252,40 @@ _venv_install() {
fi
}
# ─── Skill Deployment ──────────────────────────────────────
# Kopiert Skills aus plugin/skills/ nach ~/.hermes/skills/ (global).
# Hermes auto-discovered Skills im skills/-Verzeichnis des Plugins.
_deploy_skills() {
local script_dir="$1"
local skills_src="$script_dir/plugin/skills"
local skills_dst="$HOME/.hermes/skills"
if [ ! -d "$skills_src" ]; then
return 0 # Keine Skills zum Deployen
fi
mkdir -p "$skills_dst"
local deployed=0
for skill_dir in "$skills_src"/*/; do
[ -d "$skill_dir" ] || continue
local skill_name
skill_name=$(basename "$skill_dir")
local dst="$skills_dst/$skill_name"
mkdir -p "$dst"
# Kopiere alle Dateien aus dem Skill-Verzeichnis (SKILL.md + ggf. references/, templates/, scripts/)
while read -r src_file; do
local rel="${src_file#$skill_dir}"
local dst_file="$dst/$rel"
mkdir -p "$(dirname "$dst_file")"
cp "$src_file" "$dst_file"
done < <(find "$skill_dir" -type f)
deployed=$((deployed + 1))
done
if [ $deployed -gt 0 ]; then
echo "🧠 Deployed $deployed skill(s) to $skills_dst"
fi
}
confirm_or_edit() {
# $1 = env-var name (RC_URL, RC_BOT_USER, …)
# $2 = message key (enter_url, enter_botuser, …)
@@ -479,6 +513,9 @@ perform_update() {
ln -sfn "$PLUGIN_DST/plugin/archivar" "$hermes_dir/archivar"
fi
# Deploy bundled skills to ~/.hermes/skills/
_deploy_skills "$script_dir"
# NOTE: room-map.json is MACHINE-SPECIFIC — never deployed
# by the installer. It is created by the RC-Skill onboarding
# flow after gateway start. See RC-Skill: "Room Topic Discipline"
@@ -703,6 +740,9 @@ perform_update_only() {
if [ -d "$PLUGIN_DST/plugin/archivar" ]; then
ln -sfn "$PLUGIN_DST/plugin/archivar" "$hermes_dir/archivar"
fi
# Deploy bundled skills to ~/.hermes/skills/
_deploy_skills "$script_dir"
else
msg update_failed "plugin/ directory not found in $script_dir"
return 1
@@ -1080,6 +1120,9 @@ if [ -d "$SCRIPT_DIR/plugin" ]; then
if [ -d "$PLUGIN_DST/plugin/archivar" ]; then
ln -sfn "$PLUGIN_DST/plugin/archivar" "$HERMES_DIR/archivar"
fi
# Deploy bundled skills to ~/.hermes/skills/
_deploy_skills "$SCRIPT_DIR"
fi
# GUARD 2: Vollständigkeits-Check