multica/packages/sdk/src
Jiayuan Zhang 239dc5a7c6 fix(agent): report accurate compaction metrics and add run-log observability
Compaction was reporting only 189 tokens removed for 6 messages because
Phase 1 (tool result pruning) hollowed out messages before Phase 2
(summary compaction) measured them. Now captures pre-pruning token count
and reports combined savings from both phases.

Also threads RunLog through SessionManager to emit tool_result_pruning
and compaction_detail events, and adds preflight pruning stats logging.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 15:42:04 +08:00
..
actions fix(agent): report accurate compaction metrics and add run-log observability 2026-02-15 15:42:04 +08:00
client.ts feat(connection): add device verification status feedback for collaborators 2026-02-05 10:44:15 +08:00
index.ts fix(sdk): point exports to source and remove .js import suffixes 2026-02-02 16:58:23 +08:00
types.ts feat(connection): add device verification status feedback for collaborators 2026-02-05 10:44:15 +08:00