@swmansion/argent 0.34.1-next.80 → 0.34.1-next.82

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
@@ -10708,6 +10708,7 @@ var FAILURE_CODES = {
10708
10708
  ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE: "ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE",
10709
10709
  ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT: "ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT",
10710
10710
  NETWORK_CAPTURE_UNAVAILABLE: "NETWORK_CAPTURE_UNAVAILABLE",
10711
+ NETWORK_CAPTURE_NOT_STARTED: "NETWORK_CAPTURE_NOT_STARTED",
10711
10712
  NDJSON_CDP_REQUEST_TIMEOUT: "NDJSON_CDP_REQUEST_TIMEOUT",
10712
10713
  NDJSON_CDP_REQUEST_FAILED: "NDJSON_CDP_REQUEST_FAILED",
10713
10714
  NDJSON_CDP_CONNECTION_CLOSED: "NDJSON_CDP_CONNECTION_CLOSED",
@@ -36294,7 +36295,7 @@ function isCi(env = process.env) {
36294
36295
  var SESSION_ID2 = randomUUID5();
36295
36296
  function readCliVersion() {
36296
36297
  if (true) {
36297
- return "0.34.1-next.80";
36298
+ return "0.34.1-next.81";
36298
36299
  }
36299
36300
  return "0.0.0";
36300
36301
  }
@@ -38869,10 +38870,11 @@ Examples:
38869
38870
 
38870
38871
  Exits 1 when the tool fails. Also exits 1 when the result reports that the
38871
38872
  call did not do its job: an e2e test that does not pass, an await-ui-element
38872
- wait with success=false, a run-sequence that a step stopped, a debugger tool
38873
- with no connection or an error, a native-devtools precheck that stopped the
38874
- tool, a native-profiler-analyze with status analysis_failed, an e2e recording
38875
- call that recorded nothing, or a baseline that was not written on this client.
38873
+ or await-network-request wait with success=false, a run-sequence that a step
38874
+ stopped, a debugger tool with no connection or an error, a native-devtools
38875
+ precheck that stopped the tool, a native-profiler-analyze with status
38876
+ analysis_failed, an e2e recording call that recorded nothing, or a baseline
38877
+ that was not written on this client.
38876
38878
  Other results exit 0, also a negative answer such as await-screen-idle's
38877
38879
  settled=false or debugger-status's not_connected.
38878
38880
  `);
package/dist/client.js CHANGED
@@ -9280,6 +9280,7 @@ var FAILURE_CODES = {
9280
9280
  ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE: "ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE",
9281
9281
  ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT: "ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT",
9282
9282
  NETWORK_CAPTURE_UNAVAILABLE: "NETWORK_CAPTURE_UNAVAILABLE",
9283
+ NETWORK_CAPTURE_NOT_STARTED: "NETWORK_CAPTURE_NOT_STARTED",
9283
9284
  NDJSON_CDP_REQUEST_TIMEOUT: "NDJSON_CDP_REQUEST_TIMEOUT",
9284
9285
  NDJSON_CDP_REQUEST_FAILED: "NDJSON_CDP_REQUEST_FAILED",
9285
9286
  NDJSON_CDP_CONNECTION_CLOSED: "NDJSON_CDP_CONNECTION_CLOSED",
@@ -15943,6 +15943,7 @@ var FAILURE_CODES = {
15943
15943
  ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE: "ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE",
15944
15944
  ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT: "ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT",
15945
15945
  NETWORK_CAPTURE_UNAVAILABLE: "NETWORK_CAPTURE_UNAVAILABLE",
15946
+ NETWORK_CAPTURE_NOT_STARTED: "NETWORK_CAPTURE_NOT_STARTED",
15946
15947
  NDJSON_CDP_REQUEST_TIMEOUT: "NDJSON_CDP_REQUEST_TIMEOUT",
15947
15948
  NDJSON_CDP_REQUEST_FAILED: "NDJSON_CDP_REQUEST_FAILED",
15948
15949
  NDJSON_CDP_CONNECTION_CLOSED: "NDJSON_CDP_CONNECTION_CLOSED",
@@ -16994,7 +16995,7 @@ function isCi(env = process.env) {
16994
16995
  var SESSION_ID = randomUUID4();
16995
16996
  function readCliVersion() {
16996
16997
  if (true) {
16997
- return "0.34.1-next.80";
16998
+ return "0.34.1-next.81";
16998
16999
  }
16999
17000
  return "0.0.0";
17000
17001
  }
@@ -33703,6 +33703,7 @@ var FAILURE_CODES = {
33703
33703
  ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE: "ANDROID_NETWORK_INSPECTOR_DEVICE_IN_USE",
33704
33704
  ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT: "ANDROID_NETWORK_INSPECTOR_NO_DEVICE_PORT",
33705
33705
  NETWORK_CAPTURE_UNAVAILABLE: "NETWORK_CAPTURE_UNAVAILABLE",
33706
+ NETWORK_CAPTURE_NOT_STARTED: "NETWORK_CAPTURE_NOT_STARTED",
33706
33707
  NDJSON_CDP_REQUEST_TIMEOUT: "NDJSON_CDP_REQUEST_TIMEOUT",
33707
33708
  NDJSON_CDP_REQUEST_FAILED: "NDJSON_CDP_REQUEST_FAILED",
33708
33709
  NDJSON_CDP_CONNECTION_CLOSED: "NDJSON_CDP_CONNECTION_CLOSED",
@@ -15,6 +15,26 @@ export interface ArgentToolArgs {
15
15
  /** App under test; the result then reports `appReady`. */
16
16
  bundleId?: string;
17
17
  };
18
+ "await-network-request": {
19
+ /** Device ID passed as udid to network-capture-start, even if that call also used logicalDeviceId. */
20
+ udid: string;
21
+ /** App ID passed to network-capture-start. On macOS it must match the app named by udid. On Chromium, use a valid placeholder such as argent.capture. */
22
+ bundleId: string;
23
+ /** URL text or pattern, such as "/v1/auth/login". Do not include secrets. The result includes the matched URL, and {{secret:...}} placeholders are rejected. */
24
+ url: string;
25
+ /** contains (default) searches for a substring. equals compares the full URL. Both ignore case. matches uses a case-sensitive JavaScript regular expression without implicit anchors. */
26
+ urlMatch?: "contains" | "equals" | "matches";
27
+ /** HTTP method such as POST. Ignores case. */
28
+ method?: string;
29
+ /** Exact HTTP status such as 200 or a class such as "2xx". A failed request matches a status only if it received response headers. */
30
+ status?: "1xx" | "2xx" | "3xx" | "4xx" | "5xx" | number;
31
+ /** complete (default) means the response finished, regardless of HTTP status. failed matches a request error such as an abort. any accepts either. */
32
+ outcome?: "complete" | "failed" | "any";
33
+ /** Wait limit in milliseconds. Default 10000. */
34
+ timeoutMs?: number;
35
+ /** Interval between capture reads in milliseconds. Default 400. */
36
+ pollIntervalMs?: number;
37
+ };
18
38
  "await-screen-idle": {
19
39
  /** Target device id from `list-devices` (iOS UDID, Android serial, Vega serial, HarmonyOS id, Mac app id, or Chromium id). */
20
40
  udid: string;
@@ -630,25 +650,25 @@ export interface ArgentToolArgs {
630
650
  hitTest?: boolean;
631
651
  };
632
652
  "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>) */
653
+ /** Target ID from list-devices: an iOS simulator UDID, an Android serial, a Mac app ID (macos-app-<bundle id>) or a Chromium ID (chromium-cdp-<port>). */
634
654
  udid: string;
635
- /** App bundle ID on iOS or package name on Android (on a Mac app, the bundle id in the device id) */
655
+ /** App bundle ID on iOS or package name on Android. On Mac apps, use the bundle ID from udid. On Chromium, udid selects the app. Use a valid placeholder such as argent.capture. */
636
656
  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. */
657
+ /** The app's Metro port. Omit it to use the device's port (8081 by default). Native layers exclude requests to this port on local addresses. Chromium uses the CDP port in udid. */
638
658
  port?: number;
639
- /** Select js for JavaScript runtime capture or native for native HTTP capture. Omit to control both layers. */
659
+ /** Use js for JavaScript runtime capture or native for native HTTP capture. Omit to control both layers. Chromium ignores this setting and uses its single chromium layer. */
640
660
  layer?: "js" | "native";
641
661
  /** 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. */
642
662
  logicalDeviceId?: string;
643
663
  };
644
664
  "network-capture-stop": {
645
- /** Device ID from list-devices: an iOS simulator UDID or Android serial, or a Mac app id (macos-app-<bundle id>) */
665
+ /** Target ID from list-devices: an iOS simulator UDID, an Android serial, a Mac app ID (macos-app-<bundle id>) or a Chromium ID (chromium-cdp-<port>). */
646
666
  udid: string;
647
- /** App bundle ID on iOS or package name on Android (on a Mac app, the bundle id in the device id) */
667
+ /** App bundle ID on iOS or package name on Android. On Mac apps, use the bundle ID from udid. On Chromium, udid selects the app. Use a valid placeholder such as argent.capture. */
648
668
  bundleId: string;
649
- /** 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. */
669
+ /** The app's Metro port. Omit it to use the device's port (8081 by default). Native layers exclude requests to this port on local addresses. Chromium uses the CDP port in udid. */
650
670
  port?: number;
651
- /** Select js for JavaScript runtime capture or native for native HTTP capture. Omit to control both layers. */
671
+ /** Use js for JavaScript runtime capture or native for native HTTP capture. Omit to control both layers. Chromium ignores this setting and uses its single chromium layer. */
652
672
  layer?: "js" | "native";
653
673
  /** 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. */
654
674
  logicalDeviceId?: string;