mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
Move AgentEventHandler, TokenUsage, AgentRuntimeStatus, AgentStreamChunk to packages/node-runtime/src/ai/agent/event-handler.ts. Token estimation and event-to-chunk mapping are now shared. Electron agent/types.ts re-exports from node-runtime. Added 8 unit tests covering token estimation, tool tracking, usage cloning. Co-authored-by: Cursor <cursoragent@cursor.com>