feat(vega): drive Vega OS TV hardware over a persistent vda shell
Draft
KR
5d ago+3416+3416+0123456789012345678901234567890123456789-319-319-012345678901234567890123456789
Summary
Adds Vega OS TV hardware in developer mode, such as a Fire TV running Vega OS, next to the Vega Virtual Device. Hardware connected over vda is listed, and both targets support snapshot, tap, fill, type and keyboard dismiss through the on-device Automation Toolkit. fill refuses with vega_fill_target_moved when the field at the point is not the one the selector resolved, as Android does. Device commands run over one persistent vda shell per device, so a screen read takes about 0.1 s instead of 1.2 s through vega device run-cmd. Without vda, commands fall back to run-cmd, and a diagnostic names the reason.
Before / after
agent-device devices --platform vega
# before: DEVICE_NOT_FOUND "Vega CLI found devices, but no supported Vega Virtual Device is running." (only TV hardware connected)
# after: Vega TV (SERIAL0000000001) (vega device target=tv) booted=true
agent-device snapshot --platform vega --serial VirtualDevice
# before: UNSUPPORTED_OPERATION
# after: the app's accessibility tree, siblings in screen order
agent-device fill @e3 "text" --platform vega --serial 192.168.0.10:5555
# before: UNSUPPORTED_OPERATION
# after: focuses that field, opens the system keyboard if needed, types
Validation
Tested at a1bf88ccc:
pnpm check:affected --run --head a1bf88ccc: every gate it ran passes exceptunit.unit:upload-http-deadline.test.tsfails the same way onmain(a4b31e34d) on this machine and touches no file this change does.- The gates after
unit, run directly: provider integrat doc prose, production exports, capability matrix, agentguidance. - A Fire TV running Vega OS and the Vega Virtual Device, end-to-end suite: listing,
snapshot,tap,fill,type,keyboard dismiss, remote navigation.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.