Publish leased devices to Argent through its device-provider contract

Aperta
#1,864 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by reading Argent's device-provider contract, especially contract.ts, read.ts, and write.ts, and inspect how Simlock grants and ends device leases and handles the agent-device capability. Use argent providers check --file <descriptor> to validate a descriptor. Done means an opt-in integration publishes the leased device with its supported capabilities and withdraws it when the lease ends or the device is reclaimed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

request:new
The problem

Argent (@swmansion/argent) has an external device-provider contract: a process that already runs a simulator or emulator writes a descriptor into ~/.argent/providers (schema version 1, managed with argent providers publish / withdraw / list / prune), and Argent then lists and drives that device. Simlock does not publish one, so a leased device is invisible to Argent until the operator configures each piece by hand:

  • iOS: the device lives in Simlock's own set, so the operator must add it with argent config set ios.additionalDeviceSets '["~/.simlock/devices/ios"]' before Argent can find the UDID.
  • Android: Simlock's emulators sit behind its own adb server (port 5038 by default), which Argent does not query unless its environment is changed.

Nothing ties Argent's view to a lease either: an agent can drive a device it does not hold, and Argent keeps showing a device after Simlock reclaims it.

Who runs into this

Operators who run several coding agents on one Mac, lease devices from Simlock, and drive them through Argent's MCP tools for UI QA (taps, screenshots, accessibility tree). Related: #639 and #1042 dealt with the Android gRPC side of the same setup.

What you would like to happen

When a lease is granted, Simlock publishes an Argent provider descriptor for that device (kind simulator/emulator, deviceSet for iOS, the adb endpoint for Android, the capabilities it actually offers), and withdraws it when the lease ends or the device is reclaimed. Opt-in through a capability, e.g. capabilities.argent.enabled, off by default, like agent-device.

Then an agent that leases a device sees exactly that device in Argent's list-devices, with no per-machine config, and loses it when the lease ends.

Anything else

The contract is in Argent's device-providers package (contract.ts / read.ts / write.ts); argent providers check --file <descriptor> validates a descriptor. Today we work around it with ios.additionalDeviceSets, which covers iOS discovery only and does not follow leases.

Lingua principale
TypeScript
Stelle
730
Fork
44
Merge medio
16h 13m
PR unite (30g)
387

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di callstackincubator/simlock

Tutte le issue di callstackincubator/simlock

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.