Skip to content

refactor: split iOS runner-client into focused modules - #163

Merged
thymikee merged 1 commit into
mainfrom
worktree-ios-refactor
Mar 3, 2026
Merged

thymikee merged 1 commit into
mainfrom
worktree-ios-refactor

Conversation

@thymikee

@thymikee thymikee commented Mar 3, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Split the 1129-LOC runner-client.ts into 4 focused modules: runner-errors.ts, runner-xctestrun.ts, runner-transport.ts, runner-session.ts
  • Slim runner-client.ts to a thin orchestration layer (~120 LOC) with re-exports preserving all public API
  • Internal-only functions are properly un-exported to minimize surface area

Fixes #155

Test plan

  • pnpm typecheck passes
  • pnpm test:unit — 514/514 tests pass
  • pnpm test:smoke — 7/7 tests pass
  • All existing imports from runner-client.ts work unchanged (verified via grep)

🤖 Generated with Claude Code

Break the 1129-LOC runner-client.ts into cohesive modules:
- runner-errors.ts: error classification, hints, error builders
- runner-xctestrun.ts: xctestrun discovery, build, preparation, build settings
- runner-transport.ts: HTTP transport, endpoint resolution, connection waiting
- runner-session.ts: session lifecycle, process management, device validation
- runner-client.ts: thin orchestration + re-exports (preserves all public API)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-163/

Built to branch gh-pages at 2026-03-03 13:37 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@thymikee
thymikee merged commit d38ddc6 into main Mar 3, 2026
6 checks passed
@thymikee
thymikee deleted the worktree-ios-refactor branch March 3, 2026 13:44
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.

Refactor iOS runner client into cohesive modules

1 participant