@capagents/forgeqe 3.0.2 → 3.0.4

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 (155) hide show
  1. package/HOW_TO_USE.md +190 -189
  2. package/README.md +12 -12
  3. package/THIRD_PARTY_NOTICES.md +2 -2
  4. package/dist/docs-site/architecture-map/index.html +6 -6
  5. package/dist/docs-site/docs/architecture/index.html +31 -31
  6. package/dist/docs-site/docs/containers/index.html +9 -10
  7. package/dist/docs-site/docs/custom-agents-first-run/index.html +5 -5
  8. package/dist/docs-site/docs/desktop/index.html +8 -10
  9. package/dist/docs-site/docs/feature-test-prompts/index.html +4 -4
  10. package/dist/docs-site/docs/graphify/index.html +1 -1
  11. package/dist/docs-site/docs/index.html +214 -165
  12. package/dist/docs-site/docs/mobile/index.html +6 -6
  13. package/dist/docs-site/docs/model-routing/index.html +58 -10
  14. package/dist/docs-site/docs/product-graph/index.html +3 -3
  15. package/dist/docs-site/docs/product-views/index.html +1 -1
  16. package/dist/docs-site/docs/search.js +1 -1
  17. package/dist/docs-site/docs/web-app/index.html +6 -6
  18. package/dist/forgeqe.js +1854 -1823
  19. package/dist/template.html +69 -69
  20. package/dist/web/assets/Agent-CKlqZ4Eq.js +8 -0
  21. package/dist/web/assets/ApiTests-MARHrxdT.js +10 -0
  22. package/dist/web/assets/Browse-B2QYflth.js +2 -0
  23. package/dist/web/assets/Chat-DRkmiF4r.js +5 -0
  24. package/dist/web/assets/{CommandPalette-Dkb2OOQX.js → CommandPalette-DMpA8mBk.js} +1 -1
  25. package/dist/web/assets/{Compare-Esy5n-kR.js → Compare-DD1mmRB4.js} +1 -1
  26. package/dist/web/assets/Cost-B6BCZIxQ.js +1 -0
  27. package/dist/web/assets/Data-CpKR98gM.js +6 -0
  28. package/dist/web/assets/{Desktop-CsEWht_F.js → Desktop-xUqFsJPz.js} +1 -1
  29. package/dist/web/assets/{DesktopReview-BUfM70Ju.js → DesktopReview-CnLC9yMR.js} +1 -1
  30. package/dist/web/assets/{Evidence-DEDtYoZr.js → Evidence-CWcZvoOu.js} +1 -1
  31. package/dist/web/assets/{Explore-AXLdkUHT.js → Explore-DuDQqmEn.js} +2 -2
  32. package/dist/web/assets/{Features-DcDbE20H.js → Features-BJTX7utr.js} +1 -1
  33. package/dist/web/assets/{Flags-CSKvhaye.js → Flags-BeG_gA9O.js} +2 -2
  34. package/dist/web/assets/{Flaky-B48EUqK0.js → Flaky-DulQuBGi.js} +1 -1
  35. package/dist/web/assets/Impact-BvGp2rYG.js +3 -0
  36. package/dist/web/assets/Jobs-BXqBtH8C.js +5 -0
  37. package/dist/web/assets/KindPage-BGEobnS3.js +6 -0
  38. package/dist/web/assets/Migration-D1JVUQM0.js +2 -0
  39. package/dist/web/assets/{Product-CDAzt1hG.js → Product-Y1dUpFfW.js} +2 -2
  40. package/dist/web/assets/{Production-sUNlZeSF.js → Production-DY9Gddm8.js} +1 -1
  41. package/dist/web/assets/{Quality-C9Z0FYjK.js → Quality-B7M1Zna2.js} +1 -1
  42. package/dist/web/assets/{Readiness-Qse6Oxo-.js → Readiness-BtQ8RbJh.js} +1 -1
  43. package/dist/web/assets/Record-W7ojjKNu.js +2 -0
  44. package/dist/web/assets/Regression-eV2N8m2P.js +5 -0
  45. package/dist/web/assets/{RelationGraph-CV8NXesZ.js → RelationGraph-C7K_BfEF.js} +1 -1
  46. package/dist/web/assets/{Reports-C4U0fIue.js → Reports-D4v66mJR.js} +2 -2
  47. package/dist/web/assets/Response-B_2R4FjH.js +4 -0
  48. package/dist/web/assets/{RunDiff-DUREV_nk.js → RunDiff-Br5uN0Gu.js} +1 -1
  49. package/dist/web/assets/Runs-DvjM0xfG.js +2 -0
  50. package/dist/web/assets/{Steps-Bt1rmBc3.js → Steps-DULf0k5w.js} +1 -1
  51. package/dist/web/assets/{TestCases-CVSJIPFl.js → TestCases-Dc6bjNO5.js} +1 -1
  52. package/dist/web/assets/TestData-DWPcmhz4.js +2 -0
  53. package/dist/web/assets/{TestDebt-D5NgM75J.js → TestDebt-BpYav19x.js} +1 -1
  54. package/dist/web/assets/Tosca-Bw-j_W-Q.js +3 -0
  55. package/dist/web/assets/{WhatsNew-BtwiaM4Q.js → WhatsNew-CRaJjaut.js} +1 -1
  56. package/dist/web/assets/agentLink-Dxy-IYQv.js +1 -0
  57. package/dist/web/assets/{dataParts-CxOVAp8R.js → dataParts-Bwh_DOs0.js} +1 -1
  58. package/dist/web/assets/{families-BLmK1isi.js → families-C47Nrp6j.js} +1 -1
  59. package/dist/web/assets/filters-Ca7by1u0.js +1 -0
  60. package/dist/web/assets/{fold-GeY4MiIu.js → fold-Bd5-4sjR.js} +1 -1
  61. package/dist/web/assets/frame-BliO67Wd.js +18 -0
  62. package/dist/web/assets/index-B1U2Jkz_.js +67 -0
  63. package/dist/web/assets/index-Ce2EYROA.css +2 -0
  64. package/dist/web/assets/{logos-COH9UQgY.js → logos-CgYEz85j.js} +1 -1
  65. package/dist/web/assets/{markdown-DoF5NaZz.js → markdown-DSp3tP8i.js} +5 -5
  66. package/dist/web/assets/{paletteCommands-BlCwQKjX.js → paletteCommands-CGFwmBxN.js} +1 -1
  67. package/dist/web/assets/{parts-Bx4MyFXM.js → parts-DlmbVDzO.js} +1 -1
  68. package/dist/web/assets/{productParts-DTtbe-g-.js → productParts-CL2tDIGF.js} +1 -1
  69. package/dist/web/assets/{qualityParts-DbH_PNDs.js → qualityParts-Bs34Dzva.js} +1 -1
  70. package/dist/web/assets/recordTest-DHsT3pOe.js +1 -0
  71. package/dist/web/assets/{rows-vliRYT-Z.js → rows-Baid_ASt.js} +1 -1
  72. package/dist/web/assets/{segmented-Bisag9SK.js → segmented-D0PvwMW_.js} +1 -1
  73. package/dist/web/assets/{usePageChat-B-4sWqvn.js → usePageChat-lmgkgnb4.js} +1 -1
  74. package/dist/web/index.html +5 -5
  75. package/docs/ARCHITECTURE.md +30 -30
  76. package/docs/BUSINESS_ASSURANCE.md +7 -7
  77. package/docs/CONTAINERS.md +8 -10
  78. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +4 -4
  79. package/docs/DESKTOP.md +8 -10
  80. package/docs/GRAPHIFY.md +1 -1
  81. package/docs/MOBILE.md +6 -6
  82. package/docs/MODEL_ROUTING.md +57 -9
  83. package/docs/PRODUCT_KNOWLEDGE.md +3 -3
  84. package/docs/PRODUCT_VIEWS.md +1 -1
  85. package/docs/WEB_APP.md +6 -6
  86. package/docs/demo-qi-commerce.md +30 -30
  87. package/docs/feature-test-prompts.md +3 -3
  88. package/docs/prompts/graphify-evidence.md +3 -3
  89. package/docs/security-data-flow.html +23 -23
  90. package/docs/user-guide.html +214 -165
  91. package/docs/walkthrough/hotfix-narration.md +19 -19
  92. package/docs/walkthrough/index.html +26 -26
  93. package/env.example.yaml +1 -1
  94. package/evals/evidence/records/forgeqe-test-writing/source.jsonl +1 -1
  95. package/forgeqe-architecture.html +48 -48
  96. package/forgeqe.example.yaml +16 -10
  97. package/package.json +1 -1
  98. package/prompts/README.md +7 -7
  99. package/prompts/agent-builder.md +1 -1
  100. package/prompts/api-tests.md +1 -1
  101. package/prompts/brain.md +10 -4
  102. package/prompts/business-interview.md +3 -3
  103. package/prompts/business-persona.md +3 -3
  104. package/prompts/business-strategist.md +1 -1
  105. package/prompts/db-agent.md +3 -3
  106. package/prompts/doc-reader.md +2 -2
  107. package/prompts/heal.md +1 -1
  108. package/prompts/knowledge-agent.md +3 -3
  109. package/prompts/model-profile.md +1 -1
  110. package/prompts/page-differs.md +1 -1
  111. package/prompts/persona-own.md +3 -3
  112. package/prompts/talk.md +5 -4
  113. package/prompts/test-agent.md +2 -2
  114. package/prompts/test-plan.md +2 -2
  115. package/prompts/tosca-assistant.md +1 -1
  116. package/py/forgeqe_engine/copilot_gateway.py +1 -1
  117. package/py/forgeqe_engine/memory.py +48 -2
  118. package/py/forgeqe_engine/recordsession.py +31 -1
  119. package/py/forgeqe_engine/video.py +104 -20
  120. package/py/forgeqe_engine/webrecord_page.py +88 -7
  121. package/py/forgeqe_tosca/__init__.py +2 -2
  122. package/py/forgeqe_tosca/render.py +1 -1
  123. package/py/forgeqe_tosca/tsu.py +2 -2
  124. package/py/forgeqe_voice/worker.py +10 -2
  125. package/skills/playwright-automation/SKILL.md +102 -0
  126. package/skills/playwright-automation/references/dotnet.md +90 -0
  127. package/skills/playwright-automation/references/java.md +41 -0
  128. package/skills/playwright-automation/references/python.md +42 -0
  129. package/skills/playwright-automation/references/typescript.md +54 -0
  130. package/skills/test-data/SKILL.md +1 -1
  131. package/skills/writing-skills/SKILL.md +2 -2
  132. package/dist/web/assets/Agent-CNIwgz9P.js +0 -8
  133. package/dist/web/assets/ApiTests-CuflKFaz.js +0 -10
  134. package/dist/web/assets/Browse-D6cvDJW3.js +0 -2
  135. package/dist/web/assets/Chat-BwlScUXP.js +0 -5
  136. package/dist/web/assets/Cost-BIoJmbfg.js +0 -1
  137. package/dist/web/assets/Data-3Q5bGxT5.js +0 -6
  138. package/dist/web/assets/Impact-BTLqgWf6.js +0 -3
  139. package/dist/web/assets/Jobs-C2UViADN.js +0 -5
  140. package/dist/web/assets/KindPage-DBWC-d0o.js +0 -6
  141. package/dist/web/assets/Migration-TR5UJVZD.js +0 -2
  142. package/dist/web/assets/Record-BPd38INk.js +0 -2
  143. package/dist/web/assets/Regression-Brk_1yqk.js +0 -5
  144. package/dist/web/assets/Response-B1iCzkHo.js +0 -4
  145. package/dist/web/assets/Runs-B--vjy7q.js +0 -2
  146. package/dist/web/assets/TestData-_sZDpddH.js +0 -2
  147. package/dist/web/assets/Tosca-BcfNYUdZ.js +0 -3
  148. package/dist/web/assets/agentLink-BD93RYQ0.js +0 -1
  149. package/dist/web/assets/filters-YzD0tZES.js +0 -1
  150. package/dist/web/assets/frame-CaTNV7DF.js +0 -18
  151. package/dist/web/assets/index-9ELkRoKH.js +0 -67
  152. package/dist/web/assets/index-B_mKjNAi.css +0 -2
  153. package/dist/web/assets/recordTest-Brs1Sw9O.js +0 -1
  154. package/skills/dotnet-nunit-playwright/SKILL.md +0 -36
  155. package/skills/playwright-typescript/SKILL.md +0 -36
@@ -0,0 +1,41 @@
1
+ # Playwright in Java
2
+
3
+ Official requirement: Java 8 or higher (playwright.dev/java/docs/intro). The docs' example pom pins
4
+ `com.microsoft.playwright:playwright` at 1.64.0 and sets maven-compiler source/target to 1.8. Use whatever
5
+ version the repository's `pom.xml` or `build.gradle` already declares — do not bump it.
6
+
7
+ ## Shape of a test
8
+ ```java
9
+ import com.microsoft.playwright.*;
10
+ import com.microsoft.playwright.options.AriaRole;
11
+ import static com.microsoft.playwright.assertions.PlaywrightAssertions.assertThat;
12
+
13
+ page.navigate("/cart");
14
+ page.getByRole(AriaRole.BUTTON, new Page.GetByRoleOptions().setName("Checkout")).click();
15
+ assertThat(page.getByRole(AriaRole.HEADING,
16
+ new Page.GetByRoleOptions().setName("Payment"))).isVisible();
17
+ ```
18
+
19
+ ## Naming
20
+ camelCase plus option builder objects: `new Page.ClickOptions().setTimeout(5000)`,
21
+ `new Locator.FilterOptions().setHasText("FABIA Auto")`. Roles are the `AriaRole` enum, not strings.
22
+ Assertions are `assertThat(locator).hasText(...)`, `.isVisible()`, `assertThat(page).hasURL(...)`.
23
+
24
+ ## Isolation
25
+ Create `Playwright` and `Browser` once per class; create a fresh `BrowserContext` per test in
26
+ `@BeforeEach` and close it in `@AfterEach`. JUnit 5 users may have `@UsePlaywright` fixtures instead —
27
+ follow whichever the repository uses.
28
+
29
+ ## Running one test
30
+ ```bash
31
+ mvn test -Dtest=CheckoutTest#completesOrder
32
+ ```
33
+ Tracing:
34
+ ```java
35
+ context.tracing().start(new Tracing.StartOptions().setScreenshots(true).setSnapshots(true));
36
+ context.tracing().stop(new Tracing.StopOptions().setPath(Paths.get("trace.zip")));
37
+ ```
38
+
39
+ ## Gaps against the Node runner
40
+ No projects, fixtures-as-config, sharding or HTML reporter. Parallelism and reporting come from
41
+ JUnit 5 or TestNG and whatever Surefire configuration the repository has.
@@ -0,0 +1,42 @@
1
+ # Playwright in Python
2
+
3
+ Official requirement: Python 3.8 or higher (playwright.dev/python/docs/intro). The installed wheel may want more;
4
+ read the repository's own floor from `pyproject.toml` or `setup.cfg` and match it.
5
+
6
+ ## Shape of a test
7
+ Sync API with the `pytest-playwright` plugin's `page` fixture is the common case:
8
+
9
+ ```python
10
+ import re
11
+ from playwright.sync_api import Page, expect
12
+
13
+ def test_checkout(page: Page):
14
+ page.goto("/cart")
15
+ page.get_by_role("button", name="Checkout").click()
16
+ expect(page).to_have_url(re.compile(r"/checkout"))
17
+ expect(page.get_by_role("heading", name="Payment")).to_be_visible()
18
+ ```
19
+
20
+ The async API exists (`playwright.async_api`) — use it only when the repository already does.
21
+
22
+ ## Naming
23
+ snake_case throughout: `get_by_role`, `get_by_label`, `to_have_text`, `to_be_visible`, `frame_locator`,
24
+ `storage_state`. Options are keyword arguments: `get_by_role("button", name="Save", exact=True)`.
25
+ Filtering: `.filter(has_text=...)`, `.filter(has=page.get_by_role(...))`.
26
+
27
+ ## Fixtures worth reusing
28
+ - `page`, `context`, `browser` come from the plugin. Do not build a browser by hand in a test.
29
+ - Per-run options come from `browser_context_args` / `browser_type_launch_args` overrides in `conftest.py`.
30
+ - Sign-in: a session-scoped fixture that logs in once and writes `storage_state(path=...)`, then a
31
+ `browser_context_args` override that loads it.
32
+
33
+ ## Running one test
34
+ ```bash
35
+ pytest tests/test_checkout.py::test_checkout --tracing retain-on-failure
36
+ pytest -k checkout --headed --browser chromium
37
+ ```
38
+ `PWDEBUG=1 pytest -s` opens the Inspector. Trace: `playwright show-trace trace.zip`.
39
+
40
+ ## Gaps against the Node runner
41
+ No `expect.soft`, no `expect.poll`, no `toPass`, no projects or sharding. Use pytest's own
42
+ `pytest-xdist`, parametrize and markers; the repository will already have a choice made.
@@ -0,0 +1,54 @@
1
+ # Playwright Test in TypeScript / JavaScript
2
+
3
+ Official requirement: "Node.js: latest 22.x, 24.x or 26.x" (playwright.dev/docs/intro). This is the only binding
4
+ with the full runner: projects, fixtures, sharding, the HTML reporter, UI Mode, `expect.soft`, `expect.poll`
5
+ and `toPass`.
6
+
7
+ ## Read the setup first
8
+ - Config: `playwright.config.ts` (or `.js`, `.mjs`; a repo can have several, run with `--config`). Note `testDir`,
9
+ `projects` and their `dependencies`, `use` (baseURL, channel, headless, viewport, locale, timezoneId,
10
+ storageState, testIdAttribute), `webServer`, `globalSetup`, `timeout`, `expect.timeout`, `retries`.
11
+ - Fixtures: files that call `test.extend<...>()` (often `fixtures.ts` or `tests/fixtures/`). When the repository's
12
+ tests import `test` and `expect` from such a file, the new test imports from it too, never straight from
13
+ `@playwright/test`.
14
+ - Page objects: classes taking `page: Page` in the constructor, exposing locators and actions. Extend the
15
+ existing one for the page; when the repository hands page objects out as fixtures, add yours the same way.
16
+ - Sign-in: a setup project (`*.setup.ts`, `dependencies: ['setup']`) that saves `storageState`.
17
+
18
+ ## Browser settings
19
+ Put them in `use` of the config, at the top level or in the project the test runs in: `channel`, `headless`,
20
+ `viewport`, `locale`, `timezoneId`, and `userAgent` only when the site needs it. Use `test.use()` in a spec file
21
+ only if the repository already overrides settings per file.
22
+
23
+ ## Run one test
24
+ ```bash
25
+ npx playwright test tests/checkout.spec.ts --project=chromium --reporter=line
26
+ npx playwright test tests/checkout.spec.ts -g "places an order" --workers=1
27
+ ```
28
+ Use the repository's package manager when its lockfile says so (`pnpm exec playwright`, `yarn playwright`).
29
+ Trace: `--trace on` locally, `trace: 'on-first-retry'` in CI, then `npx playwright show-trace trace.zip`.
30
+ `--ui` opens UI Mode, `--debug` the Inspector.
31
+
32
+ Browsers are installed by ForgeQE, not by you: if a browser is missing, say which (`chromium`, or `chrome` for
33
+ `channel: 'chrome'`) and stop.
34
+
35
+ ## The overlay handler's call
36
+ The test rules say when a handler is right and when a helper is. Playwright's call, from 1.42, registered in a
37
+ fixture or `beforeEach`:
38
+ ```ts
39
+ await page.addLocatorHandler(banner, async () => {
40
+ await banner.getByRole('button', { name: 'Accept all', exact: true }).click()
41
+ await expect(banner).toBeHidden()
42
+ })
43
+ ```
44
+ `banner` is the overlay's own container (`page.locator('#cookie-banner')`), and its body runs on every action
45
+ the overlay blocks.
46
+
47
+ ## Data, secrets and tags
48
+ - Secrets: `process.env.NAME`, failing with a clear message when one is missing. If the config loads `dotenv`,
49
+ add new names to `.env.example` without values.
50
+ - Several inputs, where the repository has no data file of its own:
51
+ `for (const c of cases) test(\`… ${c.name}\`, …)`.
52
+ - Tag the repository's way: `test('title', { tag: '@smoke' }, …)` or tags in the title.
53
+ - Enable `@typescript-eslint/no-floating-promises` reasoning when reviewing: an un-awaited Playwright call is a
54
+ silent flake.
@@ -25,7 +25,7 @@ agents: [scribe]
25
25
  (`forgeqe data gen <spec> --insert --yes --export <file>`); never fall back to values copied from a run.
26
26
 
27
27
  ## Make data a test needs
28
- - Before you run or write a test that needs rows, ask the DB agent with `data_request_test_data`: the need in words,
28
+ - Before you run or write a test that needs rows, ask Miner with `data_request_test_data`: the need in words,
29
29
  `kind: existing` for rows that are there, `kind: new` for rows to make. Use the values in its `rows`; its `sql` or
30
30
  `script` and the `replay` command (`forgeqe data fetch <name>`) get the same data again, from
31
31
  `test-data/requests/<name>/`. Name that folder in your summary.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: writing-skills
3
- description: "Use when the user asks to create, change, or review a ForgeQE skill (a SKILL.md under .forgeqe/skills or ~/.forgeqe/skills), for example \"make a skill for our date picker\" or \"teach Scribe our test conventions\": choosing who uses it, a description agents choose by, and short concrete instructions."
3
+ description: "Use when the user asks to create, change, or review a ForgeQE skill (a SKILL.md under .forgeqe/skills or ~/.forgeqe/skills), for example \"make a skill for our date picker\" or \"teach Quill our test conventions\": choosing who uses it, a description agents choose by, and short concrete instructions."
4
4
  agents: [forgeqe]
5
5
  ---
6
6
 
@@ -9,7 +9,7 @@ agents: [forgeqe]
9
9
  A skill is a folder `<name>/SKILL.md`: YAML frontmatter with `name` (lowercase words joined by hyphens, the same as the folder), `description`, and `agents`, then Markdown instructions.
10
10
 
11
11
  ## Who uses it (agents)
12
- - `scribe`: how tests are written in a repository (framework, folders, base classes, page objects, the command that runs one test). Scribe can also read files placed next to SKILL.md, such as `references/locators.md`, when SKILL.md names them by relative path.
12
+ - `scribe`: how tests are written in a repository (framework, folders, base classes, page objects, the command that runs one test). Quill can also read files placed next to SKILL.md, such as `references/locators.md`, when SKILL.md names them by relative path.
13
13
  - `browser`: how to drive one site or widget during browser runs (lookups, date pickers, grids, save buttons). The browser agent sees only the SKILL.md text, so put everything it needs there and keep it under about 1,500 characters; all chosen skills together are capped by skills.browser_max_chars.
14
14
  - `forgeqe`: how to handle a kind of request (which sources, tools, and order).
15
15
  - With no `agents`, a skill is for forgeqe and scribe. Browser skills must say `agents: [browser]`.