deflake 1.1.5 → 1.1.6

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.
Files changed (2) hide show
  1. package/cli.js +6 -5
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -752,11 +752,6 @@ async function analyzeFailures(artifacts, fullLog, client) {
752
752
 
753
753
  if (result && result.status === 'success') {
754
754
  results.push(result);
755
-
756
- // If --fix is enabled, apply it immediately for ALL tiers
757
- if (argv.fix) {
758
- await applySelfHealing(result);
759
- }
760
755
  } else {
761
756
  console.log(`\n ${C.RED}❌ Analysis failed for ${displayName}:${C.RESET} ${result?.detail || 'Check server status'}`);
762
757
  }
@@ -789,6 +784,12 @@ async function analyzeFailures(artifacts, fullLog, client) {
789
784
  if (group.count > 1) {
790
785
  console.log(`${C.GRAY}ℹ️ Suggested for ${group.count} similar failures:${C.RESET}`);
791
786
  }
787
+
788
+ // APPLY FIX (Only once per deduplicated group)
789
+ if (argv.fix) {
790
+ await applySelfHealing(group);
791
+ }
792
+
792
793
  printDetailedFix(group.fix, group.location, group.source_code, argv.fix);
793
794
  }
794
795
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deflake",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "AI-powered self-healing tool for Playwright, Cypress, and WebdriverIO tests.",
5
5
  "main": "client.js",
6
6
  "bin": {