feat(mobile): Expo scaffold for Phase 12 mobile app#32
Open
Codename-11 wants to merge 1 commit into
Open
Conversation
Phase 12 (mobile) scaffold of the v3 daemon pivot. Managed-workflow Expo app under packages/mobile with three screens (Agents list, Agent detail placeholder, Settings) talking to the ARC daemon over WebSocket. - packages/mobile: expo-router app + ClientProvider + RN-compatible ArcClient shim (src/arc-client-rn.ts). The shim re-implements connect/ call/subscribe on top of global.WebSocket while reusing the shared protocol.ts + frame.ts exports from @axiom-labs/arc-client, since the SDK's ws import does not work in RN. Proper cross-runtime packaging of the SDK is a follow-up. - Token-based pairing: host + token entered in Settings, persisted via @react-native-async-storage/async-storage. QR pairing is intentionally deferred. - Root tsconfig.json: exclude packages/mobile/** so the Node-flavoured root tsc --noEmit does not try to typecheck RN code. The mobile package has its own tsconfig extending expo/tsconfig.base. Out of scope (follow-ups): voice, push, QR scanner, web export, expo prebuild, native folders, store submission. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 12 of the v3 daemon pivot — minimum-viable Expo (managed workflow) app under
packages/mobilewith three stubbed screens wired to the ARC daemon via@axiom-labs/arc-client.app/index.tsx) — callsclient.agents.list()on focus, shows empty/error/loading states and a "Pair with daemon" CTA.app/agent/[id].tsx) — shows id + status only; live output is a follow-up.app/settings.tsx) — host + token input, saves toAsyncStorage. QR pairing is intentionally deferred.src/arc-client-rn.ts) — the shared SDK imports the Nodewslibrary which is not available in RN; this shim re-implementsconnect / call / subscribe / attachTerminalonglobal.WebSocketwhile reusingprotocol.ts+frame.tsfrom the SDK. Proper cross-runtime SDK packaging is a Phase-4+ follow-up.packages/mobile/**so the Node-flavouredtsc --noEmitdoes not fight the RN type graph; the mobile package has its owntsconfig.jsonextendingexpo/tsconfig.base.Out of scope (deliberate): voice, push notifications, QR scanner, web export,
expo prebuild/ native folders, store submission.Test plan
pnpm install(workspace, including mobile deps)npx tsc --noEmit(root) — passespnpm --filter @axiom-labs/arc-mobile typecheck— passesCI=1 npx expo start --offlineboots Metro cleanly for >3s then terminates🤖 Generated with Claude Code