@swmansion/argent 0.34.1-next.2 → 0.34.1-next.21
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/LICENSE +1 -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 +111 -25
- package/dist/client.js +58 -10
- package/dist/installer-help.js +4 -0
- package/dist/installer-help.js.map +1 -1
- package/dist/installer.mjs +230 -160
- package/dist/ios-device-runner/ArgentRunner/ArgentRunnerUITests/ArgentLaunchPerformanceTests.swift +21 -0
- package/dist/ios-device-runner/ArgentRunner/ArgentRunnerUITests/ArgentRunnerSession+Commands.swift +9 -3
- package/dist/mcp-server.mjs +68 -15
- package/dist/tool-args.generated.d.ts +31 -1
- package/dist/tool-server.cjs +5433 -2503
- package/dylibs/libArgentAudio.dylib +0 -0
- 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 +1 -1
- package/rules/argent.md +6 -23
- package/skills/argent-ios-device-interact/SKILL.md +2 -2
- package/skills/argent-macos-app-interact/SKILL.md +15 -5
- package/skills/argent-macos-app-interact/references/e2e.md +1 -1
- package/skills/argent-native-profiler/SKILL.md +14 -2
- package/skills/argent-react-native-app-workflow/SKILL.md +1 -1
- package/skills/argent-react-native-optimization/SKILL.md +10 -1
- package/skills/argent-react-native-profiler/SKILL.md +4 -3
package/dist/ios-device-runner/ArgentRunner/ArgentRunnerUITests/ArgentRunnerSession+Commands.swift
CHANGED
|
@@ -3,11 +3,15 @@ import XCTest
|
|
|
3
3
|
|
|
4
4
|
extension DeviceButton {
|
|
5
5
|
/// The XCUIDevice member for this wire name.
|
|
6
|
-
var hardwareButton: XCUIDevice.Button {
|
|
6
|
+
var hardwareButton: XCUIDevice.Button? {
|
|
7
7
|
switch self {
|
|
8
8
|
case .home: return .home
|
|
9
|
+
#if targetEnvironment(simulator)
|
|
10
|
+
case .volumeUp, .volumeDown: return nil
|
|
11
|
+
#else
|
|
9
12
|
case .volumeUp: return .volumeUp
|
|
10
13
|
case .volumeDown: return .volumeDown
|
|
14
|
+
#endif
|
|
11
15
|
case .actionButton: return .action
|
|
12
16
|
}
|
|
13
17
|
}
|
|
@@ -191,7 +195,9 @@ extension ArgentRunnerSession {
|
|
|
191
195
|
|
|
192
196
|
// press on an absent button is a silent no-op that would read as a
|
|
193
197
|
// successful press, so it is refused up front.
|
|
194
|
-
guard
|
|
198
|
+
guard let hardwareButton = button.hardwareButton,
|
|
199
|
+
device.hasHardwareButton(hardwareButton)
|
|
200
|
+
else {
|
|
195
201
|
return .failure(
|
|
196
202
|
.unsupportedOperation,
|
|
197
203
|
"this \(UIDevice.current.model) has no \(button.rawValue) button",
|
|
@@ -200,7 +206,7 @@ extension ArgentRunnerSession {
|
|
|
200
206
|
)
|
|
201
207
|
}
|
|
202
208
|
|
|
203
|
-
device.press(
|
|
209
|
+
device.press(hardwareButton)
|
|
204
210
|
|
|
205
211
|
return .success(MessagePayload(message: "pressed \(button.rawValue)"))
|
|
206
212
|
}
|
package/dist/mcp-server.mjs
CHANGED
|
@@ -24939,6 +24939,11 @@ var FLAG_REGISTRY = [
|
|
|
24939
24939
|
name: "forward-secrets",
|
|
24940
24940
|
description: "Over `argent link` or ARGENT_TOOLS_URL, resolve each `{{secret:NAME}}` a call names on this machine and send the value with the call, so a remote tool-server can type a secret it does not hold. The linked tool-server then receives every secret of this machine that a call names, so link only one you trust with all of them. Values go only over https:// with the certificate checked, or to a loopback address. Off by default."
|
|
24941
24941
|
},
|
|
24942
|
+
{
|
|
24943
|
+
name: "ios-audio-always-inserted",
|
|
24944
|
+
description: "Insert the iOS audio hook (libArgentAudio.dylib) into every app an armed simulator launches, so audio-input works without restart-app. Dormant until the app opens audio. On by default; `argent disable ios-audio-always-inserted` inserts it only on the first audio tool call, for apps launched after that call.",
|
|
24945
|
+
defaultEnabled: true
|
|
24946
|
+
},
|
|
24942
24947
|
{
|
|
24943
24948
|
name: "video-watermark",
|
|
24944
24949
|
description: "Overlay the argent corner watermark on recorded screen videos. On by default; turn it off with `argent disable video-watermark`.",
|
|
@@ -24946,7 +24951,7 @@ var FLAG_REGISTRY = [
|
|
|
24946
24951
|
},
|
|
24947
24952
|
{
|
|
24948
24953
|
name: "macos-apps",
|
|
24949
|
-
description: "
|
|
24954
|
+
description: "Control native Mac apps, including Mac Catalyst. Adds the macos platform to list-devices and boot-device, and the file-panel and menu-bar tools. On by default; turn it off with `argent disable macos-apps`.",
|
|
24950
24955
|
defaultEnabled: true
|
|
24951
24956
|
}
|
|
24952
24957
|
];
|
|
@@ -25348,14 +25353,6 @@ var CONFIG_SCHEMA = [
|
|
|
25348
25353
|
// drained/reset, not just the file rewritten.
|
|
25349
25354
|
manageCommand: "argent telemetry"
|
|
25350
25355
|
},
|
|
25351
|
-
{
|
|
25352
|
-
key: "allowlist.enabled",
|
|
25353
|
-
description: "Whether `argent update` re-applies editor auto-approve allowlist rules. Unset (the default) keeps the current behavior: update refreshes the rules for editors that already have argent configured. Set to `false` to keep update from touching editor allowlists. `false` in either scope wins, so a committed project opt-out holds for every teammate.",
|
|
25354
|
-
scopes: ["project", "global"],
|
|
25355
|
-
parse: asBoolean,
|
|
25356
|
-
merge: "prioritize-restrictive",
|
|
25357
|
-
example: "false"
|
|
25358
|
-
},
|
|
25359
25356
|
{
|
|
25360
25357
|
key: "lens.agent",
|
|
25361
25358
|
description: "Coding-agent id remembered by `argent lens` to skip the picker.",
|
|
@@ -25506,7 +25503,18 @@ function interpolateFileInputPath(template, args) {
|
|
|
25506
25503
|
});
|
|
25507
25504
|
return missing ? null : out;
|
|
25508
25505
|
}
|
|
25509
|
-
var TOOL_FILE_EXTENSIONS = [
|
|
25506
|
+
var TOOL_FILE_EXTENSIONS = [
|
|
25507
|
+
".png",
|
|
25508
|
+
".yaml",
|
|
25509
|
+
".wav",
|
|
25510
|
+
".mp3",
|
|
25511
|
+
".m4a",
|
|
25512
|
+
".aac",
|
|
25513
|
+
".caf",
|
|
25514
|
+
".aif",
|
|
25515
|
+
".aiff",
|
|
25516
|
+
".flac"
|
|
25517
|
+
];
|
|
25510
25518
|
function hasToolFileExtension(file) {
|
|
25511
25519
|
const name = file.toLowerCase();
|
|
25512
25520
|
return TOOL_FILE_EXTENSIONS.some((extension) => name.endsWith(extension));
|
|
@@ -25835,6 +25843,10 @@ var FAILURE_CODES = {
|
|
|
25835
25843
|
AX_DAEMON_READY_TIMEOUT: "AX_DAEMON_READY_TIMEOUT",
|
|
25836
25844
|
AX_DAEMON_EXITED_BEFORE_READY: "AX_DAEMON_EXITED_BEFORE_READY",
|
|
25837
25845
|
AX_DAEMON_PROCESS_ERROR: "AX_DAEMON_PROCESS_ERROR",
|
|
25846
|
+
// The daemon died on a fault signal (SIGSEGV, SIGABRT, ...), before or after
|
|
25847
|
+
// it connected. Kept apart from the two codes above so a crash is not read
|
|
25848
|
+
// as an ordinary exit.
|
|
25849
|
+
AX_DAEMON_CRASHED: "AX_DAEMON_CRASHED",
|
|
25838
25850
|
AX_FACTORY_OPTIONS_MISSING: "AX_FACTORY_OPTIONS_MISSING",
|
|
25839
25851
|
AX_WRONG_PLATFORM: "AX_WRONG_PLATFORM",
|
|
25840
25852
|
AX_DEVICE_ID_INVALID: "AX_DEVICE_ID_INVALID",
|
|
@@ -25917,6 +25929,7 @@ var FAILURE_CODES = {
|
|
|
25917
25929
|
DEBUGGER_CDP_PROTOCOL_ERROR: "DEBUGGER_CDP_PROTOCOL_ERROR",
|
|
25918
25930
|
DEBUGGER_CDP_CONNECT_FAILED: "DEBUGGER_CDP_CONNECT_FAILED",
|
|
25919
25931
|
DEBUGGER_CDP_SOCKET_CLOSED_BEFORE_OPEN: "DEBUGGER_CDP_SOCKET_CLOSED_BEFORE_OPEN",
|
|
25932
|
+
DEBUGGER_CDP_ORIGIN_REJECTED: "DEBUGGER_CDP_ORIGIN_REJECTED",
|
|
25920
25933
|
DEBUGGER_CDP_NOT_CONNECTED: "DEBUGGER_CDP_NOT_CONNECTED",
|
|
25921
25934
|
DEBUGGER_CDP_REQUEST_TIMEOUT: "DEBUGGER_CDP_REQUEST_TIMEOUT",
|
|
25922
25935
|
DEBUGGER_CDP_CONNECTION_CLOSED: "DEBUGGER_CDP_CONNECTION_CLOSED",
|
|
@@ -25991,6 +26004,32 @@ var FAILURE_CODES = {
|
|
|
25991
26004
|
NATIVE_PROFILER_PERFETTO_PROCESS_ERROR: "NATIVE_PROFILER_PERFETTO_PROCESS_ERROR",
|
|
25992
26005
|
NATIVE_PROFILER_PERFETTO_READY_TIMEOUT: "NATIVE_PROFILER_PERFETTO_READY_TIMEOUT",
|
|
25993
26006
|
NATIVE_PROFILER_PERFETTO_READY_EXITED: "NATIVE_PROFILER_PERFETTO_READY_EXITED",
|
|
26007
|
+
/**
|
|
26008
|
+
* native-profiler-launch-analysis. Input problems use TOOL_INPUT_INVALID and
|
|
26009
|
+
* devicectl steps IOS_DEVICECTL_COMMAND_FAILED.
|
|
26010
|
+
* @see [workflow.ts](../../tool-server/src/utils/ios-launch-time/workflow.ts)
|
|
26011
|
+
*/
|
|
26012
|
+
// Not macOS, or an Xcode that cannot record the launch on this target.
|
|
26013
|
+
LAUNCH_ANALYSIS_UNSUPPORTED_HOST: "LAUNCH_ANALYSIS_UNSUPPORTED_HOST",
|
|
26014
|
+
// No usable iPhone or simulator was selected, or Argent's runner holds it.
|
|
26015
|
+
LAUNCH_ANALYSIS_DEVICE_UNAVAILABLE: "LAUNCH_ANALYSIS_DEVICE_UNAVAILABLE",
|
|
26016
|
+
// The bundle_id app is not installed on the selected device.
|
|
26017
|
+
LAUNCH_ANALYSIS_APP_NOT_INSTALLED: "LAUNCH_ANALYSIS_APP_NOT_INSTALLED",
|
|
26018
|
+
// The runner's xcodebuild failed on code signing or provisioning.
|
|
26019
|
+
LAUNCH_ANALYSIS_SIGNING_FAILED: "LAUNCH_ANALYSIS_SIGNING_FAILED",
|
|
26020
|
+
// The iPhone's free developer profile has no slot for Argent's runner.
|
|
26021
|
+
LAUNCH_ANALYSIS_FREE_PROFILE_LIMIT: "LAUNCH_ANALYSIS_FREE_PROFILE_LIMIT",
|
|
26022
|
+
// simctl could not wait for boot, find, launch or terminate the app.
|
|
26023
|
+
LAUNCH_ANALYSIS_SIMCTL_FAILED: "LAUNCH_ANALYSIS_SIMCTL_FAILED",
|
|
26024
|
+
LAUNCH_ANALYSIS_RECORD_FAILED: "LAUNCH_ANALYSIS_RECORD_FAILED",
|
|
26025
|
+
// xctrace could not export the TOC, the CPU samples or the first-frame marker.
|
|
26026
|
+
LAUNCH_ANALYSIS_EXPORT_FAILED: "LAUNCH_ANALYSIS_EXPORT_FAILED",
|
|
26027
|
+
// The App Launch trace has no first frame of the app, so it has no launch window.
|
|
26028
|
+
LAUNCH_ANALYSIS_NO_FIRST_FRAME: "LAUNCH_ANALYSIS_NO_FIRST_FRAME",
|
|
26029
|
+
// The XCTest launch run of Argent's runner failed.
|
|
26030
|
+
LAUNCH_ANALYSIS_RUNNER_TEST_FAILED: "LAUNCH_ANALYSIS_RUNNER_TEST_FAILED",
|
|
26031
|
+
// The launch test ran, but Argent read no launch measurements from its result.
|
|
26032
|
+
LAUNCH_ANALYSIS_NO_SAMPLES: "LAUNCH_ANALYSIS_NO_SAMPLES",
|
|
25994
26033
|
// iOS and Android share one capture path (simulator-server frames into
|
|
25995
26034
|
// ffmpeg), so these name the failing stage, not the device family.
|
|
25996
26035
|
SCREEN_RECORDING_FACTORY_OPTIONS_MISSING: "SCREEN_RECORDING_FACTORY_OPTIONS_MISSING",
|
|
@@ -26005,6 +26044,13 @@ var FAILURE_CODES = {
|
|
|
26005
26044
|
SCREEN_RECORDING_SERVER_SHUTTING_DOWN: "SCREEN_RECORDING_SERVER_SHUTTING_DOWN",
|
|
26006
26045
|
SCREEN_RECORDING_STREAM_UNAVAILABLE: "SCREEN_RECORDING_STREAM_UNAVAILABLE",
|
|
26007
26046
|
SCREEN_RECORDING_FFMPEG_NOT_FOUND: "SCREEN_RECORDING_FFMPEG_NOT_FOUND",
|
|
26047
|
+
AUDIO_CLIP_CONVERSION_FAILED: "AUDIO_CLIP_CONVERSION_FAILED",
|
|
26048
|
+
AUDIO_HOOK_NOT_ACTIVE: "AUDIO_HOOK_NOT_ACTIVE",
|
|
26049
|
+
AUDIO_ENV_SETUP_FAILED: "AUDIO_ENV_SETUP_FAILED",
|
|
26050
|
+
AUDIO_WRONG_PLATFORM: "AUDIO_WRONG_PLATFORM",
|
|
26051
|
+
AUDIO_HOOK_UNAVAILABLE: "AUDIO_HOOK_UNAVAILABLE",
|
|
26052
|
+
AUDIO_INJECTION_NOT_OURS: "AUDIO_INJECTION_NOT_OURS",
|
|
26053
|
+
AUDIO_SIMULATOR_NOT_BOOTED: "AUDIO_SIMULATOR_NOT_BOOTED",
|
|
26008
26054
|
FLOW_PROJECT_ROOT_INVALID: "FLOW_PROJECT_ROOT_INVALID",
|
|
26009
26055
|
FLOW_NAME_INVALID: "FLOW_NAME_INVALID",
|
|
26010
26056
|
FLOW_NO_ACTIVE_RECORDING: "FLOW_NO_ACTIVE_RECORDING",
|
|
@@ -26068,6 +26114,8 @@ var FAILURE_CODES = {
|
|
|
26068
26114
|
MACOS_APP_BUNDLE_ID_MISMATCH: "MACOS_APP_BUNDLE_ID_MISMATCH",
|
|
26069
26115
|
MACOS_APP_OPEN_URL_FAILED: "MACOS_APP_OPEN_URL_FAILED",
|
|
26070
26116
|
MACOS_APP_FILE_ACCESS_FAILED: "MACOS_APP_FILE_ACCESS_FAILED",
|
|
26117
|
+
/** The app's loaded Argent library lacks support for the requested operation. */
|
|
26118
|
+
MACOS_APP_LIBRARY_OUTDATED: "MACOS_APP_LIBRARY_OUTDATED",
|
|
26071
26119
|
KEYBOARD_KEY_UNSUPPORTED: "KEYBOARD_KEY_UNSUPPORTED",
|
|
26072
26120
|
KEYBOARD_CHARACTER_UNSUPPORTED: "KEYBOARD_CHARACTER_UNSUPPORTED",
|
|
26073
26121
|
KEYBOARD_TEXT_AND_KEY_COMBINED: "KEYBOARD_TEXT_AND_KEY_COMBINED",
|
|
@@ -26137,13 +26185,16 @@ var FAILURE_COMMANDS = [
|
|
|
26137
26185
|
"ax_service",
|
|
26138
26186
|
"simulator_server",
|
|
26139
26187
|
"ffmpeg",
|
|
26188
|
+
"afconvert",
|
|
26140
26189
|
"cdp",
|
|
26141
26190
|
"electron",
|
|
26142
26191
|
"npm",
|
|
26143
26192
|
"npx",
|
|
26144
26193
|
"unknown",
|
|
26145
26194
|
"devicectl",
|
|
26146
|
-
"xcodebuild"
|
|
26195
|
+
"xcodebuild",
|
|
26196
|
+
// `xcrun xcresulttool`, which reads an XCTest result bundle.
|
|
26197
|
+
"xcresulttool"
|
|
26147
26198
|
];
|
|
26148
26199
|
var FAILURE_SIGNAL_NAMES = [
|
|
26149
26200
|
"SIGABRT",
|
|
@@ -28062,7 +28113,8 @@ var DEVICE_KINDS = [
|
|
|
28062
28113
|
"emulator",
|
|
28063
28114
|
"vvd",
|
|
28064
28115
|
"device",
|
|
28065
|
-
"app"
|
|
28116
|
+
"app",
|
|
28117
|
+
"catalyst"
|
|
28066
28118
|
];
|
|
28067
28119
|
var DEBUGGER_NOT_CONNECTED_REASONS = [
|
|
28068
28120
|
"metro_not_running",
|
|
@@ -28222,7 +28274,8 @@ var ALLOWED = {
|
|
|
28222
28274
|
install_mode: INSTALL_MODE
|
|
28223
28275
|
},
|
|
28224
28276
|
"installation:allowlist_decision": {
|
|
28225
|
-
is_enabled: bool
|
|
28277
|
+
is_enabled: bool,
|
|
28278
|
+
decided_by: oneOf(["flag", "default", "prompt"])
|
|
28226
28279
|
},
|
|
28227
28280
|
"installation:stale_config_cleanup": {
|
|
28228
28281
|
removed_count: COUNT,
|
|
@@ -29223,7 +29276,7 @@ function treeIdLine(id) {
|
|
|
29223
29276
|
return `Tree id: ${id}`;
|
|
29224
29277
|
}
|
|
29225
29278
|
function unchangedTreeNote(id, tool) {
|
|
29226
|
-
return `
|
|
29279
|
+
return `Element tree matches \`${id}\` from an earlier \`${tool}\` result. Actions may have effects the tree omits. Call \`describe\` if you lack that tree.`;
|
|
29227
29280
|
}
|
|
29228
29281
|
function randomTag() {
|
|
29229
29282
|
return randomInt(36 ** 3).toString(36).padStart(3, "0");
|
|
@@ -29500,7 +29553,7 @@ ${stopped.join("\n")}`;
|
|
|
29500
29553
|
}
|
|
29501
29554
|
|
|
29502
29555
|
// ../argent-mcp/src/instructions.ts
|
|
29503
|
-
var SERVER_INSTRUCTIONS = "Argent \u2014 iOS Simulator, Android Emulator, and Chromium app control for interacting, testing, profiling and debugging mobile and Chromium applications. Interaction tools return the screen after the action: a screenshot plus the accessibility element tree with normalized tap frames. Take coordinates from that tree; call describe only when no fresh tree is available \u2014 never guess coordinates from pixels. A result names an identical earlier tree by its tree id in place of repeating it. Do not stop simulator servers when a task finishes: the next task reuses them. Call stop-all-simulator-servers when the user asks to clean up or ends the session, or when a skill tells you to recycle a device's services, always with devices: [...] naming the devices this session used. Never stop a Metro the user started unless they ask. One tool-server is shared by every agent using this argent install, so an unscoped call tears down their devices too \u2014 reserve it for a deliberate machine-wide cleanup.";
|
|
29556
|
+
var SERVER_INSTRUCTIONS = "Argent \u2014 iOS Simulator, Android Emulator, and Chromium app control for interacting, testing, profiling and debugging mobile and Chromium applications. Use the platform the user named; otherwise prefer a device list-devices shows already running, and do not default to iOS. In a single-platform project, boot that platform. Prefer these tools over raw xcrun or adb commands, which are a fallback. Prefer launch-app or open-url over tapping home-screen icons. If the task may need a saved e2e test, load the argent-create-e2e skill (argent-qa-e2e for acceptance tests) before the first launch or in-app action: recording is not retroactive. Load the matching argent-* skill before React Native build or debug work, profiling, a physical phone, a Mac app or a TV. Interaction tools return the screen after the action: a screenshot plus the accessibility element tree with normalized tap frames. Take coordinates from that tree; call describe only when no fresh tree is available \u2014 never guess coordinates from pixels. A result names an identical earlier tree by its tree id in place of repeating it. If a tap fails twice, stop retrying and call a discovery tool again. Use await-ui-element to wait for the UI instead of polling with screenshots. Do not stop simulator servers when a task finishes: the next task reuses them. Call stop-all-simulator-servers when the user asks to clean up or ends the session, or when a skill tells you to recycle a device's services, always with devices: [...] naming the devices this session used. Never stop a Metro the user started unless they ask. One tool-server is shared by every agent using this argent install, so an unscoped call tears down their devices too \u2014 reserve it for a deliberate machine-wide cleanup. The argent CLI manages the toolkit: argent --help lists its commands.";
|
|
29504
29557
|
|
|
29505
29558
|
// ../argent-mcp/src/installed-version.ts
|
|
29506
29559
|
import * as fs11 from "node:fs";
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
export interface ArgentToolArgs {
|
|
2
|
+
"audio-input": {
|
|
3
|
+
/** Target iOS Simulator UDID from `list-devices`. */
|
|
4
|
+
udid: string;
|
|
5
|
+
/** `file` plays `path`, `tone` a sine wave, `microphone` restores the real microphone. */
|
|
6
|
+
source: "file" | "tone" | "microphone";
|
|
7
|
+
/** Audio file, required for source=file. */
|
|
8
|
+
path?: string;
|
|
9
|
+
/** source=file only. Times the file plays. Default 1. */
|
|
10
|
+
plays?: number;
|
|
11
|
+
/** source=tone only. Default 1000. */
|
|
12
|
+
frequencyHz?: number;
|
|
13
|
+
/** source=tone only. Default 0.4. */
|
|
14
|
+
amplitude?: number;
|
|
15
|
+
/** App under test; the result then reports `appReady`. */
|
|
16
|
+
bundleId?: string;
|
|
17
|
+
};
|
|
2
18
|
"await-screen-idle": {
|
|
3
19
|
/** Target device id from `list-devices` (iOS UDID, Android serial, HarmonyOS id, Mac app id, or Chromium id). */
|
|
4
20
|
udid: string;
|
|
@@ -439,6 +455,8 @@ export interface ArgentToolArgs {
|
|
|
439
455
|
clickCount?: number;
|
|
440
456
|
/** Mouse button, Mac app only: "right" is a right-click, for example to open a context menu; any other device refuses it. Default "left". */
|
|
441
457
|
button?: "left" | "right";
|
|
458
|
+
/** Keys held throughout a click or multi-click gesture. Mac apps only. An empty list leaves the click unmodified. */
|
|
459
|
+
modifiers?: Array<"control" | "option" | "shift" | "command">;
|
|
442
460
|
};
|
|
443
461
|
keyboard: {
|
|
444
462
|
/** Target device id from `list-devices` (iOS UDID, Android serial, Vega serial, HarmonyOS id, Mac app id, or Chromium id). */
|
|
@@ -541,6 +559,18 @@ export interface ArgentToolArgs {
|
|
|
541
559
|
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
542
560
|
device_id: string;
|
|
543
561
|
};
|
|
562
|
+
"native-profiler-launch-analysis": {
|
|
563
|
+
/** measure: time five launches with XCTest. profile: record one Instruments App Launch trace. */
|
|
564
|
+
mode: "measure" | "profile";
|
|
565
|
+
/** Bundle ID of the Release build already installed on the device. The tool does not build or install the app. */
|
|
566
|
+
bundle_id: string;
|
|
567
|
+
/** Connected iPhone UDID; required for a physical-device run. With allow_simulator, a booted simulator UDID also works. */
|
|
568
|
+
device_id?: string;
|
|
569
|
+
/** Explicitly allow a booted simulator when no iPhone is selected. */
|
|
570
|
+
allow_simulator?: boolean;
|
|
571
|
+
/** profile mode only: App Launch trace recording length in seconds (default 8). Rejected in measure mode. */
|
|
572
|
+
duration_seconds?: number;
|
|
573
|
+
};
|
|
544
574
|
"native-profiler-start": {
|
|
545
575
|
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
546
576
|
device_id: string;
|
|
@@ -680,7 +710,7 @@ export interface ArgentToolArgs {
|
|
|
680
710
|
app_process?: string;
|
|
681
711
|
};
|
|
682
712
|
"profiler-stack-query": {
|
|
683
|
-
/** Target device id from `list-devices` (iOS
|
|
713
|
+
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
684
714
|
device_id: string;
|
|
685
715
|
/** Query mode; see Modes in the tool description. */
|
|
686
716
|
mode: "hang_stacks" | "function_callers" | "thread_breakdown" | "leak_stacks";
|