Skip to content

Split services.js into domain modules behind the same barrel (#1447 pass E) - #1452

Merged
currentbits merged 10 commits into
mainfrom
coder/refactor-e-split-services-js-0eb7c2
Oct 5, 2026
Merged

currentbits merged 10 commits into
mainfrom
coder/refactor-e-split-services-js-0eb7c2

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Round 2, pass E of #1447. electron/services.js was 5,824 lines of 175 flat functions behind one module.exports. It's now split into ten domain modules, and services.js stays as the barrel. Every require("./services") caller is unchanged.

Module Lines
services-thread-state.js 1240
services-threads.js 1222
services-projects.js 834
services-notes.js 549
services-spec.js 511
services-crew.js 487
services-settings.js 446
services-teach.js 300
services-git.js 281
services-shared.js (helpers used by several domains) 95

services.js: 5,824 → 348 lines.

Checked

  • Same API: loading the module at runtime gives the same 161 export keys as main, with nothing missing and nothing extra.
  • Pure move: every added line also appears among the removed lines, except "use strict" headers, requires and export lists.
  • Tests: npm run typecheck is clean, and the full electron suite (CI-like env) passes 4109/4109.

🤖 Generated with Claude Code

Willem and others added 10 commits October 4, 2026 19:59
Pure move out of electron/services.js; services.js re-exports the same keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pure move out of electron/services.js; services.js re-exports the same keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pure move out of electron/services.js; services.js re-exports the same keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pure move out of electron/services.js; services.js re-exports the same keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pure move out of electron/services.js; services.js re-exports the same keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…te.js (#1447)

Pure move out of electron/services.js; services.js re-exports the same keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pure move out of electron/services.js; services.js re-exports the same keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pure move out of electron/services.js; services.js re-exports the same keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…1447)

Pure move out of electron/services.js; services.js re-exports the same keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…1447)

Pure move out of electron/services.js; services.js re-exports the same keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@currentbits
currentbits merged commit c86882e into main Oct 5, 2026
6 checks passed
@currentbits
currentbits deleted the coder/refactor-e-split-services-js-0eb7c2 branch October 5, 2026 11:18
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