@capagents/forgeqe 2.9.2 → 2.9.3

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 (85) hide show
  1. package/dist/docs-site/docs/architecture/index.html +6 -0
  2. package/dist/docs-site/docs/search.js +1 -1
  3. package/dist/docs-site/docs/web-app/index.html +12 -1
  4. package/dist/forgeqe.js +1717 -1677
  5. package/dist/web/assets/{Agent-BFwkMMHm.js → Agent-B6xfobJ9.js} +3 -3
  6. package/dist/web/assets/{ApiTests-Bgt4R_yB.js → ApiTests-BwgezlYi.js} +3 -3
  7. package/dist/web/assets/Browse-DDzk_KTh.js +2 -0
  8. package/dist/web/assets/Chat-BdlfK2ra.js +3 -0
  9. package/dist/web/assets/{CommandPalette-nmLCmEsp.js → CommandPalette-Cla7m818.js} +1 -1
  10. package/dist/web/assets/{Compare-CGcGp9qD.js → Compare-BxUfo0rI.js} +1 -1
  11. package/dist/web/assets/{Cost-BvCShgln.js → Cost-Dpa8aWQG.js} +1 -1
  12. package/dist/web/assets/{Data-3EEe7vIz.js → Data-D_7m2GL6.js} +2 -2
  13. package/dist/web/assets/Desktop-CgslBkAr.js +1 -0
  14. package/dist/web/assets/DesktopReview-CsW65QZz.js +1 -0
  15. package/dist/web/assets/{Evidence-D1HiXQK6.js → Evidence-SYt-mbDx.js} +1 -1
  16. package/dist/web/assets/{Explore-2M7wI0Sf.js → Explore--B18Jvg9.js} +1 -1
  17. package/dist/web/assets/{Features-DmQ5JiMI.js → Features-BerYifH7.js} +1 -1
  18. package/dist/web/assets/{Flags-Bg-l5HxL.js → Flags-ABMq---p.js} +1 -1
  19. package/dist/web/assets/{Flaky-DJlkxmHT.js → Flaky-DKeceXsa.js} +1 -1
  20. package/dist/web/assets/{ForceGraph-B5i3Ewd5.js → ForceGraph-C9HFjZX3.js} +1 -1
  21. package/dist/web/assets/{Impact-huKs-mOc.js → Impact-DQ2c0dTT.js} +1 -1
  22. package/dist/web/assets/{Jobs-BwK79TQ8.js → Jobs-Dy_C2x36.js} +2 -2
  23. package/dist/web/assets/{KindPage-C0MoC9da.js → KindPage-DQzstMyM.js} +4 -4
  24. package/dist/web/assets/{Migration-CTVyQeqW.js → Migration-B4GWsCLR.js} +1 -1
  25. package/dist/web/assets/{Product-BHqJVCMn.js → Product-CgVhHMMY.js} +1 -1
  26. package/dist/web/assets/{Production-GL8lbwxD.js → Production-OdB4gZ3T.js} +1 -1
  27. package/dist/web/assets/{Quality-jI3YgvqZ.js → Quality-DOV4suvD.js} +1 -1
  28. package/dist/web/assets/{Readiness-B3OZ51FG.js → Readiness-DawfUUHc.js} +1 -1
  29. package/dist/web/assets/Record-C9uAKGYM.js +2 -0
  30. package/dist/web/assets/{Regression-v2dpbgs4.js → Regression-DZdddPfI.js} +2 -2
  31. package/dist/web/assets/{Reports-BAat71wo.js → Reports-BHOS6af1.js} +1 -1
  32. package/dist/web/assets/{Response-DjqmewrL.js → Response-qfMk4Nrh.js} +1 -1
  33. package/dist/web/assets/{RunDiff-BbBom2fJ.js → RunDiff-BNywFV7t.js} +1 -1
  34. package/dist/web/assets/{Runs-CIQWWRl3.js → Runs-BJPYXRiB.js} +1 -1
  35. package/dist/web/assets/{Steps-DfNHCe8N.js → Steps-Cdzyueit.js} +1 -1
  36. package/dist/web/assets/{TestCases-8BBW6RSi.js → TestCases-DcYY2l9q.js} +1 -1
  37. package/dist/web/assets/{TestData-BFkACDve.js → TestData-CrzKA3xh.js} +1 -1
  38. package/dist/web/assets/{TestDebt-CUcklHEN.js → TestDebt-CVDJT511.js} +1 -1
  39. package/dist/web/assets/Tosca-CBwGCrbL.js +3 -0
  40. package/dist/web/assets/{WhatsNew-CBS7kmGu.js → WhatsNew-CIOTidx-.js} +1 -1
  41. package/dist/web/assets/{dataParts-B3Fz4S59.js → dataParts-CUb0Q0IZ.js} +1 -1
  42. package/dist/web/assets/{families-BiqSaqoO.js → families-C9MndVzT.js} +1 -1
  43. package/dist/web/assets/filters-Bk7ovF3M.js +1 -0
  44. package/dist/web/assets/{fold-b2g0_ndv.js → fold-97yBCSav.js} +1 -1
  45. package/dist/web/assets/frame-CqWJMIHh.js +4 -0
  46. package/dist/web/assets/index-ASvNRLI7.js +73 -0
  47. package/dist/web/assets/index-B5o9vY-v.css +2 -0
  48. package/dist/web/assets/{logos-DSveGjIW.js → logos-CbNeXLAM.js} +1 -1
  49. package/dist/web/assets/{palette-CF8GLAVN.js → palette-Dg3RS-ff.js} +1 -1
  50. package/dist/web/assets/{parts-D7OvxdrL.js → parts-CPAyV15O.js} +1 -1
  51. package/dist/web/assets/{productParts-BDM3LIjp.js → productParts-BpXw1jMa.js} +1 -1
  52. package/dist/web/assets/{qualityParts-DP09bVel.js → qualityParts-8TPKphgl.js} +1 -1
  53. package/dist/web/assets/recordTest-DvnpHsd2.js +1 -0
  54. package/dist/web/assets/{rows-B0vZ5x5N.js → rows-BdYJLCRD.js} +1 -1
  55. package/dist/web/assets/{segmented-BfWimTC0.js → segmented-DlF5rvSR.js} +1 -1
  56. package/dist/web/assets/{thread-DASfqw-f.js → thread-DlyX7xQt.js} +1 -1
  57. package/dist/web/assets/{usePageChat-BLEUldCJ.js → usePageChat-Dhu3upXA.js} +1 -1
  58. package/dist/web/index.html +4 -4
  59. package/docs/ARCHITECTURE.md +5 -0
  60. package/docs/WEB_APP.md +17 -1
  61. package/forgeqe.example.yaml +1 -0
  62. package/package.json +1 -1
  63. package/py/forgeqe_desktop/agentdesktop_driver.py +69 -0
  64. package/py/forgeqe_desktop/boxes.py +32 -0
  65. package/py/forgeqe_desktop/handhooks.py +55 -5
  66. package/py/forgeqe_desktop/pywinauto_driver.py +25 -0
  67. package/py/forgeqe_desktop/service.py +85 -3
  68. package/py/forgeqe_engine/brand.py +3 -0
  69. package/py/forgeqe_engine/browser.py +46 -6
  70. package/py/forgeqe_engine/cli.py +10 -1
  71. package/py/forgeqe_engine/recordsession.py +92 -2
  72. package/py/forgeqe_engine/video.py +423 -0
  73. package/py/forgeqe_mobile/hyperexecute.py +1 -1
  74. package/py/forgeqe_mobile/maestro.py +1 -1
  75. package/py/forgeqe_tosca/vendored.py +3 -2
  76. package/dist/web/assets/Browse-B3YI1MeV.js +0 -2
  77. package/dist/web/assets/Chat-K3kp-ji2.js +0 -3
  78. package/dist/web/assets/Desktop-Drj-7jBV.js +0 -1
  79. package/dist/web/assets/Record-Yw-SGwQ9.js +0 -2
  80. package/dist/web/assets/Tosca-DTWwUJBW.js +0 -3
  81. package/dist/web/assets/desktopAppPath-CMac6aJ0.js +0 -1
  82. package/dist/web/assets/filters-B4VDnWbr.js +0 -1
  83. package/dist/web/assets/frame-D-hqu7Oi.js +0 -4
  84. package/dist/web/assets/index-CtX74khE.js +0 -45
  85. package/dist/web/assets/index-DUf5ddb0.css +0 -2
@@ -140,6 +140,7 @@ address again. Ctrl+C in the terminal stops it.</p>
140
140
  <tr><td><code>--config forgeqe.yaml</code></td><td>Work on the folder of that file.</td></tr>
141
141
  <tr><td><code>--no-open</code></td><td>Print the address without opening the browser.</td></tr>
142
142
  <tr><td><code>--url https://NAME.localhost</code></td><td>Its name through a local proxy such as <a href="https://github.com/vercel-labs/portless" class="ext" rel="noopener">portless</a>, instead of a port number. Only a name under <code>.localhost</code>.</td></tr>
143
+ <tr><td><code>--public-url https://NAME</code></td><td>Hosted mode, with <code>--port</code>: the https name of a TLS proxy in front of it (see below).</td></tr>
143
144
  </tbody>
144
145
  </table></div>
145
146
  <h3 id="a-name-instead-of-a-port-portless"><a href="#a-name-instead-of-a-port-portless" class="hash">#</a>A name instead of a port (portless)</h3>
@@ -155,6 +156,16 @@ something else never moves it. The first run of portless sets up a local certifi
155
156
  <p>The name is only one under <code>.localhost</code>, which browsers and resolvers always keep on this computer. A public domain
156
157
  (<code>forgeq.ai</code>) is refused: on your computer it would hide the real site, and it could point anywhere. Do not use
157
158
  portless's sharing modes (<code>--lan</code>, <code>--tailscale</code>, <code>--ngrok</code>, <code>--cloudflare</code>): they put the app on the network.</p>
159
+ <h3 id="on-a-server-hosted-mode"><a href="#on-a-server-hosted-mode" class="hash">#</a>On a server (hosted mode)</h3>
160
+ <p>For a demo or a security test on a server, put a TLS proxy in front of forgeqe web (a CDN or load balancer) that lets
161
+ in only the people you mean, for example by IP address, and give forgeqe web that proxy's https name:</p>
162
+ <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>sh</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe web --port 8080 --public-url https://forgeqe.example.com --no-open
163
+ </code></pre></div>
164
+ <p>forgeqe web still listens on <code>127.0.0.1</code> only and still needs its token: the proxy forwards to it on that computer.
165
+ It answers to that one name as well as <code>127.0.0.1</code>, takes calls from pages of exactly that origin, and tells the
166
+ browser to keep to https. The name is https, a DNS name (not an IP address, localhost or a <code>.localhost</code> name), on the
167
+ default port, with nothing after it. Anyone who has the printed link and gets through the proxy can use ForgeQE
168
+ there, with its credentials: keep the proxy limited, and give that server test credentials only.</p>
158
169
  <h2 id="the-first-time-set-up"><a href="#the-first-time-set-up" class="hash">#</a>The first time: Set up</h2>
159
170
  <p>The first page is <strong>Settings › Set up</strong>, in four steps. Until the folder has a <code>forgeqe.yaml</code>, the other sections of
160
171
  Settings are locked.</p>
@@ -309,7 +320,7 @@ and Ended as filters, a search, and 50 at a time.</p>
309
320
  <tr><th>Page</th><th>What it is for</th></tr>
310
321
  </thead>
311
322
  <tbody>
312
- <tr><td><strong>Record</strong></td><td>Do a test's steps yourself in a browser or a Windows app ForgeQE opens; each click, entry and choice is recorded, with nothing to describe first: no panel in the page, only a small badge, with Pause, Undo and Stop on the Record page. A web recording is then reviewed with clicks: its name (written from what you did), steps to drop or add (in your words, a page to open, go back), notes on steps, instructions for the Coding agent, checks suggested from what each step brought to the page or picked on its picture (a text, a field's value, the page it leads to, or in your words), and where each typed value comes from (as typed, test data, new on each run, or a secret read from the environment, its typed text removed from the recording). Every change is a version to go back to. Steps used in many tests are kept as a <strong>block</strong>, put into another recording, or played first when one starts (<strong>Start from a block</strong>). <strong>Record more from here</strong> plays the steps up to one and records what comes next. Checks of the page's own server calls, and <strong>Suggest with the model</strong> (one call). ForgeQE makes the usual choices first, and finds saved blocks in the steps. <strong>Try it</strong> replays the steps with Playwright, on another environment or with other test data if you like, or once for each row of a data file or kept request. <strong>Write the test</strong> tries the steps first, then the Coding agent writes it in the review, asking nothing: the plan and where the test goes follow the repository, and a block becomes one helper. A desktop recording replays with no model. The recordings, searched and paged, each with <strong>Review</strong>.</td></tr>
323
+ <tr><td><strong>Record</strong></td><td>Do a test's steps yourself in a browser or a Windows app ForgeQE opens; each click, entry and choice is recorded, with nothing to describe first: no panel in the page, only a small badge, with Pause, Undo and Stop on the Record page. A web recording is then reviewed with clicks: its name (written from what you did), steps to drop or add (in your words, a page to open, go back), notes on steps, instructions for the Coding agent, checks suggested from what each step brought to the page or picked on its picture (a text, a field's value, the page it leads to, or in your words), and where each typed value comes from (as typed, test data, new on each run, or a secret read from the environment, its typed text removed from the recording). Every change is a version to go back to. Steps used in many tests are kept as a <strong>block</strong>, put into another recording, or played first when one starts (<strong>Start from a block</strong>). <strong>Record more from here</strong> plays the steps up to one and records what comes next. Checks of the page's own server calls, and <strong>Suggest with the model</strong> (one call). ForgeQE makes the usual choices first, and finds saved blocks in the steps. <strong>Re-run</strong> replays the steps with Playwright, on another environment or with other test data if you like, or once for each row of a data file or kept request; <strong>Stop</strong> ends it, keeping the steps done. <strong>Write the test</strong> tries the steps first, then the Coding agent writes it in the review, asking nothing: the plan and where the test goes follow the repository, and a block becomes one helper. Every web recording says what came of its test (<strong>No test yet</strong>, <strong>Writing the test…</strong>, <strong>Test written</strong> with its file to open, <strong>Test out of date</strong> after you change the recording, <strong>Test not passing</strong>, <strong>Writing failed</strong>); once a test is written, the button is <strong>Update the test</strong>, which asks first and changes that test instead of adding a second one. Writing is kept by forgeqe web, not the page: it plays the steps first (<strong>Checking the steps…</strong>), then a chat writes the test; you can leave and come back from the menu, and the recording still says where it is (<strong>Steps failed, no test written</strong> with the step that failed, or <strong>Writing the test…</strong> with the agent's work and <strong>Open the chat</strong>). The chat says which recording it writes, with <strong>Back to the recording</strong>. A refresh changes nothing. When something goes wrong the recording says why in words to act on: <strong>Waiting for the model…</strong> while the model is not answering and its calls are retried, <strong>Model not reachable</strong> (no internet, a proxy, the provider down), a refused sign-in (check the key in Settings › Models) or a busy model; a site that cannot be opened stops at the steps, before any model call. A writing that has only waited on the model for 10 minutes is stopped, and <strong>Stop writing</strong> stops it at once. When the model was not reachable or busy, ForgeQE checks every 30 seconds whether it answers again and then carries on by itself from where it stopped (<strong>Carrying on…</strong>), for up to 15 minutes after the first failure; a refused sign-in waits for you; either way what the agent changed so far is kept, and the next <strong>Write</strong> reopens its session and carries on from there instead of starting over. Closing forgeqe web stops the writing, and the recording says so. A desktop recording replays with no model. The recordings, searched and paged and filtered by <strong>Test written</strong> or <strong>No test yet</strong>, each with <strong>Review</strong>.</td></tr>
313
324
  <tr><td><strong>Regression</strong></td><td>Regression packs for a release, in two tabs. <strong>Agent</strong>: a conversation where the agent reads the connected sources, says what is missing, asks for the details it needs (ticked off above the message box), and builds the pack. <strong>Packs</strong>: a table of the packs; a row opens the pack's page, with its numbers in one strip, the plan as a table (automated, manual, new automation, exploratory; filters, search, 50 rows a page, each row's evidence) and the release's changes, risk areas, runs and triage, history and a comparison beside it; save it, run it now or schedule it, refresh it, reuse it for the next release.</td></tr>
314
325
  <tr><td><strong>API tests</strong></td><td>Two tabs. <strong>Agent</strong>: a conversation where you paste links, cURL or details (or attach a Postman collection or an API description) and the agent makes the API's calls in folders, sends them and says what it found, each API as a card to open. <strong>Workbench</strong>: like Postman, with an agent: APIs (from a description, a Postman collection, or the calls a recorded run saw) with their calls in folders and flows on the left, exported as a Postman collection; a call open to edit and <strong>Send</strong>, its answer, and what it must answer; an environment from env.yaml and one <strong>Run</strong>. Calls that change data ask first (once, or always on a test environment). Sign in once per API, the value kept as a secret. Flows built from the API's calls, passing values on. <strong>Ask the agent</strong> writes the tests or explains a failure, on the page.</td></tr>
315
326
  <tr><td><strong>Quality</strong></td><td>What each browser run measured, as a table of runs (rules failed, critical and serious violations, slow pages, visual changes, budgets exceeded), with Trends beside it. A row opens the run's page: its numbers in one strip and three tabs, <strong>Accessibility</strong> (every failed WCAG rule with its criterion, level, elements and pages, each opening on the elements and how to fix it; the rules that passed), <strong>Performance</strong> (every page's Core Web Vitals, requests and size against the thresholds and budgets) and <strong>Visual</strong> (every page against its baseline, with the baseline, this run and the difference, and <strong>Approve as the new baseline</strong>).</td></tr>