feat(honcho): sync command + auto-sync on hermes update
- hermes honcho sync: scan all profiles, create missing host blocks - hermes update: automatically syncs Honcho config to all profiles after skill sync (existing users get profile mapping on next update) - sync_honcho_profiles_quiet() for silent use from update path
This commit is contained in:
@@ -3266,6 +3266,15 @@ def cmd_update(args):
|
||||
except Exception:
|
||||
pass # profiles module not available or no profiles
|
||||
|
||||
# Sync Honcho host blocks to all profiles
|
||||
try:
|
||||
from honcho_integration.cli import sync_honcho_profiles_quiet
|
||||
synced = sync_honcho_profiles_quiet()
|
||||
if synced:
|
||||
print(f"\n-> Honcho: synced {synced} profile(s)")
|
||||
except Exception:
|
||||
pass # honcho not installed or not configured
|
||||
|
||||
# Check for config migrations
|
||||
print()
|
||||
print("→ Checking configuration for new options...")
|
||||
@@ -4590,6 +4599,7 @@ For more help on a command:
|
||||
)
|
||||
honcho_subparsers.add_parser("enable", help="Enable Honcho for the active profile")
|
||||
honcho_subparsers.add_parser("disable", help="Disable Honcho for the active profile")
|
||||
honcho_subparsers.add_parser("sync", help="Sync Honcho config to all existing profiles")
|
||||
|
||||
def cmd_honcho(args):
|
||||
from honcho_integration.cli import honcho_command
|
||||
|
||||
Reference in New Issue
Block a user