Publish leased devices to Argent through its device-provider contract

Đang mở
#1,864 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
730
Fork
44
Merge trung bình
16 giờ 13 phút
Pull request đã merge (30 ngày)
387

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của callstackincubator/simlock

Tất cả issue của callstackincubator/simlock

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.