@agent-e/core 1.3.0 → 1.3.2
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2980,7 +2980,7 @@ var Executor = class {
|
|
|
2980
2980
|
}
|
|
2981
2981
|
async apply(plan, adapter, currentParams) {
|
|
2982
2982
|
const originalValue = currentParams[plan.parameter] ?? plan.currentValue;
|
|
2983
|
-
await adapter.setParam(plan.parameter, plan.targetValue, plan.
|
|
2983
|
+
await adapter.setParam(plan.parameter, plan.targetValue, plan.currency);
|
|
2984
2984
|
plan.appliedAt = plan.diagnosis.tick;
|
|
2985
2985
|
this.activePlans.push({ plan, originalValue });
|
|
2986
2986
|
}
|
|
@@ -3002,7 +3002,7 @@ var Executor = class {
|
|
|
3002
3002
|
const metricValue = this.getMetricValue(metrics, rc.metric);
|
|
3003
3003
|
const shouldRollback = rc.direction === "below" ? metricValue < rc.threshold : metricValue > rc.threshold;
|
|
3004
3004
|
if (shouldRollback) {
|
|
3005
|
-
await adapter.setParam(plan.parameter, originalValue, plan.
|
|
3005
|
+
await adapter.setParam(plan.parameter, originalValue, plan.currency);
|
|
3006
3006
|
rolledBack.push(plan);
|
|
3007
3007
|
} else {
|
|
3008
3008
|
const settledTick = rc.checkAfterTick + 10;
|