mirror of
https://github.com/morluto/rea.git
synced 2026-10-27 09:55:46 +00:00
* 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)
13 lines
619 B
TypeScript
13 lines
619 B
TypeScript
import { WebSourceLocationService } from "../application/WebSourceLocationService.js";
|
|
import { LocalWebSourceLocationArtifacts } from "../browser/assets/WebSourceLocationArtifacts.js";
|
|
import { SourceMapDecoder } from "../javascript/sourceMaps/SourceMapDecoder.js";
|
|
|
|
/** Compose local source/map analysis without import-time reads or process acquisition. */
|
|
export const createWebSourceLocationService = (
|
|
environment: Readonly<NodeJS.ProcessEnv> = process.env,
|
|
): WebSourceLocationService =>
|
|
new WebSourceLocationService(
|
|
new LocalWebSourceLocationArtifacts(),
|
|
new SourceMapDecoder({ environment }),
|
|
);
|