@lisa.ai/agent 2.0.2 → 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,8 +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
- process.stdout.write(line + '\n');
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);
82
86
  }
83
87
  }
84
88
  }
@@ -87,6 +91,8 @@ async function coverageCommand(command, modelProvider, attempt = 1, maxRetries =
87
91
  stderrData += data.toString();
88
92
  });
89
93
  child.on('close', (code) => {
94
+ if (printProgress)
95
+ process.stdout.write('\n');
90
96
  if (code === 0) {
91
97
  resolve();
92
98
  }
@@ -128,8 +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
- process.stdout.write(line + '\n');
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);
133
137
  }
134
138
  }
135
139
  }
@@ -138,6 +142,8 @@ async function healCommand(command, modelProvider, attempt = 1, healedFilePath =
138
142
  stderrData += data.toString();
139
143
  });
140
144
  child.on('close', (code) => {
145
+ if (printProgress)
146
+ process.stdout.write('\n');
141
147
  if (code === 0) {
142
148
  resolve({ stdout: stdoutData, stderr: stderrData });
143
149
  }
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ program
25
25
  .option('-p, --project-id <id>', 'Control Plane Project ID to fetch dynamic config')
26
26
  .action(async (options) => {
27
27
  printBanner();
28
- let maxRetries = 3;
28
+ let maxRetries = 5;
29
29
  let model = options.model;
30
30
  let apiKey = undefined;
31
31
  if (options.projectId) {
@@ -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;
@@ -53,7 +56,7 @@ program
53
56
  .option('-p, --project-id <id>', 'Control Plane Project ID to fetch dynamic config')
54
57
  .action(async (options) => {
55
58
  printBanner();
56
- let maxRetries = 3;
59
+ let maxRetries = 5;
57
60
  let model = options.model;
58
61
  let apiKey = undefined;
59
62
  if (options.projectId) {
@@ -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.2",
3
+ "version": "2.0.4",
4
4
  "description": "Lisa.ai Autonomous CI/CD Worker Agent",
5
5
  "main": "dist/index.js",
6
6
  "bin": {