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 is a forwarding file that re-exports the terminal, file and git provider contracts from their own files. #27813 moved src/main (outside runtime and ipc) to import each contract from its own file. This PR does the same for src/main/runtime.
What Changed
Users see no difference: 26 files under src/main/runtime/, all type-only imports, now import IPtyProvider, IFilesystemProvider, IGitProvider and related types straight from pty-provider-contract.ts, filesystem-provider-contract.ts and git-provider-contract.ts. This includes the test-mock module's IPtyProvider type re-export. The barrel itself stays until the ipc PR (3.4c) moves its last importers and deletes it.
Net: 0 lines (26 imports re-pointed).
Why
Phase 3.99 rule: no barrels. One import path per contract makes it obvious which contract a file depends on. Splitting the work by directory keeps each PR easy to review.
pnpm tc, pnpm lint, pnpm run check:code-quality:changed (0 findings), build:electron-vite.
pnpm test src/main/runtime/orca-runtime-tests plus the changed test files: 8 files, 141 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 path changes; no runtime code changes. 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
Runtime modules, tests, and a test-mock re-export now import provider types from provider-specific contract modules instead of providers/types. The changes do not alter runtime behavior or test expectations.
Estimated code review effort
Priority: ⬇️ Low
Merge Risk:⚪ Minimal · up to 82a0b
This is an internal type-import cleanup with no identified behavior change or actionable merge-blocking risk.
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 26 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 and concisely identifies the main change: direct imports of provider contracts in the runtime code.
Description check
The description covers the required change, rationale, scope, testing, visual proof, review, compatibility notes, and checklist. It omits the AI Disclosure heading, but this is non-critical for an int…
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.tsis a forwarding file that re-exports the terminal, file and git provider contracts from their own files. #27813 movedsrc/main(outside runtime and ipc) to import each contract from its own file. This PR does the same forsrc/main/runtime.What Changed
Users see no difference: 26 files under
src/main/runtime/, all type-only imports, now importIPtyProvider,IFilesystemProvider,IGitProviderand related types straight frompty-provider-contract.ts,filesystem-provider-contract.tsandgit-provider-contract.ts. This includes the test-mock module'sIPtyProvidertype re-export. The barrel itself stays until the ipc PR (3.4c) moves its last importers and deletes it.Net: 0 lines (26 imports re-pointed).
Why
Phase 3.99 rule: no barrels. One import path per contract makes it obvious which contract a file depends on. Splitting the work by directory keeps each PR easy to review.
Linked Issue
N/A, internal Phase 3.99 cleanup (PR 3.4b).
Visual Proof
N/A, no UI or behaviour change.
Testing
rg "providers/types'" src/main/runtimereturns nothing. All rewritten imports stayimport type.pnpm tc,pnpm lint,pnpm run check:code-quality:changed(0 findings),build:electron-vite.pnpm test src/main/runtime/orca-runtime-testsplus the changed test files: 8 files, 141 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 path changes; no runtime code changes. SSH, wire and platforms are not affected.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)