bulltrackers-module 1.0.639 → 1.0.641

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.
@@ -405,19 +405,29 @@ async function generateBuildReport(config, dependencies, manifest) {
405
405
  for (const stable of stableUpdates) {
406
406
  const m = manifestMap.get(stable.name);
407
407
  const stored = dailyStatus[stable.name];
408
- if (m && stored) {
408
+
409
+ // [FIX] Only auto-heal if we have valid result data
410
+ // Otherwise, force re-run to regenerate everything properly
411
+ const hasValidResults = stored?.resultHash &&
412
+ stored.resultHash !== 'empty' &&
413
+ stored.dependencyResultHashes &&
414
+ Object.keys(stored.dependencyResultHashes).length > 0;
415
+
416
+ if (m && stored && hasValidResults) {
409
417
  updatesPayload[stable.name] = {
410
418
  hash: m.hash, simHash: stable.simHash, resultHash: stored.resultHash,
411
- dependencyResultHashes: stored.dependencyResultHashes || {},
419
+ dependencyResultHashes: stored.dependencyResultHashes,
412
420
  category: m.category, composition: m.composition, lastUpdated: new Date()
413
421
  };
422
+ } else {
423
+ // No valid results - treat as true re-run
424
+ processItem(dateSummary.rerun, stable, "Epoch Change - Rebuilding");
414
425
  }
415
426
  }
416
427
  if (Object.keys(updatesPayload).length > 0) {
417
428
  await updateComputationStatus(dateStr, updatesPayload, config, dependencies);
418
429
  }
419
- }
420
- }
430
+ }}
421
431
 
422
432
  // Add skipped items to Stable count for metrics
423
433
  analysis.skipped.forEach(item => processItem(dateSummary.stable, item, "Up To Date"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.639",
3
+ "version": "1.0.641",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [