feat(maestro): add Android REST and WebSocket API clients
MaestroClient covers the daemon's REST surface: sessions CRUD, rename, kill (with force), focus reporting, dirs/recent-dirs/projects/gitroot/ names/branches lookups, and the structured-session endpoints (prompt, attachment upload, cancel, config, approval). MaestroWebSocket covers all three WS connections — /api/events (catalog deltas), /api/attach/:id (binary PTY frames both directions plus ClientControl text frames for resize/ping), and /api/structured/:id (transcript/state projections) — each exposing a Flow of decoded events behind a connection handle. Adds kotlinx-coroutines-android explicitly rather than relying on it being pulled in transitively via lifecycle-runtime-ktx. Compiled and exercised standalone against the same library versions (no Android SDK available in this environment to run the app module itself) to verify wire-format handling before landing.
This commit is contained in:
@@ -8,6 +8,7 @@ composeBom = "2024.09.03"
|
||||
navigationCompose = "2.8.2"
|
||||
okhttp = "4.12.0"
|
||||
kotlinxSerializationJson = "1.7.3"
|
||||
kotlinxCoroutines = "1.9.0"
|
||||
|
||||
[libraries]
|
||||
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
||||
@@ -24,6 +25,7 @@ androidx-material3 = { group = "androidx.compose.material3", name = "material3"
|
||||
androidx-navigation-compose = { group = "androidx.navigation", name = "navigation-compose", version.ref = "navigationCompose" }
|
||||
okhttp = { group = "com.squareup.okhttp3", name = "okhttp", version.ref = "okhttp" }
|
||||
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinxSerializationJson" }
|
||||
kotlinx-coroutines-android = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "kotlinxCoroutines" }
|
||||
junit = { group = "junit", name = "junit", version = "4.13.2" }
|
||||
androidx-test-ext-junit = { group = "androidx.test.ext", name = "junit", version = "1.2.1" }
|
||||
androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version = "3.6.1" }
|
||||
|
||||
Reference in New Issue
Block a user