DEBUG message

This commit is contained in:
Pedram Amini
2026-01-31 10:57:39 -05:00
parent 6618d92889
commit ea939feed5

View File

@@ -83,6 +83,12 @@ export class ClaudeOutputParser implements AgentOutputParser {
try {
const msg: ClaudeRawMessage = JSON.parse(line);
// DEBUG: Log raw message if it contains usage data
if (msg.modelUsage || msg.usage || msg.total_cost_usd !== undefined) {
console.log('[ClaudeOutputParser] Raw message with usage data:', JSON.stringify(msg, null, 2));
}
return this.transformMessage(msg);
} catch {
// Not valid JSON - return as raw text event