You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/main/providers/types.ts was a forwarding file for the terminal, file and git provider contracts. Its last importers were in src/main/ipc. This PR points them at the contract files and deletes the forwarding file.
What Changed
Users see no difference.
32 files under src/main/ipc/ now import IPtyProvider, IFilesystemProvider, IGitProvider, FileStat and related types straight from pty-provider-contract.ts, filesystem-provider-contract.ts and git-provider-contract.ts. All of these were type-only imports and stay type-only.
src/main/providers/types.ts is deleted. Nothing in src, tests, mobile, config or .github references it now.
Net: production −34 (the barrel), with 32 import paths re-pointed.
Why
Phase 3.99 rule: no barrels. This finishes the work of #27813 (main) and #27965 (runtime). Each file now names the contract it depends on, and there is one place to import each one from.
Linked Issue
N/A, internal Phase 3.99 cleanup (PR 3.4c).
Visual Proof
N/A, no UI or behaviour change.
Testing
rg "providers/types" across src tests mobile config .github returns nothing, @ts-nocheck files included. FileRangeReadUnsupportedError, the barrel's only runtime value, had no importer through it.
pnpm tc, pnpm lint, pnpm run check:code-quality:changed (0 findings), build:electron-vite, build:cli and build:orcad pass.
Changed ipc test files: 5 files, 25 tests pass.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
P0/P1 review: my own review plus an independent reviewer.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Type-only import changes plus deleting a module that only re-exported. SSH, wire and platforms are not affected.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
📝 Walkthrough
Walkthrough
PTY and filesystem type imports now reference their provider contract modules instead of providers/types. The providers/types.ts barrel file was removed. The changes do not alter runtime behavior.
Priority: ⬇️ Low
Merge Risk:⚪ Minimal · up to e93f6
The provider import cleanup leaves no tracked dangling references or missing contract exports; no actionable merge risk remains.
Pre-merge checks | 4 | 1
❌ Failed checks (1 warning)
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 32 files.
Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name
Status
Explanation
Title check
The title clearly identifies the direct provider-contract imports and deletion of the barrel, which are the main changes.
Description check
The description covers the change, rationale, scope, testing, lack of user-visible impact, and checklist items. The N/A linked-issue entry is explained as an internal cleanup, while the related issue …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
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
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.
ELI5
src/main/providers/types.tswas a forwarding file for the terminal, file and git provider contracts. Its last importers were insrc/main/ipc. This PR points them at the contract files and deletes the forwarding file.What Changed
Users see no difference.
src/main/ipc/now importIPtyProvider,IFilesystemProvider,IGitProvider,FileStatand related types straight frompty-provider-contract.ts,filesystem-provider-contract.tsandgit-provider-contract.ts. All of these were type-only imports and stay type-only.src/main/providers/types.tsis deleted. Nothing insrc,tests,mobile,configor.githubreferences it now.Net: production −34 (the barrel), with 32 import paths re-pointed.
Why
Phase 3.99 rule: no barrels. This finishes the work of #27813 (main) and #27965 (runtime). Each file now names the contract it depends on, and there is one place to import each one from.
Linked Issue
N/A, internal Phase 3.99 cleanup (PR 3.4c).
Visual Proof
N/A, no UI or behaviour change.
Testing
rg "providers/types"acrosssrc tests mobile config .githubreturns nothing,@ts-nocheckfiles included.FileRangeReadUnsupportedError, the barrel's only runtime value, had no importer through it.pnpm tc,pnpm lint,pnpm run check:code-quality:changed(0 findings),build:electron-vite,build:cliandbuild:orcadpass.Changed ipc test files: 5 files, 25 tests pass.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
P0/P1 review: my own review plus an independent reviewer.
Agent skill upstream boundary
Notes
Type-only import changes plus deleting a module that only re-exported. SSH, wire and platforms are not affected.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)