@yasserkhanorg/e2e-agents 1.8.1 → 1.8.2
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/agent/plan.d.ts +29 -0
- package/dist/agent/plan.d.ts.map +1 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +15 -4
- package/dist/cli/commands/generate.js +1 -1
- package/dist/cli/commands/plan.d.ts.map +1 -1
- package/dist/cli/commands/plan.js +51 -18
- package/dist/cli/commands/plan_crew.d.ts +11 -0
- package/dist/cli/commands/plan_crew.d.ts.map +1 -0
- package/dist/cli/commands/plan_crew.js +149 -0
- package/dist/cli/parse_args.d.ts.map +1 -1
- package/dist/cli/parse_args.js +2 -0
- package/dist/cli/types.d.ts +1 -0
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/cli/usage.d.ts.map +1 -1
- package/dist/cli/usage.js +2 -0
- package/dist/esm/api.js +15 -4
- package/dist/esm/cli/commands/generate.js +1 -1
- package/dist/esm/cli/commands/plan.js +52 -19
- package/dist/esm/cli/commands/plan_crew.js +143 -0
- package/dist/esm/cli/parse_args.js +2 -0
- package/dist/esm/cli/usage.js +2 -0
- package/dist/esm/mcp-server.js +147 -6
- package/dist/esm/provider_factory.js +11 -0
- package/dist/mcp-server.d.ts +33 -0
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +150 -5
- package/dist/provider_factory.d.ts +5 -0
- package/dist/provider_factory.d.ts.map +1 -1
- package/dist/provider_factory.js +11 -0
- package/package.json +4 -3
- package/schemas/plan.schema.json +158 -0
package/schemas/plan.schema.json
CHANGED
|
@@ -280,6 +280,68 @@
|
|
|
280
280
|
},
|
|
281
281
|
"additionalProperties": false
|
|
282
282
|
},
|
|
283
|
+
"crew": {
|
|
284
|
+
"type": "object",
|
|
285
|
+
"required": [
|
|
286
|
+
"workflow",
|
|
287
|
+
"providerOverride",
|
|
288
|
+
"summary",
|
|
289
|
+
"impactedFlows",
|
|
290
|
+
"strategyEntries",
|
|
291
|
+
"testDesigns",
|
|
292
|
+
"crossImpacts",
|
|
293
|
+
"regressionRisks",
|
|
294
|
+
"findings",
|
|
295
|
+
"warnings",
|
|
296
|
+
"timings"
|
|
297
|
+
],
|
|
298
|
+
"properties": {
|
|
299
|
+
"workflow": {"type": "string"},
|
|
300
|
+
"providerOverride": {"type": "string"},
|
|
301
|
+
"summary": {
|
|
302
|
+
"type": "object",
|
|
303
|
+
"required": [
|
|
304
|
+
"impactedFlows",
|
|
305
|
+
"strategyEntries",
|
|
306
|
+
"testDesigns",
|
|
307
|
+
"crossImpacts",
|
|
308
|
+
"highRiskCrossImpacts",
|
|
309
|
+
"regressionRisks",
|
|
310
|
+
"findings",
|
|
311
|
+
"generatedSpecs",
|
|
312
|
+
"manualReviewEntries",
|
|
313
|
+
"totalCostUSD",
|
|
314
|
+
"totalTokens"
|
|
315
|
+
],
|
|
316
|
+
"properties": {
|
|
317
|
+
"impactedFlows": {"type": "number"},
|
|
318
|
+
"strategyEntries": {"type": "number"},
|
|
319
|
+
"testDesigns": {"type": "number"},
|
|
320
|
+
"crossImpacts": {"type": "number"},
|
|
321
|
+
"highRiskCrossImpacts": {"type": "number"},
|
|
322
|
+
"regressionRisks": {"type": "number"},
|
|
323
|
+
"findings": {"type": "number"},
|
|
324
|
+
"generatedSpecs": {"type": "number"},
|
|
325
|
+
"manualReviewEntries": {"type": "number"},
|
|
326
|
+
"totalCostUSD": {"type": "number"},
|
|
327
|
+
"totalTokens": {"type": "number"}
|
|
328
|
+
},
|
|
329
|
+
"additionalProperties": false
|
|
330
|
+
},
|
|
331
|
+
"impactedFlows": {"type": "array", "items": {"$ref": "#/$defs/flowDecision"}},
|
|
332
|
+
"strategyEntries": {"type": "array", "items": {"$ref": "#/$defs/strategyEntry"}},
|
|
333
|
+
"testDesigns": {"type": "array", "items": {"$ref": "#/$defs/testDesign"}},
|
|
334
|
+
"crossImpacts": {"type": "array", "items": {"$ref": "#/$defs/crossImpact"}},
|
|
335
|
+
"regressionRisks": {"type": "array", "items": {"$ref": "#/$defs/regressionRisk"}},
|
|
336
|
+
"findings": {"type": "array", "items": {"$ref": "#/$defs/finding"}},
|
|
337
|
+
"warnings": {"type": "array", "items": {"type": "string"}},
|
|
338
|
+
"timings": {
|
|
339
|
+
"type": "object",
|
|
340
|
+
"additionalProperties": {"type": "number"}
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"additionalProperties": false
|
|
344
|
+
},
|
|
283
345
|
"metrics": {
|
|
284
346
|
"type": "object",
|
|
285
347
|
"required": [
|
|
@@ -327,6 +389,102 @@
|
|
|
327
389
|
"details": {"type": "string"}
|
|
328
390
|
},
|
|
329
391
|
"additionalProperties": false
|
|
392
|
+
},
|
|
393
|
+
"flowDecision": {
|
|
394
|
+
"type": "object",
|
|
395
|
+
"required": ["flowId", "flowName", "routeFamily", "changedFiles", "evidence", "evidenceSource", "confidence", "existingSpecs", "action", "priority"],
|
|
396
|
+
"properties": {
|
|
397
|
+
"flowId": {"type": "string"},
|
|
398
|
+
"flowName": {"type": "string"},
|
|
399
|
+
"routeFamily": {"type": "string"},
|
|
400
|
+
"changedFiles": {"type": "array", "items": {"type": "string"}},
|
|
401
|
+
"evidence": {"type": "string"},
|
|
402
|
+
"evidenceSource": {"enum": ["deterministic", "ai", "hybrid"]},
|
|
403
|
+
"confidence": {"type": "number"},
|
|
404
|
+
"existingSpecs": {"type": "array", "items": {"type": "string"}},
|
|
405
|
+
"action": {"enum": ["create_spec", "update_spec", "skip"]},
|
|
406
|
+
"priority": {"enum": ["P0", "P1", "P2"]},
|
|
407
|
+
"userActions": {"type": "array", "items": {"type": "string"}}
|
|
408
|
+
},
|
|
409
|
+
"additionalProperties": true
|
|
410
|
+
},
|
|
411
|
+
"strategyEntry": {
|
|
412
|
+
"type": "object",
|
|
413
|
+
"required": ["flowId", "flowName", "priority", "approach", "rationale", "testCategories", "crossImpactRisk"],
|
|
414
|
+
"properties": {
|
|
415
|
+
"flowId": {"type": "string"},
|
|
416
|
+
"flowName": {"type": "string"},
|
|
417
|
+
"priority": {"enum": ["P0", "P1", "P2"]},
|
|
418
|
+
"approach": {"enum": ["full-test", "smoke-test", "skip", "manual-review"]},
|
|
419
|
+
"rationale": {"type": "string"},
|
|
420
|
+
"testCategories": {"type": "array", "items": {"type": "string"}},
|
|
421
|
+
"crossImpactRisk": {"enum": ["high", "medium", "low", "none"]}
|
|
422
|
+
},
|
|
423
|
+
"additionalProperties": false
|
|
424
|
+
},
|
|
425
|
+
"testDesign": {
|
|
426
|
+
"type": "object",
|
|
427
|
+
"required": ["flowId", "flowName", "testCases"],
|
|
428
|
+
"properties": {
|
|
429
|
+
"flowId": {"type": "string"},
|
|
430
|
+
"flowName": {"type": "string"},
|
|
431
|
+
"testCases": {
|
|
432
|
+
"type": "array",
|
|
433
|
+
"items": {
|
|
434
|
+
"type": "object",
|
|
435
|
+
"required": ["name", "type", "preconditions", "steps", "expectedOutcome", "priority", "rationale"],
|
|
436
|
+
"properties": {
|
|
437
|
+
"name": {"type": "string"},
|
|
438
|
+
"type": {"enum": ["happy-path", "edge-case", "boundary", "negative", "state-transition", "race-condition", "permission", "accessibility", "performance"]},
|
|
439
|
+
"preconditions": {"type": "array", "items": {"type": "string"}},
|
|
440
|
+
"steps": {"type": "array", "items": {"type": "string"}},
|
|
441
|
+
"expectedOutcome": {"type": "string"},
|
|
442
|
+
"priority": {"enum": ["P0", "P1", "P2"]},
|
|
443
|
+
"rationale": {"type": "string"}
|
|
444
|
+
},
|
|
445
|
+
"additionalProperties": false
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
"additionalProperties": false
|
|
450
|
+
},
|
|
451
|
+
"crossImpact": {
|
|
452
|
+
"type": "object",
|
|
453
|
+
"required": ["sourceFamily", "affectedFamily", "sharedDependency", "riskLevel", "evidence"],
|
|
454
|
+
"properties": {
|
|
455
|
+
"sourceFamily": {"type": "string"},
|
|
456
|
+
"affectedFamily": {"type": "string"},
|
|
457
|
+
"sharedDependency": {"type": "string"},
|
|
458
|
+
"riskLevel": {"enum": ["high", "medium", "low"]},
|
|
459
|
+
"evidence": {"type": "string"}
|
|
460
|
+
},
|
|
461
|
+
"additionalProperties": false
|
|
462
|
+
},
|
|
463
|
+
"regressionRisk": {
|
|
464
|
+
"type": "object",
|
|
465
|
+
"required": ["familyId", "filePattern", "riskScore", "reason", "historicalFailures"],
|
|
466
|
+
"properties": {
|
|
467
|
+
"familyId": {"type": "string"},
|
|
468
|
+
"filePattern": {"type": "string"},
|
|
469
|
+
"riskScore": {"type": "number"},
|
|
470
|
+
"reason": {"type": "string"},
|
|
471
|
+
"historicalFailures": {"type": "number"}
|
|
472
|
+
},
|
|
473
|
+
"additionalProperties": false
|
|
474
|
+
},
|
|
475
|
+
"finding": {
|
|
476
|
+
"type": "object",
|
|
477
|
+
"required": ["id", "type", "severity", "source", "summary", "details", "relatedFlows"],
|
|
478
|
+
"properties": {
|
|
479
|
+
"id": {"type": "string"},
|
|
480
|
+
"type": {"enum": ["bug", "gap", "risk", "flaky"]},
|
|
481
|
+
"severity": {"enum": ["critical", "high", "medium", "low"]},
|
|
482
|
+
"source": {"enum": ["strategist", "test-designer", "cross-impact", "regression-advisor", "impact-analyst", "coverage-evaluator", "generator", "executor", "healer", "explorer"]},
|
|
483
|
+
"summary": {"type": "string"},
|
|
484
|
+
"details": {"type": "string"},
|
|
485
|
+
"relatedFlows": {"type": "array", "items": {"type": "string"}}
|
|
486
|
+
},
|
|
487
|
+
"additionalProperties": false
|
|
330
488
|
}
|
|
331
489
|
},
|
|
332
490
|
"additionalProperties": false
|