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

This commit is contained in:
Haileyesus
2026-02-26 22:32:31 +03:00
committed by GitHub
parent 4ab94fce42
commit 917c353115
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({