kwikqa 0.4.2 → 0.6.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 CHANGED
@@ -2,6 +2,38 @@
2
2
 
3
3
  What's new in each release of the KwikQA CLI.
4
4
 
5
+ ## 0.6.0 — 2026-11-15
6
+
7
+ ### Added
8
+
9
+ - Result counts: when you're signed in, the CLI reports each analysis, fix, validation, and fix pull request to KwikQA as codes and counts (the outcome, the kind of failure and its cause, the kind of file a fix changed, and how many tests and lines), never test names, file paths, error text, or code. It's on by default. Turn it off at kwikqa.com/dashboard/account/, where a company's admins can also turn it off for everyone, or for one run with `KWIKQA_RESULTS=off`. `--local` reports nothing. `kwikqa login` and `kwikqa status` say whether it's on.
10
+
11
+ ### Changed
12
+
13
+ - Each diagnosis names its cause from one list: `locator-drift`, `stale-expectation`, `app-regression`, `timing-race`, `test-data`, `test-logic`, `test-config`, `environment`, or `other`. The model used to describe the cause in its own words, which differed from run to run. Records from earlier versions still show their own words.
14
+
15
+ ### Fixed
16
+
17
+ - While the paid plans are closed, `kwikqa upgrade` says every account uses Hobby, the plan's name in the service's catalog. It used to say Free.
18
+ - `kwikqa --help` lists `kwikqa ci --framework`, and says `--seats` starts at the plan's minimum (3 on the team plans, 12 on Enterprise), not always 3.
19
+
20
+ ## 0.5.0 — 2026-11-14
21
+
22
+ ### Added
23
+
24
+ - `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`.
25
+ - `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.
26
+
27
+ ### Changed
28
+
29
+ - 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.
30
+ - The CLI tells the KwikQA service its version (`User-Agent: kwikqa/<version>`), so the service knows which versions are still in use.
31
+
32
+ ### Fixed
33
+
34
+ - 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.
35
+ - 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.
36
+
5
37
  ## 0.4.2 — 2026-11-12
6
38
 
7
39
  ### Changed
package/README.md CHANGED
@@ -101,7 +101,8 @@ KwikQA's reporters write to `test-results/kwikqa/`, which `analyze` finds on its
101
101
  WebdriverIO keep no trace of a failure; run `npx kwikqa analyze --capture` and KwikQA re-runs the
102
102
  failing specs and records each failure's page (see below).
103
103
 
104
- `login` signs you in with GitHub; the free plan needs no payment details.
104
+ `login` signs you in at kwikqa.com/device: with GitHub for a personal account, or with your work
105
+ email or your company's single sign-on for a company account. Hobby needs no payment details.
105
106
 
106
107
  ### Supported frameworks
107
108
 
@@ -116,8 +117,8 @@ with the main and test sources. These runs are diagnosed, repaired, and validate
116
117
 
117
118
  - Playwright Test, Cypress, and WebdriverIO (Mocha or Jasmine): they are browser runners, so the rule
118
119
  above doesn't narrow them.
119
- - Selenium Java, with Maven or Gradle, and TestNG or JUnit 5.
120
- - pytest, with Selenium or Playwright.
120
+ - Java, when the tests are end-to-end browser tests, with Maven or Gradle, and TestNG or JUnit 5.
121
+ - pytest, when the tests are end-to-end browser tests.
121
122
  - Cucumber-JVM, with Maven or Gradle.
122
123
 
123
124
  Everything else is report-only: KwikQA diagnoses it, and never repairs or validates it. That includes
@@ -220,11 +221,11 @@ doesn't. It never runs one from outside the repository, so pnpm's global virtual
220
221
  | `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
222
  | `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
223
  | `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). Selenium 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, team, and this month's usage. |
224
+ | `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). |
225
+ | `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
226
  | `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
227
  | `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). |
228
+ | `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
229
 
229
230
  Exit codes: `0` success or an informative result, `1` the repair or validation did not succeed, `2`
230
231
  usage error, `3` sign-in, plan, or usage-limit problem.
@@ -274,7 +275,9 @@ One analysis is one diagnosis sent to the AI. One fix is one repair attempt, val
274
275
  request you decline or that stops before sending. `fix` reuses the diagnosis `analyze` already
275
276
  produced for the same run, so it doesn't use another analysis.
276
277
 
277
- The paid plans are coming soon: until they open, every account uses Hobby.
278
+ The paid plans are coming soon: until they open, every account uses Hobby, and CI isn't limited by
279
+ plan. Hobby runs hosted analysis, draft pull requests, and Slack and Teams alerts in CI within its
280
+ monthly limits, and the CI rules above apply once the paid plans open.
278
281
 
279
282
  Annual billing gives two months free. Cancel within 14 days of your first payment, monthly or
280
283
  annual, and it is refunded in full, once in any 12 months. After that, cancelling an annual plan from the dashboard refunds
@@ -283,13 +286,17 @@ Paddle, the merchant of record.
283
286
 
284
287
  ### Teams
285
288
 
286
- On the team plans, the owner invites people by GitHub username at
287
- https://kwikqa.com/dashboard/team/. Everyone, including CI tokens they create, draws from one
288
- monthly pool.
289
-
290
- The owner can also turn on **team insights**: the flakiest tests, fix history, acceptance rate,
291
- and repair success at https://kwikqa.com/dashboard/insights/. While insights are on, the CLI shares
292
- the names, files, and projects of failing and flaky tests and each fix's outcome with the team, and
289
+ The team plans belong to a company account. Its admins invite people by work email, and people sign
290
+ in with a code sent to that address, or through the company's single sign-on on Enterprise. Teams
291
+ inside the company have managers and optional monthly caps, and everyone, CI tokens included, draws
292
+ from one monthly pool. When you approve `npx kwikqa login` at kwikqa.com/device, it asks which team
293
+ the sign-in counts for if you're in more than one, and `npx kwikqa status` shows your company, role,
294
+ and team. See
295
+ https://kwikqa.com/docs/account/#company.
296
+
297
+ An admin can also turn on **insights**: the flakiest tests, fix history, acceptance rate, and repair
298
+ success at https://kwikqa.com/dashboard/insights/. While insights are on, the CLI shares the names,
299
+ files, and projects of failing and flaky tests and each fix's outcome with the organization, and
293
300
  says so after each command. It never shares evidence, source, diffs, or error messages, and
294
301
  `analyze --local` shares nothing. `npx kwikqa status` shows whether insights are on.
295
302
 
@@ -358,7 +365,7 @@ many changed hunks a request carries. `--no-changes` on `analyze` and `fix` leav
358
365
  zero-data-retention policy (Claude on Google Cloud Vertex AI, GPT on Microsoft Azure): the
359
366
  service refuses a request that doesn't ask for that, and OpenRouter refuses rather than route it
360
367
  to an endpoint that would keep it. The service keeps only account, usage, token, and cost
361
- metadata and a hash of the request. It never stores your evidence, your source, or the model's
368
+ metadata, a hash of the request, and the result counts below. It never stores your evidence, your source, or the model's
362
369
  answer, which it holds in memory until your CLI collects it, for at most 15 minutes.
363
370
  - **BYOK, BYOK Team, BYOK Enterprise:** the packet goes from your machine directly to your
364
371
  endpoint, under your account there and its data-retention settings, and the preview names the
@@ -373,6 +380,15 @@ many changed hunks a request carries. `--no-changes` on `analyze` and `fix` leav
373
380
  committers, and concurrent CI jobs on the team plans. It stores the repository and the author
374
381
  only as keyed hashes, for the month they count in, never the names.
375
382
 
383
+ - **Result counts, on every plan:** when you're signed in, the CLI reports each analysis, fix,
384
+ validation, and fix pull request as codes and counts, so KwikQA can see which kinds of failure it
385
+ diagnoses and repairs well: the outcome and reason codes, the test framework, the CI system, the
386
+ symptom, owner, cause, and evidence grade, the kind of file a fix changed, and how many groups,
387
+ tests, files, and lines. Never test names, file paths, error text, evidence, source, or the
388
+ model's words. It's on by default: turn it off at https://kwikqa.com/dashboard/account/ (a
389
+ company's admins can for everyone), or for one run or CI job with `KWIKQA_RESULTS=off`.
390
+ `--local` reports nothing, and `npx kwikqa status` says whether it's on.
391
+
376
392
  Run records, transaction journals, captures, and validation output stay on your machine in
377
393
  `.kwikqa/`. [Security and data handling](https://kwikqa.com/security/) and the
378
394
  [privacy policy](https://kwikqa.com/privacy/) have the details.
@@ -429,8 +445,8 @@ steps:
429
445
 
430
446
  ### Fix pull requests
431
447
 
432
- In GitHub Actions, `kwikqa fix` can repair a failure on the runner and open the repair as a draft
433
- pull request. Nothing lands until a person reviews and merges it. Opt in by committing a policy in
448
+ In GitHub Actions, Azure Pipelines, and GitLab CI/CD, `kwikqa fix` can repair a failure on the
449
+ runner and open the repair as a draft pull request (a merge request on GitLab). Nothing lands until a person reviews and merges it. Opt in by committing a policy in
434
450
  `kwikqa.config.json`:
435
451
 
436
452
  ```json
@@ -439,7 +455,8 @@ pull request. Nothing lands until a person reviews and merges it. Opt in by comm
439
455
  }
440
456
  ```
441
457
 
442
- Then run it after your tests, in the same job:
458
+ Then run it after your tests, in the same job. Fetch the full history, so the diagnosis can see the
459
+ commit that changed your app (`fetchDepth: 0` on Azure Pipelines, `GIT_DEPTH: "0"` on GitLab):
443
460
 
444
461
  ```yaml
445
462
  permissions:
@@ -447,6 +464,8 @@ permissions:
447
464
  pull-requests: write # for the comment and the fix pull request
448
465
  steps:
449
466
  - uses: actions/checkout@v7
467
+ with:
468
+ fetch-depth: 0
450
469
  - run: npx playwright test
451
470
  - if: failure()
452
471
  run: npx kwikqa ci