Skip to content

sleep2agi/agent-network-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

39 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Agent Network App

πŸ“± Minimal native mobile client for Agent Network / CommHub β€” Android first, iOS from the same codebase.

Built with Expo (React Native, TypeScript). Design language follows the dashboard's less-is-more overhaul: near-black surfaces, restrained color, green/red/amber/gray status triad, cyan accent.

Agents Chat Messages
agents chat messages

Features (v0.1.7)

  • Login β€” server URL + username/password (POST /api/auth/login β†’ user token); friendly errors for empty/non-JSON responses; session persists in the platform keystore (expo-secure-store)
  • Agents β€” live fleet list: status dot, current-task one-liner, pull-to-refresh, 10s polling; working sessions sort to the top; search box appears beyond 10 agents
  • Chat β€” tap an agent card to chat; inverted list opens at the newest 20 and lazy-loads older history at the visual top; timestamps; send via POST /api/send_task with draft restore on failure
  • Messages β€” network-wide feed: from β†’ to routes, type dots (task/reply/broadcast), HIGH priority chips, timestamps, same lazy window
  • Branding β€” cyan hub-and-spokes launcher icon (adaptive + monochrome for Material You)

Server

The app talks directly to a CommHub instance. Use an HTTPS endpoint (release builds block cleartext HTTP by default; the current build carries a temporary cleartext exemption via expo-build-properties that will be removed once HTTPS is everywhere).

ζœεŠ‘ε™¨εœ°ε€  https://your-hub.example.com   (no port needed behind a reverse proxy)
η”¨ζˆ·ε/密码  your hub credentials

API surface used: POST /api/auth/login, GET /api/status, GET /api/tasks?to_name&limit, GET /api/messages?limit, POST /api/send_task β€” all Bearer-token authed.

Development

npm install
npx expo start        # Expo Go / dev client
npx tsc --noEmit      # typecheck

Visual verification without a device

react-native-web export + playwright renders the same components at a phone viewport, proxying API calls to a live hub (sidesteps CORS, swaps auth):

npx expo export --platform web
# serve dist/ and screenshot at 390Γ—844 β€” see docs/screens/

Android release build (local, no EAS)

Requires JDK 17 and the Android SDK (API 35); a userspace install works:

export JAVA_HOME=~/android-tools/jdk-17.0.19+10
export ANDROID_HOME=~/android-tools/sdk
npx expo prebuild --platform android --no-install
cd android && ./gradlew assembleRelease -PreactNativeArchitectures=arm64-v8a
# β†’ android/app/build/outputs/apk/release/app-release.apk  (~26MB arm64)

Expo signs release builds with the debug keystore by default β€” fine for direct-install test distribution, replace before store submission.

Roadmap

  • iOS build (needs macOS/EAS)
  • Proper application id (currently com.anonymous.agentnetworkapp; migrating means a fresh install β€” held until distribution widens)
  • Tighten the cleartext exemption once all endpoints are HTTPS
  • "Join network" onboarding for non-admin users (hub scopes data by network membership)

Tracking

Progress is reported round-by-round on sleep2agi/agent-network#220.

About

πŸ“± Agent Network mobile app (Expo / React Native) β€” minimal native client for CommHub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors