interaction library
Module A — interaction layer. One barrel export covering actions, targets, backends, the orchestrator, and the unified DeviceTarget entry point.
Classes
- Action
- ActionResult
- AdbBackend
-
Android emulator / device backend over
adb shell input. - AdbRecording
-
Records an Android device via
adb shell screenrecord, pulled to the local path on stop. - AndroidDevice
- AndroidServer
-
glint's resident
app_processserver on one Android device, reached over an adb-forwarded local socket. - AppDeviceLink
- The device an app runs on, recovered from a VM service port, plus iOS bundle identity from Info.plist.
- AppLauncher
-
Boots devices and starts/stops Flutter apps so
attachcan recover from cold. - AppProcessProbe
- Finds out whether an app's process still runs and why it ended, from the host's side of the device.
- AppProcessVerdict
- What is known about an app's process after its VM connection dropped.
- AttachHistory
- Persistent, most-recent-first AttachRecord store; all disk access is best-effort.
- AttachRecord
-
A remembered app↔device↔project attach, persisted locally so
attachcan relaunch from cold. - Avds
- The Android virtual devices on this host: which exist, which one runs where, and booting one from glint's own process.
- BackendCapabilities
- BootedDevice
- A simulator / emulator that is currently booted and drivable.
- BridgeLocation
- ClearField
- Select all in the focused field, then backspace — the platform-native way to empty it.
- CoordinateTarget
- Physical-pixel point on the device. Escape hatch when the target isn't in the render tree (custom canvas, native overlay) — also used internally by direction-based scroll tools.
- DeviceAbilities
- What one device cannot do, declared once so attach lists it and every tool refuses it with the same words.
- DeviceClaim
- Another glint process driving a device.
- DeviceClaims
-
One claim file per device under
~/.glint/claims, so parallel agents never share a device by accident. - DeviceDiscovery
-
Finds running Flutter apps + booted devices so
attachcan auto-fill omitted args. Pure host inspection:psfor VM URIs,xcrun simctlfor iOS sims,adb devicesfor Android. - DeviceHid
- glint's resident Device Hub helper for one physical iPhone: real touch, keyboard and button input over the CoreDevice tunnel.
- DeviceTarget
- One device glint can drive; hides the AdbBackend / IosSimBackend choice and the per-platform coordinate math.
- DiscoveryResult
-
Running Flutter VM URIs + booted devices. Uncorrelated by design — a 127.0.0.1 URI carries no device identity;
attachpairs them later. - DoubleTap
- EmulatorTouches
-
Real touches through an Android emulator's own virtual touchscreen, which Android's
show_touchesdraws everywhere: in the app, over permission dialogs and the shade, and in screen recordings. - FlutterInput
- Input delivered inside the app by glint's agent: pointer events into GestureBinding, edits into the focused EditableText.
- FlutterInputBackend
- Delivers input inside the Flutter app when it can (exact, fast), and hands everything else to native: system surfaces, the keyboard, native views, buttons.
- InstalledAppLauncher
- Opens an already-installed debug build and finds its Dart VM service, with no rebuild and no flutter_tools.
- InteractionBackend
- Platform-native input layer. Speaks physical pixels; the Interactor resolves symbolic targets before calling here.
- Interactor
- Resolves symbolic targets, gates hittable, dispatches to the backend, and wraps everything in an ActionResult.
- IosDevice
- A paired physical iPhone: input inside the Flutter app where it can, real touches through Device Hub for everything else, screenshots through devicectl.
- IosDeviceBackend
-
A paired physical iPhone driven like a hand would: real touches, keys and buttons through Xcode's Device Hub service, screenshots through
devicectl. - IosSimBackend
-
iOS Simulator backend over the
glint-iossimSwift helper (native/ios_sim_bridge/), which speaks LOGICAL device points — so we undo the physical→logical conversion here. - IosSimulator
- IosToolchain
- What glint knows about the iOS toolchain at attach: Xcode, the bridge, and whether bridge actions may run.
- LocalNetworkPromptWatcher
- Watches a phone while a debug build launches and answers the local network prompt it raises, without which the VM service cannot be found.
- LongPress
- NativeCrash
- One native crash of the app, summarized: what killed it and the top of the crashing thread.
- PressHardwareButton
- PressKey
- PruneItem
- One file or directory the prune removes, or would.
- PruneReport
- What a prune removed, or would remove on a dry run.
- RunningApp
- One running Flutter app, correlated to its device and identity as far as the host can tell without connecting to the VM.
- ScreenRecording
- A running display recording; stop finalises it and returns the local video path.
- ScreenshotResult
- Outcome of InteractionBackend.screenshot: saved path + pixel size, or error on failure.
- ShowTouchesSetting
-
Android's
show_touchesdeveloper setting on one device, switched on for glint and put back as it was; the old value waits in~/.glint/touchesso even a crashed glint restores it at the next attach. - SimControl
-
Status + lightweight control of an iOS simulator over
xcrun simctl. Heavier control (location, push, status-bar) is roadmapped. - SimctlRecording
-
Records an iOS simulator display via
xcrun simctl io <udid> recordVideo. - SimStatus
- Read-only snapshot of a booted iOS simulator's state.
- Swipe
- SymbolicTarget
- Tap
- Target
- TestedSetup
- One device setup glint has driven end to end, with what proves it.
- TouchLog
- The touches glint sent on one device, oldest first, for drawing onto recordings; keeps the last capacity.
- TypeText
- XcodeInfo
- XcTestBackend
- iOS input through glint's XCUITest runner; screenshots, recording and lock stay on the bridge (sim).
- XcTestRunner
- Builds, starts and drives glint's XCUITest runner on one simulator.
Enums
- Ability
- A tool capability that depends on the kind of device, named as attach lists it.
- BridgeSource
- Where each bridge came from, in lookup order.
- DeviceHidFailure
- Why the Device Hub helper failed, as the helper names it.
- DevicePlatform
- FlutterInputMiss
- Why Flutter could not take an input itself; the caller hands it to the platform instead.
- GlintErrorKind
- Closed set of failure modes — interaction, perception, MCP all use this.
- HardwareButton
- Each backend declares its supported subset via BackendCapabilities.
- HelperLife
- How long a helper outlives the thing that asked for it.
- InputPath
- Which path delivered one input: inside the Flutter app, or a real OS-level touch.
- InputRoute
- Where a session sends input: inside the Flutter app first with real touches for the rest, real touches only, or the app only.
- InstalledLaunchFailure
- What stopped an installed app from opening with a reachable VM service.
- KeyModifier
- A modifier held down around a key press.
- KeyName
- A non-printing key the keyboard can send; each backend maps it to its own code.
- OnRunning
- What to do when a helper for the same purpose and device is already running.
- ProcessLife
- What a lookup found: positive evidence for each answer, unknown when the lookup itself failed or timed out.
- ScreenEdge
- A screen edge a system gesture starts from.
- SetupStatus
- How far glint has proven one device setup.
Extensions
- AndroidKeyCode on HardwareButton
-
Android KEYCODE_* values for glint's HardwareButton.
unlockis null — no stock biometric-match equivalent and per-OEM lock-screen behaviour; surfaced as UnsupportedBackendAction until v1. - InputReportOut on InputReport
Constants
- allowUntestedXcodeEnv → const String
- Env var that lets bridge actions run on an Xcode major outside testedXcodeMajors.
- androidServerAssetName → const String
- The release asset name of glint's Android input server.
- androidServerEnv → const String
- Env var naming a server dex to use instead of the one glint finds.
- bridgeAssetName → const String
- The release asset name of the universal macOS bridge.
- bridgePathEnv → const String
- Env var naming a bridge binary to use instead of the one glint finds.
- deviceHidAssetName → const String
- The release asset name of the universal macOS helper.
- deviceHidBuildDir → const String
- deviceHidEnv → const String
- Env var naming a helper binary to use instead of the one glint finds.
- emulatorCameraStarvedWarning → const String
- What an agent tells the user when emulatorCameraStarved is true.
- expectedAndroidServerProtocol → const int
-
Must equal
PROTOCOLin native/android_server/src/dev/glint/server/Server.java. - expectedBridgeProtocol → const int
-
Must equal
bridgeProtocolin native/ios_sim_bridge/Sources/glint-iossim/main.swift. - expectedDeviceHidProtocol → const int
-
Must equal
PROTOCOLin native/ios_device_hid/src/main.rs. - expectedRunnerProtocol → const int
-
Must equal
runnerProtocolin native/ios_xctest_runner/UITests/Router.swift. - iphoneAbilities → const DeviceAbilities
- A paired physical iPhone: what glint cannot reach on it yet.
- kAndroidServerDex → const String
-
The server's dex relative to glint's package root, as
native/android_server/build.shwrites it. - kDefaultBridgePath → const String
- The glint-iossim bridge path relative to glint's package root.
- kDefaultProcessTimeout → const Duration
- The cap for a child process whose site names none.
- kDeviceHidBuild → const String
- The helper's release build relative to glint's package root.
- kOcrSource → const String
- The OCR helper's Swift source relative to glint's package root.
- kPruneEvery → const Duration
- Seconds between automatic prunes.
- kPruneGrace → const Duration
- How long a helper must sit unused before another glint version's copy may be pruned.
- kReleaseBridgePath → const String
- The release build of the bridge, relative to glint's package root.
- kRunnerProject → const String
- The runner's Xcode project relative to glint's package root.
- noBridgeDownloadEnv → const String
- Env var that stops glint fetching the prebuilt bridge.
-
testedSetups
→ const List<
TestedSetup> - Every setup glint has been run on; update it when CI or a live run proves or breaks one.
-
testedXcodeMajors
→ const Set<
int> - Xcode majors the bridge's private CoreSimulator and IndigoHID calls are verified on.
Functions
-
androidCrashes(
{required String serial, required String adbPath, required String package, required DateTime since, ProcessRunner run = boundedRun}) → Future< List< NativeCrash> > -
Crashes of
packagein the device's crash log buffer sincesince, newest first. -
androidMetaState(
Set< KeyModifier> modifiers) → int -
KeyEvent meta state for
modifiers, with the left-hand flag each key event carries. -
answerPhonePrompt(
DeviceHid hid, String udid, {required RegExp question, required String button}) → Future< String?> -
Answers a system prompt glint's own action raised on a phone: reads the screen with OCR and taps
buttonwhenquestionis up; the question it answered, or null. -
appBusyDetail(
Duration timeout) → String -
The
detailof an GlintErrorKind.appBusy reply for a VM that gave no answer withintimeout. -
appBusyNextSteps(
{bool maybeQueued = false}) → List< String> -
Next steps for GlintErrorKind.appBusy;
maybeQueuedadds that an input sent earlier may still land. -
boundedRun(
String executable, List< String> arguments) → Future<ProcessResult> - runBounded with the default cap, shaped as a ProcessRunner so it can stand in for Process.run.
-
bridgeHandshake(
String path, {ProcessRunner run = boundedRun}) → Future< ({String? error, int? protocol})> -
Asks the bridge for its protocol number; null with
errorwhen it cannot say. -
bridgeReleaseUri(
[String version = glintVersion]) → Uri - The bridge asset attached to this version's GitHub Release.
-
buildAndroidServerDex(
String dest, {String? adbPath, Map< String, String> ? env}) → Future<String> -
Builds the server dex from glint's own sources into
dest(javac against the newest android.jar, then d8), asnative/android_server/build.shdoes, for a glint version whose release carries no prebuilt one. -
builtInWebcam(
List< Webcam> cams) → Webcam? -
The Mac's own camera from
cams: a built-in FaceTime camera first, never a Continuity Camera phone or Desk View when anything else exists. -
cachedAndroidServerPath(
{Map< String, String> ? env}) → String -
Where the downloaded server for this glint version lives, under
~/.glint/bin. -
cachedBridgePath(
{Map< String, String> ? env}) → String -
The downloaded bridge for this glint version, under
~/.glint/bin. -
cachedDeviceHidPath(
{Map< String, String> ? env}) → String -
Where the downloaded helper for this glint version lives, under
~/.glint/bin. -
checkAfterResume(
int pid, {Duration within = const Duration(seconds: 3)}) → Future< ProcessCheck> -
pid's check once it is no longer stopped, polled for up towithin; the stopped check when it stays so. -
checkIosToolchain(
String? explicitBridge, {Map< String, String> ? env, ProcessRunner run = boundedRun, BytesFetcher? fetch, void onPhase(String phase)?}) → Future<IosToolchain> - Locates (downloading when missing) and handshakes the bridge, and reads Xcode.
-
checkProcess(
int pid) → Future< ProcessCheck> -
Looks
pidup withps: stopped on stateT, gone only whenpssays there is no such process, unknown whenpsfails. -
collapseSameApp(
List< RunningApp> apps) → List<RunningApp> - Drops later entries for the same bundle on the same device: one app can surface under two URIs (its DDS and the raw VM, or a helper process quoting it).
-
composeSideBySide(
List< String> srcs, String dst, {required int height, int gap = 16, Future<ProcessResult> run(String, List<String> ) = boundedRun}) → Future<String?> -
srcsscaled toheightand laid side by side with a white gap, as one PNG atdst; null when no tool could. -
consume<
T> (Stream< T> stream, void onData(T)) → Future<void> -
Feeds
streamtoonDataand completes when it ends, so output can be read after the process exited without losing its tail. -
cropImage(
String src, {required int x, required int y, required int w, required int h, Future< ProcessResult> run(String, List<String> ) = boundedRun}) → Future<String?> -
Crops
srcto the pixel rectx,y,w,hinto a new PNG, null when no tool could; sips ignores a crop that ends on the bottom edge, so that one stops a row short. -
describeCommand(
String executable, List< String> arguments) → String - A short readable name for a command line: the tool and its first arguments.
-
describeSetup(
DeviceSetup setup) → ({Map< String, Object?> json, String line, List<String> warnings}) - One line for the attach reply, plus warnings for anything short of verified.
-
detectXcode(
{ProcessRunner run = boundedRun}) → Future< XcodeInfo> -
Reads the selected Xcode's version from
xcode-select -pand its Info.plist. -
downloadBridge(
String dest, {BytesFetcher? fetch, void onPhase(String phase)?}) → Future< void> -
Downloads the release bridge to
dest, checks it against the published sha256, and marks it executable. -
downloadReleaseAsset(
String asset, String dest, {bool executable = false, BytesFetcher? fetch}) → Future< void> -
Downloads release asset
assettodestand checks it against its published sha256;executablemarks it runnable. -
dragPath(
int x1, int y1, int x2, int y2, {required int durationMs, int holdMs = 0, int frameMs = 16}) → List< TouchPoint> -
A straight drag from (
x1,y1) to (x2,y2) overdurationMsin frame-sized steps, then resting at the end forholdMsso the lift starts no fling. -
emulatorCameraStarved(
String adbPath, String serial, {Duration within = const Duration(seconds: 20)}) → Future< bool> -
True when the emulator behind
serialkeeps logging that its camera got no frame: at least three times inwithin, the last in the past 6 s. macOS has not let it use the Mac's camera; one or two at camera start are a warm-up. -
ensureDeviceHid(
{BytesFetcher? fetch}) → Future< String> -
The helper's path, downloading this version's release asset when no copy exists; throws DeviceHidError kind
missing. -
flutterAppProblem(
String dir) → String? -
Why
diris not a Flutter appflutter runcan start, or null when it is. -
flutterRunsOn(
String deviceId, {Set< int> except = const {}}) → Future<List< ({String dir, int pid})> > -
Other
flutter runprocesses debuggingdeviceId, with their project folders; a phone runs one Xcode debug session at a time. -
installedXcodeVersions(
) → Future< Set< String> > -
The versions of every Xcode on this Mac: the selected one and each
Xcode*.appin the Applications folders. -
iosCrashes(
{required String bundleId, required DateTime since, String? dir}) → List< NativeCrash> -
Crash reports the simulator wrote to the host for
bundleIdsincesince, newest first. -
isPhysicalIosUdid(
String id) → bool -
A physical iPhone's UDID (
00008130-000C59A60261001C), as opposed to a simulator's 36-character one. -
judgeSetup(
DeviceSetup setup, {List< TestedSetup> known = testedSetups}) → ({TestedSetup? closest, TestedSetup? match, SetupStatus status}) -
How
setupcompares with testedSetups: its status, the matching entry, and the closest proven one when it has none. -
killProcessTree(
Process process) → Future< void> -
Stops
processand everything below it: polite first, forceful after two seconds, and no signal once it is gone. -
listWebcams(
String emulatorPath) → Future< List< Webcam> > -
The Mac cameras the emulator at
emulatorPathsees. -
localTeams(
{ProcessRunner run = boundedRun}) → Future< List< String> > - The team ids of the Apple Development certificates in this Mac's keychain.
-
locateAndroidServerDex(
{Map< String, String> ? env, String? scriptPath}) → String? - The server dex: androidServerEnv, then a build inside glint's package, then the download cache; null when none exists.
-
locateAndroidServerSources(
{String? scriptPath}) → Directory? - The server's Java sources inside glint's package, found by walking up from the running script; null when this install has none.
-
locateDeviceHid(
{Map< String, String> ? env, String? scriptPath}) → String? - The helper: deviceHidEnv, then a build inside glint's package, then the download cache; null when none exists.
-
locateIosBridge(
String? explicit, {Map< String, String> ? env, String? scriptPath}) → BridgeLocation - Finds the bridge: explicit arg, then bridgePathEnv, then a build inside glint's package (newest of release and debug), then the download cache; BridgeSource.missing points at the cache path.
-
locateRunnerProject(
{String? scriptPath}) → String? - The runner's Xcode project shipped with glint, or null.
-
looksLikeAppId(
String value) → bool -
True when
valueis a reverse-DNS app id (bundle id or package), not a folder path. -
markHelperUsed(
String path) → String -
Notes that
pathwas just used, so a prune from another glint version leaves it alone; throttled to once an hour per path. -
modelImageSize(
int width, int height, int maxSize) → ({int height, int width}) -
Target pixel size when the longest side is capped at
maxSize(0 = no cap); never upscales. -
parseAndroidCrashes(
String logcat, {required String package}) → List< NativeCrash> -
Java exceptions (
FATAL EXCEPTION) and native crashes (>>> package <<<tombstones) ofpackageinlogcat -v yearoutput. -
parseConnectedIPhones(
String json) → List< BootedDevice> -
The paired, connected physical iOS devices in a
devicectl list devices -jfile. -
parseIpsCrash(
String ips, {required String bundleId, String? path}) → NativeCrash? -
The crash in one
.ipsreport when it belongs tobundleId, else null. -
phoneAppPids(
String udid, String bundleId) → Future< List< int> > -
The pids of
bundleId's main process on the phoneudid(extensions excluded); empty when it is not running. -
phoneCrashes(
{required String udid, required String bundleId, required DateTime since}) → Future< List< NativeCrash> > -
Crash reports a physical iPhone holds for
bundleIdsincesince, newest first, fetched with devicectl. -
phoneHid(
InteractionBackend backend) → DeviceHid? -
The Device Hub helper behind
backend, when it drives a physical iPhone. -
phoneOpenUrl(
String udid, String url) → Future< String?> -
Opens
urlon the phoneudidthe way a tap on a link would; null on success, else why not. -
phoneStatus(
String udid) → Future< Map< String, Object?> ?> -
What
devicectlreports about a paired iPhone: name, model, iOS, connection, developer readiness and passcode state; null when the phone does not answer. -
phoneTerminate(
String udid, String bundleId) → Future< String?> -
Stops
bundleIdon the phoneudid; null when it stopped or was not running, else why not. -
phoneTransport(
String udid) → Future< String?> -
How the iPhone reaches this Mac (
wiredorlocalNetwork), fromdevicectl; null when it does not answer. -
pickSigningTeam(
String projectDir, String udid, {String? requested, ProcessRunner run = boundedRun}) → Future< SigningChoice> -
Picks the team to sign
projectDirfor phoneudid:requested, the project's own team, the one remembered here, the only one, or the one already provisioned for this app; throws SigningUndecided otherwise. -
pointText(
double v) → String - A coordinate for a reply: whole numbers bare, fractions to one decimal.
-
portOwners(
int port) → Future< PortOwners> -
The processes listening on TCP
port;lsofexits 1 with no output when nobody does. -
prepareModelImage(
String src, {required int width, required int height, required int maxSize, required String format, required int quality, Future< ProcessResult> run(String, List<String> ) = boundedRun}) → Future<ModelImage> -
Shrinks and re-encodes
srcfor the model (sipson macOS, ImageMagick elsewhere); returns the original PNG when no resizer is available or none is needed. -
processCommand(
int pid) → Future< String?> -
The command line of process
pid, or null when it is gone or cannot be read. -
projectBundleId(
String projectDir) → String? - The project's bundle identifier, if the Runner target names one.
-
projectTeam(
String projectDir) → String? -
The
DEVELOPMENT_TEAMthe project's Runner target names, if any. -
pruneCaches(
{bool dryRun = false, bool force = false, String? home, String? version}) → Future< PruneReport> -
Removes helper binaries of other glint versions from
~/.glint/bin, runner builds of Xcode versions that are gone and runner builds beyond the newest three from~/.glint/xctest, at most once a day unlessforce; nothing a live process runs, or any helper or build used in the last kPruneGrace, is touched. -
quoteForDeviceShell(
String arg) → String -
adb joins shell arguments into one command line for the device's
sh, so text is single-quoted to arrive as one literal argument. -
readAndroidSetup(
String serial, String adbPath, {String transport = 'adb', ProcessRunner run = boundedRun}) → Future< DeviceSetup> -
Android API level of
serial. -
readIosDeviceSetup(
String? osVersion, {ProcessRunner run = boundedRun}) → Future< DeviceSetup> -
The setup of a paired physical iPhone on
osVersion(e.g. "iOS 27.0"), judged on its owndevicebackend. -
readIosSetup(
String udid, int? xcodeMajor, {String transport = 'indigo', ProcessRunner run = boundedRun}) → Future< DeviceSetup> -
iOS runtime of simulator
udidand the Mac's macOS major;transportis the bridge's input path. -
readIosTransport(
String bridgePath, String udid, String mode, {ProcessRunner run = boundedRun}) → Future< ({String? error, String? fallback, String? transport})> -
The input transport glint-iossim opens for
udidundermode;fallbacksays whyautosettled for indigo. -
readText(
String image) → Future< List< OcrLine> > -
Text on
imageread with macOS Vision, through a small helper compiled from kOcrSource on first use and cached by source hash. -
releaseAssetUri(
String asset, [String version = glintVersion]) → Uri - An asset attached to this version's GitHub Release.
-
rememberedTeam(
) → String? - The team glint signed with last time on this Mac, if any.
-
rememberTeam(
String team) → void -
Remembers
teamfor the next phone build that needs one. -
resolveAdbPath(
String? explicit, [Map< String, String> ? env]) → String? -
Where
adblives:explicitfirst, then PATH, then the usual SDK homes (ANDROID_HOME,ANDROID_SDK_ROOT,~/Library/Android/sdk,~/Android/Sdk). Null when none exists — callers say so instead of reporting "no android device". -
resolveIosBridgePath(
String? explicit) → String - The bridge path locateIosBridge picks.
-
runBounded(
String executable, List< String> arguments, {Duration timeout = kDefaultProcessTimeout, String? phase, Map<String, String> ? environment, String? workingDirectory, Encoding? stdoutEncoding = systemEncoding, Encoding? stderrEncoding = systemEncoding, List<String> hints = const []}) → Future<ProcessResult> -
Runs a child process with a hard cap: on timeout the process and its direct children are killed and a ProcessTimeoutError names the command and
phase. Same result as Process.run, plus the phase shows in heartbeats and the call's timeout reply. -
runCapped(
ProcessRunner run, String executable, List< String> arguments, {required Duration timeout, String? phase}) → Future<ProcessResult> -
Runs through the injected
run, giving the default boundedRun this call's owntimeoutandphase. -
screensDiffer(
String a, String b, {Future< ProcessResult> run(String, List<String> ) = boundedRun}) → Future<bool?> - Whether two screenshots show a different screen, judged on 32x64 thumbnails with the status bar left out; null when they cannot be compared.
-
settleOutput(
Iterable< Future< streams) → Future<void> >void> -
Waits briefly for
streamsstarted with consume to end. -
splitLiteralPercentS(
String text) → List< String> -
input textturns%sinto a space, so text is split between%andsto keep a literal%s. -
startHelper(
String purpose, String executable, List< String> arguments, {String? device, String? owner, HelperLife life = HelperLife.session, OnRunning onRunning = OnRunning.replace, String? label, Map<String, String> ? environment, String? workingDirectory}) → Future<Process> -
Starts the long-lived helper for
purposeondevicethrough the process registry: one per purpose and device, stopped with itslife, reaped by a later glint if this one dies. Like startManaged, an abandoned call stops it until CallProgress.release hands it over. -
startManaged(
String executable, List< String> arguments, {String? label, Map<String, String> ? environment, String? workingDirectory}) → Future<Process> - Starts a child that belongs to the current tool call: it is stopped if the call is abandoned, and forgotten once it exits. Call CallProgress.release to hand it over to outlive the call.
-
tapEachInTurn(
InteractionBackend backend, List< ({int x, int y})> points, int intervalMs) → Future<void> - InteractionBackend.tapSequence as one tap call per point, for backends with no batched form.
-
teamsWithProfile(
String udid, String bundleId, {ProcessRunner run = boundedRun}) → Future< List< String> > -
Teams with an unexpired provisioning profile for
bundleIdthat lists the phoneudid. -
vmProcesses(
int port) → Future< VmProcesses> -
Finds the processes behind the VM service at
portand checks both; owner and app are null when they cannot be resolved to exactly one process.
Typedefs
- AbilityGap = ({String? instead, String reason})
- Why a device lacks an ability, and what to do instead.
-
BytesFetcher
= Future<
List< Function(Uri uri)int> > - Fetches one URL's body; injected so tests run offline.
- DeviceSetup = ({String backend, int? hostMajor, String platform, String? runtime, int? runtimeMajor, int? xcodeMajor})
- The setup in front of glint at attach; null fields could not be read.
- InputReport = ({int ms, InputPath path, FlutterInputMiss? reason})
- How one input was delivered, and why it left the app path when it did.
- ModelImage = ({int height, String mimeType, String path, int width})
- An image prepared for the model: its file, pixel size and media type.
- OcrLine = ({double h, String text, double w, double x, double y})
- One line of text found on a screenshot, with its box in image pixels.
-
PortOwners
= ({bool known, List<
int> pids}) -
Who listens on a TCP port:
knownis false whenlsoffailed, so an emptypidsthen means nothing. - ProcessCheck = ({ProcessLife life, String? state})
-
One process check: its
lifeand thepsstate letters when it exists. -
ProcessRunner
= Future<
ProcessResult> Function(String executable, List<String> arguments) - Runs one child process; injected so tests can capture argv without a device. Defaults to Process.run.
-
RunnerHttp
= Future<
(int, Map< Function(String method, Uri uri, Map<String, Object?> )>String, Object?> ? body, Duration timeout) - Sends one request to the runner and returns its status code and decoded JSON body.
-
SigningChoice
= ({List<
String> others, String team, String why}) - The team glint signs a phone build with, and why it chose it.
- TouchPoint = ({int ms, int x, int y})
- One sample of a touch: physical pixels, and ms after the touch began.
-
TouchRecord
= ({DateTime at, List<
List< fingers})TouchPoint> > - One touch glint sent: when its fingers went down, and each finger's path in device pixels.
- VmProcesses = ({int? app, ProcessCheck? appCheck, String? appCommand, int? owner, ProcessCheck? ownerCheck, String? ownerCommand, int? stoppedPeer, String? stoppedPeerCommand, String? stoppedPeerState})
-
The processes behind a VM service port:
ownerlistens on it (the app, or theflutter run/ DDS process in front of it) andappis the simulator app process, when exactly one is found. - Webcam = ({String id, String name})
-
A Mac camera the Android emulator can pass through, as
-webcam-listnames it.
Exceptions / Errors
- AndroidServerError
- Raised when the server cannot be started or stops answering.
- AvdBootError
- Booting an AVD failed; detail holds the emulator's last log lines when it left any, errorKind and nextSteps replace the generic ones when set.
- BackendFailure
- A failure the agent can branch on: kind says what to do, data carries the numbers (how much landed, which teams).
- BackendToolError
- BridgeDownloadError
- DeviceHidError
- A failure of the Device Hub helper.
- InstalledLaunchError
- Raised when an installed app can't be opened; failure says why, detail carries the tool output.
- IosToolchainBlocked
- Bridge actions refused because the bridge is missing or Xcode is untested.
- LaunchError
-
Raised when a launch can't complete; logTail holds the last
flutter runlines. - NotHittableRefused
- OcrError
- Raised when the helper cannot be built or run.
- OffViewportRefused
- ProcessTimeoutError
- A child process ran past its cap and was killed.
- SigningUndecided
- Raised when several teams could sign and nothing says which.
- UnresolvedTarget
- UnsupportedBackendAction
- XcTestRunnerError
- Raised when the runner cannot be built, started or reached; nextSteps say what to do.