@swmansion/argent 0.31.2-next.11 → 0.31.2-next.12

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/dist/cli-cmds.mjs CHANGED
@@ -35809,7 +35809,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
35809
35809
  var SESSION_ID2 = randomUUID5();
35810
35810
  function readCliVersion() {
35811
35811
  if (true) {
35812
- return "0.31.2-next.10";
35812
+ return "0.31.2-next.12";
35813
35813
  }
35814
35814
  return "0.0.0";
35815
35815
  }
@@ -16934,7 +16934,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16934
16934
  var SESSION_ID = randomUUID4();
16935
16935
  function readCliVersion() {
16936
16936
  if (true) {
16937
- return "0.31.2-next.10";
16937
+ return "0.31.2-next.12";
16938
16938
  }
16939
16939
  return "0.0.0";
16940
16940
  }
@@ -101150,7 +101150,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
101150
101150
  var SESSION_ID = (0, import_node_crypto3.randomUUID)();
101151
101151
  function readCliVersion() {
101152
101152
  if (true) {
101153
- return "0.31.2-next.10";
101153
+ return "0.31.2-next.12";
101154
101154
  }
101155
101155
  return "0.0.0";
101156
101156
  }
@@ -156140,7 +156140,7 @@ Returns an error message string if the requestId is not found: use view-network-
156140
156140
  },
156141
156141
  async execute(services, params) {
156142
156142
  if (ANDROID_NATIVE_REQUEST_ID.test(params.requestId)) {
156143
- return androidNativeRequestDetails(params.requestId, params.includeBody);
156143
+ return androidNativeRequestDetails(params.requestId, params.includeBody, params.device_id);
156144
156144
  }
156145
156145
  const device = resolveDevice(params.device_id);
156146
156146
  if (device.platform === "chromium") {
@@ -156247,11 +156247,13 @@ ${body.slice(0, MAX_BODY_SIZE)}...`;
156247
156247
  return details;
156248
156248
  }
156249
156249
  };
156250
- async function androidNativeRequestDetails(requestId, includeBody) {
156250
+ function androidNativeNotFound(requestId, deviceId) {
156251
+ const { platform } = resolveDevice(deviceId);
156252
+ return platform === "chromium" || platform === "vega" ? `Request ${requestId} not found. An android- ID comes from an Android device. Use view-network-logs to list this device's requests.` : `Request ${requestId} not found. Use native-network-logs to list the requests the Android native layer recorded.`;
156253
+ }
156254
+ async function androidNativeRequestDetails(requestId, includeBody, deviceId) {
156251
156255
  const found = findAndroidNativeRecord(requestId);
156252
- if (!found) {
156253
- return `Request ${requestId} not found. Use native-network-logs to list the requests the Android native layer recorded.`;
156254
- }
156256
+ if (!found) return androidNativeNotFound(requestId, deviceId);
156255
156257
  const { inspector, record: record2 } = found;
156256
156258
  const { wireHeaders } = record2.request;
156257
156259
  const bodyHeaders = record2.redirects?.[0]?.requestHeaders ?? wireHeaders ?? {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swmansion/argent",
3
- "version": "0.31.2-next.11",
3
+ "version": "0.31.2-next.12",
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",