v2.0.0-RC3
Please check the documentation for more details.
Features & Enhancements
- Agent result event — a new event is emitted with the final result immediately before agent-end, so
streamEvents()consumers can obtain the result directly from the event stream - Custom events — generic extensible event type for middleware to push application-level notifications (state changes, team updates, etc.) to front-end subscribers without modifying the core event enum
- Hint block events — one-shot event for delivering complete content such as team messages, background tool results, and user interruptions
- Workspace path normalizer — file paths are now automatically normalized to workspace-relative form based on the active filesystem mode, preventing cross-mode prefix collisions
- Tool name on all tool events — tool call delta, end, and result events now carry the tool name directly, so consumers no longer need to cache the name mapping from the start event
Bugfixes & Improvements
- Unified call / stream core —
call()andstreamEvents()now share a single implementation, ensuring the middleware chain fires consistently on all invocation paths. Legacy standalone call logic has been removed - Distributed state always fresh — when a state store is configured, agent state and permissions are reloaded from the store at the start of every call, preventing stale cache reads when sessions drift across machines
- Tool result eviction timing — eviction middleware moved to the correct lifecycle phase where tool results are already persisted, fixing a no-op issue in the previous phase
- Simplified file path resolution logic in local filesystem