qaa-agent 1.9.2 → 1.9.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +206 -179
  2. package/CLAUDE.md +718 -557
  3. package/README.md +384 -357
  4. package/VERSION +1 -1
  5. package/agents/qa-pipeline-orchestrator.md +1739 -1425
  6. package/agents/qaa-analyzer.md +0 -1
  7. package/agents/qaa-bug-detective.md +790 -655
  8. package/agents/qaa-codebase-mapper.md +50 -1
  9. package/agents/qaa-discovery.md +421 -384
  10. package/agents/qaa-e2e-runner.md +715 -577
  11. package/agents/qaa-executor.md +947 -830
  12. package/agents/qaa-planner.md +14 -1
  13. package/agents/qaa-project-researcher.md +533 -400
  14. package/agents/qaa-scanner.md +77 -1
  15. package/agents/qaa-testid-injector.md +0 -1
  16. package/agents/qaa-validator.md +86 -1
  17. package/bin/install.cjs +375 -253
  18. package/bin/lib/context7-cache.cjs +299 -0
  19. package/bin/lib/intent-detector.cjs +488 -0
  20. package/commands/qa-audit.md +255 -126
  21. package/commands/qa-create-test.md +666 -365
  22. package/commands/qa-fix.md +684 -513
  23. package/commands/qa-map.md +283 -139
  24. package/commands/qa-pr.md +63 -0
  25. package/commands/qa-research.md +181 -157
  26. package/commands/qa-start.md +62 -6
  27. package/commands/qa-test-report.md +219 -219
  28. package/frameworks/cypress.json +54 -0
  29. package/frameworks/jest.json +59 -0
  30. package/frameworks/playwright.json +58 -0
  31. package/frameworks/pytest.json +59 -0
  32. package/frameworks/robot-framework.json +54 -0
  33. package/frameworks/selenium.json +65 -0
  34. package/frameworks/vitest.json +57 -0
  35. package/package.json +5 -2
  36. package/workflows/qa-analyze.md +100 -4
  37. package/workflows/qa-from-ticket.md +50 -2
  38. package/workflows/qa-gap.md +50 -2
  39. package/workflows/qa-start.md +2048 -1405
  40. package/workflows/qa-testid.md +50 -2
  41. package/workflows/qa-validate.md +50 -2
@@ -924,6 +924,56 @@ Test the highest-risk gaps first:
924
924
 
925
925
  </critical_rules>
926
926
 
927
+
928
+ <quality_gate>
929
+ Before considering codebase mapping complete, verify ALL of the following:
930
+
931
+ - [ ] Focus area received and acknowledged in the agent prompt (testability, risk, patterns, or existing-tests)
932
+ - [ ] Documents produced for the specified focus area:
933
+ - testability → TESTABILITY.md and TEST_SURFACE.md
934
+ - risk → RISK_MAP.md and CRITICAL_PATHS.md
935
+ - patterns → CODE_PATTERNS.md and API_CONTRACTS.md
936
+ - existing-tests → TEST_ASSESSMENT.md and COVERAGE_GAPS.md
937
+ - [ ] All file paths in produced docs are formatted with backticks (e.g., `src/services/payment.ts`)
938
+ - [ ] Every observation has a concrete file:line reference, not vague descriptions
939
+ - [ ] Mock boundaries documented (testability focus): "Mock X when testing Y"
940
+ - [ ] Risk levels assigned per item (risk focus): HIGH | MEDIUM | LOW with justification
941
+ - [ ] Code examples included with code patterns (patterns focus)
942
+ - [ ] Existing tests catalogued with their quality assessment (existing-tests focus)
943
+ - [ ] Output files written to ${output_dir}/codebase/
944
+
945
+ If any check fails, fix the issue before returning. Do not deliver codebase docs that fail their own quality gate.
946
+ </quality_gate>
947
+
948
+ <bash_checklist>
949
+ Run this checklist verbatim before returning control:
950
+
951
+ ```bash
952
+ echo "=== CODEBASE-MAPPER CHECKLIST START ==="
953
+ echo "1. Focus area received:"
954
+ echo "${FOCUS_AREA:-MISSING}"
955
+ echo "2. Output dir:"
956
+ ls -d "${output_dir:-.qa-output}/codebase/" 2>/dev/null || echo "DIR_MISSING"
957
+ echo "3. Documents produced for this focus:"
958
+ ls "${output_dir:-.qa-output}"/codebase/*.md 2>/dev/null | wc -l
959
+ echo "4. File paths backticked (per philosophy):"
960
+ grep -cE '`[a-z][^`]+\.(ts|js|py|go|java)`' "${output_dir:-.qa-output}"/codebase/*.md 2>/dev/null
961
+ echo "5. Mock boundaries (testability focus):"
962
+ [ "$FOCUS_AREA" = "testability" ] && grep -ic "mock" "${output_dir:-.qa-output}/codebase/TESTABILITY.md" 2>/dev/null || echo "n/a"
963
+ echo "6. Risk levels (risk focus):"
964
+ [ "$FOCUS_AREA" = "risk" ] && grep -cE "HIGH|MEDIUM|LOW" "${output_dir:-.qa-output}/codebase/RISK_MAP.md" 2>/dev/null || echo "n/a"
965
+ echo "7. Code examples (patterns focus):"
966
+ [ "$FOCUS_AREA" = "patterns" ] && grep -c '```' "${output_dir:-.qa-output}/codebase/CODE_PATTERNS.md" 2>/dev/null || echo "n/a"
967
+ echo "8. Existing tests catalogued (existing-tests focus):"
968
+ [ "$FOCUS_AREA" = "existing-tests" ] && grep -ic "test" "${output_dir:-.qa-output}/codebase/TEST_ASSESSMENT.md" 2>/dev/null || echo "n/a"
969
+ echo "=== CODEBASE-MAPPER CHECKLIST END ==="
970
+ ```
971
+
972
+ **Rules:**
973
+ - Run the block AS-IS. Do not modify it. Do not split it.
974
+ - If any output shows a problem, fix it before returning.
975
+ - Do NOT return control to the parent agent until the block has been executed.
976
+ </bash_checklist>
927
977
  <success_criteria>
928
978
  - [ ] Focus area parsed correctly
929
979
  - [ ] Codebase explored thoroughly for focus area (3+ representative files read in depth)
@@ -935,4 +985,3 @@ Test the highest-risk gaps first:
935
985
  - [ ] No secrets or forbidden file contents leaked
936
986
  - [ ] Confirmation returned (not document contents)
937
987
  </success_criteria>
938
-