@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.
- package/dist/commands/coverage.js +6 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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);
|