@swmansion/argent 0.34.1-next.96 → 0.34.1-next.98

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.
Files changed (31) hide show
  1. package/bin/argent-android-devtools-0.4.0.apk +0 -0
  2. package/bin/darwin/argent-macos-helper +0 -0
  3. package/bin/darwin/ax-service +0 -0
  4. package/bin/darwin/tvos-ax-service +0 -0
  5. package/bin/darwin/tvos-hid-daemon +0 -0
  6. package/bin/network-inspector/network-inspector.jar +0 -0
  7. package/bin/tcp/ax-service +0 -0
  8. package/dist/cli-cmds.mjs +1 -1
  9. package/dist/installer.mjs +1 -1
  10. package/dist/tool-args.generated.d.ts +32 -32
  11. package/dist/tool-server.cjs +250 -190
  12. package/dylibs/libArgentAudio.dylib +0 -0
  13. package/dylibs/libArgentInjectionBootstrap.dylib +0 -0
  14. package/dylibs/libKeyboardPatch.dylib +0 -0
  15. package/dylibs/libNativeDevtoolsIos.dylib +0 -0
  16. package/dylibs/macos/libArgentInjectionBootstrap.dylib +0 -0
  17. package/dylibs/macos/libNativeDevtoolsMacos.dylib +0 -0
  18. package/dylibs/tcp/libArgentInjectionBootstrap.dylib +0 -0
  19. package/dylibs/tcp/libKeyboardPatch.dylib +0 -0
  20. package/dylibs/tcp/libNativeDevtoolsIos.dylib +0 -0
  21. package/dylibs/tvos/libArgentInjectionBootstrap.dylib +0 -0
  22. package/dylibs/tvos/libKeyboardPatch.dylib +0 -0
  23. package/dylibs/tvos/libNativeDevtoolsIos.dylib +0 -0
  24. package/package.json +2 -2
  25. package/skills/argent-create-e2e/references/live-authoring.md +7 -15
  26. package/skills/argent-device-interact/SKILL.md +25 -23
  27. package/skills/argent-macos-app-interact/SKILL.md +1 -1
  28. package/skills/argent-metro-debugger/SKILL.md +25 -25
  29. package/skills/argent-qa-e2e/SKILL.md +1 -1
  30. package/skills/argent-react-native-optimization/references/fix-reference.md +10 -10
  31. package/skills/argent-test-ui-flow/SKILL.md +1 -1
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/cli-cmds.mjs CHANGED
@@ -38575,7 +38575,7 @@ function isCi(env = process.env) {
38575
38575
  var SESSION_ID2 = randomUUID5();
38576
38576
  function readCliVersion() {
38577
38577
  if (true) {
38578
- return "0.34.1-next.96";
38578
+ return "0.34.1-next.98";
38579
38579
  }
38580
38580
  return "0.0.0";
38581
38581
  }
@@ -16998,7 +16998,7 @@ function isCi(env = process.env) {
16998
16998
  var SESSION_ID = randomUUID4();
16999
16999
  function readCliVersion() {
17000
17000
  if (true) {
17001
- return "0.34.1-next.96";
17001
+ return "0.34.1-next.98";
17002
17002
  }
17003
17003
  return "0.0.0";
17004
17004
  }
@@ -16,19 +16,19 @@ export interface ArgentToolArgs {
16
16
  bundleId?: string;
17
17
  };
18
18
  "await-network-request": {
19
- /** Device ID passed as udid to network-capture-start, even if that call also used logicalDeviceId. */
19
+ /** Device ID passed as udid to network-capture-start. The wait reuses its Metro target. */
20
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. */
21
+ /** The bundleId used for network-capture-start. On Chromium, use a valid placeholder such as argent.capture. */
22
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. */
23
+ /** URL text or a pattern. Match a part with no secrets. The result includes the full URL and secret placeholders are rejected. */
24
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. */
25
+ /** contains (default) and equals ignore case. matches uses a case-sensitive JavaScript regular expression with no implicit anchors. */
26
26
  urlMatch?: "contains" | "equals" | "matches";
27
- /** HTTP method such as POST. Ignores case. */
27
+ /** HTTP method, matched without regard to case. */
28
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. */
29
+ /** Exact HTTP status or a class such as "2xx". Failed requests can match if they received response headers. */
30
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. */
31
+ /** complete (default) accepts a finished response, including HTTP errors. failed accepts a request error. any accepts either. */
32
32
  outcome?: "complete" | "failed" | "any";
33
33
  /** Wait limit in milliseconds. Default 10000. */
34
34
  timeoutMs?: number;
@@ -572,13 +572,13 @@ export interface ArgentToolArgs {
572
572
  "native-network-logs": {
573
573
  /** Device ID from list-devices: an iOS simulator UDID or Android serial, or a Mac app id (macos-app-<bundle id>) */
574
574
  udid: string;
575
- /** App bundle ID on iOS or package name on Android (on a Mac app, the bundle id in the device id) */
575
+ /** App bundle ID on iOS or package name on Android. On macOS, omit the macos-app- prefix. */
576
576
  bundleId: string;
577
- /** The app's Metro port, whose requests are left out of the listing. Omit it to use this device's port, 8081 by default. */
577
+ /** Exclude requests to this Metro port on local addresses. Omit it to use the device's Metro port (usually 8081). */
578
578
  port?: number;
579
- /** Maximum number of requests to return: the most recent ones, oldest first. 0 returns only the header and the total. */
579
+ /** Take the newest matching requests and return them oldest first. Use 0 for capture status and totals without entries. */
580
580
  limit?: number;
581
- /** Clear the log after reading. The IDs of cleared requests still work in view-network-request-details */
581
+ /** Hide existing history from later lists. Cleared request IDs still work in view-network-request-details. */
582
582
  clear?: boolean;
583
583
  };
584
584
  "native-profiler-analyze": {
@@ -658,43 +658,43 @@ export interface ArgentToolArgs {
658
658
  hitTest?: boolean;
659
659
  };
660
660
  "network-capture-start": {
661
- /** 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>). */
661
+ /** Device ID from list-devices. For Mac builds started outside Argent, use macos-app-<bundle id>. */
662
662
  udid: string;
663
- /** 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. */
663
+ /** App bundle ID on iOS or package name on Android. On Mac, omit the macos-app- prefix. On Chromium, use a valid placeholder such as argent.capture. */
664
664
  bundleId: string;
665
- /** 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. */
665
+ /** The app's Metro port for JS capture and native log filtering. Omit it only when the app uses the device's port (usually 8081); otherwise check the project's Metro start script. Chromium uses the CDP port in udid. */
666
666
  port?: number;
667
- /** 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. */
667
+ /** Omit to control both layers. Selecting one leaves the other alone. Chromium ignores this setting. */
668
668
  layer?: "js" | "native";
669
- /** 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. */
669
+ /** For iOS simulators and Android on shared Metro, use the logical ID for the intended device if requested. Reuse it for start and stop, and as device_id for JS reads. For Mac apps, omit logicalDeviceId and keep the Mac app id even on shared Metro. */
670
670
  logicalDeviceId?: string;
671
671
  };
672
672
  "network-capture-stop": {
673
- /** 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>). */
673
+ /** Device ID from list-devices. For Mac builds started outside Argent, use macos-app-<bundle id>. */
674
674
  udid: string;
675
- /** 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. */
675
+ /** App bundle ID on iOS or package name on Android. On Mac, omit the macos-app- prefix. On Chromium, use a valid placeholder such as argent.capture. */
676
676
  bundleId: string;
677
- /** 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. */
677
+ /** The app's Metro port for JS capture and native log filtering. Omit it only when the app uses the device's port (usually 8081); otherwise check the project's Metro start script. Chromium uses the CDP port in udid. */
678
678
  port?: number;
679
- /** 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. */
679
+ /** Omit to control both layers. Selecting one leaves the other alone. Chromium ignores this setting. */
680
680
  layer?: "js" | "native";
681
- /** 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. */
681
+ /** For iOS simulators and Android on shared Metro, use the logical ID for the intended device if requested. Reuse it for start and stop, and as device_id for JS reads. For Mac apps, omit logicalDeviceId and keep the Mac app id even on shared Metro. */
682
682
  logicalDeviceId?: string;
683
683
  };
684
684
  "network-conditions": {
685
- /** Target device id from `list-devices`: an iOS simulator UDID, an Android emulator serial, or a Chromium id. */
685
+ /** Device ID from list-devices. */
686
686
  udid: string;
687
- /** iOS only, and required there: the bundle id of the app to throttle. */
687
+ /** Bundle ID of the app to shape. Required on iOS and ignored elsewhere. */
688
688
  bundleId?: string;
689
- /** iOS and Android: the Metro port the throttle leaves alone. Omit it to use this device's port (8081 by default). */
689
+ /** Metro port to exempt from shaping on iOS and Android. Omit for the device's port (usually 8081). */
690
690
  port?: number;
691
- /** Minimum time in milliseconds from sending a request to its response. */
691
+ /** Delay in milliseconds. Android adds it per round trip. iOS and Chromium use it as a minimum response delay. */
692
692
  latencyMs?: number;
693
693
  /** Download limit in kilobits per second. */
694
694
  downloadKbps?: number;
695
695
  /** Upload limit in kilobits per second. */
696
696
  uploadKbps?: number;
697
- /** Make requests fail as if the network were down. On Android, ports forwarded with adb reverse stay reachable. */
697
+ /** Make requests fail as if the network were down. On Android, adb reverse ports stay reachable, but Metro at 10.0.2.2 does not. False alone resets the conditions. */
698
698
  offline?: boolean;
699
699
  };
700
700
  "open-url": {
@@ -979,7 +979,7 @@ export interface ArgentToolArgs {
979
979
  captureCurrent?: boolean;
980
980
  /** Orientation override for live baseline/current captures. Rejected on HarmonyOS, which captures the display in its current orientation and has no override. Ignored on physical iPhones. */
981
981
  rotation?: "Portrait" | "LandscapeLeft" | "LandscapeRight" | "PortraitUpsideDown";
982
- /** Directory where diff artifacts should be written (default: a temp directory). The diff images are returned in the result either way. */
982
+ /** Directory where diff artifacts should be written (default: a temp directory). */
983
983
  outputDir?: string;
984
984
  };
985
985
  "settings-permissions": {
@@ -1035,19 +1035,19 @@ export interface ArgentToolArgs {
1035
1035
  "view-network-logs": {
1036
1036
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
1037
1037
  port?: number;
1038
- /** Device id from list-devices, or the logicalDeviceId used to start an iOS or Android capture on shared Metro. For macOS, use the Mac app id. */
1038
+ /** Device ID from list-devices. For iOS simulators and Android, use logicalDeviceId if capture started with it. For a Mac app, keep the Mac app id macos-app-<bundle id> on shared Metro and for builds started outside Argent. */
1039
1039
  device_id: string;
1040
- /** Page index (0-based) or "latest" for the most recent page. Each page contains up to 50 entries. */
1040
+ /** Zero-based page index. "latest" and null select the newest page. Each page contains up to 50 entries. */
1041
1041
  pageIndex?: number | "latest" | null;
1042
1042
  };
1043
1043
  "view-network-request-details": {
1044
1044
  /** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
1045
1045
  port?: number;
1046
- /** Device id used to list the request. For macOS, use the Mac app id. */
1046
+ /** Device ID for the matching log. For JS capture on iOS simulators and Android, use the logicalDeviceId if capture started with it. For a Mac app, keep the Mac app id even on shared Metro. */
1047
1047
  device_id: string;
1048
- /** The requestId from view-network-logs, or a native ID (ios-, android- or macos-) from native-network-logs. */
1048
+ /** Request ID from either network log or await-network-request. */
1049
1049
  requestId: string;
1050
- /** Whether to include the response body (if captured). */
1050
+ /** Set false to omit the response body. The request body can still appear. */
1051
1051
  includeBody?: boolean;
1052
1052
  };
1053
1053
  /** @deprecated Renamed to `e2e-add-echo`. */