@swmansion/argent 0.33.1-next.8 → 0.34.0
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/assets/Argent.tracetemplate +0 -0
- package/bin/argent-android-devtools-0.4.0.apk +0 -0
- package/bin/darwin/argent-macos-helper +0 -0
- package/bin/darwin/ax-service +0 -0
- package/bin/darwin/tvos-ax-service +0 -0
- package/bin/darwin/tvos-hid-daemon +0 -0
- package/bin/network-inspector/network-inspector.jar +0 -0
- package/bin/tcp/ax-service +0 -0
- package/dist/cli-cmds.mjs +338 -95
- package/dist/client.js +256 -56
- package/dist/flow-script-runner.mjs +148 -5
- package/dist/installer.mjs +41 -25
- package/dist/ios-device-runner/ArgentRunner/ArgentRunnerUITests/ArgentRunnerSession+Snapshot.swift +110 -4
- package/dist/mcp-server.mjs +330 -68
- package/dist/tool-args.generated.d.ts +22 -20
- package/dist/tool-server.cjs +3763 -2146
- package/dylibs/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/libKeyboardPatch.dylib +0 -0
- package/dylibs/libNativeDevtoolsIos.dylib +0 -0
- package/dylibs/macos/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/macos/libNativeDevtoolsMacos.dylib +0 -0
- package/dylibs/tcp/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/tcp/libKeyboardPatch.dylib +0 -0
- package/dylibs/tcp/libNativeDevtoolsIos.dylib +0 -0
- package/dylibs/tvos/libArgentInjectionBootstrap.dylib +0 -0
- package/dylibs/tvos/libKeyboardPatch.dylib +0 -0
- package/dylibs/tvos/libNativeDevtoolsIos.dylib +0 -0
- package/package.json +2 -3
- package/rules/argent.md +1 -1
- package/skills/argent-create-e2e/references/e2e-yaml.md +11 -1
- package/skills/argent-create-e2e/references/reliability-and-recovery.md +1 -1
- package/skills/argent-device-interact/SKILL.md +2 -2
- package/skills/argent-device-interact/references/harmonyos.md +1 -1
- package/skills/argent-macos-app-interact/SKILL.md +5 -1
- package/skills/argent-native-profiler/SKILL.md +14 -5
- package/skills/argent-react-native-profiler/SKILL.md +7 -0
- package/skills/argent-test-ui-flow/SKILL.md +1 -1
- package/assets/trace-processor/SHA256SUMS +0 -4
- package/assets/trace-processor/engine.mjs +0 -42423
|
@@ -209,7 +209,7 @@ export interface ArgentToolArgs {
|
|
|
209
209
|
name: string;
|
|
210
210
|
/** Absolute project root passed to e2e-start-recording. */
|
|
211
211
|
project_root: string;
|
|
212
|
-
/** Path to the .mjs
|
|
212
|
+
/** Path to the script file (.mjs, .mts, .js or .ts), relative to the e2e test YAML. For example: "../../scripts/seed-order.mjs". */
|
|
213
213
|
path: string;
|
|
214
214
|
/** Time limit in milliseconds. The default is 30000 and the minimum is 100. */
|
|
215
215
|
timeout?: number;
|
|
@@ -538,21 +538,21 @@ export interface ArgentToolArgs {
|
|
|
538
538
|
stop?: boolean;
|
|
539
539
|
};
|
|
540
540
|
"native-profiler-analyze": {
|
|
541
|
-
/** Target device id from `list-devices` (iOS UDID or Android serial). */
|
|
541
|
+
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
542
542
|
device_id: string;
|
|
543
543
|
};
|
|
544
544
|
"native-profiler-start": {
|
|
545
|
-
/** Target device id from `list-devices` (iOS UDID or Android serial). */
|
|
545
|
+
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
546
546
|
device_id: string;
|
|
547
|
-
/** iOS: the CFBundleExecutable or display name of the app to profile. Android: the app's package name. If omitted, auto-detects the foreground app; set it only if auto-detection picks the wrong app. */
|
|
547
|
+
/** iOS: the CFBundleExecutable or display name of the app to profile. Android: the app's package name. If omitted, auto-detects the foreground app; set it only if auto-detection picks the wrong app. Do not set it for a Mac app: the tool refuses it, because the device id names the app. */
|
|
548
548
|
app_process?: string;
|
|
549
|
-
/** iOS only. Path to an Instruments .tracetemplate file (defaults to the bundled Argent template). */
|
|
549
|
+
/** iOS and Mac apps only. Path to an Instruments .tracetemplate file, or the name of a built-in template such as "Time Profiler" (defaults to the bundled Argent template). */
|
|
550
550
|
template_path?: string;
|
|
551
|
-
/** iOS only.
|
|
551
|
+
/** iOS and Mac apps only. Enable allocation stacks from app launch. Restarts the app, clears its current state, and adds CPU and memory overhead. Leave it off for CPU and hang timing. On iOS, attach recordings typically lack allocation stacks. The all-processes capture (including ARGENT_IOS_CAPTURE=all-processes) rejects this option and records no leaks. On a Mac app, argent restarts the app with MallocStackLogging=1 and then attaches, and logging stays active until restart-app. The bundled template can capture stacks for allocations during recording, so enable this for older allocations. */
|
|
552
552
|
malloc_stack_logging?: boolean;
|
|
553
553
|
};
|
|
554
554
|
"native-profiler-stop": {
|
|
555
|
-
/** Target device id from `list-devices` (iOS UDID or Android serial). */
|
|
555
|
+
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
556
556
|
device_id: string;
|
|
557
557
|
};
|
|
558
558
|
"native-user-interactable-view-at-point": {
|
|
@@ -598,6 +598,8 @@ export interface ArgentToolArgs {
|
|
|
598
598
|
skipClassPrefixes?: Array<string>;
|
|
599
599
|
/** Maximum depth for returned child/ancestor serialization (default 150) */
|
|
600
600
|
maxDepth?: number;
|
|
601
|
+
/** 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. */
|
|
602
|
+
hitTest?: boolean;
|
|
601
603
|
};
|
|
602
604
|
"open-url": {
|
|
603
605
|
/** Target device id from `list-devices` (iOS UDID, Android serial, HarmonyOS id, or Chromium id). */
|
|
@@ -616,13 +618,13 @@ export interface ArgentToolArgs {
|
|
|
616
618
|
"profiler-combined-report": {
|
|
617
619
|
/** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
|
|
618
620
|
port?: number;
|
|
619
|
-
/** iOS
|
|
621
|
+
/** Device ID from list-devices used for the native profile (iOS simulator UDID, Android serial, or Mac app ID). */
|
|
620
622
|
device_id: string;
|
|
621
623
|
};
|
|
622
624
|
"profiler-commit-query": {
|
|
623
625
|
/** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
|
|
624
626
|
port?: number;
|
|
625
|
-
/** Device
|
|
627
|
+
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
626
628
|
device_id: string;
|
|
627
629
|
/** Query mode; see Modes in the tool description. */
|
|
628
630
|
mode: "by_component" | "by_time_range" | "by_index" | "cascade_tree" | "render_counts";
|
|
@@ -643,7 +645,7 @@ export interface ArgentToolArgs {
|
|
|
643
645
|
"profiler-cpu-query": {
|
|
644
646
|
/** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
|
|
645
647
|
port?: number;
|
|
646
|
-
/** Device
|
|
648
|
+
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
647
649
|
device_id: string;
|
|
648
650
|
/** Query mode; see Modes in the tool description. */
|
|
649
651
|
mode: "top_functions" | "time_window" | "call_tree" | "component_cpu";
|
|
@@ -678,7 +680,7 @@ export interface ArgentToolArgs {
|
|
|
678
680
|
app_process?: string;
|
|
679
681
|
};
|
|
680
682
|
"profiler-stack-query": {
|
|
681
|
-
/** iOS
|
|
683
|
+
/** Target device id from `list-devices` (iOS simulator UDID, Mac app id or Android serial). */
|
|
682
684
|
device_id: string;
|
|
683
685
|
/** Query mode; see Modes in the tool description. */
|
|
684
686
|
mode: "hang_stacks" | "function_callers" | "thread_breakdown" | "leak_stacks";
|
|
@@ -729,12 +731,12 @@ export interface ArgentToolArgs {
|
|
|
729
731
|
"react-profiler-analyze": {
|
|
730
732
|
/** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
|
|
731
733
|
port?: number;
|
|
732
|
-
/** Device
|
|
734
|
+
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
733
735
|
device_id: string;
|
|
734
736
|
/** Absolute path to the RN project root for session context detection */
|
|
735
737
|
project_root: string;
|
|
736
|
-
/**
|
|
737
|
-
platform?: "ios" | "android";
|
|
738
|
+
/** Platform for source lookup when the recording does not identify one. */
|
|
739
|
+
platform?: "ios" | "android" | "macos";
|
|
738
740
|
/** React Native version (e.g. "0.73.4") */
|
|
739
741
|
rn_version?: string;
|
|
740
742
|
/** User actions to annotate the report's commits with: each commit shows the action that preceded it. */
|
|
@@ -754,7 +756,7 @@ export interface ArgentToolArgs {
|
|
|
754
756
|
"react-profiler-cpu-summary": {
|
|
755
757
|
/** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
|
|
756
758
|
port?: number;
|
|
757
|
-
/** Device
|
|
759
|
+
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
758
760
|
device_id: string;
|
|
759
761
|
/** Number of top hotspot functions to return */
|
|
760
762
|
top_n?: number;
|
|
@@ -764,7 +766,7 @@ export interface ArgentToolArgs {
|
|
|
764
766
|
"react-profiler-fiber-tree": {
|
|
765
767
|
/** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
|
|
766
768
|
port?: number;
|
|
767
|
-
/** Device
|
|
769
|
+
/** Device ID of the app to inspect. For a Mac app, use its ID from list-devices. During a recording, use the ID passed to react-profiler-start. */
|
|
768
770
|
device_id: string;
|
|
769
771
|
/** Maximum tree depth to traverse */
|
|
770
772
|
max_depth?: number;
|
|
@@ -774,7 +776,7 @@ export interface ArgentToolArgs {
|
|
|
774
776
|
"react-profiler-renders": {
|
|
775
777
|
/** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
|
|
776
778
|
port?: number;
|
|
777
|
-
/** Device
|
|
779
|
+
/** Device ID of the app to inspect. For a Mac app, use its ID from list-devices. During a recording, use the ID passed to react-profiler-start. */
|
|
778
780
|
device_id: string;
|
|
779
781
|
/** Number of components to return */
|
|
780
782
|
top_n?: number;
|
|
@@ -782,7 +784,7 @@ export interface ArgentToolArgs {
|
|
|
782
784
|
"react-profiler-start": {
|
|
783
785
|
/** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
|
|
784
786
|
port?: number;
|
|
785
|
-
/** Device
|
|
787
|
+
/** Device ID from list-devices, including a Mac app ID. For iOS or Android on a shared Metro, use the target's logicalDeviceId if asked to disambiguate. */
|
|
786
788
|
device_id: string;
|
|
787
789
|
/** CPU sampling interval in microseconds */
|
|
788
790
|
sample_interval_us?: number;
|
|
@@ -792,13 +794,13 @@ export interface ArgentToolArgs {
|
|
|
792
794
|
"react-profiler-status": {
|
|
793
795
|
/** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
|
|
794
796
|
port?: number;
|
|
795
|
-
/** Device
|
|
797
|
+
/** Device ID of the app to inspect. For a Mac app, use its ID from list-devices. During a recording, use the ID passed to react-profiler-start. */
|
|
796
798
|
device_id: string;
|
|
797
799
|
};
|
|
798
800
|
"react-profiler-stop": {
|
|
799
801
|
/** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
|
|
800
802
|
port?: number;
|
|
801
|
-
/** Device
|
|
803
|
+
/** Device ID passed to react-profiler-start. For a Mac app, use its ID from list-devices. */
|
|
802
804
|
device_id: string;
|
|
803
805
|
};
|
|
804
806
|
"reinstall-app": {
|