@yasserkhanorg/e2e-agents 1.1.0 → 1.1.1

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":"git.d.ts","sourceRoot":"","sources":["../../src/agent/git.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAC;CAC1C;AAED,MAAM,WAAW,gBAAgB;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AA8CD,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,eAAe,CAuC3G"}
1
+ {"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../src/agent/git.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAC;CAC1C;AAED,MAAM,WAAW,gBAAgB;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AA8CD,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,eAAe,CA2C3G"}
package/dist/agent/git.js CHANGED
@@ -66,17 +66,20 @@ function getChangedFiles(appRoot, since, options) {
66
66
  baseStrategy = 'merge-base';
67
67
  }
68
68
  }
69
- const diffFiles = runGit(['diff', '--name-only', `${baseRef}..HEAD`, '--', '.'], appRoot);
69
+ // Get repo root so we capture ALL changed files (including server/, webapp/, etc.)
70
+ // not just files under the appRoot subdirectory.
71
+ const repoRoot = runGitRaw(['rev-parse', '--show-toplevel'], appRoot)?.trim() || appRoot;
72
+ const diffFiles = runGit(['diff', '--name-only', `${baseRef}..HEAD`], repoRoot);
70
73
  if (!diffFiles) {
71
74
  return { files: [], error: 'git diff failed' };
72
75
  }
73
76
  diffFiles.forEach((file) => files.add(file));
74
77
  if (options?.includeUncommitted) {
75
- const staged = runGit(['diff', '--name-only', '--cached', '--', '.'], appRoot) || [];
78
+ const staged = runGit(['diff', '--name-only', '--cached'], repoRoot) || [];
76
79
  staged.forEach((file) => files.add(file));
77
- const unstaged = runGit(['diff', '--name-only', '--', '.'], appRoot) || [];
80
+ const unstaged = runGit(['diff', '--name-only'], repoRoot) || [];
78
81
  unstaged.forEach((file) => files.add(file));
79
- const statusOutput = runGitRaw(['status', '--porcelain', '--', '.'], appRoot);
82
+ const statusOutput = runGitRaw(['status', '--porcelain'], repoRoot);
80
83
  if (statusOutput) {
81
84
  const statusLines = statusOutput.split('\n').filter(Boolean);
82
85
  parseStatusLines(statusLines).forEach((file) => files.add(file));
@@ -63,17 +63,20 @@ export function getChangedFiles(appRoot, since, options) {
63
63
  baseStrategy = 'merge-base';
64
64
  }
65
65
  }
66
- const diffFiles = runGit(['diff', '--name-only', `${baseRef}..HEAD`, '--', '.'], appRoot);
66
+ // Get repo root so we capture ALL changed files (including server/, webapp/, etc.)
67
+ // not just files under the appRoot subdirectory.
68
+ const repoRoot = runGitRaw(['rev-parse', '--show-toplevel'], appRoot)?.trim() || appRoot;
69
+ const diffFiles = runGit(['diff', '--name-only', `${baseRef}..HEAD`], repoRoot);
67
70
  if (!diffFiles) {
68
71
  return { files: [], error: 'git diff failed' };
69
72
  }
70
73
  diffFiles.forEach((file) => files.add(file));
71
74
  if (options?.includeUncommitted) {
72
- const staged = runGit(['diff', '--name-only', '--cached', '--', '.'], appRoot) || [];
75
+ const staged = runGit(['diff', '--name-only', '--cached'], repoRoot) || [];
73
76
  staged.forEach((file) => files.add(file));
74
- const unstaged = runGit(['diff', '--name-only', '--', '.'], appRoot) || [];
77
+ const unstaged = runGit(['diff', '--name-only'], repoRoot) || [];
75
78
  unstaged.forEach((file) => files.add(file));
76
- const statusOutput = runGitRaw(['status', '--porcelain', '--', '.'], appRoot);
79
+ const statusOutput = runGitRaw(['status', '--porcelain'], repoRoot);
77
80
  if (statusOutput) {
78
81
  const statusLines = statusOutput.split('\n').filter(Boolean);
79
82
  parseStatusLines(statusLines).forEach((file) => files.add(file));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yasserkhanorg/e2e-agents",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "AI-powered E2E test impact analysis, generation, and healing. Analyzes code changes to identify affected Playwright tests, detects coverage gaps, and generates or repairs specs using pluggable LLM providers (Claude, OpenAI, Ollama). Includes MCP server, traceability, and CI/CD integration.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",