Skip to content

refactor: extract companion tunnel core#442

Merged
thymikee merged 1 commit intomainfrom
codex/extract-companion-tunnel-core
Apr 26, 2026
Merged

refactor: extract companion tunnel core#442
thymikee merged 1 commit intomainfrom
codex/extract-companion-tunnel-core

Conversation

@thymikee
Copy link
Copy Markdown
Contributor

@thymikee thymikee commented Apr 26, 2026

Summary

Extract generic companion tunnel lifecycle and worker code from Metro-specific modules.
Add thin Metro and React DevTools wrappers while removing now-unused Metro worker/contract shims.
Derive tunnel artifact paths from wrapper slugs and require wrappers to provide register paths explicitly.
Add wrapper-specific coverage so Metro and React DevTools state paths do not collide.

Fixes #441

Touched files: 16. Scope stayed within companion tunnel, React DevTools wiring, and related tests.

Validation

  • pnpm format
  • pnpm exec vitest run src/tests/client-companion-tunnel-worker.test.ts src/tests/client-metro-companion.test.ts src/tests/cli-react-devtools.test.ts src/tests/remote-connection.test.ts
  • pnpm check:quick
  • pnpm check:unit

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 26, 2026

PR Preview Action v1.8.1

QR code for preview link

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

Built to branch gh-pages at 2026-04-26 00:29 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@thymikee thymikee force-pushed the codex/extract-companion-tunnel-core branch from 08381ad to 4df37df Compare April 26, 2026 00:23
@thymikee thymikee force-pushed the codex/extract-companion-tunnel-core branch from 4df37df to 847cd00 Compare April 26, 2026 00:29
@thymikee thymikee merged commit 48264ca into main Apr 26, 2026
15 checks passed
@thymikee thymikee deleted the codex/extract-companion-tunnel-core branch April 26, 2026 00:31
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: extract generic companion tunnel core from Metro companion

1 participant