agentic-mobile-kit 0.7.0 → 0.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-mobile-kit",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "One setup for AI-assisted development of React Native apps, bare or Expo: shared rules and workflows for Claude Code, Codex and Antigravity, git hooks, device checks with screenshots, and release tooling for the App Store and Google Play.",
5
5
  "license": "MIT",
6
6
  "author": "prakashpro1",
@@ -119,12 +119,17 @@ ios() {
119
119
  device=$(xcrun simctl list devices available -j | node -e '
120
120
  const all = Object.entries(JSON.parse(require("fs").readFileSync(0, "utf8")).devices)
121
121
  .flatMap(([rt, ds]) => ds.map(d => ({ ...d, v: (rt.match(/iOS-(\d+)-(\d+)/) || []).slice(1).map(Number) })))
122
- .filter(d => d.v.length && /iPhone/.test(d.name));
122
+ .filter(d => d.v.length);
123
123
  const want = process.env.AMK_IOS_DEVICE;
124
+ // an iPhone by its device type: a simulator can have any name, such as a separate one kept for tests
125
+ const iphones = all.filter(d => /iPhone/.test(d.deviceTypeIdentifier || d.name));
124
126
  const pick = want ? all.find(d => d.udid === want || d.name === want)
125
- : all.find(d => d.state === "Booted") || all.sort((a, b) => b.v[0] - a.v[0] || b.v[1] - a.v[1])[0];
127
+ : iphones.find(d => d.state === "Booted") || iphones.sort((a, b) => b.v[0] - a.v[0] || b.v[1] - a.v[1])[0];
126
128
  console.log(pick ? pick.udid : "");')
127
- [ -n "$device" ] || { echo "ios: no iPhone simulator found (set AMK_IOS_DEVICE)"; status=1; return; }
129
+ if [ -z "$device" ]; then
130
+ if [ -n "${AMK_IOS_DEVICE:-}" ]; then echo "ios: no simulator has the name or UDID \"$AMK_IOS_DEVICE\""; else echo "ios: no iPhone simulator found (set AMK_IOS_DEVICE)"; fi
131
+ status=1; return
132
+ fi
128
133
  xcrun simctl boot "$device" 2> /dev/null || true
129
134
  xcrun simctl bootstatus "$device" -b > /dev/null
130
135
  xcrun simctl install "$device" "$app"