@capagents/forgeqe 2.9.7 → 2.9.8
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 +1 -1
- package/dist/docs-site/docs/index.html +1 -1
- package/dist/forgeqe.js +1696 -1682
- package/dist/web/assets/Agent-D0jovbz1.js +6 -0
- package/dist/web/assets/{ApiTests--JGFKbOa.js → ApiTests-CMMMApBR.js} +1 -1
- package/dist/web/assets/{Browse-CIcl1j4N.js → Browse-Bimy9-t0.js} +2 -2
- package/dist/web/assets/{Chat-Baph1nlV.js → Chat-DSlBwNAI.js} +1 -1
- package/dist/web/assets/{CommandPalette-Dd0seTKQ.js → CommandPalette-D7NWAtOU.js} +1 -1
- package/dist/web/assets/{Compare-B7barE31.js → Compare-BI8IMq49.js} +1 -1
- package/dist/web/assets/{Cost-CGXZTXSz.js → Cost-BV0JavsG.js} +1 -1
- package/dist/web/assets/{Data-DGKi3KHS.js → Data-CjnqjcAx.js} +1 -1
- package/dist/web/assets/{Desktop-wfNhaxat.js → Desktop-Bu72INy4.js} +1 -1
- package/dist/web/assets/{DesktopReview-Cxn3mgKO.js → DesktopReview-jDnb5Gfn.js} +1 -1
- package/dist/web/assets/{Evidence-BZ-WKU9t.js → Evidence-CIlcAy5n.js} +1 -1
- package/dist/web/assets/{Explore-pa8l7kiC.js → Explore-Cc-1cTwG.js} +1 -1
- package/dist/web/assets/{Features-JDMSSUpb.js → Features-CewFSOSI.js} +1 -1
- package/dist/web/assets/{Flags-DcWTBteQ.js → Flags-CICcBCkH.js} +1 -1
- package/dist/web/assets/{Flaky-DnHWlzlk.js → Flaky-BrWbRajc.js} +1 -1
- package/dist/web/assets/{Impact-Dn5PPQ5Z.js → Impact-D7seby-G.js} +1 -1
- package/dist/web/assets/{Jobs-CNhlUenm.js → Jobs-D7yPretO.js} +1 -1
- package/dist/web/assets/{KindPage-BPwFdxHe.js → KindPage-Cjt1s7Vd.js} +1 -1
- package/dist/web/assets/{Migration-DsGwJd40.js → Migration-CbCqOsJI.js} +1 -1
- package/dist/web/assets/{Product-DsolJU4Y.js → Product-CxXVrpoD.js} +1 -1
- package/dist/web/assets/{Production-Cnh3wWiK.js → Production-D5jIe328.js} +1 -1
- package/dist/web/assets/{Quality-W_rQ6nRf.js → Quality-D3G8IKLZ.js} +1 -1
- package/dist/web/assets/{Readiness-IWAIRZwC.js → Readiness-B4Fy4Vln.js} +1 -1
- package/dist/web/assets/{Record-DOImb7O7.js → Record-DLfODYjy.js} +1 -1
- package/dist/web/assets/{Regression-DQuiIAFx.js → Regression-Daoc9Qvx.js} +1 -1
- package/dist/web/assets/{Reports-C16UVZtQ.js → Reports-DEzDDoGF.js} +1 -1
- package/dist/web/assets/{Response-Vh2lEWnS.js → Response-CaWPiZyx.js} +1 -1
- package/dist/web/assets/{RunDiff-CVnhT7JE.js → RunDiff-BQKwTCbM.js} +1 -1
- package/dist/web/assets/{Runs-CI8NJB1v.js → Runs-BIUnN08h.js} +1 -1
- package/dist/web/assets/{Steps-Bwe4WAjy.js → Steps-DjR_K32c.js} +1 -1
- package/dist/web/assets/{TestCases-D5oOzYL4.js → TestCases-BZWiTLjC.js} +1 -1
- package/dist/web/assets/{TestData-27tyi6OD.js → TestData-D6YiouU4.js} +1 -1
- package/dist/web/assets/{TestDebt-D9k3uAiS.js → TestDebt-COFagfQU.js} +1 -1
- package/dist/web/assets/{Tosca-CMmixiPy.js → Tosca-B3sZ9uqe.js} +1 -1
- package/dist/web/assets/{WhatsNew-CuCua9dD.js → WhatsNew-CznfTEFM.js} +1 -1
- package/dist/web/assets/{dataParts-D06wI4i1.js → dataParts-DpVitZdm.js} +1 -1
- package/dist/web/assets/{fold-CeQ84ypG.js → fold-HnodvJWj.js} +1 -1
- package/dist/web/assets/{frame-BcGZt823.js → frame-DiKY0GWx.js} +2 -2
- package/dist/web/assets/{index-CotEpFLY.js → index-HjX2EOmp.js} +5 -5
- package/dist/web/assets/{logos-DN9jLn4q.js → logos-CNarWSPL.js} +1 -1
- package/dist/web/assets/{palette-BdMPhc9j.js → palette-B2YywN1k.js} +1 -1
- package/dist/web/assets/{qualityParts-Cfirt7dZ.js → qualityParts-jsPhayON.js} +1 -1
- package/dist/web/assets/{rows-CiR4hGkv.js → rows-7zDrF-Yp.js} +1 -1
- package/dist/web/assets/{thread-CyTIuLgk.js → thread-BUBgX0xW.js} +1 -1
- package/dist/web/assets/{usePageChat-DOTAHsIS.js → usePageChat-DnOXyd_B.js} +1 -1
- package/dist/web/index.html +2 -2
- package/docs/user-guide.html +1 -1
- package/forgeqe.example.yaml +1 -0
- package/package.json +1 -1
- package/prompts/README.md +1 -0
- package/prompts/api-tests.md +2 -0
- package/prompts/heal.md +3 -1
- package/prompts/requests-rule.md +14 -0
- package/prompts/test-agent.md +5 -2
- package/skills/cypress-typescript/SKILL.md +35 -0
- package/dist/web/assets/Agent-I5mRol1P.js +0 -7
package/HOW_TO_USE.md
CHANGED
|
@@ -1714,7 +1714,7 @@ What happens after the run passes:
|
|
|
1714
1714
|
2. ForgeQE replays the run's steps as a Playwright script (`<run>/replay/flow.mjs`), in the run's browser setup (channel, headless or headed, user agent, language, time zone, viewport), with 10 seconds per step. Text is typed key by key, as the browser agent typed it, so search suggestions and other typing handlers fire. If the replay does not reach the run's final page, it runs again without Playwright's automation switches (`navigator.webdriver` false, as in ForgeQE's browser). The handoff gets the result: which steps worked, and for each failed step, Playwright's reason (for example a dialog that intercepts the click), the page, the dialogs open on it, how many elements each of the element's other locators matched, and a screenshot and page snapshot. It also saves Playwright's page snapshot of each page the replay visited (roles, accessible names, and text, as the replay left the page; the last page once it stops changing), so Scribe takes locators for its steps and assertions from real pages instead of guessing them. On the last page it looks up each of the browser agent's checks and puts the Playwright locator that matched its text into the handoff (a heading or text match, the container it sits in when there are several, or the form field that holds it), so assertions come with a locator that worked. For a heading it also gives the part of the page the heading names (an element labelled by it, the section it heads, or the element right after it), with its locator and how many links and list items it holds, so a check such as "an In the news section with at least one item" is asserted inside that part, not on the heading alone. A step that fails while every step after it still works and the replay reaches the final page (a click that did nothing on the run, or a control this version of the page doesn't have) doesn't count as a failed replay: Scribe decides from the step whether the goal needs it and ports the rest as it is. When only the second launch got through, the handoff says the browser setup is the difference and which launch settings fix it. The first time, Playwright (about 13 MB) is downloaded into `~/.forgeqe/tools`; it drives the installed Chrome. A run that only opened a page still replays when it recorded checks, to look them up; with neither it skips this, and `replay: false` turns it off.
|
|
1715
1715
|
|
|
1716
1716
|
Scribe first reads the repo (as a read-only agent: it cannot change files or use the live browser yet), while the replay runs when there is one, so the two overlap. What it learns (the framework, the command that runs one test, where page objects and config live, the conventions) is saved with page memory in `scribe-notes.json`, with the tests each job writes there. The next job in the same repo starts from those notes and that list instead of reading the repo again, and extends those tests' page objects when its flow overlaps; notes older than 30 days are read again.
|
|
1717
|
-
3. Scribe starts in the repo. It reads `AGENTS.md`, the test framework config, run scripts, page objects, fixtures, and helpers, and follows the imports between them. It writes the test in the repo's language and framework (a C# NUnit repo gets a C# NUnit test) and to fit its code: it extends an existing page object instead of duplicating it and reuses the login flow, test data, and config. A repo with no tests gets Playwright Test in TypeScript. It may change
|
|
1717
|
+
3. Scribe starts in the repo. It reads `AGENTS.md`, the test framework config, run scripts, page objects, fixtures, and helpers, and follows the imports between them. It writes the test in the repo's language and framework (a C# NUnit repo gets a C# NUnit test) and to fit its code: it extends an existing page object instead of duplicating it and reuses the login flow, test data, and config. A repo with no tests gets Playwright Test in TypeScript. When the test case names a framework ("Framework: Cypress + TypeScript + Cucumber BDD"), the test is written in that one, in the folder that holds its setup; a test in another framework is not run and never kept as passed. It may change the test configuration, but never a project's packages: changes to `package.json`, lockfiles, `.npmrc`, `requirements.txt` or `pyproject.toml` are put back, and its shell cannot run an installer. Before running the test, ForgeQE installs the test project's packages itself when they are missing, with the project's own lockfile (`npm ci`, `pnpm install --frozen-lockfile`, `yarn install --frozen-lockfile`, `bun install --frozen-lockfile`; `npm install --no-package-lock` with no lockfile), and Cypress's app or a Playwright browser when a run says it is missing. If the install fails (permission denied, the registry unreachable, a version that does not exist), the job stops as blocked with the reason and the command to run, and is not tried again in that session until the project's files change. What Scribe may not do itself, it asks for: a package (`request_install`), a command its shell refuses (`request_run`), or a change to `package.json`, `requirements.txt` or `pyproject.toml` (`request_change`). ForgeQE checks the request (registry names and exact versions only; a command as an argument list, never a shell, push, container, process-ending, download or database command, and nothing naming ForgeQE's secrets; never `.npmrc` or a lockfile by hand), then asks you with exactly what it would run or change. Only a yes does it; a no, or a run nobody watches, changes nothing and Scribe reports the test as blocked. The healing agent (`forgeqe heal`) and the API test writer ask the same way, and their own edits to package files are put back before their tests run. `code.requests` in forgeqe.yaml (Settings › Code › Help it gets › When an agent asks for more) decides what happens to a request: `ask` (the default) asks you each time; `allow` does it after ForgeQE's checks without asking, also in a run nobody watches; `off` refuses every request. What is always refused (a shell, a push, `.npmrc`, a lockfile by hand…) stays refused whatever it says.
|
|
1718
1718
|
|
|
1719
1719
|
Before Scribe starts, ForgeQE reads the repo into a **code graph**, without a model: every class, page object, method, property, and test (TypeScript, JavaScript, C#, Java, Python), the calls between them, and the locators each one builds, in any framework's spelling (Playwright, Selenium, Cypress, WebdriverIO, Testing Library). It is kept in `~/.forgeqe/cache/code-graph`, nothing leaves the machine, and the next job reads again only the files that changed. The graph is tied to page memory, which knows each element by all its locators (its id, role and name, text, test id): so when the run clicked `getByRole('button', { name: 'Login' })` and the repo's `LoginPage.LoginButton` uses `#login-button`, the handoff says under that step "in this repository: LoginPage.LoginButton … used by LoginPage.SignInAsync", and Scribe calls the existing method instead of writing a second locator. Scribe also gets tools that answer from the graph instead of grep and whole-file reads: `code_find` (classes, methods, and tests by name, or by the text a locator uses), `code_outline` (a file's or class's signatures and locators, or the source of one member), `code_element` (which member already locates an element), `code_references` (what calls a member, before it is changed), and `code_impact` (the tests a change reaches, through flows and base classes, whatever the test files are called). `graph: false` turns it off. The handoff also outlines the page objects its steps use and includes the repo's test that uses the most of them, so Scribe takes the test conventions from that test instead of reading other tests, and reads a settings file only to change it.
|
|
1720
1720
|
4. It writes the test from the handoff and the replay script: steps that worked are ported with their locators, steps that failed are fixed first. Every locator, including those for assertions, comes from the replay script, the page snapshots, page memory, or a check on the page; steps where the browser agent ran JavaScript to look around are left out. It does not walk the flow again or build tests to explore. Once a step fails (in the replay, or in its test), ForgeQE switches on its live browser: a Chrome that Playwright drives, set up like ForgeQE's, where it looks at the failing step's page one tool call per action (open, snapshot, click, type, wait, screenshot, run JavaScript, console errors, failed requests). Until then the live browser tools are off, so no tokens go into looking at pages that work. The live browser needs Node.js (`npx`), and Microsoft's Playwright MCP server is downloaded on first use; with `live_browser: false`, or without `npx`, it looks with a small throwaway script instead. When its browser gets a different page than ForgeQE's did (an error, a challenge, a control that will not open), it compares the two browsers (user agent, `navigator.webdriver`, headless, failed requests and CORS errors, headers the framework adds, console errors) and fixes the difference in the repo's browser configuration. It never judges the site with `curl` or `webfetch`.
|
|
@@ -4846,7 +4846,7 @@ tokens and the like) show as <code>•••</code> in results. A check compares
|
|
|
4846
4846
|
<p>Scribe first reads the repo (as a read-only agent: it cannot change files or use the live browser yet), while the replay runs when there is one, so the two overlap. What it learns (the framework, the command that runs one test, where page objects and config live, the conventions) is saved with page memory in <code>scribe-notes.json</code>, with the tests each job writes there. The next job in the same repo starts from those notes and that list instead of reading the repo again, and extends those tests' page objects when its flow overlaps; notes older than 30 days are read again.</p>
|
|
4847
4847
|
</li>
|
|
4848
4848
|
<li>
|
|
4849
|
-
<p>Scribe starts in the repo. It reads <code>AGENTS.md</code>, the test framework config, run scripts, page objects, fixtures, and helpers, and follows the imports between them. It writes the test in the repo's language and framework (a C# NUnit repo gets a C# NUnit test) and to fit its code: it extends an existing page object instead of duplicating it and reuses the login flow, test data, and config. A repo with no tests gets Playwright Test in TypeScript. It may change
|
|
4849
|
+
<p>Scribe starts in the repo. It reads <code>AGENTS.md</code>, the test framework config, run scripts, page objects, fixtures, and helpers, and follows the imports between them. It writes the test in the repo's language and framework (a C# NUnit repo gets a C# NUnit test) and to fit its code: it extends an existing page object instead of duplicating it and reuses the login flow, test data, and config. A repo with no tests gets Playwright Test in TypeScript. When the test case names a framework ("Framework: Cypress + TypeScript + Cucumber BDD"), the test is written in that one, in the folder that holds its setup; a test in another framework is not run and never kept as passed. It may change the test configuration, but never a project's packages: changes to <code>package.json</code>, lockfiles, <code>.npmrc</code>, <code>requirements.txt</code> or <code>pyproject.toml</code> are put back, and its shell cannot run an installer. Before running the test, ForgeQE installs the test project's packages itself when they are missing, with the project's own lockfile (<code>npm ci</code>, <code>pnpm install --frozen-lockfile</code>, <code>yarn install --frozen-lockfile</code>, <code>bun install --frozen-lockfile</code>; with no lockfile), and Cypress's app or a Playwright browser when a run says it is missing. If the install fails (permission denied, the registry unreachable, a version that does not exist), the job stops as blocked with the reason and the command to run, and is not tried again in that session until the project's files change. What Scribe may not do itself, it asks for: a package (<code>request_install</code>), a command its shell refuses (<code>request_run</code>), or a change to <code>package.json</code>, <code>requirements.txt</code> or <code>pyproject.toml</code> (<code>request_change</code>). ForgeQE checks the request (registry names and exact versions only; a command as an argument list, never a shell, push, container, process-ending, download or database command, and nothing naming ForgeQE's secrets; never <code>.npmrc</code> or a lockfile by hand), then asks you with exactly what it would run or change. Only a yes does it; a no, or a run nobody watches, changes nothing and Scribe reports the test as blocked. The healing agent (<code>forgeqe heal</code>) and the API test writer ask the same way, and their own edits to package files are put back before their tests run. <code>code.requests</code> in forgeqe.yaml (Settings › Code › Help it gets › When an agent asks for more) decides what happens to a request: <code>ask</code> (the default) asks you each time; <code>allow</code> does it after ForgeQE's checks without asking, also in a run nobody watches; <code>off</code> refuses every request. What is always refused (a shell, a push, <code>.npmrc</code>, a lockfile by hand…) stays refused whatever it says.</p>
|
|
4850
4850
|
<p>Before Scribe starts, ForgeQE reads the repo into a <strong>code graph</strong>, without a model: every class, page object, method, property, and test (TypeScript, JavaScript, C#, Java, Python), the calls between them, and the locators each one builds, in any framework's spelling (Playwright, Selenium, Cypress, WebdriverIO, Testing Library). It is kept in <code>~/.forgeqe/cache/code-graph</code>, nothing leaves the machine, and the next job reads again only the files that changed. The graph is tied to page memory, which knows each element by all its locators (its id, role and name, text, test id): so when the run clicked <code>getByRole('button', { name: 'Login' })</code> and the repo's <code>LoginPage.LoginButton</code> uses <code>#login-button</code>, the handoff says under that step "in this repository: LoginPage.LoginButton … used by LoginPage.SignInAsync", and Scribe calls the existing method instead of writing a second locator. Scribe also gets tools that answer from the graph instead of grep and whole-file reads: <code>code_find</code> (classes, methods, and tests by name, or by the text a locator uses), <code>code_outline</code> (a file's or class's signatures and locators, or the source of one member), <code>code_element</code> (which member already locates an element), <code>code_references</code> (what calls a member, before it is changed), and <code>code_impact</code> (the tests a change reaches, through flows and base classes, whatever the test files are called). <code>graph: false</code> turns it off. The handoff also outlines the page objects its steps use and includes the repo's test that uses the most of them, so Scribe takes the test conventions from that test instead of reading other tests, and reads a settings file only to change it.</p>
|
|
4851
4851
|
</li>
|
|
4852
4852
|
<li>
|