Skip to content

refactor: group host storage and worker infrastructure - #37606

Merged
nwparker merged 1 commit into
mainfrom
module-layout-v2/m01-host-infrastructure
Nov 3, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-layout-v2/m01-host-infrastructure

Conversation

@nwparker

@nwparker nwparker commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 58 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​63 $\color{#cf222e}{\Huge{\mathbf{−}}}$​59 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4
Prod 161 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​258 $\color{#cf222e}{\Huge{\mathbf{−}}}$​209 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​49

Filesystem primitives, credential persistence and worker transport currently sit directly under src/main. Group 41 source/test files under their concrete domain owners and update their callers, mocks, build inputs and active test paths together.

Moved code imports Windows retry operations and worker transport types from their defining modules. The browser persistence fixture shares its existing rename stub with that concrete owner. CLI imports, guarded Rollup output and ASAR unpack paths move together for macos-tree-clone; worker entry filenames stay unchanged.

Validation: 27 focused test files (271 passed, one existing skip), CLI and main-process builds, and a plain-Node smoke that loads the emitted CLI after the main build and performs a real macOS tree clone. Two independent source/boundary audits passed. pnpm check:changed passed 25/26 gates; broad unit selection reported seven assertions in three unmoved test files. Running those files on pristine main reproduces the same seven failures. Five are macOS temp-path alias assertions; two involve Bun opening a read-only SQLite database. All 25 assertions pass in a diagnostic Node run with a canonical temp root. After rebasing, all 25 static/type/import checks and the 27 focused test files pass again. The fresh broad related-test selection was interrupted after exceeding 13 minutes under the repository scoped-check allowance; its unit gate is not reported as green. Detailed controls remain local; no test or application logic was changed to mask failures.

Follows merged #37600. This batch reduces the direct src/main file count from 410 to 369.

@nwparker
nwparker merged commit 45a2935 into main Nov 3, 2026
86 of 87 checks passed
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.

1 participant