@evalops/maestro 0.10.39 → 0.10.41

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.
@@ -456,18 +456,7 @@ export class ProviderTransport {
456
456
  const cachedOutcome = await recordReusableToolExecutionBridgeOutput({
457
457
  bridge: platformToolExecutionBridge,
458
458
  plan: safetyVerdict.toolExecutionBridgePlan,
459
- outcome: {
460
- message: {
461
- ...cachedEntry.message,
462
- toolCallId: toolCall.id,
463
- toolName: toolCall.name,
464
- content: cachedEntry.message.content.map((item) => ({
465
- ...item,
466
- })),
467
- timestamp: this.clock.now(),
468
- },
469
- isError: false,
470
- },
459
+ outcome: cloneToolOutcomeForCall({ message: cachedEntry.message, isError: false }, toolCall, this.clock.now(), { approvalRequestId: safetyVerdict.approvalRequestId }),
471
460
  durationMs: this.clock.now() - cacheHitStart,
472
461
  signal,
473
462
  });
@@ -483,7 +472,7 @@ export class ProviderTransport {
483
472
  const cachedOutcome = await recordReusableToolExecutionBridgeOutput({
484
473
  bridge: platformToolExecutionBridge,
485
474
  plan: safetyVerdict.toolExecutionBridgePlan,
486
- outcome: cloneToolOutcomeForCall(await pendingReusable, toolCall, this.clock.now()),
475
+ outcome: cloneToolOutcomeForCall(await pendingReusable, toolCall, this.clock.now(), { approvalRequestId: safetyVerdict.approvalRequestId }),
487
476
  durationMs: this.clock.now() - cacheHitStart,
488
477
  signal,
489
478
  });
@@ -1526,18 +1515,7 @@ export class ProviderTransport {
1526
1515
  const cachedOutcome = await recordReusableToolExecutionBridgeOutput({
1527
1516
  bridge: platformToolExecutionBridge,
1528
1517
  plan: safetyVerdict.toolExecutionBridgePlan,
1529
- outcome: {
1530
- message: {
1531
- ...cachedEntry.message,
1532
- toolCallId: toolCall.id,
1533
- toolName: toolCall.name,
1534
- content: cachedEntry.message.content.map((item) => ({
1535
- ...item,
1536
- })),
1537
- timestamp: this.clock.now(),
1538
- },
1539
- isError: false,
1540
- },
1518
+ outcome: cloneToolOutcomeForCall({ message: cachedEntry.message, isError: false }, toolCall, this.clock.now(), { approvalRequestId: safetyVerdict.approvalRequestId }),
1541
1519
  durationMs: this.clock.now() - cacheHitStart,
1542
1520
  signal,
1543
1521
  });
@@ -1591,7 +1569,9 @@ export class ProviderTransport {
1591
1569
  return recordReusableToolExecutionBridgeOutput({
1592
1570
  bridge: platformToolExecutionBridge,
1593
1571
  plan: safetyVerdict.toolExecutionBridgePlan,
1594
- outcome: cloneToolOutcomeForCall(await pendingReusable, toolCall, this.clock.now()),
1572
+ outcome: cloneToolOutcomeForCall(await pendingReusable, toolCall, this.clock.now(), {
1573
+ approvalRequestId: safetyVerdict.approvalRequestId,
1574
+ }),
1595
1575
  durationMs: this.clock.now() - cacheHitStart,
1596
1576
  signal,
1597
1577
  });