kwikqa 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +16 -12
- package/dist/kwikqa.mjs +130 -129
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
What's new in each release of the KwikQA CLI.
|
|
4
4
|
|
|
5
|
+
## 0.5.0 — 2026-11-14
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `kwikqa login` opens kwikqa.com/device in your browser with the code filled in, so you only check it matches and approve. It still prints the page and the code, and doesn't open a browser in CI, without a terminal, or with `--no-browser`.
|
|
10
|
+
- `kwikqa status` shows your company account: your role, the team this sign-in counts for, and the shared pool, or that the account is waiting for its plan.
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- The CLI follows company accounts and their teams: insights are shared when your organization's admins turn them on, and a member who reaches the limit, or runs `kwikqa upgrade`, is pointed to the company's admins.
|
|
15
|
+
- The CLI tells the KwikQA service its version (`User-Agent: kwikqa/<version>`), so the service knows which versions are still in use.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- A unit test that imports one of your project's modules by name, such as `import shop.cart`, is reported as reaching no browser library. KwikQA used to say it couldn't confirm that the test reaches one. It still isn't repaired or checked.
|
|
20
|
+
- When a change to test code touches only unit tests, `kwikqa check` no longer says that no usable analysis names the failing tests. Its validation step says that none of them is an end-to-end browser test, so nothing was validated.
|
|
21
|
+
|
|
5
22
|
## 0.4.2 — 2026-11-12
|
|
6
23
|
|
|
7
24
|
### Changed
|
package/README.md
CHANGED
|
@@ -116,8 +116,8 @@ with the main and test sources. These runs are diagnosed, repaired, and validate
|
|
|
116
116
|
|
|
117
117
|
- Playwright Test, Cypress, and WebdriverIO (Mocha or Jasmine): they are browser runners, so the rule
|
|
118
118
|
above doesn't narrow them.
|
|
119
|
-
-
|
|
120
|
-
- pytest,
|
|
119
|
+
- Java, when the tests are end-to-end browser tests, with Maven or Gradle, and TestNG or JUnit 5.
|
|
120
|
+
- pytest, when the tests are end-to-end browser tests.
|
|
121
121
|
- Cucumber-JVM, with Maven or Gradle.
|
|
122
122
|
|
|
123
123
|
Everything else is report-only: KwikQA diagnoses it, and never repairs or validates it. That includes
|
|
@@ -220,11 +220,11 @@ doesn't. It never runs one from outside the repository, so pnpm's global virtual
|
|
|
220
220
|
| `npx kwikqa fix` | Propose a repair for a test-side cause, show the diff and validation commands, and apply it if you approve. First it offers to re-run the failing tests once: a test that passes now is flaky, so KwikQA reports it and requests no repair. It starts with the failure group whose test-side diagnosis is strongest; if the model declines, or its proposal fails KwikQA's checks, it asks about the next such group, at most three, each with its own preview. One `fix` counts as one fix however many groups it tries. `--group <n>` repairs only group n, as `analyze` numbered it. `--propose-only` stops after the proposal. A repair of shared test support, such as a page object, fixture, or helper, is validated over every test that uses it: first those tests run once on the current code, after you approve, and afterwards each must pass again, three times in a row for Playwright, Cypress, and WebdriverIO and once for Maven, Gradle, and pytest, so a test the patch breaks is caught. In GitHub Actions, Azure Pipelines, and GitLab CI/CD, a committed `ci.fix` policy lets it run without a terminal and open a draft pull request; see [Fix pull requests](#fix-pull-requests). |
|
|
221
221
|
| `npx kwikqa validate` | Run the approved validation. The repaired test must pass three times in a row, with retries off (once, for a shared Maven, Gradle, pytest, or Cucumber-JVM repair). Passing keeps the patch; failing rolls it back. When other tests failed with the same cause, it then offers to re-run them once and names any that still fail, so you can run `fix` again for them; the patch stays either way. |
|
|
222
222
|
| `npx kwikqa fix --retry` | After a failed validation, re-diagnose from the new evidence and propose one revised patch. |
|
|
223
|
-
| `npx kwikqa check` | Check test changes KwikQA didn't write, such as an agent's or Playwright's healer's, with the gates KwikQA's own repairs get. **Scope and policy:** only the test paths the committed `kwikqa.config.json` makes editable, with no skips, `fixme`, fixed waits, retries, forced actions, or removed, swapped, or loosened assertions. **Ownership:** the failing tests the change touches must be diagnosed as the test's fault, by an analysis of the code before the change, so run `analyze` before the agent edits the test. **Validation:** each touched failing test must pass three times in a row with retries off (once, for a shared change in a Maven, Gradle, pytest, or Cucumber-JVM suite), and the static checks must pass; for a change to a shared page object, fixture, or helper, so must every test that uses it, compared with how it did in the analyzed run; it asks before running anything (`--yes` approves).
|
|
224
|
-
| `npx kwikqa status` | Show your plan
|
|
223
|
+
| `npx kwikqa check` | Check test changes KwikQA didn't write, such as an agent's or Playwright's healer's, with the gates KwikQA's own repairs get. **Scope and policy:** only the test paths the committed `kwikqa.config.json` makes editable, with no skips, `fixme`, fixed waits, retries, forced actions, or removed, swapped, or loosened assertions. **Ownership:** the failing tests the change touches must be diagnosed as the test's fault, by an analysis of the code before the change, so run `analyze` before the agent edits the test. **Validation:** each touched failing test must pass three times in a row with retries off (once, for a shared change in a Maven, Gradle, pytest, or Cucumber-JVM suite), and the static checks must pass; for a change to a shared page object, fixture, or helper, so must every test that uses it, compared with how it did in the analyzed run; it asks before running anything (`--yes` approves). Java and pytest changes get the same gates, validated with the project's own Maven, Gradle, or pytest; a Cucumber-JVM change is validated under Maven or Gradle. Each finding names its file and line. It exits 0 only when every gate passed. After a failed check of uncommitted changes, it offers to put the changed files back as `HEAD` has them, keeping a copy of the change in `.kwikqa/adopted/`; only a yes at the terminal restores anything. `--base <ref>` checks a branch's changes since it left `<ref>`; `--analysis <path>` names the failing run's record. It sends nothing to KwikQA; in CI it publishes its verdict, see [Checking an agent's pull request](#checking-an-agents-pull-request). |
|
|
224
|
+
| `npx kwikqa status` | Show your plan and this month's usage, and in a company account your role and the team this sign-in counts for. |
|
|
225
225
|
| `npx kwikqa upgrade [plan]` | Show plans, or get a checkout link for one. `--annual` bills yearly; `--seats <n>` sets seats on team plans. On a paid plan it points you to Billing in the dashboard. While the paid plans are coming soon, it lists them without a link. |
|
|
226
226
|
| `npx kwikqa billing` | Open Paddle's customer portal to update your payment method or download invoices. |
|
|
227
|
-
| `npx kwikqa init` / `login` / `logout` | Set up the project, sign in, sign out (`logout` also revokes the token). |
|
|
227
|
+
| `npx kwikqa init` / `login` / `logout` | Set up the project, sign in, sign out (`logout` also revokes the token). `login` opens kwikqa.com/device in your browser with the code filled in; `--no-browser` only prints the page and the code. |
|
|
228
228
|
|
|
229
229
|
Exit codes: `0` success or an informative result, `1` the repair or validation did not succeed, `2`
|
|
230
230
|
usage error, `3` sign-in, plan, or usage-limit problem.
|
|
@@ -283,13 +283,17 @@ Paddle, the merchant of record.
|
|
|
283
283
|
|
|
284
284
|
### Teams
|
|
285
285
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
monthly
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
and
|
|
292
|
-
|
|
286
|
+
The team plans belong to a company account. Its admins invite people by work email, and people sign
|
|
287
|
+
in with a code sent to that address, or through the company's single sign-on on Enterprise. Teams
|
|
288
|
+
inside the company have managers and optional monthly caps, and everyone, CI tokens included, draws
|
|
289
|
+
from one monthly pool. When you approve `npx kwikqa login` at kwikqa.com/device, it asks which team
|
|
290
|
+
the sign-in counts for if you're in more than one, and `npx kwikqa status` shows your company, role,
|
|
291
|
+
and team. See
|
|
292
|
+
https://kwikqa.com/docs/account/#company.
|
|
293
|
+
|
|
294
|
+
An admin can also turn on **insights**: the flakiest tests, fix history, acceptance rate, and repair
|
|
295
|
+
success at https://kwikqa.com/dashboard/insights/. While insights are on, the CLI shares the names,
|
|
296
|
+
files, and projects of failing and flaky tests and each fix's outcome with the organization, and
|
|
293
297
|
says so after each command. It never shares evidence, source, diffs, or error messages, and
|
|
294
298
|
`analyze --local` shares nothing. `npx kwikqa status` shows whether insights are on.
|
|
295
299
|
|