@capagents/forgeqe 2.6.1 → 2.6.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 (98) hide show
  1. package/HOW_TO_USE.md +311 -15
  2. package/README.md +5 -25
  3. package/THIRD_PARTY_NOTICES.md +9 -0
  4. package/bin/activate-web.d.ts +16 -0
  5. package/bin/activate-web.js +117 -0
  6. package/bin/bundle.d.ts +27 -0
  7. package/bin/bundle.js +173 -0
  8. package/bin/forgeqe.js +109 -2
  9. package/bin/license.d.ts +25 -0
  10. package/bin/license.js +178 -0
  11. package/dist/docs-site/docs/architecture/index.html +2 -1
  12. package/dist/docs-site/docs/index.html +291 -11
  13. package/dist/docs-site/docs/search.js +1 -1
  14. package/dist/docs-site/docs/web-app/index.html +35 -6
  15. package/dist/forgeqe.js +1513 -1291
  16. package/dist/template.html +64 -64
  17. package/dist/web/assets/Agent-yd1DyMzR.js +4 -0
  18. package/dist/web/assets/ApiTests-BwOGta9J.js +10 -0
  19. package/dist/web/assets/Chat-P8GH_6gl.js +3 -0
  20. package/dist/web/assets/Data-D2iCqk3t.js +3 -0
  21. package/dist/web/assets/Features-Bu38clxs.js +1 -0
  22. package/dist/web/assets/Jobs-DymuaGeN.js +5 -0
  23. package/dist/web/assets/KindPage-zl6TBkEl.js +6 -0
  24. package/dist/web/assets/Migration-Cg_FUqS_.js +2 -0
  25. package/dist/web/assets/Quality-D3bSHP_B.js +1 -0
  26. package/dist/web/assets/Record-DkCLJos6.js +2 -0
  27. package/dist/web/assets/Regression-B2qMKjAE.js +5 -0
  28. package/dist/web/assets/Reports-D_G9yfDa.js +2 -0
  29. package/dist/web/assets/Response-BnPAefP-.js +4 -0
  30. package/dist/web/assets/Runs-DsDj9-LT.js +2 -0
  31. package/dist/web/assets/Shell-DlZHZN0d.js +3 -0
  32. package/dist/web/assets/TestData-qI1R5Q9v.js +2 -0
  33. package/dist/web/assets/WhatsNew-CoCHqSDm.js +1 -0
  34. package/dist/web/assets/accessibility-CH8EpEAV.svg +1 -0
  35. package/dist/web/assets/{arrow-down-BqARSDDZ.js → arrow-down-BWCXlJU0.js} +1 -1
  36. package/dist/web/assets/arrow-right-CdxkQBV7.js +1 -0
  37. package/dist/web/assets/{bot-BtKTIZEs.js → bot-D8486kSA.js} +1 -1
  38. package/dist/web/assets/capgemini-mark-D6aZFnD3.png +0 -0
  39. package/dist/web/assets/chevron-up-CQz_ZmIK.js +1 -0
  40. package/dist/web/assets/circle-BqXBUsQS.js +1 -0
  41. package/dist/web/assets/{circle-dashed-DwIAhHPq.js → circle-dashed-DlOiCbWD.js} +1 -1
  42. package/dist/web/assets/dataParts-bwNleJYd.js +3 -0
  43. package/dist/web/assets/forgeqe-logo-D3CwM2Jl.png +0 -0
  44. package/dist/web/assets/forgeqe-logo-white-CoE-hF2l.png +0 -0
  45. package/dist/web/assets/forgeqe-mark-ZLd4S3hw.png +0 -0
  46. package/dist/web/assets/index-Bh4NBbEU.js +37 -0
  47. package/dist/web/assets/index-DkgUrjyL.css +2 -0
  48. package/dist/web/assets/keyboard-wpCM6HMa.js +1 -0
  49. package/dist/web/assets/qualityParts-iy-mouSI.js +1 -0
  50. package/dist/web/assets/{thread-iCgQPYwX.js → thread-BfW2V-2U.js} +1 -1
  51. package/dist/web/assets/upload-CwExsxOd.js +1 -0
  52. package/dist/web/assets/usePageChat-CzWbP_sa.js +1 -0
  53. package/dist/web/index.html +3 -3
  54. package/docs/ARCHITECTURE.md +2 -1
  55. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +107 -0
  56. package/docs/WEB_APP.md +36 -6
  57. package/docs/security-data-flow.html +3 -3
  58. package/docs/user-guide.html +291 -11
  59. package/docs/walkthrough/hotfix-narration.md +443 -297
  60. package/forgeqe.example.yaml +13 -2
  61. package/package.json +6 -3
  62. package/prompts/README.md +1 -0
  63. package/prompts/agent-builder.md +69 -0
  64. package/prompts/api-tests.md +1 -1
  65. package/prompts/brain.md +22 -2
  66. package/prompts/browser-persona.md +14 -0
  67. package/prompts/db-agent.md +73 -0
  68. package/prompts/heal.md +1 -1
  69. package/prompts/migrate.md +54 -0
  70. package/prompts/test-agent.md +1 -0
  71. package/py/forgeqe_engine/cli.py +9 -1
  72. package/py/forgeqe_engine/copilot_gateway.py +162 -9
  73. package/py/forgeqe_engine/persona.py +435 -0
  74. package/py/forgeqe_engine/proceed.py +67 -0
  75. package/py/forgeqe_engine/service.py +93 -11
  76. package/skills/test-data/SKILL.md +4 -0
  77. package/dist/web/assets/Agent-jYaYLJO8.js +0 -1
  78. package/dist/web/assets/ApiTests-BYQ0VYx3.js +0 -10
  79. package/dist/web/assets/Chat-DOcK3ngF.js +0 -3
  80. package/dist/web/assets/Data-KFQ0-EbI.js +0 -4
  81. package/dist/web/assets/Features-9rw1s5Vs.js +0 -1
  82. package/dist/web/assets/Jobs-MRHq6isA.js +0 -5
  83. package/dist/web/assets/Quality-CGrki-iI.js +0 -1
  84. package/dist/web/assets/Record-Bamcsz1Y.js +0 -2
  85. package/dist/web/assets/Regression-D0yEt-3X.js +0 -5
  86. package/dist/web/assets/Reports-BwvQNDFa.js +0 -2
  87. package/dist/web/assets/Response-XIaBzLD_.js +0 -4
  88. package/dist/web/assets/Runs-DtgNqxHd.js +0 -2
  89. package/dist/web/assets/Shell-E3JKoPtx.js +0 -3
  90. package/dist/web/assets/accessibility-BSaq_4Me.svg +0 -1
  91. package/dist/web/assets/capgemini-BO8ajcbd.svg +0 -21
  92. package/dist/web/assets/capgemini-white-ByjwPW8N.svg +0 -21
  93. package/dist/web/assets/circle-C_9D6W14.js +0 -1
  94. package/dist/web/assets/index-CVa5dAjG.js +0 -26
  95. package/dist/web/assets/index-DF-gVa3Q.css +0 -2
  96. package/dist/web/assets/markdown-OsvJ-mly.js +0 -10
  97. package/dist/web/assets/trending-up-fRykocOw.js +0 -1
  98. package/dist/web/assets/usePageChat-B5pKShGC.js +0 -1
package/HOW_TO_USE.md CHANGED
@@ -41,6 +41,7 @@ Every agent has its own name, icon, and colour in the shell: the icon moves besi
41
41
  | a check mark, pink | Reviewer | `forgeqe-review` | Reviews the Coding agent's tests | No |
42
42
  | a route between two points, violet | Test planner | `forgeqe-test-plan` | Plans how a test recorded by hand fits the repository | No |
43
43
  | a cross, lime | Healer | `forgeqe-heal` | Heals tests the application outgrew | Yes, the repository |
44
+ | two arrows, one each way, jade | Migrator | `forgeqe-migrate` | Migrates a test suite to another framework or language, one file at a time | Yes, the target folder of a confirmed migration plan |
44
45
  | a magnifier, cyan | Test finder | `forgeqe-find` | Finds the repository tests a request means | No |
45
46
  | a comment bubble, rose | PR reviewer | `forgeqe-pr-review` | Reviews pull requests | No |
46
47
  | a plug, teal | API test writer | `forgeqe-api` | Writes API and contract tests | Yes, the repository |
@@ -48,6 +49,8 @@ Every agent has its own name, icon, and colour in the shell: the icon moves besi
48
49
  | a flag, magenta | Explorer | `forgeqe-explore-plan` | Plans exploratory charters | No |
49
50
  | a bug, orange | Root cause | `forgeqe-defect-rca` | Finds the root cause of a defect | No |
50
51
  | a funnel, indigo | Refine | `forgeqe-refine` | Turns a request into a task specification | No |
52
+ | building blocks, mauve | Agent builder | `forgeqe-agent-builder` | Works out a custom agent with the user: questions, plan, name | No |
53
+ | a database drum, aqua | DB agent | `forgeqe-data` | DB agent: finds or designs the test data other agents ask for before they run | No |
51
54
  | a gavel, coral | Judge | `forgeqe-judge` | Judges domain evaluations | No |
52
55
  | a balance, amber | Model profiler | `forgeqe-model-profile` | Rates the configured models for the model router | No |
53
56
  | a browser window, blue | Browser agent | `engine` | The browser agent (every browser run and test case) | No |
@@ -64,20 +67,26 @@ The icons as the shell draws them, each in its agent's colour:
64
67
  ▚▖ Test planner ▗▟▙▖ Healer
65
68
  ▝▀▄ ▝▜▛▘
66
69
 
67
- ▟█▖ Test finder ▛▛▛█ PR reviewer
68
- ▝▀▐▖ ▜▛▀▀
70
+ ▄▄█▄ Migrator ▟█▖ Test finder
71
+ ▀█▀▀ ▝▀▐▖
69
72
 
70
- ▗▙▟▖ API test writer ▘▀▀▀ API planner
71
- ▝▜▛▘ ▘▀▀
73
+ ▛▛▛█ PR reviewer ▗▙▟▖ API test writer
74
+ ▜▛▀▀ ▝▜▛▘
72
75
 
73
- ███▘ Explorer ▚▟▙▞ Root cause
74
- █ ▜██▛
76
+ ▘▀▀▀ API planner ███▘ Explorer
77
+ ▘▀▀ █
75
78
 
76
- ▜██▛ Refine ▐█▙ Judge
77
- ▜▛ ▄▖▝▙
79
+ ▚▟▙▞ Root cause ▜██▛ Refine
80
+ ▜██▛ ▜▛
78
81
 
79
- ▄▟▙▄ Model profiler ▛▀▀▜ Browser agent
80
- ▙▖ ▙ ▙▄▄▟
82
+ █ █ Agent builder ▟██▙ DB agent
83
+ █ █ ▚▄▄▞
84
+
85
+ ▐█▙ Judge ▄▟▙▄ Model profiler
86
+ ▄▖▝▙ ▙▖ ▙
87
+
88
+ ▛▀▀▜ Browser agent
89
+ ▙▄▄▟
81
90
  ```
82
91
  <!-- subagents:end -->
83
92
 
@@ -101,10 +110,11 @@ Everything ForgeQE can do, by area. ForgeQE's agent answers "can you…?" questi
101
110
  | Mobile | **Automate Android and iOS apps**: Carries out a plain-language goal in an Android or iOS app through Appium and saves it as a mobile workflow with checks of the outcome; replays workflows with no model on Appium (healing a moved control) or Maestro; runs the team's own Maestro flows after checking them against an allowlist; uploads an app build to TestMu AI and saves its lt:// id as the app's build. Apps come from env.yaml (kind: mobile) or forgeqe.yaml mobile:. | `mobile_explore`, `mobile_replay`, `mobile_maestro`, `mobile_upload` | [docs](#mobile-apps-android-ios) |
102
111
  | Operations | **Services, mocks, workspace and browser in Docker or Podman**: Starts the services a test run needs (a database, a queue, the API under test) in Docker or Podman, as forgeqe.yaml declares them, and waits until each is ready; stops them, and shows their status and logs. Starts mocks of an API on WireMock, from the calls a browser run recorded or from an OpenAPI description, and can point an API app of the environment at the mock for the session. With containers.workspace, the coding agents' shell commands (build, restore, run) and every test ForgeQE runs go to a container of the project's image; with browser.provider docker, the browser agent, the replay and the coding agent's live browser use Chromium in a container. | `services`, `mock_service` | [docs](#containers-and-mock-services) |
103
112
  | Data | **Ask a database in plain language**: Connects to the project's databases (PostgreSQL, MySQL and MariaDB, SQL Server and Azure SQL, Oracle, Snowflake, Redshift, CockroachDB, SQLite, DuckDB, and MongoDB) from a connection string or host and user, signing in with a password, Microsoft Entra ID or AWS IAM. Reads the schema through DB-GPT's connectors and turns questions into SQL that is checked before it runs: reads in a read-only session that is rolled back, writes only on a database marked writable, after you confirm them. | `databases`, `database_schema`, `run_sql` | [docs](#databases) |
104
- | Data | **Test data on demand**: Makes realistic test data from a spec that fits the database's schema (types, sizes, NOT NULL, unique keys, CHECK lists, enums), parents before children, the same rows for the same seed. Or takes a masked subset of a real database: the rows you pick and every row they need, with names, emails, phones, addresses and other personal columns replaced the same way every time. Shows a preview, writes CSV, JSON or SQL files for automation, or inserts the rows into a database marked writable after you confirm, as a batch that can be removed again. Specs live in the project, so tests and pipelines make the same data with forgeqe data gen. | `generate_test_data`, `test_data_batches` | [docs](#test-data) |
113
+ | Data | **Test data on demand**: Makes realistic test data from a spec that fits the database's schema (types, sizes, NOT NULL, unique keys, CHECK lists, enums), parents before children, the same rows for the same seed. Or takes a masked subset of a real database: the rows you pick and every row they need, with names, emails, phones, addresses and other personal columns replaced the same way every time. Shows a preview, writes CSV, JSON or SQL files for automation, or inserts the rows into a database marked writable after you confirm, as a batch that can be removed again. Specs live in the project, so tests and pipelines make the same data with forgeqe data gen. Every agent can ask the DB agent for the data it needs before it runs: the rows themselves, found with a read-only query or made from a spec, and the SQL or INSERT script that gets them again, kept for forgeqe data fetch. | `generate_test_data`, `test_data_batches`, `request_test_data` | [docs](#test-data) |
105
114
  | Data | **Data flows between systems**: Checks the data that passes between your systems' databases (the digital channel, CRM, billing, a warehouse), by batch ETL or in real time: each hop's rows arrived, complete, with every mapped column right after its rule, on time for its SLA, without duplicates. Follows one record end to end, says what a change to a table or column reaches downstream, and writes the flows from your mapping documents wherever they are, or suggests them from the schemas. | `data_flows`, `check_flows`, `trace_record`, `read_mapping_file` | [docs](#data-flows) |
106
115
  | Automated tests | **Turn a passed run into an automated test**: Scribe, the coding agent, writes a test for a passed browser run in the repository's own framework, page objects, and helpers; ForgeQE runs it until it passes and a reviewer approves it. | `write_test`, `run_test` | [docs](#6-tests) |
107
116
  | Automated tests | **Heal failing tests**: Runs a repository's tests and updates the ones the application has outgrown against the live app, or reports a real application bug instead. | `heal_tests` | [docs](#fixing-broken-tests) |
117
+ | Automated tests | **Migrate a test suite**: Moves a repository's automated tests to another framework or language (Selenium, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright to Playwright, Cypress, WebdriverIO or Selenium), after a plan that says first what is possible and what is not and that the user confirms; ForgeQE runs each migrated test itself, in a job if the user wants to keep working. | `migrate_tests` | [docs](#migrating-a-test-suite) |
108
118
  | Automated tests | **Find and run existing tests**: Finds the automated tests that match a feature, tags, ids, a folder, or a sprint, confirms the selection, and runs it once the user agrees, with a verdict per test. | `find_tests`, `run_tests`, `list_sprints` | [docs](#finding-and-running-existing-tests) |
109
119
  | Automated tests | **Regression packs for a release**: Builds a regression pack from what goes into a release (an Azure DevOps sprint or work items, a commit range, pull requests, or changes read from any connected tool): the tests those changes can break, each with why, plus risk-area and smoke tests, and the changes no test covers. Runs it locally, on TestMu AI, or in a pipeline, compares each run with the last, and triages each failure: flaky, environment, broken test code, heal, or an AI browser re-run to tell a test the app outgrew from an app bug. | `build_regression_pack`, `run_regression_pack`, `list_regression_packs`, `regression_sources`, `edit_regression_pack` | [docs](#regression-packs-for-a-release) |
110
120
  | Automated tests | **Flaky test detection and quarantine**: Finds tests that flip between passing and failing in the repository's run history, with their likely cause, and quarantines them once the user agrees. | `flaky_tests`, `quarantine_tests` | [docs](#flaky-tests) |
@@ -112,11 +122,13 @@ Everything ForgeQE can do, by area. ForgeQE's agent answers "can you…?" questi
112
122
  | Pull requests | **Pull request impact and test selection**: Works out which product areas, pages, requirements, and tests a pull request touches, picks the tests it can break, runs them, and posts the impact or results on the pull request once the user agrees. | `analyze_pr_impact`, `select_pr_tests`, `post_pr_test_results`, `comment_on_pr` | [docs](#what-a-pull-request-impacts-in-the-product) |
113
123
  | API | **API and contract testing**: Builds API contracts (status, schema, key fields) from the calls a browser run saw or from an API description (OpenAPI, Swagger, WSDL, GraphQL, .proto, gRPC reflection), and end-to-end API scenarios from runs, descriptions, test cases, or plain English. Runs them straight against the API without a browser, or writes them as tests in the repository. REST, GraphQL, SOAP, and gRPC. | `api_contracts`, `run_api_contracts`, `api_scenarios`, `run_api_scenarios`, `write_api_tests`, `api_new_set`, `api_add_calls`, `api_import_collection` | [docs](#api-and-contract-tests) |
114
124
  | Quality | **Accessibility and page performance**: Checks every page a run visits against WCAG rules (axe-core) and measures its Core Web Vitals, against budgets, with trends over time per page. | `quality_report`, `quality_trends` | [docs](#accessibility-and-performance-budgets) |
125
+ | Quality | **Accessibility testing with personas**: A browser agent does a goal as a person with a disability would (a blind screen reader user, keyboard only, low vision, colour blind, cognitive, or the project's own personas) and records each barrier with its WCAG criterion and severity. Not functional testing. | `accessibility_test`, `accessibility_personas` | [docs](#accessibility-testing-with-personas) |
115
126
  | Quality | **Visual comparison with baselines**: Compares each page a run captures with its approved baseline and shows what changed; intended changes become the new baseline once the user agrees. | `visual_compare`, `visual_approve` | [docs](#visual-comparison) |
116
127
  | Quality | **Defect intelligence: trends and prediction**: Groups failures into defects, keeps their history across suites (new, known, gone, back again), and gives defect trends and where a change is likely to cause defects, with the cases to run first. | `defect_trends`, `predict_defects` | [docs](#bugs-for-failures) |
117
128
  | Release | **Requirement coverage and release readiness**: Gives requirement coverage and a GO / GO WITH RISKS / NO-GO verdict for a sprint, area, epic, or stories, from test cases, results, bugs, and flaky tests; can publish it to the wiki. | `release_readiness` | [docs](#requirement-coverage-and-release-readiness) |
118
129
  | Operations | **Scheduled monitoring with alerts**: Runs checks on a schedule and alerts Teams or email when one keeps failing, and again when it recovers. | `monitor` | [docs](#9-monitoring) |
119
130
  | Operations | **Background jobs on a schedule**: Runs ForgeQE commands (suites, monitor rounds, regression packs, healing, pull-request tests, browser goals) on a schedule or once in the jobs service, apart from the conversation and after it closes, and watches an existing GitHub Actions or Azure DevOps pipeline (read-only). A failed pipeline run or pack run is investigated: the healing agent works on each failure on a local branch of its own (a fix for review, or an app bug), never pushing. Says how each job goes when asked, shows runs as they end, and sends failures, recoveries and findings to Teams or email. | `jobs` | [docs](#the-jobs-service-scheduled-and-long-jobs-apart-from-the-shell) |
131
+ | Operations | **Your team's custom agents**: Hands a request to one of the team's custom agents: ForgeQE's agent configured for one job in .forgeqe/agents, held in code to the environments, tools and actions its approved version allows. It runs in a session of its own and answers with its reply; each run is kept in the agent's history. Also makes a new one with the user from what it is for: it picks what the agent needs from what the project has, says why, and saves a draft when the user agrees. | `custom_agent`, `request_approval` | [docs](#custom-agents) |
120
132
  | Operations | **Teams and email notifications**: Tells the team in Microsoft Teams channels or by email when a suite fails or passes, when a release readiness verdict is in, and when the domain evaluation falls below its gate, with the failing cases, their bugs, and links to the report and the CI build. Each channel picks its events; the agent also posts a summary to a channel when asked. | `notify` | [docs](#17-notifications) |
121
133
  | Release | **Reports you can share**: Writes up what the Orchestrator found, such as open defects across projects, release status, or pipeline health, as a page with filters (project, state, priority, assignee, …), charts, and a sortable table, plus Markdown and CSV. Every table is built from evidence: the results of the tool calls the agent made, or a read-only query ForgeQE runs itself, listed on the page's Sources with each raw result kept beside the report. | `write_report` | [docs](#reports-from-the-agent) |
122
134
  | Operations | **CI pipelines**: Writes a GitHub Actions or Azure Pipelines workflow that runs ForgeQE, stores the secrets it needs, pushes a branch, and makes the pipeline green. | `push_branch`, `set_ci_secret` | [docs](#8-pipelines) |
@@ -329,6 +341,7 @@ With GitHub Copilot licences (Pro, Pro+, Business or Enterprise), a `github_copi
329
341
  |---|---|
330
342
  | `model` | The Copilot model, as the Copilot SDK names it (`gpt-4.1`, `claude-sonnet-4.6`). It must take screenshots. The sign-in lists your seat's models and which of them take images. |
331
343
  | `engine_model` | Optional. Another Copilot model for the browser engine and the desktop agent. |
344
+ | `reasoning_effort` | Optional. How hard a reasoning model thinks: `low`, `medium`, `high`, `xhigh` or `max`. Sent only to a model your seat says takes one; unset, the model's default. |
332
345
  | `api_key_env` | Optional. A variable that must hold the GitHub token for this profile. Without it ForgeQE uses `COPILOT_GITHUB_TOKEN`, then a token `forgeqe auth login copilot` saved, then the browser sign-in. |
333
346
 
334
347
  Sign in once per machine (Windows, macOS or Linux):
@@ -342,7 +355,21 @@ It offers two ways, the ones GitHub's Copilot SDK recommends:
342
355
  - **Sign in with GitHub in the browser** (recommended on your own computer). ForgeQE runs GitHub's own Copilot sign-in (`copilot login` from GitHub's Copilot CLI, downloaded once into `~/.forgeqe/tools` and checked against GitHub's checksums). Your browser opens GitHub; approve **GitHub Copilot CLI** there and you are signed in. GitHub's CLI keeps the sign-in in your system's credential store (Windows Credential Manager, the macOS Keychain); ForgeQE never sees a token. On a remote machine it shows a code to enter at github.com/login/device instead.
343
356
  - **A fine-grained token**, for machines without a browser. ForgeQE opens GitHub's token page: set **Resource owner** to your personal account and add the **Copilot Requests** permission, then paste the token (`github_pat_...`). Each character shows as `*`, and ForgeQE confirms what it got (`github_pat_11AB…Wz9Q (93 characters)`). The token goes to your system's credential store like ForgeQE's other secrets. Classic tokens (`ghp_`) do not work with Copilot.
344
357
 
345
- Either way ForgeQE checks the sign-in by asking Copilot for your seat's models, then asks which one to use (recommended first; models your seat has but has not turned on are named, with the settings page) and writes it to `llms.json`; the first time, the Copilot SDK downloads Copilot's runtime from GitHub (checked against GitHub's checksums). `forgeqe auth` shows the sign-in on its `Copilot` line; `forgeqe auth logout copilot` makes ForgeQE stop using it (GitHub keeps a browser sign-in until you revoke **GitHub Copilot CLI** at github.com/settings/applications).
358
+ Either way ForgeQE checks the sign-in by asking Copilot for your seat's models, then asks which one to use (recommended first; models your seat has but has not turned on are named, with the settings page) and writes it to `llms.json`; the first time, the Copilot SDK downloads Copilot's runtime from GitHub (checked against GitHub's checksums). `forgeqe auth` shows the sign-in on its `Copilot` line; `forgeqe auth logout copilot` signs out: Copilot removes the browser sign-in from this computer, the system's credential store included (GitHub keeps the authorization until you revoke **GitHub Copilot CLI** at github.com/settings/applications).
359
+
360
+ **GitHub Enterprise Cloud** (a `ghe.com` address, with data residency): pick **Sign in to your company's GitHub Enterprise** and type the address (`acme.ghe.com`). ForgeQE keeps it with the sign-in as `COPILOT_GH_HOST`, which Copilot's sign-in and every Copilot call use; an exported `COPILOT_GH_HOST` or `GH_HOST` works the same. Signing in to github.com again forgets it.
361
+
362
+ **Choosing the model.** `forgeqe models --copilot` lists your seat's models: whether each takes screenshots, its premium requests per call (0 is included in your plan) and the profiles that use it.
363
+
364
+ ```bash
365
+ forgeqe models --copilot # the seat's models
366
+ forgeqe models --copilot --add claude-sonnet-4.6 --as sonnet # keep one as a profile in llms.json
367
+ forgeqe start --model claude-sonnet-4.6 # another Copilot model for this session only (also run, chat)
368
+ ```
369
+
370
+ `--add` takes `--engine-model` (a model that takes screenshots, for the browser, desktop and mobile agents) and `--default`. `--model` changes the model of the profile in use, which must be a `github_copilot` one. Every profile is then in the model picker (`/model`, or the model menu of `forgeqe web`), and in **Settings, Models** a Copilot profile's Model and Engine model are picked from your seat's list.
371
+
372
+ **Premium requests.** Every Copilot call is one premium request times the model's multiplier. The usage ledger records them with each call, the router prefers a model with fewer per call when its rating is good enough, and `budget.premium_requests` in `forgeqe.yaml` (`run`, `day`, `month`) warns at 80, 90 and 100 percent like the money budgets. A rate limit or a used-up allowance is reported as such (HTTP 429), so the agents wait or stop rather than retry.
346
373
 
347
374
  If your organization uses SAML single sign-on, GitHub asks you to authorize the organization during the browser sign-in. A Copilot Business or Enterprise seat needs your organization to allow **Copilot CLI** in its Copilot policies.
348
375
 
@@ -375,6 +402,8 @@ GitHub Models, which ForgeQE used for the engine before, was [retired by GitHub]
375
402
  | `GitHub Copilot refused the sign-in` or `refused the token` (`Authorization error. Your credentials may be expired or invalid`) | Copilot received the credential and would not take it. A token wins over the browser sign-in: if `COPILOT_GITHUB_TOKEN` is set, or you once pasted a token, that is what was refused; remove it and run `forgeqe auth login copilot` in the browser. Otherwise sign in again. If it still fails and your seat comes from your company, a GitHub admin must allow Copilot CLI in the Copilot policies: the Copilot SDK runs on it. |
376
403
  | `… must be a Copilot model id`, `engine_model must be a Copilot model id` | Fix that field in `llms.json`: the sign-in lists the seat's models. A GitHub Models id such as `openai/gpt-4.1` is not a Copilot id; use `gpt-4.1`. |
377
404
  | `No model in llms.json can … right now` | Each model is listed with why it cannot be used and the fix. `forgeqe doctor` checks everything at once. |
405
+ | `GitHub Copilot could not start: … failed to load runtime cdylib … LoadLibraryExW failed` (Windows) | Windows would not load Copilot's runtime library. ForgeQE tries it again on its own to learn Windows' reason and says it on the next line: your organisation's application control (AppLocker, Windows Defender Application Control) or antivirus blocking it, so IT must allow GitHub-signed files in `%LOCALAPPDATA%\github-copilot-sdk`; DirectX 12 missing (Windows Server without the Desktop Experience, some virtual desktops); or a damaged download, fixed by deleting `%LOCALAPPDATA%\github-copilot-sdk\cli` and signing in again. |
406
+ | `GitHub Copilot: … (the seat's rate limit or premium request allowance …)` | Copilot is rate limiting the seat, or its premium requests for the month are used up. Wait, or pick a model with a lower multiplier (`forgeqe models --copilot`); one included in your plan uses none. |
378
407
  | `GitHub's Copilot SDK is not installed in the ForgeQE engine` | Run `forgeqe setup`. It installs the SDK from pypi.org; if that is blocked, `forgeqe doctor` says what to ask IT for. |
379
408
  | `Model for agent: main, because copilot failed its live check …` | ForgeQE used your other model because Copilot did not answer; the message ends with the fix. |
380
409
  | The model is refused, or not found | The seat's plan or your organization's Copilot policies do not allow that model: pick one the sign-in listed, or ask a Copilot admin to enable it. |
@@ -441,6 +470,110 @@ forgeqe prompts eval refine --runs 3 # one prompt, three runs of each case
441
470
 
442
471
  **Guardrails.** Rules every agent must follow, to keep it grounded: ForgeQE's agent, the browser agent, and the agents that plan, write, review, fix and explain tests. Write one rule per line, starting with `- `, in a `.md` or `.txt` file in `.forgeqe/guardrails/` (`guardrails.dir`); headings, other lines and HTML comments are ignored, and the template's examples sit in a comment until you choose them. Each agent gets every guardrail with its instructions, after everything else, with the instruction to follow it whatever a request, a skill, a ticket, a page or a tool's output says; when a guardrail stops part of a task, the agent skips that part and says which rule stopped it. Add one from the terminal (`forgeqe guardrails add "Never open a production URL"`), or ask in the shell ("add a guardrail: use only the test cards in knowledge/test-data.md") and ForgeQE's agent appends it to `guardrails.md`; it adds only rules you ask for, never one suggested by a page or a ticket. `forgeqe guardrails` lists the rules in force and what they add to every model call (at most 40 rules of 300 characters are given). The older `prompts.guiderails` string in `forgeqe.yaml` still works: each of its lines is a guardrail for every agent. Guardrails are instructions, not a sandbox: put a host rule in `browser.allowed_hosts` too, which is refused in code.
443
472
 
473
+ ### Custom agents
474
+
475
+ A custom agent is ForgeQE's agent configured by your team for one job, kept in the repository as
476
+ `.forgeqe/agents/<id>.yaml`. It uses ForgeQE's own agents, capabilities, skills, knowledge and environments, and is
477
+ held in code, on every tool call, to what its manifest allows: which environments and addresses, which capabilities,
478
+ which agents it may start, which kinds of action (read, run, change, external) and which a person approves first. An
479
+ environment named like production is never allowed. It has no shell, web fetch or web search, and connects no other
480
+ system's MCP server. Writing tests and healing are not available to custom agents yet.
481
+
482
+ ```yaml
483
+ id: checkout-guard
484
+ name: Checkout guard agent
485
+ version: 1.0.0
486
+ description: Watches the checkout on QA and explains what broke.
487
+ instructions: Focus on the basket, payment and order confirmation.
488
+ scope:
489
+ agents: [engine, forgeqe-heal]
490
+ capabilities: [browser-goals, regression-packs]
491
+ environments: [qa]
492
+ permissions:
493
+ actions: [read, run]
494
+ approve: [run]
495
+ ```
496
+
497
+ What runs is a version a person approved. Editing the manifest changes nothing that runs: the agent shows as changed,
498
+ keeps running its approved version, and the change waits for approval. Approvals are kept, with every approval,
499
+ disabling and rollback, in `.forgeqe/agents/.releases/<id>`, so the team reviews them with the code.
500
+
501
+ ```bash
502
+ forgeqe agent list # each agent and its state: draft, active, changed, disabled, broken
503
+ forgeqe agent check <id> # what it may reach, what its capabilities still need, what changed
504
+ forgeqe agent try <id> "request" # the manifest as it is now: read and run only, every run asked first
505
+ forgeqe agent approve <id> # a person at the terminal approves this exact version
506
+ forgeqe agent run <id> "request" # its approved version
507
+ forgeqe agent disable <id> | enable <id> # also on its page; several at once on Agents, Custom agents (Select agents)
508
+ forgeqe agent rollback <id> <version> # an earlier approved version runs again
509
+ forgeqe agent history <id> # its versions and its runs, with every tool call and the policy's decision
510
+ forgeqe agent export <id> --out a.jsonl # its whole record as JSON lines, for audit (also on its page: Download audit record)
511
+ forgeqe agent run <id> "request" --unattended # as a schedule runs it: what it may not do alone waits for a person
512
+ forgeqe agent approvals [<id>] # what agents running with nobody watching wait for; answer: approvals <id> <approval> allow | allow_run | deny
513
+ ```
514
+
515
+ A custom agent may be given anything ForgeQE's agent has: every capability, other systems' tools, the coding agent,
516
+ jobs, ForgeQE's own commands and settings, the shell (`permissions.shell: true`), and production. What goes beyond its
517
+ limits call by call (the coding agent, ForgeQE commands and settings, a shell command, a change in production) is
518
+ approved by a person each time.
519
+
520
+ In production, what a call does decides: a read goes ahead without asking; a run (a browser run, a test, an API call)
521
+ is asked unless `permissions.production: [run]` says otherwise; every change is asked, on a schedule too, where it waits
522
+ for a person and the team is told. A question about a read or a run offers **Allow for the rest of this run** (that
523
+ tool, in that environment); a change is asked each time. The agent also asks you itself (`request_approval`) before a
524
+ step there that could reach real customers, such as an order or a payment: it can add a question, never skip one. A tool ForgeQE adds later reaches custom agents at once, asking a person each call until
525
+ it says what it does.
526
+
527
+ `permissions.trust` lifts ForgeQE's own question where you choose: `external` lets it change other systems without
528
+ asking, and a coding agent's tool (`write_test`, `heal_tests`, `write_api_tests`) lets it write and heal tests without
529
+ asking. The tests a coding agent runs can reach any address, so before such a call ForgeQE looks in the test project's
530
+ config and env files (`playwright.config.*`, `.env*`, `*.yaml` and the like), its tests (`*.spec.ts`, `test_*.py`,
531
+ `*Test.java`, `.feature` files…) and the code in its test folders (page objects, fixtures, helpers), and asks after all
532
+ when they name an address of an environment the agent does not have. An address built at run time from pieces is not
533
+ seen. A change in production, ForgeQE's own commands and settings, and jobs are
534
+ always asked.
535
+ With nobody watching, a trusted tool still runs only when `permissions.unattended` lists it.
536
+
537
+ An agent with a `schedule` (`every: 1d` or `cron: "0 7 * * 1-5"`, and the `request` it is given) runs as a job of the
538
+ jobs service once approved, always its approved version; disabling it pauses the job. With nobody watching, it does
539
+ without asking only what `permissions.unattended` lists (kinds of action, or tools by name), and in production only
540
+ reads, and runs if `permissions.production` lists them; anything else, and anything it judges should be a person's decision, waits for a person: the team's
541
+ channels are told (`agent_waiting`), and the agent's page shows it with Allow, Deny and, for a read or a run, Allow for
542
+ the rest of this run. No answer in four hours is a no. One run nobody watches of an agent goes at a time: a schedule
543
+ that fires while the last run still waits does not start, and its history says so. `runtime.max_tokens` sets a budget
544
+ per run: the run stops when it has used that many model tokens. When someone is watching (`forgeqe agent run` in a
545
+ terminal, a chat, the agent's page), the run asks first: carry on with as much again (each yes is in its history), or
546
+ stop. A run nobody watches is never asked, and stops.
547
+
548
+ Other systems' tools (Azure DevOps, Jira, GitHub…) come through ForgeQE with their names as `<system>_<tool>` (a dot in
549
+ a name becomes `_`; a name too long for MCP clients, or not a plain name, is left out). Every page of a server's tool
550
+ list is read; a tool is read-only only when the server marks it `readOnlyHint` and not also `destructiveHint`; a
551
+ server's own requests (ping) are answered and never taken for an answer; and a refused sign-in says to check the
552
+ credential its settings name.
553
+
554
+ Before your team relies on custom agents, run [the first real run](docs/CUSTOM_AGENTS_FIRST_RUN.md) once: building one
555
+ with the model, trying, approving, the Orchestrator, another system, a schedule, production, turning off, and the
556
+ record, each with what you should see. The builder offers starters (defect retest, nightly smoke, pull request test
557
+ check, release readiness, API contracts, test case quality): a request to begin from, planned from what your project has.
558
+
559
+ To turn custom agents off for the whole project, set `custom_agents: { enabled: false }` in `forgeqe.yaml` (Settings,
560
+ Custom agents). Then none runs, from the terminal, the web app, the Orchestrator or a schedule; ForgeQE's agent is not
561
+ given the tool that reaches them, and the builder is closed. Their files, approvals and history are kept, so turning
562
+ them back on restores everything as it was.
563
+
564
+ The Orchestrator hands requests to the active custom agents (custom_agent) as it does to its own agents. Each run is
565
+ kept in `.forgeqe/agent-runs/<id>`.
566
+
567
+ In the web app (`forgeqe web`), custom agents are under Agents, Custom agents. **New agent** opens the agent builder:
568
+ say what the agent should do in your own words, and ForgeQE takes you through its steps, one page each: Understand
569
+ (what it could not work out, with what it recommends and why), Plan (how the agent will work, and whether each part is
570
+ set up here), Boundaries (where it works and what it may do, least privilege first; production never), Knowledge (what
571
+ it should know: the project's knowledge that fits, and notes that become its own), Review (its name and first request;
572
+ saving makes it a draft), and Try (try it, then approve it). A draft can be picked up again later. Every setting by
573
+ hand is under Advanced settings. An agent's page asks it (its approved version) or tries its
574
+ manifest, shows the change waiting for approval, what it may reach, its versions with Approve, Disable, Enable and going
575
+ back to an earlier version (each confirmed by typing its id), and its runs with every tool call and the policy's decision.
576
+
444
577
  ### The model's context window
445
578
 
446
579
  Each agent has its own context: ForgeQE's agent, Scribe, the reviewer, and the browser agent each keep their own conversation with the model. The Context panel shows the working agent's (or the last one to call the model), named on its Agent row, as a share of what it can hold before the agent runtime compacts it. When it compacts, the runtime summarises the conversation so far to make room, Activity says so, and details from early on may be gone. The browser agent never compacts: it keeps its last steps only.
@@ -530,6 +663,8 @@ Budget: this month's model spend is at $245.10, 82% of the $300.00 month budget
530
663
 
531
664
  A card says which it did and why (*Extending PracticeTests.Flow · covers 12 of 15; only 3 are missing*). Say how when you know ("extend the login test", "write a separate test", "update it") and ForgeQE's agent passes that on without asking. In every mode Scribe adds page-object members rather than changing what an existing member does for the other tests that use it.
532
665
 
666
+ **Copied code is measured.** Before Scribe starts, ForgeQE notes the copies the repository already has (jscpd). When the test passes, its reviewer is told of each copy the job made since, such as a page-object method or a login written again in the test (`tests/checkout.spec.ts:12-30 copies existing code at pages/login.ts:8-26`), and judges it by the test rules: a copy that should reuse what is there is an issue Scribe fixes. `code.duplicates: false` turns it off.
667
+
533
668
  **The same flow asked again.** When a session writes tests and you ask for a flow an earlier job already wrote a test for, ForgeQE runs that test first, before any browser run. If it passes in a real browser, that is the answer: no browser run, no Scribe, and no new test file, in the seconds the test takes (*✓ Existing test passed · 19s · no browser run or new test needed*). If it fails, the flow runs in the browser and Scribe updates that test instead of writing another. ForgeQE's agent rewords a goal a little each time, so goals count as the same flow when they share their content words (endings, case, and phrasing aside) and the new goal keeps everything the earlier one checked; the same steps with a different final check, a shorter flow, or another site are a new flow. The agent also compares the earlier goal with your request and runs fresh when you ask for a check the earlier test does not have. Ask for "a fresh run" or "a new test" to skip the reuse.
534
669
 
535
670
  **The run as a test would do it.** The browser agent works through the same page a test meets, and the handoff tells Scribe everything it did on the way:
@@ -574,6 +709,14 @@ browser:
574
709
  # start_url: https://staging.example.com
575
710
  ```
576
711
 
712
+ **Reaching a limit.** A run that reaches `max_steps` (after carrying on while it makes progress) or `timeout_seconds`
713
+ asks whether to carry on when someone can answer: in a chat, on the web app's pages, or in a terminal (`--yes` does not
714
+ ask). Carry on gives it as many steps, or as long, again; the browser stays open and paused while it asks, and the time
715
+ spent waiting does not count. Stop ends it there, keeping everything it did (its steps, screenshots, report and what it
716
+ recorded, such as an accessibility persona's barriers). No answer in 10 minutes is a stop. A run nobody can be asked
717
+ about (a schedule, CI, `--yes`) stops at its limit as before. A run that stops at a limit is not counted as passed.
718
+ `code.max_tokens` asks the same way for the coding agent and the API test writer.
719
+
577
720
  `judge` is off by default. When it is on, one more model call reads the finished run's steps and screenshots and can fail a run the agent completed, for example when five scores were read off one results page rather than one step per item. That strictness sent runs into loops of re-checking, so turn it on only when you want that second opinion.
578
721
 
579
722
  Each step waits for the tab the agent is on to finish loading (up to 8 seconds, 3 for a tab that stays blank) before the page is read, so a result that opens in a new tab is not mistaken for a blank page.
@@ -804,7 +947,7 @@ Over the conversation: **Files** (each file read ◉, written ✚, or edited ✎
804
947
 
805
948
  **Command palette.** Ctrl-P opens a palette of every action, command, profile, and example request; type a few letters to find one ("rr" finds *Refine my request*, "auth" finds the sign-in commands), ↑/↓ to choose, Enter to run it. Example requests are put in the prompt for you to edit, never sent straight away.
806
949
 
807
- **`/` and `@` in the prompt.** Typing `/` lists the commands that match; typing `@` suggests references: recent runs (*last run*, then each by its folder), files in the repository by name or path (`@Login` finds `pages/Login.ts`), and, after `@` and a number such as `@1761`, the Azure DevOps work item with its title (read-only). Tab completes, ↑/↓ choose, Esc closes the list.
950
+ **`/` and `@` in the prompt.** Typing `/` lists the commands that match; typing `@` suggests references: recent runs (*last run*, then each by its folder), files and folders in the folder the agent works in (`code.repo`, or `--repo`) by name or path (`@Login` finds `pages/Login.ts`), and, after `@` and a number such as `@1761`, the Azure DevOps work item with its title (read-only). Tab completes, ↑/↓ choose, Esc closes the list. A file goes in as `@path` (`@"my shots/login.png"` when it has a space) and is attached when you send: the agent is told to read it, and an image goes to the model as a picture when the model takes images. `forgeqe run "check @tests/cart.spec.ts"` does the same. **`/paste`** attaches the picture on the clipboard (a screenshot): it is saved as `.forgeqe/inbox/pasted-<time>.png` where the agent works and goes in the prompt as its `@path`, to send with your words (macOS and Windows read the clipboard themselves; Linux needs `wl-clipboard` or `xclip`). Hidden files, anything named like credentials, and paths out of that folder are refused, with why.
808
951
 
809
952
  **Refine.** Ctrl-R (or *Refine my request* in the palette) turns what you typed into a task specification for ForgeQE's agent, laid out as a system prompt and written in ASD-STE100 Simplified Technical English, before it is sent. It has these parts, in this order: **Role** (who the agent acts as), **Objective** (one instruction), **Context** (the facts, with names), **Steps** (only when they add something), **Rules** (your limits and the setup's), **Output format** (what comes back and how it is laid out), and **Summary** (what you get, in one sentence, read last):
810
953
 
@@ -1181,6 +1324,43 @@ code:
1181
1324
 
1182
1325
  The report is `heal.md` and `heal.json` in `.forgeqe/reports/heal/<time>/`: each test's verdict and reason, the files changed, the browser runs (their folders sit next to the report), and the test output before and after. Exit codes: `0` the tests pass (or nothing needed healing), `1` some still fail, `2` stopped. In the shell or with `forgeqe run`, "the checkout tests are failing after the redesign, fix them" does the same through ForgeQE's agent.
1183
1326
 
1327
+ ### Migrating a test suite
1328
+
1329
+ `forgeqe migrate` moves a test suite to another framework or language: Selenium (Java, C#, Python, JavaScript, Ruby), Selenide, Cypress, Protractor, WebdriverIO, Puppeteer, TestCafe, Nightwatch, Robot Framework or Playwright, to Playwright (TypeScript, JavaScript, Python, Java, C#), Cypress, WebdriverIO or Selenium (Python, Java, C#). `forgeqe migrate targets` lists them. It always starts with a plan, which writes nothing:
1330
+
1331
+ ```bash
1332
+ forgeqe migrate plan --from tests --to playwright-typescript # the source stack is detected
1333
+ forgeqe migrate plan --from e2e --stack protractor-typescript --to playwright-typescript --only "checkout/**" \
1334
+ --instructions "Page objects go in pages/, one class per page"
1335
+ forgeqe migrate confirm mig-20261103-101500-ab12 --accept-limits # a person at a terminal types the plan's id
1336
+ forgeqe migrate run mig-20261103-101500-ab12 # here, or as a job:
1337
+ forgeqe jobs add migrate-ui --now -- migrate run mig-20261103-101500-ab12
1338
+ forgeqe migrate plan --git https://github.com/org/ui-tests.git --branch main --token-var GIT_TOKEN --to playwright-python
1339
+ forgeqe migrate plan --source-folder ~/projects/shop-ui-tests --to cypress-typescript
1340
+ forgeqe migrate verify mig-… [--workspace ws-…] # run every migrated test again (no model)
1341
+ forgeqe migrate fix mig-… --unit u006 --note "The payment page opens in a new tab" # the fixing agent on one file
1342
+ ```
1343
+
1344
+ The tests can come from this project, a git repository (https or ssh; a token only by the name of the credential that
1345
+ holds it, passed to git through its environment and never in the URL, the command line or the clone's config), a folder
1346
+ anywhere on this computer, or files uploaded or pasted on the Migration page. A source outside the project is copied into
1347
+ a workspace of its own under ForgeQE's home and migrated there; the original is never changed. Links, hidden files and
1348
+ dependency folders are not copied.
1349
+
1350
+ 1. **Plan.** ForgeQE reads the source folder with no model: regular files only (a symbolic link is skipped and listed, never followed), test files, the support code they import, feature files, and test data. It orders the files so support code comes before the tests that use it, names each target file by the target's conventions (`test_login.py` for pytest, `LoginTest.java` for JUnit, `login.cy.ts` for Cypress), and checks what is possible.
1351
+ 2. **What is possible.** A *blocker* stops the plan: an unknown source stack, a mobile Appium suite to a browser framework, nothing to migrate, a target folder that already has files, no git repository, or the target's program (npx, python, mvn, dotnet) missing on this computer. A *limit* is something the target does differently: Cypress drives one tab and has no built-in iframes, Selenium cannot stub network calls, Protractor's Angular locators have no equivalent, a grid or cloud set-up is not carried over, BDD features need a BDD runner, code imported from outside the source folder is not migrated. Each limit names the files it affects; confirming accepts them all.
1352
+ 3. **Confirm.** A person confirms the plan: at a terminal by typing its id, or on the Migration page of `forgeqe web`. The confirmation is kept under ForgeQE's home, by the plan's digest, so a plan file that comes with a repository is never already confirmed, and a plan edited after it was confirmed is refused. When the run starts, ForgeQE builds the plan again from the source and refuses it if the files, targets or limits changed.
1353
+ 4. **Run.** The setup step makes the target folder a project of its own (`package.json` and `playwright.config.ts`, `requirements.txt` and `conftest.py`, `pom.xml`, a `.csproj`). Then a fresh agent session per file writes its target version. The agent may edit only the target folder. After each reply ForgeQE puts back any change outside it, removes symbolic links, and checks the file is at the planned path. For a test it also checks that every test of the source file is there, none is skipped or focused, and the assertions were kept. Then ForgeQE runs that one test with its own command, built from the plan (`npx playwright test login.spec.ts`, `python3 -m pytest test_login.py`, `mvn -q test -Dtest=LoginTest`) and started without a shell. A failure goes back to the agent with the output, up to `code.max_attempts` times.
1354
+ 5. **Validate and fix.** When every file is done, ForgeQE runs each migrated test again with all files in place, and
1355
+ counts its tests and assertion lines against the source. Each test that fails goes to the fixing agent with its
1356
+ output, then runs again. From the page or with `forgeqe migrate fix`, you can send a test to the fixing agent
1357
+ yourself with a note.
1358
+ 6. **Report.** A test is *migrated* only when ForgeQE's run of it passed. A support file is migrated when a test that uses it passed, and *written* otherwise. A file the agent could not do is *failed* or *cannot be migrated*, with why. The run is `migrated` (every test), `partial` or `failed`. A model error never counts as a migrated file. The source tests are never changed. `migrate.md` and `result.json` are in `.forgeqe/migrations/<plan>/`, and the results are saved after each file, so running the plan again carries on and leaves finished files alone while they are unchanged.
1359
+
1360
+ Exit codes of `migrate run`: `0` every test migrated, `1` some or none, `2` stopped. The Migration page of `forgeqe web` does all of this in four steps (source, target, instructions, review), then follows
1361
+ the job: its stages, every file, the tests with Fix, the source and target side by side, and the activity as it happens.
1362
+ In the shell, "migrate our Selenium tests to Playwright" makes the plan and shows it. You confirm it yourself, and ForgeQE's agent can then run it or add the job.
1363
+
1184
1364
  ### Finding and running existing tests
1185
1365
 
1186
1366
  Ask for the tests you want in your own words, in the shell or with `forgeqe run`:
@@ -1232,8 +1412,9 @@ Review my open pull requests
1232
1412
  ```
1233
1413
 
1234
1414
  1. ForgeQE reads the pull request: title, description, source and target branch, and the linked work items with their acceptance criteria (Azure DevOps, through its REST API with `sources.azure_devops`), or the linked issues (GitHub, through `gh`, which must be signed in with `gh auth login`).
1235
- 2. It fetches both branches from your clone's remote and checks the pull request's head out in a temporary worktree. Your branch, your working tree, and your uncommitted changes are not touched, and the worktree and fetched refs are removed afterwards. The working directory (or `repo`) must be a clone of the pull request's repository.
1415
+ 2. It fetches both branches from your clone's remote and checks the pull request's head out in a temporary worktree. Your branch, your working tree, and your uncommitted changes are not touched, and the worktree and fetched refs are removed afterwards. The working directory (or `repo`) must be a clone of the pull request's repository. The reviewer's skills come from that clone and your own skill folders, never from the pull request, so a skill the pull request adds cannot steer its own review.
1236
1416
  3. Scribe reviews the diff read-only, reading the code around each change: bugs, security, what the linked work items ask for, missing tests, performance, and compatibility. Each finding has a severity (blocker, major, minor, nit), the file and line, the problem, and a suggestion. `code.review_profile` picks a cheaper model for it, as for test reviews.
1417
+ Before it starts, ForgeQE's copy-paste check ([jscpd](https://github.com/kucherenko/jscpd), installed with ForgeQE) compares the pull request's head with the merge base and lists the code the change copies, from code already there or within itself (5 lines and 50 tokens or more). Scribe gets that list as measured evidence and raises a finding only where the copies must stay the same; `review.md` lists them under *Copied code*. The check uses ForgeQE's own settings, never the repository's `.jscpd.json`, and leaves out hidden files, dependencies and build output. `code.duplicates: false` turns it off; without jscpd's binary for your machine it is skipped.
1237
1418
  4. The findings appear as a card, and are saved in `.forgeqe/reports/reviews/<time>/` as `review.md` and `review.json`. Nothing is posted yet.
1238
1419
  5. To post, say so. ForgeQE asks **Post the review?** with **Post review** and **Don't post**. Findings on a changed line become comments on that line; the rest go in one summary comment with the verdict. On GitHub this is one review with event `COMMENT`: ForgeQE never approves, requests changes, or votes in your name. If the pull request got new commits after the review, posting is refused; review it again.
1239
1420
 
@@ -2441,6 +2622,70 @@ keep: [customers.country] # columns whose names look personal but are no
2441
2622
  - **Into a database**, keys the target makes are new and every reference follows them; a subset never goes back into
2442
2623
  its source. As files, keys stay as they were.
2443
2624
 
2625
+ #### Test data on request: the DB agent
2626
+
2627
+ Every agent can ask the **DB agent** for the test data it needs before it runs: the Orchestrator (`request_test_data`),
2628
+ Scribe, the API test writer and the healer (`data_request_test_data`), and a test case (`data: {request: ...}`). The
2629
+ request is in words; the DB agent reads the schema, then either finds **existing rows** with one read-only SELECT or
2630
+ designs **new rows** as a test data spec. Its answer is the data itself and the script that gets it again:
2631
+
2632
+ | Kind | The agent gets | Kept in `test-data/requests/<name>/` |
2633
+ |---|---|---|
2634
+ | Existing rows (`kind: existing`) | The rows, and the SELECT as the data engine checked it | `query.sql`, `rows.json`, `request.yaml` |
2635
+ | New rows (`kind: new`) | The rows, and their INSERT statements in the database's dialect | `spec.yaml` (with its seed), `data.sql`, `data.json`, `rows.json`, `request.yaml` |
2636
+
2637
+ `auto` (the default) lets the DB agent pick. The DB agent never writes to a database: a statement the data engine sees
2638
+ as a write is refused, and new rows only go to files. Keys the database fills (serial, identity) are left out of
2639
+ `data.sql`, so the script runs on a database that already has rows.
2640
+
2641
+ ```bash
2642
+ forgeqe data request "two movies with more than 100 votes" --db imdb --kind existing --rows 2
2643
+ forgeqe data request "a queued watchlist entry for a new viewer" --db imdb --kind new --name queued-watchlist
2644
+ forgeqe data requests # the kept requests
2645
+ forgeqe data fetch queued-watchlist --json # the same data again, no model: the query runs again, the spec makes the same rows
2646
+ psql "$IMDB_URL" -f test-data/requests/queued-watchlist/data.sql # or insert as a batch: forgeqe data gen test-data/requests/queued-watchlist/spec.yaml --insert --yes
2647
+ ```
2648
+
2649
+ In the web app, Data, Ask asks the same way, and the Test data page logs every request: which agent asked, what for, when, and the answer (also `forgeqe data log`), with the kept requests to fetch again. Without a model the request takes your own SQL or spec (`sql:` or `spec:` on the tool). In a test case:
2650
+
2651
+ ```yaml
2652
+ - title: Watchlist shows a queued title
2653
+ data: {request: "a queued watchlist entry for a new viewer", kind: new, name: queued-watchlist}
2654
+ steps:
2655
+ - action: Sign in as {{data.user_watchlist.0.user_handle}} and open the watchlist
2656
+ ```
2657
+
2658
+ The first run asks the DB agent and keeps the request; later runs fetch it from `test-data/requests/<name>` with no
2659
+ model. Existing rows are used as they are (`{{data.result.0.<column>}}`, nothing to remove after); new rows go in as a
2660
+ batch before the case and are removed after it when the database is marked `writable`.
2661
+
2662
+ **Ask in words.** Data, Ask (or `forgeqe data ask "<question>" --db NAME --as query|checks|script`) has the DB agent
2663
+ turn a question into a checked read-only query and its rows (kept in `test-data/queries`), data checks (each a SELECT
2664
+ that returns the rows breaking one rule; kept in `test-data/checks`, run again with `forgeqe data checks <name>`), or a
2665
+ database test for pytest or Playwright (kept in `test-data/scripts`, never run by ForgeQE; it reads its connection
2666
+ string from an environment variable, and a script holding a password or a connection string is refused).
2667
+
2668
+ **Databases from Docker images.** The databases the DB agent reads can run in containers that `forgeqe services up`
2669
+ starts (see [Containers and mock services](#containers-and-mock-services)), for example the sample databases of the
2670
+ Database Agent in test-agent-nexus (`docker-compose.yml`, profile `db-agent-demos`). The container's password and the
2671
+ connection's `password_env` are different variables: a database's secrets are ForgeQE's own and never go to a container.
2672
+
2673
+ ```yaml
2674
+ containers:
2675
+ services:
2676
+ imdb:
2677
+ image: postgres:16.4-alpine # test-agent-nexus' demo-imdb, pinned
2678
+ ports: ["5437:5432"]
2679
+ env: { POSTGRES_DB: imdb, POSTGRES_USER: nexus }
2680
+ secrets: [POSTGRES_PASSWORD]
2681
+ volumes: ["./db/imdb:/docker-entrypoint-initdb.d"] # 01_schema.sql, 02_seed.sql from test-agent-nexus
2682
+ ready: { tcp: 5432 }
2683
+ databases:
2684
+ imdb: { engine: postgres, host: 127.0.0.1, port: 5437, database: imdb, user: nexus, password_env: IMDB_DB_PASSWORD, ssl: disable, writable: true }
2685
+ ```
2686
+
2687
+ `tests/data-request.live.test.ts` runs the DB agent against that database in Docker.
2688
+
2444
2689
  ### Data flows
2445
2690
 
2446
2691
  When your systems pass data to each other (a customer signs up in the digital channel's database, the CRM gets a
@@ -2624,6 +2869,55 @@ forgeqe quality # the latest run: WCAG rules passed and fail
2624
2869
  forgeqe quality trends shop.test # per page over time; exits 1 when a page got worse
2625
2870
  ```
2626
2871
 
2872
+ ### Accessibility testing with personas
2873
+
2874
+ The accessibility agent does a goal on your site **as a person with a disability would**, and records each barrier that person meets. It is not functional testing: whether the feature works is not judged, only whether this person can perceive, operate and understand it.
2875
+
2876
+ Ask the agent ("act as a blind person and use the website to find accessibility issues", "can a keyboard-only user check out?"), or from a terminal:
2877
+
2878
+ ```bash
2879
+ forgeqe a11y "find running shoes and add a pair to the basket" --persona blind,keyboard-only --url https://shop.test
2880
+ ```
2881
+
2882
+ ```bash
2883
+ forgeqe a11y personas
2884
+ ```
2885
+
2886
+ Each persona is one browser run. The agent works the way the person does:
2887
+
2888
+ | Persona | How the agent uses the page |
2889
+ |---|---|
2890
+ | `blind` | Screen reader: no screenshots. It reads the page only through the accessibility tree (headings, landmarks, links, form fields, each with its role, name and state) and what each key press puts in focus. Keyboard only. |
2891
+ | `keyboard-only` | Sees the page, but has no mouse: Tab, Shift+Tab, arrows, Enter, Space, Escape. Each key press says what has focus and whether a focus indicator shows. |
2892
+ | `low-vision` | The page zoomed to 200% (it reflows as at that zoom). |
2893
+ | `colour-blind` | Chrome's deuteranopia emulation: the screenshots show the page as the person sees it. |
2894
+ | `cognitive` | Plain language, clear errors, time limits, consistency. |
2895
+ | `reduced-motion` | The browser asks for reduced motion. |
2896
+ | `deaf` | Captions, transcripts, sound-only information. |
2897
+ | `high-contrast` | Forced colours (a high contrast theme). |
2898
+
2899
+ For each persona the report (`.forgeqe/reports/accessibility/<time>-<goal>/accessibility.md`) says whether they reached the goal, each barrier with its severity (critical: stops them; serious; moderate; minor) and WCAG success criterion, and the automated rule checks (axe-core) of the pages they visited. The run folders keep the evidence: steps, screenshots, video when on. A run as a persona uses no page memory, site rulebook or skills, since those hold how to click through the site.
2900
+
2901
+ **Your own personas** are `.forgeqe/personas/<id>.yaml`. Ask the agent to save one ("add a persona: an older user with a hand tremor who zooms to 150%": it shows the persona and asks first), or write the file:
2902
+
2903
+ ```yaml
2904
+ id: older-tremor
2905
+ name: Older user with a hand tremor
2906
+ description: 78, uses a laptop with a large font, finds small targets hard to hit and gives up on long forms.
2907
+ perception: sight # sight, or screen_reader (no screenshots, keyboard only)
2908
+ input: keyboard # any, or keyboard (the mouse actions are taken away)
2909
+ vision: none # none, blurred, reduced_contrast, achromatopsia, deuteranopia, protanopia, tritanopia
2910
+ zoom: 1.5 # 1 to 4
2911
+ media: [reduced_motion] # reduced_motion, forced_colors, more_contrast, dark
2912
+ watch_for:
2913
+ - small click targets close together
2914
+ - forms that time out
2915
+ ```
2916
+
2917
+ A persona file can come from the repository, so ForgeQE reads it strictly: only these keys, each setting from its list, no YAML aliases. Its text describes the person to the browser model; what the browser does comes only from the settings.
2918
+
2919
+ A simulated persona is not a real user, and automated checks find only part of the problems: treat the result as a first pass, and confirm important barriers with people who use assistive technology.
2920
+
2627
2921
  ### Visual comparison
2628
2922
 
2629
2923
  Every browser run also captures each page it visits and compares it, pixel by pixel, with that page's **approved baseline**:
@@ -2991,6 +3285,7 @@ The agent runs test cases with `run_test_cases` even when an MCP server is conne
2991
3285
  | `run_sql` | One checked SQL statement: reads in a read-only session with a row cap; a write only on a writable database, after the user agrees (`confirmed: true` over MCP) |
2992
3286
  | `generate_test_data` | Test data from a spec that fits the schema, or a masked subset of real rows: previewed, written to files, or inserted after the user agrees |
2993
3287
  | `test_data_batches` | The batches `generate_test_data` inserted; remove one again after the user confirms |
3288
+ | `request_test_data` | Ask the DB agent for the test data a test needs: existing rows by a read-only query, or new rows from a spec, with the SQL or INSERT script kept in `test-data/requests/` for `forgeqe data fetch` |
2994
3289
  | `data_flows` | The data flows in `flows.yaml`: list, map, impact of a table or column, or suggest, validate and save a flow |
2995
3290
  | `check_flows` | Check each hop of the flows: every row arrived, mapped columns hold the expected values, no duplicates, on time |
2996
3291
  | `trace_record` | Follow one record through the flows, hop by hop |
@@ -3371,8 +3666,9 @@ notify:
3371
3666
  | `job_recovered` | A job passes again after failing | The same, for the run that passed |
3372
3667
  | `job_done` | A job that runs only when asked ends | The same, whether it passed or failed |
3373
3668
  | `job_investigated` | The investigation of a job's failed run is done | Each failure: a test out of date with its fix on a branch, an app bug, or not decided, with the agent's reasons |
3669
+ | `agent_waiting` | A custom agent running with nobody watching waits for a person's approval | What it wants to do and why, until when it waits, and how to answer |
3374
3670
 
3375
- A channel without `on` gets `suite_failed`, `release`, `eval_failed`, `job_failed`, `job_recovered`, and `job_investigated`. Email adds the failure screenshots. A stopped suite is not announced. Monitoring keeps its own `monitor.alerts`, with the same cards.
3671
+ A channel without `on` gets `suite_failed`, `release`, `eval_failed`, `job_failed`, `job_recovered`, `job_investigated`, and `agent_waiting`. Email adds the failure screenshots. A stopped suite is not announced. Monitoring keeps its own `monitor.alerts`, with the same cards.
3376
3672
 
3377
3673
  Events are sent from runs nobody is watching: `forgeqe suite` in a pipeline or on a schedule, `forgeqe run`, and the MCP server. In the shell, where people try things out, nothing is sent on its own; ask instead ("post the results to the QA channel", "tell the release channel the verdict"), and ForgeQE's agent posts a card with `notify`.
3378
3674
 
package/README.md CHANGED
@@ -38,35 +38,14 @@ bun src/index.ts init
38
38
  bun src/index.ts start
39
39
  ```
40
40
 
41
- One-shot release (same version on both registries; assumes `npm` and `twine` are already logged in):
42
-
43
- ```bash
44
- ./scripts/publish.sh # current version
45
- ./scripts/publish.sh 0.2.0 # bump + publish
46
- ./scripts/publish.sh --dry-run # pack only
47
- ```
48
-
49
- Or let CI publish: merge a version bump (the same version in `package.json`, `pyproject.toml` and
50
- `py/forgeqe_cli/__init__.py`) to `main`, and [`forgeqe-release.yml`](../.github/workflows/forgeqe-release.yml) runs the
51
- release tests and publishes it to npm and PyPI. It publishes only a version newer than the one each registry has. Run it
52
- by hand from the Actions tab for a dry run.
53
-
54
- It needs no token: both registries trust the workflow (trusted publishing). Set that up once, as the package owner:
55
-
56
- ```bash
57
- npm install -g npm@^11.15.0 && npm login
58
- npm trust github @capagents/forgeqe --file forgeqe-release.yml --repo javed0211/cli-agents --allow-publish
59
- ```
60
-
61
- and on pypi.org, under `forgeqe-cli` → Publishing, add a GitHub trusted publisher: owner `javed0211`, repository
62
- `cli-agents`, workflow `forgeqe-release.yml`, no environment. A new npm trust that has not published within 2 days
63
- expires, so do it just before the first release. Keep the workflow's file name: the registries trust it by name, and a renamed file cannot publish until each is told.
41
+ Maintainers: releasing ForgeQE is in `RELEASING.md` in the repository.
64
42
 
65
43
  ## Privacy
66
44
 
67
45
  ForgeQE sends no telemetry and turns it off in everything it starts:
68
46
  - The engine: PostHog telemetry, cloud sync, and the price-list download are off, and the blank-tab logo its library loads from a CDN is replaced by ForgeQE's start page, which loads nothing.
69
47
  - The agent runtime: auto-update, session sharing, OpenTelemetry spans, and the model catalogue download are off; it uses its bundled model list.
48
+ - GitHub Copilot: the Copilot SDK's session telemetry, on by default for a signed-in user, is off on every session.
70
49
  - The repo's test command: `DO_NOT_TRACK=1`, plus the opt-outs for Next.js, Nuxt, Astro, Gatsby, Storybook, Turborepo, Angular, .NET, and Cypress.
71
50
 
72
51
  `OTEL_EXPORTER_OTLP_*` variables are removed from those processes, and your environment cannot turn any of this back on. The traffic is to your model endpoint and the sites the agent visits. Besides that, ForgeQE downloads only public files: the model price lists from models.dev and LiteLLM, once a day (`FORGEQE_PRICES=off` stops them); the agent runtime from its GitHub releases, when it is not installed; and the engine's ad-block and cookie-banner extensions from the Chrome Web Store, once. Nothing about your runs is sent.
@@ -278,13 +257,14 @@ Services can also come from a docker-compose file (`containers.compose`), checke
278
257
 
279
258
  List your databases under `databases:` in `forgeqe.yaml`, or under an environment in `env.yaml` (the active environment's entries win by name). No secret goes in either file: `url_env` or `password_env` names the environment variable that holds it. ForgeQE's agent reads the schema, writes SQL in the database's dialect, checks it, and runs it as a read; it writes only to a database marked `writable: true`, and only after you confirm the statement. In the shell, `/db` lists the databases, and `/db add` sets one up with the agent.
280
259
 
281
- Test data comes from a spec that fits the schema: a preview, CSV, JSON or SQL files, or rows inserted into a writable database as a batch that `forgeqe data clean` removes again. Data flows (`flows.yaml`) describe how records move between databases; ForgeQE checks each hop (arrived, complete, correct, on time) and follows one record across the systems.
260
+ Test data comes from a spec that fits the schema: a preview, CSV, JSON or SQL files, or rows inserted into a writable database as a batch that `forgeqe data clean` removes again. Before they run, the agents ask the DB agent for the data they need (`request_test_data`): it returns the rows, found by a read-only query or made from a spec, and the SQL or INSERT script that gets them again (`forgeqe data fetch <name>`). Data flows (`flows.yaml`) describe how records move between databases; ForgeQE checks each hop (arrived, complete, correct, on time) and follows one record across the systems.
282
261
 
283
262
  ```bash
284
263
  forgeqe db test orders
285
264
  forgeqe db query orders "SELECT status, COUNT(*) FROM orders GROUP BY status"
286
265
  forgeqe data gen customers.yaml --db fixtures --insert --yes
287
266
  forgeqe data batches --db fixtures
267
+ forgeqe data request "a customer in India with two paid orders" --db shop --kind existing
288
268
  forgeqe flows check --junit flows.xml
289
269
  forgeqe flows trace digital.customers 42
290
270
  ```
@@ -489,4 +469,4 @@ Rounds go to `.forgeqe/reports/monitor/<time>/`, the same as suites, so the repo
489
469
  { "mcpServers": { "forgeqe": { "command": "forgeqe", "args": ["mcp", "--repo", "/path/to/app"] } } }
490
470
  ```
491
471
 
492
- Tools: `browser_run`, `find_test_cases`, `save_test_cases`, `run_test_cases`, `run_details`, `run_test`, `page_memory`, `read_confluence`, `query_api`, `push_branch`, `set_ci_secret`, `find_tests`, `run_tests` (runs only with `confirmed: true`, once the user agreed), `review_pull_request`, `post_pr_review` (posts only with `confirmed: true`), `list_sprints`, `generated_attribution` (the commit trailer and pull request footer for code ForgeQE wrote), and one tool per command: `write_test`, `heal_tests`, `monitor`, `logins`, `forgeqe_setup`, plus `forgeqe_command` for the commands no other tool covers (reading commands run at once; the others ask first). Databases have `databases`, `database_schema`, `run_sql`, `generate_test_data`, `test_data_batches`, `data_flows`, `check_flows`, `trace_record`, and `read_mapping_file`. Browser runs and suites log their progress to stderr, and long calls send progress notifications. Desktop (`desktop_explore`, `desktop_replay`, `desktop_record`, `desktop_edit_workflow`) and mobile (`mobile_explore`, `mobile_replay`, `mobile_maestro`, `mobile_upload`) tools are listed when the environment has such apps. The client gets the tools this project can use; `use_capabilities` adds others and sends `notifications/tools/list_changed`, and `forgeqe mcp --all-tools` lists every tool.
472
+ Tools: `browser_run`, `find_test_cases`, `save_test_cases`, `run_test_cases`, `run_details`, `run_test`, `page_memory`, `read_confluence`, `query_api`, `push_branch`, `set_ci_secret`, `find_tests`, `run_tests` (runs only with `confirmed: true`, once the user agreed), `review_pull_request`, `post_pr_review` (posts only with `confirmed: true`), `list_sprints`, `generated_attribution` (the commit trailer and pull request footer for code ForgeQE wrote), and one tool per command: `write_test`, `heal_tests`, `monitor`, `logins`, `forgeqe_setup`, plus `forgeqe_command` for the commands no other tool covers (reading commands run at once; the others ask first). Databases have `databases`, `database_schema`, `run_sql`, `generate_test_data`, `test_data_batches`, `request_test_data`, `data_flows`, `check_flows`, `trace_record`, and `read_mapping_file`. Browser runs and suites log their progress to stderr, and long calls send progress notifications. Desktop (`desktop_explore`, `desktop_replay`, `desktop_record`, `desktop_edit_workflow`) and mobile (`mobile_explore`, `mobile_replay`, `mobile_maestro`, `mobile_upload`) tools are listed when the environment has such apps. The client gets the tools this project can use; `use_capabilities` adds others and sends `notifications/tools/list_changed`, and `forgeqe mcp --all-tools` lists every tool.
@@ -25,6 +25,15 @@ Most of these libraries are inside `dist/forgeqe.js`, the bundle ForgeQE ships;
25
25
  | @opentui/core-win32-arm64 | 0.5.12 | MIT | A build of @opentui/core for another platform, installed there in its place; same licence. |
26
26
  | @opentui/core-linux-x64-musl | 0.5.12 | MIT | A build of @opentui/core for another platform, installed there in its place; same licence. |
27
27
  | @opentui/core-linux-arm64-musl | 0.5.12 | MIT | A build of @opentui/core for another platform, installed there in its place; same licence. |
28
+ | jscpd | 5.4.1 | MIT | ForgeQE (installed with it) |
29
+ | jscpd-linux-x64-gnu | 5.4.1 | MIT | A build of jscpd for another platform, installed there in its place; same licence. |
30
+ | jscpd-linux-arm64-gnu | 5.4.1 | MIT | A build of jscpd for another platform, installed there in its place; same licence. |
31
+ | jscpd-linux-x64-musl | 5.4.1 | MIT | A build of jscpd for another platform, installed there in its place; same licence. |
32
+ | jscpd-linux-arm64-musl | 5.4.1 | MIT | A build of jscpd for another platform, installed there in its place; same licence. |
33
+ | jscpd-darwin-arm64 | 5.4.1 | MIT | A build of jscpd for another platform, installed there in its place; same licence. |
34
+ | jscpd-darwin-x64 | 5.4.1 | MIT | A build of jscpd for another platform, installed there in its place; same licence. |
35
+ | jscpd-windows-x64-msvc | 5.4.1 | MIT | A build of jscpd for another platform, installed there in its place; same licence. |
36
+ | jscpd-windows-arm64-msvc | 5.4.1 | MIT | A build of jscpd for another platform, installed there in its place; same licence. |
28
37
  | @opencode-ai/sdk | 1.18.33 | MIT | ForgeQE (inside dist/forgeqe.js) |
29
38
  | cross-spawn | 7.0.6 | MIT | @opencode-ai/sdk |
30
39
  | path-key | 3.1.1 | MIT | cross-spawn |
@@ -0,0 +1,16 @@
1
+ /** The built-in activation page for `forgeqe web`. Types for bin/activate-web.js. */
2
+ import type { IncomingMessage, ServerResponse } from "node:http"
3
+
4
+ export function handleActivationRequest(
5
+ req: IncomingMessage,
6
+ res: ServerResponse,
7
+ deps: { activate: (key: string) => Promise<string>; onActivated?: (token: string) => void; readBody?: (req: IncomingMessage) => Promise<string> },
8
+ ): Promise<void>
9
+
10
+ export function serveActivation(opts: {
11
+ port?: number
12
+ host?: string
13
+ activate: (key: string) => Promise<string>
14
+ onListening?: (url: string) => void
15
+ log?: (message: string) => void
16
+ }): Promise<string>