@swmansion/argent 0.35.1-next.3 → 0.35.1-next.30
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/README.md +16 -15
- 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 +1810 -1656
- package/dist/client.js +267 -250
- package/dist/fatal-handlers.js +7 -1
- package/dist/fatal-handlers.js.map +1 -1
- package/dist/installer-help.js +2 -1
- package/dist/installer-help.js.map +1 -1
- package/dist/installer.mjs +768 -550
- package/dist/mcp-server.mjs +1312 -1184
- package/dist/tool-args.generated.d.ts +355 -317
- package/dist/tool-server.cjs +103409 -101978
- 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/argent-audio-feeder +0 -0
- package/dylibs/tcp/libArgentAudio.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 -2
- package/skills/argent-android-emulator-setup/SKILL.md +2 -2
- package/skills/argent-create-e2e/SKILL.md +1 -1
- package/skills/argent-create-e2e/references/e2e-yaml.md +25 -2
- package/skills/argent-create-e2e/references/live-authoring.md +9 -0
- package/skills/argent-device-interact/SKILL.md +21 -94
- package/skills/argent-device-interact/references/advanced.md +64 -0
- package/skills/argent-ios-device-interact/SKILL.md +1 -1
- package/skills/argent-ios-device-setup/SKILL.md +1 -1
- package/skills/argent-ios-simulator-setup/SKILL.md +1 -1
- package/skills/argent-lens/SKILL.md +1 -1
- package/skills/argent-macos-app-interact/SKILL.md +1 -1
- package/skills/argent-metro-debugger/SKILL.md +1 -1
- package/skills/argent-native-profiler/SKILL.md +1 -1
- package/skills/argent-qa-e2e/SKILL.md +1 -1
- package/skills/argent-react-native-app-workflow/SKILL.md +1 -1
- package/skills/argent-react-native-optimization/SKILL.md +1 -1
- package/skills/argent-react-native-profiler/SKILL.md +1 -1
- package/skills/argent-screen-recording/SKILL.md +1 -1
- package/skills/argent-screenshot-diff/SKILL.md +1 -1
- package/skills/argent-settings-permissions/SKILL.md +1 -1
- package/skills/argent-test-ui-flow/SKILL.md +1 -1
- package/skills/argent-tv-interact/SKILL.md +1 -1
|
@@ -16,23 +16,23 @@ export interface ArgentToolArgs {
|
|
|
16
16
|
bundleId?: string;
|
|
17
17
|
};
|
|
18
18
|
"await-network-request": {
|
|
19
|
-
/** Device ID
|
|
19
|
+
/** Device ID used in `network-capture-start`. */
|
|
20
20
|
udid: string;
|
|
21
|
-
/**
|
|
21
|
+
/** `bundleId` used in `network-capture-start` (Chromium: placeholder like `argent.capture`). */
|
|
22
22
|
bundleId: string;
|
|
23
|
-
/** URL text
|
|
23
|
+
/** URL text/regex to match (no `{{secret:...}}` placeholders). */
|
|
24
24
|
url: string;
|
|
25
|
-
/** contains (default)
|
|
25
|
+
/** `contains` (default) / `equals` (case-insensitive) or `matches` (case-sensitive JS regex). */
|
|
26
26
|
urlMatch?: "contains" | "equals" | "matches";
|
|
27
|
-
/** HTTP method
|
|
27
|
+
/** HTTP method (case-insensitive). */
|
|
28
28
|
method?: string;
|
|
29
|
-
/** Exact HTTP status or
|
|
29
|
+
/** Exact HTTP status or class (e.g. "2xx"). */
|
|
30
30
|
status?: "1xx" | "2xx" | "3xx" | "4xx" | "5xx" | number;
|
|
31
|
-
/** complete (default
|
|
31
|
+
/** `complete` (default, incl. HTTP errors), `failed` (network error), or `any`. */
|
|
32
32
|
outcome?: "complete" | "failed" | "any";
|
|
33
|
-
/**
|
|
33
|
+
/** Timeout in ms (default 10000). */
|
|
34
34
|
timeoutMs?: number;
|
|
35
|
-
/**
|
|
35
|
+
/** Poll interval in ms (default 400). */
|
|
36
36
|
pollIntervalMs?: number;
|
|
37
37
|
};
|
|
38
38
|
"await-screen-idle": {
|
|
@@ -46,11 +46,11 @@ export interface ArgentToolArgs {
|
|
|
46
46
|
minStableMs?: number;
|
|
47
47
|
};
|
|
48
48
|
"await-ui-element": {
|
|
49
|
-
/** Target device id from `list-devices
|
|
49
|
+
/** Target device id from `list-devices`. */
|
|
50
50
|
udid: string;
|
|
51
|
-
/**
|
|
51
|
+
/** `exists`: in tree; `visible`: non-zero on-screen frame; `hidden`: absent or zero-area; `text`: first visible match in reading order matches `expectedText`. On a Mac app, open menus match before alerts/sheets and the window. */
|
|
52
52
|
condition: "exists" | "visible" | "hidden" | "text";
|
|
53
|
-
/** Element
|
|
53
|
+
/** Element matcher (at least one field; all given fields must match). */
|
|
54
54
|
selector: {
|
|
55
55
|
/** Case-insensitive substring of the element's visible label or value. */
|
|
56
56
|
text?: string;
|
|
@@ -59,15 +59,15 @@ export interface ArgentToolArgs {
|
|
|
59
59
|
/** Case-insensitive substring of the element's role (e.g. AXButton, button, TextView). */
|
|
60
60
|
role?: string;
|
|
61
61
|
};
|
|
62
|
-
/** Required for
|
|
62
|
+
/** Required for `text`: expected substring or full string (see `textMatch`). */
|
|
63
63
|
expectedText?: string;
|
|
64
|
-
/**
|
|
64
|
+
/** Case-insensitive match mode for `text`: `contains` (default) or `equals`. */
|
|
65
65
|
textMatch?: "contains" | "equals";
|
|
66
|
-
/** iOS
|
|
66
|
+
/** iOS simulator only: fallback bundle id for `describe`. */
|
|
67
67
|
bundleId?: string;
|
|
68
|
-
/**
|
|
68
|
+
/** Timeout in ms (default 5000). */
|
|
69
69
|
timeoutMs?: number;
|
|
70
|
-
/**
|
|
70
|
+
/** Poll interval in ms (default 400). */
|
|
71
71
|
pollIntervalMs?: number;
|
|
72
72
|
};
|
|
73
73
|
await_user_selection: {
|
|
@@ -75,37 +75,39 @@ export interface ArgentToolArgs {
|
|
|
75
75
|
timeoutSeconds?: number;
|
|
76
76
|
};
|
|
77
77
|
"boot-device": {
|
|
78
|
-
/** iOS
|
|
78
|
+
/** iOS simulator UDID from `list-devices`. Or Mac app id (`macos-app-<bundle id>`) to relaunch from its last path. */
|
|
79
79
|
udid?: string;
|
|
80
|
-
/** Android
|
|
80
|
+
/** Android AVD name (`kind: 'avd'` from `list-devices`). Reuses a compatible running emulator. */
|
|
81
81
|
avdName?: string;
|
|
82
|
-
/** Vega (Fire TV)
|
|
82
|
+
/** Vega (Fire TV) VVD image name from `list-devices` (e.g. `tv`). */
|
|
83
83
|
vvdImage?: string;
|
|
84
|
-
/** HarmonyOS
|
|
84
|
+
/** HarmonyOS emulator instance name or `harmony-emulator-<name>` id from `list-devices`. */
|
|
85
85
|
harmonyInstance?: string;
|
|
86
|
-
/**
|
|
86
|
+
/** Overall boot budget in ms (Android default 480000, Vega 120000, HarmonyOS 180000). On HarmonyOS with `force`, this spans shutdown too. */
|
|
87
87
|
bootTimeoutMs?: number;
|
|
88
|
-
/** Shut down and
|
|
88
|
+
/** Shut down and reboot even if already running. On HarmonyOS, also ties a running instance to its `hdc` connect key. On a Mac app, quits and restarts the same .app build, including a copy running without the argent library (losing its unsaved changes); fails if the app shows a save prompt. Ignored for Electron. */
|
|
89
89
|
force?: boolean;
|
|
90
|
-
/** Android only
|
|
90
|
+
/** Android only: enable emulator audio (default false, or `boot-sound` flag). Pair with `force: true` to toggle a running emulator. */
|
|
91
91
|
sound?: boolean;
|
|
92
|
-
/** Android on a macOS host only:
|
|
92
|
+
/** Android on a macOS host only: enable guest Vulkan (default false; true needed for WebGPU/Vulkan renderers, may crash Chrome GPU). Pair with `force: true` to toggle. */
|
|
93
93
|
guestVulkan?: boolean;
|
|
94
|
-
/** Android only: boot
|
|
94
|
+
/** Android only: boot `-read-only` (default false) to run multiple concurrent instances of one AVD without saving snapshot changes. */
|
|
95
95
|
readOnly?: boolean;
|
|
96
|
-
/** Android only:
|
|
96
|
+
/** Android only: emulator console port (even, 5554–5584; serial `emulator-<port>`, gRPC on port+3000). Defaults to first free port. */
|
|
97
97
|
port?: number;
|
|
98
|
-
/** iOS only:
|
|
98
|
+
/** Local iOS simulator only: apply accessibility prefs to a Shutdown simulator without booting. Cannot combine with `force: true`. */
|
|
99
|
+
prepareOnly?: boolean;
|
|
100
|
+
/** iOS only: boot simulator core without opening Simulator.app (`ARGENT_SIMULATOR_NO_WINDOW=1` forces host-wide). */
|
|
99
101
|
headless?: boolean;
|
|
100
|
-
/** Electron: path to
|
|
102
|
+
/** Electron: path to `.app` bundle, executable, or project directory with `package.json`. */
|
|
101
103
|
electronAppPath?: string;
|
|
102
|
-
/** Electron
|
|
104
|
+
/** Electron only: CDP remote-debugging port (default: free port; id `chromium-cdp-<port>`). */
|
|
103
105
|
electronPort?: number;
|
|
104
|
-
/** Electron
|
|
106
|
+
/** Electron only: extra CLI args forwarded to the Electron binary. */
|
|
105
107
|
electronArgs?: Array<string>;
|
|
106
|
-
/** Mac app: path to
|
|
108
|
+
/** Mac app: path to `.app` bundle (id `macos-app-<bundle id>`). */
|
|
107
109
|
macosAppPath?: string;
|
|
108
|
-
/** Mac app only: arguments
|
|
110
|
+
/** Mac app only: launch arguments (omitted = none). */
|
|
109
111
|
macosAppArgs?: Array<string>;
|
|
110
112
|
};
|
|
111
113
|
button: {
|
|
@@ -115,27 +117,27 @@ export interface ArgentToolArgs {
|
|
|
115
117
|
button: "home" | "back" | "power" | "volumeUp" | "volumeDown" | "appSwitch" | "actionButton";
|
|
116
118
|
};
|
|
117
119
|
"chromium-cookies": {
|
|
118
|
-
/** Chromium device id
|
|
120
|
+
/** Chromium device id (`chromium-cdp-<port>`). */
|
|
119
121
|
udid: string;
|
|
120
|
-
/** get: read cookies. set: create/update a cookie. delete: remove matching cookies. clear: remove ALL browser cookies. */
|
|
122
|
+
/** get: read cookies. set: create/update a cookie. delete: remove matching cookies. clear: remove ALL browser cookies across all domains (ignores url/domain). */
|
|
121
123
|
action: "get" | "set" | "delete" | "clear";
|
|
122
|
-
/** Cookie name. */
|
|
124
|
+
/** Cookie name (required for `set`/`delete`). */
|
|
123
125
|
name?: string;
|
|
124
|
-
/** Cookie value. */
|
|
126
|
+
/** Cookie value (required for `set`). */
|
|
125
127
|
value?: string;
|
|
126
|
-
/**
|
|
128
|
+
/** URL filter for `get` (defaults to the active page) or scope for `set`/`delete`. */
|
|
127
129
|
url?: string;
|
|
128
|
-
/**
|
|
130
|
+
/** Domain scope (`set`/`delete`). */
|
|
129
131
|
domain?: string;
|
|
130
|
-
/**
|
|
132
|
+
/** Path scope (default `/`). */
|
|
131
133
|
path?: string;
|
|
132
|
-
/**
|
|
134
|
+
/** Secure flag (`set`). */
|
|
133
135
|
secure?: boolean;
|
|
134
|
-
/**
|
|
136
|
+
/** HttpOnly flag (`set`). */
|
|
135
137
|
httpOnly?: boolean;
|
|
136
|
-
/**
|
|
138
|
+
/** SameSite policy (`set`). */
|
|
137
139
|
sameSite?: "Strict" | "Lax" | "None";
|
|
138
|
-
/**
|
|
140
|
+
/** Unix expiry in seconds (`set`; omit for session). */
|
|
139
141
|
expires?: number;
|
|
140
142
|
};
|
|
141
143
|
"chromium-storage": {
|
|
@@ -151,88 +153,90 @@ export interface ArgentToolArgs {
|
|
|
151
153
|
value?: string;
|
|
152
154
|
};
|
|
153
155
|
"chromium-tabs": {
|
|
154
|
-
/** Chromium device id
|
|
156
|
+
/** Chromium device id (`chromium-cdp-<port>`). */
|
|
155
157
|
udid: string;
|
|
156
|
-
/**
|
|
158
|
+
/** Tab operation. */
|
|
157
159
|
action: "list" | "select" | "new" | "close";
|
|
158
|
-
/**
|
|
160
|
+
/** Tab id (e.g. `t2`) or label (`select` required; `close` defaults to active). */
|
|
159
161
|
tab?: string;
|
|
160
|
-
/** `new`
|
|
162
|
+
/** URL for `new` (default `about:blank`). */
|
|
161
163
|
url?: string;
|
|
162
|
-
/**
|
|
164
|
+
/** Optional alias label for `new`. */
|
|
163
165
|
label?: string;
|
|
164
166
|
};
|
|
165
167
|
"debugger-component-tree": {
|
|
166
|
-
/** Metro port
|
|
168
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
167
169
|
port?: number;
|
|
168
|
-
/** Device id
|
|
170
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
169
171
|
device_id: string;
|
|
170
|
-
/**
|
|
172
|
+
/** Only on-screen components (default true; false includes off-screen mounted nodes). */
|
|
171
173
|
onScreenOnly?: boolean;
|
|
172
|
-
/**
|
|
174
|
+
/** Max nodes to return (collapses single-child wrappers when exceeded). */
|
|
173
175
|
maxNodes?: number;
|
|
174
|
-
/**
|
|
176
|
+
/** Append filtered/skipped fiber counts summary. */
|
|
175
177
|
includeSkipped?: boolean;
|
|
176
178
|
};
|
|
177
179
|
"debugger-connect": {
|
|
178
|
-
/** Metro port
|
|
180
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
179
181
|
port?: number;
|
|
180
|
-
/** Device id from list-devices
|
|
182
|
+
/** Device id from `list-devices`: iOS UDID, Android/Vega serial, Mac app id (`macos-app-<bundle id>`), or Chromium id (`chromium-cdp-<port>`). Reuse this same id on subsequent `debugger-*` calls (or pass the error's `logicalDeviceId` if shared Metro is ambiguous). */
|
|
181
183
|
device_id: string;
|
|
182
184
|
};
|
|
183
185
|
"debugger-evaluate": {
|
|
184
|
-
/** Metro port
|
|
186
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
185
187
|
port?: number;
|
|
186
|
-
/** Device id
|
|
188
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
187
189
|
device_id: string;
|
|
188
|
-
/** JavaScript expression to evaluate
|
|
190
|
+
/** JavaScript expression to evaluate. */
|
|
189
191
|
expression: string;
|
|
190
192
|
};
|
|
191
193
|
"debugger-inspect-element": {
|
|
192
|
-
/** Metro port
|
|
194
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
193
195
|
port?: number;
|
|
194
|
-
/** Device id
|
|
196
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
195
197
|
device_id: string;
|
|
196
|
-
/**
|
|
198
|
+
/** X in logical pixels from screen left (or Mac app window left, title bar included). */
|
|
197
199
|
x: number;
|
|
198
|
-
/**
|
|
200
|
+
/** Y in logical pixels from screen top (or Mac app window top, title bar included). */
|
|
199
201
|
y: number;
|
|
200
|
-
/**
|
|
202
|
+
/** Source context lines around each component. */
|
|
201
203
|
contextLines?: number;
|
|
202
|
-
/**
|
|
204
|
+
/** Symbolicate via Metro and include code snippets (false = raw bundle frames). */
|
|
203
205
|
resolveSourceMaps?: boolean;
|
|
204
|
-
/**
|
|
206
|
+
/** Max hierarchy items, most specific first (default 35). */
|
|
205
207
|
maxItems?: number;
|
|
206
|
-
/**
|
|
208
|
+
/** Keep normally filtered items marked `skipped: true`. */
|
|
207
209
|
includeSkipped?: boolean;
|
|
208
210
|
};
|
|
209
211
|
"debugger-log-registry": {
|
|
210
|
-
/** Metro port
|
|
212
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
211
213
|
port?: number;
|
|
212
|
-
/** Device id
|
|
214
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
213
215
|
device_id: string;
|
|
214
|
-
/**
|
|
216
|
+
/** Newest entries to inline (default 20). */
|
|
215
217
|
tail?: number;
|
|
216
|
-
/**
|
|
218
|
+
/** Filter inline `entries` by level (e.g. ["warning", "error"]). */
|
|
217
219
|
levels?: Array<"log" | "debug" | "info" | "error" | "warning" | "dir" | "dirxml" | "table" | "trace" | "clear" | "startGroup" | "startGroupCollapsed" | "endGroup" | "assert" | "profile" | "profileEnd" | "count" | "timeEnd">;
|
|
218
220
|
};
|
|
219
221
|
"debugger-reload-metro": {
|
|
220
|
-
/** Metro port
|
|
222
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
221
223
|
port?: number;
|
|
222
224
|
/** Device id used with debugger-connect. For macOS, use the Mac app id. */
|
|
223
225
|
device_id: string;
|
|
224
226
|
};
|
|
225
227
|
"debugger-status": {
|
|
226
|
-
/** Metro port
|
|
228
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
227
229
|
port?: number;
|
|
228
|
-
/** Device id
|
|
230
|
+
/** Device id from `debugger-connect` (macOS: Mac app id). */
|
|
229
231
|
device_id: string;
|
|
230
232
|
};
|
|
231
233
|
describe: {
|
|
232
|
-
/** Target device id from `list-devices
|
|
234
|
+
/** Target device id from `list-devices`. */
|
|
233
235
|
udid: string;
|
|
234
|
-
/**
|
|
236
|
+
/** iOS simulator only: fallback bundle id when AX-service returns empty (auto-detects frontmost if omitted). */
|
|
235
237
|
bundleId?: string;
|
|
238
|
+
/** Return the unpruned tree, keeping bare structural wrapper containers and duplicate child labels omitted by default. */
|
|
239
|
+
raw?: boolean;
|
|
236
240
|
};
|
|
237
241
|
"dismiss-update": {
|
|
238
242
|
/** Hours until reminders resume: 168 is a week, 87600 is the longest, 0 turns them back on */
|
|
@@ -245,55 +249,71 @@ export interface ArgentToolArgs {
|
|
|
245
249
|
project_root: string;
|
|
246
250
|
/** Text the echo step prints */
|
|
247
251
|
message: string;
|
|
252
|
+
/** Save the message in the shutdown list. stepCount counts shutdown entries. */
|
|
253
|
+
shutdown?: boolean;
|
|
248
254
|
};
|
|
249
255
|
"e2e-add-script": {
|
|
250
|
-
/** E2E test name
|
|
256
|
+
/** E2E test name from `e2e-start-recording`. */
|
|
251
257
|
name: string;
|
|
252
|
-
/**
|
|
258
|
+
/** Project root from `e2e-start-recording`. */
|
|
253
259
|
project_root: string;
|
|
254
|
-
/**
|
|
260
|
+
/** Script path (.mjs/.mts/.js/.ts) relative to the test YAML. */
|
|
255
261
|
path: string;
|
|
256
|
-
/**
|
|
262
|
+
/** Timeout in ms (default 30000, min 100). */
|
|
257
263
|
timeout?: number;
|
|
264
|
+
/** Env overrides (supports `{{secret:NAME}}` and `{{output:PATH}}`). */
|
|
265
|
+
env?: {
|
|
266
|
+
[key: string]: string;
|
|
267
|
+
};
|
|
268
|
+
/** Save the script in the shutdown list. Pending fragment cleanup runs before the script. The script's output reaches only later shutdown steps. stepCount counts shutdown entries. */
|
|
269
|
+
shutdown?: boolean;
|
|
270
|
+
/** Recording device from `list-devices`, read by the script as ARGENT_DEVICE_ID/_PLATFORM/_KIND as on a replay. Omit for a test with no device. */
|
|
271
|
+
udid?: string;
|
|
258
272
|
};
|
|
259
273
|
"e2e-add-step": {
|
|
260
|
-
/**
|
|
274
|
+
/** E2E test name from `e2e-start-recording`. */
|
|
261
275
|
name: string;
|
|
262
|
-
/**
|
|
276
|
+
/** Project root from `e2e-start-recording`. */
|
|
263
277
|
project_root: string;
|
|
264
|
-
/** MCP tool to
|
|
278
|
+
/** MCP tool id to run and record (e.g. "gesture-tap"; call `e2e-add-script` directly for scripts). */
|
|
265
279
|
command: string;
|
|
266
|
-
/**
|
|
280
|
+
/** JSON string of tool arguments (omit if none). */
|
|
267
281
|
args?: string;
|
|
268
|
-
/**
|
|
282
|
+
/** Replay delay in ms before this step. */
|
|
269
283
|
delayMs?: number;
|
|
284
|
+
/** Save the call in the shutdown list. Pending fragment cleanup runs before the call. stepCount counts shutdown entries. */
|
|
285
|
+
shutdown?: boolean;
|
|
270
286
|
};
|
|
271
287
|
"e2e-execute": {
|
|
272
|
-
/**
|
|
288
|
+
/** Saved e2e test name in `<project_root>/.argent/e2e/` (or `.argent/flows/`). */
|
|
273
289
|
name?: string;
|
|
274
|
-
/** Absolute path to the
|
|
290
|
+
/** Absolute path to the project root (script cwd; with e2e_test_path, run:/script:/baselines resolve beside the YAML). */
|
|
275
291
|
project_root: string;
|
|
276
|
-
/**
|
|
292
|
+
/** Internal; leave unset (derived from `project_root` and `name`). */
|
|
277
293
|
e2e_test_file?: string;
|
|
278
|
-
/** Absolute path to an e2e test
|
|
294
|
+
/** Absolute path to an e2e test `.yaml` on the client. */
|
|
279
295
|
e2e_test_path?: string;
|
|
280
|
-
/**
|
|
296
|
+
/** Target device id from `list-devices` (iOS UDID, Android/Vega serial, Chromium id, Mac app id). Auto-detected only when one booted device matches; pass explicitly if multiple are booted. */
|
|
281
297
|
device?: string;
|
|
282
|
-
/**
|
|
298
|
+
/** Filter auto-detection (`ios` = local simulator, `ios-remote` = remote). With `chromium` and no `device`, boots Electron from `launch: { chromium: <app path> }` and tears it down after. With `macos` and no `device`, runs on the Mac app named in `launch` (auto-detection never picks Mac apps otherwise). */
|
|
283
299
|
platform?: "ios" | "android" | "chromium" | "vega" | "macos" | "ios-remote";
|
|
284
|
-
/**
|
|
300
|
+
/** Refresh screenshot baselines for `snapshot` steps instead of diffing. */
|
|
285
301
|
updateBaselines?: boolean;
|
|
286
|
-
/** Set
|
|
302
|
+
/** Set true to confirm a fragment's `executionPrerequisite` is met; otherwise returns the prerequisite text without running. Not a dry run: a test with no prerequisite runs in full (read `executionPrerequisite` in the YAML to inspect without running). */
|
|
287
303
|
prerequisiteAcknowledged?: boolean;
|
|
304
|
+
/** Script env overrides (also for `run:` fragments). Supports `{{secret:NAME}}`. */
|
|
305
|
+
env?: {
|
|
306
|
+
[key: string]: string;
|
|
307
|
+
};
|
|
288
308
|
/** @deprecated Renamed to `e2e_test_path`. */
|
|
289
309
|
flow_path?: string;
|
|
290
310
|
/** @deprecated Renamed to `e2e_test_file`. */
|
|
291
311
|
flow_file?: string;
|
|
292
312
|
};
|
|
293
313
|
"e2e-finish-recording": {
|
|
294
|
-
/**
|
|
314
|
+
/** E2E test name from `e2e-start-recording`. */
|
|
295
315
|
name: string;
|
|
296
|
-
/**
|
|
316
|
+
/** Project root from `e2e-start-recording`. */
|
|
297
317
|
project_root: string;
|
|
298
318
|
};
|
|
299
319
|
"e2e-read-prerequisite": {
|
|
@@ -310,18 +330,32 @@ export interface ArgentToolArgs {
|
|
|
310
330
|
/** @deprecated Renamed to `e2e_test_file`. */
|
|
311
331
|
flow_file?: string;
|
|
312
332
|
};
|
|
333
|
+
"e2e-set-env": {
|
|
334
|
+
/** Test name passed to e2e-start-recording. */
|
|
335
|
+
name: string;
|
|
336
|
+
/** Absolute project root passed to e2e-start-recording. */
|
|
337
|
+
project_root: string;
|
|
338
|
+
/** Variable names to update. A null value removes that name. Omitted names keep their values. Use {{secret:NAME}} for credentials. */
|
|
339
|
+
env: {
|
|
340
|
+
[key: string]: string | null;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
313
343
|
"e2e-start-recording": {
|
|
314
|
-
/**
|
|
344
|
+
/** E2E test name (letters, digits, `_`, `-`). */
|
|
315
345
|
name: string;
|
|
316
|
-
/** Absolute path to the project root
|
|
346
|
+
/** Absolute path to the project root containing `.argent/e2e/`. */
|
|
317
347
|
project_root: string;
|
|
318
|
-
/** Fragments only:
|
|
348
|
+
/** Fragments only: entry state assumed. Omit for standalone tests (Chromium records as a fragment, then add `launch: { chromium: <app path> }` and remove this). */
|
|
319
349
|
executionPrerequisite?: string;
|
|
320
|
-
/**
|
|
350
|
+
/** Supported target filter (`platform` and/or `runtimeKind`, ANDed). Omit for any. */
|
|
321
351
|
requires?: {
|
|
322
352
|
platform?: "ios" | "android" | "chromium" | "vega" | "macos" | Array<"ios" | "android" | "chromium" | "vega" | "macos">;
|
|
323
353
|
runtimeKind?: "mobile" | "tv";
|
|
324
354
|
};
|
|
355
|
+
/** Top-level script env defaults. Supports `{{secret:NAME}}`. */
|
|
356
|
+
env?: {
|
|
357
|
+
[key: string]: string;
|
|
358
|
+
};
|
|
325
359
|
};
|
|
326
360
|
"file-panel": {
|
|
327
361
|
/** Mac app id from `list-devices` (macos-app-<bundle id>). */
|
|
@@ -348,11 +382,11 @@ export interface ArgentToolArgs {
|
|
|
348
382
|
text: string;
|
|
349
383
|
};
|
|
350
384
|
fold: {
|
|
351
|
-
/**
|
|
385
|
+
/** Foldable device id from `list-devices` (iOS simulator UDID or Android emulator serial). */
|
|
352
386
|
udid: string;
|
|
353
|
-
/**
|
|
387
|
+
/** Target posture: `closed` (cover panel), `half-open`, or `open` (inner panel). */
|
|
354
388
|
posture?: "closed" | "half-open" | "open";
|
|
355
|
-
/**
|
|
389
|
+
/** Hinge angle in degrees (0 = closed, 180 = open). */
|
|
356
390
|
angle?: number;
|
|
357
391
|
};
|
|
358
392
|
"foreground-app": {
|
|
@@ -366,144 +400,148 @@ export interface ArgentToolArgs {
|
|
|
366
400
|
"gesture-custom": {
|
|
367
401
|
/** Target device id from `list-devices` (iOS UDID or Android serial). */
|
|
368
402
|
udid: string;
|
|
369
|
-
/** Starting
|
|
403
|
+
/** Starting screen edge for a single-finger system gesture (local iOS simulator). */
|
|
370
404
|
edge?: "top" | "right" | "bottom" | "left";
|
|
371
|
-
/**
|
|
405
|
+
/** Ordered touch events. */
|
|
372
406
|
events: Array<{
|
|
373
|
-
/** Touch event type */
|
|
407
|
+
/** Touch event type. */
|
|
374
408
|
type: "Down" | "Move" | "Up";
|
|
375
|
-
/**
|
|
409
|
+
/** Normalized x. */
|
|
376
410
|
x: number;
|
|
377
|
-
/**
|
|
411
|
+
/** Normalized y. */
|
|
378
412
|
y: number;
|
|
379
|
-
/** Second finger x
|
|
413
|
+
/** Second finger x. */
|
|
380
414
|
x2?: number;
|
|
381
|
-
/** Second finger y
|
|
415
|
+
/** Second finger y. */
|
|
382
416
|
y2?: number;
|
|
383
|
-
/** Delay before
|
|
417
|
+
/** Delay before event in ms (default 16). */
|
|
384
418
|
delayMs?: number;
|
|
385
419
|
}>;
|
|
386
|
-
/**
|
|
420
|
+
/** Insert N linearly interpolated Move events between consecutive events (default 0). */
|
|
387
421
|
interpolate?: number;
|
|
388
422
|
};
|
|
389
423
|
"gesture-drag": {
|
|
390
|
-
/**
|
|
424
|
+
/** Chromium device id (`chromium-cdp-<port>`) or Mac app id from `list-devices`. */
|
|
391
425
|
udid: string;
|
|
392
|
-
/**
|
|
426
|
+
/** Start x. */
|
|
393
427
|
fromX: number;
|
|
394
|
-
/**
|
|
428
|
+
/** Start y. */
|
|
395
429
|
fromY: number;
|
|
396
|
-
/**
|
|
430
|
+
/** End x. */
|
|
397
431
|
toX: number;
|
|
398
|
-
/**
|
|
432
|
+
/** End y. */
|
|
399
433
|
toY: number;
|
|
400
|
-
/**
|
|
434
|
+
/** Drag duration in ms (default 300; 800 for a Mac app long press). */
|
|
401
435
|
durationMs?: number;
|
|
402
|
-
/**
|
|
436
|
+
/** Default true (constant speed). false decelerates into release to avoid fling. */
|
|
403
437
|
momentum?: boolean;
|
|
404
438
|
};
|
|
405
439
|
"gesture-pinch": {
|
|
406
|
-
/**
|
|
440
|
+
/** Device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial). */
|
|
407
441
|
udid: string;
|
|
408
|
-
/**
|
|
442
|
+
/** Normalized center x. */
|
|
409
443
|
centerX: number;
|
|
410
|
-
/**
|
|
444
|
+
/** Normalized center y. */
|
|
411
445
|
centerY: number;
|
|
412
|
-
/** Initial
|
|
446
|
+
/** Initial normalized finger distance. */
|
|
413
447
|
startDistance: number;
|
|
414
|
-
/** Final distance
|
|
448
|
+
/** Final normalized finger distance (> start = zoom in). */
|
|
415
449
|
endDistance: number;
|
|
416
|
-
/**
|
|
450
|
+
/** Optional final center x (centroid drifts linearly). */
|
|
417
451
|
endCenterX?: number;
|
|
418
|
-
/**
|
|
452
|
+
/** Optional final center y. */
|
|
419
453
|
endCenterY?: number;
|
|
420
|
-
/**
|
|
454
|
+
/** Finger axis angle in degrees (0 = horizontal, 90 = vertical). */
|
|
421
455
|
angle?: number;
|
|
422
|
-
/**
|
|
456
|
+
/** Duration in ms (default 300); clamped to 1–15000ms on HarmonyOS. */
|
|
423
457
|
durationMs?: number;
|
|
424
458
|
};
|
|
425
459
|
"gesture-rotate": {
|
|
426
|
-
/**
|
|
460
|
+
/** Device id from `list-devices` (iOS UDID or Android serial). */
|
|
427
461
|
udid: string;
|
|
428
|
-
/**
|
|
462
|
+
/** Normalized rotation center x. */
|
|
429
463
|
centerX: number;
|
|
430
|
-
/**
|
|
464
|
+
/** Normalized rotation center y. */
|
|
431
465
|
centerY: number;
|
|
432
|
-
/**
|
|
466
|
+
/** Normalized finger orbit radius (e.g. 0.15). */
|
|
433
467
|
radius?: number;
|
|
434
|
-
/**
|
|
468
|
+
/** Horizontal radius fraction of screen width (pair with `radiusY`). */
|
|
435
469
|
radiusX?: number;
|
|
436
|
-
/**
|
|
470
|
+
/** Vertical radius fraction of screen height (pair with `radiusX`). */
|
|
437
471
|
radiusY?: number;
|
|
438
|
-
/**
|
|
472
|
+
/** Start angle in degrees (0 = right, 90 = down). */
|
|
439
473
|
startAngle: number;
|
|
440
|
-
/**
|
|
474
|
+
/** End angle in degrees (> startAngle = clockwise). */
|
|
441
475
|
endAngle: number;
|
|
442
|
-
/**
|
|
476
|
+
/** Duration in ms (default 300). */
|
|
443
477
|
durationMs?: number;
|
|
444
478
|
};
|
|
445
479
|
"gesture-scroll": {
|
|
446
|
-
/**
|
|
480
|
+
/** Chromium device id (`chromium-cdp-<port>`) or Mac app id from `list-devices`. */
|
|
447
481
|
udid: string;
|
|
448
|
-
/**
|
|
482
|
+
/** Normalized anchor x over the scrollable element. */
|
|
449
483
|
x: number;
|
|
450
|
-
/**
|
|
484
|
+
/** Normalized anchor y. */
|
|
451
485
|
y: number;
|
|
452
|
-
/** Horizontal scroll
|
|
486
|
+
/** Horizontal scroll fraction (+ right, - left). */
|
|
453
487
|
deltaX?: number;
|
|
454
|
-
/** Vertical scroll
|
|
488
|
+
/** Vertical scroll fraction (+ down, - up; e.g. 0.5). */
|
|
455
489
|
deltaY?: number;
|
|
456
|
-
/**
|
|
490
|
+
/** Scroll duration in ms (default 300); ignored on Mac apps. */
|
|
457
491
|
durationMs?: number;
|
|
458
492
|
};
|
|
459
493
|
"gesture-swipe": {
|
|
460
|
-
/** Target device id from `list-devices
|
|
494
|
+
/** Target device id from `list-devices`. */
|
|
461
495
|
udid: string;
|
|
462
|
-
/** Start x. */
|
|
496
|
+
/** Start x [0,1]. */
|
|
463
497
|
fromX: number;
|
|
464
|
-
/** Start y. */
|
|
498
|
+
/** Start y [0,1]. */
|
|
465
499
|
fromY: number;
|
|
466
|
-
/** End x. */
|
|
500
|
+
/** End x [0,1]. */
|
|
467
501
|
toX: number;
|
|
468
|
-
/** End y. */
|
|
502
|
+
/** End y [0,1]. */
|
|
469
503
|
toY: number;
|
|
470
|
-
/**
|
|
504
|
+
/** Swipe duration in ms (default 300). */
|
|
471
505
|
durationMs?: number;
|
|
472
|
-
/**
|
|
506
|
+
/** Default true (flinging swipe). Set false to ease out with no fling for deterministic scroll distance (requires durationMs >= 150). */
|
|
473
507
|
momentum?: boolean;
|
|
474
508
|
};
|
|
475
509
|
"gesture-tap": {
|
|
476
|
-
/** Target device id from `list-devices
|
|
510
|
+
/** Target device id from `list-devices`. */
|
|
477
511
|
udid: string;
|
|
478
|
-
/** Horizontal
|
|
512
|
+
/** Horizontal screen fraction [0,1]. */
|
|
479
513
|
x: number;
|
|
480
|
-
/** Vertical
|
|
514
|
+
/** Vertical screen fraction [0,1]. */
|
|
481
515
|
y: number;
|
|
482
|
-
/**
|
|
516
|
+
/** Tap/click count as one OS gesture (2 = double-tap; default 1). On physical iOS, higher counts loop single taps, which a double-tap recognizer may pair. */
|
|
483
517
|
clickCount?: number;
|
|
484
|
-
/**
|
|
518
|
+
/** Mac app only: mouse button ("left" default, or "right"). */
|
|
485
519
|
button?: "left" | "right";
|
|
486
|
-
/**
|
|
520
|
+
/** Mac app only: modifier keys held during click. */
|
|
487
521
|
modifiers?: Array<"control" | "option" | "shift" | "command">;
|
|
488
522
|
};
|
|
489
523
|
keyboard: {
|
|
490
|
-
/** Target device id from `list-devices
|
|
524
|
+
/** Target device id from `list-devices`. */
|
|
491
525
|
udid: string;
|
|
492
|
-
/** Text to type
|
|
526
|
+
/** Text to type. Cannot be combined with `key` (use two steps in `run-sequence` to type then press enter). Supports `{{secret:<NAME>}}` placeholders resolved server-side from `ARGENT_SECRET_<NAME>` / `.argent/secrets.env` (auto-screenshot is skipped; combine with submit in one `run-sequence` to keep the skip; never ask the user for plaintext). */
|
|
493
527
|
text?: string;
|
|
494
|
-
/** Named key
|
|
528
|
+
/** Named key. Cannot be combined with `text` or `clear` (use two steps in `run-sequence`). Values: enter, escape, backspace, tab, space, arrow-up, arrow-down, arrow-left, arrow-right, f1-f12. Not supported on Apple TV / Android TV (use `tv-remote`). Physical iOS: enter/backspace only. HarmonyOS: enter, backspace, space, arrow-left/right. Mac app: also delete (forward delete), home, end, page-up/down, and modifier shortcuts (e.g. command+a). */
|
|
495
529
|
key?: string;
|
|
496
|
-
/**
|
|
530
|
+
/** Clear the focused text field before typing `text` (or alone when `text` is omitted). Cannot be combined with `key`. Fails if nothing editable has focus. On physical iOS, deletes up to 100 characters before the caret, unverified, and returns no `cleared`. Not supported on Mac apps, HarmonyOS, Apple TV, Android TV, or Vega. */
|
|
531
|
+
clear?: boolean;
|
|
532
|
+
/** Press `key` this many times in one call, e.g. `{ key: "backspace", repeat: 12 }`. Only valid with `key`. */
|
|
533
|
+
repeat?: number;
|
|
534
|
+
/** Delay in ms between key presses (default 50; ignored on platforms that type in one shot). */
|
|
497
535
|
delayMs?: number;
|
|
498
536
|
};
|
|
499
537
|
"launch-app": {
|
|
500
|
-
/** Target device id from `list-devices
|
|
538
|
+
/** Target device id from `list-devices`. */
|
|
501
539
|
udid: string;
|
|
502
|
-
/** App identifier
|
|
540
|
+
/** App identifier (iOS/Mac app bundle id, Android package name, Vega interactive component app id from manifest.toml e.g. `com.example.app.main`, HarmonyOS bundle name from `bm dump -a`, or Chromium tag). */
|
|
503
541
|
bundleId: string;
|
|
504
|
-
/** Android
|
|
542
|
+
/** Android only: Activity name (default: launcher activity). */
|
|
505
543
|
activity?: string;
|
|
506
|
-
/** Apple
|
|
544
|
+
/** Apple targets only: process launch args, e.g. `["-FeatureFlag", "YES"]`. Relaunches running simulators/phones to apply. */
|
|
507
545
|
launchArgs?: Array<string>;
|
|
508
546
|
};
|
|
509
547
|
"list-devices": Record<string, never>;
|
|
@@ -538,21 +576,21 @@ export interface ArgentToolArgs {
|
|
|
538
576
|
udid: string;
|
|
539
577
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
540
578
|
bundleId: string;
|
|
541
|
-
/** UIView class name
|
|
579
|
+
/** Exact UIView class name (e.g. UIButton). */
|
|
542
580
|
className?: string;
|
|
543
|
-
/**
|
|
581
|
+
/** Exact accessibility identifier. */
|
|
544
582
|
identifier?: string;
|
|
545
|
-
/**
|
|
583
|
+
/** Exact accessibility label. */
|
|
546
584
|
label?: string;
|
|
547
|
-
/** UIView
|
|
585
|
+
/** UIView integer tag. */
|
|
548
586
|
tag?: number;
|
|
549
|
-
/** React Native nativeID
|
|
587
|
+
/** Exact React Native nativeID. */
|
|
550
588
|
nativeID?: string;
|
|
551
|
-
/** Include ancestor chain
|
|
589
|
+
/** Include ancestor chain (default true). */
|
|
552
590
|
includeAncestors?: boolean;
|
|
553
|
-
/** Include child views
|
|
591
|
+
/** Include child views (default true). */
|
|
554
592
|
includeChildren?: boolean;
|
|
555
|
-
/** View fields to
|
|
593
|
+
/** View fields to return (defaults: pointer, className, tag, frame, windowFrame, screenFrame, bounds, hidden, alpha, opaque, clipsToBounds, userInteractionEnabled, depth, identifier, label, layerName, nativeID; extra: center, transform, contentMode, backgroundColor, tintColor, value, firstResponder). */
|
|
556
594
|
fields?: Array<string>;
|
|
557
595
|
};
|
|
558
596
|
"native-full-hierarchy": {
|
|
@@ -560,25 +598,25 @@ export interface ArgentToolArgs {
|
|
|
560
598
|
udid: string;
|
|
561
599
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
562
600
|
bundleId: string;
|
|
563
|
-
/**
|
|
601
|
+
/** Exact view fields to return (defaults: pointer, className, tag, frame, windowFrame, screenFrame, bounds, hidden, alpha, opaque, clipsToBounds, userInteractionEnabled, depth, identifier, label, layerName, nativeID; extra: center, transform, contentMode, backgroundColor, tintColor, value, firstResponder). */
|
|
564
602
|
fields?: Array<string>;
|
|
565
|
-
/** Exact UIView
|
|
603
|
+
/** Exact UIView classes to prune (e.g. ["UIImageView"]). */
|
|
566
604
|
skipClasses?: Array<string>;
|
|
567
|
-
/** Class
|
|
605
|
+
/** Class prefixes to prune (e.g. ["_TtGC7SwiftUI"] for SwiftUI; avoid broad "_UI"). */
|
|
568
606
|
skipClassPrefixes?: Array<string>;
|
|
569
|
-
/**
|
|
607
|
+
/** Max recursion depth (default 8). */
|
|
570
608
|
maxDepth?: number;
|
|
571
609
|
};
|
|
572
610
|
"native-network-logs": {
|
|
573
|
-
/** Device ID from list-devices
|
|
611
|
+
/** Device ID from `list-devices`: iOS simulator UDID, Android serial, or Mac app id (`macos-app-<bundle id>`). */
|
|
574
612
|
udid: string;
|
|
575
|
-
/**
|
|
613
|
+
/** Bundle ID (iOS) or package name (Android); on macOS, omit `macos-app-`. */
|
|
576
614
|
bundleId: string;
|
|
577
|
-
/**
|
|
615
|
+
/** Metro port to exclude from logs (omit for device default, usually 8081). */
|
|
578
616
|
port?: number;
|
|
579
|
-
/**
|
|
617
|
+
/** Newest requests to return oldest-first (default 50; 0 = status/totals only). */
|
|
580
618
|
limit?: number;
|
|
581
|
-
/** Hide
|
|
619
|
+
/** Hide current history from later lists (IDs still work in `view-network-request-details`). */
|
|
582
620
|
clear?: boolean;
|
|
583
621
|
};
|
|
584
622
|
"native-profiler-analyze": {
|
|
@@ -586,25 +624,25 @@ export interface ArgentToolArgs {
|
|
|
586
624
|
device_id: string;
|
|
587
625
|
};
|
|
588
626
|
"native-profiler-launch-analysis": {
|
|
589
|
-
/** measure
|
|
627
|
+
/** `measure`: 5 XCTest timed launches. `profile`: 1 Instruments App Launch trace. */
|
|
590
628
|
mode: "measure" | "profile";
|
|
591
|
-
/**
|
|
629
|
+
/** Installed Release build bundle ID (not built or installed by this tool). */
|
|
592
630
|
bundle_id: string;
|
|
593
|
-
/**
|
|
631
|
+
/** iPhone UDID (or booted simulator UDID with `allow_simulator: true`). */
|
|
594
632
|
device_id?: string;
|
|
595
|
-
/**
|
|
633
|
+
/** Allow booted simulator when no iPhone is selected. */
|
|
596
634
|
allow_simulator?: boolean;
|
|
597
|
-
/** profile mode only:
|
|
635
|
+
/** `profile` mode only: trace duration in s (default 8). */
|
|
598
636
|
duration_seconds?: number;
|
|
599
637
|
};
|
|
600
638
|
"native-profiler-start": {
|
|
601
639
|
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
602
640
|
device_id: string;
|
|
603
|
-
/** iOS
|
|
641
|
+
/** iOS executable/name or Android package (auto-detects foreground app if omitted); omit for Mac apps. */
|
|
604
642
|
app_process?: string;
|
|
605
|
-
/** iOS
|
|
643
|
+
/** iOS/Mac app Instruments `.tracetemplate` path or built-in name (e.g. "Time Profiler"; default: bundled template). */
|
|
606
644
|
template_path?: string;
|
|
607
|
-
/** iOS
|
|
645
|
+
/** iOS/Mac apps only: restart app with allocation stacks from launch (adds overhead; leave off for CPU/hang timing). */
|
|
608
646
|
malloc_stack_logging?: boolean;
|
|
609
647
|
};
|
|
610
648
|
"native-profiler-stop": {
|
|
@@ -616,21 +654,21 @@ export interface ArgentToolArgs {
|
|
|
616
654
|
udid: string;
|
|
617
655
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
618
656
|
bundleId: string;
|
|
619
|
-
/** Raw X
|
|
657
|
+
/** Raw X in upright UI points (Mac app: from describe area top-left). Not normalized [0,1]. */
|
|
620
658
|
x: number;
|
|
621
|
-
/** Raw Y
|
|
659
|
+
/** Raw Y in upright UI points. Not normalized [0,1]. */
|
|
622
660
|
y: number;
|
|
623
|
-
/** Include ancestor chain
|
|
661
|
+
/** Include ancestor chain (default true). */
|
|
624
662
|
includeAncestors?: boolean;
|
|
625
|
-
/** Include child views
|
|
663
|
+
/** Include child views (default false). */
|
|
626
664
|
includeChildren?: boolean;
|
|
627
|
-
/** View fields to
|
|
665
|
+
/** View fields to return (defaults: pointer, className, tag, frame, windowFrame, screenFrame, bounds, hidden, alpha, opaque, clipsToBounds, userInteractionEnabled, depth, identifier, label, layerName, nativeID; extra: center, transform, contentMode, backgroundColor, tintColor, value, firstResponder). */
|
|
628
666
|
fields?: Array<string>;
|
|
629
|
-
/** Exact UIView class names
|
|
667
|
+
/** Exact UIView class names to prune. */
|
|
630
668
|
skipClasses?: Array<string>;
|
|
631
|
-
/** Class name prefixes to prune
|
|
669
|
+
/** Class name prefixes to prune. */
|
|
632
670
|
skipClassPrefixes?: Array<string>;
|
|
633
|
-
/**
|
|
671
|
+
/** Max serialization depth (default 150). */
|
|
634
672
|
maxDepth?: number;
|
|
635
673
|
};
|
|
636
674
|
"native-view-at-point": {
|
|
@@ -638,157 +676,157 @@ export interface ArgentToolArgs {
|
|
|
638
676
|
udid: string;
|
|
639
677
|
/** Bundle ID of the app (on a Mac app, the bundle id in the device id) */
|
|
640
678
|
bundleId: string;
|
|
641
|
-
/** Raw X
|
|
679
|
+
/** Raw X in upright UI points (Mac app: from describe area top-left). Not normalized [0,1]. */
|
|
642
680
|
x: number;
|
|
643
|
-
/** Raw Y
|
|
681
|
+
/** Raw Y in upright UI points. Not normalized [0,1]. */
|
|
644
682
|
y: number;
|
|
645
|
-
/** Include ancestor chain
|
|
683
|
+
/** Include ancestor chain (default true). */
|
|
646
684
|
includeAncestors?: boolean;
|
|
647
|
-
/** Include child views
|
|
685
|
+
/** Include child views (default false). */
|
|
648
686
|
includeChildren?: boolean;
|
|
649
|
-
/** View fields to
|
|
687
|
+
/** View fields to return (defaults: pointer, className, tag, frame, windowFrame, screenFrame, bounds, hidden, alpha, opaque, clipsToBounds, userInteractionEnabled, depth, identifier, label, layerName, nativeID; extra: center, transform, contentMode, backgroundColor, tintColor, value, firstResponder). */
|
|
650
688
|
fields?: Array<string>;
|
|
651
|
-
/** Exact UIView class names
|
|
689
|
+
/** Exact UIView class names to prune. */
|
|
652
690
|
skipClasses?: Array<string>;
|
|
653
|
-
/** Class name prefixes to prune
|
|
691
|
+
/** Class name prefixes to prune. */
|
|
654
692
|
skipClassPrefixes?: Array<string>;
|
|
655
|
-
/**
|
|
693
|
+
/** Max serialization depth (default 150). */
|
|
656
694
|
maxDepth?: number;
|
|
657
|
-
/** true
|
|
695
|
+
/** true: touch-receiving view (UIKit hit-test). false (default): deepest visible view. */
|
|
658
696
|
hitTest?: boolean;
|
|
659
697
|
};
|
|
660
698
|
"network-capture-start": {
|
|
661
|
-
/** Device ID from list-devices
|
|
699
|
+
/** Device ID from `list-devices` (external Mac builds: `macos-app-<bundle id>`). */
|
|
662
700
|
udid: string;
|
|
663
|
-
/**
|
|
701
|
+
/** Bundle ID (iOS) / package (Android) / Mac bundle ID / placeholder on Chromium (e.g. `argent.capture`). */
|
|
664
702
|
bundleId: string;
|
|
665
|
-
/**
|
|
703
|
+
/** Metro port for JS capture and native filtering (omit for device default, usually 8081; ignored on Chromium). */
|
|
666
704
|
port?: number;
|
|
667
|
-
/**
|
|
705
|
+
/** Control one layer only (default: both; ignored on Chromium). */
|
|
668
706
|
layer?: "js" | "native";
|
|
669
|
-
/**
|
|
707
|
+
/** Shared-Metro logical ID for iOS/Android if requested (reuse for start/stop/JS reads); omit on Mac apps. */
|
|
670
708
|
logicalDeviceId?: string;
|
|
671
709
|
};
|
|
672
710
|
"network-capture-stop": {
|
|
673
|
-
/** Device ID from list-devices
|
|
711
|
+
/** Device ID from `list-devices` (external Mac builds: `macos-app-<bundle id>`). */
|
|
674
712
|
udid: string;
|
|
675
|
-
/**
|
|
713
|
+
/** Bundle ID (iOS) / package (Android) / Mac bundle ID / placeholder on Chromium (e.g. `argent.capture`). */
|
|
676
714
|
bundleId: string;
|
|
677
|
-
/**
|
|
715
|
+
/** Metro port for JS capture and native filtering (omit for device default, usually 8081; ignored on Chromium). */
|
|
678
716
|
port?: number;
|
|
679
|
-
/**
|
|
717
|
+
/** Control one layer only (default: both; ignored on Chromium). */
|
|
680
718
|
layer?: "js" | "native";
|
|
681
|
-
/**
|
|
719
|
+
/** Shared-Metro logical ID for iOS/Android if requested (reuse for start/stop/JS reads); omit on Mac apps. */
|
|
682
720
|
logicalDeviceId?: string;
|
|
683
721
|
};
|
|
684
722
|
"network-conditions": {
|
|
685
|
-
/** Device ID from list-devices
|
|
723
|
+
/** Device ID from `list-devices`. */
|
|
686
724
|
udid: string;
|
|
687
|
-
/**
|
|
725
|
+
/** App bundle ID (required on iOS; ignored elsewhere). */
|
|
688
726
|
bundleId?: string;
|
|
689
|
-
/** Metro port
|
|
727
|
+
/** Metro port exempt from shaping (omit for device default, usually 8081). */
|
|
690
728
|
port?: number;
|
|
691
|
-
/**
|
|
729
|
+
/** Added latency in ms. */
|
|
692
730
|
latencyMs?: number;
|
|
693
|
-
/** Download
|
|
731
|
+
/** Download cap in kbps. */
|
|
694
732
|
downloadKbps?: number;
|
|
695
|
-
/** Upload
|
|
733
|
+
/** Upload cap in kbps. */
|
|
696
734
|
uploadKbps?: number;
|
|
697
|
-
/**
|
|
735
|
+
/** Simulate offline (on Android, `adb reverse` ports stay reachable while Metro at `10.0.2.2` does not; `false` alone resets conditions). */
|
|
698
736
|
offline?: boolean;
|
|
699
737
|
};
|
|
700
738
|
"open-url": {
|
|
701
|
-
/**
|
|
739
|
+
/** Device id from `list-devices` (iOS UDID, Android serial, HarmonyOS id, or Chromium id). */
|
|
702
740
|
udid: string;
|
|
703
|
-
/** URL or scheme
|
|
741
|
+
/** URL or custom scheme (e.g. https://example.com, myapp://path). */
|
|
704
742
|
url: string;
|
|
705
|
-
/** Physical iOS only:
|
|
743
|
+
/** Physical iOS only: receiving app (defaults to Safari for http/https; required otherwise). */
|
|
706
744
|
bundleId?: string;
|
|
707
745
|
};
|
|
708
746
|
paste: {
|
|
709
|
-
/**
|
|
747
|
+
/** Device id from `list-devices` (iOS simulator UDID, Android emulator serial, or Mac app id). */
|
|
710
748
|
udid: string;
|
|
711
|
-
/** Text to
|
|
749
|
+
/** Text to paste. Supports `{{secret:<NAME>}}` placeholders resolved server-side (never ask the user for plaintext). */
|
|
712
750
|
text: string;
|
|
713
751
|
};
|
|
714
752
|
"profiler-combined-report": {
|
|
715
|
-
/** Metro port
|
|
753
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
716
754
|
port?: number;
|
|
717
755
|
/** Device ID from list-devices used for the native profile (iOS simulator UDID, Android serial, or Mac app ID). */
|
|
718
756
|
device_id: string;
|
|
719
757
|
};
|
|
720
758
|
"profiler-commit-query": {
|
|
721
|
-
/** Metro port
|
|
759
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
722
760
|
port?: number;
|
|
723
761
|
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
724
762
|
device_id: string;
|
|
725
|
-
/** Query mode
|
|
763
|
+
/** Query mode. */
|
|
726
764
|
mode: "by_component" | "by_time_range" | "by_index" | "cascade_tree" | "render_counts";
|
|
727
|
-
/** Component name
|
|
765
|
+
/** Component name (optional filter for `render_counts`). */
|
|
728
766
|
component_name?: string;
|
|
729
|
-
/**
|
|
767
|
+
/** Range in ms since profiling started. */
|
|
730
768
|
time_range_ms?: {
|
|
731
|
-
/** Start
|
|
769
|
+
/** Start ms. */
|
|
732
770
|
start: number;
|
|
733
|
-
/** End
|
|
771
|
+
/** End ms. */
|
|
734
772
|
end: number;
|
|
735
773
|
};
|
|
736
|
-
/** Commit index */
|
|
774
|
+
/** Commit index. */
|
|
737
775
|
commit_index?: number | null;
|
|
738
|
-
/** Max results
|
|
776
|
+
/** Max results (default 20; unlimited for `by_index`). */
|
|
739
777
|
top_n?: number;
|
|
740
778
|
};
|
|
741
779
|
"profiler-cpu-query": {
|
|
742
|
-
/** Metro port
|
|
780
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
743
781
|
port?: number;
|
|
744
782
|
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
745
783
|
device_id: string;
|
|
746
|
-
/** Query mode
|
|
784
|
+
/** Query mode. */
|
|
747
785
|
mode: "top_functions" | "time_window" | "call_tree" | "component_cpu";
|
|
748
|
-
/**
|
|
786
|
+
/** Window in ms since profiling started (same clock as `profiler-commit-query`). */
|
|
749
787
|
time_window_ms?: {
|
|
750
|
-
/** Start
|
|
788
|
+
/** Start ms. */
|
|
751
789
|
start: number;
|
|
752
|
-
/** End
|
|
790
|
+
/** End ms. */
|
|
753
791
|
end: number;
|
|
754
792
|
};
|
|
755
|
-
/** Component name */
|
|
793
|
+
/** Component name. */
|
|
756
794
|
component_name?: string;
|
|
757
|
-
/** Function name */
|
|
795
|
+
/** Function name. */
|
|
758
796
|
function_name?: string;
|
|
759
|
-
/**
|
|
797
|
+
/** Max rows (default 15). */
|
|
760
798
|
top_n?: number;
|
|
761
|
-
/**
|
|
799
|
+
/** Include callers (`call_tree`). */
|
|
762
800
|
include_callers?: boolean;
|
|
763
|
-
/**
|
|
801
|
+
/** Only PascalCase React components. */
|
|
764
802
|
react_only?: boolean;
|
|
765
803
|
};
|
|
766
804
|
"profiler-load": {
|
|
767
|
-
/**
|
|
805
|
+
/** `list`, `load_react`, or `load_native`. */
|
|
768
806
|
mode: "list" | "load_react" | "load_native";
|
|
769
|
-
/**
|
|
807
|
+
/** Session ID from `list` (required for `load_*`). */
|
|
770
808
|
session_id?: string;
|
|
771
|
-
/** Metro port
|
|
809
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
772
810
|
port?: number;
|
|
773
|
-
/**
|
|
811
|
+
/** Device id from `list-devices` to bind the loaded session to. */
|
|
774
812
|
device_id: string;
|
|
775
|
-
/** Android package name
|
|
813
|
+
/** Android package name for legacy `.pftrace` sessions without metadata. */
|
|
776
814
|
app_process?: string;
|
|
777
815
|
};
|
|
778
816
|
"profiler-stack-query": {
|
|
779
817
|
/** Target device id from `list-devices` (iOS UDID, Mac app id or Android serial). */
|
|
780
818
|
device_id: string;
|
|
781
|
-
/** Query mode
|
|
819
|
+
/** Query mode. */
|
|
782
820
|
mode: "hang_stacks" | "function_callers" | "thread_breakdown" | "leak_stacks";
|
|
783
|
-
/** 0-based
|
|
821
|
+
/** 0-based hang index. */
|
|
784
822
|
hang_index?: number | null;
|
|
785
|
-
/** Native function name */
|
|
823
|
+
/** Native function name. */
|
|
786
824
|
function_name?: string;
|
|
787
|
-
/** Thread filter
|
|
825
|
+
/** Thread filter (substring for `thread_breakdown`; exact raw name or `"main"` for `function_callers`). */
|
|
788
826
|
thread?: string;
|
|
789
|
-
/** Object type filter */
|
|
827
|
+
/** Object type filter (`leak_stacks`). */
|
|
790
828
|
object_type?: string;
|
|
791
|
-
/** Max results
|
|
829
|
+
/** Max results (default 15). */
|
|
792
830
|
top_n?: number;
|
|
793
831
|
};
|
|
794
832
|
propose_variant: {
|
|
@@ -825,21 +863,21 @@ export interface ArgentToolArgs {
|
|
|
825
863
|
};
|
|
826
864
|
};
|
|
827
865
|
"react-profiler-analyze": {
|
|
828
|
-
/** Metro port
|
|
866
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
829
867
|
port?: number;
|
|
830
|
-
/** Device ID
|
|
868
|
+
/** Device ID from list-devices used for the profile (Mac app: its list-devices ID). */
|
|
831
869
|
device_id: string;
|
|
832
|
-
/** Absolute path to the RN project root
|
|
870
|
+
/** Absolute path to the RN project root. */
|
|
833
871
|
project_root: string;
|
|
834
|
-
/**
|
|
872
|
+
/** Fallback platform for source lookup if absent from recording. */
|
|
835
873
|
platform?: "ios" | "android" | "macos";
|
|
836
|
-
/**
|
|
874
|
+
/** RN version (e.g. "0.73.4"). */
|
|
837
875
|
rn_version?: string;
|
|
838
|
-
/** User actions to annotate
|
|
876
|
+
/** User actions to annotate report commits. */
|
|
839
877
|
annotations?: Array<{
|
|
840
|
-
/**
|
|
878
|
+
/** Ms since profiling started (`tapTimestampMs - startedAtEpochMs`). */
|
|
841
879
|
offsetMs: number;
|
|
842
|
-
/**
|
|
880
|
+
/** Action label. */
|
|
843
881
|
label: string;
|
|
844
882
|
}>;
|
|
845
883
|
};
|
|
@@ -850,7 +888,7 @@ export interface ArgentToolArgs {
|
|
|
850
888
|
project_root: string;
|
|
851
889
|
};
|
|
852
890
|
"react-profiler-cpu-summary": {
|
|
853
|
-
/** Metro port
|
|
891
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
854
892
|
port?: number;
|
|
855
893
|
/** Device ID used to record or load the React profile. For a Mac app, use its ID from list-devices. */
|
|
856
894
|
device_id: string;
|
|
@@ -860,7 +898,7 @@ export interface ArgentToolArgs {
|
|
|
860
898
|
react_only?: boolean;
|
|
861
899
|
};
|
|
862
900
|
"react-profiler-fiber-tree": {
|
|
863
|
-
/** Metro port
|
|
901
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
864
902
|
port?: number;
|
|
865
903
|
/** 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. */
|
|
866
904
|
device_id: string;
|
|
@@ -870,7 +908,7 @@ export interface ArgentToolArgs {
|
|
|
870
908
|
filter?: string;
|
|
871
909
|
};
|
|
872
910
|
"react-profiler-renders": {
|
|
873
|
-
/** Metro port
|
|
911
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
874
912
|
port?: number;
|
|
875
913
|
/** 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. */
|
|
876
914
|
device_id: string;
|
|
@@ -878,43 +916,43 @@ export interface ArgentToolArgs {
|
|
|
878
916
|
top_n?: number;
|
|
879
917
|
};
|
|
880
918
|
"react-profiler-start": {
|
|
881
|
-
/** Metro port
|
|
919
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
882
920
|
port?: number;
|
|
883
|
-
/** Device ID from list-devices, including a Mac app ID
|
|
921
|
+
/** Device ID from list-devices, including a Mac app ID (or `logicalDeviceId` on shared Metro if requested). */
|
|
884
922
|
device_id: string;
|
|
885
|
-
/** CPU sampling interval in microseconds */
|
|
923
|
+
/** CPU sampling interval in microseconds. */
|
|
886
924
|
sample_interval_us?: number;
|
|
887
|
-
/** Take over
|
|
925
|
+
/** Take over another active fresh session (ask user approval first). */
|
|
888
926
|
force?: boolean;
|
|
889
927
|
};
|
|
890
928
|
"react-profiler-status": {
|
|
891
|
-
/** Metro port
|
|
929
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
892
930
|
port?: number;
|
|
893
931
|
/** 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. */
|
|
894
932
|
device_id: string;
|
|
895
933
|
};
|
|
896
934
|
"react-profiler-stop": {
|
|
897
|
-
/** Metro port
|
|
935
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
898
936
|
port?: number;
|
|
899
937
|
/** Device ID passed to react-profiler-start. For a Mac app, use its ID from list-devices. */
|
|
900
938
|
device_id: string;
|
|
901
939
|
};
|
|
902
940
|
"reinstall-app": {
|
|
903
|
-
/**
|
|
941
|
+
/** Device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial). */
|
|
904
942
|
udid: string;
|
|
905
|
-
/**
|
|
943
|
+
/** Bundle id (iOS), package name (Android), component id (Vega), or bundleName (HarmonyOS). */
|
|
906
944
|
bundleId: string;
|
|
907
|
-
/** Path to
|
|
945
|
+
/** Path to `.app` (iOS), `.apk` (Android), `.vpkg` (Vega), or `.hap` (HarmonyOS). */
|
|
908
946
|
appPath: string;
|
|
909
947
|
};
|
|
910
948
|
"restart-app": {
|
|
911
|
-
/** Target device id from `list-devices
|
|
949
|
+
/** Target device id from `list-devices`. */
|
|
912
950
|
udid: string;
|
|
913
|
-
/** App identifier
|
|
951
|
+
/** App identifier (iOS/Mac app bundle id, Android package name, Vega interactive component app id, or HarmonyOS bundle name). */
|
|
914
952
|
bundleId: string;
|
|
915
|
-
/** Android
|
|
953
|
+
/** Android only: Activity name to relaunch (default: launcher activity). */
|
|
916
954
|
activity?: string;
|
|
917
|
-
/** Apple
|
|
955
|
+
/** Apple targets only: process launch args, e.g. `["-FeatureFlag", "YES"]`. */
|
|
918
956
|
launchArgs?: Array<string>;
|
|
919
957
|
};
|
|
920
958
|
rotate: {
|
|
@@ -924,30 +962,30 @@ export interface ArgentToolArgs {
|
|
|
924
962
|
orientation: "Portrait" | "LandscapeLeft" | "LandscapeRight" | "PortraitUpsideDown";
|
|
925
963
|
};
|
|
926
964
|
"run-sequence": {
|
|
927
|
-
/** Target device id from `list-devices
|
|
965
|
+
/** Target device id from `list-devices`, shared across all steps. */
|
|
928
966
|
udid: string;
|
|
929
|
-
/** Ordered
|
|
967
|
+
/** Ordered steps to execute. */
|
|
930
968
|
steps: Array<{
|
|
931
|
-
/**
|
|
969
|
+
/** Allowed tool name (see description). */
|
|
932
970
|
tool: string;
|
|
933
|
-
/** Tool arguments (
|
|
971
|
+
/** Tool arguments (omit `udid`, injected automatically). */
|
|
934
972
|
args: {
|
|
935
973
|
[key: string]: unknown;
|
|
936
974
|
};
|
|
937
|
-
/**
|
|
975
|
+
/** Extra pause in ms after step settle (default 100). */
|
|
938
976
|
delayMs?: number;
|
|
939
977
|
}>;
|
|
940
|
-
/** Wait up to 1000ms
|
|
978
|
+
/** Wait up to 1000ms for tree settle between screen-changing steps (default true). */
|
|
941
979
|
settle?: boolean;
|
|
942
980
|
};
|
|
943
981
|
"screen-recording-start": {
|
|
944
|
-
/** Target ID from `list-devices
|
|
982
|
+
/** Target ID from `list-devices` (Mac app: `macos-app-<bundle id>`). */
|
|
945
983
|
udid: string;
|
|
946
|
-
/** Auto-stop cap in seconds (default 180).
|
|
984
|
+
/** Auto-stop cap in seconds (default 180). */
|
|
947
985
|
timeLimitSeconds?: number;
|
|
948
|
-
/**
|
|
986
|
+
/** Collapse idle unchanged stretches after 1s (default true; false = real-time). */
|
|
949
987
|
trimStatic?: boolean;
|
|
950
|
-
/** Draw touch markers
|
|
988
|
+
/** Draw touch markers (default true; unsupported on physical iPhones). Mac apps: shows pointer, click ring, and hold dot. */
|
|
951
989
|
showTouches?: boolean;
|
|
952
990
|
};
|
|
953
991
|
"screen-recording-stop": {
|
|
@@ -955,41 +993,41 @@ export interface ArgentToolArgs {
|
|
|
955
993
|
udid: string;
|
|
956
994
|
};
|
|
957
995
|
screenshot: {
|
|
958
|
-
/** Target device id from `list-devices
|
|
996
|
+
/** Target device id from `list-devices`. */
|
|
959
997
|
udid: string;
|
|
960
|
-
/** Orientation override
|
|
998
|
+
/** Orientation override (rarely needed; captures already follow UI orientation). Rejected on HarmonyOS (captures display in current orientation). Ignored on physical iPhones. */
|
|
961
999
|
rotation?: "Portrait" | "LandscapeLeft" | "LandscapeRight" | "PortraitUpsideDown";
|
|
962
|
-
/** Scale factor
|
|
1000
|
+
/** Scale factor (default 0.25 on iOS/Android/HarmonyOS or `ARGENT_SCREENSHOT_SCALE`, 576px long side on TV, 1.0 on Chromium, <=768px on Mac). */
|
|
963
1001
|
scale?: number;
|
|
964
|
-
/** Set false only when
|
|
1002
|
+
/** Set false only when saving a full-res (`scale: 1.0`) baseline/current for `screenshot-diff`. */
|
|
965
1003
|
includeImageInContext?: boolean;
|
|
966
|
-
/**
|
|
1004
|
+
/** Chromium only: downscaler when scale < 1 (default lanczos3). */
|
|
967
1005
|
downscaler?: "lanczos3" | "box" | "bilinear" | "nearest";
|
|
968
1006
|
};
|
|
969
1007
|
"screenshot-diff": {
|
|
970
|
-
/**
|
|
1008
|
+
/** Saved baseline PNG path (omit when `captureBaseline: true`). */
|
|
971
1009
|
baselinePath?: string;
|
|
972
|
-
/**
|
|
1010
|
+
/** Saved current PNG path (omit when `captureCurrent: true`). */
|
|
973
1011
|
currentPath?: string;
|
|
974
|
-
/** Target device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial, or
|
|
1012
|
+
/** Target device id from `list-devices` (iOS UDID, HarmonyOS id, or Android serial, or Mac app id). */
|
|
975
1013
|
udid: string;
|
|
976
|
-
/** Capture
|
|
1014
|
+
/** Capture baseline live from the device, at full resolution (mutually exclusive with `captureCurrent`). */
|
|
977
1015
|
captureBaseline?: boolean;
|
|
978
|
-
/** Capture
|
|
1016
|
+
/** Capture current live from the device, at full resolution (mutually exclusive with `captureBaseline`). */
|
|
979
1017
|
captureCurrent?: boolean;
|
|
980
|
-
/** Orientation override for live
|
|
1018
|
+
/** Orientation override for live captures. Rejected on HarmonyOS. Ignored on physical iPhones. */
|
|
981
1019
|
rotation?: "Portrait" | "LandscapeLeft" | "LandscapeRight" | "PortraitUpsideDown";
|
|
982
|
-
/**
|
|
1020
|
+
/** Output directory for diff artifacts (default: temp dir). */
|
|
983
1021
|
outputDir?: string;
|
|
984
1022
|
};
|
|
985
1023
|
"settings-permissions": {
|
|
986
|
-
/**
|
|
1024
|
+
/** Device id from `list-devices` (iOS simulator UDID or Android serial). */
|
|
987
1025
|
udid: string;
|
|
988
|
-
/** `grant` pre-
|
|
1026
|
+
/** `grant` (pre-authorize), `deny`, or `reset` (re-prompt on next use). */
|
|
989
1027
|
action: "grant" | "deny" | "reset";
|
|
990
|
-
/**
|
|
1028
|
+
/** Permission name (`notifications` = Android-only; `reminders` = iOS-only). */
|
|
991
1029
|
permission: "camera" | "microphone" | "photos" | "contacts" | "notifications" | "calendar" | "location" | "location-always" | "media-library" | "motion" | "reminders";
|
|
992
|
-
/**
|
|
1030
|
+
/** Target app bundle id (iOS) or package name (Android). */
|
|
993
1031
|
bundleId: string;
|
|
994
1032
|
};
|
|
995
1033
|
shake: {
|
|
@@ -1017,11 +1055,11 @@ export interface ArgentToolArgs {
|
|
|
1017
1055
|
bundleId: string;
|
|
1018
1056
|
};
|
|
1019
1057
|
"tv-remote": {
|
|
1020
|
-
/**
|
|
1058
|
+
/** TV device id from `list-devices` (Apple TV, Android TV, or Vega). */
|
|
1021
1059
|
udid: string;
|
|
1022
|
-
/**
|
|
1060
|
+
/** Single remote button or array path run in one call (e.g. ["up","right","select"]; prefer an array over repeated calls). */
|
|
1023
1061
|
button: "up" | "down" | "left" | "right" | "select" | "back" | "home" | "menu" | "playPause" | "rewind" | "fastForward" | "next" | "previous" | "volumeUp" | "volumeDown" | "mute" | Array<"up" | "down" | "left" | "right" | "select" | "back" | "home" | "menu" | "playPause" | "rewind" | "fastForward" | "next" | "previous" | "volumeUp" | "volumeDown" | "mute">;
|
|
1024
|
-
/** Repeat
|
|
1062
|
+
/** Repeat `button` N times (default 1, e.g. `{ button: "down", repeat: 12 }`). */
|
|
1025
1063
|
repeat?: number;
|
|
1026
1064
|
};
|
|
1027
1065
|
"ui-tree": {
|
|
@@ -1033,21 +1071,21 @@ export interface ArgentToolArgs {
|
|
|
1033
1071
|
target?: "auto" | "global" | "local" | "both";
|
|
1034
1072
|
};
|
|
1035
1073
|
"view-network-logs": {
|
|
1036
|
-
/** Metro port
|
|
1074
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
1037
1075
|
port?: number;
|
|
1038
|
-
/** Device ID from list-devices
|
|
1076
|
+
/** Device ID from `list-devices` (or `logicalDeviceId` if shared Metro capture used it); Mac app: Mac app id `macos-app-<bundle id>`. */
|
|
1039
1077
|
device_id: string;
|
|
1040
|
-
/**
|
|
1078
|
+
/** 0-based page index, or `"latest"`/null for newest (50 entries/page). */
|
|
1041
1079
|
pageIndex?: number | "latest" | null;
|
|
1042
1080
|
};
|
|
1043
1081
|
"view-network-request-details": {
|
|
1044
|
-
/** Metro port
|
|
1082
|
+
/** Metro port (omit to use this device's port, default 8081; ignored on Chromium). */
|
|
1045
1083
|
port?: number;
|
|
1046
|
-
/** Device ID for the
|
|
1084
|
+
/** Device ID for the log (or `logicalDeviceId` if JS capture used it); Mac app: Mac app id. */
|
|
1047
1085
|
device_id: string;
|
|
1048
|
-
/** Request ID from
|
|
1086
|
+
/** Request ID from `view-network-logs`, `native-network-logs`, or `await-network-request`. */
|
|
1049
1087
|
requestId: string;
|
|
1050
|
-
/**
|
|
1088
|
+
/** Include response body (default true). */
|
|
1051
1089
|
includeBody?: boolean;
|
|
1052
1090
|
};
|
|
1053
1091
|
/** @deprecated Renamed to `e2e-add-echo`. */
|