@tangle-network/agent-eval 0.110.0 → 0.110.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.
@@ -1953,6 +1953,17 @@ async function runOptimization(opts) {
1953
1953
  const scored = [
1954
1954
  toParetoParent(opts.baselineSurface, winnerSurfaceHash, baselineCampaign, -1)
1955
1955
  ];
1956
+ if (opts.analyzeGeneration && opts.maxGenerations > 0 && baselineCampaign.cells.length > 0) {
1957
+ const fresh = await opts.analyzeGeneration({
1958
+ generation: -1,
1959
+ runDir: `${opts.runDir}/baseline`,
1960
+ candidates: [
1961
+ { surfaceHash: winnerSurfaceHash, campaign: baselineCampaign, composite: winnerComposite }
1962
+ ],
1963
+ history
1964
+ });
1965
+ if (Array.isArray(fresh)) currentFindings = fresh;
1966
+ }
1956
1967
  for (let gen = 0; gen < opts.maxGenerations; gen++) {
1957
1968
  if (proposer.decide?.({ history }).stop) break;
1958
1969
  const paretoParents = computeParetoFrontier(scored);
@@ -2578,4 +2589,4 @@ export {
2578
2589
  provenanceSpansPath,
2579
2590
  emitLoopProvenance
2580
2591
  };
2581
- //# sourceMappingURL=chunk-GTERJI6Q.js.map
2592
+ //# sourceMappingURL=chunk-J4AKLZEV.js.map