Typed Client
Use createAgentDeviceClient() when you want to drive the daemon from application code instead of shelling out to the CLI.
Basic usage
Android installFromSource()
On Android, a successful installFromSource() response returns enough app identity to relaunch the installed app:
packageNamelaunchTarget
If the daemon cannot determine installed app identity, the request fails instead of returning an empty success payload.
URL source rules
installFromSource() URL sources are intentionally limited:
- Private and loopback hosts are blocked by default.
- Archive-backed URL installs are only supported for trusted artifact services, currently GitHub Actions and EAS.
- For other hosts, prefer
source: { kind: 'path', path: ... }so the client downloads/uploads the artifact explicitly.
Direct Android .apk and .aab URL sources can still resolve package identity from the downloaded install artifact.
