@juspay/neurolink 7.27.0 → 7.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,12 +60,12 @@ export function transformToolExecutions(toolExecutions) {
60
60
  {};
61
61
  }
62
62
  // Enhanced output extraction with success indication
63
- let output = teRecord.output ||
63
+ const output = teRecord.output ||
64
64
  teRecord.result ||
65
65
  teRecord.response ||
66
66
  "success";
67
67
  // Enhanced duration extraction
68
- let duration = teRecord.duration ??
68
+ const duration = teRecord.duration ??
69
69
  teRecord.executionTime ??
70
70
  teRecord.responseTime ??
71
71
  0;
@@ -105,7 +105,7 @@ export function transformToolExecutionsForMCP(toolExecutions) {
105
105
  toolName = `mcp_tool_execution_${index}`;
106
106
  }
107
107
  // Enhanced execution time extraction
108
- let executionTime = teRecord.duration ??
108
+ const executionTime = teRecord.duration ??
109
109
  teRecord.executionTime ??
110
110
  teRecord.responseTime ??
111
111
  0;
@@ -460,7 +460,7 @@ export class ToolDiscoveryService extends EventEmitter {
460
460
  isArray: Array.isArray(result),
461
461
  isObject: isObject(result),
462
462
  hasKeys: isObject(result) ? Object.keys(result).length : 0,
463
- fullResponse: result // Log the complete response, not a truncated sample
463
+ fullResponse: result, // Log the complete response, not a truncated sample
464
464
  });
465
465
  // COMPLETELY PERMISSIVE APPROACH:
466
466
  // - Any response format is valid (objects, strings, arrays, booleans, numbers)