Review fixes: events module, circular imports, deps, vision-aware compression
- Extract all AgentEvent dataclasses to navi/core/events.py; import from
  there in agent.py and __init__.py — eliminates circular import between
  workers and core
- workers/compressor.py: remove runtime import hack, use navi.core.events
- workers/base.py: WorkerResult.events typed as list[AgentEvent] (was Any)
- api/deps.py: replace @lru_cache on mutable list with module-level
  singletons (_registries, _workers)
- core/compressor.py: _format_for_summary returns (text, images); images
  passed to summarization LLM so vision models describe them in summary;
  non-vision models silently ignore the images field; docstring updated
- client/js/app.js: add comment explaining is_summary backward compat branch

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ece41eb commit bdd3786d1eba6fb9c0bbbbc2b2c2147f00942d8f
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 8 Apr
Showing 8 changed files
View
client/js/app.js
View
navi/api/deps.py
View
navi/core/__init__.py
View
navi/core/agent.py
View
navi/core/compressor.py
View
navi/core/events.py 0 → 100644
View
navi/workers/base.py
View
navi/workers/compressor.py