@swmansion/argent 0.34.1-next.47 → 0.34.1-next.49

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
@@ -10701,7 +10701,7 @@ var FAILURE_CODES = {
10701
10701
  ANDROID_NETWORK_INSPECTOR_RUN_AS_FAILED: "ANDROID_NETWORK_INSPECTOR_RUN_AS_FAILED",
10702
10702
  ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE: "ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE",
10703
10703
  ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT: "ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT",
10704
- NATIVE_NETWORK_LOGS_STOP_UNSUPPORTED: "NATIVE_NETWORK_LOGS_STOP_UNSUPPORTED",
10704
+ NETWORK_CAPTURE_UNAVAILABLE: "NETWORK_CAPTURE_UNAVAILABLE",
10705
10705
  NDJSON_CDP_REQUEST_TIMEOUT: "NDJSON_CDP_REQUEST_TIMEOUT",
10706
10706
  NDJSON_CDP_REQUEST_FAILED: "NDJSON_CDP_REQUEST_FAILED",
10707
10707
  NDJSON_CDP_CONNECTION_CLOSED: "NDJSON_CDP_CONNECTION_CLOSED",
@@ -36259,7 +36259,7 @@ function isCi(env = process.env) {
36259
36259
  var SESSION_ID2 = randomUUID5();
36260
36260
  function readCliVersion() {
36261
36261
  if (true) {
36262
- return "0.34.1-next.47";
36262
+ return "0.34.1-next.49";
36263
36263
  }
36264
36264
  return "0.0.0";
36265
36265
  }
package/dist/client.js CHANGED
@@ -9273,7 +9273,7 @@ var FAILURE_CODES = {
9273
9273
  ANDROID_NETWORK_INSPECTOR_RUN_AS_FAILED: "ANDROID_NETWORK_INSPECTOR_RUN_AS_FAILED",
9274
9274
  ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE: "ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE",
9275
9275
  ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT: "ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT",
9276
- NATIVE_NETWORK_LOGS_STOP_UNSUPPORTED: "NATIVE_NETWORK_LOGS_STOP_UNSUPPORTED",
9276
+ NETWORK_CAPTURE_UNAVAILABLE: "NETWORK_CAPTURE_UNAVAILABLE",
9277
9277
  NDJSON_CDP_REQUEST_TIMEOUT: "NDJSON_CDP_REQUEST_TIMEOUT",
9278
9278
  NDJSON_CDP_REQUEST_FAILED: "NDJSON_CDP_REQUEST_FAILED",
9279
9279
  NDJSON_CDP_CONNECTION_CLOSED: "NDJSON_CDP_CONNECTION_CLOSED",
@@ -15893,7 +15893,7 @@ var FAILURE_CODES = {
15893
15893
  ANDROID_NETWORK_INSPECTOR_RUN_AS_FAILED: "ANDROID_NETWORK_INSPECTOR_RUN_AS_FAILED",
15894
15894
  ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE: "ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE",
15895
15895
  ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT: "ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT",
15896
- NATIVE_NETWORK_LOGS_STOP_UNSUPPORTED: "NATIVE_NETWORK_LOGS_STOP_UNSUPPORTED",
15896
+ NETWORK_CAPTURE_UNAVAILABLE: "NETWORK_CAPTURE_UNAVAILABLE",
15897
15897
  NDJSON_CDP_REQUEST_TIMEOUT: "NDJSON_CDP_REQUEST_TIMEOUT",
15898
15898
  NDJSON_CDP_REQUEST_FAILED: "NDJSON_CDP_REQUEST_FAILED",
15899
15899
  NDJSON_CDP_CONNECTION_CLOSED: "NDJSON_CDP_CONNECTION_CLOSED",
@@ -16945,7 +16945,7 @@ function isCi(env = process.env) {
16945
16945
  var SESSION_ID = randomUUID4();
16946
16946
  function readCliVersion() {
16947
16947
  if (true) {
16948
- return "0.34.1-next.47";
16948
+ return "0.34.1-next.49";
16949
16949
  }
16950
16950
  return "0.0.0";
16951
16951
  }
@@ -25984,7 +25984,7 @@ var FAILURE_CODES = {
25984
25984
  ANDROID_NETWORK_INSPECTOR_RUN_AS_FAILED: "ANDROID_NETWORK_INSPECTOR_RUN_AS_FAILED",
25985
25985
  ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE: "ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE",
25986
25986
  ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT: "ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT",
25987
- NATIVE_NETWORK_LOGS_STOP_UNSUPPORTED: "NATIVE_NETWORK_LOGS_STOP_UNSUPPORTED",
25987
+ NETWORK_CAPTURE_UNAVAILABLE: "NETWORK_CAPTURE_UNAVAILABLE",
25988
25988
  NDJSON_CDP_REQUEST_TIMEOUT: "NDJSON_CDP_REQUEST_TIMEOUT",
25989
25989
  NDJSON_CDP_REQUEST_FAILED: "NDJSON_CDP_REQUEST_FAILED",
25990
25990
  NDJSON_CDP_CONNECTION_CLOSED: "NDJSON_CDP_CONNECTION_CLOSED",
@@ -546,14 +546,12 @@ export interface ArgentToolArgs {
546
546
  udid: string;
547
547
  /** App bundle ID on iOS or package name on Android (on a Mac app, the bundle id in the device id) */
548
548
  bundleId: string;
549
- /** The app's Metro port, whose requests are left out of the listing. Omit it to use this device's port, 8081 by default. A Mac app ignores it. */
549
+ /** The app's Metro port, whose requests are left out of the listing. Omit it to use this device's port, 8081 by default. */
550
550
  port?: number;
551
- /** Maximum number of requests to return: the most recent ones, oldest first. 0 returns only the header and the total. On a Mac app it counts events, not requests: one request gives several events. 0 returns no events. */
551
+ /** Maximum number of requests to return: the most recent ones, oldest first. 0 returns only the header and the total. */
552
552
  limit?: number;
553
- /** Clear the log after reading. On iOS and Android, the IDs of cleared requests still work in view-network-request-details */
553
+ /** Clear the log after reading. The IDs of cleared requests still work in view-network-request-details */
554
554
  clear?: boolean;
555
- /** Android only: turn native capture off for this app instead of listing. Other apps keep theirs. */
556
- stop?: boolean;
557
555
  };
558
556
  "native-profiler-analyze": {
559
557
  /** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
@@ -631,6 +629,26 @@ export interface ArgentToolArgs {
631
629
  /** true returns the view that would receive a touch at the point: it respects userInteractionEnabled, close to UIKit hit-testing. Default false: the deepest visible view. */
632
630
  hitTest?: boolean;
633
631
  };
632
+ "network-capture-start": {
633
+ /** Device ID from list-devices: an iOS simulator UDID or Android serial, or a Mac app id (macos-app-<bundle id>) */
634
+ udid: string;
635
+ /** App bundle ID on iOS or package name on Android (on a Mac app, the bundle id in the device id) */
636
+ bundleId: string;
637
+ /** The app's Metro port: the JS layer is reached through it, and the native layers leave its requests out. Omit it to use this device's port, 8081 by default. */
638
+ port?: number;
639
+ /** Only when several devices share the Metro port: this device's logicalDeviceId, which the JS layer's reason lists. The JS layer connects to that runtime, and view-network-logs then takes it as device_id. The native layer always uses udid. */
640
+ logicalDeviceId?: string;
641
+ };
642
+ "network-capture-stop": {
643
+ /** Device ID from list-devices: an iOS simulator UDID or Android serial, or a Mac app id (macos-app-<bundle id>) */
644
+ udid: string;
645
+ /** App bundle ID on iOS or package name on Android (on a Mac app, the bundle id in the device id) */
646
+ bundleId: string;
647
+ /** The app's Metro port: the JS layer is reached through it, and the native layers leave its requests out. Omit it to use this device's port, 8081 by default. */
648
+ port?: number;
649
+ /** Only when several devices share the Metro port: this device's logicalDeviceId, which the JS layer's reason lists. The JS layer connects to that runtime, and view-network-logs then takes it as device_id. The native layer always uses udid. */
650
+ logicalDeviceId?: string;
651
+ };
634
652
  "network-conditions": {
635
653
  /** Target device id from `list-devices`: an iOS simulator UDID, an Android emulator serial, or a Chromium id. */
636
654
  udid: string;
@@ -991,9 +1009,9 @@ export interface ArgentToolArgs {
991
1009
  "view-network-request-details": {
992
1010
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
993
1011
  port?: number;
994
- /** Device id from list-devices (iOS simulator UDID or Android serial), the same id used with debugger-connect. An ios- or android- ID needs no debugger connection. */
1012
+ /** Device id from list-devices (iOS simulator UDID or Android serial, the same id used with debugger-connect, or a Mac app id). A native ID needs no debugger connection. */
995
1013
  device_id: string;
996
- /** The requestId from view-network-logs, or an ios- or android- ID from native-network-logs. */
1014
+ /** The requestId from view-network-logs, or a native ID (ios-, android- or macos-) from native-network-logs. */
997
1015
  requestId: string;
998
1016
  /** Whether to include the response body (if captured). */
999
1017
  includeBody?: boolean;