screw-bugs 0.1.10 → 0.1.11

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/README.md CHANGED
@@ -186,7 +186,16 @@ fixed slots with short texts:
186
186
  "title": "Show an error for a wrong password",
187
187
  "severity": "high",
188
188
  "caseIds": ["wrong-password"],
189
- "why": "Users are left on the form with no idea what happened."
189
+ "why": "Users are left on the form with no idea what happened.",
190
+ "evidence": [
191
+ { "shot": "02-02", "target": { "label": "Password" }, "mark": "red", "note": "No error" },
192
+ {
193
+ "shot": "01-03",
194
+ "target": { "role": "alert" },
195
+ "mark": "green",
196
+ "note": "Sign-up shows one"
197
+ }
198
+ ]
190
199
  }
191
200
  ],
192
201
  "cases": [
@@ -208,12 +217,16 @@ fixed slots with short texts:
208
217
  "observed": ["The button stays enabled while signing in."]
209
218
  }
210
219
  ],
211
- "notTested": [{ "what": "Password reset", "why": "The test inbox was not available." }],
220
+ "notTested": [
221
+ { "what": "Password reset", "why": "The test inbox was not available." },
222
+ { "what": "Signing out", "why": "Sign-in failed first.", "caseId": "wrong-password" }
223
+ ],
212
224
  "nextTests": ["A locked account"]
213
225
  }
214
226
  ```
215
227
 
216
- Case IDs, screenshot IDs and timecodes must be ones `run_status` gave for that case; findings that
228
+ Case IDs, screenshot IDs and timecodes must be ones `run_status` gave for that case (a fix's
229
+ `evidence` may use a screenshot of any case of the run); findings that
217
230
  do not fit are rejected with one line per problem saying what to change (exit code 6), and nothing
218
231
  is saved. A case named that does not exist is one of those problems.
219
232
 
@@ -262,9 +275,24 @@ only on what the screenshot shows: an element that was in the page or frame but
262
275
  it was taken (transparent, such as a section that had not faded in yet, or cut away by its box or
263
276
  by its frame) gets no box and says why; and when another match is on the screenshot, matches
264
277
  outside it (a copy far below a viewport screenshot, or outside the part of its frame that shows)
265
- or not visible are left out, and the legend says how many. `notTested` lists what the run did not
266
- cover and why; the report shows it next to the counts, and a run whose cases all passed then reads
267
- "7 of 7 cases passed · 3 areas not tested" rather than "All 7 cases passed". `observed` lines are
278
+ or not visible are left out, and the legend says how many. A highlight's optional `region` marks
279
+ only a part of its element, as fractions of the element's box (`{ "x": 0.4, "y": 0.6, "width":
280
+ 0.3, "height": 0.2 }`), such as a line of text inside a picture: code clips it to the box it found
281
+ and draws the part, with the whole element dashed around it; the agent still never gives
282
+ coordinates on the screenshot.
283
+
284
+ A fix's `evidence` is marks like highlights, on screenshots of any case, in the order to compare
285
+ them: give a mismatch both sides (the preview, then the page it should match). The report shows
286
+ each fix as an issue, with its evidence side by side, each screenshot zoomed in on those marks and
287
+ captioned with the mark's note and its case; every other mark on that screenshot is drawn too.
288
+ A fix without evidence shows its cases' Actual and Expected screenshots, and a failed case no fix
289
+ names gets an issue of its own. A mark that is both a case's highlight and a fix's evidence (the
290
+ same element, colour and region) is drawn once.
291
+
292
+ `notTested` lists what the run did not cover and why (and, with `caseId`, the case that did not
293
+ finish and left it out); the report shows it in the fold "What I didn't check" with the cases that
294
+ could not finish, and a run whose cases all passed then reads "7 of 7 cases passed · 3 areas not tested"
295
+ rather than "All 7 cases passed". `observed` lines are
268
296
  shown as "observed, not checked by a step". The findings go to `findings.json`; screenshots with
269
297
  highlights get a copy with the boxes drawn in, under `annotated/` (named for that write-up, so a
270
298
  copy drawn for an earlier one is never shown), and the report is written again, so it shows the
@@ -280,6 +308,7 @@ Limits (each text is one line, not blank; findings past them are rejected with w
280
308
  | `did`, `worked`, `didnt` (per case) | at most 8 lines each, 160 characters a line |
281
309
  | `failed` (per case) | 160 characters |
282
310
  | `highlights` (per case) | at most 6; `note` 120 characters |
311
+ | `evidence` (per fix) | at most 4; `note` 60 characters |
283
312
  | `keyMoments` (per case) | at most 8; `label` 80 characters |
284
313
  | `observed` (per case) | at most 5 lines, 200 characters a line |
285
314
  | `notTested` | at most 8; `what` 100 characters, `why` 160 |
@@ -843,19 +872,20 @@ report rules below do not change.
843
872
  ### Report
844
873
 
845
874
  Every run that ends, finished or errored, writes `report.html` into its folder. One page, one
846
- player: at the top the target, the number of cases, how long the run took and the device, what was
847
- asked (two lines, with the rest a click away) and a filter per status. Below, the run's video in a
848
- browser window (a phone, for a run on a phone) with the page's address at each moment, as the run
849
- recorded it, and beside it the evaluation and one card per case. The evaluation is the agent's
850
- headline with the counts under it, one line per fix (most severe first), the agent's first fix as
851
- "Fix first", and what was not tested and why; without a write-up, the counts alone. Each card has
852
- the case's status (an icon and its word), its time on the video, why it did not pass, and its
853
- screenshots: for a case that did not pass, the page when it stopped as "Actual" (beside one the
854
- agent marked only in green as "Expected"), else small thumbnails. A screenshot opens in a viewer
855
- with the highlights drawn over it (a checkbox hides them) and the element the step acted on; the
856
- arrow keys step through the case's screenshots. "Steps and details" opens the case's steps with
857
- their timecodes and the agent's write-up of it. Then what to test next, and the run's details
858
- (what it checks, target, times, video, version, raw files). Scrolling the cases drives the player:
875
+ player: the run's video in a browser window (a phone, for a run on a phone) with the page's address
876
+ at each moment, as the run recorded it, its timeline in one segment per case, and the case playing
877
+ now; on a phone the player stays pinned at the top while the rest scrolls. Beside it: the run's
878
+ title, how long it ran and its counts, and the verdict (the agent's headline; without a write-up,
879
+ the counts). Then the issues, numbered, most severe first: each fix with its evidence side by side
880
+ (the screenshot that shows the bug on a red tile), each screenshot with its time on the video, the
881
+ mark's note and its case. Then one card per case: its status (an icon and its word), its time on
882
+ the video, why it did not pass, and its screenshots as a pile (for a case that did not pass, the
883
+ page when it stopped, in red). A screenshot opens in a viewer with the highlights drawn over it and
884
+ the element the step acted on, the issue's or case's title and the legend of its marks under it;
885
+ the arrow keys step through the case's screenshots. "Steps and details" opens the case's steps with their timecodes and the agent's
886
+ write-up of it. Last, three folds: what was not checked and why, what to test next, and the run's
887
+ details (what was asked, what it checks, target, device, browser, times, video, version, raw
888
+ files, and which parts are the agent's write-up). Scrolling the cases drives the player:
859
889
  the case at the reading line plays and the cases follow the video; with "Loop case" on (it starts
860
890
  off) the case plays in a loop instead. Code lays out the page and decides every status, except that the agent's write-up
861
891
  may mark a case failed (its card then says so, as the agent's verdict, beside the code's result);
@@ -868,7 +898,8 @@ load by relative paths, so it opens from disk and still works when the run folde
868
898
  moved. It has a light and a dark theme: it follows the
869
899
  system, and a switch picks one (kept in the browser where it allows). Without script it follows the
870
900
  system, the video has the browser's own controls, timecodes are plain links that open the video at
871
- that time and screenshots open the image. One video loads at a time, so the screenshots load from
901
+ that time. A screenshot opens only in the report's viewer (a card over the page, dimmed and
902
+ blurred), never in a tab. One video loads at a time, so the screenshots load from
872
903
  any static server, also one without HTTP range requests such as `python3 -m http.server`.
873
904
  `run`, `status` and the MCP tool `run_status` give its path once the run has ended.
874
905
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "2026-11-19T22:18:52.547Z-02cb4258",
3
- "builtAt": "2026-11-19T22:18:52.547Z",
4
- "commit": "28f7e492960f28e8592ee2f1938b07a080cd9600"
2
+ "id": "2026-11-20T22:33:17.848Z-f23b348d",
3
+ "builtAt": "2026-11-20T22:33:17.848Z",
4
+ "commit": "dc1484a8aafb8268724d9cbbb5612f980dbcefa9"
5
5
  }
package/dist/cli/mcp.js CHANGED
@@ -338,8 +338,11 @@ const SubmitFindingsInput = Schema.Struct({
338
338
  description: 'Your write-up, from run_status: a one-sentence headline, fixes (most important first, by ' +
339
339
  'case ID), per case what you did, what worked and what did not, highlights (an element on ' +
340
340
  'one of its screenshot IDs, named like a step target, red for a problem, green for as ' +
341
- 'expected) and key moments (its timecodes), what you did not test and why (notTested: ' +
342
- 'what and why; a passing run covers only what its cases did), and next tests. Short ' +
341
+ 'expected; region marks only a part of it, such as text in a picture) and key moments (its ' +
342
+ 'timecodes), per fix its evidence (marks on screenshots of any case, shown side by side ' +
343
+ 'under the fix: give every mismatch both sides), what you did not test and why (notTested: ' +
344
+ 'what and why, and the caseId of a case that did not finish and left it untested; a ' +
345
+ 'passing run covers only what its cases did), and next tests. Short ' +
343
346
  'texts and capped lists; see the field limits. Use only IDs and timecodes ' +
344
347
  "from run_status. The run's checks decide statuses; you can only mark a case failed (its " +
345
348
  'failed: what is wrong), whenever your own evidence (a database, logs, the screenshots) ' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screw-bugs",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Local browser QA for coding agents (MCP), people and CI.",
5
5
  "keywords": [
6
6
  "browser",
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@effect/platform-node": "^4.1.0",
48
48
  "@modelcontextprotocol/server": "2.4.0",
49
- "@screw-bugs/core": "0.1.10",
49
+ "@screw-bugs/core": "0.1.11",
50
50
  "effect": "^4.1.0",
51
51
  "playwright-core": "1.64.1"
52
52
  },