@capagents/forgeqe 3.3.8 → 3.3.9

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 (130) hide show
  1. package/HOW_TO_USE.md +92 -0
  2. package/dist/a11y-runtime.mjs +3204 -0
  3. package/dist/docs-site/docs/area-quality/index.html +90 -2
  4. package/dist/docs-site/docs/overview/index.html +1 -1
  5. package/dist/docs-site/docs/search.js +1 -1
  6. package/dist/forgeqe.js +2215 -2094
  7. package/dist/template.html +69 -70
  8. package/dist/web/assets/{3d-force-graph-bqf5EzgX.js → 3d-force-graph-BPsVSYjw.js} +1 -1
  9. package/dist/web/assets/Agent-DY6pRvcD.js +10 -0
  10. package/dist/web/assets/{AgentWork-Dqa1UKaU.js → AgentWork-Brch_Mn3.js} +1 -1
  11. package/dist/web/assets/ApiTests-BtWKVPw5.js +17 -0
  12. package/dist/web/assets/{Browse-W54t28gX.js → Browse-DbIFxsy8.js} +1 -1
  13. package/dist/web/assets/Chat-BWiH0XGV.js +3 -0
  14. package/dist/web/assets/{CommandPalette-DnIxy2ga.js → CommandPalette-DfoEUEL6.js} +1 -1
  15. package/dist/web/assets/{Compare-VdisgqmY.js → Compare-DTZ_BW1P.js} +1 -1
  16. package/dist/web/assets/Cost-DDghPWch.js +1 -0
  17. package/dist/web/assets/Data-DZlKsTwA.js +6 -0
  18. package/dist/web/assets/Desktop-DTIZ62Pi.js +1 -0
  19. package/dist/web/assets/DesktopReview-B8-dSGJH.js +2 -0
  20. package/dist/web/assets/Evidence-BYw_Q4Ul.js +1 -0
  21. package/dist/web/assets/Explore-BL_c5WK1.js +2 -0
  22. package/dist/web/assets/{Features-CIhQJMAK.js → Features-DrFNrvbh.js} +1 -1
  23. package/dist/web/assets/Flags-CHrDwhqG.js +2 -0
  24. package/dist/web/assets/Flaky-DtcLf8h6.js +1 -0
  25. package/dist/web/assets/Impact-CMU_ijo2.js +3 -0
  26. package/dist/web/assets/Jobs-BjybdQb_.js +5 -0
  27. package/dist/web/assets/KindPage-VK-Vgkzv.js +6 -0
  28. package/dist/web/assets/{LiveDevice-CZZRu6xl.js → LiveDevice-BqL1P33F.js} +1 -1
  29. package/dist/web/assets/Migration-7BI7iXIv.js +8 -0
  30. package/dist/web/assets/Mobile-AgAhvlVL.js +1 -0
  31. package/dist/web/assets/Observability-5r36Xf3d.js +1 -0
  32. package/dist/web/assets/{OwnItems-BinKnGAs.js → OwnItems-CqCOuvba.js} +4 -4
  33. package/dist/web/assets/PageAgent-00NQxK49.js +1 -0
  34. package/dist/web/assets/Product-B75ztJFn.js +6 -0
  35. package/dist/web/assets/Production-lIUlcjf0.js +1 -0
  36. package/dist/web/assets/Quality-BlRpB6mx.js +1 -0
  37. package/dist/web/assets/Readiness-CesaSDtp.js +1 -0
  38. package/dist/web/assets/Record-CLy9jQ5N.js +1 -0
  39. package/dist/web/assets/Regression-BjpZrkfK.js +5 -0
  40. package/dist/web/assets/{RelationGraph-CszRGlEp.js → RelationGraph-ClPBGuMw.js} +1 -1
  41. package/dist/web/assets/{Reports-BPD6ODz4.js → Reports-Du8SNiHM.js} +2 -2
  42. package/dist/web/assets/Requirements-Dr1iLoMc.js +2 -0
  43. package/dist/web/assets/Responsive-DcD6MLzG.js +3 -0
  44. package/dist/web/assets/{RunDiff-aEt4BZYX.js → RunDiff-cLSFOsfC.js} +1 -1
  45. package/dist/web/assets/{Settings-D188FdLb.js → Settings-CUT5ggDd.js} +16 -16
  46. package/dist/web/assets/SiteScan-iUfWBeLV.js +5 -0
  47. package/dist/web/assets/{Steps-CgQ8E_Vv.js → Steps-DJYwIiDu.js} +2 -2
  48. package/dist/web/assets/{TestData-Dj73b-hW.js → TestData-DqEcL5o4.js} +2 -2
  49. package/dist/web/assets/TestManagement-mBcfWTVH.js +4 -0
  50. package/dist/web/assets/{WhatsNew-D-5E8NFV.js → WhatsNew-DrPf6l9-.js} +1 -1
  51. package/dist/web/assets/{agentSettingsSheet-5JMUsoLi.js → agentSettingsSheet-DyaVNewv.js} +1 -1
  52. package/dist/web/assets/api-Dr3U7W5w.js +1 -0
  53. package/dist/web/assets/{choice-C4-yW2x9.js → choice-W0qOx_1k.js} +1 -1
  54. package/dist/web/assets/{coverage-pqIlfEP0.js → coverage-DbHm8BUP.js} +3 -3
  55. package/dist/web/assets/{dataParts-bqVlyE0X.js → dataParts-Bdf97ZOD.js} +3 -3
  56. package/dist/web/assets/{desktopAppPath-BDSG0kvw.js → desktopAppPath-kQmQOW6a.js} +1 -1
  57. package/dist/web/assets/{flowTheme-DU5XjJr-.js → flowTheme-CVnIjV_m.js} +1 -1
  58. package/dist/web/assets/frame-CavkQick.js +13 -0
  59. package/dist/web/assets/index-BaEsXdFc.css +2 -0
  60. package/dist/web/assets/index-C1kXcI0E.js +57 -0
  61. package/dist/web/assets/line-icons-Cwj9OmCz.js +1 -0
  62. package/dist/web/assets/{logos-P2LOMyTK.js → logos-Cf-Wf5ex.js} +1 -1
  63. package/dist/web/assets/{markdown-DgUpsCX8.js → markdown-Bvv6oj4v.js} +3 -3
  64. package/dist/web/assets/{nav-IMBXh0Jg.js → nav-DVPiPhOy.js} +1 -1
  65. package/dist/web/assets/pageBack-Blig1Uqs.js +3 -0
  66. package/dist/web/assets/{palette-CeG8IIbL.js → palette-DwrGI2Fp.js} +1 -1
  67. package/dist/web/assets/{paletteCommands-Isq1rLs-.js → paletteCommands-DOF2o-rv.js} +1 -1
  68. package/dist/web/assets/parts-DgJ2y_ic.js +1 -0
  69. package/dist/web/assets/{productParts-ClDOvIlz.js → productParts-B78jij3z.js} +1 -1
  70. package/dist/web/assets/qualityParts-t5t9kEKG.js +2 -0
  71. package/dist/web/assets/{recordTest-BBDRjct0.js → recordTest-BbXVOuGZ.js} +1 -1
  72. package/dist/web/assets/{route-oDy8sV6H.js → route-9BkoTWUE.js} +1 -1
  73. package/dist/web/assets/{sectionList-B651VPon.js → sectionList-DMyhAqst.js} +1 -1
  74. package/dist/web/assets/{step-mark-CaKf4dAR.js → step-mark-Bu6fNKW8.js} +1 -1
  75. package/dist/web/assets/stepper-CE4yOLqn.js +1 -0
  76. package/dist/web/assets/wizardParts-Bxb9UG5k.js +1 -0
  77. package/dist/web/index.html +11 -11
  78. package/docs/ForgeQE-Static-Analysis-Report-4008e9ee.html +207 -0
  79. package/docs/ForgeQE-Static-Analysis-Report-4008e9ee.pdf +0 -0
  80. package/docs/user-guide.html +89 -1
  81. package/forgeqe.example.yaml +1 -1
  82. package/package.json +2 -2
  83. package/prompts/brain.md +7 -0
  84. package/py/forgeqe_engine/cli.py +57 -0
  85. package/py/forgeqe_engine/diagnostics.py +32 -2
  86. package/py/forgeqe_engine/logins.py +11 -0
  87. package/py/forgeqe_engine/persona.py +90 -1
  88. package/py/forgeqe_engine/scan.py +202 -0
  89. package/py/forgeqe_engine/seo.py +95 -0
  90. package/py/forgeqe_engine/seo_analytics.mjs +59 -0
  91. package/py/forgeqe_engine/seo_facts.mjs +63 -0
  92. package/py/forgeqe_engine/seo_site.mjs +36 -0
  93. package/py/forgeqe_engine/service.py +3 -2
  94. package/dist/web/assets/Agent-8Y47YLdR.js +0 -10
  95. package/dist/web/assets/ApiTests-BOdFugGs.js +0 -17
  96. package/dist/web/assets/Chat-DiIxGONU.js +0 -3
  97. package/dist/web/assets/Cost-qfQZZB7-.js +0 -1
  98. package/dist/web/assets/Data-CDyRsQ0U.js +0 -6
  99. package/dist/web/assets/Desktop-DEYZusRQ.js +0 -1
  100. package/dist/web/assets/DesktopReview-4YU21PCr.js +0 -2
  101. package/dist/web/assets/Evidence-l0_yQUpE.js +0 -1
  102. package/dist/web/assets/Explore-DkybdJjI.js +0 -2
  103. package/dist/web/assets/Flags-OCOPCt4-.js +0 -2
  104. package/dist/web/assets/Flaky-B9EYZK9j.js +0 -1
  105. package/dist/web/assets/Impact-BXDjDf_Q.js +0 -3
  106. package/dist/web/assets/Jobs-COZhEsxq.js +0 -5
  107. package/dist/web/assets/KindPage-DIeBVPZA.js +0 -6
  108. package/dist/web/assets/Migration-BTCG2m5B.js +0 -8
  109. package/dist/web/assets/Mobile-CLT5OlqS.js +0 -1
  110. package/dist/web/assets/Observability-Nd9uj2hQ.js +0 -1
  111. package/dist/web/assets/PageAgent-DrELdLct.js +0 -1
  112. package/dist/web/assets/Product-1SMtAUqO.js +0 -6
  113. package/dist/web/assets/Production-C5q3LjAR.js +0 -1
  114. package/dist/web/assets/Quality-DVb1L07l.js +0 -1
  115. package/dist/web/assets/Readiness-BN1VQDip.js +0 -1
  116. package/dist/web/assets/Record-C8ohbDBp.js +0 -1
  117. package/dist/web/assets/Regression-mAzdSpwD.js +0 -5
  118. package/dist/web/assets/Requirements-D1xVywdV.js +0 -2
  119. package/dist/web/assets/Responsive-DnK0Myzs.js +0 -3
  120. package/dist/web/assets/TestManagement-DxPMUroR.js +0 -4
  121. package/dist/web/assets/api-D_HT-I9y.js +0 -1
  122. package/dist/web/assets/frame-Dt9QcYNX.js +0 -13
  123. package/dist/web/assets/index-BdWLAq_n.js +0 -57
  124. package/dist/web/assets/index-CpAtlS2x.css +0 -2
  125. package/dist/web/assets/line-icons-CwCZidXs.js +0 -1
  126. package/dist/web/assets/pageBack-DwhsvsK7.js +0 -3
  127. package/dist/web/assets/parts-DVUUpFdW.js +0 -1
  128. package/dist/web/assets/qualityParts-DF3ZMgo5.js +0 -1
  129. package/dist/web/assets/stepper-uX1iUWez.js +0 -1
  130. package/dist/web/assets/wizardParts-qs3g8O6h.js +0 -1
package/HOW_TO_USE.md CHANGED
@@ -243,6 +243,7 @@ forgeqe features # or /features in the shell; --config forgeqe.yaml
243
243
  | API | **API load and security checks**: Load and latency testing of a contract set's read-only calls (virtual users, percentiles, throughput and error rate against limits), and robustness and API-security checks (OWASP API Top 10): malformed input, calls without credentials, leaked errors, mass assignment and missing security headers. | `run_api_load`, `run_api_security` | [docs](#api-and-contract-tests) |
244
244
  | Quality | **Load testing with JMeter**: Load, stress, soak and spike tests with Apache JMeter: the coding agent writes a .jmx plan from your words, ForgeQE checks and smoke-runs it, then runs your load headless on a test environment and reports response times, throughput and errors per request against your limits, with JMeter's HTML report and junit.xml. Teams' own .jmx plans run too. | `perf_plans`, `perf_check`, `perf_run`, `perf_write`, `perf_compare`, `perf_report`, `perf_analyse`, `perf_predict`, `perf_convert`, `perf_export_loadrunner`, `perf_import`, `perf_results`, `perf_strategy` | [docs](#load-testing-with-jmeter) |
245
245
  | Quality | **Accessibility and page performance**: Checks every page a run visits against WCAG rules and measures its Core Web Vitals, against budgets, with trends over time per page. | `quality_report`, `quality_trends` | [docs](#accessibility-and-performance-budgets) |
246
+ | Quality | **Site scan: SEO, analytics, WCAG**: Checks up to 25 pages, with no model, for accessibility and WCAG coverage, SEO, analytics tags and Core Web Vitals; HTML and PDF report, and a dashboard over time. | `site_scan`, `quality_dashboard`, `wcag_coverage`, `a11y_suite` | [docs](#site-scan-accessibility-seo-and-analytics) |
246
247
  | Quality | **Accessibility testing with personas**: A browser agent does a goal as a person with a disability would (a blind screen reader user, keyboard only, low vision, colour blind, cognitive, or the project's own personas) and records each barrier with its WCAG criterion and severity. Not functional testing. | `accessibility_test`, `accessibility_personas` | [docs](#accessibility-testing-with-personas) |
247
248
  | Quality | **Visual comparison with baselines**: Compares each page a run captures with its approved baseline and shows what changed; intended changes become the new baseline once the user agrees. | `visual_compare`, `visual_approve` | [docs](#visual-comparison) |
248
249
  | Quality | **Defect intelligence: trends and prediction**: Groups failures into defects, keeps their history across suites (new, known, gone, back again), and gives defect trends and where a change is likely to cause defects, with the cases to run first. | `defect_trends`, `predict_defects` | [docs](#bugs-for-failures) |
@@ -8307,6 +8308,97 @@ A persona file can come from the repository, so ForgeQE reads it strictly: only
8307
8308
 
8308
8309
  A simulated persona is not a real user, and automated checks find only part of the problems. Treat the result as a first pass, and confirm important barriers with people who use assistive technology.
8309
8310
 
8311
+ **WCAG coverage of a session.** Each session also writes `coverage.html` and `coverage.csv` beside its report: every
8312
+ success criterion of the session's standard with one result, the worst that holds. **Failed** means a rule failed or a
8313
+ persona met a barrier of it. **Needs review** means a rule ran and could not decide (axe-core's "incomplete", IBM's
8314
+ potential violations), so a person has to look. **Exercised by a persona** means a persona who uses the page that way
8315
+ (keyboard only for focus order, 200% zoom for reflow) reached the goal with no barrier of it. **Rules passed** means
8316
+ its rules ran and passed. **Not tested** means nothing checked it. On the page, the session's **Coverage** tab shows
8317
+ the same; in a terminal, `forgeqe a11y coverage --session <folder name>`.
8318
+
8319
+ ### Site scan: accessibility, SEO and analytics
8320
+
8321
+ A site scan opens up to 25 pages in ForgeQE's browser, one after another, with no model and nothing clicked, typed or
8322
+ submitted, and checks each page:
8323
+
8324
+ - **Accessibility**: the rule engine and standard of `quality.accessibility` (or the ones you pick), the rules that
8325
+ failed, and the rules that **need a person's review**.
8326
+ - **WCAG coverage**: every success criterion of the standard, with its result (see above).
8327
+ - **SEO**: the status code, HTTPS, whether search engines may index it (robots meta tag, robots.txt), the title and
8328
+ meta description (length, duplicates), one `<h1>`, heading order, the language, the canonical link, language
8329
+ versions (hreflang), the mobile viewport, mixed content, page weight, image alt attributes, link text, the social
8330
+ preview (Open Graph), structured data (JSON-LD) and the favicon; for each site, robots.txt and the sitemap. Each page
8331
+ gets a score: the weighted share of its checks that passed, a warning counting half.
8332
+ - **Analytics**: which tags each page loads (Google Analytics 4, Universal Analytics, Tag Manager, Google Ads, Adobe
8333
+ Analytics, Meta Pixel, Microsoft Clarity, Hotjar, Segment, Mixpanel, Amplitude, Heap, Matomo, Plausible, PostHog,
8334
+ LinkedIn Insight, TikTok Pixel, Microsoft Advertising UET, Piano Analytics), their ids, and what is wrong: a tag on
8335
+ some pages of a site and not others, a tag loaded twice, a tag loaded that sent nothing, Universal Analytics (it no
8336
+ longer collects data), and **hits sent before anyone answered the consent banner**. Google's consent mode is read
8337
+ from the hits: a cookieless ping while consent is denied is not counted as tracking.
8338
+ - **Performance**: each page's Core Web Vitals of its first load against Google's thresholds. INP needs an
8339
+ interaction, which a scan does not make.
8340
+
8341
+ Each page is opened fresh, with no consent given. Signed-in pages use the saved sessions of your logins (`forgeqe
8342
+ login`); a scan never types a password.
8343
+
8344
+ **Web app.** Open **Site scan** (Quality), paste the addresses or pick a CSV (every cell that is an http(s) address
8345
+ is used), pick the standard and engine, and press **Scan**. Each scan's result has tabs for each part, and buttons
8346
+ for the HTML report, the PDF and the coverage CSV. The **Dashboard** shows each site over 7, 30 or 90 days or all
8347
+ time: violations, SEO score and LCP per run, the analytics tools, and the WCAG rules newly failing or fixed. **WCAG
8348
+ coverage** shows what ForgeQE can check for a standard and engine, with CSV, HTML and PDF downloads.
8349
+
8350
+ **Terminal**
8351
+
8352
+ ```bash
8353
+ forgeqe scan https://shop.test/ https://shop.test/basket --standard wcag22aa --pdf
8354
+ forgeqe scan --csv pages.csv # every http(s) address in the file (inside the project)
8355
+ forgeqe a11y coverage --standard wcag22aa --engine ibm # what can be checked, criterion by criterion
8356
+ forgeqe a11y coverage --scan 20261201-112739 # a scan's results
8357
+ forgeqe quality dashboard --range 90d
8358
+ ```
8359
+
8360
+ A scan is a run folder of the reports folder: `scan-report.html` (no script, nothing loaded from outside), and
8361
+ `scan-report.pdf` printed from it by ForgeQE's browser with JavaScript off. `accessibility.json`, `performance.json` and
8362
+ `seo.json` hold the data, so **Quality** lists the scan too and its results join the history the dashboard reads. It
8363
+ exits 1 when a page could not be opened or a WCAG rule failed, so a pipeline can gate on it.
8364
+
8365
+ **Regression suites: run it all again, with no model.** A suite keeps what to check again in the repository,
8366
+ `.forgeqe/accessibility-suites/<name>.yaml`: the pages of a scan, and persona sessions with each persona's settings
8367
+ frozen in (device, zoom, text size, colour vision, motion, contrast, keyboard or screen reader) and the journey each
8368
+ persona's run recorded: every key a keyboard user pressed and what it focused, every swipe and double tap of a screen
8369
+ reader user and what it reached, every click and field of a persona who uses the mouse.
8370
+
8371
+ ```bash
8372
+ forgeqe a11y suite create checkout --scan 20261201-113906 --session 20261201-122718-find-the-contact-page
8373
+ forgeqe a11y suite run checkout # no model: replays the journeys, scans the pages
8374
+ forgeqe a11y suite baseline checkout --run 20261201-123219 # a person approves it (types the name)
8375
+ forgeqe a11y suite run checkout # later: exits 1 when anything got worse than the baseline
8376
+ forgeqe a11y suite run checkout --heal # the persona agent goes through again where a journey broke (a model's run)
8377
+ forgeqe a11y suite tests checkout # JavaScript Playwright tests in a11y-tests/checkout
8378
+ ```
8379
+
8380
+ A run fails only on what got worse than the baseline: a WCAG criterion that now fails, a rule newly failing on a page,
8381
+ a page that no longer opens, an SEO score down by 5 or more, an analytics tag gone, a persona who no longer gets
8382
+ through (a key that now focuses something else, an element a screen reader user activated that is gone, a link that no
8383
+ longer leads where it did). A replay judges no barrier anew; `--heal` has the persona agent go through again where the
8384
+ page changed, and its new journey replaces the old one only when a person approves that run as the baseline.
8385
+
8386
+ **The JavaScript tests** need no model and no ForgeQE: `cd a11y-tests/checkout && npm install && npx playwright install
8387
+ chrome && npx playwright test`. They hold no recorded value as code: the pages, personas and journeys are data in
8388
+ `suite.json`, judged against `baseline.json` by the same runtime ForgeQE's own runs use (`forgeqe-a11y.mjs`), with
8389
+ axe-core 4.14.0 and ForgeQE's SEO and analytics scripts beside them. Values a journey types come from environment
8390
+ variables (the README names them). They write `results/snapshot.json`, `junit.xml` and an HTML report; `forgeqe a11y
8391
+ suite baseline checkout --from a11y-tests/checkout/results/snapshot.json` makes a CI run the baseline. Write them again
8392
+ after the suite or its baseline changes.
8393
+
8394
+ On the page: **Accessibility › Suites** makes a suite from a scan and sessions, runs it, shows each run against the
8395
+ baseline, approves a run as the baseline (type the suite's name) and writes the tests.
8396
+
8397
+ **Rules never prove conformance.** ForgeQE counts a criterion as covered by rules only when a rule the engine actually
8398
+ runs for the standard checks it: axe-core's experimental and deprecated rules are left out, because axe-core does not
8399
+ run them under a standard's tags. With axe-core 4.14, 21 of the 55 WCAG 2.2 AA criteria have rules; with IBM Equal
8400
+ Access 4.0, 33. The personas exercise most of the rest; the criteria neither reaches still need a person.
8401
+
8310
8402
  ### Requirement reviews
8311
8403
 
8312
8404
  The **Requirements Agent** (the `Requirement_Agent` package, shipped inside ForgeQE) reviews a requirement before it is