Publish leased devices to Argent through its device-provider contract
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- developer-experience, mobile-dev
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- TypeScript
- Stars
- 730
- Forks
- 44
- Avg merge
- 15h 28m
- Merged PRs (30d)
- 387
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from callstackincubator/simlock
-
bug:new
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
callstackincubator/simlock#2088 ·
Maintainers usually reply within 1 day
-
bug:new
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
callstackincubator/simlock#2080 · 1 comment ·
Maintainers usually reply within 1 day
-
task:ready
Difficulty 4/5 3-5 days Newbie friendliness 52/100
callstackincubator/simlock#2079 ·
Maintainers usually reply within 1 day
-
platform:ios task:ready
Difficulty 5/5 Over a week Newbie friendliness 18/100
callstackincubator/simlock#2078 ·
Maintainers usually reply within 1 day
-
iOS copy: keep the app database at the copy's own UDIDPossibly taken @V3RON claimed this today. Openplatform:ios task:ready
callstackincubator/simlock#2077 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in callstackincubator/simlock
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
melgarafael/DeskcommCRM#5614 · 1 comment ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 76/100
slackapi/slack-health-score#253 ·
Maintainers usually reply within 1 day
-
feature needs triage site
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
owid/owid-grapher#8019 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
simstudioai/sim#10710 ·
Maintainers usually reply within 1 day
-
via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day