Fix ssh_exec error reporting + circular import in switch_profile
ssh_exec:
- Non-zero exit status: output (stdout/stderr) now included in error
  field so model can actually see why the command failed
- All error cases: error field now contains human-readable message
  instead of short code (no_target, permission_denied, timeout)
- Named connections from ssh_hosts.json: default known_hosts=none
  same as ad-hoc connections (was missing, caused host key failures)

switch_profile:
- Move ProfileSwitched import inside execute() to break circular
  import: tools.__init__ → switch_profile → core.events → core.agent
  → core.registry → tools

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4cd6727 commit d68d0599327931b6d9069b89f11f03aa13c4c2b2
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 10 Apr
Showing 2 changed files
View
navi/tools/ssh_exec.py
View
navi/tools/switch_profile.py