From 5c8026c0f0056236e44afd6bf3d33f9855d38099 Mon Sep 17 00:00:00 2001 From: "Bernd (Hermes)" Date: Mon, 22 Jun 2026 11:21:23 +0200 Subject: [PATCH] fix(install.sh): create archivar symlink for core plugin loader --- install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/install.sh b/install.sh index 4f1530d..cef049e 100755 --- a/install.sh +++ b/install.sh @@ -363,6 +363,11 @@ perform_update() { copied_count=$(find "$script_dir/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc' | wc -l) msg copied "$copied_count" + # Symlink for core plugin loader: archivar must be importable as top-level module + if [ -d "$PLUGIN_DST/archivar" ]; then + ln -sfn "$PLUGIN_DST/archivar" "$hermes_dir/archivar" + fi + # 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" @@ -517,6 +522,11 @@ perform_update_only() { local copied_count copied_count=$(find "$script_dir/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc' | wc -l) msg deploy_done "$copied_count" "$PLUGIN_DST" + + # Symlink for core plugin loader: archivar must be importable as top-level module + if [ -d "$PLUGIN_DST/archivar" ]; then + ln -sfn "$PLUGIN_DST/archivar" "$hermes_dir/archivar" + fi else msg update_failed "plugin/ directory not found in $script_dir" return 1 @@ -779,6 +789,11 @@ if [ -d "$SCRIPT_DIR/plugin" ]; then done < <(find "$SCRIPT_DIR/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc') copied_count=$(find "$SCRIPT_DIR/plugin" -type f ! -path '*/__pycache__/*' ! -name '*.pyc' | wc -l) msg copied "$copied_count" + + # Symlink for core plugin loader: archivar must be importable as top-level module + if [ -d "$PLUGIN_DST/archivar" ]; then + ln -sfn "$PLUGIN_DST/archivar" "$HERMES_DIR/archivar" + fi fi # GUARD 2: Vollständigkeits-Check