@capagents/forgeqe 3.3.7 → 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.
- package/HOW_TO_USE.md +92 -0
- package/dist/a11y-runtime.mjs +3204 -0
- package/dist/docs-site/docs/area-quality/index.html +90 -2
- package/dist/docs-site/docs/overview/index.html +1 -1
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/forgeqe.js +2215 -2094
- package/dist/template.html +69 -70
- package/dist/web/assets/{3d-force-graph-Bsispdm1.js → 3d-force-graph-BPsVSYjw.js} +1 -1
- package/dist/web/assets/Agent-DY6pRvcD.js +10 -0
- package/dist/web/assets/{AgentWork-BugEUl60.js → AgentWork-Brch_Mn3.js} +1 -1
- package/dist/web/assets/ApiTests-BtWKVPw5.js +17 -0
- package/dist/web/assets/{Browse-Dl2Lneca.js → Browse-DbIFxsy8.js} +1 -1
- package/dist/web/assets/Chat-BWiH0XGV.js +3 -0
- package/dist/web/assets/{CommandPalette-B7YPDCOk.js → CommandPalette-DfoEUEL6.js} +1 -1
- package/dist/web/assets/{Compare-D6XsFmmb.js → Compare-DTZ_BW1P.js} +1 -1
- package/dist/web/assets/Cost-DDghPWch.js +1 -0
- package/dist/web/assets/Data-DZlKsTwA.js +6 -0
- package/dist/web/assets/Desktop-DTIZ62Pi.js +1 -0
- package/dist/web/assets/DesktopReview-B8-dSGJH.js +2 -0
- package/dist/web/assets/Evidence-BYw_Q4Ul.js +1 -0
- package/dist/web/assets/Explore-BL_c5WK1.js +2 -0
- package/dist/web/assets/{Features-N3_77mz-.js → Features-DrFNrvbh.js} +1 -1
- package/dist/web/assets/Flags-CHrDwhqG.js +2 -0
- package/dist/web/assets/Flaky-DtcLf8h6.js +1 -0
- package/dist/web/assets/Impact-CMU_ijo2.js +3 -0
- package/dist/web/assets/Jobs-BjybdQb_.js +5 -0
- package/dist/web/assets/KindPage-VK-Vgkzv.js +6 -0
- package/dist/web/assets/{LiveDevice-j7NZXIJZ.js → LiveDevice-BqL1P33F.js} +1 -1
- package/dist/web/assets/Migration-7BI7iXIv.js +8 -0
- package/dist/web/assets/Mobile-AgAhvlVL.js +1 -0
- package/dist/web/assets/Observability-5r36Xf3d.js +1 -0
- package/dist/web/assets/{OwnItems-BdiPfdTw.js → OwnItems-CqCOuvba.js} +4 -4
- package/dist/web/assets/PageAgent-00NQxK49.js +1 -0
- package/dist/web/assets/Product-B75ztJFn.js +6 -0
- package/dist/web/assets/Production-lIUlcjf0.js +1 -0
- package/dist/web/assets/Quality-BlRpB6mx.js +1 -0
- package/dist/web/assets/Readiness-CesaSDtp.js +1 -0
- package/dist/web/assets/Record-CLy9jQ5N.js +1 -0
- package/dist/web/assets/Regression-BjpZrkfK.js +5 -0
- package/dist/web/assets/{RelationGraph-Blfs7PhK.js → RelationGraph-ClPBGuMw.js} +1 -1
- package/dist/web/assets/{Reports-HQkTX4Kr.js → Reports-Du8SNiHM.js} +2 -2
- package/dist/web/assets/Requirements-Dr1iLoMc.js +2 -0
- package/dist/web/assets/Responsive-DcD6MLzG.js +3 -0
- package/dist/web/assets/{RunDiff-75a-smeg.js → RunDiff-cLSFOsfC.js} +1 -1
- package/dist/web/assets/{Settings-BaodIliH.js → Settings-CUT5ggDd.js} +16 -16
- package/dist/web/assets/SiteScan-iUfWBeLV.js +5 -0
- package/dist/web/assets/{Steps-ZPH_rTJh.js → Steps-DJYwIiDu.js} +2 -2
- package/dist/web/assets/{TestData-DUlTo5qt.js → TestData-DqEcL5o4.js} +2 -2
- package/dist/web/assets/TestManagement-mBcfWTVH.js +4 -0
- package/dist/web/assets/{WhatsNew-BrVNacPl.js → WhatsNew-DrPf6l9-.js} +1 -1
- package/dist/web/assets/{agentSettingsSheet-UCqUtdjq.js → agentSettingsSheet-DyaVNewv.js} +1 -1
- package/dist/web/assets/api-Dr3U7W5w.js +1 -0
- package/dist/web/assets/{choice-C4-yW2x9.js → choice-W0qOx_1k.js} +1 -1
- package/dist/web/assets/{coverage-pqIlfEP0.js → coverage-DbHm8BUP.js} +3 -3
- package/dist/web/assets/{dataParts-C0C67bVQ.js → dataParts-Bdf97ZOD.js} +3 -3
- package/dist/web/assets/{desktopAppPath-B89LKvjx.js → desktopAppPath-kQmQOW6a.js} +1 -1
- package/dist/web/assets/{flowTheme-BNKwRxun.js → flowTheme-CVnIjV_m.js} +1 -1
- package/dist/web/assets/frame-CavkQick.js +13 -0
- package/dist/web/assets/index-BaEsXdFc.css +2 -0
- package/dist/web/assets/index-C1kXcI0E.js +57 -0
- package/dist/web/assets/line-icons-Cwj9OmCz.js +1 -0
- package/dist/web/assets/{logos-P2LOMyTK.js → logos-Cf-Wf5ex.js} +1 -1
- package/dist/web/assets/{markdown-CxsWgpYs.js → markdown-Bvv6oj4v.js} +3 -3
- package/dist/web/assets/{nav-DYgvAJu-.js → nav-DVPiPhOy.js} +1 -1
- package/dist/web/assets/pageBack-Blig1Uqs.js +3 -0
- package/dist/web/assets/{palette-BgJTq_Ot.js → palette-DwrGI2Fp.js} +1 -1
- package/dist/web/assets/{paletteCommands-Isq1rLs-.js → paletteCommands-DOF2o-rv.js} +1 -1
- package/dist/web/assets/parts-DgJ2y_ic.js +1 -0
- package/dist/web/assets/{productParts-ZEi0sPIk.js → productParts-B78jij3z.js} +1 -1
- package/dist/web/assets/qualityParts-t5t9kEKG.js +2 -0
- package/dist/web/assets/{recordTest-Bz5ryzpS.js → recordTest-BbXVOuGZ.js} +1 -1
- package/dist/web/assets/{route-oDy8sV6H.js → route-9BkoTWUE.js} +1 -1
- package/dist/web/assets/{sectionList-B651VPon.js → sectionList-DMyhAqst.js} +1 -1
- package/dist/web/assets/{step-mark-CaKf4dAR.js → step-mark-Bu6fNKW8.js} +1 -1
- package/dist/web/assets/stepper-CE4yOLqn.js +1 -0
- package/dist/web/assets/wizardParts-Bxb9UG5k.js +1 -0
- package/dist/web/index.html +11 -11
- package/docs/ForgeQE-Static-Analysis-Report-4008e9ee.html +207 -0
- package/docs/ForgeQE-Static-Analysis-Report-4008e9ee.pdf +0 -0
- package/docs/{ForgeQE-Static-Analysis-Report-5bbf0da7.html → ForgeQE-Static-Analysis-Report-ccbdac00.html} +33 -33
- package/docs/ForgeQE-Static-Analysis-Report-ccbdac00.pdf +0 -0
- package/docs/user-guide.html +89 -1
- package/forgeqe.example.yaml +1 -1
- package/package.json +2 -2
- package/prompts/brain.md +7 -0
- package/py/forgeqe_engine/cli.py +57 -0
- package/py/forgeqe_engine/diagnostics.py +32 -2
- package/py/forgeqe_engine/logins.py +11 -0
- package/py/forgeqe_engine/persona.py +90 -1
- package/py/forgeqe_engine/scan.py +202 -0
- package/py/forgeqe_engine/seo.py +95 -0
- package/py/forgeqe_engine/seo_analytics.mjs +59 -0
- package/py/forgeqe_engine/seo_facts.mjs +63 -0
- package/py/forgeqe_engine/seo_site.mjs +36 -0
- package/py/forgeqe_engine/service.py +3 -2
- package/dist/web/assets/Agent-39FbaH7G.js +0 -10
- package/dist/web/assets/ApiTests-B9rtwCbe.js +0 -17
- package/dist/web/assets/Chat-DocT7FlH.js +0 -3
- package/dist/web/assets/Cost-DvbuXS6u.js +0 -1
- package/dist/web/assets/Data-BmZHJkfj.js +0 -6
- package/dist/web/assets/Desktop-DD3F69ih.js +0 -1
- package/dist/web/assets/DesktopReview-BR0LtVFw.js +0 -2
- package/dist/web/assets/Evidence-OqAiYzrl.js +0 -1
- package/dist/web/assets/Explore-QNyusEFo.js +0 -2
- package/dist/web/assets/Flags-Yv4Ttmmh.js +0 -2
- package/dist/web/assets/Flaky-Bg2f2K1U.js +0 -1
- package/dist/web/assets/Impact-CpxvVnKj.js +0 -3
- package/dist/web/assets/Jobs-_gZTxoaG.js +0 -5
- package/dist/web/assets/KindPage-Amr6R7Ym.js +0 -6
- package/dist/web/assets/Migration-DfPYzTfk.js +0 -8
- package/dist/web/assets/Mobile-fIhhQPsp.js +0 -1
- package/dist/web/assets/Observability-13DkrRp2.js +0 -1
- package/dist/web/assets/PageAgent-CC8Ha6vu.js +0 -1
- package/dist/web/assets/Product-CnXkqwQm.js +0 -6
- package/dist/web/assets/Production-5mTIt4sr.js +0 -1
- package/dist/web/assets/Quality-DbLcbP1X.js +0 -1
- package/dist/web/assets/Readiness-BG1xmC09.js +0 -1
- package/dist/web/assets/Record-sFth-2I1.js +0 -1
- package/dist/web/assets/Regression-Dd4y8I1z.js +0 -5
- package/dist/web/assets/Requirements-DmhUNCIP.js +0 -2
- package/dist/web/assets/Responsive-D18eYdCh.js +0 -3
- package/dist/web/assets/TestManagement-DUMGdHDw.js +0 -4
- package/dist/web/assets/api-D8-lxyQi.js +0 -1
- package/dist/web/assets/frame-C8sL1yo-.js +0 -13
- package/dist/web/assets/index-BFG13fbg.js +0 -55
- package/dist/web/assets/index-DBnWgocz.css +0 -2
- package/dist/web/assets/line-icons-CwCZidXs.js +0 -1
- package/dist/web/assets/pageBack-BefA2rh7.js +0 -3
- package/dist/web/assets/parts-BNpm4gXC.js +0 -1
- package/dist/web/assets/qualityParts-DtsD70Qh.js +0 -1
- package/dist/web/assets/stepper-CONWT_tv.js +0 -1
- package/dist/web/assets/wizardParts-CulZqqjz.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
|