@yasserkhanorg/e2e-agents 0.5.7 → 0.5.8

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.
@@ -1 +1 @@
1
- {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/agent/runner.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AA+R7C,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,OAAO,CAAC;CAClB;AAYD,wBAAsB,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAiTzF;AAED,wBAAsB,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA8TtF"}
1
+ {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../src/agent/runner.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,aAAa,CAAC;AA+R7C,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,OAAO,CAAC;CAClB;AAYD,wBAAsB,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAuTzF;AAED,wBAAsB,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAoUtF"}
@@ -327,7 +327,14 @@ async function runImpact(_config, _options) {
327
327
  }
328
328
  else {
329
329
  flows = analysis.flows;
330
- if (_config.impact.aiFlow.enabled) {
330
+ if (changedAppFiles.length === 0) {
331
+ // No app files changed (e.g. only CI config or e2e files changed).
332
+ // Treat as zero app impact without calling AI — the gate should pass cleanly.
333
+ flows = [];
334
+ flowMappingSource = 'ai';
335
+ warnings.push('No app files changed; skipping AI flow analysis.');
336
+ }
337
+ else if (_config.impact.aiFlow.enabled) {
331
338
  const aiFlow = await (0, ai_flow_analysis_js_1.mapAIFlowsFromFiles)(_config.path, testsRoot, _config.impact.aiFlow, analysis.files, changedAppFiles);
332
339
  warnings.push(...aiFlow.warnings);
333
340
  if (aiFlow.used) {
@@ -610,7 +617,14 @@ async function runGap(_config, _options) {
610
617
  }
611
618
  else {
612
619
  flows = analysis.flows;
613
- if (_config.impact.aiFlow.enabled) {
620
+ if (changedAppFiles.length === 0) {
621
+ // No app files changed (e.g. only CI config or e2e files changed).
622
+ // Treat as zero app impact without calling AI — the gate should pass cleanly.
623
+ flows = [];
624
+ flowMappingSource = 'ai';
625
+ warnings.push('No app files changed; skipping AI flow analysis.');
626
+ }
627
+ else if (_config.impact.aiFlow.enabled) {
614
628
  const aiFlow = await (0, ai_flow_analysis_js_1.mapAIFlowsFromFiles)(_config.path, testsRoot, _config.impact.aiFlow, analysis.files, changedAppFiles);
615
629
  warnings.push(...aiFlow.warnings);
616
630
  if (aiFlow.used) {
@@ -323,7 +323,14 @@ export async function runImpact(_config, _options) {
323
323
  }
324
324
  else {
325
325
  flows = analysis.flows;
326
- if (_config.impact.aiFlow.enabled) {
326
+ if (changedAppFiles.length === 0) {
327
+ // No app files changed (e.g. only CI config or e2e files changed).
328
+ // Treat as zero app impact without calling AI — the gate should pass cleanly.
329
+ flows = [];
330
+ flowMappingSource = 'ai';
331
+ warnings.push('No app files changed; skipping AI flow analysis.');
332
+ }
333
+ else if (_config.impact.aiFlow.enabled) {
327
334
  const aiFlow = await mapAIFlowsFromFiles(_config.path, testsRoot, _config.impact.aiFlow, analysis.files, changedAppFiles);
328
335
  warnings.push(...aiFlow.warnings);
329
336
  if (aiFlow.used) {
@@ -606,7 +613,14 @@ export async function runGap(_config, _options) {
606
613
  }
607
614
  else {
608
615
  flows = analysis.flows;
609
- if (_config.impact.aiFlow.enabled) {
616
+ if (changedAppFiles.length === 0) {
617
+ // No app files changed (e.g. only CI config or e2e files changed).
618
+ // Treat as zero app impact without calling AI — the gate should pass cleanly.
619
+ flows = [];
620
+ flowMappingSource = 'ai';
621
+ warnings.push('No app files changed; skipping AI flow analysis.');
622
+ }
623
+ else if (_config.impact.aiFlow.enabled) {
610
624
  const aiFlow = await mapAIFlowsFromFiles(_config.path, testsRoot, _config.impact.aiFlow, analysis.files, changedAppFiles);
611
625
  warnings.push(...aiFlow.warnings);
612
626
  if (aiFlow.used) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yasserkhanorg/e2e-agents",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
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",