@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.
@@ -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
- if (line.includes('Executed')) {
81
- const cleanLine = line.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, '').trim();
82
- if (process.stdout.isTTY) {
83
- process.stdout.clearLine(0);
84
- process.stdout.cursorTo(0);
85
- process.stdout.write(`⏳ [Lisa.ai Testing] ${cleanLine}`);
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
  }
@@ -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
- if (line.includes('Executed')) {
132
- const cleanLine = line.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g, '').trim();
133
- if (process.stdout.isTTY) {
134
- process.stdout.clearLine(0);
135
- process.stdout.cursorTo(0);
136
- process.stdout.write(`⏳ [Lisa.ai Testing] ${cleanLine}`);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lisa.ai/agent",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Lisa.ai Autonomous CI/CD Worker Agent",
5
5
  "main": "dist/index.js",
6
6
  "bin": {