chore: upgrade @anthropic-ai/claude-agent-sdk to version 0.2.59 and add model usage logging

This commit is contained in:
Haileyesus
2026-02-26 16:32:08 +03:00
parent 1f903baf2c
commit e76b389d26
3 changed files with 56 additions and 131 deletions

View File

@@ -593,6 +593,9 @@ async function queryClaudeSDK(command, options = {}, ws) {
console.log('No session_id in message or already captured. message.session_id:', message.session_id, 'capturedSessionId:', capturedSessionId);
}
// logs which model was used in the message
console.log("---> Model was sent using:", Object.keys(message.modelUsage || {}));
// Transform and send message to WebSocket
const transformedMessage = transformMessage(message);
ws.send({