fix(profile): lazy manifest-name import; --sync-imports notice under --clone-all too
`hermes_cli/profiles.py` imported SYNC_MANIFEST_NAME from agent_import_sync at module top, which pulled yaml/utils into every startup that resolves a profile; the import now happens only inside _bootstrap_profile_dir when --sync-imports is used (verified: importing hermes_cli.profiles no longer loads hermes_cli.agent_import_sync). `profile create --clone-all --sync-imports` accepted the flag (a full copy carries import-sync.json regardless) but printed no notice; the hint is now printed for both --clone and --clone-all.
This commit is contained in:
@@ -214,9 +214,9 @@ def _profile_create(args):
|
||||
print(f"Full copy from {source_label} (excluding session history, cron jobs, backups, and snapshots).")
|
||||
else:
|
||||
print(f"Cloned config, .env, SOUL.md, and skills from {source_label}.")
|
||||
if sync_imports:
|
||||
print(f"Import sources carried over — `hermes -p {name} import-agent --sync` "
|
||||
"keeps pulling the same Claude Code / Codex trees.")
|
||||
if sync_imports:
|
||||
print(f"Import sources carried over — `hermes -p {name} import-agent --sync` "
|
||||
"keeps pulling the same Claude Code / Codex trees.")
|
||||
_print_channel_clone_notice(name, source_label, clone_channels, "--clone-all" if clone_all else "--clone")
|
||||
# Auto-clone Honcho config for the new profile (only with clone operations)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user