Skip to content

Feature: first-class support for Re.Pack (Rspack) dev server & Module Federation super-apps #1031

Description

@Fl0p

Summary

agent-device's bundler-agnostic core (open / snapshot / act / evidence via XCTest·ADB and the accessibility tree) works great against apps bundled with Re.Pack 5 (Rspack). But the React Native dev-loop features are coupled to Metro, so they don't apply to Re.Pack apps — a notable gap given Re.Pack is Callstack's own bundler and the backbone of Module Federation super-apps.

Context

Re.Pack 5 (Rspack) is a first-class React Native bundler and the backbone of Module Federation super-apps: a native host shell that loads JS-only mini-apps at runtime. Its dev server is react-native webpack-start, not Metro. agent-device drives such apps fine for the core loop, but the Metro-specific surface is unavailable.

What appears Metro-coupled today

  • metro tool / metro reload — assumes a Metro dev server; no Re.Pack/webpack-start equivalent.
  • Runtime/bundle hints for open --relaunch (the metro* runtime-override flags) — geared to Metro's runtime.
  • Remote dev-server workflow (connect --remote-config, metro prepare) — Metro-shaped.
  • JS debugging evidencereact-devtools and cdp (JS heap / snapshots) route through Metro CDP / inspector; unclear if/how they resolve for a Re.Pack-served app.

Request

  1. Recognize and support the Re.Pack (Rspack) dev server (webpack-start) wherever agent-device currently assumes Metro — reload, runtime hints, dev-server probing.
  2. Route React DevTools / JS-heap (CDP) to the RN inspector target in a bundler-agnostic way (Re.Pack apps still expose the standard RN debugging target via the app process, independent of the JS bundler).
  3. First-class awareness of Module Federation super-apps (host + federated mini-apps loaded at runtime) — e.g. inspecting/reloading a specific remote.
  4. As a minimum: document which features are Metro-only vs bundler-agnostic, so Re.Pack users know what to expect.

Environment

  • agent-device 0.18.1 (MCP + CLI)
  • React Native 0.86 (New Architecture), iOS + Android
  • Re.Pack 5 (Rspack), Module Federation 2 (@module-federation/*)

Happy to test builds against a real Re.Pack + Module Federation host/mini-app setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-humanValid work that needs human implementation, judgment, or maintainer merge

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions