@yasserkhanorg/e2e-agents 0.9.0 → 0.10.0
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 +5 -2
- package/dist/esm/cli.js +5 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1025,13 +1025,16 @@ async function main() {
|
|
|
1025
1025
|
scenarios = raw;
|
|
1026
1026
|
}
|
|
1027
1027
|
else {
|
|
1028
|
+
// Try plan.json first (written by plan/suggest command), then plan-report.json (legacy)
|
|
1029
|
+
const planJsonPath = (0, path_1.join)(reportRoot, '.e2e-ai-agents', 'plan.json');
|
|
1028
1030
|
const planReportPath = (0, path_1.join)(reportRoot, '.e2e-ai-agents', 'plan-report.json');
|
|
1029
|
-
|
|
1031
|
+
const resolvedPlanPath = (0, fs_1.existsSync)(planJsonPath) ? planJsonPath : (0, fs_1.existsSync)(planReportPath) ? planReportPath : null;
|
|
1032
|
+
if (!resolvedPlanPath) {
|
|
1030
1033
|
// eslint-disable-next-line no-console
|
|
1031
1034
|
console.error('No plan report found. Run `plan` first or pass --scenarios.');
|
|
1032
1035
|
process.exit(1);
|
|
1033
1036
|
}
|
|
1034
|
-
const planReport = JSON.parse((0, fs_1.readFileSync)(
|
|
1037
|
+
const planReport = JSON.parse((0, fs_1.readFileSync)(resolvedPlanPath, 'utf-8'));
|
|
1035
1038
|
scenarios = (planReport.gapDetails || []).map((gap) => ({
|
|
1036
1039
|
id: gap.id,
|
|
1037
1040
|
name: gap.id,
|
package/dist/esm/cli.js
CHANGED
|
@@ -1023,13 +1023,16 @@ async function main() {
|
|
|
1023
1023
|
scenarios = raw;
|
|
1024
1024
|
}
|
|
1025
1025
|
else {
|
|
1026
|
+
// Try plan.json first (written by plan/suggest command), then plan-report.json (legacy)
|
|
1027
|
+
const planJsonPath = join(reportRoot, '.e2e-ai-agents', 'plan.json');
|
|
1026
1028
|
const planReportPath = join(reportRoot, '.e2e-ai-agents', 'plan-report.json');
|
|
1027
|
-
|
|
1029
|
+
const resolvedPlanPath = existsSync(planJsonPath) ? planJsonPath : existsSync(planReportPath) ? planReportPath : null;
|
|
1030
|
+
if (!resolvedPlanPath) {
|
|
1028
1031
|
// eslint-disable-next-line no-console
|
|
1029
1032
|
console.error('No plan report found. Run `plan` first or pass --scenarios.');
|
|
1030
1033
|
process.exit(1);
|
|
1031
1034
|
}
|
|
1032
|
-
const planReport = JSON.parse(readFileSync(
|
|
1035
|
+
const planReport = JSON.parse(readFileSync(resolvedPlanPath, 'utf-8'));
|
|
1033
1036
|
scenarios = (planReport.gapDetails || []).map((gap) => ({
|
|
1034
1037
|
id: gap.id,
|
|
1035
1038
|
name: gap.id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yasserkhanorg/e2e-agents",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
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",
|