@capagents/forgeqe 2.9.0 → 2.9.2

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 (127) hide show
  1. package/HOW_TO_USE.md +251 -23
  2. package/dist/docs-site/docs/desktop/index.html +45 -1
  3. package/dist/docs-site/docs/index.html +262 -5
  4. package/dist/docs-site/docs/search.js +1 -1
  5. package/dist/forgeqe.js +1687 -1633
  6. package/dist/web/assets/Agent-BFwkMMHm.js +4 -0
  7. package/dist/web/assets/ApiTests-Bgt4R_yB.js +10 -0
  8. package/dist/web/assets/Browse-B3YI1MeV.js +2 -0
  9. package/dist/web/assets/{Chat-BcFP0BbA.js → Chat-K3kp-ji2.js} +3 -3
  10. package/dist/web/assets/CommandPalette-nmLCmEsp.js +1 -0
  11. package/dist/web/assets/Compare-CGcGp9qD.js +1 -0
  12. package/dist/web/assets/Cost-BvCShgln.js +1 -0
  13. package/dist/web/assets/Data-3EEe7vIz.js +6 -0
  14. package/dist/web/assets/Desktop-Drj-7jBV.js +1 -0
  15. package/dist/web/assets/Evidence-D1HiXQK6.js +1 -0
  16. package/dist/web/assets/Explore-2M7wI0Sf.js +2 -0
  17. package/dist/web/assets/Features-DmQ5JiMI.js +1 -0
  18. package/dist/web/assets/{Flags-C_Qm0078.js → Flags-Bg-l5HxL.js} +2 -2
  19. package/dist/web/assets/Flaky-DJlkxmHT.js +1 -0
  20. package/dist/web/assets/ForceGraph-B5i3Ewd5.js +1 -0
  21. package/dist/web/assets/Impact-huKs-mOc.js +3 -0
  22. package/dist/web/assets/Jobs-BwK79TQ8.js +5 -0
  23. package/dist/web/assets/KindPage-C0MoC9da.js +6 -0
  24. package/dist/web/assets/Migration-CTVyQeqW.js +2 -0
  25. package/dist/web/assets/Product-BHqJVCMn.js +7 -0
  26. package/dist/web/assets/Production-GL8lbwxD.js +1 -0
  27. package/dist/web/assets/Quality-jI3YgvqZ.js +1 -0
  28. package/dist/web/assets/Readiness-B3OZ51FG.js +1 -0
  29. package/dist/web/assets/Record-Yw-SGwQ9.js +2 -0
  30. package/dist/web/assets/Regression-v2dpbgs4.js +5 -0
  31. package/dist/web/assets/Reports-BAat71wo.js +2 -0
  32. package/dist/web/assets/{Response-DGl2R0A-.js → Response-DjqmewrL.js} +2 -2
  33. package/dist/web/assets/RunDiff-BbBom2fJ.js +1 -0
  34. package/dist/web/assets/Runs-CIQWWRl3.js +2 -0
  35. package/dist/web/assets/Steps-DfNHCe8N.js +2 -0
  36. package/dist/web/assets/TestCases-8BBW6RSi.js +1 -0
  37. package/dist/web/assets/TestData-BFkACDve.js +2 -0
  38. package/dist/web/assets/TestDebt-CUcklHEN.js +1 -0
  39. package/dist/web/assets/Tosca-DTWwUJBW.js +3 -0
  40. package/dist/web/assets/WhatsNew-CBS7kmGu.js +1 -0
  41. package/dist/web/assets/dataParts-B3Fz4S59.js +3 -0
  42. package/dist/web/assets/desktopAppPath-CMac6aJ0.js +1 -0
  43. package/dist/web/assets/families-BiqSaqoO.js +1 -0
  44. package/dist/web/assets/filters-B4VDnWbr.js +1 -0
  45. package/dist/web/assets/fold-b2g0_ndv.js +1 -0
  46. package/dist/web/assets/frame-D-hqu7Oi.js +4 -0
  47. package/dist/web/assets/index-CtX74khE.js +45 -0
  48. package/dist/web/assets/index-DUf5ddb0.css +2 -0
  49. package/dist/web/assets/logos-DSveGjIW.js +1 -0
  50. package/dist/web/assets/palette-CF8GLAVN.js +1 -0
  51. package/dist/web/assets/parts-D7OvxdrL.js +1 -0
  52. package/dist/web/assets/productParts-BDM3LIjp.js +1 -0
  53. package/dist/web/assets/qualityParts-DP09bVel.js +1 -0
  54. package/dist/web/assets/rows-B0vZ5x5N.js +1 -0
  55. package/dist/web/assets/segmented-BfWimTC0.js +1 -0
  56. package/dist/web/assets/{thread-BeaLQ_f4.js → thread-DASfqw-f.js} +2 -2
  57. package/dist/web/assets/usePageChat-BLEUldCJ.js +1 -0
  58. package/dist/web/index.html +4 -3
  59. package/docs/DESKTOP.md +48 -1
  60. package/docs/user-guide.html +262 -5
  61. package/package.json +1 -1
  62. package/prompts/README.md +1 -0
  63. package/prompts/brain.md +4 -3
  64. package/prompts/impact-reader.md +8 -9
  65. package/prompts/tosca-assistant.md +47 -0
  66. package/prompts/tosca.md +3 -1
  67. package/py/forgeqe_desktop/agentdesktop_driver.py +57 -7
  68. package/py/forgeqe_desktop/handhooks.py +71 -22
  69. package/py/forgeqe_desktop/handrecord.py +7 -1
  70. package/py/forgeqe_desktop/heal.py +24 -2
  71. package/py/forgeqe_desktop/memory.py +54 -4
  72. package/py/forgeqe_desktop/pywinauto_driver.py +210 -12
  73. package/py/forgeqe_desktop/replay.py +10 -2
  74. package/py/forgeqe_desktop/service.py +9 -2
  75. package/py/forgeqe_desktop/ufo_runner.py +101 -1
  76. package/py/forgeqe_mobile/service.py +4 -1
  77. package/py/forgeqe_tosca/__init__.py +11 -1
  78. package/py/forgeqe_tosca/app.py +168 -0
  79. package/py/forgeqe_tosca/db.py +131 -0
  80. package/py/forgeqe_tosca/files.py +74 -0
  81. package/py/forgeqe_tosca/ntir.py +357 -5
  82. package/py/forgeqe_tosca/render.py +38 -0
  83. package/py/forgeqe_tosca/tsu.py +110 -0
  84. package/skills/tosca-knowledge/SKILL.md +14 -3
  85. package/skills/tosca-knowledge/references/api.md +54 -0
  86. package/dist/web/assets/Agent-BGwHbXbc.js +0 -4
  87. package/dist/web/assets/ApiTests-DSnZHRlF.js +0 -10
  88. package/dist/web/assets/Browse-Dx3pHGuG.js +0 -2
  89. package/dist/web/assets/CommandPalette-v6mqHZnU.js +0 -1
  90. package/dist/web/assets/Cost-C9LZdx1p.js +0 -1
  91. package/dist/web/assets/Data-DvbaOc9e.js +0 -6
  92. package/dist/web/assets/Evidence-Y1AeSzh5.js +0 -1
  93. package/dist/web/assets/Explore-Dw8S6DG1.js +0 -2
  94. package/dist/web/assets/Features-CjrVraBE.js +0 -1
  95. package/dist/web/assets/Flaky-DYgN586D.js +0 -1
  96. package/dist/web/assets/ForceGraph-CEH86-Z0.js +0 -1
  97. package/dist/web/assets/Impact-dBPp7aM2.js +0 -3
  98. package/dist/web/assets/Jobs-CSyN6YRx.js +0 -5
  99. package/dist/web/assets/KindPage-BQl-5bcd.js +0 -6
  100. package/dist/web/assets/Migration-COly7O-T.js +0 -2
  101. package/dist/web/assets/Product-7mM8tcxH.js +0 -7
  102. package/dist/web/assets/Production-De5CCUoP.js +0 -1
  103. package/dist/web/assets/Quality-Q_iqj3fk.js +0 -1
  104. package/dist/web/assets/Readiness-kU9kum_I.js +0 -1
  105. package/dist/web/assets/Record-CIhINuEz.js +0 -2
  106. package/dist/web/assets/Regression-CMQnH7dN.js +0 -5
  107. package/dist/web/assets/Reports-dUOe6_vN.js +0 -2
  108. package/dist/web/assets/RunDiff-BVRRIz3m.js +0 -1
  109. package/dist/web/assets/Runs-CkNWhAhe.js +0 -2
  110. package/dist/web/assets/TestCases-exR7hRWd.js +0 -1
  111. package/dist/web/assets/TestData-yVPMg9kw.js +0 -2
  112. package/dist/web/assets/TestDebt-C3sM6cH0.js +0 -1
  113. package/dist/web/assets/Tosca-Bcalg1JU.js +0 -2
  114. package/dist/web/assets/WhatsNew-EFSt6xx2.js +0 -1
  115. package/dist/web/assets/dataParts-D33u08WR.js +0 -3
  116. package/dist/web/assets/families-Btjss8bN.js +0 -1
  117. package/dist/web/assets/frame-D3IhgCFt.js +0 -4
  118. package/dist/web/assets/index-D5sya6FK.css +0 -2
  119. package/dist/web/assets/index-v-k_CVn7.js +0 -45
  120. package/dist/web/assets/logos-CfpaNwbY.js +0 -1
  121. package/dist/web/assets/palette-X7hU78Wy.js +0 -1
  122. package/dist/web/assets/parts-B7YrlR3a.js +0 -1
  123. package/dist/web/assets/productParts-CAxyMnWJ.js +0 -1
  124. package/dist/web/assets/qualityParts-CN9JVKZN.js +0 -1
  125. package/dist/web/assets/rows-IEP4Jvfi.js +0 -1
  126. package/dist/web/assets/segmented-DBqHvZW3.js +0 -1
  127. package/dist/web/assets/usePageChat-D_3KsqBU.js +0 -1
@@ -426,6 +426,37 @@ verdict) and Contracts (each contract, and how well each check is measured).
426
426
  <p>For Ollama this matters: a prompt longer than the server's context length is cut from the start without an error. Without <code>&quot;context&quot;</code> ForgeQE assumes 32K for an Ollama profile; start the server with <code>OLLAMA_CONTEXT_LENGTH</code> set to the same number.</p>
427
427
  </div></section>
428
428
  <section class="doc sub" id="doc-how_to_use-signing-in-to-your-tools"><h4>Signing in to your tools</h4><div class="prose"><p>Instead of copying tokens into <code>.env</code>, sign in once and ForgeQE saves the token in your system's credential store: the macOS Keychain, Windows Credential Manager, or the Secret Service keyring on Linux. On a machine without one, such as a headless Linux box, it uses <code>~/.forgeqe/credentials.json</code>, readable only by you.</p>
429
+ <p><strong>Secrets and vaults.</strong> Settings › Secrets has every password, key and token ForgeQE keeps in your credential store,
430
+ by name: typed in Settings, pulled from a vault, or kept by a sign-in (removed by signing out of it). Add a secret saves
431
+ its value one way; ForgeQE never shows it again and the agents see only its name. Agents and tests use a secret by its
432
+ name: in a sign-in (<code>logins:</code>), an environment's <code>secrets:</code>, or a test's variables (model-run shells never get one a
433
+ test does not read).</p>
434
+ <p>The Vaults tab connects Azure Key Vault (a vault's name), Google Secret Manager (a project) and AWS Secrets Manager (a
435
+ region). Sign in with your browser (recommended): each vault's row shows whether ForgeQE can sign in, and <strong>Sign in</strong>
436
+ starts the provider's own browser sign-in on this computer (<code>az login</code>, <code>gcloud auth login</code>, or <code>aws sso login</code> for an
437
+ SSO profile set up once with <code>aws configure sso</code>; AWS CLI 2.9 or later), showing its link and one-time code when there
438
+ is one. The cloud's CLI keeps the sign-in and renews it; ForgeQE saves nothing. For a computer with nobody to sign in,
439
+ such as a build agent, a vault signs in with keys that are themselves saved secrets instead (a service principal's
440
+ tenant, client id and secret; a service account's JSON key; access keys). Browse lists a vault's secret names, never a value; pick one, give it a
441
+ variable's name (and a JSON field, for a secret that holds JSON) and Pull: the value goes from the vault straight to
442
+ the credential store. Pull all again reads each one's newest value. Vault connections are kept on this computer for
443
+ this project (<code>~/.forgeqe/secrets</code>), never in the repository, so a repository cannot make ForgeQE read your vault; a
444
+ value is read only when you pull it. ForgeQE calls only the provider's own https address, follows no redirect, and an
445
+ error never repeats what the provider sent.</p>
446
+ <p>To give teammates the same vaults, <strong>Export</strong> on the Vaults tab saves a file of the connections (<code>forgeqe-vaults.json</code>):
447
+ each vault's provider, place and how it signs in (key variables by name), and which vault secret each variable is
448
+ pulled from. It holds no value, token or time, so it can be shared. A teammate's <strong>Import</strong> checks every vault again,
449
+ keeps a vault they already have by that name as it is (one that differs is skipped, never replaced), and lists each
450
+ secret to pull on Saved as &quot;not pulled yet&quot;: they sign in with their own account and press Pull. A file that holds
451
+ anything but connections is refused whole.</p>
452
+ <p><strong>Repository tokens.</strong> The git repositories ForgeQE clones (Tosca exports, a migration's source, the product's
453
+ repositories) sign in with a personal access token named by its variable. They are secrets like the others: Settings ›
454
+ Secrets › <strong>Repository tokens</strong> (a filter of its Saved list) shows each one by name, saved by ForgeQE (Edit, Remove)
455
+ or set in your shell, with what uses it, and first the ones a clone or product repository needs that have no value
456
+ yet. Add a token saves its value straight to the credential store; the page never shows it again, and the agents see
457
+ only its name. The old address <code>#/settings/repo-tokens</code> opens this filter. A name is capital letters,
458
+ digits and <code>_</code> (<code>GITHUB_TOKEN</code>, <code>AZURE_DEVOPS_PAT</code>); names that change how programs start, <code>GIT_*</code> among them, are
459
+ refused. Give each token read access to the repositories only.</p>
429
460
  <div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre><code>forgeqe auth login # pick a system
430
461
  forgeqe auth login jira # or name it: azure_devops, github, copilot, jira, confluence, testrail, zephyr, qtest, xray,
431
462
  # browserstack, testmu, gitlab, postman, sentry, azure, dataverse
@@ -2319,7 +2350,7 @@ other agents, and those are routed.</li>
2319
2350
  <div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Create an invoice for Contoso in the Billing app and save it as a test</li><li>I'll show you the steps in Billing: record them</li><li>Replay the billing workflow with customer Fabrikam</li><li>Step 4 timed out while the list loaded: fix the workflow</li></ul></div>
2320
2351
  <div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li><li><span class="need req">Required</span><span>Windows desktop apps: env.yaml (kind: desktop) or desktop.apps in forgeqe.yaml</span></li><li><span class="need input">You give</span><span>a Windows machine, and the app in forgeqe.yaml desktop.apps</span></li></ul></div>
2321
2352
  <div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Windows only, one run at a time per desktop</li><li>Apps whose controls UI Automation cannot see (Citrix, some Java and custom-drawn apps) are not supported yet</li></ul></div>
2322
- <div class="fact"><span class="mono">Tools</span><p class="tools"><code>desktop_explore</code> <code>desktop_record</code> <code>desktop_replay</code> <code>desktop_edit_workflow</code></p></div>
2353
+ <div class="fact"><span class="mono">Tools</span><p class="tools"><code>desktop_explore</code> <code>desktop_record</code> <code>desktop_replay</code> <code>desktop_edit_workflow</code> <code>desktop_manage</code></p></div>
2323
2354
  </div>
2324
2355
  <div class="detail"><span class="mono">In detail</span>
2325
2356
  <section class="doc" id="doc-how_to_use-desktop-apps-windows">
@@ -2533,7 +2564,14 @@ refused there. Values are substituted once and never expanded again. Targets tak
2533
2564
  <code>{{customer}}</code> as the control to click), never a secret.</li>
2534
2565
  <li><strong>Keys:</strong> <code>ctrl</code>, <code>shift</code> and <code>alt</code> with one named key or character (<code>ctrl+s</code>, <code>alt+f4</code>, <code>enter</code>, <code>f5</code>). The Windows
2535
2566
  and context-menu keys are refused: Win+R followed by typing runs any command.</li>
2536
- <li><strong>Typing</strong> is literal: pywinauto's key syntax (<code>^</code>, <code>%</code>, <code>+</code>, <code>~</code>, <code>{ENTER}</code>) in the text is escaped.</li>
2567
+ <li><strong>Typing</strong> is literal: pywinauto's key syntax (<code>^</code>, <code>%</code>, <code>+</code>, <code>~</code>, <code>{ENTER}</code>) in the text is escaped. On Windows a
2568
+ <code>type</code> step clears the field and types the text key by key, like a person: some controls show text set through UI
2569
+ Automation but act only on typed input (the Windows Save and Open dialogs keep their default file name). Text with
2570
+ line breaks or tabs is set instead, so a line break never presses Enter in a form.</li>
2571
+ <li><strong>Only the app gets the input.</strong> pywinauto clicks at screen coordinates and keys go to the window in front, so before
2572
+ a click, <code>type</code> or <code>keys</code> the app's window is brought forward, and nothing is sent while another program's window
2573
+ covers the point or keeps the keyboard: the step fails and says so. <code>keys</code> go to the app's open dialog, not its main
2574
+ window behind it. A <code>dismiss</code> control that could not be clicked is named in the step's error.</li>
2537
2575
  </ul>
2538
2576
  </div>
2539
2577
  </section>
@@ -2569,6 +2607,11 @@ or <code>&lt;APP&gt;_PASSWORD</code>, which the result tells you to set). Text e
2569
2607
  placeholder. The typed characters themselves are never kept, only the field's text when you move on.</li>
2570
2608
  <li><strong>Only the app:</strong> clicks and keys outside the app's own process are not recorded; nor are the Windows and menu keys,
2571
2609
  or controls with neither an AutomationId nor a name. The result lists what was left out.</li>
2610
+ <li><strong>A click that closes a dialog</strong> (OK after typing a password) is held for up to 0.2 s while ForgeQE finds the control
2611
+ under it and reads the field you typed in, so neither is lost when the dialog goes. Typed characters are looked up
2612
+ once per run of typing, not once per key.</li>
2613
+ <li><strong>A cell in a list or grid row</strong> is recorded inside its row (<code>path</code>: the row's type and name), since every row has a
2614
+ cell like it (a password column's <code>********</code>).</li>
2572
2615
  <li>The run folder has <code>workflow.yaml</code>, <code>run.json</code> and <code>report.html</code>, like explore. Replay it with
2573
2616
  <code>forgeqe desktop replay</code>.</li>
2574
2617
  </ul>
@@ -2748,6 +2791,38 @@ controls' AutomationIds, and <code>ufo/</code> has UFO's logs.</li>
2748
2791
  <p>Found by the Windows runs and fixed: UFO's pins need Python 3.10 (pandas 1.4.3); UFO prints emoji panels to stdout, which
2749
2792
  is the engine's event stream and crashed on the cp1252 console (now sent to stderr, characters replaced); an error in
2750
2793
  UFO's own evaluation lost the recorded actions (the trace is now kept and saved).</p>
2794
+ <p>Found by replaying KeePass 2 on Windows 11 ARM64 (a Parallels VM, runs started from a scheduled task) and fixed: text
2795
+ set through UI Automation was shown by the Save dialog but not used, so the database was saved under the default name
2796
+ while every step passed (now typed); with the app behind another window, clicks went to that window, <code>dismiss</code>
2797
+ reported nothing, and <code>keys</code> went to the main window instead of the dialog (now the app is brought forward, the click
2798
+ point and the keyboard are checked, and keys go to the open dialog); a dialog closing while its window was searched
2799
+ failed the next step with a COM error (now searched again). On that VM a synthetic double-click did not register;
2800
+ check <code>double_click</code> on real hardware. The x64 Python the engine runs in needs the x64 Visual C++ runtime (<code>win32ui</code>).
2801
+ On agent-desktop there: npm 11.20 refuses <code>--allow-scripts</code> with <code>--prefix</code> (the install script is now allowed for the
2802
+ pinned version in the folder's <code>package.json</code>); the state folder's Windows ACL (Administrators, OWNER RIGHTS) was
2803
+ refused by agent-desktop (now this user and SYSTEM only); and a dialog listed as its own window and inside its main
2804
+ window's snapshot matched twice (now one control). Still open: a button whose click opens a modal message box times out
2805
+ in UI Automation's Invoke, and the step fails without sending it again, so such steps need the pywinauto driver.</p>
2806
+ <p>Found by exploring and healing KeePass there with Azure OpenAI gpt-5.4 and fixed: a drop-down menu's items are listed
2807
+ twice by UI Automation, so a recorded menu click was &quot;several controls match&quot; and could not replay (now one control
2808
+ seen twice, the same runtime id, is that control); a check of the app's main window could never be found, as replay
2809
+ searched only inside windows (now a target equal to the window is the window); the heal model, given only the old
2810
+ target, replaced a renamed menu item by the menu itself (that step passed and the next one failed), and the heal was
2811
+ remembered and offered for the workflow (now the model is told the step and the one before it, and a heal is
2812
+ remembered, written or offered only from a replay that passed; a remembered heal used in a failed replay is
2813
+ forgotten); and the offer to write heals waited for an answer with no terminal (now never asked without one). Explore
2814
+ ran 4 steps for $0.12 when the app opened at its main window.</p>
2815
+ <p>Also found there and fixed: an app that opens with a start-up dialog (KeePass's update question) left UFO on that
2816
+ dialog's window after it closed, so every later click went to (0, 0) until the step limit ($1.22 for nothing); now a
2817
+ closed window UFO chose is replaced by the app's live window (<code>follow_live_window</code>, <code>ufo_runner.py</code>), and the same
2818
+ explore passes for $0.18. In recording by hand, the OK that closed a dialog right after typing was lost, since the
2819
+ control under the click was looked up after a lookup per typed key (now the click is held while it is looked up, and
2820
+ typing is one lookup). A click on a list row's <code>********</code> cell was recorded as that cell alone, which every row has (now
2821
+ inside its row). App memory borrowed another goal's whole flow as a &quot;shared start&quot;; that flow ended where it began (a
2822
+ dialog opened and closed again), so UFO, seeing the screen it started from, did it all again and the workflow held it
2823
+ twice. Now the note lists the replayed steps and says to finish if they do the goal (UFO then made no click, $0.02),
2824
+ and steps that exactly repeat the replayed block are kept once. A replay with <code>--no-heal</code>, or with a model whose key
2825
+ is not set, stopped at &quot;No model in llms.json can …&quot; (now healing is off for that replay, and it runs).</p>
2751
2826
  </div>
2752
2827
  </section>
2753
2828
  <section class="doc" id="doc-docs-desktop-next-steps">
@@ -4821,6 +4896,12 @@ forgeqe tosca plan tosca/checkout.tsu --to playwright-typescript [--only 1034698
4821
4896
  forgeqe tosca confirm tsc-20261105-151116-1f21 --accept-limits # a person at a terminal types the plan's id
4822
4897
  forgeqe tosca run tsc-20261105-151116-1f21 # here, or as a job:
4823
4898
  forgeqe jobs add tosca-ui --now -- tosca run tsc-20261105-151116-1f21
4899
+ forgeqe tosca plan tosca/ --to playwright-typescript # every .tsu in a folder, as one plan
4900
+ forgeqe tosca clone https://github.com/org/tosca-exports.git --branch main --token-var GITHUB_TOKEN # exports from git
4901
+ forgeqe tosca plan --workspace ws-… --to playwright-typescript # every export of that clone (or name some)
4902
+ forgeqe tosca reimport tsc-… [--refresh] # read the exports again: a new plan that keeps unchanged tests
4903
+ forgeqe tosca map tsc-… [--json] # each Tosca test case by its unique id, and what became of it
4904
+ forgeqe tosca ready tsc-… [--environment qa --app shop | --base-url URL] [--accept env:NAME,data] # what running the tests needs, before it starts
4824
4905
  forgeqe tosca verify tsc-… [--suite Smoke] # run the converted tests again, no model
4825
4906
  forgeqe tosca fix tsc-… --unit u004 --note &quot;The cart badge is now a span&quot; # one file back to the Tosca agent
4826
4907
  </code></pre></div>
@@ -4839,7 +4920,49 @@ out). Tosca's execution lists become suites: each test is tagged with the lists
4839
4920
  title), and ForgeQE checks the tags are there. Test
4840
4921
  cases whose steps are desktop, SAP, API or mobile are left out for now, and named. A step ForgeQE cannot convert
4841
4922
  (an unknown ActionMode or token, a TBox module with no web equivalent) is a limit: it stays in the test as a marked
4842
- comment for a person to finish.</li>
4923
+ comment for a person to finish.
4924
+ <strong>Several exports, or a git repository.</strong> A plan can read many <code>.tsu</code> files: picked on the page, named on the
4925
+ command line, or a folder (every export in it, at most 50). Each is read on its own and the readings merged: a test
4926
+ case that two exports both hold (same id, name, folders and steps) is converted once and the plan says so; a
4927
+ different test case with the same id gets its export's number; a module of the same name becomes one page object;
4928
+ execution lists and variables join. Exports can come from a git repository instead of the project:
4929
+ <code>forgeqe tosca clone &lt;url&gt;</code> (or From a git repository on the page) makes a shallow copy under ForgeQE's home with
4930
+ the Migration agent's checks (https or git@ only, no user name in the address, the token by its variable's name and
4931
+ only as a header, no hooks, submodules or links) and keeps it only when it holds an export; such a copy is a Tosca
4932
+ source, never listed as a migration's. Every file of a plan is checked by its digest before each run, so a changed
4933
+ or removed export (or a removed copy) stops it until a new plan is made.
4934
+ <strong>Back to Tosca.</strong> Each test case keeps Tosca's unique id (its surrogate). <code>tosca-map.json</code> in the target folder
4935
+ (beside <code>tosca-suites.json</code>, written by ForgeQE after each run and verify) lists every Tosca test case of the plan
4936
+ by that id, its Tosca path and export, and what became of it: its test file, last outcome, the Tosca steps in the
4937
+ test and those left for a person. <code>forgeqe tosca map &lt;plan&gt;</code> prints it; the report shows the id on each test case
4938
+ and downloads it as a Traceability CSV, so a team can run both side by side and retire Tosca test cases one by one.
4939
+ <strong>Reading the exports again.</strong> When Tosca changes, <code>forgeqe tosca reimport &lt;plan&gt;</code> (or Read exports again on the
4940
+ conversion's page) makes a new plan from the same exports, for the same target and folder, and compares each test
4941
+ case with the earlier plan by its unique id (or, for a plan made before ids were kept, its id) and its steps:
4942
+ unchanged ones keep their tests (no agent call, as long as the file is still as it was converted), changed and new
4943
+ ones are converted, and ones no longer in the exports are listed with their tests left in place for a person to
4944
+ remove. Test cases left unpicked before stay unpicked. <code>--refresh</code> (or the page's option) clones each repository
4945
+ again for its newest commit, as before; the old copy stays for the old plan.
4946
+ <strong>What can be migrated.</strong> <code>forgeqe tosca inspect</code>, <code>show</code> and the Tosca page put every test case of the export in
4947
+ one kind: web (converted), web with steps for a person, API (converted), API with steps for a person, web and API
4948
+ (converted), web or API mixed with another engine (converted: its web and API steps, and each desktop, mobile or
4949
+ database step stays in the test as a marked comment saying what it does, for a person to code), desktop, mobile,
4950
+ database and files, steps nothing reads, nothing to convert, not picked. Each kind says what becomes of it and the Tosca
4951
+ modules (with their engine) behind it, or for steps left to a person the reasons; the page downloads it as a CSV
4952
+ per test case.
4953
+ <strong>Ready to run.</strong> Before a conversion starts, ForgeQE checks what running its tests needs and asks for what is
4954
+ missing (<code>forgeqe tosca ready &lt;plan&gt;</code>, or the page's Before it runs): where the tests start (the address the export
4955
+ recorded, an app of env.yaml, never an environment named like production, or one given: http(s) only, no user name
4956
+ in it), every environment variable the tests read (set, or saved in the credential store from the page; never its
4957
+ value in a file), the programs the target runs with (<code>npx</code>, <code>mvn</code>, <code>dotnet</code>, looked up on PATH), and Tosca test
4958
+ data the export does not hold. A missing address or program blocks the start; a variable or the test data is
4959
+ answered or accepted (&quot;convert without it&quot;). Answers are kept in <code>.forgeqe/tosca/&lt;plan&gt;/ready.json</code>; <code>run</code>, <code>fix</code>
4960
+ and <code>verify</code> refuse until nothing is open, and the tests get the reviewed address as <code>BASE_URL</code>.
4961
+ <strong>What it may cost.</strong> Review's Estimate (and <code>forgeqe tosca show</code> or <code>confirm</code>) gives the model tokens of the
4962
+ files still to write, as a range, and their price with the model the Tosca agent is routed to when that model has a
4963
+ price in <code>llms.json</code> (<code>price:</code>; none for a Copilot seat). It is worked out from this project's earlier Tosca
4964
+ conversions once they have written at least 5 files (tokens per file), else from defaults sized by each test case's
4965
+ steps; files already written are not counted again. An estimate, never a limit: a hard test case takes more tries.</li>
4843
4966
  <li><strong>Confirm.</strong> As for a migration: a person types the plan's id at a terminal; the confirmation is kept under
4844
4967
  ForgeQE's home by the plan's digest, and a run refuses a plan whose export changed since.</li>
4845
4968
  <li><strong>Run.</strong> The setup, then each page object, then each test, each in a fresh session of the Tosca agent, which may edit
@@ -4854,7 +4977,22 @@ with the target's own command, and its outcome and whole output are kept. <code>
4854
4977
  lists each suite with its tag and test files, and each test with its Tosca folders, suites and last outcome.</li>
4855
4978
  <li><strong>Report.</strong> <code>tosca.md</code> in <code>.forgeqe/tosca/&lt;plan&gt;/</code>: each test case's outcome and fidelity (steps marked of steps
4856
4979
  required), the steps a person has to finish, and the environment variables to set. Running the plan again keeps the
4857
- files that are done and unchanged.</li>
4980
+ files that are done and unchanged. <code>report.html</code> beside it is ForgeQE's HTML run report of the conversion, written
4981
+ when a run or <code>tosca verify</code> ends: one case per Tosca test case, its Tosca steps as passed, failed or left for a
4982
+ person, its problems and output, and its failure screenshot and video (in <code>report-cases/</code>, so the folder opens
4983
+ offline). The web app's report shows the totals, the model's tokens and cost, and where the tests came from and went
4984
+ to at the top; the test cases grouped as Failed, Needs a look, Passed, Not run and Left out, 50 at a time and
4985
+ searchable; and the picked one's details beside them. Its HTML report button downloads <code>report.html</code> with the failure
4986
+ screenshots inside; Zip with videos downloads <code>report.zip</code> (<code>report.html</code> and <code>report-cases/</code> with every screenshot
4987
+ and video, made when asked and once the run has ended): unzip it and open <code>report.html</code>.</li>
4988
+ <li><strong>Screenshots and video, by default.</strong> Every test ForgeQE runs after the conversion (each try, the final run, and
4989
+ <code>tosca verify</code>) keeps a screenshot when it fails and a video of the run, under <code>test-results/</code> in the target folder
4990
+ (the run gets that folder as <code>FORGEQE_EVIDENCE_DIR</code>); they are copied to <code>.forgeqe/tosca/&lt;plan&gt;/evidence/&lt;unit&gt;/</code>
4991
+ and shown on the report page. Where the runner has switches for it, ForgeQE passes them itself (pytest-playwright's
4992
+ <code>--screenshot=only-on-failure --video=on</code>, Cypress's <code>--config video=true,…</code>); elsewhere the setup step sets it up
4993
+ (<code>playwright.config</code>'s <code>screenshot: 'only-on-failure', video: 'on'</code>, a test base for Java and C#, an <code>afterTest</code>
4994
+ hook and wdio-video-reporter for WebdriverIO) and ForgeQE checks the project for it, setting it up again when it is
4995
+ missing. Selenium has no video recorder: its tests keep failure screenshots only.</li>
4858
4996
  </ol>
4859
4997
  <p>Exit codes of <code>tosca run</code>: <code>0</code> every test converted, <code>1</code> some or none, <code>2</code> stopped. The Tosca page of <code>forgeqe web</code>
4860
4998
  (sidebar, Test) does the same in four steps (export, target, instructions, review): it lists the <code>.tsu</code> exports in
@@ -4862,7 +5000,126 @@ the project, reads the one you pick and lets you choose its test cases, then fol
4862
5000
  with how many of its Tosca steps the test does and its whole output (Fix sends one back to the Tosca agent with a note),
4863
5001
  Run tests again for all of them or Run for one suite, each test case's
4864
5002
  Tosca steps beside the converted code with a step's lines marked and the locators Tosca recorded, and the activity as it
4865
- happens. In the shell, &quot;convert
5003
+ happens.</p>
5004
+ <p><strong>The Tosca assistant.</strong> The Tosca page opens on its Agent tab: say in your words what to migrate (&quot;checkout.tsu to
5005
+ Playwright in TypeScript on QA, into e2e/tosca&quot;) and the assistant asks only what it still needs, one thing at a time:
5006
+ the exports, the framework, the language, where the tests start, then a folder or rules for the code. Each question
5007
+ offers its options to pick; you can also type, and change anything you said. Open the prefilled wizard then reads the
5008
+ exports, makes the plan and opens it on Review with every stage filled in; nothing starts until you confirm, as before.
5009
+ ForgeQE's model (<code>forgeqe-tosca-assistant</code>: no tools, a fixed answer shape) only reads your words. ForgeQE keeps only
5010
+ what your project has (an export it lists, a target it runs, a web app of env.yaml outside production), an address only
5011
+ of http(s) that you wrote and that is not production's, and a folder only inside the repository; it chooses the next
5012
+ question itself. Without a model, ForgeQE's rules read the same words. The exports question lets you pick several, or
5013
+ clone a git repository of exports: paste its address (add &quot;branch <name>&quot; for a branch), and the assistant asks &quot;Clone
5014
+ it?&quot; first; it clones as the wizard does and picks the clone's exports. For a private repository, the question has an
5015
+ Access token field: pick a token already saved (in Settings › Secrets › Repository tokens, or a variable such as GITHUB_TOKEN;
5016
+ Check again reads the list once you have saved one there), or Add a token, which keeps the value in ForgeQE's
5017
+ credential store under its name. The chat and the model only ever see the name, Clone it waits until a value is saved, and a token typed into the
5018
+ chat itself is refused and never sent. Each conversation is kept in ForgeQE's home (<code>~/.forgeqe/tosca-assistant</code>, readable by you only,
5019
+ two weeks, the newest 30), so it survives <code>forgeqe web</code> starting again, and the page reopens the last one; New
5020
+ conversation removes it. Nothing is written to the project until the wizard makes the plan (or you agree to a clone).
5021
+ When the picked exports hold desktop or mobile test cases, or database checks, the assistant also asks which desktop
5022
+ or mobile app their workflows start and which database their queries read (only the names Settings has, or &quot;Tell you
5023
+ later&quot;); the wizard puts the answers on Review.</p>
5024
+ <p><strong>API test cases.</strong> Test cases of Tosca's API engine (API Scan modules: one per call, its Method, Endpoint and
5025
+ Resource as the module's settings, the request and the response as attribute trees) are converted too, alone or in a
5026
+ test case with web steps. Each call becomes a request with the target's own HTTP client (Playwright's <code>request</code>,
5027
+ Cypress's <code>cy.request</code>, Node's <code>fetch</code> for WebdriverIO, the language's standard client for Selenium; no dependency is
5028
+ added for HTTP), then a check for each Tosca verify: the status, a header, a JSON value (Tosca's <code>==</code>, <code>!=</code>, <code>&lt;</code>, <code>&gt;</code>,
5029
+ <code>*</code> comparisons kept) or the body; a buffer keeps a response value for a later call. The API's address and any token
5030
+ in a header (<code>Bearer {CP[ApiToken]}</code>) are variables the tests read, the token a secret, never in the code. An
5031
+ attribute ForgeQE cannot place (a timeout, a certificate) stays a marked comment for a person, and the fidelity check
5032
+ counts every request and check as it does a web step. A plan of API test cases only needs no start address; a
5033
+ variable the tests read that holds an address of production in env.yaml blocks the start, since the tests change data.</p>
5034
+ <p><strong>Tosca's test data.</strong> A template test case reads its values from a TestCaseDesign test sheet (<code>{XL[Name]}</code>), which a
5035
+ .tsu export does not hold. On Review's <strong>Test data from Tosca</strong> (or <code>forgeqe tosca data &lt;plan&gt; &lt;file&gt; [--sheet NAME]</code>),
5036
+ name a data file of the project: Tosca's Export to Excel of the test sheet, or any CSV, Excel or JSON with the values.
5037
+ ForgeQE matches each name to a column (ignoring case, spaces and punctuation, then by the last part of a dotted name),
5038
+ in either layout: one row per instance, or Tosca's own with the attributes down the first column and the instances
5039
+ across. Several files can be named, one per test sheet. At conversion each test case whose values are all found gets
5040
+ its rows in <code>tosca-data/&lt;case&gt;.json</code> in the target folder, with only the columns it reads, and its test runs once per
5041
+ row. A value named like a password or token is never written to that file (it would be committed): the test reads it
5042
+ from an environment variable, <code>TOSCA_DATA_&lt;NAME&gt;</code>, which Review lists to set like any other. The file is read with the
5043
+ project's own reader (inside the project, no hidden part, no link out, sizes capped, a formula never worked out), and
5044
+ the values never reach the agent: it is told the file and the names. A value still not found stays a marked spot for
5045
+ a person, or you accept leaving them all for a person. ForgeQE's reader now keeps <code>{XL[...]}</code> as test data even inside
5046
+ a longer value (<code>Welcome {XL[Customer.FirstName]}</code>); before, the parser's <code>$XL:</code> text could reach a test as typed text.</p>
5047
+ <p><strong>Database steps.</strong> A Tosca database step (a module of a database engine: an SQL statement and checks of its result)
5048
+ becomes code in the test that runs the statement with the target's own database client and asserts each checked cell
5049
+ (row and column) as Tosca did, beside the test's web and API steps; a test case of database checks alone is converted
5050
+ too. Only a statement that reads is converted: one <code>SELECT</code> (or <code>WITH … SELECT</code>), nothing that changes data or the
5051
+ schema, runs a procedure, writes a table or holds a second statement. A statement Tosca fills with its own values
5052
+ (<code>{B[...]}</code>, <code>{CP[...]}</code>, <code>{XL[...]}</code>) is converted with each value as a bound query parameter, never pasted into the
5053
+ statement; one whose value sits inside quotes, and any other statement, stays a marked comment for a person. Before it runs, Review asks which database:
5054
+ one of Settings › Databases whose connection string is in a variable (<code>url_env</code>), never one named like production
5055
+ (<code>forgeqe tosca ready &lt;plan&gt; --database NAME</code>). The test reads that connection string from <code>TOSCA_DB_URL</code>, which
5056
+ ForgeQE gives only the test run; the export's own connection string (and any password in it) is never read into the
5057
+ plan, the brief or the code. The CI pipeline names <code>TOSCA_DB_URL</code> as a secret.</p>
5058
+ <p><strong>File and Excel steps.</strong> A Tosca step that reads a file (a TBox file module: whether it is there, its text, two text
5059
+ files compared) or a workbook (Tosca's Excel engine: a sheet's cells) becomes a check in the test, made with the
5060
+ target's own code: read only, as database steps are. The file is found by its name, among the files the test
5061
+ downloaded or in the folder <code>TOSCA_FILES_DIR</code> names (Review asks for it), never at the Tosca machine's own path. A step
5062
+ that writes, copies, moves, renames or deletes a file, or sets a cell, stays a marked comment for a person.</p>
5063
+ <p><strong>Desktop and mobile test cases.</strong> A Tosca test case of desktop steps (UI Automation: WinForms, WPF, Win32) or of
5064
+ mobile steps becomes one of ForgeQE's own workflows, <code>forgeqe-desktop-v1</code> or <code>forgeqe-mobile-v1</code>, written by code with
5065
+ no model: Tosca finds each control by its UI Automation properties (AutomationId, Name, ControlType, ClassName) or its
5066
+ resource id, accessibility id, text and class, which are what a workflow's targets are. Each step becomes a workflow
5067
+ step (type, click or tap, select, keys, expect, wait for), a Tosca-encrypted value <code>{{secret:NAME}}</code>, and test data
5068
+ <code>{{name}}</code>. With a data file picked on Review (see Tosca's test data), its rows go into <code>&lt;case&gt;.data.csv</code> beside the
5069
+ workflow, for <code>--data</code>; a value named like a secret is typed from <code>TOSCA_DATA_&lt;NAME&gt;</code> instead and never written. A step a workflow cannot do (a condition, a loop, a buffer, a Tosca expression, a TBox module, a control
5070
+ with no id or name recorded) is left out and listed with why in the conversion's results, for a person to add. Before
5071
+ it runs, Review asks which app the workflows start: one of the desktop or mobile apps of Settings › Environments (or
5072
+ <code>desktop.apps</code>, <code>mobile.apps</code>); <code>forgeqe tosca ready &lt;plan&gt; --desktop-app NAME --mobile-app NAME</code> at a terminal. Review
5073
+ also checks that every secret the workflows type is listed in <code>desktop.secrets</code> (or <code>mobile.secrets</code>), which replay
5074
+ requires, and says which to add in Settings. They are
5075
+ written under <code>workflows/</code> in the target folder (so the pull request carries them) and checked again before they are
5076
+ written; replay them on a computer with the app or a device with <code>forgeqe desktop replay</code> or <code>forgeqe mobile replay</code>.
5077
+ A plan of workflows only needs no model and no setup. SAP GUI, Java Swing, Delphi and PowerBuilder controls are not
5078
+ ones UI Automation finds, so such cases stay out. In a case that also drives the web or an API, each run of desktop or
5079
+ mobile steps becomes a small workflow of its own (<code>workflows/&lt;case&gt;-part&lt;N&gt;.yaml</code>), and the test replays it at that
5080
+ point by starting <code>forgeqe desktop replay</code> (or <code>mobile replay</code>) with an argument list, failing when it fails. ForgeQE's
5081
+ own runs (and the CI file's tests job) set <code>TOSCA_SKIP_APP_STEPS=1</code>, so the test skips those parts on a computer
5082
+ without the app; a run on a machine with the app and ForgeQE installed leaves it unset. Steps a workflow cannot do
5083
+ (SAP GUI, Java Swing) stay marked comments.</p>
5084
+ <p><strong>In batches.</strong> A large export need not be one long run: tick <strong>Convert in batches</strong> when you start (or
5085
+ <code>forgeqe tosca run &lt;plan&gt; --batch N</code>) and ForgeQE converts the set-up, then the next N test cases not tried yet with
5086
+ the page objects they use, checks every converted test again, and stops. The others wait (&quot;Waiting for a later
5087
+ batch&quot;). Check the batch (fix a test, or accept it), then <strong>Continue with the next batch</strong> on the conversion's page
5088
+ (or run the same command again). What is done is kept; a test that failed is never tried again by a batch (fix it
5089
+ with Fix), so one hard case never stalls the rest. A run without <code>--batch</code> tries everything not done.</p>
5090
+ <p><strong>A CI pipeline per execution list.</strong> When a conversion has run, its page's <strong>CI pipeline</strong> (or
5091
+ <code>forgeqe tosca ci &lt;plan&gt; [--azure] [--write]</code>) gives a GitHub Actions workflow or an Azure Pipelines file that runs the
5092
+ converted tests in your CI, one job per Tosca execution list with the runner's own filter (Playwright's <code>--grep @tag</code>,
5093
+ pytest's <code>-m</code>, Maven's <code>-Dgroups</code>, <code>dotnet test --filter TestCategory=</code>), picked by hand (one list or all) or on a pull
5094
+ request that changes the target folder. It sets up the target's toolchain, installs the dependencies and browsers, keeps
5095
+ the failure screenshots and videos as artifacts, and names the variables the tests read: <code>BASE_URL</code> as a variable and
5096
+ the others as secrets, by name only (<code>${{ secrets.NAME }}</code>, <code>$(NAME)</code>), passed to the step that runs the tests and not
5097
+ to the installs. No value, address or Tosca text goes in the file. Copy or download it, or add it to the target
5098
+ folder's <code>ci/</code> (so the pull request carries it); GitHub runs a workflow only from <code>.github/workflows/</code>, so move it there.
5099
+ Desktop and mobile workflows replay in jobs of their own (<code>forgeqe desktop replay</code> or <code>forgeqe mobile replay</code> of each,
5100
+ with its <code>.data.csv</code>, results as JUnit), ForgeQE installed at this version: the desktop job on a self-hosted Windows
5101
+ runner or agent that has the app, the mobile one on a hosted runner with a device cloud set in <code>forgeqe.yaml</code> (or
5102
+ your own Appium machine). Each replay step gets only the secrets its workflow types, by name.</p>
5103
+ <p><strong>A pull request of the conversion.</strong> When a conversion has run, its page's <strong>Pull request</strong> (or
5104
+ <code>forgeqe tosca pr &lt;plan&gt; [--base BRANCH] [--title TEXT] [--draft]</code> at a terminal, where you type the plan's id to
5105
+ confirm) shows what goes in, then commits the target folder on ForgeQE's own branch <code>forgeqe/tosca/&lt;plan&gt;</code> from the
5106
+ branch it merges into (the remote's default unless you name one), pushes it and opens the pull request: on GitHub with
5107
+ the GitHub CLI (<code>gh</code>), on Azure DevOps with ForgeQE's Azure DevOps sign-in (the remote must be in that organization).
5108
+ The commit is made in a separate copy of the repository (a git worktree), so your own branch and edits stay as they
5109
+ are, and the repository's git hooks do not run. Only the target folder's own files go in: never a link, a dependency,
5110
+ build or run-output folder (<code>node_modules</code>, <code>test-results</code>, …), a <code>.env</code> (its <code>.env.example</code> does), a file named like
5111
+ credentials, or one over 2 MB; the panel lists what was left out and why. The description lists each Tosca test case,
5112
+ its test and how it ran, and points to <code>tosca-map.json</code>. Pushing again updates the same branch and pull request;
5113
+ with nothing new, nothing is pushed. git uses the sign-in it already has on this computer (<code>gh auth setup-git</code>, Git
5114
+ Credential Manager or ssh). ForgeQE merges nothing.</p>
5115
+ <p><strong>Secrets for the converted tests.</strong> A Tosca export's encrypted and <code>{CP[...]}</code> values become variables the tests read
5116
+ (<code>USER_PWD</code>, <code>TOSCA_PASSWORD</code>). Once the exports are picked, the assistant reads which ones the tests need and, for each
5117
+ with no value, asks which saved secret holds it (Settings › Secrets: typed there or pulled from a vault), or leaves it
5118
+ for Review. Review's Before it runs offers the same: Save a value under the variable's name, or <strong>use a saved secret</strong>
5119
+ under another name. The tests then get that secret's value under the name they read; the agents see only names, and
5120
+ no model sees a secret's name. Which secret a variable uses is kept on this computer (<code>~/.forgeqe/tosca-secrets</code>), never
5121
+ in the plan's folder in the repository, and ForgeQE's own keys (its models', trackers') are never offered or given to a
5122
+ test. Conversions lists the plans. In the shell, &quot;convert
4866
5123
  tosca/checkout.tsu to Playwright&quot; inspects the export and makes the plan; you confirm it yourself. The Tosca agent
4867
5124
  knows Tosca from its skill <code>tosca-knowledge</code> (ActionModes, value tokens, expressions, locators, and how each maps to
4868
5125
  every target).</p>