mirror of
https://github.com/morluto/rea.git
synced 2026-11-23 06:55:55 +00:00
* feat(web): report value-free header names in the api-surface view The api-surface view could only say that a group had query names. Analysts asking which endpoints are signed or session-bearing had to page complete capture records and compare header values by eye, which copies the values into the agent's context. Add an opt-in include_request_header_names facet that lists the request header, cookie and set-cookie names recorded for each group, with the records that presented them. Values are never read: the reader walks only name members, tolerates malformed members without dropping the rest, and reserves its scratch before collecting anything. Omitting the option leaves group output byte-identical, and the existing sensitive-parent refusal still applies. * style(web): format the route template view The branch's own change to `webNetworkRouteTemplates.ts` did not match oxfmt, which is what failed `Static checks` on this PR independently of the main-side formatting break. Merged current main and formatted the file. * fix(analysis): reserve header name lists before copying them readRecordedHeaderNames derived the request, cookie and set-cookie names with Array.map before the temporary-byte reservation, so a capture whose arrays exceed the projection allowance still allocated three input-sized arrays. Charge each array's names from the borrowed members first, then materialize the lists only once the reservation succeeds. Keep a recorded empty name: the pinned HAR schema accepts any string name, so dropping it made a recorded empty spelling indistinguishable from an omitted member. Report a member whose name is not a string as an explicit unknown instead. * fix(analysis): report a malformed header collection as an unreadable member When a recorded request.headers, request.cookies or response.cookies member is present but not an array, memberNames collapsed it to an empty list and only the per-member scan could flag the record. A record whose collections are all malformed therefore produced a complete-looking empty name list with no unknown, while only an omitted collection is observed absence. Track a non-array collection as unreadable so the name list is reported incomplete. * test(web): compare unreadable header-name unknowns with their owner Three regressions repeated the accumulator's unknown sentence, so a wording change would fail them while the reported facts stay correct. Export the sentence from the accumulator and assert against it. Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> --------- Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com> Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>