Yann Roberto
1016c96e6b
fix(source-maps): accept omitted names during browser collection ( #2831 )
2026-10-13 22:17:09 +08:00
morluto
f64790bfc3
refactor(javascript): reuse validated source-map decoding
...
Pass typed map objects into the codec and reuse validated TraceMap instances for regular and indexed lookups. Remove whole-map serialization, duplicate leaf decoding, an array-copy wrapper, and the unused offset-validation mode in artifact declaration collection.
Validation: source-map and browser consumer suites (126 tests), declaration tests, and artifact reconstruction boundaries pass. Section overlap checks and raw source declarations remain intact.
2026-10-12 04:33:38 +08:00
morluto and hhang
14935e4d47
fix(javascript): preserve package and source-map boundary identity ( #1939 )
...
* fix(javascript): preserve bare package specifier suffixes
* fix(javascript): resolve ESM package self references
* fix(javascript): recover retained prefixed source maps
* test(javascript): cover suffixed ESM self references
* fix(javascript): retain legacy ESM package suffix behavior
* fix(javascript): reject legacy ESM directory and extension fallback
* refactor(javascript): consolidate package resolution and workflow coverage
* fix(javascript): report exact ESM package subpath misses
* fix(javascript): compare parsed names for ESM self references
* refactor(javascript): parse bare package requests once
* fix(javascript): derive ESM dependency lookup from package URLs
---------
Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com >
2026-10-12 04:09:17 +08:00
cyanseek
898d5096f9
perf(javascript): index source-map ignore lists per leaf ( #1905 )
2026-10-12 01:01:33 +08:00
morluto
aa257ea4b1
fix(browser): decode source-map response framing
...
Share the ECMA-426 JSON parse view across fetched maps and local point tracing while retaining exact response text, bytes, and digest. Handle BOM and HTTP newline variants without treating unterminated prefixes as valid JSON.
Validation: 89 source-map tests passed; source/runtime build and check:fast passed. Real Chrome 154 CLI and stdio MCP browser verification passed on macOS ARM64.
2026-10-11 07:29:51 +08:00
morluto
0a0174b9ac
fix(browser): validate and bound source-map evidence
2026-10-09 06:32:10 +08:00
morluto
f983c718c3
fix(browser): bound aggregate source-map decoding before expansion
2026-10-09 05:15:23 +08:00
ysopwnable
f430c416c7
feat(browser): trace captured website source-map locations ( #897 )
...
* refactor(browser): share captured-script acquisition boundaries
Reuse stable capture/source acquisition and identity validation for module
and source-map analysis. Preserve host I/O, malformed input, unavailable
source and digest mismatch diagnostics.
Refs #851
Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis)
Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
* feat(browser): trace captured website source-map locations
Refs #851 . Preserve selected capture/map byte identity, duplicate mappings and embedded source evidence through the pinned upstream codec.
Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis)
Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
* test(browser): verify source-map artifacts and synchronize generated contracts
Cover byte-preserving map reads and actionable filesystem constraints. Refresh generated public schemas and metadata on current main.
Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis)
Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
* fix(browser): preserve inert source-map URL context
The selected URL is local codec context and grants no transport authority. Preserve its reported text and verify normal/userinfo contexts through real public interfaces, alongside independent manifest byte identity.
Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis)
Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
2026-10-07 16:21:18 +08:00