@agent-e/core 1.3.0 → 1.3.1

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.
package/dist/index.js CHANGED
@@ -3093,7 +3093,7 @@ var Executor = class {
3093
3093
  }
3094
3094
  async apply(plan, adapter, currentParams) {
3095
3095
  const originalValue = currentParams[plan.parameter] ?? plan.currentValue;
3096
- await adapter.setParam(plan.parameter, plan.targetValue, plan.diagnosis.violation.suggestedAction.currency);
3096
+ await adapter.setParam(plan.parameter, plan.targetValue, plan.currency);
3097
3097
  plan.appliedAt = plan.diagnosis.tick;
3098
3098
  this.activePlans.push({ plan, originalValue });
3099
3099
  }
@@ -3115,7 +3115,7 @@ var Executor = class {
3115
3115
  const metricValue = this.getMetricValue(metrics, rc.metric);
3116
3116
  const shouldRollback = rc.direction === "below" ? metricValue < rc.threshold : metricValue > rc.threshold;
3117
3117
  if (shouldRollback) {
3118
- await adapter.setParam(plan.parameter, originalValue, plan.diagnosis.violation.suggestedAction.currency);
3118
+ await adapter.setParam(plan.parameter, originalValue, plan.currency);
3119
3119
  rolledBack.push(plan);
3120
3120
  } else {
3121
3121
  const settledTick = rc.checkAfterTick + 10;