You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose a device catalog so agents stop guessing model names #17
There is no way to ask Pitlane what it can lease. list.get supports only devices | leases | rules (src/daemon/server.ts:349), and the MCP server
exposes only lease/release.
So an agent must guess --device "iPhone 16" / device: "iPhone 16". A wrong
guess fails at resolveSpec with UnknownModelError or RuntimeMissingError (src/drivers/ios/index.ts:70), costing a full failed
round trip — directly against the "fast and token efficient" goal. The
information is already there: the iOS driver parses simctl list -j devicetypes runtimes, and the Android driver knows its AVD/system-image
inventory.
Proposed change
Add listCatalog() to the Driver interface (src/core/driver.ts):
resolvable device models plus installed runtimes / system images for that
platform, and which runtime is the default (newest installed).
Core aggregates across registered drivers and stays platform-agnostic.
pitlane catalog [--platform <ios|android>] [--json] — new CLI command,
documented in docs/CLI.md.
list_devices MCP tool returning the same structured data.
Keep the payload small: an agent should be able to call this once and pick a
valid spec without a second lookup. Do not include per-device-type metadata
that nobody needs to choose a lease target.
Notes
Read-only against the machine. No downloads, no side effects — this must not
become a path that implicitly installs a runtime (safety rule).
The iOS driver already caches its catalog parse; reuse it rather than
re-shelling on every call.
Acceptance criteria
pitlane catalog --json lists models and installed runtimes per
available platform, marking the default runtime.
list_devices returns the equivalent structured result over MCP.
A platform whose SDK is missing is omitted rather than erroring the whole
command (mirrors discoverDrivers in src/daemon/main.ts).
Driver tests cover catalog parsing via the scripted ProcessRunner for
both platforms.
Activity