Files
ChatLab/electron
diguaandCursor 38b599034f refactor(node-runtime): extract event-handler to @openchatlab/node-runtime
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>
2026-05-17 23:32:54 +08:00
..
2026-05-06 23:56:45 +08:00