qaa-agent 1.9.2 → 1.9.6

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 (43) hide show
  1. package/CHANGELOG.md +230 -179
  2. package/CLAUDE.md +720 -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 +792 -655
  8. package/agents/qaa-codebase-mapper.md +54 -1
  9. package/agents/qaa-discovery.md +431 -384
  10. package/agents/qaa-e2e-runner.md +717 -577
  11. package/agents/qaa-executor.md +966 -830
  12. package/agents/qaa-planner.md +14 -1
  13. package/agents/qaa-project-researcher.md +539 -400
  14. package/agents/qaa-scanner.md +86 -1
  15. package/agents/qaa-testid-injector.md +0 -1
  16. package/agents/qaa-validator.md +86 -1
  17. package/bin/install.cjs +374 -252
  18. package/bin/lib/context7-cache.cjs +299 -0
  19. package/bin/lib/intent-detector.cjs +490 -0
  20. package/commands/qa-audit.md +269 -126
  21. package/commands/qa-create-test-ado.md +439 -404
  22. package/commands/qa-create-test.md +672 -365
  23. package/commands/qa-fix.md +691 -513
  24. package/commands/qa-map.md +319 -139
  25. package/commands/qa-pr.md +63 -0
  26. package/commands/qa-research.md +212 -157
  27. package/commands/qa-start.md +62 -6
  28. package/commands/qa-test-report.md +254 -219
  29. package/commands/qa-testid.md +31 -0
  30. package/frameworks/cypress.json +54 -0
  31. package/frameworks/jest.json +59 -0
  32. package/frameworks/playwright.json +58 -0
  33. package/frameworks/pytest.json +59 -0
  34. package/frameworks/robot-framework.json +54 -0
  35. package/frameworks/selenium.json +65 -0
  36. package/frameworks/vitest.json +57 -0
  37. package/package.json +41 -38
  38. package/workflows/qa-analyze.md +100 -4
  39. package/workflows/qa-from-ticket.md +50 -2
  40. package/workflows/qa-gap.md +50 -2
  41. package/workflows/qa-start.md +2048 -1405
  42. package/workflows/qa-testid.md +50 -2
  43. package/workflows/qa-validate.md +50 -2
@@ -924,6 +924,60 @@ 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
+ ## MANDATORY verification — run ALL commands below, no exceptions, no skipping
949
+
950
+ Before returning control, copy-paste and run this ENTIRE block. Do NOT decide which commands "apply" — run all of them every time. The output confirms what happened; you do not get to assume the answer.
951
+
952
+ <bash_checklist>
953
+ Run this checklist verbatim before returning control:
954
+
955
+ ```bash
956
+ echo "=== CODEBASE-MAPPER CHECKLIST START ==="
957
+ echo "1. Focus area received:"
958
+ echo "${FOCUS_AREA:-MISSING}"
959
+ echo "2. Output dir:"
960
+ ls -d "${output_dir:-.qa-output}/codebase/" 2>/dev/null || echo "DIR_MISSING"
961
+ echo "3. Documents produced for this focus:"
962
+ ls "${output_dir:-.qa-output}"/codebase/*.md 2>/dev/null | wc -l
963
+ echo "4. File paths backticked (per philosophy):"
964
+ grep -cE '`[a-z][^`]+\.(ts|js|py|go|java)`' "${output_dir:-.qa-output}"/codebase/*.md 2>/dev/null
965
+ echo "5. Mock boundaries (testability focus):"
966
+ [ "$FOCUS_AREA" = "testability" ] && grep -ic "mock" "${output_dir:-.qa-output}/codebase/TESTABILITY.md" 2>/dev/null || echo "n/a"
967
+ echo "6. Risk levels (risk focus):"
968
+ [ "$FOCUS_AREA" = "risk" ] && grep -cE "HIGH|MEDIUM|LOW" "${output_dir:-.qa-output}/codebase/RISK_MAP.md" 2>/dev/null || echo "n/a"
969
+ echo "7. Code examples (patterns focus):"
970
+ [ "$FOCUS_AREA" = "patterns" ] && grep -c '```' "${output_dir:-.qa-output}/codebase/CODE_PATTERNS.md" 2>/dev/null || echo "n/a"
971
+ echo "8. Existing tests catalogued (existing-tests focus):"
972
+ [ "$FOCUS_AREA" = "existing-tests" ] && grep -ic "test" "${output_dir:-.qa-output}/codebase/TEST_ASSESSMENT.md" 2>/dev/null || echo "n/a"
973
+ echo "=== CODEBASE-MAPPER CHECKLIST END ==="
974
+ ```
975
+
976
+ **Rules:**
977
+ - Run the block AS-IS. Do not modify it. Do not split it.
978
+ - If any output shows a problem, fix it before returning.
979
+ - Do NOT return control to the parent agent until the block has been executed.
980
+ </bash_checklist>
927
981
  <success_criteria>
928
982
  - [ ] Focus area parsed correctly
929
983
  - [ ] Codebase explored thoroughly for focus area (3+ representative files read in depth)
@@ -935,4 +989,3 @@ Test the highest-risk gaps first:
935
989
  - [ ] No secrets or forbidden file contents leaked
936
990
  - [ ] Confirmation returned (not document contents)
937
991
  </success_criteria>
938
-