@swmansion/argent 0.16.1-next.10 → 0.16.1-next.11

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.
@@ -125788,6 +125788,14 @@ init_zod();
125788
125788
  var import_node_child_process24 = require("node:child_process");
125789
125789
  var import_node_util18 = require("node:util");
125790
125790
  init_src();
125791
+
125792
+ // ../tool-server/src/tools/open-url/deep-link-note.ts
125793
+ function httpDeepLinkNote(url2) {
125794
+ if (!/^https?:/i.test(url2)) return void 0;
125795
+ return "This is a web URL \u2014 it opens the native app only if an app installed on this device is verified for the link's domain (iOS Universal Links / Android App Links); otherwise it opens in the browser. On iOS simulators it may open in Safari even when the owning app is installed. To reliably open an installed app, use its custom scheme (scheme://path) or launch-app with its bundle id.";
125796
+ }
125797
+
125798
+ // ../tool-server/src/tools/open-url/platforms/ios.ts
125791
125799
  var execFileAsync18 = (0, import_node_util18.promisify)(import_node_child_process24.execFile);
125792
125800
  var iosImpl3 = {
125793
125801
  requires: ["xcrun"],
@@ -125807,7 +125815,7 @@ var iosImpl3 = {
125807
125815
  { cause: err instanceof Error ? err : new Error(String(err)) }
125808
125816
  );
125809
125817
  }
125810
- return { opened: true, url: params.url };
125818
+ return { opened: true, url: params.url, note: httpDeepLinkNote(params.url) };
125811
125819
  }
125812
125820
  };
125813
125821
 
@@ -125831,7 +125839,7 @@ var androidImpl5 = {
125831
125839
  error_kind: "subprocess"
125832
125840
  });
125833
125841
  }
125834
- return { opened: true, url: params.url };
125842
+ return { opened: true, url: params.url, note: httpDeepLinkNote(params.url) };
125835
125843
  }
125836
125844
  };
125837
125845
 
@@ -125840,7 +125848,7 @@ var iosRemoteImpl5 = {
125840
125848
  requires: ["sim-remote"],
125841
125849
  handler: async (_services, params) => {
125842
125850
  await simctlOpenUrl(params.udid, params.url);
125843
- return { opened: true, url: params.url };
125851
+ return { opened: true, url: params.url, note: httpDeepLinkNote(params.url) };
125844
125852
  }
125845
125853
  };
125846
125854
 
@@ -125871,7 +125879,8 @@ var openUrlTool = {
125871
125879
  description: `Open a URL or URL scheme on the device.
125872
125880
  Use to navigate to a web page or deep-link into an app. On Chromium, this navigates the primary renderer to the given URL.
125873
125881
  Cross-platform schemes: https://, tel:, mailto:. iOS also: messages://, settings://, maps://. Android also: geo:, plus any app-specific deep link.
125874
- Returns { opened, url }. Fails if no app is registered to handle the URI (iOS/Android) or the renderer rejects the navigation (Chromium).`,
125882
+ Deep-linking caveat: an https:// link opens the native app only when an installed app is verified for the link's domain (iOS Universal Links / Android App Links) \u2014 otherwise it opens in the browser, and on iOS simulators it may open in Safari even when the owning app is installed. To reliably open an installed app, use its custom scheme (scheme://path) or launch-app with its bundle id.
125883
+ Returns { opened, url, note? }. note carries the deep-linking caveat when a web URL was opened on a native device. Fails if no app is registered to handle the URI (iOS/Android) or the renderer rejects the navigation (Chromium).`,
125875
125884
  zodSchema: zodSchema14,
125876
125885
  capability: capability6,
125877
125886
  services: (params) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.16.1-next.10",
3
+ "version": "0.16.1-next.11",
4
4
  "description": "MCP server for iOS Simulator and Android Emulator control",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {