Repository navigation
fix(browser): identify NodeNext TypeScript original source artifacts - #811
Merged
N0zoM1z0 merged 1 commit intoOct 7, 2026
Merged
Conversation
Signed-off-by: Rudy Celekli <[email protected]>
N0zoM1z0
approved these changes
Oct 7, 2026
Collaborator
There was a problem hiding this comment.
Reviewed head83b2e595fd. The classifier extends the existing original-source TypeScript label to .mts/.cts, without changing source bytes, digests, map resolution, request authority or supported parsing. Real owned HTTP source-map tests cover all seven TS/JS module suffixes. Local production build and all39 source-map fetcher tests passed; all20 hosted checks are green, including the exact-head real-browser lane. The previously reported popup timeout has a green hosted browser verification on this head. No blocking findings.
This was referenced Oct 7, 2026
Owner
|
Thanks, @rudycelekli, for your work on “fix(browser): identify NodeNext TypeScript original source artifacts.” I appreciate your contribution to REA. |
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
…orluto#811) Signed-off-by: Rudy Celekli <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Identify
.mtsand.ctsoriginal source artifacts as TypeScript, alongside the existing.tsand.tsxcases. TypeScript's NodeNext compiler emits source maps pointing to these ordinary input files, but their retained artifacts were labeledtext/javascript.Problem and expected behavior
Actual pinned TypeScript7 compilation followed by owned Chrome154 and
CdpBrowserProvider.analyzeBundleretained the original.mts/.ctstext with the wrong media type..tsand.jscontrols were correct. Original TypeScript artifacts should retain their supported language label regardless of the NodeNext module suffix. This is a focused bug fix, so no large-contract issue is needed.Change and scope
Extend the existing source media classifier to the two NodeNext TypeScript suffixes. Update the owning browser documentation and exercise seven source suffixes through real owned HTTP map responses. Parsing support already exists; this does not add a language or reconstruct missing sources.
Contract and boundary impact
text/typescript.docs/product-catalog.json), package, or installation impact: none.Evidence and regression coverage
Tests added or updated: seven native HTTP consumer cases (
ts,tsx,mts,cts,js,mjs,cjs); two fail the base classifier.Base reproduction or other evidence: actual TypeScript7 CLI emitted four maps; actual public browser analysis mislabeled both NodeNext inputs before the change and correctly labels all four controls afterward.
User-visible CLI/MCP output:
.mts/.ctsoriginal artifacts change fromtext/javascripttotext/typescript.Remaining proof gaps: one full browser verifier invocation failed in unchanged popup cleanup with its existing1000ms timeout. A subsequent main-baseline full verifier passed; this is not claimed as a baseline failure. The exact candidate's isolated existing popup verifier then passed without timeout or source changes. No full candidate verifier green claim or cross-browser claim.
Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
npm run check:5tasks passed,129 existing warnings and zero errors.npm run check:fast:2tasks passed.npm run docs:checkandnpm run build:passed.npm run verify:browser:candidate run failed at unchanged popup cleanup; main baseline passed. Exact candidateverifyPopupEventCoveragepassed all network, nested popup, gap, shared-context, CLI and stdio MCP controls afterward. Both original receipts retained.Compatibility, safety, and release
Review checklist
type(scope): outcome.AI-assisted implementation and verification; I reviewed the patch and ran the reported checks.