@lisa.ai/agent 1.0.2 → 1.0.4

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.
@@ -53,9 +53,12 @@ async function coverageCommand(command, modelProvider, attempt = 1, maxRetries =
53
53
  catch (error) {
54
54
  console.log(`\nāŒ [Lisa.ai Coverage] Tests failed. Delegating to Auto-Heal...`);
55
55
  // If tests themselves fail to compile or run, we fallback exactly to auto-heal
56
- // We intentionally don't loop here immediately, but await healCommand.
57
- await (0, heal_1.healCommand)(command, modelProvider, attempt, null, maxRetries, projectId);
58
- executionPassed = false;
56
+ await (0, heal_1.healCommand)(command, modelProvider, 1, null, maxRetries, projectId);
57
+ // Once the auto-heal engine successfully returns, compilation errors are fixed!
58
+ // We gracefully restart the coverage engine to evaluate the newly working tests.
59
+ console.log(`\nšŸ”„ [Lisa.ai Coverage] Auto-Heal successful. Restarting coverage analysis...`);
60
+ await coverageCommand(command, modelProvider, attempt + 1, maxRetries, projectId);
61
+ return;
59
62
  }
60
63
  // 2. If it passed without compile/runtime errors, evaluate coverage
61
64
  if (executionPassed) {
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ program
33
33
  process.exit(1);
34
34
  }
35
35
  }
36
- (0, heal_1.healCommand)(options.command, model, 1, null, maxRetries, options.projectId || 'local');
36
+ await (0, heal_1.healCommand)(options.command, model, 1, null, maxRetries, options.projectId || 'local');
37
37
  });
38
38
  program
39
39
  .command('coverage')
@@ -54,6 +54,6 @@ program
54
54
  model = config.modelProvider;
55
55
  maxRetries = config.maxRetries;
56
56
  }
57
- (0, coverage_1.coverageCommand)(options.command, model, 1, maxRetries, options.projectId || 'local');
57
+ await (0, coverage_1.coverageCommand)(options.command, model, 1, maxRetries, options.projectId || 'local');
58
58
  });
59
59
  program.parse(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lisa.ai/agent",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Lisa.ai Autonomous CI/CD Worker Agent",
5
5
  "main": "dist/index.js",
6
6
  "bin": {