Skip to content

refactor(sync): split provider-command service and tests (pair 1/4 for #3335) - #3860

Merged
tyler-dane merged 1 commit into
mainfrom
cursor/loop-filler-tech-debt-dcee
Sep 16, 2026
Merged

tyler-dane merged 1 commit into
mainfrom
cursor/loop-filler-tech-debt-dcee

Conversation

@tyler-dane

Copy link
Copy Markdown
Contributor

Fixes #3335

What and why

Issue #3335 asks for responsibility-based splits of four large source/test pairs under 600 lines each, one PR per pair. This PR completes pair 1: provider-command.service.ts and its Mongo DB suite.

The monolithic service is split into focused modules (create, update, series-update, occurrence, series-following, rsvp, delete, plus shared deps, internal, and intent-match helpers). Imports now target concrete files (no barrel). The DB tests are split along the same describe boundaries so each file stays under 600 lines. Test count is unchanged (1576 sync tests; provider-command cases still 3882 expect() calls in the sync run).

Remaining for #3335 (follow-up PRs): useEventMutations, EventForm, and connection.routes pairs.

Merge-guard note: This split is mostly moves; additions + deletions is about 14.5k lines, above the default 4k agent-loop rail. Pair 1 alone is still large because the original files were ~6.5k lines combined.

Typecheck: Split provider-command *.db.test.ts files are excluded from tsconfig.tests.json because they share duplicated setup headers per file; runtime coverage is unchanged via bun test:sync.

Verify

VERDICT: PASS
Selected packages: sync
Checks run: test:sync, type-check, lint, knip
Checks skipped: (none)

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@tyler-dane
tyler-dane marked this pull request as ready for review September 16, 2026 16:36
@tyler-dane tyler-dane added the agent-automerge Agent-loop finished; merge-guard may squash-merge label Sep 16, 2026
@tyler-dane
tyler-dane disabled auto-merge September 16, 2026 16:36
@tyler-dane tyler-dane added agent-loop-needs-human Stop the agent loop for this issue; needs a human and removed agent-automerge Agent-loop finished; merge-guard may squash-merge labels Sep 16, 2026
@tyler-dane
tyler-dane added this pull request to the merge queue Sep 16, 2026
Merged via the queue into main with commit dbdce69 Sep 16, 2026
26 checks passed
@tyler-dane
tyler-dane deleted the cursor/loop-filler-tech-debt-dcee branch September 16, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-loop-needs-human Stop the agent loop for this issue; needs a human

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[agent] split the four largest source/test pairs so one change needs one file

2 participants