@lisa.ai/agent 2.0.3 → 2.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 -10
- package/dist/commands/heal.js +6 -10
- package/dist/index.js +6 -0
- package/package.json +1 -1
|
@@ -77,16 +77,12 @@ async function coverageCommand(command, modelProvider, attempt = 1, maxRetries =
|
|
|
77
77
|
if (printProgress) {
|
|
78
78
|
const lines = text.split('\n');
|
|
79
79
|
for (const line of lines) {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
process.stdout.write(`\r⏳ [Lisa.ai Testing] ${cleanLine}`);
|
|
89
|
-
}
|
|
80
|
+
const match = line.match(/Executed\s+(\d+)\s+of\s+(\d+)/);
|
|
81
|
+
if (match) {
|
|
82
|
+
const failedMatch = line.match(/(\d+)\s+FAILED/);
|
|
83
|
+
const failedCount = failedMatch ? failedMatch[1] : 0;
|
|
84
|
+
const progressStr = `\r⏳ [Lisa.ai Testing] Executed ${match[1]} of ${match[2]} (${failedCount} FAILED) `;
|
|
85
|
+
process.stdout.write(progressStr);
|
|
90
86
|
}
|
|
91
87
|
}
|
|
92
88
|
}
|
package/dist/commands/heal.js
CHANGED
|
@@ -128,16 +128,12 @@ async function healCommand(command, modelProvider, attempt = 1, healedFilePath =
|
|
|
128
128
|
if (printProgress) {
|
|
129
129
|
const lines = text.split('\n');
|
|
130
130
|
for (const line of lines) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
process.stdout.write(`\r⏳ [Lisa.ai Testing] ${cleanLine}`);
|
|
140
|
-
}
|
|
131
|
+
const match = line.match(/Executed\s+(\d+)\s+of\s+(\d+)/);
|
|
132
|
+
if (match) {
|
|
133
|
+
const failedMatch = line.match(/(\d+)\s+FAILED/);
|
|
134
|
+
const failedCount = failedMatch ? failedMatch[1] : 0;
|
|
135
|
+
const progressStr = `\r⏳ [Lisa.ai Testing] Executed ${match[1]} of ${match[2]} (${failedCount} FAILED) `;
|
|
136
|
+
process.stdout.write(progressStr);
|
|
141
137
|
}
|
|
142
138
|
}
|
|
143
139
|
}
|
package/dist/index.js
CHANGED
|
@@ -35,6 +35,9 @@ program
|
|
|
35
35
|
process.exit(1);
|
|
36
36
|
}
|
|
37
37
|
console.log(`[Lisa.ai Agent] Dynamic Config Loaded: Provider=${config.modelProvider}, MaxRetries=${config.maxRetries}`);
|
|
38
|
+
if (config.maxRetries < 5) {
|
|
39
|
+
console.warn(`\n⚠️ [Lisa.ai Warning] Your Dashboard Analytics Config has maxRetries set to ${config.maxRetries}. Consider increasing this to 5+ in the WEB UI for complex Angular Healing!`);
|
|
40
|
+
}
|
|
38
41
|
model = config.modelProvider;
|
|
39
42
|
maxRetries = config.maxRetries;
|
|
40
43
|
apiKey = config.apiKey;
|
|
@@ -63,6 +66,9 @@ program
|
|
|
63
66
|
process.exit(1);
|
|
64
67
|
}
|
|
65
68
|
console.log(`[Lisa.ai Agent] Dynamic Config Loaded: Provider=${config.modelProvider}, MaxRetries=${config.maxRetries}`);
|
|
69
|
+
if (config.maxRetries < 5) {
|
|
70
|
+
console.warn(`\n⚠️ [Lisa.ai Warning] Your Dashboard Analytics Config has maxRetries set to ${config.maxRetries}. Consider increasing this to 5+ in the WEB UI for complex Angular Healing!`);
|
|
71
|
+
}
|
|
66
72
|
model = config.modelProvider;
|
|
67
73
|
maxRetries = config.maxRetries;
|
|
68
74
|
apiKey = config.apiKey;
|