@yasserkhanorg/e2e-agents 0.5.4 → 0.5.5

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/cli.js CHANGED
@@ -998,9 +998,22 @@ async function main() {
998
998
  return;
999
999
  }
1000
1000
  if (args.command === 'suggest' || args.command === 'plan') {
1001
- await (0, runner_js_1.runImpact)(config, { apply: args.apply });
1002
1001
  const reportRoot = config.testsRoot || config.path;
1003
1002
  const impactPath = (0, path_1.join)(reportRoot, '.e2e-ai-agents', 'impact.json');
1003
+ try {
1004
+ await (0, runner_js_1.runImpact)(config, { apply: args.apply });
1005
+ }
1006
+ catch (err) {
1007
+ // If impact analysis already ran (e.g. a prior CI step wrote impact.json),
1008
+ // fall back to that data rather than failing the plan step.
1009
+ if ((0, fs_1.existsSync)(impactPath)) {
1010
+ // eslint-disable-next-line no-console
1011
+ console.warn(`Impact re-run failed (${err instanceof Error ? err.message : String(err)}); using existing impact.json.`);
1012
+ }
1013
+ else {
1014
+ throw err;
1015
+ }
1016
+ }
1004
1017
  if (!(0, fs_1.existsSync)(impactPath)) {
1005
1018
  throw new Error(`Impact report not found at ${impactPath}`);
1006
1019
  }
package/dist/esm/cli.js CHANGED
@@ -996,9 +996,22 @@ async function main() {
996
996
  return;
997
997
  }
998
998
  if (args.command === 'suggest' || args.command === 'plan') {
999
- await runImpact(config, { apply: args.apply });
1000
999
  const reportRoot = config.testsRoot || config.path;
1001
1000
  const impactPath = join(reportRoot, '.e2e-ai-agents', 'impact.json');
1001
+ try {
1002
+ await runImpact(config, { apply: args.apply });
1003
+ }
1004
+ catch (err) {
1005
+ // If impact analysis already ran (e.g. a prior CI step wrote impact.json),
1006
+ // fall back to that data rather than failing the plan step.
1007
+ if (existsSync(impactPath)) {
1008
+ // eslint-disable-next-line no-console
1009
+ console.warn(`Impact re-run failed (${err instanceof Error ? err.message : String(err)}); using existing impact.json.`);
1010
+ }
1011
+ else {
1012
+ throw err;
1013
+ }
1014
+ }
1002
1015
  if (!existsSync(impactPath)) {
1003
1016
  throw new Error(`Impact report not found at ${impactPath}`);
1004
1017
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yasserkhanorg/e2e-agents",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Pluggable LLM provider library for AI-powered test automation. Use Claude, Ollama, or your own LLM. Integrate with Playwright, Jest, or any test framework. MCP server for test agents, cost tracking, and hybrid provider mode.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",