@swmansion/argent 0.18.1-next.20 → 0.18.1-next.21

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.
@@ -148591,6 +148591,11 @@ async function queryFullHierarchyTree(registry2, device) {
148591
148591
  if (rawResult.error) {
148592
148592
  throw new Error(`getFullHierarchy failed for ${target.bundleId}: ${rawResult.error}`);
148593
148593
  }
148594
+ if (!Array.isArray(rawResult.windows) || rawResult.windows.length === 0) {
148595
+ throw new Error(
148596
+ `getFullHierarchy returned no windows for ${target.bundleId} \u2014 the app is not injectable (e.g. an Apple system app) or has no readable foreground window, so flows cannot resolve selectors against its view hierarchy`
148597
+ );
148598
+ }
148594
148599
  const { tree, screen } = adaptFullHierarchy(rawResult);
148595
148600
  return { tree, source: "native-devtools", ...screen ? { screen } : {} };
148596
148601
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.18.1-next.20",
3
+ "version": "0.18.1-next.21",
4
4
  "mcpName": "io.github.software-mansion/argent",
5
5
  "description": "MCP server for iOS Simulator and Android Emulator control",
6
6
  "license": "Apache-2.0",