Console: manage devices, the warm pool and settings from the console

Đang mở
#1,130 4 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
35/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ệ
json, typescript
Lĩnh vực
api, backend, frontend

Hướng nghiên cứu

Read ADR 0037, ADR 0017, ADR 0038, and docs/internal/IDEAS.md to understand the console's HTTP-only action model and the deferred design decisions. The issue identifies existing POST /v1/devices and DELETE /v1/devices/{id} routes, but items 3–5 need design decisions first; begin by clarifying which scope is approved. Done means implementing only the agreed console actions and verifying their behavior, including confirmation before irreversible actions and preventing deletion of leased devices.

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

An operator who runs a worker (or a fleet behind a gateway) has to leave the console for the CLI to manage the devices themselves. The console shows every device and can already act on leases, requests and workers (ADR 0037), but it cannot:

  • enrol a USB phone, or remove an enrolled one;
  • delete an idle simulator or emulator it no longer wants;
  • add a virtual device of a chosen model and OS, so it exists before the first agent asks for it;
  • warm a device up (boot it and keep it ready) or warm it down (shut it down), or choose which devices the warm pool keeps running;
  • change any setting. Warm-pool targets, idle timeouts, emulator flags, stream and agent-device options all live in config.json and change only through simlock config set or by editing the file. There is no settings page and no HTTP route to read or change config.
Who runs into this

A developer running one worker for their own coding agents, and an operator running a fleet. Both watch the console all day. When they want a different set of devices running (for example, "keep one Pixel 8 and one iPhone 17 warm for my agents, shut the rest down"), they have to switch to a terminal, find the right command or config key, and often restart the daemon for a warm-pool change to apply.

What you would like to happen

From the console, on a worker (and through the gateway for a fleet):

  1. Physical devices: enrol a connected phone and remove an enrolled one. The routes exist already (POST /v1/devices, DELETE /v1/devices/{id}).
  2. Delete an idle virtual device, behind a confirm, never one that is leased.
  3. Add a virtual device of a model and OS from the catalog.
  4. Warm up / warm down: boot a device and keep it ready, or shut it down; pick which devices or kinds the warm pool keeps running, without a restart.
  5. Settings: see the daemon's settings and change the ones that are safe to change at runtime.

Items 1 and 2 seem to fit the console's current rules (act only through HTTP routes, one action list per item, confirm what cannot be undone). Items 3 to 5 touch ideas the docs defer today (docs/internal/IDEAS.md: "changing targets without a restart", "fleet-level targets on a gateway") and need a design decision first.

Anything else
  • Related: ADR 0037 (the console acts through the HTTP routes), #769 (release, cancel, drain, undrain and remove from the console), ADR 0017 and ADR 0038 (warm pool).
  • Workaround today: simlock device add|remove, simlock config set warmPool.targets … plus a daemon restart, simlock cleanup / nuke.

Written by an agent.

Ngôn ngữ chính
TypeScript
Star
705
Fork
40
Merge trung bình
12 giờ 9 phút
Pull request đã merge (30 ngày)
376

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.