@rootnative/loupe 0.0.0-alpha.2 → 0.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,22 @@ All notable changes to `@rootnative/loupe` are in this file. The format follows
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.0.0-alpha.3] - 2026-11-28
8
+
9
+ The first step to iOS: on a Mac, `devices` lists the iOS simulators, and `device` takes one. loupe doesn't drive a simulator yet.
10
+
11
+ ### Added
12
+
13
+ - **`devices` lists the iOS simulators** on a Mac, after the Android devices: each simulator that Xcode can start, with `platform: "ios"`, `kind: "simulator"`, its `udid`, its `name`, and its runtime in `os` (for example `iOS 18.6`). A simulator that runs is `ready`, and the others are `stopped`. loupe doesn't drive a simulator yet. On a Mac with no Xcode, or with no Android SDK, `devices` gives the other list and a warning. On Linux and Windows it asks only the Android tools, as before.
14
+ - **`device` takes an iOS simulator** on a Mac: its UDID, or its name when one simulator with that name runs. With no `device`, loupe takes the only ready device of both platforms, and `device_ambiguous` lists the devices of both. Each command that works on a device gives `unsupported` on a simulator for now, and says how to choose an Android device. `ANDROID_SERIAL` still chooses the Android device.
15
+
16
+ ### Changed
17
+
18
+ - The table of `devices` has the columns `Id` and `OS` in place of `Serial` and `API`, and an Android device shows `API 34` there. The JSON of an Android device doesn't change.
19
+ - `CommandContext` has `hostPlatform`, the system of the machine. `createContext()` sets it. A context that you build by hand needs it.
20
+ - On a Mac where an iOS simulator runs and an Android device is ready, a command with no `device` now gives `device_ambiguous`. Give `device`, or set `ANDROID_SERIAL`.
21
+ - The package holds the test runner for the iOS simulator in `dist/ios-runner` (0.8 MB), built for Apple silicon and Intel Macs. No command starts it yet.
22
+
7
23
  ## [0.0.0-alpha.2] - 2026-11-25
8
24
 
9
25
  The Expo helpers: loupe warms, opens, and restarts your app in Expo Go, and switches it to RTL and back.
@@ -40,6 +56,7 @@ loupe drives an Android emulator or device, measures each screen of your app in
40
56
  - **The device:** `devices`, `open-url`, `rotate`, `theme`, `background`, `foreground`, and `dismiss`. `dismiss` closes a system sheet, a dialog, the keyboard, or an overlay of your app.
41
57
  - **The probe:** when your app renders `<LoupeProbe />` from `@rootnative/loupe-probe`, `insets` and the rules use the app's own safe area.
42
58
 
43
- [unreleased]: https://github.com/rootnative/loupe/compare/loupe@0.0.0-alpha.2...HEAD
59
+ [unreleased]: https://github.com/rootnative/loupe/compare/loupe@0.0.0-alpha.3...HEAD
60
+ [0.0.0-alpha.3]: https://github.com/rootnative/loupe/releases/tag/loupe@0.0.0-alpha.3
44
61
  [0.0.0-alpha.2]: https://github.com/rootnative/loupe/releases/tag/loupe@0.0.0-alpha.2
45
62
  [0.0.0-alpha.1]: https://github.com/rootnative/loupe/releases/tag/loupe@0.0.0-alpha.1
package/README.md CHANGED
@@ -140,7 +140,7 @@ Each finding gives the element and its numbers in dp.
140
140
 
141
141
  | Command | What it does |
142
142
  | --- | --- |
143
- | `devices` | List the Android emulators and devices, and the AVDs that don't run. |
143
+ | `devices` | List the Android emulators and devices, the AVDs that don't run, and on a Mac the iOS simulators. |
144
144
  | `open-url` | Open a link (a deep link or a web page), and wait until it opens. |
145
145
  | `check` | Check the screen for layout defects with the rules above. |
146
146
  | `sweep` | Open each link in each orientation and theme, check each screen, and write a report, the screenshots, and a contact sheet of each variant. |
package/dist/bin.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  registry,
7
7
  runCommand,
8
8
  version
9
- } from "./chunk-HWVQXYQ3.js";
9
+ } from "./chunk-7ALG5744.js";
10
10
 
11
11
  // src/cli/flags.ts
12
12
  import { parseArgs } from "util";
@@ -230,7 +230,7 @@ async function mcp(args, io, registry2, context) {
230
230
  io.err('Run "loupe mcp --help" for its use.');
231
231
  return EXIT_USAGE;
232
232
  }
233
- const { serveMcp } = await import("./server-567FSCAH.js");
233
+ const { serveMcp } = await import("./server-3J6ZMCJG.js");
234
234
  await serveMcp({
235
235
  registry: registry2,
236
236
  context,