mirror of
https://github.com/morluto/rea.git
synced 2026-10-22 13:52:32 -05:00
* fix(browser): advertise zero-based units for runtime source coordinates inspect_web_event_listeners and observe_web_execution return CDP callsite, listener and resource_start line_number/column_number values unchanged: zero-based lines and UTF-16 columns. Neither the advertised output schema nor docs/web-runtime.md said so. trace_web_source_location takes one-based lines, so a caller chaining a listener location into it lands one line early. Describe the units on the shared schema fields, which reach both tools' advertised output schemas, and document the conversion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(browser): describe runtime positions relative to the enclosing resource For an inline <script>, CDP reports listener and callsite positions relative to the HTML document, and resource_start is where the script text starts in that document. A real headless Chromium 155 page showed this: a listener on HTML line 6 came back as line_number 5, with resource_start {3, 8}. Describe all positions as relative to the enclosing resource. Document that inline-script positions must have resource_start subtracted, plus one added to the line, before trace_web_source_location. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(browser): clarify runtime-to-source coordinate conversion --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: N0zoM1z0 <1705004398@qq.com>