Skip to content

fix: file:// loader entry and node-level TLS detection in mtls - #231

Merged
pi0 merged 1 commit into
mainfrom
fix/loader-fileurl-mtls-detect
Jul 14, 2026
Merged

pi0 merged 1 commit into
mainfrom
fix/loader-fileurl-mtls-detect

Conversation

@pi0x

@pi0x pi0x commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Two small Node-scope fixes:

  • F35 (src/loader.ts): a file:// URL entry was passed through resolve() as a plain path, mangling it into $cwd/file:/... and returning notFound. Now the file:// scheme is checked first and only plain filesystem paths are resolve()d.
  • F37 (src/mtls.ts): the plugin only accepted TLS via tls.cert/tls.key and threw a false "requires an HTTPS server" error when cert/key were supplied through node server options. Detection now mirrors the node adapter and accepts cert/key from either path.

Tests extended for both cases; build, vitest, lint, and typecheck pass.

🤖 Generated with Claude Code

F35: loader resolved `file://` entry URLs as plain paths, mangling them
into `$cwd/file:/...` and yielding notFound. Check the `file://` scheme
first and only `resolve()` plain filesystem paths.

F37: mtls plugin only accepted cert/key via `tls.cert/key`, throwing a
false "requires an HTTPS server" error when cert/key were supplied via
node server options. Mirror the node adapter and accept both paths.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pi0x
pi0x requested a review from pi0 as a code owner July 14, 2026 11:33
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@pi0x, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 44 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5fcac826-16d6-491f-a3ae-24cd44050b02

📥 Commits

Reviewing files that changed from the base of the PR and between f2edab1 and 66a6b95.

📒 Files selected for processing (4)
  • src/loader.ts
  • src/mtls.ts
  • test/loader.test.ts
  • test/tls-peer-cert.test.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/loader-fileurl-mtls-detect

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Jul 14, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/srvx@231

commit: 66a6b95

@pi0 pi0 changed the title fix: file:// loader entry and node-level TLS detection in mtls fix: file:// loader entry and node-level TLS detection in mtls Jul 14, 2026
@pi0
pi0 merged commit a7b3d0d into main Jul 14, 2026
15 checks passed
@pi0
pi0 deleted the fix/loader-fileurl-mtls-detect branch July 14, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants